OSDN Git Service

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