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