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