OSDN Git Service

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