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