1 2008-02-07 Daiki Ueno <ueno@unixuser.org>
3 * EasyPG: Version 0.0.16 released.
4 * configure.ac: Bump up version.
6 2008-02-06 Daiki Ueno <ueno@unixuser.org>
8 * epa-file.el (epa-file-passphrase-callback-function): Use
9 canonical file names as keys for cache.
11 2008-01-22 Daiki Ueno <ueno@unixuser.org>
13 * epa-mail.el (epa-mail--find-usable-key): New function.
14 (epa-mail-encrypt): Use it.
15 Reported by intrigeri <intrigeri@boum.org>.
17 2007-11-26 Daiki Ueno <ueno@unixuser.org>
19 * epg-package-info.el.in (epg-bug-report-address): New constant.
21 * configure.ac: Use modern AC_INIT.
23 2007-09-05 Daiki Ueno <ueno@unixuser.org>
25 * EasyPG: Version 0.0.15 released.
26 * configure.ac: Bump up version.
28 2007-09-05 Daiki Ueno <ueno@unixuser.org>
30 * epa.el (epa-validity-face-alist): Fixed misuse of the list
32 (epa-font-lock-keywords): Define as defvar.
33 (epa--show-key): Don't signal an error even if a time cannot be decoded.
35 * epa-file.el (epa-file-auto-mode-alist-entry): New variable.
36 (epa-file-enable): Install a strip-suffix entry in auto-mode-alist.
37 (epa-file-disable): Remove the entry from auto-mode-alist.
39 2007-08-31 Daiki Ueno <ueno@unixuser.org>
41 * epa.el (epa-verify-region): Decode the plaintext by
42 coding-system-for-read or one saved in epa-coding-system-used.
44 2007-08-02 Adrian Aichner <adrian@xemacs.org> (tiny change)
46 * epa.el (epa-validity-high): Fix load error by adding missing
49 2007-07-30 Daiki Ueno <ueno@unixuser.org>
51 * epa-file.el (epa-file-insert-file-contents): Ignore errors from
54 2007-07-29 Daiki Ueno <ueno@unixuser.org>
56 * EasyPG: Version 0.0.14 released.
57 * configure.ac: Bump up version.
59 2007-07-29 Daiki Ueno <ueno@unixuser.org>
61 * epa.el: Use :weight or :slant keywords to define faces, if
64 2007-07-17 Daiki Ueno <ueno@unixuser.org>
66 * epa-file.el (epa-file-insert-file-contents): If a file is not
67 directly accessible, use the local copy of the file.
68 Reported by Jaroslav Gresula <jgresula@gmail.com>
70 2007-07-10 Daiki Ueno <ueno@unixuser.org>
72 * epa.el: Removed -face suffix from face names;
73 removed face symbol vars.
75 2007-05-29 Daiki Ueno <ueno@unixuser.org>
77 * EasyPG: Version 0.0.13 released.
78 * configure.ac: Bump up version.
80 2007-05-29 Daiki Ueno <ueno@unixuser.org>
82 * epa-file.el (epa-file-write-region): Supply the BUFFER argument
84 (epa-file-find-file-hook): Mark the current buffer as unmodified.
85 Suggested by Adrian Aichner <adrian@elisp.de>
87 2007-04-29 Daiki Ueno <ueno@unixuser.org>
89 * epa-file.el (epa-file-write-region): Don't use epa-textmode.
91 2007-04-29 Daiki Ueno <ueno@unixuser.org>
93 * EasyPG: Version 0.0.12 released.
94 * configure.ac: Bump up version.
96 2007-04-29 Daiki Ueno <ueno@unixuser.org>
98 * epa-file.el (epa-file-write-region): Respect epa-armor and
101 2007-04-26 Daiki Ueno <ueno@unixuser.org>
103 * epg.el (epg--prompt-GET_BOOL-untrusted_key.override): Lookup
104 user-id from epg-user-id-alist.
106 2007-04-22 Daiki Ueno <ueno@unixuser.org>
108 * epa-file.el (epa-file-select-keys): New command.
110 2007-04-21 Daiki Ueno <ueno@unixuser.org>
112 * epa-file.el (epa-file-write-region): Ask recipients only the
114 (epa-file-select-keys): New user option.
116 2007-04-19 Daiki Ueno <ueno@unixuser.org>
118 * epa.el (epa-mark-key): Renamed from epa-mark; signal an error if
119 no key is on the line.
120 (epa-unmark-key): Renamed from epa-unmark.
121 (epa-toggle-mark): Abolished.
123 * epa-file.el (epa-file-insert-file-contents): Guess the value of
124 epa-file-encrypt-to from 'encrypted-to context-result.
125 (epa-file-encrypt-to): Make it permanent local.
127 * epg.el (epg--status-ENC_TO): New function.
129 2007-04-04 Daiki Ueno <ueno@unixuser.org>
130 Chris Moore <dooglus@users.sourceforge.jp>
132 * epa-file.el (epa-file--file-name-regexp-set): New Custom :set
134 (epa-file-name-regexp): Use it.
135 (epa-file-name-regexp-update): New command.
136 (epa-file-name-regexp): Accept backup filenames.
137 Reported by "[ #10192 ] customizing epa-file-name-regexp fails"
139 2007-04-04 Daiki Ueno <ueno@unixuser.org>
141 * epa-file.el (epa-file-find-file-hook): New function.
142 (epa-file-enable): Add epa-file-find-file-hook to find-file-hooks.
143 (epa-file-disable): Remove epa-file-find-file-hook from
146 2007-03-29 Daiki Ueno <ueno@unixuser.org>
148 * EasyPG: Version 0.0.11 released.
149 * configure.ac: Bump up version.
151 2007-03-26 Daiki Ueno <ueno@unixuser.org>
153 * epa.el (epa--insert-keys): Changed arglist. All callers
155 (epa--select-keys): New function.
156 (epa-select-keys): Use it; don't popup menu if keys have elements
159 2007-03-25 Daiki Ueno <ueno@unixuser.org>
161 * epa.el (epa-protocol): defcustom -> defvar.
163 (epa-textmode): Ditto.
165 2007-03-24 Daiki Ueno <ueno@unixuser.org>
167 * epa.el (epa-select-keys): Simplified; don't select the first
169 (epa-key-list-mode-map): Bind revert-buffer instead of
171 (epa-key-list-mode): Set revert-buffer-function to epa--revert-buffer.
172 (epa--revert-buffer): New function.
174 * epg.el (epg--list-keys-1): Accept a list of strings as NAME
176 (epg-list-keys): Ditto.
178 2007-03-21 Daiki Ueno <ueno@unixuser.org>
180 * epa-file.el (epa-file-inhibit-auto-save): New user option.
181 (epa-file-insert-file-contents): Turn off auto-save-mode if
182 epa-file-inhibit-auto-save is non-nil.
183 Reported by "[ #9937] epa-file auto-saves in plain text"
185 * epa.el (epa--list-keys): New function.
186 (epa-list-keys): Use it.
187 (epa-list-secret-keys): New command.
189 2007-03-20 Daiki Ueno <ueno@unixuser.org>
191 * epa.el (epa-display-info): Generate new *Info* buffer if buffer
193 (epa-verify-cleartext-in-region): s/armor/cleartext/g.
195 * Makefile.am (info_TEXINFOS): Added epa.texi.
196 * epa.texi: New file.
198 2007-03-19 Daiki Ueno <ueno@unixuser.org>
200 * epg.el (epg--decode-percent-escape): New function.
202 2007-03-08 Daiki Ueno <ueno@unixuser.org>
204 * epg.el (epg-list-keys): Parse GnuPG's print_string escape.
206 2007-03-08 Daiki Ueno <ueno@unixuser.org>
208 * epa-mail.el (epa-mail-mode-hook): New variable.
209 (epa-mail-mode-on-hook): New variable.
210 (epa-mail-mode-off-hook): New variable.
212 * epg.el (epg--start): Make the process-buffer unibyte.
213 (epg--status-USERID_HINT): Decode user-id.
214 (epg--status-IMPORTED): Decode user-id.
216 2007-03-07 Daiki Ueno <ueno@unixuser.org>
218 * epg.el (epg--start): Don't specify --use-agent if the protocol
219 is CMS; set coding-system-for-read to binary.
220 (epg--status-*SIG): Decode user-id.
222 2007-02-02 Daiki Ueno <ueno@unixuser.org>
224 * epa-file.el (epa-file-write-region): Set a dummy filename
225 for buffer-file-name when calling select-safe-coding-system.
227 2007-01-30 Daiki Ueno <ueno@unixuser.org>
229 * epg.el (epg-last-status): New variable.
230 (epg--process-filter): Set epg-last-status after calling a status
232 (epg--prompt-GET_BOOL): New function.
233 (epg--prompt-GET_BOOL-untrusted_key.override): New function.
234 (epg--status-GET_BOOL): Call epg--prompt-GET_BOOL-* instead of
237 2007-01-29 Daiki Ueno <ueno@unixuser.org>
239 * EasyPG: Version 0.0.10 released.
240 * configure.ac: Bump up version.
242 2007-01-29 Daiki Ueno <ueno@unixuser.org>
244 * epg-config.el: Require epg-package-info.
245 * configure.ac: Generate epg-package-info.el.
246 * Makefile.am (DISTCLEANFILES): Added epg-package-info.el.
247 * COMPILE (epg-modules): Added epg-package-info.
248 * epg-package-info.el.in: New file.
250 2007-01-29 Daiki Ueno <ueno@unixuser.org>
252 * epa-setup.el (epa-mail-mode): Autoload; setup mail-mode-hook.
253 * epa.el: Removed epa-*-mail stuff.
254 * Makefile.am (EXTRA_DIST): Added epa-mail.el.
255 * COMPILE (epg-modules): Added epa-mail.
256 * epa-mail.el: New file.
258 2007-01-05 Daiki Ueno <ueno@unixuser.org>
260 * epg-pgp50i.el: Removed.
262 * epa.el (epa-key-list-mode-map): Renamed from epa-keys-mode-map.
263 (epa-key-list-mode): Renamed from epa-keys-mode. All callers
266 * epg.el (epg--status-VALIDSIG): Don't set expiration-time if it
268 (epg--make-sub-key-1): Ditto.
269 (epg--decode-hexstring): "\\x" -> "\\\\x".
270 (epg--decode-quotedstring): Ditto.
272 * pgg-epg.el (pgg-epg-encrypt-region): Ask a user whether to skip a
273 recipient whose public key is not available.
274 * epa.el (epa-encrypt-mail): Ask a user whether to skip a
275 recipient whose public key is not available.
277 2007-01-04 Daiki Ueno <ueno@unixuser.org>
279 * epa.el (epa-decrypt-mail): Renamed from epa-decrypt.
280 (epa-verify-mail): Renamed from epa-verify.
281 (epa-sign-mail): Renamed from epa-sign.
282 (epa-encrypt-mail): Renamed from epa-encrypt.
283 (epa-import-mail): Renamed from epa-import.
285 * configure.ac: Don't exit if GnuPG (>= 1.4.3) is unavailable.
287 * epg.el (epg-signature-to-string): Print creation-time and used
289 (epg-sign-string): If the GnuPG version is earlier than 1.4.3,
290 fallback to use a temp file as an input.
291 (epg-encrypt-string): Ditto.
293 2006-12-31 Daiki Ueno <ueno@unixuser.org>
295 * epa.el (epa-mail-modes): New user option.
296 (epa--mail-mode-p): New function.
298 (epa-encrypt): Use it.
299 (epa--find-coding-system-for-mime-charset): New function.
300 (epa-decrypt-armor-in-region): Use it.
301 (epa-progress-callback-function): Use handback as the prompt.
302 (epa-encrypt-region): Take 4th argument SIGN.
303 (epa-encrypt): Ditto.
305 2006-12-31 Daiki Ueno <ueno@unixuser.org>
307 * epa.el (epa--derived-mode-p): New alias.
309 (epa-encrypt): Use it.
311 2006-12-31 Daiki Ueno <ueno@unixuser.org>
313 * epa.el (epa--read-signature-type): New function.
314 (epa-decrypt): New command.
315 (epa-verify): New command.
316 (epa-sign): New command.
317 (epa-encrypt): New command.
318 (epa-import-armor-in-region): New command.
319 (epa-import): New command.
320 (epa-decrypt-region): Confirm user to replace the region.
321 (epa-display-info): Delete "*Info*" window.
323 2006-12-29 Daiki Ueno <ueno@unixuser.org>
325 * EasyPG: Version 0.0.9 released.
326 * epg-config.el (epg-version-number): Bump up.
327 * configure.ac: Bump up version.
329 2006-12-28 Daiki Ueno <ueno@unixuser.org>
331 * epa.el (epa-sign-file): Ask signing key only when a prefix arg
332 is given; ask signature type only when a prefix arg is given.
333 (epa-sign-region): Ditto.
335 2006-12-26 Daiki Ueno <ueno@unixuser.org>
337 * epg-config.el (epg-passphrase-coding-system): Default to nil.
339 2006-12-20 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
341 * epa.el (epa--format-fingerprint-1): New function.
342 (epa--format-fingerprint): Ditto.
343 (epa--show-key): Use it.
345 2006-12-20 Daiki Ueno <ueno@unixuser.org>
347 * epa-file.el (epa-file-write-region): Don't attempt to write the
348 region to "/" to determine safe coding-system.
350 * epa.el (epa-list-keys): Abolished PROTOCOL arg.
351 (epa-sign-file): Save the output to *.p7s or *.p7m file if
353 (epa-encrypt-file): Ditto.
354 (epa-last-coding-system-specified): New variable.
355 (epa-decrypt-region): Try to decode with the
356 epa-coding-system-used text property.
357 (epa--select-safe-coding-system): New function.
358 (epa-verify-region): Try to decode with the epa-coding-system-used
360 (epa-sign-region): Query user to select coding-system to encode;
361 set the epa-coding-system-used text property on the result.
362 (epa-encrypt-region): Ditto.
364 2006-12-19 Daiki Ueno <ueno@unixuser.org>
366 * epg.el (epg-export-keys-to-file): Fixed a typo.
368 * epa.el (epa-protocol): New user option.
369 (epa-sign-region): --armor & --textmode.
370 (epa-encrypt-region): Ditto.
371 (epa-list-keys): If prefix-arg is specified, use "OpenPGP" as the
373 (epa-import-keys-region): New command.
374 (epa-insert-keys): New command.
375 (epa--insert-keys): Renamed from epa-insert-keys.
377 2006-12-11 Daiki Ueno <ueno@unixuser.org>
379 * pgg-epg.el (pgg-epg-decrypt-region): Don't call
380 decode-coding-string if it is not bound.
382 * epa-file.el (epa-file--encode-coding-string): New alias.
383 (epa-file--decode-coding-string): New alias.
384 (epa-file-write-region): Use epa-file--encode-coding-string.
385 (epa-file-decode-and-insert): Use epa-file--decode-coding-string.
387 * epa.el (epa--encode-coding-string): New alias.
388 (epa--decode-coding-string): New alias.
389 (epa-verify-region): Use epa--encode-coding-string.
390 (epa-sign-region): Ditto; use epa--decode-coding-string.
391 (epa-encrypt-region): Use epa--encode-coding-string.
393 * epg.el (epg--encode-coding-string): New alias.
394 (epg--status-GET_HIDDEN): Use it.
396 2006-11-29 Daiki Ueno <ueno@unixuser.org>
398 * EasyPG: Version 0.0.8 released.
399 * epg-config.el (epg-version-number): Bump up.
400 * configure.ac: Bump up version.
402 2006-11-20 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
404 * epa-file.el (epa-file-encrypt-to): New file local variable.
405 (epa-file-write-region): Specify recipients by epa-file-encrypt-to.
407 2006-11-26 Daiki Ueno <ueno@unixuser.org>
409 * epa.el (epa-sign-file): Query signature type at a time.
410 (epa-decrypt-file): Display output file name on completion.
411 (epa-sign-file): Ditto.
412 (epa-encrypt-file): Ditto.
414 2006-11-25 Daiki Ueno <ueno@unixuser.org>
416 * epa.el (epa-keys-mode): Don't call widget-setup.
417 (epa-list-keys): Call widget-setup here.
418 (epa-select-keys): Ditto.
420 2006-11-24 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
422 * epg.el (epg-delete-keys): Remove redundant argument for `error'
423 and fix a close parenthesis.
425 2006-11-24 Daiki Ueno <ueno@unixuser.org>
427 * epg.el (epg--status-GET_HIDDEN): Encode passphrase with eol-type LF.
428 Reported by Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>.
429 cf. <emacs-mime-ja:02090>
431 2006-11-23 Daiki Ueno <ueno@unixuser.org>
433 * epa.el (epa-sign-region): Query signature type at a time.
435 2006-11-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
437 * epg.el (epg-context-set-passphrase-callback): Add optional
439 (epg-context-set-progress-callback): Ditto.
441 2006-11-14 Daiki Ueno <ueno@unixuser.org>
443 * epa.el (epa--key-widget-value-create): Allow empty user IDs.
444 (epa--show-key): Ditto.
445 Reported by Werner Koch <wk@gnupg.org>.
447 * epg.el (epg--start): Don't specify --enable-progress-filter for
449 (epg--status-PROGRESS): Check if progress-callback is set.
451 2006-11-12 Daiki Ueno <ueno@unixuser.org>
453 * epg.el (epg-error): New error.
454 (epg--check-error-for-decrypt): New function.
455 (epg-decrypt-file): Use it.
456 (epg-decrypt-string): Use it.
457 (epg--start): Added a very basic test to check whether to specify
460 * epa.el (epa-decrypt-file): Expand file name.
461 (epa-verify-file): Ditto.
462 (epa-import-keys): Ditto.
464 2006-11-12 Daiki Ueno <ueno@unixuser.org>
466 * epg.el (epg-delete-keys): Decode delete-problem.
468 * epa.el (epa-popup-info-window): Turn on by default.
469 (epa-display-info): Split selected window instead of pop-to-buffer.
471 2006-11-12 Daiki Ueno <ueno@unixuser.org>
473 * epa.el (epa-display-info): Generalized; renamed from
474 epa-display-verify-result.
475 (epa-decrypt-file): Use it.
476 (epa-verify-file): Use it.
477 (epa-decrypt-region): Use it.
478 (epa-verify-region): Use it.
479 (epa-import-keys): Show import result.
480 (epa-display-verify-result): Make it obsolete.
482 * epg.el (epg-start-sign-keys): Make it obsolete; signing a key is
484 (epg-sign-keys): Make it obsolete.
485 (epg-make-import-status): New object epg-import-status.
486 (epg-make-import-result): New object epg-import-result.
487 (epg--status-IMPORT_RES): New function.
488 (epg-import-result-to-string): New function.
490 * epa.el (epa-keys-mode-map): Don't bind epa-sign-keys.
491 (epa-sign-keys): Make it obsolete.
493 2006-11-11 Daiki Ueno <ueno@unixuser.org>
495 * epg.el (epg-start-sign): Don't set --armor nor --textmode if
496 mode is set for a cleartext signature.
497 (epg-make-context): New slot "sig-notations".
498 (epg--args-from-sig-notations): New function.
499 (epg-start-sign): Specify --sig-notation or --sig-policy-url if
501 (epg-start-encrypt): Ditto.
502 (epg-make-signature): New slot "notations".
503 (epg--status-NOTATION_NAME): New function.
504 (epg--status-NOTATION_DATA): New function.
505 (epg--status-POLICY_URL): New function.
507 2006-10-29 Daiki Ueno <ueno@unixuser.org>
509 * EasyPG: Version 0.0.7 released.
510 * epg-config.el (epg-version-number): Bump up.
511 * configure.ac: Bump up version.
513 2006-10-29 Daiki Ueno <ueno@unixuser.org>
516 (epa-file-cache-passphrase-for-symmetric-encryption): New user
519 2006-10-12 Daiki Ueno <ueno@unixuser.org>
521 * epg.el (epg-start-verify): Fixed a clearsign verification bug.
522 Reported by Hirohisa Yamaguchi <umq@ueo.co.jp>.
524 2006-09-29 Daiki Ueno <ueno@unixuser.org>
526 * EasyPG: Version 0.0.6 released.
527 * epg.el (epg-version-number): Bump up.
528 * configure.ac: Bump up version.
530 2006-09-29 Daiki Ueno <ueno@unixuser.org>
532 * epa.el (epa-verify-cleartext-in-region): Renamed from
533 epa-verify-armor-in-region.
535 * epg.el (epg-passphrase-callback-function): Suggest to use
536 epa-passphrase-callback-function instead.
537 (epg-start-verify): Don't specify --verify if SIGNATURE is a
538 normal or a clear text signature.
539 (epg-verify-file): Mention that the plaintext will be stored into
540 the file PLAIN after successful verification.
541 (epg-verify-string): Mention that the plaintext will be returned
542 after successful verification.
544 2006-09-27 Daiki Ueno <ueno@unixuser.org>
546 * epa-file.el (epa-file-insert-file-contents): Set progress callback.
547 (epa-file-write-region): Ditto.
549 * epa.el (epa-decrypt-file): Set callbacks.
550 (epa-sign-file): Ditto.
551 (epa-encrypt-file): Ditto.
552 (epa-decrypt-region): Ditto.
553 (epa-sign-region): Ditto.
554 (epa-encrypt-region): Ditto.
555 (epa-sign-keys): Ditto.
557 * epg.el (epg-progress-callback-function): Removed.
559 2006-09-24 Daiki Ueno <ueno@unixuser.org>
561 * epa.el (epa-passphrase-callback-function): Moved from epg.el.
562 (epa-progress-callback-function): Ditto.
563 * epg.el (epg-passphrase-callback-function): Made it obsolete.
564 (epg-progress-callback-function): Ditto.
566 2006-09-23 Daiki Ueno <ueno@unixuser.org>
568 * epg.el (epg-start-decrypt): Append "--" to the end of options.
569 (epg-start-verify): Ditto.
570 (epg-start-sign): Ditto.
571 (epg-start-encrypt): Ditto.
572 (epg-start-import-keys): Ditto.
573 (epg-start-generate-key): Ditto.
575 2006-09-23 Daiki Ueno <ueno@unixuser.org>
577 * epg.el (epg-make-context): Don't set progress-callback by
579 (epg--start): Don't specify --enable-progress-filter if
580 progress-callback is not set.
581 (epg--status-GET_HIDDEN): Signal an error if passphrase-callback
584 2006-09-15 Daiki Ueno <ueno@unixuser.org>
586 * epg.el (epg-progress-callback-function): Show the percentage.
588 2006-09-15 Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr>
590 * pgg-epg.el (mml2015-gpg-extract-signature-details): Fixed a typo.
592 2006-09-13 Daiki Ueno <ueno@unixuser.org>
594 * epg-config.el (epg-passphrase-coding-system): Renamed from
595 epg-locale-coding-system.
597 2006-09-11 Daiki Ueno <ueno@unixuser.org>
599 * epa-file.el (epa-file-decode-and-insert): New function which
600 utilizes decode-coding-inserted-region if available.
601 (epa-file-insert-file-contents): Use it.
603 * epg.el (epg--start): Specify --enable-progress-filter in
605 (epg-progress-callback-function): Remove a couple of %%'s.
607 2006-09-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
609 * epg-config.el (epg-configuration): Fixed the last change;
610 collect configuration other than group and algorithm.
612 2006-09-05 Daiki Ueno <ueno@unixuser.org>
614 * epg-config.el (epg-debug): Moved from epg.el.
615 (epg-configuration): Parse group configuration.
616 (epg-expand-group): New function.
618 2006-09-04 Daiki Ueno <ueno@unixuser.org>
620 * EasyPG: Version 0.0.5 released.
621 * epg.el (epg-version-number): Bump up.
622 * configure.ac: Bump up version.
624 2006-09-04 Daiki Ueno <ueno@unixuser.org>
626 * epg-config.el (epg-locale-coding-system): New user option.
628 * epg.el (epg--list-keys-1): Respect epg-gpg-home-directory.
629 (epg--clear-string): New function.
630 (epg--status-GET_HIDDEN): Encode passphrase with
631 terminal-coding-system.
633 * epg-config.el (epg-gpg-minimum-version): New constant.
634 (epg-config--parse-version): New function.
635 (epg-config--compare-version): New function.
636 (epg-configuration): Respect epg-gpg-home-directory.
638 2006-09-03 Daiki Ueno <ueno@unixuser.org>
640 * epg-config.el: New file; moved GnuPG configuration check from
643 2006-09-02 Daiki Ueno <ueno@unixuser.org>
645 * epg.el (epg-check-configuration): New function.
646 (epg-gpg-home-directory): New user option.
648 * pgg-epg.el (pgg-epg-lookup-key): New function.
650 2006-07-29 Daiki Ueno <ueno@unixuser.org>
652 * EasyPG: Version 0.0.4 released.
653 * epg.el (epg-version-number): Bump up.
654 * configure.ac: Bump up version.
656 2006-07-29 Daiki Ueno <ueno@unixuser.org>
658 * acinclude.m4 (AC_CHECK_GPG): Run $3 if there is no gpg executable.
660 2006-07-28 Daiki Ueno <ueno@unixuser.org>
662 * epg.el (epg-start-encrypt): Extract primary key ID from
664 Reported by Steve Youngs <steve@sxemacs.org>
666 * pgg-epg.el (pgg-epg-encrypt-region): Fixed a bug; it didn't
667 give CONTEXT to epg-list-keys.
668 Reported by Steve Youngs <steve@sxemacs.org>
670 2006-07-18 Daiki Ueno <ueno@unixuser.org>
672 * epg-pgp50i.el (epg-pgp50i--process-filter): Use
673 epg-process-filter-running instead of epg-pgp50i-status; Don't
674 save-excursion during handler execution.
675 (epg-pgp50i--read-line): Renamed from epg-pgp50i--wait-for-line;
676 don't allow process input.
677 (epg-pgp50i--parse-time): New function.
678 (epg-pgp50i--status-BAD_SIGNATURE): New function.
680 * epg.el (epg--process-filter): Don't save-excursion during
683 2006-07-18 Daiki Ueno <ueno@unixuser.org>
685 * acinclude.m4 (AC_CHECK_GPG): Renamed from AC_PATH_GPG.
687 * epg.el (epg-process-filter-running): New variable.
688 (epg--start): Setup epg-process-filter-running.
689 (epg--process-filter): Allow only one status handler to run at a
690 time; update epg-read-point everytime the point changes.
692 2006-07-14 Daiki Ueno <ueno@unixuser.org>
694 * epg-pgp50i.el: New file.
696 2006-07-13 Daiki Ueno <ueno@unixuser.org>
698 * acinclude.m4 (AC_PATH_GPG): New macro.
699 * configure.ac: Check gpg version.
700 Suggested by Max Froumentin <max@lapin-bleu.net>
702 2006-07-10 Daiki Ueno <ueno@unixuser.org>
704 * epg.el (epg--status-ERRSIG): Don't remove the last verify-result.
705 (epg-signature-to-string): Remove a trailing whitespace.
707 * epa.el (epa-keys-mode-map): Bind return to epa-toggle-mark.
708 (epa-toggle-mark): New command.
710 2006-07-04 Daiki Ueno <ueno@unixuser.org>
712 * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched
713 with pgg-default-user-id.
714 Reported by Elias Oltmanns <oltmanns@uni-bonn.de>
716 2006-07-01 Daiki Ueno <ueno@unixuser.org>
718 * epa.el (epa-select-keys): If SECRET is specified, select a
719 primary secret key by default.
721 2006-06-29 Daiki Ueno <ueno@unixuser.org>
723 * EasyPG: Version 0.0.3 released.
724 * epg.el (epg-version-number): Bump up.
725 * configure.ac: Bump up version.
727 2006-06-12 Daiki Ueno <ueno@unixuser.org>
729 * epa-file.el (epa-file-insert-file-contents): Don't move the
730 point to the end of the inserted region.
731 Reported by doug <douglas.bagley@gmail.com>
733 2006-06-01 Daiki Ueno <ueno@unixuser.org>
735 * epa-file.el (epa-file-insert-file-contents): Support partial read.
737 2006-05-30 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
739 * epa-file.el (epa-file-write-region): Encode the plain text with
740 coding-system-for-write.
742 2006-05-30 Daiki Ueno <ueno@unixuser.org>
744 * epa-file.el (epa-file-insert-file-contents):
745 Decode the decrypted text with coding-system-for-read.
747 2006-05-29 Daiki Ueno <ueno@unixuser.org>
749 * EasyPG: Version 0.0.2 released.
750 * epg.el (epg-version-number): Bump up.
751 * configure.ac: Bump up version.
753 2006-05-29 Daiki Ueno <ueno@unixuser.org>
755 * epg.el (epg--time-from-seconds): New function.
756 (epg--status-ERRSIG): Convert seconds from epoch to encoded-time.
757 (epg--status-VALIDSIG): Ditto.
758 (epg--status-KEYEXPIRED): Ditto.
760 2006-05-28 Daiki Ueno <ueno@unixuser.org>
762 * epg.el (epg-start-import-keys): Don't specify filename if keys
765 2006-05-27 Daiki Ueno <ueno@unixuser.org>
767 * epg.el (epg--process-filter): Pass epg-context instead of
768 process to status handlers.
769 (epg--status-NO_PUBKEY): Check if the previous signature's key-id
770 matches with the given key-id.
772 2006-05-26 Daiki Ueno <ueno@unixuser.org>
774 * epg.el (epg--status-NO_PUBKEY): Replace the previous signature's
775 status from 'error to 'no-pubkey.
776 (epg--status-ERRSIG): Just add 'error signature to the verify result.
778 * epa.el (epa-insert-keys): Renamed from epa-list-keys-1; don't
779 disable inhibit-quit here; make text-properties nonsticky.
780 (epa-popup-info-window): New user option.
781 (epa-info-window-height): New user option.
782 (epa-display-verify-result): New function.
783 (epa-decrypt-file): Use it.
784 (epa-verify-file): Use it.
785 (epa-decrypt-region): Use it.
786 (epa-verify-region): Use it.
788 * epg.el (epg-make-context): New slot "operation".
789 (epg-passphrase-callback-function): Confirm passphrase when
790 performing symmetric encryption.
792 2006-05-25 Daiki Ueno <ueno@unixuser.org>
794 * epa.el (epa-decrypt-file): Display verify result if the message
796 (epa-decrypt-region): New command.
797 (epa-verify-region): New command.
798 (epa-decrypt-armor-in-region): New command.
799 (epa-verify-armor-in-region): New command.
800 (epa-sign-region): New command.
801 (epa-encrypt-region): New command.
803 2006-05-11 Daiki Ueno <ueno@unixuser.org>
805 * epa.el (epa-armor): New user option.
806 (epa-textmode): New user option.
808 2006-05-02 Daiki Ueno <ueno@unixuser.org>
810 * epg.el (epg-make-key-signature): New object epg-key-signature.
811 (epg-list-keys): Collect key signatures.
812 (epg-make-sub-key): Renamed secret -> secret-p.
813 (epg-list-keys-postprocess-one-key): Abolished.
814 (epg-list-keys): Reverse all keys, sub-keys, user-ids, and key
815 signatures by itself.
816 (epg-no-data-reason-alist): New constant.
817 (epg-unexpected-reason-alist): New constant.
819 2006-05-01 Daiki Ueno <ueno@unixuser.org>
821 * epg.el (epg-invalid-recipients-reason-alist): Renamed.
822 (epg-delete-problem-reason-alist): Renamed.
823 (epg-import-ok-reason-alist): New constant.
824 (epg-import-problem-reason-alist): New constant.
825 (epg-status-IMPORTED): New function.
826 (epg-status-IMPORT_OK): New function.
827 (epg-status-IMPORT_PROBLEM): New function.
828 (epg-start-import-keys): Don't use a temporary output file.
829 (epg-start-receive-keys): New function.
830 (epg-import-keys-from-server): New function.
831 (epg-receive-keys): Alias to epg-import-keys-from-server.
833 2006-05-01 Daiki Ueno <ueno@unixuser.org>
835 * epg.el (epg-start): Signal an error if the process of CONTEXT is
836 already running for other operations.
837 (epg-flush): Abolished.
838 (epg-start-generate-key): New function.
839 (epg-generate-key-from-file): New function.
840 (epg-generate-key-from-string): New function.
841 (epg-status-KEY_CREATED): New function.
842 (epg-status-KEY_NOT_CREATED): New function.
843 (epg-new-signature-type-alist): New variable.
844 (epg-make-new-signature): New object epg-new-signature.
845 (epg-status-SIG_CREATED): Set epg-new-signature object.
846 (epg-new-signature-to-string): New function.
847 (epg-make-signature): Added slots for signature class and version.
848 (epg-start-sign): Fixed rule of the MODE argument.
850 2006-04-30 Daiki Ueno <ueno@unixuser.org>
852 * epa.el (epa-delete-keys): Support deletion of secret keys.
854 * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
857 * epg.el (epg-read-output): Don't convert line endings of the
859 (epg-cancel): Set 'error result.
861 2006-04-29 Daiki Ueno <ueno@unixuser.org>
863 * epg.el (epg-make-signature): Removed user-id; added
864 creation-time, expiration-time, pubkey-algorithm,
866 (epg-process-sentinel): Abolished.
867 (epg-signature-to-string): Decode DN.
868 (epg-list-keys): Cache user-id in epg-user-id-alist.
869 (epg-make-user-id): Renamed name -> string.
871 2006-04-29 Daiki Ueno <ueno@unixuser.org>
873 * epg.el (epg-status-ERRSIG): New function.
874 (epg-verify-file): Signal an error if we encounter ERRSIG status.
875 (epg-verify-string): Ditto.
877 2006-04-28 Daiki Ueno <ueno@unixuser.org>
879 * epg.el: Added typecheck to accessors to objects.
881 2006-04-26 Daiki Ueno <ueno@unixuser.org>
883 * epg.el (epg-status-GET_HIDDEN): Pass epg-context as the first
884 argument of passphrase-callback.
885 (epg-status-PROGRESS): Ditto.
887 2006-04-26 Daiki Ueno <ueno@unixuser.org>
889 * epa.el (epa-select-keys): Don't set inhibit-quit when
890 recursive-edit is called.
891 (epg-cancel): New function.
893 2006-04-25 Daiki Ueno <ueno@unixuser.org>
895 * epg.el (epg-process-sentinel): New function; set 'error if gpg
896 process exited abnormally, but we have not received an error
898 (epg-sign-file): Signal an error only when a signature is not
900 (epg-sign-string): Ditto.
901 (epg-encrypt-file): Signal an error if SIGN is specified and
902 signature is not created.
903 (epg-encrypt-string): Ditto.
905 2006-04-22 Daiki Ueno <ueno@unixuser.org>
907 * epa.el (epa-key-widget-value-create): Decode DN.
908 (epa-list-keys): Add the PROTOCOL argument.
909 (epa-select-keys): Require CONTEXT as the first argument.
911 * epg.el (epg-gpgsm-program): New user option.
912 (epg-dn-type-alist): New variable.
913 (epg-start): Don't specify --command-fd if protocol is CMS.
914 (epg-list-keys): Require CONTEXT as the first argument.
915 (epg-dn-from-string): New function.
916 (epg-decode-dn): New function.
918 2006-04-21 Daiki Ueno <ueno@unixuser.org>
920 * epa.el (epa-sign-keys): New command.
922 * epg.el (epg-start-sign-keys): New function.
923 (epg-sign-keys): New function.
924 (epg-status-GET_HIDDEN): Enable local quit.
925 (epg-status-GET_BOOL): Ditto.
926 (epg-status-GET_LINE): Ditto.
928 2006-04-20 Daiki Ueno <ueno@unixuser.org>
930 * epa.el (epa-list-keys-1): Add 'epa-list-keys property to keylist
933 2006-04-20 Daiki Ueno <ueno@unixuser.org>
935 * pgg-epg.el (pgg-epg-secret-key-id-list): New variable.
936 (pgg-epg-passphrase-callback): New function.
938 * epa.el (epa-select-keys): Added "Cancel" button.
940 2006-04-20 Daiki Ueno <ueno@unixuser.org>
942 * epg.el (epg-signature-to-string): New function.
944 2006-04-20 Daiki Ueno <ueno@unixuser.org>
946 * epa-file.el (epa-file-write-region): RECIPIENTS is now a list of
948 * epa-dired.el (epa-dired-do-encrypt): RECIPIENTS is now a list of
951 * epa.el (epa-select-keys): Added MODE argument.
952 (epa-encrypt-file): RECIPIENTS is now a list of key objects.
954 * epg.el (epg-status-SIG_CREATED): New function.
955 (epg-start-sign): epg-context-signers is now a list of key objects.
956 (epg-start-encrypt): RECIPIENTS is now a list of key objects.
958 2006-04-19 Daiki Ueno <ueno@unixuser.org>
960 * epa.el (epa-verify-file): Show results in minibuffer.
961 * epg.el (epg-debug-buffer): New variable.
962 (epg-flush): New function.
964 2006-04-18 Daiki Ueno <ueno@unixuser.org>
966 * epa.el (epa-export-keys): New command.
967 * epg.el (epg-start-export-keys): Accept a list of epg-key object
970 2006-04-18 Daiki Ueno <ueno@unixuser.org>
972 * epa.el (epa-keys-mode-map): Bind epa-list-keys; epa-import-key.
973 (epa-import-key): New command.
975 * epg.el (epg-delete-problem-alist): New constant.
976 (epg-status-DELETE_PROBLEM): New function.
977 (epg-start-delete-key): New function.
978 (epg-delete-key): New function.
979 (epg-wait-for-completion): Add the NO-EOF argument.
981 2006-04-18 Daiki Ueno <ueno@unixuser.org>
983 * epg.el (epg-start): Insert the command-line arguments to the
985 (epg-start-encrypt): Wait for BEGIN_ENCRYPTION.
986 (epg-start-delete-key): New function.
987 (epg-delete-key): New function.
989 * epa.el (epa-key): New widget.
990 (epa-key-widget-action): New function.
991 (epa-key-widget-value-create): New function.
992 (epa-key-widget-button-face-get): New function.
993 (epa-key-widget-help-echo): New function.
995 2006-04-17 Daiki Ueno <ueno@unixuser.org>
997 * epa-file.el (epa-file-write-region): Check if START is a string.
999 2006-04-17 Daiki Ueno <ueno@unixuser.org>
1001 * epa-file.el: Rewritten with file-name-handler.
1002 (epa-file-handler): New variable.
1003 (epa-file-enable): New command.
1004 (epa-file-disable): New command.
1006 * epa-setup.el: Call epa-file-enable.
1008 2006-04-17 Daiki Ueno <ueno@unixuser.org>
1010 * epa-file.el (epa-passphrase): New variable.
1011 (epa-file-passphrase-callback-function): New function.
1012 (epa-find-file): Reset buffer-undo-list; set
1013 buffer-file-coding-system to last-coding-system-used after
1016 2006-04-17 Daiki Ueno <ueno@unixuser.org>
1018 * epa-file.el (epa-write-file): Try to write region to "/" to get
1019 last-coding-system-used to be set.
1021 2006-04-17 Daiki Ueno <ueno@unixuser.org>
1023 * epa-file.el: New implementation of epf.el.
1025 * epf.el: Abolished.
1027 2006-04-17 Daiki Ueno <ueno@unixuser.org>
1029 * epa.el (epa-verify-file): Display verify result.
1031 * epg.el (epg-invalid-recipients-alist): New variable.
1032 (epg-status-INV_RECP): New function.
1033 (epg-status-NO_RECP): New function.
1035 * epa.el (epa-keys-mode-map): Bind epa-decrypt-file,
1036 epa-verify-file, epa-sign-file, and epa-encrypt-file.
1037 (epa-decrypt-file): New function imported from epa-dired.el.
1038 (epa-verify-file): New function imported from epa-dired.el.
1039 (epa-sign-file): New function imported from epa-dired.el.
1040 (epa-encrypt-file): New function imported from epa-dired.el.
1042 2006-04-16 Daiki Ueno <ueno@unixuser.org>
1044 * epa.el (epa-select-keys): Renamed from epa-ask-keys; use
1046 * epa-dired.el (epa-dired-encrypt-file): Use epa-select-keys.
1048 2006-04-16 Daiki Ueno <ueno@unixuser.org>
1050 * epa-setup.el: New file.
1051 * epa-dired.el: New file.
1053 * epg.el (epg-colons-pub-spec): Abolished.
1054 (epg-colons-sec-spec): Abolished.
1055 (epg-colons-uid-spec): Abolished.
1056 (epg-colons-fpr-spec): Abolished.
1057 (epg-key-validity-alist): New variable.
1058 (epg-key-capablity-alist): New variable.
1059 (epg-make-key): New object epg-key.
1060 (epg-make-sub-key): New object epg-sub-key.
1061 (epg-make-user-id): New object epg-user-id.
1062 (epg-list-keys-1): Renamed from epg-list-keys.
1063 (epg-list-keys): Rewritten.
1065 2006-04-15 Daiki Ueno <ueno@unixuser.org>
1067 * epg.el (epg-list-keys): Make the NAME argument optional.
1069 2006-04-13 Daiki Ueno <ueno@unixuser.org>
1071 * epa.el: Added header.
1073 * epg.el (epg-list-keys): Specify --with-fingerprint.
1074 (epg-colons-fpr-spec): New variable.
1075 (epg-colons-pub-spec): Renamed trust -> validity and ownertrust ->
1077 (epg-colons-sec-spec): Ditto.
1078 (epg-colons-uid-spec): Renamed trust -> validity.
1080 2006-04-13 Daiki Ueno <ueno@unixuser.org>
1084 * epg.el (epg-cipher-algorithm-alist): New constant.
1085 (epg-pubkey-algorithm-alist): New constant.
1086 (epg-digest-algorithm-alist): New constant.
1087 (epg-compress-algorithm-alist): New constant.
1088 (epg-configuration): New function.
1089 (epg-start): Don't specify --yes.
1091 2006-04-13 Daiki Ueno <ueno@unixuser.org>
1093 * epg.el (epg-make-data-from-file): New function.
1094 (epg-make-data-from-string): New function.
1095 (epg-data-file): New function.
1096 (epg-data-string): New function.
1097 (epg-start-decrypt): Get a cipher text from a data object.
1098 (epg-delete-output-file): New function.
1099 (epg-decrypt-file): Add the 3rd argument PLAIN to specify where
1101 (epg-start-verify): Get a signature and signed-text from a data
1103 (epg-verify-file): Added the 3rd argument PLAIN to specify where
1104 the output goes; return the plain text if PLAIN is nil.
1105 (epg-verify-string): Return the plain text.
1106 (epg-start-sign): Get a plain text from a data object.
1107 (epg-sign-file): Added the 3rd argument SIGNATURE to specify where
1109 (epg-start-encrypt): Get a plain text from a data object.
1110 (epg-encrypt-file): Added the 4th argument CIPHER to specify where
1112 (epg-start-import-keys): Get keys from a data object.
1113 (epg-import-keys-1): New function.
1114 (epg-import-keys-from-file): Use it.
1115 (epg-import-keys-from-string): Use it.
1117 2006-04-12 Daiki Ueno <ueno@unixuser.org>
1119 * epf.el: Renamed from epg-file.el.
1121 2006-04-12 Daiki Ueno <ueno@unixuser.org>
1123 * epg.el (epg-status-GET_BOOL): New function.
1124 (epg-status-GET_LINE): New function.
1125 (epg-prompt-alist): New variable, to be filled.
1127 * pgg-epg.el (mml2015-gpg-extract-signature-details): New function.
1128 * epg.el (epg-signature-fingerprint): New function.
1129 (epg-signature-set-fingerprint): New function.
1130 (epg-status-VALIDSIG): New function.
1132 * epg.el (epg-reset): Don't reset result.
1133 (epg-start-decrypt): Reset result before epg-start.
1134 (epg-start-verify): Ditto.
1135 (epg-start-sign): Ditto.
1136 (epg-start-encrypt): Ditto.
1137 (epg-start-export-keys): Ditto.
1138 (epg-start-import-keys): Ditto.
1140 * Makefile.am (EXTRA_DIST): Added pgg-epg.el.
1141 * pgg-epg.el: New file.
1143 * epg.el (epg-start-export-keys): New function.
1144 (epg-export-keys): New function.
1145 (epg-start-import-keys): New function.
1146 (epg-import-keys): New function.
1147 (epg-verify-file): New function.
1149 * epg-file.el (epg-file-write-region): Support public key encryption.
1151 * epg.el (epg-passphrase-callback-function): Always display key-id.