OSDN Git Service

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