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