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