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