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