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