1 2007-03-26 Daiki Ueno <ueno@unixuser.org>
3 * epa.el (epa--insert-keys): Changed arglist. All callers changed.
5 2007-03-25 Daiki Ueno <ueno@unixuser.org>
7 * epa.el (epa-protocol): defcustom -> defvar.
11 2007-03-24 Daiki Ueno <ueno@unixuser.org>
13 * epa.el (epa-select-keys): Simplified; don't select the first
15 (epa-key-list-mode-map): Bind revert-buffer instead of
17 (epa-key-list-mode): Set revert-buffer-function to epa--revert-buffer.
18 (epa--revert-buffer): New function.
20 * epg.el (epg--list-keys-1): Accept a list of strings as NAME
22 (epg-list-keys): Ditto.
24 2007-03-21 Daiki Ueno <ueno@unixuser.org>
26 * epa-file.el (epa-file-inhibit-auto-save): New user option.
27 (epa-file-insert-file-contents): Turn off auto-save-mode if
28 epa-file-inhibit-auto-save is non-nil.
29 Reported by "[ #9937] epa-file auto-saves in plain text"
31 * epa.el (epa--list-keys): New function.
32 (epa-list-keys): Use it.
33 (epa-list-secret-keys): New command.
35 2007-03-20 Daiki Ueno <ueno@unixuser.org>
37 * epa.el (epa-display-info): Generate new *Info* buffer if buffer
39 (epa-verify-cleartext-in-region): s/armor/cleartext/g.
41 * Makefile.am (info_TEXINFOS): Added epa.texi.
44 2007-03-19 Daiki Ueno <ueno@unixuser.org>
46 * epg.el (epg--decode-percent-escape): New function.
48 2007-03-08 Daiki Ueno <ueno@unixuser.org>
50 * epg.el (epg-list-keys): Parse GnuPG's print_string escape.
52 2007-03-08 Daiki Ueno <ueno@unixuser.org>
54 * epa-mail.el (epa-mail-mode-hook): New variable.
55 (epa-mail-mode-on-hook): New variable.
56 (epa-mail-mode-off-hook): New variable.
58 * epg.el (epg--start): Make the process-buffer unibyte.
59 (epg--status-USERID_HINT): Decode user-id.
60 (epg--status-IMPORTED): Decode user-id.
62 2007-03-07 Daiki Ueno <ueno@unixuser.org>
64 * epg.el (epg--start): Don't specify --use-agent if the protocol
65 is CMS; set coding-system-for-read to binary.
66 (epg--status-*SIG): Decode user-id.
68 2007-02-02 Daiki Ueno <ueno@unixuser.org>
70 * epa-file.el (epa-file-write-region): Set a dummy filename
71 for buffer-file-name when calling select-safe-coding-system.
73 2007-01-30 Daiki Ueno <ueno@unixuser.org>
75 * epg.el (epg-last-status): New variable.
76 (epg--process-filter): Set epg-last-status after calling a status
78 (epg--prompt-GET_BOOL): New function.
79 (epg--prompt-GET_BOOL-untrusted_key.override): New function.
80 (epg--status-GET_BOOL): Call epg--prompt-GET_BOOL-* instead of
83 2007-01-29 Daiki Ueno <ueno@unixuser.org>
85 * EasyPG: Version 0.0.10 released.
86 * configure.ac: Bump up version.
88 2007-01-29 Daiki Ueno <ueno@unixuser.org>
90 * epg-config.el: Require epg-package-info.
91 * configure.ac: Generate epg-package-info.el.
92 * Makefile.am (DISTCLEANFILES): Added epg-package-info.el.
93 * COMPILE (epg-modules): Added epg-package-info.
94 * epg-package-info.el.in: New file.
96 2007-01-29 Daiki Ueno <ueno@unixuser.org>
98 * epa-setup.el (epa-mail-mode): Autoload; setup mail-mode-hook.
99 * epa.el: Removed epa-*-mail stuff.
100 * Makefile.am (EXTRA_DIST): Added epa-mail.el.
101 * COMPILE (epg-modules): Added epa-mail.
102 * epa-mail.el: New file.
104 2007-01-05 Daiki Ueno <ueno@unixuser.org>
106 * epg-pgp50i.el: Removed.
108 * epa.el (epa-key-list-mode-map): Renamed from epa-keys-mode-map.
109 (epa-key-list-mode): Renamed from epa-keys-mode. All callers
112 * epg.el (epg--status-VALIDSIG): Don't set expiration-time if it
114 (epg--make-sub-key-1): Ditto.
115 (epg--decode-hexstring): "\\x" -> "\\\\x".
116 (epg--decode-quotedstring): Ditto.
118 * pgg-epg.el (pgg-epg-encrypt-region): Ask a user whether to skip a
119 recipient whose public key is not available.
120 * epa.el (epa-encrypt-mail): Ask a user whether to skip a
121 recipient whose public key is not available.
123 2007-01-04 Daiki Ueno <ueno@unixuser.org>
125 * epa.el (epa-decrypt-mail): Renamed from epa-decrypt.
126 (epa-verify-mail): Renamed from epa-verify.
127 (epa-sign-mail): Renamed from epa-sign.
128 (epa-encrypt-mail): Renamed from epa-encrypt.
129 (epa-import-mail): Renamed from epa-import.
131 * configure.ac: Don't exit if GnuPG (>= 1.4.3) is unavailable.
133 * epg.el (epg-signature-to-string): Print creation-time and used
135 (epg-sign-string): If the GnuPG version is earlier than 1.4.3,
136 fallback to use a temp file as an input.
137 (epg-encrypt-string): Ditto.
139 2006-12-31 Daiki Ueno <ueno@unixuser.org>
141 * epa.el (epa-mail-modes): New user option.
142 (epa--mail-mode-p): New function.
144 (epa-encrypt): Use it.
145 (epa--find-coding-system-for-mime-charset): New function.
146 (epa-decrypt-armor-in-region): Use it.
147 (epa-progress-callback-function): Use handback as the prompt.
148 (epa-encrypt-region): Take 4th argument SIGN.
149 (epa-encrypt): Ditto.
151 2006-12-31 Daiki Ueno <ueno@unixuser.org>
153 * epa.el (epa--derived-mode-p): New alias.
155 (epa-encrypt): Use it.
157 2006-12-31 Daiki Ueno <ueno@unixuser.org>
159 * epa.el (epa--read-signature-type): New function.
160 (epa-decrypt): New command.
161 (epa-verify): New command.
162 (epa-sign): New command.
163 (epa-encrypt): New command.
164 (epa-import-armor-in-region): New command.
165 (epa-import): New command.
166 (epa-decrypt-region): Confirm user to replace the region.
167 (epa-display-info): Delete "*Info*" window.
169 2006-12-29 Daiki Ueno <ueno@unixuser.org>
171 * EasyPG: Version 0.0.9 released.
172 * epg-config.el (epg-version-number): Bump up.
173 * configure.ac: Bump up version.
175 2006-12-28 Daiki Ueno <ueno@unixuser.org>
177 * epa.el (epa-sign-file): Ask signing key only when a prefix arg
178 is given; ask signature type only when a prefix arg is given.
179 (epa-sign-region): Ditto.
181 2006-12-26 Daiki Ueno <ueno@unixuser.org>
183 * epg-config.el (epg-passphrase-coding-system): Default to nil.
185 2006-12-20 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
187 * epa.el (epa--format-fingerprint-1): New function.
188 (epa--format-fingerprint): Ditto.
189 (epa--show-key): Use it.
191 2006-12-20 Daiki Ueno <ueno@unixuser.org>
193 * epa-file.el (epa-file-write-region): Don't attempt to write the
194 region to "/" to determine safe coding-system.
196 * epa.el (epa-list-keys): Abolished PROTOCOL arg.
197 (epa-sign-file): Save the output to *.p7s or *.p7m file if
199 (epa-encrypt-file): Ditto.
200 (epa-last-coding-system-specified): New variable.
201 (epa-decrypt-region): Try to decode with the
202 epa-coding-system-used text property.
203 (epa--select-safe-coding-system): New function.
204 (epa-verify-region): Try to decode with the epa-coding-system-used
206 (epa-sign-region): Query user to select coding-system to encode;
207 set the epa-coding-system-used text property on the result.
208 (epa-encrypt-region): Ditto.
210 2006-12-19 Daiki Ueno <ueno@unixuser.org>
212 * epg.el (epg-export-keys-to-file): Fixed a typo.
214 * epa.el (epa-protocol): New user option.
215 (epa-sign-region): --armor & --textmode.
216 (epa-encrypt-region): Ditto.
217 (epa-list-keys): If prefix-arg is specified, use "OpenPGP" as the
219 (epa-import-keys-region): New command.
220 (epa-insert-keys): New command.
221 (epa--insert-keys): Renamed from epa-insert-keys.
223 2006-12-11 Daiki Ueno <ueno@unixuser.org>
225 * pgg-epg.el (pgg-epg-decrypt-region): Don't call
226 decode-coding-string if it is not bound.
228 * epa-file.el (epa-file--encode-coding-string): New alias.
229 (epa-file--decode-coding-string): New alias.
230 (epa-file-write-region): Use epa-file--encode-coding-string.
231 (epa-file-decode-and-insert): Use epa-file--decode-coding-string.
233 * epa.el (epa--encode-coding-string): New alias.
234 (epa--decode-coding-string): New alias.
235 (epa-verify-region): Use epa--encode-coding-string.
236 (epa-sign-region): Ditto; use epa--decode-coding-string.
237 (epa-encrypt-region): Use epa--encode-coding-string.
239 * epg.el (epg--encode-coding-string): New alias.
240 (epg--status-GET_HIDDEN): Use it.
242 2006-11-29 Daiki Ueno <ueno@unixuser.org>
244 * EasyPG: Version 0.0.8 released.
245 * epg-config.el (epg-version-number): Bump up.
246 * configure.ac: Bump up version.
248 2006-11-20 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
250 * epa-file.el (epa-file-encrypt-to): New file local variable.
251 (epa-file-write-region): Specify recipients by epa-file-encrypt-to.
253 2006-11-26 Daiki Ueno <ueno@unixuser.org>
255 * epa.el (epa-sign-file): Query signature type at a time.
256 (epa-decrypt-file): Display output file name on completion.
257 (epa-sign-file): Ditto.
258 (epa-encrypt-file): Ditto.
260 2006-11-25 Daiki Ueno <ueno@unixuser.org>
262 * epa.el (epa-keys-mode): Don't call widget-setup.
263 (epa-list-keys): Call widget-setup here.
264 (epa-select-keys): Ditto.
266 2006-11-24 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
268 * epg.el (epg-delete-keys): Remove redundant argument for `error'
269 and fix a close parenthesis.
271 2006-11-24 Daiki Ueno <ueno@unixuser.org>
273 * epg.el (epg--status-GET_HIDDEN): Encode passphrase with eol-type LF.
274 Reported by Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>.
275 cf. <emacs-mime-ja:02090>
277 2006-11-23 Daiki Ueno <ueno@unixuser.org>
279 * epa.el (epa-sign-region): Query signature type at a time.
281 2006-11-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
283 * epg.el (epg-context-set-passphrase-callback): Add optional
285 (epg-context-set-progress-callback): Ditto.
287 2006-11-14 Daiki Ueno <ueno@unixuser.org>
289 * epa.el (epa--key-widget-value-create): Allow empty user IDs.
290 (epa--show-key): Ditto.
291 Reported by Werner Koch <wk@gnupg.org>.
293 * epg.el (epg--start): Don't specify --enable-progress-filter for
295 (epg--status-PROGRESS): Check if progress-callback is set.
297 2006-11-12 Daiki Ueno <ueno@unixuser.org>
299 * epg.el (epg-error): New error.
300 (epg--check-error-for-decrypt): New function.
301 (epg-decrypt-file): Use it.
302 (epg-decrypt-string): Use it.
303 (epg--start): Added a very basic test to check whether to specify
306 * epa.el (epa-decrypt-file): Expand file name.
307 (epa-verify-file): Ditto.
308 (epa-import-keys): Ditto.
310 2006-11-12 Daiki Ueno <ueno@unixuser.org>
312 * epg.el (epg-delete-keys): Decode delete-problem.
314 * epa.el (epa-popup-info-window): Turn on by default.
315 (epa-display-info): Split selected window instead of pop-to-buffer.
317 2006-11-12 Daiki Ueno <ueno@unixuser.org>
319 * epa.el (epa-display-info): Generalized; renamed from
320 epa-display-verify-result.
321 (epa-decrypt-file): Use it.
322 (epa-verify-file): Use it.
323 (epa-decrypt-region): Use it.
324 (epa-verify-region): Use it.
325 (epa-import-keys): Show import result.
326 (epa-display-verify-result): Make it obsolete.
328 * epg.el (epg-start-sign-keys): Make it obsolete; signing a key is
330 (epg-sign-keys): Make it obsolete.
331 (epg-make-import-status): New object epg-import-status.
332 (epg-make-import-result): New object epg-import-result.
333 (epg--status-IMPORT_RES): New function.
334 (epg-import-result-to-string): New function.
336 * epa.el (epa-keys-mode-map): Don't bind epa-sign-keys.
337 (epa-sign-keys): Make it obsolete.
339 2006-11-11 Daiki Ueno <ueno@unixuser.org>
341 * epg.el (epg-start-sign): Don't set --armor nor --textmode if
342 mode is set for a cleartext signature.
343 (epg-make-context): New slot "sig-notations".
344 (epg--args-from-sig-notations): New function.
345 (epg-start-sign): Specify --sig-notation or --sig-policy-url if
347 (epg-start-encrypt): Ditto.
348 (epg-make-signature): New slot "notations".
349 (epg--status-NOTATION_NAME): New function.
350 (epg--status-NOTATION_DATA): New function.
351 (epg--status-POLICY_URL): New function.
353 2006-10-29 Daiki Ueno <ueno@unixuser.org>
355 * EasyPG: Version 0.0.7 released.
356 * epg-config.el (epg-version-number): Bump up.
357 * configure.ac: Bump up version.
359 2006-10-29 Daiki Ueno <ueno@unixuser.org>
362 (epa-file-cache-passphrase-for-symmetric-encryption): New user
365 2006-10-12 Daiki Ueno <ueno@unixuser.org>
367 * epg.el (epg-start-verify): Fixed a clearsign verification bug.
368 Reported by Hirohisa Yamaguchi <umq@ueo.co.jp>.
370 2006-09-29 Daiki Ueno <ueno@unixuser.org>
372 * EasyPG: Version 0.0.6 released.
373 * epg.el (epg-version-number): Bump up.
374 * configure.ac: Bump up version.
376 2006-09-29 Daiki Ueno <ueno@unixuser.org>
378 * epa.el (epa-verify-cleartext-in-region): Renamed from
379 epa-verify-armor-in-region.
381 * epg.el (epg-passphrase-callback-function): Suggest to use
382 epa-passphrase-callback-function instead.
383 (epg-start-verify): Don't specify --verify if SIGNATURE is a
384 normal or a clear text signature.
385 (epg-verify-file): Mention that the plaintext will be stored into
386 the file PLAIN after successful verification.
387 (epg-verify-string): Mention that the plaintext will be returned
388 after successful verification.
390 2006-09-27 Daiki Ueno <ueno@unixuser.org>
392 * epa-file.el (epa-file-insert-file-contents): Set progress callback.
393 (epa-file-write-region): Ditto.
395 * epa.el (epa-decrypt-file): Set callbacks.
396 (epa-sign-file): Ditto.
397 (epa-encrypt-file): Ditto.
398 (epa-decrypt-region): Ditto.
399 (epa-sign-region): Ditto.
400 (epa-encrypt-region): Ditto.
401 (epa-sign-keys): Ditto.
403 * epg.el (epg-progress-callback-function): Removed.
405 2006-09-24 Daiki Ueno <ueno@unixuser.org>
407 * epa.el (epa-passphrase-callback-function): Moved from epg.el.
408 (epa-progress-callback-function): Ditto.
409 * epg.el (epg-passphrase-callback-function): Made it obsolete.
410 (epg-progress-callback-function): Ditto.
412 2006-09-23 Daiki Ueno <ueno@unixuser.org>
414 * epg.el (epg-start-decrypt): Append "--" to the end of options.
415 (epg-start-verify): Ditto.
416 (epg-start-sign): Ditto.
417 (epg-start-encrypt): Ditto.
418 (epg-start-import-keys): Ditto.
419 (epg-start-generate-key): Ditto.
421 2006-09-23 Daiki Ueno <ueno@unixuser.org>
423 * epg.el (epg-make-context): Don't set progress-callback by
425 (epg--start): Don't specify --enable-progress-filter if
426 progress-callback is not set.
427 (epg--status-GET_HIDDEN): Signal an error if passphrase-callback
430 2006-09-15 Daiki Ueno <ueno@unixuser.org>
432 * epg.el (epg-progress-callback-function): Show the percentage.
434 2006-09-15 Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr>
436 * pgg-epg.el (mml2015-gpg-extract-signature-details): Fixed a typo.
438 2006-09-13 Daiki Ueno <ueno@unixuser.org>
440 * epg-config.el (epg-passphrase-coding-system): Renamed from
441 epg-locale-coding-system.
443 2006-09-11 Daiki Ueno <ueno@unixuser.org>
445 * epa-file.el (epa-file-decode-and-insert): New function which
446 utilizes decode-coding-inserted-region if available.
447 (epa-file-insert-file-contents): Use it.
449 * epg.el (epg--start): Specify --enable-progress-filter in
451 (epg-progress-callback-function): Remove a couple of %%'s.
453 2006-09-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
455 * epg-config.el (epg-configuration): Fixed the last change;
456 collect configuration other than group and algorithm.
458 2006-09-05 Daiki Ueno <ueno@unixuser.org>
460 * epg-config.el (epg-debug): Moved from epg.el.
461 (epg-configuration): Parse group configuration.
462 (epg-expand-group): New function.
464 2006-09-04 Daiki Ueno <ueno@unixuser.org>
466 * EasyPG: Version 0.0.5 released.
467 * epg.el (epg-version-number): Bump up.
468 * configure.ac: Bump up version.
470 2006-09-04 Daiki Ueno <ueno@unixuser.org>
472 * epg-config.el (epg-locale-coding-system): New user option.
474 * epg.el (epg--list-keys-1): Respect epg-gpg-home-directory.
475 (epg--clear-string): New function.
476 (epg--status-GET_HIDDEN): Encode passphrase with
477 terminal-coding-system.
479 * epg-config.el (epg-gpg-minimum-version): New constant.
480 (epg-config--parse-version): New function.
481 (epg-config--compare-version): New function.
482 (epg-configuration): Respect epg-gpg-home-directory.
484 2006-09-03 Daiki Ueno <ueno@unixuser.org>
486 * epg-config.el: New file; moved GnuPG configuration check from
489 2006-09-02 Daiki Ueno <ueno@unixuser.org>
491 * epg.el (epg-check-configuration): New function.
492 (epg-gpg-home-directory): New user option.
494 * pgg-epg.el (pgg-epg-lookup-key): New function.
496 2006-07-29 Daiki Ueno <ueno@unixuser.org>
498 * EasyPG: Version 0.0.4 released.
499 * epg.el (epg-version-number): Bump up.
500 * configure.ac: Bump up version.
502 2006-07-29 Daiki Ueno <ueno@unixuser.org>
504 * acinclude.m4 (AC_CHECK_GPG): Run $3 if there is no gpg executable.
506 2006-07-28 Daiki Ueno <ueno@unixuser.org>
508 * epg.el (epg-start-encrypt): Extract primary key ID from
510 Thanks to Steve Youngs <steve@sxemacs.org>
512 * pgg-epg.el (pgg-epg-encrypt-region): Fixed a bug; it didn't
513 give CONTEXT to epg-list-keys.
514 Thanks to Steve Youngs <steve@sxemacs.org>
516 2006-07-18 Daiki Ueno <ueno@unixuser.org>
518 * epg-pgp50i.el (epg-pgp50i--process-filter): Use
519 epg-process-filter-running instead of epg-pgp50i-status; Don't
520 save-excursion during handler execution.
521 (epg-pgp50i--read-line): Renamed from epg-pgp50i--wait-for-line;
522 don't allow process input.
523 (epg-pgp50i--parse-time): New function.
524 (epg-pgp50i--status-BAD_SIGNATURE): New function.
526 * epg.el (epg--process-filter): Don't save-excursion during
529 2006-07-18 Daiki Ueno <ueno@unixuser.org>
531 * acinclude.m4 (AC_CHECK_GPG): Renamed from AC_PATH_GPG.
533 * epg.el (epg-process-filter-running): New variable.
534 (epg--start): Setup epg-process-filter-running.
535 (epg--process-filter): Allow only one status handler to run at a
536 time; update epg-read-point everytime the point changes.
538 2006-07-14 Daiki Ueno <ueno@unixuser.org>
540 * epg-pgp50i.el: New file.
542 2006-07-13 Daiki Ueno <ueno@unixuser.org>
544 * acinclude.m4 (AC_PATH_GPG): New macro.
545 * configure.ac: Check gpg version.
546 Suggested by Max Froumentin <max@lapin-bleu.net>
548 2006-07-10 Daiki Ueno <ueno@unixuser.org>
550 * epg.el (epg--status-ERRSIG): Don't remove the last verify-result.
551 (epg-signature-to-string): Remove a trailing whitespace.
553 * epa.el (epa-keys-mode-map): Bind return to epa-toggle-mark.
554 (epa-toggle-mark): New command.
556 2006-07-04 Daiki Ueno <ueno@unixuser.org>
558 * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched
559 with pgg-default-user-id.
560 Reported by Elias Oltmanns <oltmanns@uni-bonn.de>
562 2006-07-01 Daiki Ueno <ueno@unixuser.org>
564 * epa.el (epa-select-keys): If SECRET is specified, select a
565 primary secret key by default.
567 2006-06-29 Daiki Ueno <ueno@unixuser.org>
569 * EasyPG: Version 0.0.3 released.
570 * epg.el (epg-version-number): Bump up.
571 * configure.ac: Bump up version.
573 2006-06-12 Daiki Ueno <ueno@unixuser.org>
575 * epa-file.el (epa-file-insert-file-contents): Don't move the
576 point to the end of the inserted region.
577 Reported by doug <douglas.bagley@gmail.com>
579 2006-06-01 Daiki Ueno <ueno@unixuser.org>
581 * epa-file.el (epa-file-insert-file-contents): Support partial read.
583 2006-05-30 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
585 * epa-file.el (epa-file-write-region): Encode the plain text with
586 coding-system-for-write.
588 2006-05-30 Daiki Ueno <ueno@unixuser.org>
590 * epa-file.el (epa-file-insert-file-contents):
591 Decode the decrypted text with coding-system-for-read.
593 2006-05-29 Daiki Ueno <ueno@unixuser.org>
595 * EasyPG: Version 0.0.2 released.
596 * epg.el (epg-version-number): Bump up.
597 * configure.ac: Bump up version.
599 2006-05-29 Daiki Ueno <ueno@unixuser.org>
601 * epg.el (epg--time-from-seconds): New function.
602 (epg--status-ERRSIG): Convert seconds from epoch to encoded-time.
603 (epg--status-VALIDSIG): Ditto.
604 (epg--status-KEYEXPIRED): Ditto.
606 2006-05-28 Daiki Ueno <ueno@unixuser.org>
608 * epg.el (epg-start-import-keys): Don't specify filename if keys
611 2006-05-27 Daiki Ueno <ueno@unixuser.org>
613 * epg.el (epg--process-filter): Pass epg-context instead of
614 process to status handlers.
615 (epg--status-NO_PUBKEY): Check if the previous signature's key-id
616 matches with the given key-id.
618 2006-05-26 Daiki Ueno <ueno@unixuser.org>
620 * epg.el (epg--status-NO_PUBKEY): Replace the previous signature's
621 status from 'error to 'no-pubkey.
622 (epg--status-ERRSIG): Just add 'error signature to the verify result.
624 * epa.el (epa-insert-keys): Renamed from epa-list-keys-1; don't
625 disable inhibit-quit here; make text-properties nonsticky.
626 (epa-popup-info-window): New user option.
627 (epa-info-window-height): New user option.
628 (epa-display-verify-result): New function.
629 (epa-decrypt-file): Use it.
630 (epa-verify-file): Use it.
631 (epa-decrypt-region): Use it.
632 (epa-verify-region): Use it.
634 * epg.el (epg-make-context): New slot "operation".
635 (epg-passphrase-callback-function): Confirm passphrase when
636 performing symmetric encryption.
638 2006-05-25 Daiki Ueno <ueno@unixuser.org>
640 * epa.el (epa-decrypt-file): Display verify result if the message
642 (epa-decrypt-region): New command.
643 (epa-verify-region): New command.
644 (epa-decrypt-armor-in-region): New command.
645 (epa-verify-armor-in-region): New command.
646 (epa-sign-region): New command.
647 (epa-encrypt-region): New command.
649 2006-05-11 Daiki Ueno <ueno@unixuser.org>
651 * epa.el (epa-armor): New user option.
652 (epa-textmode): New user option.
654 2006-05-02 Daiki Ueno <ueno@unixuser.org>
656 * epg.el (epg-make-key-signature): New object epg-key-signature.
657 (epg-list-keys): Collect key signatures.
658 (epg-make-sub-key): Renamed secret -> secret-p.
659 (epg-list-keys-postprocess-one-key): Abolished.
660 (epg-list-keys): Reverse all keys, sub-keys, user-ids, and key
661 signatures by itself.
662 (epg-no-data-reason-alist): New constant.
663 (epg-unexpected-reason-alist): New constant.
665 2006-05-01 Daiki Ueno <ueno@unixuser.org>
667 * epg.el (epg-invalid-recipients-reason-alist): Renamed.
668 (epg-delete-problem-reason-alist): Renamed.
669 (epg-import-ok-reason-alist): New constant.
670 (epg-import-problem-reason-alist): New constant.
671 (epg-status-IMPORTED): New function.
672 (epg-status-IMPORT_OK): New function.
673 (epg-status-IMPORT_PROBLEM): New function.
674 (epg-start-import-keys): Don't use a temporary output file.
675 (epg-start-receive-keys): New function.
676 (epg-import-keys-from-server): New function.
677 (epg-receive-keys): Alias to epg-import-keys-from-server.
679 2006-05-01 Daiki Ueno <ueno@unixuser.org>
681 * epg.el (epg-start): Signal an error if the process of CONTEXT is
682 already running for other operations.
683 (epg-flush): Abolished.
684 (epg-start-generate-key): New function.
685 (epg-generate-key-from-file): New function.
686 (epg-generate-key-from-string): New function.
687 (epg-status-KEY_CREATED): New function.
688 (epg-status-KEY_NOT_CREATED): New function.
689 (epg-new-signature-type-alist): New variable.
690 (epg-make-new-signature): New object epg-new-signature.
691 (epg-status-SIG_CREATED): Set epg-new-signature object.
692 (epg-new-signature-to-string): New function.
693 (epg-make-signature): Added slots for signature class and version.
694 (epg-start-sign): Fixed rule of the MODE argument.
696 2006-04-30 Daiki Ueno <ueno@unixuser.org>
698 * epa.el (epa-delete-keys): Support deletion of secret keys.
700 * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
703 * epg.el (epg-read-output): Don't convert line endings of the
705 (epg-cancel): Set 'error result.
707 2006-04-29 Daiki Ueno <ueno@unixuser.org>
709 * epg.el (epg-make-signature): Removed user-id; added
710 creation-time, expiration-time, pubkey-algorithm,
712 (epg-process-sentinel): Abolished.
713 (epg-signature-to-string): Decode DN.
714 (epg-list-keys): Cache user-id in epg-user-id-alist.
715 (epg-make-user-id): Renamed name -> string.
717 2006-04-29 Daiki Ueno <ueno@unixuser.org>
719 * epg.el (epg-status-ERRSIG): New function.
720 (epg-verify-file): Signal an error if we encounter ERRSIG status.
721 (epg-verify-string): Ditto.
723 2006-04-28 Daiki Ueno <ueno@unixuser.org>
725 * epg.el: Added typecheck to accessors to objects.
727 2006-04-26 Daiki Ueno <ueno@unixuser.org>
729 * epg.el (epg-status-GET_HIDDEN): Pass epg-context as the first
730 argument of passphrase-callback.
731 (epg-status-PROGRESS): Ditto.
733 2006-04-26 Daiki Ueno <ueno@unixuser.org>
735 * epa.el (epa-select-keys): Don't set inhibit-quit when
736 recursive-edit is called.
737 (epg-cancel): New function.
739 2006-04-25 Daiki Ueno <ueno@unixuser.org>
741 * epg.el (epg-process-sentinel): New function; set 'error if gpg
742 process exited abnormally, but we have not received an error
744 (epg-sign-file): Signal an error only when a signature is not
746 (epg-sign-string): Ditto.
747 (epg-encrypt-file): Signal an error if SIGN is specified and
748 signature is not created.
749 (epg-encrypt-string): Ditto.
751 2006-04-22 Daiki Ueno <ueno@unixuser.org>
753 * epa.el (epa-key-widget-value-create): Decode DN.
754 (epa-list-keys): Add the PROTOCOL argument.
755 (epa-select-keys): Require CONTEXT as the first argument.
757 * epg.el (epg-gpgsm-program): New user option.
758 (epg-dn-type-alist): New variable.
759 (epg-start): Don't specify --command-fd if protocol is CMS.
760 (epg-list-keys): Require CONTEXT as the first argument.
761 (epg-dn-from-string): New function.
762 (epg-decode-dn): New function.
764 2006-04-21 Daiki Ueno <ueno@unixuser.org>
766 * epa.el (epa-sign-keys): New command.
768 * epg.el (epg-start-sign-keys): New function.
769 (epg-sign-keys): New function.
770 (epg-status-GET_HIDDEN): Enable local quit.
771 (epg-status-GET_BOOL): Ditto.
772 (epg-status-GET_LINE): Ditto.
774 2006-04-20 Daiki Ueno <ueno@unixuser.org>
776 * epa.el (epa-list-keys-1): Add 'epa-list-keys property to keylist
779 2006-04-20 Daiki Ueno <ueno@unixuser.org>
781 * pgg-epg.el (pgg-epg-secret-key-id-list): New variable.
782 (pgg-epg-passphrase-callback): New function.
784 * epa.el (epa-select-keys): Added "Cancel" button.
786 2006-04-20 Daiki Ueno <ueno@unixuser.org>
788 * epg.el (epg-signature-to-string): New function.
790 2006-04-20 Daiki Ueno <ueno@unixuser.org>
792 * epa-file.el (epa-file-write-region): RECIPIENTS is now a list of
794 * epa-dired.el (epa-dired-do-encrypt): RECIPIENTS is now a list of
797 * epa.el (epa-select-keys): Added MODE argument.
798 (epa-encrypt-file): RECIPIENTS is now a list of key objects.
800 * epg.el (epg-status-SIG_CREATED): New function.
801 (epg-start-sign): epg-context-signers is now a list of key objects.
802 (epg-start-encrypt): RECIPIENTS is now a list of key objects.
804 2006-04-19 Daiki Ueno <ueno@unixuser.org>
806 * epa.el (epa-verify-file): Show results in minibuffer.
807 * epg.el (epg-debug-buffer): New variable.
808 (epg-flush): New function.
810 2006-04-18 Daiki Ueno <ueno@unixuser.org>
812 * epa.el (epa-export-keys): New command.
813 * epg.el (epg-start-export-keys): Accept a list of epg-key object
816 2006-04-18 Daiki Ueno <ueno@unixuser.org>
818 * epa.el (epa-keys-mode-map): Bind epa-list-keys; epa-import-key.
819 (epa-import-key): New command.
821 * epg.el (epg-delete-problem-alist): New constant.
822 (epg-status-DELETE_PROBLEM): New function.
823 (epg-start-delete-key): New function.
824 (epg-delete-key): New function.
825 (epg-wait-for-completion): Add the NO-EOF argument.
827 2006-04-18 Daiki Ueno <ueno@unixuser.org>
829 * epg.el (epg-start): Insert the command-line arguments to the
831 (epg-start-encrypt): Wait for BEGIN_ENCRYPTION.
832 (epg-start-delete-key): New function.
833 (epg-delete-key): New function.
835 * epa.el (epa-key): New widget.
836 (epa-key-widget-action): New function.
837 (epa-key-widget-value-create): New function.
838 (epa-key-widget-button-face-get): New function.
839 (epa-key-widget-help-echo): New function.
841 2006-04-17 Daiki Ueno <ueno@unixuser.org>
843 * epa-file.el (epa-file-write-region): Check if START is a string.
845 2006-04-17 Daiki Ueno <ueno@unixuser.org>
847 * epa-file.el: Rewritten with file-name-handler.
848 (epa-file-handler): New variable.
849 (epa-file-enable): New command.
850 (epa-file-disable): New command.
852 * epa-setup.el: Call epa-file-enable.
854 2006-04-17 Daiki Ueno <ueno@unixuser.org>
856 * epa-file.el (epa-passphrase): New variable.
857 (epa-file-passphrase-callback-function): New function.
858 (epa-find-file): Reset buffer-undo-list; set
859 buffer-file-coding-system to last-coding-system-used after
862 2006-04-17 Daiki Ueno <ueno@unixuser.org>
864 * epa-file.el (epa-write-file): Try to write region to "/" to get
865 last-coding-system-used to be set.
867 2006-04-17 Daiki Ueno <ueno@unixuser.org>
869 * epa-file.el: New implementation of epf.el.
873 2006-04-17 Daiki Ueno <ueno@unixuser.org>
875 * epa.el (epa-verify-file): Display verify result.
877 * epg.el (epg-invalid-recipients-alist): New variable.
878 (epg-status-INV_RECP): New function.
879 (epg-status-NO_RECP): New function.
881 * epa.el (epa-keys-mode-map): Bind epa-decrypt-file,
882 epa-verify-file, epa-sign-file, and epa-encrypt-file.
883 (epa-decrypt-file): New function imported from epa-dired.el.
884 (epa-verify-file): New function imported from epa-dired.el.
885 (epa-sign-file): New function imported from epa-dired.el.
886 (epa-encrypt-file): New function imported from epa-dired.el.
888 2006-04-16 Daiki Ueno <ueno@unixuser.org>
890 * epa.el (epa-select-keys): Renamed from epa-ask-keys; use
892 * epa-dired.el (epa-dired-encrypt-file): Use epa-select-keys.
894 2006-04-16 Daiki Ueno <ueno@unixuser.org>
896 * epa-setup.el: New file.
897 * epa-dired.el: New file.
899 * epg.el (epg-colons-pub-spec): Abolished.
900 (epg-colons-sec-spec): Abolished.
901 (epg-colons-uid-spec): Abolished.
902 (epg-colons-fpr-spec): Abolished.
903 (epg-key-validity-alist): New variable.
904 (epg-key-capablity-alist): New variable.
905 (epg-make-key): New object epg-key.
906 (epg-make-sub-key): New object epg-sub-key.
907 (epg-make-user-id): New object epg-user-id.
908 (epg-list-keys-1): Renamed from epg-list-keys.
909 (epg-list-keys): Rewritten.
911 2006-04-15 Daiki Ueno <ueno@unixuser.org>
913 * epg.el (epg-list-keys): Make the NAME argument optional.
915 2006-04-13 Daiki Ueno <ueno@unixuser.org>
917 * epa.el: Added header.
919 * epg.el (epg-list-keys): Specify --with-fingerprint.
920 (epg-colons-fpr-spec): New variable.
921 (epg-colons-pub-spec): Renamed trust -> validity and ownertrust ->
923 (epg-colons-sec-spec): Ditto.
924 (epg-colons-uid-spec): Renamed trust -> validity.
926 2006-04-13 Daiki Ueno <ueno@unixuser.org>
930 * epg.el (epg-cipher-algorithm-alist): New constant.
931 (epg-pubkey-algorithm-alist): New constant.
932 (epg-digest-algorithm-alist): New constant.
933 (epg-compress-algorithm-alist): New constant.
934 (epg-configuration): New function.
935 (epg-start): Don't specify --yes.
937 2006-04-13 Daiki Ueno <ueno@unixuser.org>
939 * epg.el (epg-make-data-from-file): New function.
940 (epg-make-data-from-string): New function.
941 (epg-data-file): New function.
942 (epg-data-string): New function.
943 (epg-start-decrypt): Get a cipher text from a data object.
944 (epg-delete-output-file): New function.
945 (epg-decrypt-file): Add the 3rd argument PLAIN to specify where
947 (epg-start-verify): Get a signature and signed-text from a data
949 (epg-verify-file): Added the 3rd argument PLAIN to specify where
950 the output goes; return the plain text if PLAIN is nil.
951 (epg-verify-string): Return the plain text.
952 (epg-start-sign): Get a plain text from a data object.
953 (epg-sign-file): Added the 3rd argument SIGNATURE to specify where
955 (epg-start-encrypt): Get a plain text from a data object.
956 (epg-encrypt-file): Added the 4th argument CIPHER to specify where
958 (epg-start-import-keys): Get keys from a data object.
959 (epg-import-keys-1): New function.
960 (epg-import-keys-from-file): Use it.
961 (epg-import-keys-from-string): Use it.
963 2006-04-12 Daiki Ueno <ueno@unixuser.org>
965 * epf.el: Renamed from epg-file.el.
967 2006-04-12 Daiki Ueno <ueno@unixuser.org>
969 * epg.el (epg-status-GET_BOOL): New function.
970 (epg-status-GET_LINE): New function.
971 (epg-prompt-alist): New variable, to be filled.
973 * pgg-epg.el (mml2015-gpg-extract-signature-details): New function.
974 * epg.el (epg-signature-fingerprint): New function.
975 (epg-signature-set-fingerprint): New function.
976 (epg-status-VALIDSIG): New function.
978 * epg.el (epg-reset): Don't reset result.
979 (epg-start-decrypt): Reset result before epg-start.
980 (epg-start-verify): Ditto.
981 (epg-start-sign): Ditto.
982 (epg-start-encrypt): Ditto.
983 (epg-start-export-keys): Ditto.
984 (epg-start-import-keys): Ditto.
986 * Makefile.am (EXTRA_DIST): Added pgg-epg.el.
987 * pgg-epg.el: New file.
989 * epg.el (epg-start-export-keys): New function.
990 (epg-export-keys): New function.
991 (epg-start-import-keys): New function.
992 (epg-import-keys): New function.
993 (epg-verify-file): New function.
995 * epg-file.el (epg-file-write-region): Support public key encryption.
997 * epg.el (epg-passphrase-callback-function): Always display key-id.