1 2007-03-26 Daiki Ueno <ueno@unixuser.org>
3 * epa.el (epa--insert-keys): Changed arglist. All callers
5 (epa--select-keys): New function.
6 (epa-select-keys): Use it; don't popup menu if keys have elements
9 2007-03-25 Daiki Ueno <ueno@unixuser.org>
11 * epa.el (epa-protocol): defcustom -> defvar.
13 (epa-textmode): Ditto.
15 2007-03-24 Daiki Ueno <ueno@unixuser.org>
17 * epa.el (epa-select-keys): Simplified; don't select the first
19 (epa-key-list-mode-map): Bind revert-buffer instead of
21 (epa-key-list-mode): Set revert-buffer-function to epa--revert-buffer.
22 (epa--revert-buffer): New function.
24 * epg.el (epg--list-keys-1): Accept a list of strings as NAME
26 (epg-list-keys): Ditto.
28 2007-03-21 Daiki Ueno <ueno@unixuser.org>
30 * epa-file.el (epa-file-inhibit-auto-save): New user option.
31 (epa-file-insert-file-contents): Turn off auto-save-mode if
32 epa-file-inhibit-auto-save is non-nil.
33 Reported by "[ #9937] epa-file auto-saves in plain text"
35 * epa.el (epa--list-keys): New function.
36 (epa-list-keys): Use it.
37 (epa-list-secret-keys): New command.
39 2007-03-20 Daiki Ueno <ueno@unixuser.org>
41 * epa.el (epa-display-info): Generate new *Info* buffer if buffer
43 (epa-verify-cleartext-in-region): s/armor/cleartext/g.
45 * Makefile.am (info_TEXINFOS): Added epa.texi.
48 2007-03-19 Daiki Ueno <ueno@unixuser.org>
50 * epg.el (epg--decode-percent-escape): New function.
52 2007-03-08 Daiki Ueno <ueno@unixuser.org>
54 * epg.el (epg-list-keys): Parse GnuPG's print_string escape.
56 2007-03-08 Daiki Ueno <ueno@unixuser.org>
58 * epa-mail.el (epa-mail-mode-hook): New variable.
59 (epa-mail-mode-on-hook): New variable.
60 (epa-mail-mode-off-hook): New variable.
62 * epg.el (epg--start): Make the process-buffer unibyte.
63 (epg--status-USERID_HINT): Decode user-id.
64 (epg--status-IMPORTED): Decode user-id.
66 2007-03-07 Daiki Ueno <ueno@unixuser.org>
68 * epg.el (epg--start): Don't specify --use-agent if the protocol
69 is CMS; set coding-system-for-read to binary.
70 (epg--status-*SIG): Decode user-id.
72 2007-02-02 Daiki Ueno <ueno@unixuser.org>
74 * epa-file.el (epa-file-write-region): Set a dummy filename
75 for buffer-file-name when calling select-safe-coding-system.
77 2007-01-30 Daiki Ueno <ueno@unixuser.org>
79 * epg.el (epg-last-status): New variable.
80 (epg--process-filter): Set epg-last-status after calling a status
82 (epg--prompt-GET_BOOL): New function.
83 (epg--prompt-GET_BOOL-untrusted_key.override): New function.
84 (epg--status-GET_BOOL): Call epg--prompt-GET_BOOL-* instead of
87 2007-01-29 Daiki Ueno <ueno@unixuser.org>
89 * EasyPG: Version 0.0.10 released.
90 * configure.ac: Bump up version.
92 2007-01-29 Daiki Ueno <ueno@unixuser.org>
94 * epg-config.el: Require epg-package-info.
95 * configure.ac: Generate epg-package-info.el.
96 * Makefile.am (DISTCLEANFILES): Added epg-package-info.el.
97 * COMPILE (epg-modules): Added epg-package-info.
98 * epg-package-info.el.in: New file.
100 2007-01-29 Daiki Ueno <ueno@unixuser.org>
102 * epa-setup.el (epa-mail-mode): Autoload; setup mail-mode-hook.
103 * epa.el: Removed epa-*-mail stuff.
104 * Makefile.am (EXTRA_DIST): Added epa-mail.el.
105 * COMPILE (epg-modules): Added epa-mail.
106 * epa-mail.el: New file.
108 2007-01-05 Daiki Ueno <ueno@unixuser.org>
110 * epg-pgp50i.el: Removed.
112 * epa.el (epa-key-list-mode-map): Renamed from epa-keys-mode-map.
113 (epa-key-list-mode): Renamed from epa-keys-mode. All callers
116 * epg.el (epg--status-VALIDSIG): Don't set expiration-time if it
118 (epg--make-sub-key-1): Ditto.
119 (epg--decode-hexstring): "\\x" -> "\\\\x".
120 (epg--decode-quotedstring): Ditto.
122 * pgg-epg.el (pgg-epg-encrypt-region): Ask a user whether to skip a
123 recipient whose public key is not available.
124 * epa.el (epa-encrypt-mail): Ask a user whether to skip a
125 recipient whose public key is not available.
127 2007-01-04 Daiki Ueno <ueno@unixuser.org>
129 * epa.el (epa-decrypt-mail): Renamed from epa-decrypt.
130 (epa-verify-mail): Renamed from epa-verify.
131 (epa-sign-mail): Renamed from epa-sign.
132 (epa-encrypt-mail): Renamed from epa-encrypt.
133 (epa-import-mail): Renamed from epa-import.
135 * configure.ac: Don't exit if GnuPG (>= 1.4.3) is unavailable.
137 * epg.el (epg-signature-to-string): Print creation-time and used
139 (epg-sign-string): If the GnuPG version is earlier than 1.4.3,
140 fallback to use a temp file as an input.
141 (epg-encrypt-string): Ditto.
143 2006-12-31 Daiki Ueno <ueno@unixuser.org>
145 * epa.el (epa-mail-modes): New user option.
146 (epa--mail-mode-p): New function.
148 (epa-encrypt): Use it.
149 (epa--find-coding-system-for-mime-charset): New function.
150 (epa-decrypt-armor-in-region): Use it.
151 (epa-progress-callback-function): Use handback as the prompt.
152 (epa-encrypt-region): Take 4th argument SIGN.
153 (epa-encrypt): Ditto.
155 2006-12-31 Daiki Ueno <ueno@unixuser.org>
157 * epa.el (epa--derived-mode-p): New alias.
159 (epa-encrypt): Use it.
161 2006-12-31 Daiki Ueno <ueno@unixuser.org>
163 * epa.el (epa--read-signature-type): New function.
164 (epa-decrypt): New command.
165 (epa-verify): New command.
166 (epa-sign): New command.
167 (epa-encrypt): New command.
168 (epa-import-armor-in-region): New command.
169 (epa-import): New command.
170 (epa-decrypt-region): Confirm user to replace the region.
171 (epa-display-info): Delete "*Info*" window.
173 2006-12-29 Daiki Ueno <ueno@unixuser.org>
175 * EasyPG: Version 0.0.9 released.
176 * epg-config.el (epg-version-number): Bump up.
177 * configure.ac: Bump up version.
179 2006-12-28 Daiki Ueno <ueno@unixuser.org>
181 * epa.el (epa-sign-file): Ask signing key only when a prefix arg
182 is given; ask signature type only when a prefix arg is given.
183 (epa-sign-region): Ditto.
185 2006-12-26 Daiki Ueno <ueno@unixuser.org>
187 * epg-config.el (epg-passphrase-coding-system): Default to nil.
189 2006-12-20 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
191 * epa.el (epa--format-fingerprint-1): New function.
192 (epa--format-fingerprint): Ditto.
193 (epa--show-key): Use it.
195 2006-12-20 Daiki Ueno <ueno@unixuser.org>
197 * epa-file.el (epa-file-write-region): Don't attempt to write the
198 region to "/" to determine safe coding-system.
200 * epa.el (epa-list-keys): Abolished PROTOCOL arg.
201 (epa-sign-file): Save the output to *.p7s or *.p7m file if
203 (epa-encrypt-file): Ditto.
204 (epa-last-coding-system-specified): New variable.
205 (epa-decrypt-region): Try to decode with the
206 epa-coding-system-used text property.
207 (epa--select-safe-coding-system): New function.
208 (epa-verify-region): Try to decode with the epa-coding-system-used
210 (epa-sign-region): Query user to select coding-system to encode;
211 set the epa-coding-system-used text property on the result.
212 (epa-encrypt-region): Ditto.
214 2006-12-19 Daiki Ueno <ueno@unixuser.org>
216 * epg.el (epg-export-keys-to-file): Fixed a typo.
218 * epa.el (epa-protocol): New user option.
219 (epa-sign-region): --armor & --textmode.
220 (epa-encrypt-region): Ditto.
221 (epa-list-keys): If prefix-arg is specified, use "OpenPGP" as the
223 (epa-import-keys-region): New command.
224 (epa-insert-keys): New command.
225 (epa--insert-keys): Renamed from epa-insert-keys.
227 2006-12-11 Daiki Ueno <ueno@unixuser.org>
229 * pgg-epg.el (pgg-epg-decrypt-region): Don't call
230 decode-coding-string if it is not bound.
232 * epa-file.el (epa-file--encode-coding-string): New alias.
233 (epa-file--decode-coding-string): New alias.
234 (epa-file-write-region): Use epa-file--encode-coding-string.
235 (epa-file-decode-and-insert): Use epa-file--decode-coding-string.
237 * epa.el (epa--encode-coding-string): New alias.
238 (epa--decode-coding-string): New alias.
239 (epa-verify-region): Use epa--encode-coding-string.
240 (epa-sign-region): Ditto; use epa--decode-coding-string.
241 (epa-encrypt-region): Use epa--encode-coding-string.
243 * epg.el (epg--encode-coding-string): New alias.
244 (epg--status-GET_HIDDEN): Use it.
246 2006-11-29 Daiki Ueno <ueno@unixuser.org>
248 * EasyPG: Version 0.0.8 released.
249 * epg-config.el (epg-version-number): Bump up.
250 * configure.ac: Bump up version.
252 2006-11-20 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
254 * epa-file.el (epa-file-encrypt-to): New file local variable.
255 (epa-file-write-region): Specify recipients by epa-file-encrypt-to.
257 2006-11-26 Daiki Ueno <ueno@unixuser.org>
259 * epa.el (epa-sign-file): Query signature type at a time.
260 (epa-decrypt-file): Display output file name on completion.
261 (epa-sign-file): Ditto.
262 (epa-encrypt-file): Ditto.
264 2006-11-25 Daiki Ueno <ueno@unixuser.org>
266 * epa.el (epa-keys-mode): Don't call widget-setup.
267 (epa-list-keys): Call widget-setup here.
268 (epa-select-keys): Ditto.
270 2006-11-24 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
272 * epg.el (epg-delete-keys): Remove redundant argument for `error'
273 and fix a close parenthesis.
275 2006-11-24 Daiki Ueno <ueno@unixuser.org>
277 * epg.el (epg--status-GET_HIDDEN): Encode passphrase with eol-type LF.
278 Reported by Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>.
279 cf. <emacs-mime-ja:02090>
281 2006-11-23 Daiki Ueno <ueno@unixuser.org>
283 * epa.el (epa-sign-region): Query signature type at a time.
285 2006-11-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
287 * epg.el (epg-context-set-passphrase-callback): Add optional
289 (epg-context-set-progress-callback): Ditto.
291 2006-11-14 Daiki Ueno <ueno@unixuser.org>
293 * epa.el (epa--key-widget-value-create): Allow empty user IDs.
294 (epa--show-key): Ditto.
295 Reported by Werner Koch <wk@gnupg.org>.
297 * epg.el (epg--start): Don't specify --enable-progress-filter for
299 (epg--status-PROGRESS): Check if progress-callback is set.
301 2006-11-12 Daiki Ueno <ueno@unixuser.org>
303 * epg.el (epg-error): New error.
304 (epg--check-error-for-decrypt): New function.
305 (epg-decrypt-file): Use it.
306 (epg-decrypt-string): Use it.
307 (epg--start): Added a very basic test to check whether to specify
310 * epa.el (epa-decrypt-file): Expand file name.
311 (epa-verify-file): Ditto.
312 (epa-import-keys): Ditto.
314 2006-11-12 Daiki Ueno <ueno@unixuser.org>
316 * epg.el (epg-delete-keys): Decode delete-problem.
318 * epa.el (epa-popup-info-window): Turn on by default.
319 (epa-display-info): Split selected window instead of pop-to-buffer.
321 2006-11-12 Daiki Ueno <ueno@unixuser.org>
323 * epa.el (epa-display-info): Generalized; renamed from
324 epa-display-verify-result.
325 (epa-decrypt-file): Use it.
326 (epa-verify-file): Use it.
327 (epa-decrypt-region): Use it.
328 (epa-verify-region): Use it.
329 (epa-import-keys): Show import result.
330 (epa-display-verify-result): Make it obsolete.
332 * epg.el (epg-start-sign-keys): Make it obsolete; signing a key is
334 (epg-sign-keys): Make it obsolete.
335 (epg-make-import-status): New object epg-import-status.
336 (epg-make-import-result): New object epg-import-result.
337 (epg--status-IMPORT_RES): New function.
338 (epg-import-result-to-string): New function.
340 * epa.el (epa-keys-mode-map): Don't bind epa-sign-keys.
341 (epa-sign-keys): Make it obsolete.
343 2006-11-11 Daiki Ueno <ueno@unixuser.org>
345 * epg.el (epg-start-sign): Don't set --armor nor --textmode if
346 mode is set for a cleartext signature.
347 (epg-make-context): New slot "sig-notations".
348 (epg--args-from-sig-notations): New function.
349 (epg-start-sign): Specify --sig-notation or --sig-policy-url if
351 (epg-start-encrypt): Ditto.
352 (epg-make-signature): New slot "notations".
353 (epg--status-NOTATION_NAME): New function.
354 (epg--status-NOTATION_DATA): New function.
355 (epg--status-POLICY_URL): New function.
357 2006-10-29 Daiki Ueno <ueno@unixuser.org>
359 * EasyPG: Version 0.0.7 released.
360 * epg-config.el (epg-version-number): Bump up.
361 * configure.ac: Bump up version.
363 2006-10-29 Daiki Ueno <ueno@unixuser.org>
366 (epa-file-cache-passphrase-for-symmetric-encryption): New user
369 2006-10-12 Daiki Ueno <ueno@unixuser.org>
371 * epg.el (epg-start-verify): Fixed a clearsign verification bug.
372 Reported by Hirohisa Yamaguchi <umq@ueo.co.jp>.
374 2006-09-29 Daiki Ueno <ueno@unixuser.org>
376 * EasyPG: Version 0.0.6 released.
377 * epg.el (epg-version-number): Bump up.
378 * configure.ac: Bump up version.
380 2006-09-29 Daiki Ueno <ueno@unixuser.org>
382 * epa.el (epa-verify-cleartext-in-region): Renamed from
383 epa-verify-armor-in-region.
385 * epg.el (epg-passphrase-callback-function): Suggest to use
386 epa-passphrase-callback-function instead.
387 (epg-start-verify): Don't specify --verify if SIGNATURE is a
388 normal or a clear text signature.
389 (epg-verify-file): Mention that the plaintext will be stored into
390 the file PLAIN after successful verification.
391 (epg-verify-string): Mention that the plaintext will be returned
392 after successful verification.
394 2006-09-27 Daiki Ueno <ueno@unixuser.org>
396 * epa-file.el (epa-file-insert-file-contents): Set progress callback.
397 (epa-file-write-region): Ditto.
399 * epa.el (epa-decrypt-file): Set callbacks.
400 (epa-sign-file): Ditto.
401 (epa-encrypt-file): Ditto.
402 (epa-decrypt-region): Ditto.
403 (epa-sign-region): Ditto.
404 (epa-encrypt-region): Ditto.
405 (epa-sign-keys): Ditto.
407 * epg.el (epg-progress-callback-function): Removed.
409 2006-09-24 Daiki Ueno <ueno@unixuser.org>
411 * epa.el (epa-passphrase-callback-function): Moved from epg.el.
412 (epa-progress-callback-function): Ditto.
413 * epg.el (epg-passphrase-callback-function): Made it obsolete.
414 (epg-progress-callback-function): Ditto.
416 2006-09-23 Daiki Ueno <ueno@unixuser.org>
418 * epg.el (epg-start-decrypt): Append "--" to the end of options.
419 (epg-start-verify): Ditto.
420 (epg-start-sign): Ditto.
421 (epg-start-encrypt): Ditto.
422 (epg-start-import-keys): Ditto.
423 (epg-start-generate-key): Ditto.
425 2006-09-23 Daiki Ueno <ueno@unixuser.org>
427 * epg.el (epg-make-context): Don't set progress-callback by
429 (epg--start): Don't specify --enable-progress-filter if
430 progress-callback is not set.
431 (epg--status-GET_HIDDEN): Signal an error if passphrase-callback
434 2006-09-15 Daiki Ueno <ueno@unixuser.org>
436 * epg.el (epg-progress-callback-function): Show the percentage.
438 2006-09-15 Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr>
440 * pgg-epg.el (mml2015-gpg-extract-signature-details): Fixed a typo.
442 2006-09-13 Daiki Ueno <ueno@unixuser.org>
444 * epg-config.el (epg-passphrase-coding-system): Renamed from
445 epg-locale-coding-system.
447 2006-09-11 Daiki Ueno <ueno@unixuser.org>
449 * epa-file.el (epa-file-decode-and-insert): New function which
450 utilizes decode-coding-inserted-region if available.
451 (epa-file-insert-file-contents): Use it.
453 * epg.el (epg--start): Specify --enable-progress-filter in
455 (epg-progress-callback-function): Remove a couple of %%'s.
457 2006-09-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
459 * epg-config.el (epg-configuration): Fixed the last change;
460 collect configuration other than group and algorithm.
462 2006-09-05 Daiki Ueno <ueno@unixuser.org>
464 * epg-config.el (epg-debug): Moved from epg.el.
465 (epg-configuration): Parse group configuration.
466 (epg-expand-group): New function.
468 2006-09-04 Daiki Ueno <ueno@unixuser.org>
470 * EasyPG: Version 0.0.5 released.
471 * epg.el (epg-version-number): Bump up.
472 * configure.ac: Bump up version.
474 2006-09-04 Daiki Ueno <ueno@unixuser.org>
476 * epg-config.el (epg-locale-coding-system): New user option.
478 * epg.el (epg--list-keys-1): Respect epg-gpg-home-directory.
479 (epg--clear-string): New function.
480 (epg--status-GET_HIDDEN): Encode passphrase with
481 terminal-coding-system.
483 * epg-config.el (epg-gpg-minimum-version): New constant.
484 (epg-config--parse-version): New function.
485 (epg-config--compare-version): New function.
486 (epg-configuration): Respect epg-gpg-home-directory.
488 2006-09-03 Daiki Ueno <ueno@unixuser.org>
490 * epg-config.el: New file; moved GnuPG configuration check from
493 2006-09-02 Daiki Ueno <ueno@unixuser.org>
495 * epg.el (epg-check-configuration): New function.
496 (epg-gpg-home-directory): New user option.
498 * pgg-epg.el (pgg-epg-lookup-key): New function.
500 2006-07-29 Daiki Ueno <ueno@unixuser.org>
502 * EasyPG: Version 0.0.4 released.
503 * epg.el (epg-version-number): Bump up.
504 * configure.ac: Bump up version.
506 2006-07-29 Daiki Ueno <ueno@unixuser.org>
508 * acinclude.m4 (AC_CHECK_GPG): Run $3 if there is no gpg executable.
510 2006-07-28 Daiki Ueno <ueno@unixuser.org>
512 * epg.el (epg-start-encrypt): Extract primary key ID from
514 Thanks to Steve Youngs <steve@sxemacs.org>
516 * pgg-epg.el (pgg-epg-encrypt-region): Fixed a bug; it didn't
517 give CONTEXT to epg-list-keys.
518 Thanks to Steve Youngs <steve@sxemacs.org>
520 2006-07-18 Daiki Ueno <ueno@unixuser.org>
522 * epg-pgp50i.el (epg-pgp50i--process-filter): Use
523 epg-process-filter-running instead of epg-pgp50i-status; Don't
524 save-excursion during handler execution.
525 (epg-pgp50i--read-line): Renamed from epg-pgp50i--wait-for-line;
526 don't allow process input.
527 (epg-pgp50i--parse-time): New function.
528 (epg-pgp50i--status-BAD_SIGNATURE): New function.
530 * epg.el (epg--process-filter): Don't save-excursion during
533 2006-07-18 Daiki Ueno <ueno@unixuser.org>
535 * acinclude.m4 (AC_CHECK_GPG): Renamed from AC_PATH_GPG.
537 * epg.el (epg-process-filter-running): New variable.
538 (epg--start): Setup epg-process-filter-running.
539 (epg--process-filter): Allow only one status handler to run at a
540 time; update epg-read-point everytime the point changes.
542 2006-07-14 Daiki Ueno <ueno@unixuser.org>
544 * epg-pgp50i.el: New file.
546 2006-07-13 Daiki Ueno <ueno@unixuser.org>
548 * acinclude.m4 (AC_PATH_GPG): New macro.
549 * configure.ac: Check gpg version.
550 Suggested by Max Froumentin <max@lapin-bleu.net>
552 2006-07-10 Daiki Ueno <ueno@unixuser.org>
554 * epg.el (epg--status-ERRSIG): Don't remove the last verify-result.
555 (epg-signature-to-string): Remove a trailing whitespace.
557 * epa.el (epa-keys-mode-map): Bind return to epa-toggle-mark.
558 (epa-toggle-mark): New command.
560 2006-07-04 Daiki Ueno <ueno@unixuser.org>
562 * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched
563 with pgg-default-user-id.
564 Reported by Elias Oltmanns <oltmanns@uni-bonn.de>
566 2006-07-01 Daiki Ueno <ueno@unixuser.org>
568 * epa.el (epa-select-keys): If SECRET is specified, select a
569 primary secret key by default.
571 2006-06-29 Daiki Ueno <ueno@unixuser.org>
573 * EasyPG: Version 0.0.3 released.
574 * epg.el (epg-version-number): Bump up.
575 * configure.ac: Bump up version.
577 2006-06-12 Daiki Ueno <ueno@unixuser.org>
579 * epa-file.el (epa-file-insert-file-contents): Don't move the
580 point to the end of the inserted region.
581 Reported by doug <douglas.bagley@gmail.com>
583 2006-06-01 Daiki Ueno <ueno@unixuser.org>
585 * epa-file.el (epa-file-insert-file-contents): Support partial read.
587 2006-05-30 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
589 * epa-file.el (epa-file-write-region): Encode the plain text with
590 coding-system-for-write.
592 2006-05-30 Daiki Ueno <ueno@unixuser.org>
594 * epa-file.el (epa-file-insert-file-contents):
595 Decode the decrypted text with coding-system-for-read.
597 2006-05-29 Daiki Ueno <ueno@unixuser.org>
599 * EasyPG: Version 0.0.2 released.
600 * epg.el (epg-version-number): Bump up.
601 * configure.ac: Bump up version.
603 2006-05-29 Daiki Ueno <ueno@unixuser.org>
605 * epg.el (epg--time-from-seconds): New function.
606 (epg--status-ERRSIG): Convert seconds from epoch to encoded-time.
607 (epg--status-VALIDSIG): Ditto.
608 (epg--status-KEYEXPIRED): Ditto.
610 2006-05-28 Daiki Ueno <ueno@unixuser.org>
612 * epg.el (epg-start-import-keys): Don't specify filename if keys
615 2006-05-27 Daiki Ueno <ueno@unixuser.org>
617 * epg.el (epg--process-filter): Pass epg-context instead of
618 process to status handlers.
619 (epg--status-NO_PUBKEY): Check if the previous signature's key-id
620 matches with the given key-id.
622 2006-05-26 Daiki Ueno <ueno@unixuser.org>
624 * epg.el (epg--status-NO_PUBKEY): Replace the previous signature's
625 status from 'error to 'no-pubkey.
626 (epg--status-ERRSIG): Just add 'error signature to the verify result.
628 * epa.el (epa-insert-keys): Renamed from epa-list-keys-1; don't
629 disable inhibit-quit here; make text-properties nonsticky.
630 (epa-popup-info-window): New user option.
631 (epa-info-window-height): New user option.
632 (epa-display-verify-result): New function.
633 (epa-decrypt-file): Use it.
634 (epa-verify-file): Use it.
635 (epa-decrypt-region): Use it.
636 (epa-verify-region): Use it.
638 * epg.el (epg-make-context): New slot "operation".
639 (epg-passphrase-callback-function): Confirm passphrase when
640 performing symmetric encryption.
642 2006-05-25 Daiki Ueno <ueno@unixuser.org>
644 * epa.el (epa-decrypt-file): Display verify result if the message
646 (epa-decrypt-region): New command.
647 (epa-verify-region): New command.
648 (epa-decrypt-armor-in-region): New command.
649 (epa-verify-armor-in-region): New command.
650 (epa-sign-region): New command.
651 (epa-encrypt-region): New command.
653 2006-05-11 Daiki Ueno <ueno@unixuser.org>
655 * epa.el (epa-armor): New user option.
656 (epa-textmode): New user option.
658 2006-05-02 Daiki Ueno <ueno@unixuser.org>
660 * epg.el (epg-make-key-signature): New object epg-key-signature.
661 (epg-list-keys): Collect key signatures.
662 (epg-make-sub-key): Renamed secret -> secret-p.
663 (epg-list-keys-postprocess-one-key): Abolished.
664 (epg-list-keys): Reverse all keys, sub-keys, user-ids, and key
665 signatures by itself.
666 (epg-no-data-reason-alist): New constant.
667 (epg-unexpected-reason-alist): New constant.
669 2006-05-01 Daiki Ueno <ueno@unixuser.org>
671 * epg.el (epg-invalid-recipients-reason-alist): Renamed.
672 (epg-delete-problem-reason-alist): Renamed.
673 (epg-import-ok-reason-alist): New constant.
674 (epg-import-problem-reason-alist): New constant.
675 (epg-status-IMPORTED): New function.
676 (epg-status-IMPORT_OK): New function.
677 (epg-status-IMPORT_PROBLEM): New function.
678 (epg-start-import-keys): Don't use a temporary output file.
679 (epg-start-receive-keys): New function.
680 (epg-import-keys-from-server): New function.
681 (epg-receive-keys): Alias to epg-import-keys-from-server.
683 2006-05-01 Daiki Ueno <ueno@unixuser.org>
685 * epg.el (epg-start): Signal an error if the process of CONTEXT is
686 already running for other operations.
687 (epg-flush): Abolished.
688 (epg-start-generate-key): New function.
689 (epg-generate-key-from-file): New function.
690 (epg-generate-key-from-string): New function.
691 (epg-status-KEY_CREATED): New function.
692 (epg-status-KEY_NOT_CREATED): New function.
693 (epg-new-signature-type-alist): New variable.
694 (epg-make-new-signature): New object epg-new-signature.
695 (epg-status-SIG_CREATED): Set epg-new-signature object.
696 (epg-new-signature-to-string): New function.
697 (epg-make-signature): Added slots for signature class and version.
698 (epg-start-sign): Fixed rule of the MODE argument.
700 2006-04-30 Daiki Ueno <ueno@unixuser.org>
702 * epa.el (epa-delete-keys): Support deletion of secret keys.
704 * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
707 * epg.el (epg-read-output): Don't convert line endings of the
709 (epg-cancel): Set 'error result.
711 2006-04-29 Daiki Ueno <ueno@unixuser.org>
713 * epg.el (epg-make-signature): Removed user-id; added
714 creation-time, expiration-time, pubkey-algorithm,
716 (epg-process-sentinel): Abolished.
717 (epg-signature-to-string): Decode DN.
718 (epg-list-keys): Cache user-id in epg-user-id-alist.
719 (epg-make-user-id): Renamed name -> string.
721 2006-04-29 Daiki Ueno <ueno@unixuser.org>
723 * epg.el (epg-status-ERRSIG): New function.
724 (epg-verify-file): Signal an error if we encounter ERRSIG status.
725 (epg-verify-string): Ditto.
727 2006-04-28 Daiki Ueno <ueno@unixuser.org>
729 * epg.el: Added typecheck to accessors to objects.
731 2006-04-26 Daiki Ueno <ueno@unixuser.org>
733 * epg.el (epg-status-GET_HIDDEN): Pass epg-context as the first
734 argument of passphrase-callback.
735 (epg-status-PROGRESS): Ditto.
737 2006-04-26 Daiki Ueno <ueno@unixuser.org>
739 * epa.el (epa-select-keys): Don't set inhibit-quit when
740 recursive-edit is called.
741 (epg-cancel): New function.
743 2006-04-25 Daiki Ueno <ueno@unixuser.org>
745 * epg.el (epg-process-sentinel): New function; set 'error if gpg
746 process exited abnormally, but we have not received an error
748 (epg-sign-file): Signal an error only when a signature is not
750 (epg-sign-string): Ditto.
751 (epg-encrypt-file): Signal an error if SIGN is specified and
752 signature is not created.
753 (epg-encrypt-string): Ditto.
755 2006-04-22 Daiki Ueno <ueno@unixuser.org>
757 * epa.el (epa-key-widget-value-create): Decode DN.
758 (epa-list-keys): Add the PROTOCOL argument.
759 (epa-select-keys): Require CONTEXT as the first argument.
761 * epg.el (epg-gpgsm-program): New user option.
762 (epg-dn-type-alist): New variable.
763 (epg-start): Don't specify --command-fd if protocol is CMS.
764 (epg-list-keys): Require CONTEXT as the first argument.
765 (epg-dn-from-string): New function.
766 (epg-decode-dn): New function.
768 2006-04-21 Daiki Ueno <ueno@unixuser.org>
770 * epa.el (epa-sign-keys): New command.
772 * epg.el (epg-start-sign-keys): New function.
773 (epg-sign-keys): New function.
774 (epg-status-GET_HIDDEN): Enable local quit.
775 (epg-status-GET_BOOL): Ditto.
776 (epg-status-GET_LINE): Ditto.
778 2006-04-20 Daiki Ueno <ueno@unixuser.org>
780 * epa.el (epa-list-keys-1): Add 'epa-list-keys property to keylist
783 2006-04-20 Daiki Ueno <ueno@unixuser.org>
785 * pgg-epg.el (pgg-epg-secret-key-id-list): New variable.
786 (pgg-epg-passphrase-callback): New function.
788 * epa.el (epa-select-keys): Added "Cancel" button.
790 2006-04-20 Daiki Ueno <ueno@unixuser.org>
792 * epg.el (epg-signature-to-string): New function.
794 2006-04-20 Daiki Ueno <ueno@unixuser.org>
796 * epa-file.el (epa-file-write-region): RECIPIENTS is now a list of
798 * epa-dired.el (epa-dired-do-encrypt): RECIPIENTS is now a list of
801 * epa.el (epa-select-keys): Added MODE argument.
802 (epa-encrypt-file): RECIPIENTS is now a list of key objects.
804 * epg.el (epg-status-SIG_CREATED): New function.
805 (epg-start-sign): epg-context-signers is now a list of key objects.
806 (epg-start-encrypt): RECIPIENTS is now a list of key objects.
808 2006-04-19 Daiki Ueno <ueno@unixuser.org>
810 * epa.el (epa-verify-file): Show results in minibuffer.
811 * epg.el (epg-debug-buffer): New variable.
812 (epg-flush): New function.
814 2006-04-18 Daiki Ueno <ueno@unixuser.org>
816 * epa.el (epa-export-keys): New command.
817 * epg.el (epg-start-export-keys): Accept a list of epg-key object
820 2006-04-18 Daiki Ueno <ueno@unixuser.org>
822 * epa.el (epa-keys-mode-map): Bind epa-list-keys; epa-import-key.
823 (epa-import-key): New command.
825 * epg.el (epg-delete-problem-alist): New constant.
826 (epg-status-DELETE_PROBLEM): New function.
827 (epg-start-delete-key): New function.
828 (epg-delete-key): New function.
829 (epg-wait-for-completion): Add the NO-EOF argument.
831 2006-04-18 Daiki Ueno <ueno@unixuser.org>
833 * epg.el (epg-start): Insert the command-line arguments to the
835 (epg-start-encrypt): Wait for BEGIN_ENCRYPTION.
836 (epg-start-delete-key): New function.
837 (epg-delete-key): New function.
839 * epa.el (epa-key): New widget.
840 (epa-key-widget-action): New function.
841 (epa-key-widget-value-create): New function.
842 (epa-key-widget-button-face-get): New function.
843 (epa-key-widget-help-echo): New function.
845 2006-04-17 Daiki Ueno <ueno@unixuser.org>
847 * epa-file.el (epa-file-write-region): Check if START is a string.
849 2006-04-17 Daiki Ueno <ueno@unixuser.org>
851 * epa-file.el: Rewritten with file-name-handler.
852 (epa-file-handler): New variable.
853 (epa-file-enable): New command.
854 (epa-file-disable): New command.
856 * epa-setup.el: Call epa-file-enable.
858 2006-04-17 Daiki Ueno <ueno@unixuser.org>
860 * epa-file.el (epa-passphrase): New variable.
861 (epa-file-passphrase-callback-function): New function.
862 (epa-find-file): Reset buffer-undo-list; set
863 buffer-file-coding-system to last-coding-system-used after
866 2006-04-17 Daiki Ueno <ueno@unixuser.org>
868 * epa-file.el (epa-write-file): Try to write region to "/" to get
869 last-coding-system-used to be set.
871 2006-04-17 Daiki Ueno <ueno@unixuser.org>
873 * epa-file.el: New implementation of epf.el.
877 2006-04-17 Daiki Ueno <ueno@unixuser.org>
879 * epa.el (epa-verify-file): Display verify result.
881 * epg.el (epg-invalid-recipients-alist): New variable.
882 (epg-status-INV_RECP): New function.
883 (epg-status-NO_RECP): New function.
885 * epa.el (epa-keys-mode-map): Bind epa-decrypt-file,
886 epa-verify-file, epa-sign-file, and epa-encrypt-file.
887 (epa-decrypt-file): New function imported from epa-dired.el.
888 (epa-verify-file): New function imported from epa-dired.el.
889 (epa-sign-file): New function imported from epa-dired.el.
890 (epa-encrypt-file): New function imported from epa-dired.el.
892 2006-04-16 Daiki Ueno <ueno@unixuser.org>
894 * epa.el (epa-select-keys): Renamed from epa-ask-keys; use
896 * epa-dired.el (epa-dired-encrypt-file): Use epa-select-keys.
898 2006-04-16 Daiki Ueno <ueno@unixuser.org>
900 * epa-setup.el: New file.
901 * epa-dired.el: New file.
903 * epg.el (epg-colons-pub-spec): Abolished.
904 (epg-colons-sec-spec): Abolished.
905 (epg-colons-uid-spec): Abolished.
906 (epg-colons-fpr-spec): Abolished.
907 (epg-key-validity-alist): New variable.
908 (epg-key-capablity-alist): New variable.
909 (epg-make-key): New object epg-key.
910 (epg-make-sub-key): New object epg-sub-key.
911 (epg-make-user-id): New object epg-user-id.
912 (epg-list-keys-1): Renamed from epg-list-keys.
913 (epg-list-keys): Rewritten.
915 2006-04-15 Daiki Ueno <ueno@unixuser.org>
917 * epg.el (epg-list-keys): Make the NAME argument optional.
919 2006-04-13 Daiki Ueno <ueno@unixuser.org>
921 * epa.el: Added header.
923 * epg.el (epg-list-keys): Specify --with-fingerprint.
924 (epg-colons-fpr-spec): New variable.
925 (epg-colons-pub-spec): Renamed trust -> validity and ownertrust ->
927 (epg-colons-sec-spec): Ditto.
928 (epg-colons-uid-spec): Renamed trust -> validity.
930 2006-04-13 Daiki Ueno <ueno@unixuser.org>
934 * epg.el (epg-cipher-algorithm-alist): New constant.
935 (epg-pubkey-algorithm-alist): New constant.
936 (epg-digest-algorithm-alist): New constant.
937 (epg-compress-algorithm-alist): New constant.
938 (epg-configuration): New function.
939 (epg-start): Don't specify --yes.
941 2006-04-13 Daiki Ueno <ueno@unixuser.org>
943 * epg.el (epg-make-data-from-file): New function.
944 (epg-make-data-from-string): New function.
945 (epg-data-file): New function.
946 (epg-data-string): New function.
947 (epg-start-decrypt): Get a cipher text from a data object.
948 (epg-delete-output-file): New function.
949 (epg-decrypt-file): Add the 3rd argument PLAIN to specify where
951 (epg-start-verify): Get a signature and signed-text from a data
953 (epg-verify-file): Added the 3rd argument PLAIN to specify where
954 the output goes; return the plain text if PLAIN is nil.
955 (epg-verify-string): Return the plain text.
956 (epg-start-sign): Get a plain text from a data object.
957 (epg-sign-file): Added the 3rd argument SIGNATURE to specify where
959 (epg-start-encrypt): Get a plain text from a data object.
960 (epg-encrypt-file): Added the 4th argument CIPHER to specify where
962 (epg-start-import-keys): Get keys from a data object.
963 (epg-import-keys-1): New function.
964 (epg-import-keys-from-file): Use it.
965 (epg-import-keys-from-string): Use it.
967 2006-04-12 Daiki Ueno <ueno@unixuser.org>
969 * epf.el: Renamed from epg-file.el.
971 2006-04-12 Daiki Ueno <ueno@unixuser.org>
973 * epg.el (epg-status-GET_BOOL): New function.
974 (epg-status-GET_LINE): New function.
975 (epg-prompt-alist): New variable, to be filled.
977 * pgg-epg.el (mml2015-gpg-extract-signature-details): New function.
978 * epg.el (epg-signature-fingerprint): New function.
979 (epg-signature-set-fingerprint): New function.
980 (epg-status-VALIDSIG): New function.
982 * epg.el (epg-reset): Don't reset result.
983 (epg-start-decrypt): Reset result before epg-start.
984 (epg-start-verify): Ditto.
985 (epg-start-sign): Ditto.
986 (epg-start-encrypt): Ditto.
987 (epg-start-export-keys): Ditto.
988 (epg-start-import-keys): Ditto.
990 * Makefile.am (EXTRA_DIST): Added pgg-epg.el.
991 * pgg-epg.el: New file.
993 * epg.el (epg-start-export-keys): New function.
994 (epg-export-keys): New function.
995 (epg-start-import-keys): New function.
996 (epg-import-keys): New function.
997 (epg-verify-file): New function.
999 * epg-file.el (epg-file-write-region): Support public key encryption.
1001 * epg.el (epg-passphrase-callback-function): Always display key-id.