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