1 2007-03-19 Daiki Ueno <ueno@unixuser.org>
3 * epg.el (epg--decode-percent-escape): New function.
5 2007-03-08 Daiki Ueno <ueno@unixuser.org>
7 * epg.el (epg-list-keys): Parse GnuPG's print_string escape.
9 2007-03-08 Daiki Ueno <ueno@unixuser.org>
11 * epa-mail.el (epa-mail-mode-hook): New variable.
12 (epa-mail-mode-on-hook): New variable.
13 (epa-mail-mode-off-hook): New variable.
15 * epg.el (epg--start): Make the process-buffer unibyte.
16 (epg--status-USERID_HINT): Decode user-id.
17 (epg--status-IMPORTED): Decode user-id.
19 2007-03-07 Daiki Ueno <ueno@unixuser.org>
21 * epg.el (epg--start): Don't specify --use-agent if the protocol
22 is CMS; set coding-system-for-read to binary.
23 (epg--status-*SIG): Decode user-id.
25 2007-02-02 Daiki Ueno <ueno@unixuser.org>
27 * epa-file.el (epa-file-write-region): Set a dummy filename
28 for buffer-file-name when calling select-safe-coding-system.
30 2007-01-30 Daiki Ueno <ueno@unixuser.org>
32 * epg.el (epg-last-status): New variable.
33 (epg--process-filter): Set epg-last-status after calling a status
35 (epg--prompt-GET_BOOL): New function.
36 (epg--prompt-GET_BOOL-untrusted_key.override): New function.
37 (epg--status-GET_BOOL): Call epg--prompt-GET_BOOL-* instead of
40 2007-01-29 Daiki Ueno <ueno@unixuser.org>
42 * EasyPG: Version 0.0.10 released.
43 * configure.ac: Bump up version.
45 2007-01-29 Daiki Ueno <ueno@unixuser.org>
47 * epg-config.el: Require epg-package-info.
48 * configure.ac: Generate epg-package-info.el.
49 * Makefile.am (DISTCLEANFILES): Added epg-package-info.el.
50 * COMPILE (epg-modules): Added epg-package-info.
51 * epg-package-info.el.in: New file.
53 2007-01-29 Daiki Ueno <ueno@unixuser.org>
55 * epa-setup.el (epa-mail-mode): Autoload; setup mail-mode-hook.
56 * epa.el: Removed epa-*-mail stuff.
57 * Makefile.am (EXTRA_DIST): Added epa-mail.el.
58 * COMPILE (epg-modules): Added epa-mail.
59 * epa-mail.el: New file.
61 2007-01-05 Daiki Ueno <ueno@unixuser.org>
63 * epg-pgp50i.el: Removed.
65 * epa.el (epa-key-list-mode-map): Renamed from epa-keys-mode-map.
66 (epa-key-list-mode): Renamed from epa-keys-mode. All callers
69 * epg.el (epg--status-VALIDSIG): Don't set expiration-time if it
71 (epg--make-sub-key-1): Ditto.
72 (epg--decode-hexstring): "\\x" -> "\\\\x".
73 (epg--decode-quotedstring): Ditto.
75 * pgg-epg.el (pgg-epg-encrypt-region): Ask a user whether to skip a
76 recipient whose public key is not available.
77 * epa.el (epa-encrypt-mail): Ask a user whether to skip a
78 recipient whose public key is not available.
80 2007-01-04 Daiki Ueno <ueno@unixuser.org>
82 * epa.el (epa-decrypt-mail): Renamed from epa-decrypt.
83 (epa-verify-mail): Renamed from epa-verify.
84 (epa-sign-mail): Renamed from epa-sign.
85 (epa-encrypt-mail): Renamed from epa-encrypt.
86 (epa-import-mail): Renamed from epa-import.
88 * configure.ac: Don't exit if GnuPG (>= 1.4.3) is unavailable.
90 * epg.el (epg-signature-to-string): Print creation-time and used
92 (epg-sign-string): If the GnuPG version is earlier than 1.4.3,
93 fallback to use a temp file as an input.
94 (epg-encrypt-string): Ditto.
96 2006-12-31 Daiki Ueno <ueno@unixuser.org>
98 * epa.el (epa-mail-modes): New user option.
99 (epa--mail-mode-p): New function.
101 (epa-encrypt): Use it.
102 (epa--find-coding-system-for-mime-charset): New function.
103 (epa-decrypt-armor-in-region): Use it.
104 (epa-progress-callback-function): Use handback as the prompt.
105 (epa-encrypt-region): Take 4th argument SIGN.
106 (epa-encrypt): Ditto.
108 2006-12-31 Daiki Ueno <ueno@unixuser.org>
110 * epa.el (epa--derived-mode-p): New alias.
112 (epa-encrypt): Use it.
114 2006-12-31 Daiki Ueno <ueno@unixuser.org>
116 * epa.el (epa--read-signature-type): New function.
117 (epa-decrypt): New command.
118 (epa-verify): New command.
119 (epa-sign): New command.
120 (epa-encrypt): New command.
121 (epa-import-armor-in-region): New command.
122 (epa-import): New command.
123 (epa-decrypt-region): Confirm user to replace the region.
124 (epa-display-info): Delete "*Info*" window.
126 2006-12-29 Daiki Ueno <ueno@unixuser.org>
128 * EasyPG: Version 0.0.9 released.
129 * epg-config.el (epg-version-number): Bump up.
130 * configure.ac: Bump up version.
132 2006-12-28 Daiki Ueno <ueno@unixuser.org>
134 * epa.el (epa-sign-file): Ask signing key only when a prefix arg
135 is given; ask signature type only when a prefix arg is given.
136 (epa-sign-region): Ditto.
138 2006-12-26 Daiki Ueno <ueno@unixuser.org>
140 * epg-config.el (epg-passphrase-coding-system): Default to nil.
142 2006-12-20 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
144 * epa.el (epa--format-fingerprint-1): New function.
145 (epa--format-fingerprint): Ditto.
146 (epa--show-key): Use it.
148 2006-12-20 Daiki Ueno <ueno@unixuser.org>
150 * epa-file.el (epa-file-write-region): Don't attempt to write the
151 region to "/" to determine safe coding-system.
153 * epa.el (epa-list-keys): Abolished PROTOCOL arg.
154 (epa-sign-file): Save the output to *.p7s or *.p7m file if
156 (epa-encrypt-file): Ditto.
157 (epa-last-coding-system-specified): New variable.
158 (epa-decrypt-region): Try to decode with the
159 epa-coding-system-used text property.
160 (epa--select-safe-coding-system): New function.
161 (epa-verify-region): Try to decode with the epa-coding-system-used
163 (epa-sign-region): Query user to select coding-system to encode;
164 set the epa-coding-system-used text property on the result.
165 (epa-encrypt-region): Ditto.
167 2006-12-19 Daiki Ueno <ueno@unixuser.org>
169 * epg.el (epg-export-keys-to-file): Fixed a typo.
171 * epa.el (epa-protocol): New user option.
172 (epa-sign-region): --armor & --textmode.
173 (epa-encrypt-region): Ditto.
174 (epa-list-keys): If prefix-arg is specified, use "OpenPGP" as the
176 (epa-import-keys-region): New command.
177 (epa-insert-keys): New command.
178 (epa--insert-keys): Renamed from epa-insert-keys.
180 2006-12-11 Daiki Ueno <ueno@unixuser.org>
182 * pgg-epg.el (pgg-epg-decrypt-region): Don't call
183 decode-coding-string if it is not bound.
185 * epa-file.el (epa-file--encode-coding-string): New alias.
186 (epa-file--decode-coding-string): New alias.
187 (epa-file-write-region): Use epa-file--encode-coding-string.
188 (epa-file-decode-and-insert): Use epa-file--decode-coding-string.
190 * epa.el (epa--encode-coding-string): New alias.
191 (epa--decode-coding-string): New alias.
192 (epa-verify-region): Use epa--encode-coding-string.
193 (epa-sign-region): Ditto; use epa--decode-coding-string.
194 (epa-encrypt-region): Use epa--encode-coding-string.
196 * epg.el (epg--encode-coding-string): New alias.
197 (epg--status-GET_HIDDEN): Use it.
199 2006-11-29 Daiki Ueno <ueno@unixuser.org>
201 * EasyPG: Version 0.0.8 released.
202 * epg-config.el (epg-version-number): Bump up.
203 * configure.ac: Bump up version.
205 2006-11-20 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
207 * epa-file.el (epa-file-encrypt-to): New file local variable.
208 (epa-file-write-region): Specify recipients by epa-file-encrypt-to.
210 2006-11-26 Daiki Ueno <ueno@unixuser.org>
212 * epa.el (epa-sign-file): Query signature type at a time.
213 (epa-decrypt-file): Display output file name on completion.
214 (epa-sign-file): Ditto.
215 (epa-encrypt-file): Ditto.
217 2006-11-25 Daiki Ueno <ueno@unixuser.org>
219 * epa.el (epa-keys-mode): Don't call widget-setup.
220 (epa-list-keys): Call widget-setup here.
221 (epa-select-keys): Ditto.
223 2006-11-24 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
225 * epg.el (epg-delete-keys): Remove redundant argument for `error'
226 and fix a close parenthesis.
228 2006-11-24 Daiki Ueno <ueno@unixuser.org>
230 * epg.el (epg--status-GET_HIDDEN): Encode passphrase with eol-type LF.
231 Reported by Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>.
232 cf. <emacs-mime-ja:02090>
234 2006-11-23 Daiki Ueno <ueno@unixuser.org>
236 * epa.el (epa-sign-region): Query signature type at a time.
238 2006-11-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
240 * epg.el (epg-context-set-passphrase-callback): Add optional
242 (epg-context-set-progress-callback): Ditto.
244 2006-11-14 Daiki Ueno <ueno@unixuser.org>
246 * epa.el (epa--key-widget-value-create): Allow empty user IDs.
247 (epa--show-key): Ditto.
248 Reported by Werner Koch <wk@gnupg.org>.
250 * epg.el (epg--start): Don't specify --enable-progress-filter for
252 (epg--status-PROGRESS): Check if progress-callback is set.
254 2006-11-12 Daiki Ueno <ueno@unixuser.org>
256 * epg.el (epg-error): New error.
257 (epg--check-error-for-decrypt): New function.
258 (epg-decrypt-file): Use it.
259 (epg-decrypt-string): Use it.
260 (epg--start): Added a very basic test to check whether to specify
263 * epa.el (epa-decrypt-file): Expand file name.
264 (epa-verify-file): Ditto.
265 (epa-import-keys): Ditto.
267 2006-11-12 Daiki Ueno <ueno@unixuser.org>
269 * epg.el (epg-delete-keys): Decode delete-problem.
271 * epa.el (epa-popup-info-window): Turn on by default.
272 (epa-display-info): Split selected window instead of pop-to-buffer.
274 2006-11-12 Daiki Ueno <ueno@unixuser.org>
276 * epa.el (epa-display-info): Generalized; renamed from
277 epa-display-verify-result.
278 (epa-decrypt-file): Use it.
279 (epa-verify-file): Use it.
280 (epa-decrypt-region): Use it.
281 (epa-verify-region): Use it.
282 (epa-import-keys): Show import result.
283 (epa-display-verify-result): Make it obsolete.
285 * epg.el (epg-start-sign-keys): Make it obsolete; signing a key is
287 (epg-sign-keys): Make it obsolete.
288 (epg-make-import-status): New object epg-import-status.
289 (epg-make-import-result): New object epg-import-result.
290 (epg--status-IMPORT_RES): New function.
291 (epg-import-result-to-string): New function.
293 * epa.el (epa-keys-mode-map): Don't bind epa-sign-keys.
294 (epa-sign-keys): Make it obsolete.
296 2006-11-11 Daiki Ueno <ueno@unixuser.org>
298 * epg.el (epg-start-sign): Don't set --armor nor --textmode if
299 mode is set for a cleartext signature.
300 (epg-make-context): New slot "sig-notations".
301 (epg--args-from-sig-notations): New function.
302 (epg-start-sign): Specify --sig-notation or --sig-policy-url if
304 (epg-start-encrypt): Ditto.
305 (epg-make-signature): New slot "notations".
306 (epg--status-NOTATION_NAME): New function.
307 (epg--status-NOTATION_DATA): New function.
308 (epg--status-POLICY_URL): New function.
310 2006-10-29 Daiki Ueno <ueno@unixuser.org>
312 * EasyPG: Version 0.0.7 released.
313 * epg-config.el (epg-version-number): Bump up.
314 * configure.ac: Bump up version.
316 2006-10-29 Daiki Ueno <ueno@unixuser.org>
319 (epa-file-cache-passphrase-for-symmetric-encryption): New user
322 2006-10-12 Daiki Ueno <ueno@unixuser.org>
324 * epg.el (epg-start-verify): Fixed a clearsign verification bug.
325 Reported by Hirohisa Yamaguchi <umq@ueo.co.jp>.
327 2006-09-29 Daiki Ueno <ueno@unixuser.org>
329 * EasyPG: Version 0.0.6 released.
330 * epg.el (epg-version-number): Bump up.
331 * configure.ac: Bump up version.
333 2006-09-29 Daiki Ueno <ueno@unixuser.org>
335 * epa.el (epa-verify-cleartext-in-region): Renamed from
336 epa-verify-armor-in-region.
338 * epg.el (epg-passphrase-callback-function): Suggest to use
339 epa-passphrase-callback-function instead.
340 (epg-start-verify): Don't specify --verify if SIGNATURE is a
341 normal or a clear text signature.
342 (epg-verify-file): Mention that the plaintext will be stored into
343 the file PLAIN after successful verification.
344 (epg-verify-string): Mention that the plaintext will be returned
345 after successful verification.
347 2006-09-27 Daiki Ueno <ueno@unixuser.org>
349 * epa-file.el (epa-file-insert-file-contents): Set progress callback.
350 (epa-file-write-region): Ditto.
352 * epa.el (epa-decrypt-file): Set callbacks.
353 (epa-sign-file): Ditto.
354 (epa-encrypt-file): Ditto.
355 (epa-decrypt-region): Ditto.
356 (epa-sign-region): Ditto.
357 (epa-encrypt-region): Ditto.
358 (epa-sign-keys): Ditto.
360 * epg.el (epg-progress-callback-function): Removed.
362 2006-09-24 Daiki Ueno <ueno@unixuser.org>
364 * epa.el (epa-passphrase-callback-function): Moved from epg.el.
365 (epa-progress-callback-function): Ditto.
366 * epg.el (epg-passphrase-callback-function): Made it obsolete.
367 (epg-progress-callback-function): Ditto.
369 2006-09-23 Daiki Ueno <ueno@unixuser.org>
371 * epg.el (epg-start-decrypt): Append "--" to the end of options.
372 (epg-start-verify): Ditto.
373 (epg-start-sign): Ditto.
374 (epg-start-encrypt): Ditto.
375 (epg-start-import-keys): Ditto.
376 (epg-start-generate-key): Ditto.
378 2006-09-23 Daiki Ueno <ueno@unixuser.org>
380 * epg.el (epg-make-context): Don't set progress-callback by
382 (epg--start): Don't specify --enable-progress-filter if
383 progress-callback is not set.
384 (epg--status-GET_HIDDEN): Signal an error if passphrase-callback
387 2006-09-15 Daiki Ueno <ueno@unixuser.org>
389 * epg.el (epg-progress-callback-function): Show the percentage.
391 2006-09-15 Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr>
393 * pgg-epg.el (mml2015-gpg-extract-signature-details): Fixed a typo.
395 2006-09-13 Daiki Ueno <ueno@unixuser.org>
397 * epg-config.el (epg-passphrase-coding-system): Renamed from
398 epg-locale-coding-system.
400 2006-09-11 Daiki Ueno <ueno@unixuser.org>
402 * epa-file.el (epa-file-decode-and-insert): New function which
403 utilizes decode-coding-inserted-region if available.
404 (epa-file-insert-file-contents): Use it.
406 * epg.el (epg--start): Specify --enable-progress-filter in
408 (epg-progress-callback-function): Remove a couple of %%'s.
410 2006-09-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
412 * epg-config.el (epg-configuration): Fixed the last change;
413 collect configuration other than group and algorithm.
415 2006-09-05 Daiki Ueno <ueno@unixuser.org>
417 * epg-config.el (epg-debug): Moved from epg.el.
418 (epg-configuration): Parse group configuration.
419 (epg-expand-group): New function.
421 2006-09-04 Daiki Ueno <ueno@unixuser.org>
423 * EasyPG: Version 0.0.5 released.
424 * epg.el (epg-version-number): Bump up.
425 * configure.ac: Bump up version.
427 2006-09-04 Daiki Ueno <ueno@unixuser.org>
429 * epg-config.el (epg-locale-coding-system): New user option.
431 * epg.el (epg--list-keys-1): Respect epg-gpg-home-directory.
432 (epg--clear-string): New function.
433 (epg--status-GET_HIDDEN): Encode passphrase with
434 terminal-coding-system.
436 * epg-config.el (epg-gpg-minimum-version): New constant.
437 (epg-config--parse-version): New function.
438 (epg-config--compare-version): New function.
439 (epg-configuration): Respect epg-gpg-home-directory.
441 2006-09-03 Daiki Ueno <ueno@unixuser.org>
443 * epg-config.el: New file; moved GnuPG configuration check from
446 2006-09-02 Daiki Ueno <ueno@unixuser.org>
448 * epg.el (epg-check-configuration): New function.
449 (epg-gpg-home-directory): New user option.
451 * pgg-epg.el (pgg-epg-lookup-key): New function.
453 2006-07-29 Daiki Ueno <ueno@unixuser.org>
455 * EasyPG: Version 0.0.4 released.
456 * epg.el (epg-version-number): Bump up.
457 * configure.ac: Bump up version.
459 2006-07-29 Daiki Ueno <ueno@unixuser.org>
461 * acinclude.m4 (AC_CHECK_GPG): Run $3 if there is no gpg executable.
463 2006-07-28 Daiki Ueno <ueno@unixuser.org>
465 * epg.el (epg-start-encrypt): Extract primary key ID from
467 Thanks to Steve Youngs <steve@sxemacs.org>
469 * pgg-epg.el (pgg-epg-encrypt-region): Fixed a bug; it didn't
470 give CONTEXT to epg-list-keys.
471 Thanks to Steve Youngs <steve@sxemacs.org>
473 2006-07-18 Daiki Ueno <ueno@unixuser.org>
475 * epg-pgp50i.el (epg-pgp50i--process-filter): Use
476 epg-process-filter-running instead of epg-pgp50i-status; Don't
477 save-excursion during handler execution.
478 (epg-pgp50i--read-line): Renamed from epg-pgp50i--wait-for-line;
479 don't allow process input.
480 (epg-pgp50i--parse-time): New function.
481 (epg-pgp50i--status-BAD_SIGNATURE): New function.
483 * epg.el (epg--process-filter): Don't save-excursion during
486 2006-07-18 Daiki Ueno <ueno@unixuser.org>
488 * acinclude.m4 (AC_CHECK_GPG): Renamed from AC_PATH_GPG.
490 * epg.el (epg-process-filter-running): New variable.
491 (epg--start): Setup epg-process-filter-running.
492 (epg--process-filter): Allow only one status handler to run at a
493 time; update epg-read-point everytime the point changes.
495 2006-07-14 Daiki Ueno <ueno@unixuser.org>
497 * epg-pgp50i.el: New file.
499 2006-07-13 Daiki Ueno <ueno@unixuser.org>
501 * acinclude.m4 (AC_PATH_GPG): New macro.
502 * configure.ac: Check gpg version.
503 Suggested by Max Froumentin <max@lapin-bleu.net>
505 2006-07-10 Daiki Ueno <ueno@unixuser.org>
507 * epg.el (epg--status-ERRSIG): Don't remove the last verify-result.
508 (epg-signature-to-string): Remove a trailing whitespace.
510 * epa.el (epa-keys-mode-map): Bind return to epa-toggle-mark.
511 (epa-toggle-mark): New command.
513 2006-07-04 Daiki Ueno <ueno@unixuser.org>
515 * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched
516 with pgg-default-user-id.
517 Reported by Elias Oltmanns <oltmanns@uni-bonn.de>
519 2006-07-01 Daiki Ueno <ueno@unixuser.org>
521 * epa.el (epa-select-keys): If SECRET is specified, select a
522 primary secret key by default.
524 2006-06-29 Daiki Ueno <ueno@unixuser.org>
526 * EasyPG: Version 0.0.3 released.
527 * epg.el (epg-version-number): Bump up.
528 * configure.ac: Bump up version.
530 2006-06-12 Daiki Ueno <ueno@unixuser.org>
532 * epa-file.el (epa-file-insert-file-contents): Don't move the
533 point to the end of the inserted region.
534 Reported by doug <douglas.bagley@gmail.com>
536 2006-06-01 Daiki Ueno <ueno@unixuser.org>
538 * epa-file.el (epa-file-insert-file-contents): Support partial read.
540 2006-05-30 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
542 * epa-file.el (epa-file-write-region): Encode the plain text with
543 coding-system-for-write.
545 2006-05-30 Daiki Ueno <ueno@unixuser.org>
547 * epa-file.el (epa-file-insert-file-contents):
548 Decode the decrypted text with coding-system-for-read.
550 2006-05-29 Daiki Ueno <ueno@unixuser.org>
552 * EasyPG: Version 0.0.2 released.
553 * epg.el (epg-version-number): Bump up.
554 * configure.ac: Bump up version.
556 2006-05-29 Daiki Ueno <ueno@unixuser.org>
558 * epg.el (epg--time-from-seconds): New function.
559 (epg--status-ERRSIG): Convert seconds from epoch to encoded-time.
560 (epg--status-VALIDSIG): Ditto.
561 (epg--status-KEYEXPIRED): Ditto.
563 2006-05-28 Daiki Ueno <ueno@unixuser.org>
565 * epg.el (epg-start-import-keys): Don't specify filename if keys
568 2006-05-27 Daiki Ueno <ueno@unixuser.org>
570 * epg.el (epg--process-filter): Pass epg-context instead of
571 process to status handlers.
572 (epg--status-NO_PUBKEY): Check if the previous signature's key-id
573 matches with the given key-id.
575 2006-05-26 Daiki Ueno <ueno@unixuser.org>
577 * epg.el (epg--status-NO_PUBKEY): Replace the previous signature's
578 status from 'error to 'no-pubkey.
579 (epg--status-ERRSIG): Just add 'error signature to the verify result.
581 * epa.el (epa-insert-keys): Renamed from epa-list-keys-1; don't
582 disable inhibit-quit here; make text-properties nonsticky.
583 (epa-popup-info-window): New user option.
584 (epa-info-window-height): New user option.
585 (epa-display-verify-result): New function.
586 (epa-decrypt-file): Use it.
587 (epa-verify-file): Use it.
588 (epa-decrypt-region): Use it.
589 (epa-verify-region): Use it.
591 * epg.el (epg-make-context): New slot "operation".
592 (epg-passphrase-callback-function): Confirm passphrase when
593 performing symmetric encryption.
595 2006-05-25 Daiki Ueno <ueno@unixuser.org>
597 * epa.el (epa-decrypt-file): Display verify result if the message
599 (epa-decrypt-region): New command.
600 (epa-verify-region): New command.
601 (epa-decrypt-armor-in-region): New command.
602 (epa-verify-armor-in-region): New command.
603 (epa-sign-region): New command.
604 (epa-encrypt-region): New command.
606 2006-05-11 Daiki Ueno <ueno@unixuser.org>
608 * epa.el (epa-armor): New user option.
609 (epa-textmode): New user option.
611 2006-05-02 Daiki Ueno <ueno@unixuser.org>
613 * epg.el (epg-make-key-signature): New object epg-key-signature.
614 (epg-list-keys): Collect key signatures.
615 (epg-make-sub-key): Renamed secret -> secret-p.
616 (epg-list-keys-postprocess-one-key): Abolished.
617 (epg-list-keys): Reverse all keys, sub-keys, user-ids, and key
618 signatures by itself.
619 (epg-no-data-reason-alist): New constant.
620 (epg-unexpected-reason-alist): New constant.
622 2006-05-01 Daiki Ueno <ueno@unixuser.org>
624 * epg.el (epg-invalid-recipients-reason-alist): Renamed.
625 (epg-delete-problem-reason-alist): Renamed.
626 (epg-import-ok-reason-alist): New constant.
627 (epg-import-problem-reason-alist): New constant.
628 (epg-status-IMPORTED): New function.
629 (epg-status-IMPORT_OK): New function.
630 (epg-status-IMPORT_PROBLEM): New function.
631 (epg-start-import-keys): Don't use a temporary output file.
632 (epg-start-receive-keys): New function.
633 (epg-import-keys-from-server): New function.
634 (epg-receive-keys): Alias to epg-import-keys-from-server.
636 2006-05-01 Daiki Ueno <ueno@unixuser.org>
638 * epg.el (epg-start): Signal an error if the process of CONTEXT is
639 already running for other operations.
640 (epg-flush): Abolished.
641 (epg-start-generate-key): New function.
642 (epg-generate-key-from-file): New function.
643 (epg-generate-key-from-string): New function.
644 (epg-status-KEY_CREATED): New function.
645 (epg-status-KEY_NOT_CREATED): New function.
646 (epg-new-signature-type-alist): New variable.
647 (epg-make-new-signature): New object epg-new-signature.
648 (epg-status-SIG_CREATED): Set epg-new-signature object.
649 (epg-new-signature-to-string): New function.
650 (epg-make-signature): Added slots for signature class and version.
651 (epg-start-sign): Fixed rule of the MODE argument.
653 2006-04-30 Daiki Ueno <ueno@unixuser.org>
655 * epa.el (epa-delete-keys): Support deletion of secret keys.
657 * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
660 * epg.el (epg-read-output): Don't convert line endings of the
662 (epg-cancel): Set 'error result.
664 2006-04-29 Daiki Ueno <ueno@unixuser.org>
666 * epg.el (epg-make-signature): Removed user-id; added
667 creation-time, expiration-time, pubkey-algorithm,
669 (epg-process-sentinel): Abolished.
670 (epg-signature-to-string): Decode DN.
671 (epg-list-keys): Cache user-id in epg-user-id-alist.
672 (epg-make-user-id): Renamed name -> string.
674 2006-04-29 Daiki Ueno <ueno@unixuser.org>
676 * epg.el (epg-status-ERRSIG): New function.
677 (epg-verify-file): Signal an error if we encounter ERRSIG status.
678 (epg-verify-string): Ditto.
680 2006-04-28 Daiki Ueno <ueno@unixuser.org>
682 * epg.el: Added typecheck to accessors to objects.
684 2006-04-26 Daiki Ueno <ueno@unixuser.org>
686 * epg.el (epg-status-GET_HIDDEN): Pass epg-context as the first
687 argument of passphrase-callback.
688 (epg-status-PROGRESS): Ditto.
690 2006-04-26 Daiki Ueno <ueno@unixuser.org>
692 * epa.el (epa-select-keys): Don't set inhibit-quit when
693 recursive-edit is called.
694 (epg-cancel): New function.
696 2006-04-25 Daiki Ueno <ueno@unixuser.org>
698 * epg.el (epg-process-sentinel): New function; set 'error if gpg
699 process exited abnormally, but we have not received an error
701 (epg-sign-file): Signal an error only when a signature is not
703 (epg-sign-string): Ditto.
704 (epg-encrypt-file): Signal an error if SIGN is specified and
705 signature is not created.
706 (epg-encrypt-string): Ditto.
708 2006-04-22 Daiki Ueno <ueno@unixuser.org>
710 * epa.el (epa-key-widget-value-create): Decode DN.
711 (epa-list-keys): Add the PROTOCOL argument.
712 (epa-select-keys): Require CONTEXT as the first argument.
714 * epg.el (epg-gpgsm-program): New user option.
715 (epg-dn-type-alist): New variable.
716 (epg-start): Don't specify --command-fd if protocol is CMS.
717 (epg-list-keys): Require CONTEXT as the first argument.
718 (epg-dn-from-string): New function.
719 (epg-decode-dn): New function.
721 2006-04-21 Daiki Ueno <ueno@unixuser.org>
723 * epa.el (epa-sign-keys): New command.
725 * epg.el (epg-start-sign-keys): New function.
726 (epg-sign-keys): New function.
727 (epg-status-GET_HIDDEN): Enable local quit.
728 (epg-status-GET_BOOL): Ditto.
729 (epg-status-GET_LINE): Ditto.
731 2006-04-20 Daiki Ueno <ueno@unixuser.org>
733 * epa.el (epa-list-keys-1): Add 'epa-list-keys property to keylist
736 2006-04-20 Daiki Ueno <ueno@unixuser.org>
738 * pgg-epg.el (pgg-epg-secret-key-id-list): New variable.
739 (pgg-epg-passphrase-callback): New function.
741 * epa.el (epa-select-keys): Added "Cancel" button.
743 2006-04-20 Daiki Ueno <ueno@unixuser.org>
745 * epg.el (epg-signature-to-string): New function.
747 2006-04-20 Daiki Ueno <ueno@unixuser.org>
749 * epa-file.el (epa-file-write-region): RECIPIENTS is now a list of
751 * epa-dired.el (epa-dired-do-encrypt): RECIPIENTS is now a list of
754 * epa.el (epa-select-keys): Added MODE argument.
755 (epa-encrypt-file): RECIPIENTS is now a list of key objects.
757 * epg.el (epg-status-SIG_CREATED): New function.
758 (epg-start-sign): epg-context-signers is now a list of key objects.
759 (epg-start-encrypt): RECIPIENTS is now a list of key objects.
761 2006-04-19 Daiki Ueno <ueno@unixuser.org>
763 * epa.el (epa-verify-file): Show results in minibuffer.
764 * epg.el (epg-debug-buffer): New variable.
765 (epg-flush): New function.
767 2006-04-18 Daiki Ueno <ueno@unixuser.org>
769 * epa.el (epa-export-keys): New command.
770 * epg.el (epg-start-export-keys): Accept a list of epg-key object
773 2006-04-18 Daiki Ueno <ueno@unixuser.org>
775 * epa.el (epa-keys-mode-map): Bind epa-list-keys; epa-import-key.
776 (epa-import-key): New command.
778 * epg.el (epg-delete-problem-alist): New constant.
779 (epg-status-DELETE_PROBLEM): New function.
780 (epg-start-delete-key): New function.
781 (epg-delete-key): New function.
782 (epg-wait-for-completion): Add the NO-EOF argument.
784 2006-04-18 Daiki Ueno <ueno@unixuser.org>
786 * epg.el (epg-start): Insert the command-line arguments to the
788 (epg-start-encrypt): Wait for BEGIN_ENCRYPTION.
789 (epg-start-delete-key): New function.
790 (epg-delete-key): New function.
792 * epa.el (epa-key): New widget.
793 (epa-key-widget-action): New function.
794 (epa-key-widget-value-create): New function.
795 (epa-key-widget-button-face-get): New function.
796 (epa-key-widget-help-echo): New function.
798 2006-04-17 Daiki Ueno <ueno@unixuser.org>
800 * epa-file.el (epa-file-write-region): Check if START is a string.
802 2006-04-17 Daiki Ueno <ueno@unixuser.org>
804 * epa-file.el: Rewritten with file-name-handler.
805 (epa-file-handler): New variable.
806 (epa-file-enable): New command.
807 (epa-file-disable): New command.
809 * epa-setup.el: Call epa-file-enable.
811 2006-04-17 Daiki Ueno <ueno@unixuser.org>
813 * epa-file.el (epa-passphrase): New variable.
814 (epa-file-passphrase-callback-function): New function.
815 (epa-find-file): Reset buffer-undo-list; set
816 buffer-file-coding-system to last-coding-system-used after
819 2006-04-17 Daiki Ueno <ueno@unixuser.org>
821 * epa-file.el (epa-write-file): Try to write region to "/" to get
822 last-coding-system-used to be set.
824 2006-04-17 Daiki Ueno <ueno@unixuser.org>
826 * epa-file.el: New implementation of epf.el.
830 2006-04-17 Daiki Ueno <ueno@unixuser.org>
832 * epa.el (epa-verify-file): Display verify result.
834 * epg.el (epg-invalid-recipients-alist): New variable.
835 (epg-status-INV_RECP): New function.
836 (epg-status-NO_RECP): New function.
838 * epa.el (epa-keys-mode-map): Bind epa-decrypt-file,
839 epa-verify-file, epa-sign-file, and epa-encrypt-file.
840 (epa-decrypt-file): New function imported from epa-dired.el.
841 (epa-verify-file): New function imported from epa-dired.el.
842 (epa-sign-file): New function imported from epa-dired.el.
843 (epa-encrypt-file): New function imported from epa-dired.el.
845 2006-04-16 Daiki Ueno <ueno@unixuser.org>
847 * epa.el (epa-select-keys): Renamed from epa-ask-keys; use
849 * epa-dired.el (epa-dired-encrypt-file): Use epa-select-keys.
851 2006-04-16 Daiki Ueno <ueno@unixuser.org>
853 * epa-setup.el: New file.
854 * epa-dired.el: New file.
856 * epg.el (epg-colons-pub-spec): Abolished.
857 (epg-colons-sec-spec): Abolished.
858 (epg-colons-uid-spec): Abolished.
859 (epg-colons-fpr-spec): Abolished.
860 (epg-key-validity-alist): New variable.
861 (epg-key-capablity-alist): New variable.
862 (epg-make-key): New object epg-key.
863 (epg-make-sub-key): New object epg-sub-key.
864 (epg-make-user-id): New object epg-user-id.
865 (epg-list-keys-1): Renamed from epg-list-keys.
866 (epg-list-keys): Rewritten.
868 2006-04-15 Daiki Ueno <ueno@unixuser.org>
870 * epg.el (epg-list-keys): Make the NAME argument optional.
872 2006-04-13 Daiki Ueno <ueno@unixuser.org>
874 * epa.el: Added header.
876 * epg.el (epg-list-keys): Specify --with-fingerprint.
877 (epg-colons-fpr-spec): New variable.
878 (epg-colons-pub-spec): Renamed trust -> validity and ownertrust ->
880 (epg-colons-sec-spec): Ditto.
881 (epg-colons-uid-spec): Renamed trust -> validity.
883 2006-04-13 Daiki Ueno <ueno@unixuser.org>
887 * epg.el (epg-cipher-algorithm-alist): New constant.
888 (epg-pubkey-algorithm-alist): New constant.
889 (epg-digest-algorithm-alist): New constant.
890 (epg-compress-algorithm-alist): New constant.
891 (epg-configuration): New function.
892 (epg-start): Don't specify --yes.
894 2006-04-13 Daiki Ueno <ueno@unixuser.org>
896 * epg.el (epg-make-data-from-file): New function.
897 (epg-make-data-from-string): New function.
898 (epg-data-file): New function.
899 (epg-data-string): New function.
900 (epg-start-decrypt): Get a cipher text from a data object.
901 (epg-delete-output-file): New function.
902 (epg-decrypt-file): Add the 3rd argument PLAIN to specify where
904 (epg-start-verify): Get a signature and signed-text from a data
906 (epg-verify-file): Added the 3rd argument PLAIN to specify where
907 the output goes; return the plain text if PLAIN is nil.
908 (epg-verify-string): Return the plain text.
909 (epg-start-sign): Get a plain text from a data object.
910 (epg-sign-file): Added the 3rd argument SIGNATURE to specify where
912 (epg-start-encrypt): Get a plain text from a data object.
913 (epg-encrypt-file): Added the 4th argument CIPHER to specify where
915 (epg-start-import-keys): Get keys from a data object.
916 (epg-import-keys-1): New function.
917 (epg-import-keys-from-file): Use it.
918 (epg-import-keys-from-string): Use it.
920 2006-04-12 Daiki Ueno <ueno@unixuser.org>
922 * epf.el: Renamed from epg-file.el.
924 2006-04-12 Daiki Ueno <ueno@unixuser.org>
926 * epg.el (epg-status-GET_BOOL): New function.
927 (epg-status-GET_LINE): New function.
928 (epg-prompt-alist): New variable, to be filled.
930 * pgg-epg.el (mml2015-gpg-extract-signature-details): New function.
931 * epg.el (epg-signature-fingerprint): New function.
932 (epg-signature-set-fingerprint): New function.
933 (epg-status-VALIDSIG): New function.
935 * epg.el (epg-reset): Don't reset result.
936 (epg-start-decrypt): Reset result before epg-start.
937 (epg-start-verify): Ditto.
938 (epg-start-sign): Ditto.
939 (epg-start-encrypt): Ditto.
940 (epg-start-export-keys): Ditto.
941 (epg-start-import-keys): Ditto.
943 * Makefile.am (EXTRA_DIST): Added pgg-epg.el.
944 * pgg-epg.el: New file.
946 * epg.el (epg-start-export-keys): New function.
947 (epg-export-keys): New function.
948 (epg-start-import-keys): New function.
949 (epg-import-keys): New function.
950 (epg-verify-file): New function.
952 * epg-file.el (epg-file-write-region): Support public key encryption.
954 * epg.el (epg-passphrase-callback-function): Always display key-id.