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