* epa-file.el (epa-file-name-regexp): Accept backup filenames.
[elisp/epg.git] / ChangeLog
1 2007-04-06  Daiki Ueno  <ueno@unixuser.org>
2
3         * epa-file.el (epa-file-name-regexp): Accept backup filenames.
4         Suggested by "[ #10192 ] customizing epa-file-name-regexp fails"
5
6 2007-04-04  Daiki Ueno  <ueno@unixuser.org>
7
8         * epa-file.el (epa-file--file-name-regexp-set): New Custom :set
9         function.
10         (epa-file-name-regexp): Use it.
11         (epa-file-name-regexp-update): New command.
12         Reported by "[ #10192 ] customizing epa-file-name-regexp fails"
13
14 2007-04-04  Daiki Ueno  <ueno@unixuser.org>
15
16         * epa-file.el (epa-file-find-file-hook): New function.
17         (epa-file-enable): Add epa-file-find-file-hook to find-file-hooks.
18         (epa-file-disable): Remove epa-file-find-file-hook from
19         find-file-hooks.
20
21 2007-03-29  Daiki Ueno  <ueno@unixuser.org>
22
23         * EasyPG: Version 0.0.11 released.
24         * configure.ac: Bump up version.
25
26 2007-03-26  Daiki Ueno  <ueno@unixuser.org>
27
28         * epa.el (epa--insert-keys): Changed arglist.  All callers
29         changed.
30         (epa--select-keys): New function.
31         (epa-select-keys): Use it; don't popup menu if keys have elements
32         less than 2.
33
34 2007-03-25  Daiki Ueno  <ueno@unixuser.org>
35
36         * epa.el (epa-protocol): defcustom -> defvar.
37         (epa-armor): Ditto.
38         (epa-textmode): Ditto.
39
40 2007-03-24  Daiki Ueno  <ueno@unixuser.org>
41
42         * epa.el (epa-select-keys): Simplified; don't select the first
43         matching key.
44         (epa-key-list-mode-map): Bind revert-buffer instead of
45         epa-list-keys.
46         (epa-key-list-mode): Set revert-buffer-function to epa--revert-buffer.
47         (epa--revert-buffer): New function.
48
49         * epg.el (epg--list-keys-1): Accept a list of strings as NAME
50         argument.
51         (epg-list-keys): Ditto.
52
53 2007-03-21  Daiki Ueno  <ueno@unixuser.org>
54
55         * epa-file.el (epa-file-inhibit-auto-save): New user option.
56         (epa-file-insert-file-contents): Turn off auto-save-mode if
57         epa-file-inhibit-auto-save is non-nil.
58         Reported by "[ #9937] epa-file auto-saves in plain text"
59
60         * epa.el (epa--list-keys): New function.
61         (epa-list-keys): Use it.
62         (epa-list-secret-keys): New command.
63
64 2007-03-20  Daiki Ueno  <ueno@unixuser.org>
65
66         * epa.el (epa-display-info): Generate new *Info* buffer if buffer
67         is not alive.
68         (epa-verify-cleartext-in-region): s/armor/cleartext/g.
69
70         * Makefile.am (info_TEXINFOS): Added epa.texi.
71         * epa.texi: New file.
72
73 2007-03-19  Daiki Ueno  <ueno@unixuser.org>
74
75         * epg.el (epg--decode-percent-escape): New function.
76
77 2007-03-08  Daiki Ueno  <ueno@unixuser.org>
78
79         * epg.el (epg-list-keys): Parse GnuPG's print_string escape.
80
81 2007-03-08  Daiki Ueno  <ueno@unixuser.org>
82
83         * epa-mail.el (epa-mail-mode-hook): New variable.
84         (epa-mail-mode-on-hook): New variable.
85         (epa-mail-mode-off-hook): New variable.
86
87         * epg.el (epg--start): Make the process-buffer unibyte.
88         (epg--status-USERID_HINT): Decode user-id.
89         (epg--status-IMPORTED): Decode user-id.
90
91 2007-03-07  Daiki Ueno  <ueno@unixuser.org>
92
93         * epg.el (epg--start): Don't specify --use-agent if the protocol
94         is CMS; set coding-system-for-read to binary.
95         (epg--status-*SIG): Decode user-id.
96
97 2007-02-02  Daiki Ueno  <ueno@unixuser.org>
98
99         * epa-file.el (epa-file-write-region): Set a dummy filename
100         for buffer-file-name when calling select-safe-coding-system.
101
102 2007-01-30  Daiki Ueno  <ueno@unixuser.org>
103
104         * epg.el (epg-last-status): New variable.
105         (epg--process-filter): Set epg-last-status after calling a status
106         handler.
107         (epg--prompt-GET_BOOL): New function.
108         (epg--prompt-GET_BOOL-untrusted_key.override): New function.
109         (epg--status-GET_BOOL): Call epg--prompt-GET_BOOL-* instead of
110         y-or-n-p.
111
112 2007-01-29  Daiki Ueno  <ueno@unixuser.org>
113
114         * EasyPG: Version 0.0.10 released.
115         * configure.ac: Bump up version.
116
117 2007-01-29  Daiki Ueno  <ueno@unixuser.org>
118
119         * epg-config.el: Require epg-package-info.
120         * configure.ac: Generate epg-package-info.el.
121         * Makefile.am (DISTCLEANFILES): Added epg-package-info.el.
122         * COMPILE (epg-modules): Added epg-package-info.
123         * epg-package-info.el.in: New file.
124
125 2007-01-29  Daiki Ueno  <ueno@unixuser.org>
126
127         * epa-setup.el (epa-mail-mode): Autoload; setup mail-mode-hook.
128         * epa.el: Removed epa-*-mail stuff.
129         * Makefile.am (EXTRA_DIST): Added epa-mail.el.
130         * COMPILE (epg-modules): Added epa-mail.
131         * epa-mail.el: New file.
132
133 2007-01-05  Daiki Ueno  <ueno@unixuser.org>
134
135         * epg-pgp50i.el: Removed.
136
137         * epa.el (epa-key-list-mode-map): Renamed from epa-keys-mode-map.
138         (epa-key-list-mode): Renamed from epa-keys-mode.  All callers
139         changed.
140
141         * epg.el (epg--status-VALIDSIG): Don't set expiration-time if it
142         is "0".
143         (epg--make-sub-key-1): Ditto.
144         (epg--decode-hexstring): "\\x" -> "\\\\x".
145         (epg--decode-quotedstring): Ditto.
146
147         * pgg-epg.el (pgg-epg-encrypt-region): Ask a user whether to skip a
148         recipient whose public key is not available.
149         * epa.el (epa-encrypt-mail): Ask a user whether to skip a
150         recipient whose public key is not available.
151
152 2007-01-04  Daiki Ueno  <ueno@unixuser.org>
153
154         * epa.el (epa-decrypt-mail): Renamed from epa-decrypt.
155         (epa-verify-mail): Renamed from epa-verify.
156         (epa-sign-mail): Renamed from epa-sign.
157         (epa-encrypt-mail): Renamed from epa-encrypt.
158         (epa-import-mail): Renamed from epa-import.
159
160         * configure.ac: Don't exit if GnuPG (>= 1.4.3) is unavailable.
161
162         * epg.el (epg-signature-to-string): Print creation-time and used
163         pubkey-algorithm.
164         (epg-sign-string): If the GnuPG version is earlier than 1.4.3,
165         fallback to use a temp file as an input.
166         (epg-encrypt-string): Ditto.
167
168 2006-12-31  Daiki Ueno  <ueno@unixuser.org>
169
170         * epa.el (epa-mail-modes): New user option.
171         (epa--mail-mode-p): New function.
172         (epa-sign): Use it.
173         (epa-encrypt): Use it.
174         (epa--find-coding-system-for-mime-charset): New function.
175         (epa-decrypt-armor-in-region): Use it.
176         (epa-progress-callback-function): Use handback as the prompt.
177         (epa-encrypt-region): Take 4th argument SIGN.
178         (epa-encrypt): Ditto.
179
180 2006-12-31  Daiki Ueno  <ueno@unixuser.org>
181
182         * epa.el (epa--derived-mode-p): New alias.
183         (epa-sign): Use it.
184         (epa-encrypt): Use it.
185
186 2006-12-31  Daiki Ueno  <ueno@unixuser.org>
187
188         * epa.el (epa--read-signature-type): New function.
189         (epa-decrypt): New command.
190         (epa-verify): New command.
191         (epa-sign): New command.
192         (epa-encrypt): New command.
193         (epa-import-armor-in-region): New command.
194         (epa-import): New command.
195         (epa-decrypt-region): Confirm user to replace the region.
196         (epa-display-info): Delete "*Info*" window.
197
198 2006-12-29  Daiki Ueno  <ueno@unixuser.org>
199
200         * EasyPG: Version 0.0.9 released.
201         * epg-config.el (epg-version-number): Bump up.
202         * configure.ac: Bump up version.
203
204 2006-12-28  Daiki Ueno  <ueno@unixuser.org>
205
206         * epa.el (epa-sign-file): Ask signing key only when a prefix arg
207         is given; ask signature type only when a prefix arg is given.
208         (epa-sign-region): Ditto.
209
210 2006-12-26  Daiki Ueno  <ueno@unixuser.org>
211
212         * epg-config.el (epg-passphrase-coding-system): Default to nil.
213
214 2006-12-20  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
215
216         * epa.el (epa--format-fingerprint-1): New function.
217         (epa--format-fingerprint): Ditto.
218         (epa--show-key): Use it.
219
220 2006-12-20  Daiki Ueno  <ueno@unixuser.org>
221
222         * epa-file.el (epa-file-write-region): Don't attempt to write the
223         region to "/" to determine safe coding-system.
224
225         * epa.el (epa-list-keys): Abolished PROTOCOL arg.
226         (epa-sign-file): Save the output to *.p7s or *.p7m file if
227         epa-protocol is CMS.
228         (epa-encrypt-file): Ditto.
229         (epa-last-coding-system-specified): New variable.
230         (epa-decrypt-region): Try to decode with the
231         epa-coding-system-used text property.
232         (epa--select-safe-coding-system): New function.
233         (epa-verify-region): Try to decode with the epa-coding-system-used
234         text property.
235         (epa-sign-region): Query user to select coding-system to encode;
236         set the epa-coding-system-used text property on the result.
237         (epa-encrypt-region): Ditto.
238
239 2006-12-19  Daiki Ueno  <ueno@unixuser.org>
240
241         * epg.el (epg-export-keys-to-file): Fixed a typo.
242
243         * epa.el (epa-protocol): New user option.
244         (epa-sign-region): --armor & --textmode.
245         (epa-encrypt-region): Ditto.
246         (epa-list-keys): If prefix-arg is specified, use "OpenPGP" as the
247         default protocol.
248         (epa-import-keys-region): New command.
249         (epa-insert-keys): New command.
250         (epa--insert-keys): Renamed from epa-insert-keys.
251
252 2006-12-11  Daiki Ueno  <ueno@unixuser.org>
253
254         * pgg-epg.el (pgg-epg-decrypt-region): Don't call
255         decode-coding-string if it is not bound.
256
257         * epa-file.el (epa-file--encode-coding-string): New alias.
258         (epa-file--decode-coding-string): New alias.
259         (epa-file-write-region): Use epa-file--encode-coding-string.
260         (epa-file-decode-and-insert): Use epa-file--decode-coding-string.
261
262         * epa.el (epa--encode-coding-string): New alias.
263         (epa--decode-coding-string): New alias.
264         (epa-verify-region): Use epa--encode-coding-string.
265         (epa-sign-region): Ditto; use epa--decode-coding-string.
266         (epa-encrypt-region): Use epa--encode-coding-string.
267
268         * epg.el (epg--encode-coding-string): New alias.
269         (epg--status-GET_HIDDEN): Use it.
270
271 2006-11-29  Daiki Ueno  <ueno@unixuser.org>
272
273         * EasyPG: Version 0.0.8 released.
274         * epg-config.el (epg-version-number): Bump up.
275         * configure.ac: Bump up version.
276
277 2006-11-20  Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
278
279         * epa-file.el (epa-file-encrypt-to): New file local variable.
280         (epa-file-write-region): Specify recipients by epa-file-encrypt-to.
281
282 2006-11-26  Daiki Ueno  <ueno@unixuser.org>
283
284         * epa.el (epa-sign-file): Query signature type at a time.
285         (epa-decrypt-file): Display output file name on completion.
286         (epa-sign-file): Ditto.
287         (epa-encrypt-file): Ditto.
288
289 2006-11-25  Daiki Ueno  <ueno@unixuser.org>
290
291         * epa.el (epa-keys-mode): Don't call widget-setup.
292         (epa-list-keys): Call widget-setup here.
293         (epa-select-keys): Ditto.
294
295 2006-11-24  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
296
297         * epg.el (epg-delete-keys): Remove redundant argument for `error'
298         and fix a close parenthesis.
299
300 2006-11-24  Daiki Ueno  <ueno@unixuser.org>
301
302         * epg.el (epg--status-GET_HIDDEN): Encode passphrase with eol-type LF.
303         Reported by Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>.
304         cf. <emacs-mime-ja:02090>
305
306 2006-11-23  Daiki Ueno  <ueno@unixuser.org>
307
308         * epa.el (epa-sign-region): Query signature type at a time.
309
310 2006-11-22  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
311
312         * epg.el (epg-context-set-passphrase-callback): Add optional
313         argument `handback'.
314         (epg-context-set-progress-callback): Ditto.
315
316 2006-11-14  Daiki Ueno  <ueno@unixuser.org>
317
318         * epa.el (epa--key-widget-value-create): Allow empty user IDs.
319         (epa--show-key): Ditto.
320         Reported by Werner Koch <wk@gnupg.org>.
321
322         * epg.el (epg--start): Don't specify --enable-progress-filter for
323         gpgsm.
324         (epg--status-PROGRESS): Check if progress-callback is set.
325
326 2006-11-12  Daiki Ueno  <ueno@unixuser.org>
327
328         * epg.el (epg-error): New error.
329         (epg--check-error-for-decrypt): New function.
330         (epg-decrypt-file): Use it.
331         (epg-decrypt-string): Use it.
332         (epg--start): Added a very basic test to check whether to specify
333         --use-agent.
334
335         * epa.el (epa-decrypt-file): Expand file name.
336         (epa-verify-file): Ditto.
337         (epa-import-keys): Ditto.
338
339 2006-11-12  Daiki Ueno  <ueno@unixuser.org>
340
341         * epg.el (epg-delete-keys): Decode delete-problem.
342
343         * epa.el (epa-popup-info-window): Turn on by default.
344         (epa-display-info): Split selected window instead of pop-to-buffer.
345
346 2006-11-12  Daiki Ueno  <ueno@unixuser.org>
347
348         * epa.el (epa-display-info): Generalized; renamed from
349         epa-display-verify-result.
350         (epa-decrypt-file): Use it.
351         (epa-verify-file): Use it.
352         (epa-decrypt-region): Use it.
353         (epa-verify-region): Use it.
354         (epa-import-keys): Show import result.
355         (epa-display-verify-result): Make it obsolete.
356
357         * epg.el (epg-start-sign-keys): Make it obsolete; signing a key is
358         out of scope.
359         (epg-sign-keys): Make it obsolete.
360         (epg-make-import-status): New object epg-import-status.
361         (epg-make-import-result): New object epg-import-result.
362         (epg--status-IMPORT_RES): New function.
363         (epg-import-result-to-string): New function.
364
365         * epa.el (epa-keys-mode-map): Don't bind epa-sign-keys.
366         (epa-sign-keys): Make it obsolete.
367
368 2006-11-11  Daiki Ueno  <ueno@unixuser.org>
369
370         * epg.el (epg-start-sign): Don't set --armor nor --textmode if
371         mode is set for a cleartext signature.
372         (epg-make-context): New slot "sig-notations".
373         (epg--args-from-sig-notations): New function.
374         (epg-start-sign): Specify --sig-notation or --sig-policy-url if
375         desired.
376         (epg-start-encrypt): Ditto.
377         (epg-make-signature): New slot "notations".
378         (epg--status-NOTATION_NAME): New function.
379         (epg--status-NOTATION_DATA): New function.
380         (epg--status-POLICY_URL): New function.
381
382 2006-10-29  Daiki Ueno  <ueno@unixuser.org>
383
384         * EasyPG: Version 0.0.7 released.
385         * epg-config.el (epg-version-number): Bump up.
386         * configure.ac: Bump up version.
387
388 2006-10-29  Daiki Ueno  <ueno@unixuser.org>
389
390         * epa-file.el
391         (epa-file-cache-passphrase-for-symmetric-encryption): New user
392         option.
393
394 2006-10-12  Daiki Ueno  <ueno@unixuser.org>
395
396         * epg.el (epg-start-verify): Fixed a clearsign verification bug.
397         Reported by Hirohisa Yamaguchi <umq@ueo.co.jp>.
398
399 2006-09-29  Daiki Ueno  <ueno@unixuser.org>
400
401         * EasyPG: Version 0.0.6 released.
402         * epg.el (epg-version-number): Bump up.
403         * configure.ac: Bump up version.
404
405 2006-09-29  Daiki Ueno  <ueno@unixuser.org>
406
407         * epa.el (epa-verify-cleartext-in-region): Renamed from
408         epa-verify-armor-in-region.
409
410         * epg.el (epg-passphrase-callback-function): Suggest to use
411         epa-passphrase-callback-function instead.
412         (epg-start-verify): Don't specify --verify if SIGNATURE is a
413         normal or a clear text signature.
414         (epg-verify-file): Mention that the plaintext will be stored into
415         the file PLAIN after successful verification.
416         (epg-verify-string): Mention that the plaintext will be returned
417         after successful verification.
418
419 2006-09-27  Daiki Ueno  <ueno@unixuser.org>
420
421         * epa-file.el (epa-file-insert-file-contents): Set progress callback.
422         (epa-file-write-region): Ditto.
423
424         * epa.el (epa-decrypt-file): Set callbacks.
425         (epa-sign-file): Ditto.
426         (epa-encrypt-file): Ditto.
427         (epa-decrypt-region): Ditto.
428         (epa-sign-region): Ditto.
429         (epa-encrypt-region): Ditto.
430         (epa-sign-keys): Ditto.
431
432         * epg.el (epg-progress-callback-function): Removed.
433
434 2006-09-24  Daiki Ueno  <ueno@unixuser.org>
435
436         * epa.el (epa-passphrase-callback-function): Moved from epg.el.
437         (epa-progress-callback-function): Ditto.
438         * epg.el (epg-passphrase-callback-function): Made it obsolete.
439         (epg-progress-callback-function): Ditto.
440
441 2006-09-23  Daiki Ueno  <ueno@unixuser.org>
442
443         * epg.el (epg-start-decrypt): Append "--" to the end of options.
444         (epg-start-verify): Ditto.
445         (epg-start-sign): Ditto.
446         (epg-start-encrypt): Ditto.
447         (epg-start-import-keys): Ditto.
448         (epg-start-generate-key): Ditto.
449
450 2006-09-23  Daiki Ueno  <ueno@unixuser.org>
451
452         * epg.el (epg-make-context): Don't set progress-callback by
453         default.
454         (epg--start): Don't specify --enable-progress-filter if
455         progress-callback is not set.
456         (epg--status-GET_HIDDEN): Signal an error if passphrase-callback
457         is not set.
458
459 2006-09-15  Daiki Ueno  <ueno@unixuser.org>
460
461         * epg.el (epg-progress-callback-function): Show the percentage.
462
463 2006-09-15  Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr>
464
465         * pgg-epg.el (mml2015-gpg-extract-signature-details): Fixed a typo.
466
467 2006-09-13  Daiki Ueno  <ueno@unixuser.org>
468
469         * epg-config.el (epg-passphrase-coding-system): Renamed from
470         epg-locale-coding-system.
471
472 2006-09-11  Daiki Ueno  <ueno@unixuser.org>
473
474         * epa-file.el (epa-file-decode-and-insert): New function which
475         utilizes decode-coding-inserted-region if available.
476         (epa-file-insert-file-contents): Use it.
477
478         * epg.el (epg--start): Specify --enable-progress-filter in
479         imitation of GPGME.
480         (epg-progress-callback-function): Remove a couple of %%'s.
481
482 2006-09-05  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
483
484         * epg-config.el (epg-configuration): Fixed the last change;
485         collect configuration other than group and algorithm.
486
487 2006-09-05  Daiki Ueno  <ueno@unixuser.org>
488
489         * epg-config.el (epg-debug): Moved from epg.el.
490         (epg-configuration): Parse group configuration.
491         (epg-expand-group): New function.
492
493 2006-09-04  Daiki Ueno  <ueno@unixuser.org>
494
495         * EasyPG: Version 0.0.5 released.
496         * epg.el (epg-version-number): Bump up.
497         * configure.ac: Bump up version.
498
499 2006-09-04  Daiki Ueno  <ueno@unixuser.org>
500
501         * epg-config.el (epg-locale-coding-system): New user option.
502
503         * epg.el (epg--list-keys-1): Respect epg-gpg-home-directory.
504         (epg--clear-string): New function.
505         (epg--status-GET_HIDDEN): Encode passphrase with
506         terminal-coding-system.
507
508         * epg-config.el (epg-gpg-minimum-version): New constant.
509         (epg-config--parse-version): New function.
510         (epg-config--compare-version): New function.
511         (epg-configuration): Respect epg-gpg-home-directory.
512
513 2006-09-03  Daiki Ueno  <ueno@unixuser.org>
514
515         * epg-config.el: New file; moved GnuPG configuration check from
516         epg.el.
517
518 2006-09-02  Daiki Ueno  <ueno@unixuser.org>
519
520         * epg.el (epg-check-configuration): New function.
521         (epg-gpg-home-directory): New user option.
522
523         * pgg-epg.el (pgg-epg-lookup-key): New function.
524
525 2006-07-29  Daiki Ueno  <ueno@unixuser.org>
526
527         * EasyPG: Version 0.0.4 released.
528         * epg.el (epg-version-number): Bump up.
529         * configure.ac: Bump up version.
530
531 2006-07-29  Daiki Ueno  <ueno@unixuser.org>
532
533         * acinclude.m4 (AC_CHECK_GPG): Run $3 if there is no gpg executable.
534
535 2006-07-28  Daiki Ueno  <ueno@unixuser.org>
536
537         * epg.el (epg-start-encrypt): Extract primary key ID from
538         epg-context-signers.
539         Thanks to Steve Youngs <steve@sxemacs.org>
540
541         * pgg-epg.el (pgg-epg-encrypt-region): Fixed a bug; it didn't
542         give CONTEXT to epg-list-keys.
543         Thanks to Steve Youngs <steve@sxemacs.org>
544
545 2006-07-18  Daiki Ueno  <ueno@unixuser.org>
546
547         * epg-pgp50i.el (epg-pgp50i--process-filter): Use
548         epg-process-filter-running instead of epg-pgp50i-status; Don't
549         save-excursion during handler execution.
550         (epg-pgp50i--read-line): Renamed from epg-pgp50i--wait-for-line;
551         don't allow process input.
552         (epg-pgp50i--parse-time): New function.
553         (epg-pgp50i--status-BAD_SIGNATURE): New function.
554
555         * epg.el (epg--process-filter): Don't save-excursion during
556         handler execution.
557
558 2006-07-18  Daiki Ueno  <ueno@unixuser.org>
559
560         * acinclude.m4 (AC_CHECK_GPG): Renamed from AC_PATH_GPG.
561
562         * epg.el (epg-process-filter-running): New variable.
563         (epg--start): Setup epg-process-filter-running.
564         (epg--process-filter): Allow only one status handler to run at a
565         time; update epg-read-point everytime the point changes.
566
567 2006-07-14  Daiki Ueno  <ueno@unixuser.org>
568
569         * epg-pgp50i.el: New file.
570
571 2006-07-13  Daiki Ueno  <ueno@unixuser.org>
572
573         * acinclude.m4 (AC_PATH_GPG): New macro.
574         * configure.ac: Check gpg version.
575         Suggested by Max Froumentin <max@lapin-bleu.net>
576
577 2006-07-10  Daiki Ueno  <ueno@unixuser.org>
578
579         * epg.el (epg--status-ERRSIG): Don't remove the last verify-result.
580         (epg-signature-to-string): Remove a trailing whitespace.
581
582         * epa.el (epa-keys-mode-map): Bind return to epa-toggle-mark.
583         (epa-toggle-mark): New command.
584
585 2006-07-04  Daiki Ueno  <ueno@unixuser.org>
586
587         * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched
588         with pgg-default-user-id.
589         Reported by Elias Oltmanns <oltmanns@uni-bonn.de>
590
591 2006-07-01  Daiki Ueno  <ueno@unixuser.org>
592
593         * epa.el (epa-select-keys): If SECRET is specified, select a
594         primary secret key by default.
595
596 2006-06-29  Daiki Ueno  <ueno@unixuser.org>
597
598         * EasyPG: Version 0.0.3 released.
599         * epg.el (epg-version-number): Bump up.
600         * configure.ac: Bump up version.
601
602 2006-06-12  Daiki Ueno  <ueno@unixuser.org>
603
604         * epa-file.el (epa-file-insert-file-contents): Don't move the
605         point to the end of the inserted region.
606         Reported by doug <douglas.bagley@gmail.com>
607
608 2006-06-01  Daiki Ueno  <ueno@unixuser.org>
609
610         * epa-file.el (epa-file-insert-file-contents): Support partial read.
611
612 2006-05-30  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
613
614         * epa-file.el (epa-file-write-region): Encode the plain text with
615         coding-system-for-write.
616
617 2006-05-30  Daiki Ueno  <ueno@unixuser.org>
618
619         * epa-file.el (epa-file-insert-file-contents):
620         Decode the decrypted text with coding-system-for-read.
621
622 2006-05-29  Daiki Ueno  <ueno@unixuser.org>
623
624         * EasyPG: Version 0.0.2 released.
625         * epg.el (epg-version-number): Bump up.
626         * configure.ac: Bump up version.
627
628 2006-05-29  Daiki Ueno  <ueno@unixuser.org>
629
630         * epg.el (epg--time-from-seconds): New function.
631         (epg--status-ERRSIG): Convert seconds from epoch to encoded-time.
632         (epg--status-VALIDSIG): Ditto.
633         (epg--status-KEYEXPIRED): Ditto.
634
635 2006-05-28  Daiki Ueno  <ueno@unixuser.org>
636
637         * epg.el (epg-start-import-keys): Don't specify filename if keys
638         is a string data.
639
640 2006-05-27  Daiki Ueno  <ueno@unixuser.org>
641
642         * epg.el (epg--process-filter): Pass epg-context instead of
643         process to status handlers.
644         (epg--status-NO_PUBKEY): Check if the previous signature's key-id
645         matches with the given key-id.
646
647 2006-05-26  Daiki Ueno  <ueno@unixuser.org>
648
649         * epg.el (epg--status-NO_PUBKEY): Replace the previous signature's
650         status from 'error to 'no-pubkey.
651         (epg--status-ERRSIG): Just add 'error signature to the verify result.
652
653         * epa.el (epa-insert-keys): Renamed from epa-list-keys-1; don't
654         disable inhibit-quit here; make text-properties nonsticky.
655         (epa-popup-info-window): New user option.
656         (epa-info-window-height): New user option.
657         (epa-display-verify-result): New function.
658         (epa-decrypt-file): Use it.
659         (epa-verify-file): Use it.
660         (epa-decrypt-region): Use it.
661         (epa-verify-region): Use it.
662
663         * epg.el (epg-make-context): New slot "operation".
664         (epg-passphrase-callback-function): Confirm passphrase when
665         performing symmetric encryption.
666
667 2006-05-25  Daiki Ueno  <ueno@unixuser.org>
668
669         * epa.el (epa-decrypt-file): Display verify result if the message
670         is signed.
671         (epa-decrypt-region): New command.
672         (epa-verify-region): New command.
673         (epa-decrypt-armor-in-region): New command.
674         (epa-verify-armor-in-region): New command.
675         (epa-sign-region): New command.
676         (epa-encrypt-region): New command.
677
678 2006-05-11  Daiki Ueno  <ueno@unixuser.org>
679
680         * epa.el (epa-armor): New user option.
681         (epa-textmode): New user option.
682
683 2006-05-02  Daiki Ueno  <ueno@unixuser.org>
684
685         * epg.el (epg-make-key-signature): New object epg-key-signature.
686         (epg-list-keys): Collect key signatures.
687         (epg-make-sub-key): Renamed secret -> secret-p.
688         (epg-list-keys-postprocess-one-key): Abolished.
689         (epg-list-keys): Reverse all keys, sub-keys, user-ids, and key
690         signatures by itself.
691         (epg-no-data-reason-alist): New constant.
692         (epg-unexpected-reason-alist): New constant.
693
694 2006-05-01  Daiki Ueno  <ueno@unixuser.org>
695
696         * epg.el (epg-invalid-recipients-reason-alist): Renamed.
697         (epg-delete-problem-reason-alist): Renamed.
698         (epg-import-ok-reason-alist): New constant.
699         (epg-import-problem-reason-alist): New constant.
700         (epg-status-IMPORTED): New function.
701         (epg-status-IMPORT_OK): New function.
702         (epg-status-IMPORT_PROBLEM): New function.
703         (epg-start-import-keys): Don't use a temporary output file.
704         (epg-start-receive-keys): New function.
705         (epg-import-keys-from-server): New function.
706         (epg-receive-keys): Alias to epg-import-keys-from-server.
707
708 2006-05-01  Daiki Ueno  <ueno@unixuser.org>
709
710         * epg.el (epg-start): Signal an error if the process of CONTEXT is
711         already running for other operations.
712         (epg-flush): Abolished.
713         (epg-start-generate-key): New function.
714         (epg-generate-key-from-file): New function.
715         (epg-generate-key-from-string): New function.
716         (epg-status-KEY_CREATED): New function.
717         (epg-status-KEY_NOT_CREATED): New function.
718         (epg-new-signature-type-alist): New variable.
719         (epg-make-new-signature): New object epg-new-signature.
720         (epg-status-SIG_CREATED): Set epg-new-signature object.
721         (epg-new-signature-to-string): New function.
722         (epg-make-signature): Added slots for signature class and version.
723         (epg-start-sign): Fixed rule of the MODE argument.
724
725 2006-04-30  Daiki Ueno  <ueno@unixuser.org>
726
727         * epa.el (epa-delete-keys): Support deletion of secret keys.
728
729         * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
730         decrypted text.
731
732         * epg.el (epg-read-output): Don't convert line endings of the
733         output file.
734         (epg-cancel): Set 'error result.
735
736 2006-04-29  Daiki Ueno  <ueno@unixuser.org>
737
738         * epg.el (epg-make-signature): Removed user-id; added
739         creation-time, expiration-time, pubkey-algorithm,
740         digest-algorithm.
741         (epg-process-sentinel): Abolished.
742         (epg-signature-to-string): Decode DN.
743         (epg-list-keys): Cache user-id in epg-user-id-alist.
744         (epg-make-user-id): Renamed name -> string.
745
746 2006-04-29  Daiki Ueno  <ueno@unixuser.org>
747
748         * epg.el (epg-status-ERRSIG): New function.
749         (epg-verify-file): Signal an error if we encounter ERRSIG status.
750         (epg-verify-string): Ditto.
751
752 2006-04-28  Daiki Ueno  <ueno@unixuser.org>
753
754         * epg.el: Added typecheck to accessors to objects.
755
756 2006-04-26  Daiki Ueno  <ueno@unixuser.org>
757
758         * epg.el (epg-status-GET_HIDDEN): Pass epg-context as the first
759         argument of passphrase-callback.
760         (epg-status-PROGRESS): Ditto.
761
762 2006-04-26  Daiki Ueno  <ueno@unixuser.org>
763
764         * epa.el (epa-select-keys): Don't set inhibit-quit when
765         recursive-edit is called.
766         (epg-cancel): New function.
767
768 2006-04-25  Daiki Ueno  <ueno@unixuser.org>
769
770         * epg.el (epg-process-sentinel): New function; set 'error if gpg
771         process exited abnormally, but we have not received an error
772         response from it.
773         (epg-sign-file): Signal an error only when a signature is not
774         created.
775         (epg-sign-string): Ditto.
776         (epg-encrypt-file): Signal an error if SIGN is specified and
777         signature is not created.
778         (epg-encrypt-string): Ditto.
779
780 2006-04-22  Daiki Ueno  <ueno@unixuser.org>
781
782         * epa.el (epa-key-widget-value-create): Decode DN.
783         (epa-list-keys): Add the PROTOCOL argument.
784         (epa-select-keys): Require CONTEXT as the first argument.
785
786         * epg.el (epg-gpgsm-program): New user option.
787         (epg-dn-type-alist): New variable.
788         (epg-start): Don't specify --command-fd if protocol is CMS.
789         (epg-list-keys): Require CONTEXT as the first argument.
790         (epg-dn-from-string): New function.
791         (epg-decode-dn): New function.
792
793 2006-04-21  Daiki Ueno  <ueno@unixuser.org>
794
795         * epa.el (epa-sign-keys): New command.
796
797         * epg.el (epg-start-sign-keys): New function.
798         (epg-sign-keys): New function.
799         (epg-status-GET_HIDDEN): Enable local quit.
800         (epg-status-GET_BOOL): Ditto.
801         (epg-status-GET_LINE): Ditto.
802
803 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
804
805         * epa.el (epa-list-keys-1): Add 'epa-list-keys property to keylist
806         region.
807
808 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
809
810         * pgg-epg.el (pgg-epg-secret-key-id-list): New variable.
811         (pgg-epg-passphrase-callback): New function.
812
813         * epa.el (epa-select-keys): Added "Cancel" button.
814
815 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
816
817         * epg.el (epg-signature-to-string): New function.
818
819 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
820
821         * epa-file.el (epa-file-write-region): RECIPIENTS is now a list of
822         key objects.
823         * epa-dired.el (epa-dired-do-encrypt): RECIPIENTS is now a list of
824         key objects.
825
826         * epa.el (epa-select-keys): Added MODE argument.
827         (epa-encrypt-file): RECIPIENTS is now a list of key objects.
828
829         * epg.el (epg-status-SIG_CREATED): New function.
830         (epg-start-sign): epg-context-signers is now a list of key objects.
831         (epg-start-encrypt): RECIPIENTS is now a list of key objects.
832
833 2006-04-19  Daiki Ueno  <ueno@unixuser.org>
834
835         * epa.el (epa-verify-file): Show results in minibuffer.
836         * epg.el (epg-debug-buffer): New variable.
837         (epg-flush): New function.
838
839 2006-04-18  Daiki Ueno  <ueno@unixuser.org>
840
841         * epa.el (epa-export-keys): New command.
842         * epg.el (epg-start-export-keys): Accept a list of epg-key object
843         instead of a regexp.
844
845 2006-04-18  Daiki Ueno  <ueno@unixuser.org>
846
847         * epa.el (epa-keys-mode-map): Bind epa-list-keys; epa-import-key.
848         (epa-import-key): New command.
849
850         * epg.el (epg-delete-problem-alist): New constant.
851         (epg-status-DELETE_PROBLEM): New function.
852         (epg-start-delete-key): New function.
853         (epg-delete-key): New function.
854         (epg-wait-for-completion): Add the NO-EOF argument.
855
856 2006-04-18  Daiki Ueno  <ueno@unixuser.org>
857
858         * epg.el (epg-start): Insert the command-line arguments to the
859         debug buffer.
860         (epg-start-encrypt): Wait for BEGIN_ENCRYPTION.
861         (epg-start-delete-key): New function.
862         (epg-delete-key): New function.
863
864         * epa.el (epa-key): New widget.
865         (epa-key-widget-action): New function.
866         (epa-key-widget-value-create): New function.
867         (epa-key-widget-button-face-get): New function.
868         (epa-key-widget-help-echo): New function.
869
870 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
871
872         * epa-file.el (epa-file-write-region): Check if START is a string.
873
874 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
875
876         * epa-file.el: Rewritten with file-name-handler.
877         (epa-file-handler): New variable.
878         (epa-file-enable): New command.
879         (epa-file-disable): New command.
880
881         * epa-setup.el: Call epa-file-enable.
882
883 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
884
885         * epa-file.el (epa-passphrase): New variable.
886         (epa-file-passphrase-callback-function): New function.
887         (epa-find-file): Reset buffer-undo-list; set
888         buffer-file-coding-system to last-coding-system-used after
889         decoding.
890
891 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
892
893         * epa-file.el (epa-write-file): Try to write region to "/" to get
894         last-coding-system-used to be set.
895
896 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
897
898         * epa-file.el: New implementation of epf.el.
899
900         * epf.el: Abolished.
901
902 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
903
904         * epa.el (epa-verify-file): Display verify result.
905
906         * epg.el (epg-invalid-recipients-alist): New variable.
907         (epg-status-INV_RECP): New function.
908         (epg-status-NO_RECP): New function.
909
910         * epa.el (epa-keys-mode-map): Bind epa-decrypt-file,
911         epa-verify-file, epa-sign-file, and epa-encrypt-file.
912         (epa-decrypt-file): New function imported from epa-dired.el.
913         (epa-verify-file): New function imported from epa-dired.el.
914         (epa-sign-file): New function imported from epa-dired.el.
915         (epa-encrypt-file): New function imported from epa-dired.el.
916
917 2006-04-16  Daiki Ueno  <ueno@unixuser.org>
918
919         * epa.el (epa-select-keys): Renamed from epa-ask-keys; use
920         recursive-edit.
921         * epa-dired.el (epa-dired-encrypt-file): Use epa-select-keys.
922
923 2006-04-16  Daiki Ueno  <ueno@unixuser.org>
924
925         * epa-setup.el: New file.
926         * epa-dired.el: New file.
927
928         * epg.el (epg-colons-pub-spec): Abolished.
929         (epg-colons-sec-spec): Abolished.
930         (epg-colons-uid-spec): Abolished.
931         (epg-colons-fpr-spec): Abolished.
932         (epg-key-validity-alist): New variable.
933         (epg-key-capablity-alist): New variable.
934         (epg-make-key): New object epg-key.
935         (epg-make-sub-key): New object epg-sub-key.
936         (epg-make-user-id): New object epg-user-id.
937         (epg-list-keys-1): Renamed from epg-list-keys.
938         (epg-list-keys): Rewritten.
939
940 2006-04-15  Daiki Ueno  <ueno@unixuser.org>
941
942         * epg.el (epg-list-keys): Make the NAME argument optional.
943
944 2006-04-13  Daiki Ueno  <ueno@unixuser.org>
945
946         * epa.el: Added header.
947
948         * epg.el (epg-list-keys): Specify --with-fingerprint.
949         (epg-colons-fpr-spec): New variable.
950         (epg-colons-pub-spec): Renamed trust -> validity and ownertrust ->
951         owner-trust.
952         (epg-colons-sec-spec): Ditto.
953         (epg-colons-uid-spec): Renamed trust -> validity.
954
955 2006-04-13  Daiki Ueno  <ueno@unixuser.org>
956
957         * epa.el: New file.
958
959         * epg.el (epg-cipher-algorithm-alist): New constant.
960         (epg-pubkey-algorithm-alist): New constant.
961         (epg-digest-algorithm-alist): New constant.
962         (epg-compress-algorithm-alist): New constant.
963         (epg-configuration): New function.
964         (epg-start): Don't specify --yes.
965
966 2006-04-13  Daiki Ueno  <ueno@unixuser.org>
967
968         * epg.el (epg-make-data-from-file): New function.
969         (epg-make-data-from-string): New function.
970         (epg-data-file): New function.
971         (epg-data-string): New function.
972         (epg-start-decrypt): Get a cipher text from a data object.
973         (epg-delete-output-file): New function.
974         (epg-decrypt-file): Add the 3rd argument PLAIN to specify where
975         the output goes.
976         (epg-start-verify): Get a signature and signed-text from a data
977         object.
978         (epg-verify-file): Added the 3rd argument PLAIN to specify where
979         the output goes; return the plain text if PLAIN is nil.
980         (epg-verify-string): Return the plain text.
981         (epg-start-sign): Get a plain text from a data object.
982         (epg-sign-file): Added the 3rd argument SIGNATURE to specify where
983         the output goes.
984         (epg-start-encrypt): Get a plain text from a data object.
985         (epg-encrypt-file): Added the 4th argument CIPHER to specify where
986         the output goes.
987         (epg-start-import-keys): Get keys from a data object.
988         (epg-import-keys-1): New function.
989         (epg-import-keys-from-file): Use it.
990         (epg-import-keys-from-string): Use it.
991
992 2006-04-12  Daiki Ueno  <ueno@unixuser.org>
993
994         * epf.el: Renamed from epg-file.el.
995
996 2006-04-12  Daiki Ueno  <ueno@unixuser.org>
997
998         * epg.el (epg-status-GET_BOOL): New function.
999         (epg-status-GET_LINE): New function.
1000         (epg-prompt-alist): New variable, to be filled.
1001
1002         * pgg-epg.el (mml2015-gpg-extract-signature-details): New function.
1003         * epg.el (epg-signature-fingerprint): New function.
1004         (epg-signature-set-fingerprint): New function.
1005         (epg-status-VALIDSIG): New function.
1006
1007         * epg.el (epg-reset): Don't reset result.
1008         (epg-start-decrypt): Reset result before epg-start.
1009         (epg-start-verify): Ditto.
1010         (epg-start-sign): Ditto.
1011         (epg-start-encrypt): Ditto.
1012         (epg-start-export-keys): Ditto.
1013         (epg-start-import-keys): Ditto.
1014
1015         * Makefile.am (EXTRA_DIST): Added pgg-epg.el.
1016         * pgg-epg.el: New file.
1017
1018         * epg.el (epg-start-export-keys): New function.
1019         (epg-export-keys): New function.
1020         (epg-start-import-keys): New function.
1021         (epg-import-keys): New function.
1022         (epg-verify-file): New function.
1023
1024         * epg-file.el (epg-file-write-region): Support public key encryption.
1025
1026         * epg.el (epg-passphrase-callback-function): Always display key-id.
1027