OSDN Git Service

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