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