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