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