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