1 2007-04-19 Daiki Ueno <ueno@unixuser.org>
3 * epa-file.el (epa-file-insert-file-contents): Guess the value of
4 epa-file-encrypt-to from 'encrypted-to context-result.
5 * epg.el (epg--status-ENC_TO): New function.
7 2007-04-04 Daiki Ueno <ueno@unixuser.org>
8 Chris Moore <dooglus@users.sourceforge.jp>
10 * epa-file.el (epa-file--file-name-regexp-set): New Custom :set
12 (epa-file-name-regexp): Use it.
13 (epa-file-name-regexp-update): New command.
14 (epa-file-name-regexp): Accept backup filenames.
15 Reported by "[ #10192 ] customizing epa-file-name-regexp fails"
17 2007-04-04 Daiki Ueno <ueno@unixuser.org>
19 * epa-file.el (epa-file-find-file-hook): New function.
20 (epa-file-enable): Add epa-file-find-file-hook to find-file-hooks.
21 (epa-file-disable): Remove epa-file-find-file-hook from
24 2007-03-29 Daiki Ueno <ueno@unixuser.org>
26 * EasyPG: Version 0.0.11 released.
27 * configure.ac: Bump up version.
29 2007-03-26 Daiki Ueno <ueno@unixuser.org>
31 * epa.el (epa--insert-keys): Changed arglist. All callers
33 (epa--select-keys): New function.
34 (epa-select-keys): Use it; don't popup menu if keys have elements
37 2007-03-25 Daiki Ueno <ueno@unixuser.org>
39 * epa.el (epa-protocol): defcustom -> defvar.
41 (epa-textmode): Ditto.
43 2007-03-24 Daiki Ueno <ueno@unixuser.org>
45 * epa.el (epa-select-keys): Simplified; don't select the first
47 (epa-key-list-mode-map): Bind revert-buffer instead of
49 (epa-key-list-mode): Set revert-buffer-function to epa--revert-buffer.
50 (epa--revert-buffer): New function.
52 * epg.el (epg--list-keys-1): Accept a list of strings as NAME
54 (epg-list-keys): Ditto.
56 2007-03-21 Daiki Ueno <ueno@unixuser.org>
58 * epa-file.el (epa-file-inhibit-auto-save): New user option.
59 (epa-file-insert-file-contents): Turn off auto-save-mode if
60 epa-file-inhibit-auto-save is non-nil.
61 Reported by "[ #9937] epa-file auto-saves in plain text"
63 * epa.el (epa--list-keys): New function.
64 (epa-list-keys): Use it.
65 (epa-list-secret-keys): New command.
67 2007-03-20 Daiki Ueno <ueno@unixuser.org>
69 * epa.el (epa-display-info): Generate new *Info* buffer if buffer
71 (epa-verify-cleartext-in-region): s/armor/cleartext/g.
73 * Makefile.am (info_TEXINFOS): Added epa.texi.
76 2007-03-19 Daiki Ueno <ueno@unixuser.org>
78 * epg.el (epg--decode-percent-escape): New function.
80 2007-03-08 Daiki Ueno <ueno@unixuser.org>
82 * epg.el (epg-list-keys): Parse GnuPG's print_string escape.
84 2007-03-08 Daiki Ueno <ueno@unixuser.org>
86 * epa-mail.el (epa-mail-mode-hook): New variable.
87 (epa-mail-mode-on-hook): New variable.
88 (epa-mail-mode-off-hook): New variable.
90 * epg.el (epg--start): Make the process-buffer unibyte.
91 (epg--status-USERID_HINT): Decode user-id.
92 (epg--status-IMPORTED): Decode user-id.
94 2007-03-07 Daiki Ueno <ueno@unixuser.org>
96 * epg.el (epg--start): Don't specify --use-agent if the protocol
97 is CMS; set coding-system-for-read to binary.
98 (epg--status-*SIG): Decode user-id.
100 2007-02-02 Daiki Ueno <ueno@unixuser.org>
102 * epa-file.el (epa-file-write-region): Set a dummy filename
103 for buffer-file-name when calling select-safe-coding-system.
105 2007-01-30 Daiki Ueno <ueno@unixuser.org>
107 * epg.el (epg-last-status): New variable.
108 (epg--process-filter): Set epg-last-status after calling a status
110 (epg--prompt-GET_BOOL): New function.
111 (epg--prompt-GET_BOOL-untrusted_key.override): New function.
112 (epg--status-GET_BOOL): Call epg--prompt-GET_BOOL-* instead of
115 2007-01-29 Daiki Ueno <ueno@unixuser.org>
117 * EasyPG: Version 0.0.10 released.
118 * configure.ac: Bump up version.
120 2007-01-29 Daiki Ueno <ueno@unixuser.org>
122 * epg-config.el: Require epg-package-info.
123 * configure.ac: Generate epg-package-info.el.
124 * Makefile.am (DISTCLEANFILES): Added epg-package-info.el.
125 * COMPILE (epg-modules): Added epg-package-info.
126 * epg-package-info.el.in: New file.
128 2007-01-29 Daiki Ueno <ueno@unixuser.org>
130 * epa-setup.el (epa-mail-mode): Autoload; setup mail-mode-hook.
131 * epa.el: Removed epa-*-mail stuff.
132 * Makefile.am (EXTRA_DIST): Added epa-mail.el.
133 * COMPILE (epg-modules): Added epa-mail.
134 * epa-mail.el: New file.
136 2007-01-05 Daiki Ueno <ueno@unixuser.org>
138 * epg-pgp50i.el: Removed.
140 * epa.el (epa-key-list-mode-map): Renamed from epa-keys-mode-map.
141 (epa-key-list-mode): Renamed from epa-keys-mode. All callers
144 * epg.el (epg--status-VALIDSIG): Don't set expiration-time if it
146 (epg--make-sub-key-1): Ditto.
147 (epg--decode-hexstring): "\\x" -> "\\\\x".
148 (epg--decode-quotedstring): Ditto.
150 * pgg-epg.el (pgg-epg-encrypt-region): Ask a user whether to skip a
151 recipient whose public key is not available.
152 * epa.el (epa-encrypt-mail): Ask a user whether to skip a
153 recipient whose public key is not available.
155 2007-01-04 Daiki Ueno <ueno@unixuser.org>
157 * epa.el (epa-decrypt-mail): Renamed from epa-decrypt.
158 (epa-verify-mail): Renamed from epa-verify.
159 (epa-sign-mail): Renamed from epa-sign.
160 (epa-encrypt-mail): Renamed from epa-encrypt.
161 (epa-import-mail): Renamed from epa-import.
163 * configure.ac: Don't exit if GnuPG (>= 1.4.3) is unavailable.
165 * epg.el (epg-signature-to-string): Print creation-time and used
167 (epg-sign-string): If the GnuPG version is earlier than 1.4.3,
168 fallback to use a temp file as an input.
169 (epg-encrypt-string): Ditto.
171 2006-12-31 Daiki Ueno <ueno@unixuser.org>
173 * epa.el (epa-mail-modes): New user option.
174 (epa--mail-mode-p): New function.
176 (epa-encrypt): Use it.
177 (epa--find-coding-system-for-mime-charset): New function.
178 (epa-decrypt-armor-in-region): Use it.
179 (epa-progress-callback-function): Use handback as the prompt.
180 (epa-encrypt-region): Take 4th argument SIGN.
181 (epa-encrypt): Ditto.
183 2006-12-31 Daiki Ueno <ueno@unixuser.org>
185 * epa.el (epa--derived-mode-p): New alias.
187 (epa-encrypt): Use it.
189 2006-12-31 Daiki Ueno <ueno@unixuser.org>
191 * epa.el (epa--read-signature-type): New function.
192 (epa-decrypt): New command.
193 (epa-verify): New command.
194 (epa-sign): New command.
195 (epa-encrypt): New command.
196 (epa-import-armor-in-region): New command.
197 (epa-import): New command.
198 (epa-decrypt-region): Confirm user to replace the region.
199 (epa-display-info): Delete "*Info*" window.
201 2006-12-29 Daiki Ueno <ueno@unixuser.org>
203 * EasyPG: Version 0.0.9 released.
204 * epg-config.el (epg-version-number): Bump up.
205 * configure.ac: Bump up version.
207 2006-12-28 Daiki Ueno <ueno@unixuser.org>
209 * epa.el (epa-sign-file): Ask signing key only when a prefix arg
210 is given; ask signature type only when a prefix arg is given.
211 (epa-sign-region): Ditto.
213 2006-12-26 Daiki Ueno <ueno@unixuser.org>
215 * epg-config.el (epg-passphrase-coding-system): Default to nil.
217 2006-12-20 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
219 * epa.el (epa--format-fingerprint-1): New function.
220 (epa--format-fingerprint): Ditto.
221 (epa--show-key): Use it.
223 2006-12-20 Daiki Ueno <ueno@unixuser.org>
225 * epa-file.el (epa-file-write-region): Don't attempt to write the
226 region to "/" to determine safe coding-system.
228 * epa.el (epa-list-keys): Abolished PROTOCOL arg.
229 (epa-sign-file): Save the output to *.p7s or *.p7m file if
231 (epa-encrypt-file): Ditto.
232 (epa-last-coding-system-specified): New variable.
233 (epa-decrypt-region): Try to decode with the
234 epa-coding-system-used text property.
235 (epa--select-safe-coding-system): New function.
236 (epa-verify-region): Try to decode with the epa-coding-system-used
238 (epa-sign-region): Query user to select coding-system to encode;
239 set the epa-coding-system-used text property on the result.
240 (epa-encrypt-region): Ditto.
242 2006-12-19 Daiki Ueno <ueno@unixuser.org>
244 * epg.el (epg-export-keys-to-file): Fixed a typo.
246 * epa.el (epa-protocol): New user option.
247 (epa-sign-region): --armor & --textmode.
248 (epa-encrypt-region): Ditto.
249 (epa-list-keys): If prefix-arg is specified, use "OpenPGP" as the
251 (epa-import-keys-region): New command.
252 (epa-insert-keys): New command.
253 (epa--insert-keys): Renamed from epa-insert-keys.
255 2006-12-11 Daiki Ueno <ueno@unixuser.org>
257 * pgg-epg.el (pgg-epg-decrypt-region): Don't call
258 decode-coding-string if it is not bound.
260 * epa-file.el (epa-file--encode-coding-string): New alias.
261 (epa-file--decode-coding-string): New alias.
262 (epa-file-write-region): Use epa-file--encode-coding-string.
263 (epa-file-decode-and-insert): Use epa-file--decode-coding-string.
265 * epa.el (epa--encode-coding-string): New alias.
266 (epa--decode-coding-string): New alias.
267 (epa-verify-region): Use epa--encode-coding-string.
268 (epa-sign-region): Ditto; use epa--decode-coding-string.
269 (epa-encrypt-region): Use epa--encode-coding-string.
271 * epg.el (epg--encode-coding-string): New alias.
272 (epg--status-GET_HIDDEN): Use it.
274 2006-11-29 Daiki Ueno <ueno@unixuser.org>
276 * EasyPG: Version 0.0.8 released.
277 * epg-config.el (epg-version-number): Bump up.
278 * configure.ac: Bump up version.
280 2006-11-20 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
282 * epa-file.el (epa-file-encrypt-to): New file local variable.
283 (epa-file-write-region): Specify recipients by epa-file-encrypt-to.
285 2006-11-26 Daiki Ueno <ueno@unixuser.org>
287 * epa.el (epa-sign-file): Query signature type at a time.
288 (epa-decrypt-file): Display output file name on completion.
289 (epa-sign-file): Ditto.
290 (epa-encrypt-file): Ditto.
292 2006-11-25 Daiki Ueno <ueno@unixuser.org>
294 * epa.el (epa-keys-mode): Don't call widget-setup.
295 (epa-list-keys): Call widget-setup here.
296 (epa-select-keys): Ditto.
298 2006-11-24 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
300 * epg.el (epg-delete-keys): Remove redundant argument for `error'
301 and fix a close parenthesis.
303 2006-11-24 Daiki Ueno <ueno@unixuser.org>
305 * epg.el (epg--status-GET_HIDDEN): Encode passphrase with eol-type LF.
306 Reported by Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>.
307 cf. <emacs-mime-ja:02090>
309 2006-11-23 Daiki Ueno <ueno@unixuser.org>
311 * epa.el (epa-sign-region): Query signature type at a time.
313 2006-11-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
315 * epg.el (epg-context-set-passphrase-callback): Add optional
317 (epg-context-set-progress-callback): Ditto.
319 2006-11-14 Daiki Ueno <ueno@unixuser.org>
321 * epa.el (epa--key-widget-value-create): Allow empty user IDs.
322 (epa--show-key): Ditto.
323 Reported by Werner Koch <wk@gnupg.org>.
325 * epg.el (epg--start): Don't specify --enable-progress-filter for
327 (epg--status-PROGRESS): Check if progress-callback is set.
329 2006-11-12 Daiki Ueno <ueno@unixuser.org>
331 * epg.el (epg-error): New error.
332 (epg--check-error-for-decrypt): New function.
333 (epg-decrypt-file): Use it.
334 (epg-decrypt-string): Use it.
335 (epg--start): Added a very basic test to check whether to specify
338 * epa.el (epa-decrypt-file): Expand file name.
339 (epa-verify-file): Ditto.
340 (epa-import-keys): Ditto.
342 2006-11-12 Daiki Ueno <ueno@unixuser.org>
344 * epg.el (epg-delete-keys): Decode delete-problem.
346 * epa.el (epa-popup-info-window): Turn on by default.
347 (epa-display-info): Split selected window instead of pop-to-buffer.
349 2006-11-12 Daiki Ueno <ueno@unixuser.org>
351 * epa.el (epa-display-info): Generalized; renamed from
352 epa-display-verify-result.
353 (epa-decrypt-file): Use it.
354 (epa-verify-file): Use it.
355 (epa-decrypt-region): Use it.
356 (epa-verify-region): Use it.
357 (epa-import-keys): Show import result.
358 (epa-display-verify-result): Make it obsolete.
360 * epg.el (epg-start-sign-keys): Make it obsolete; signing a key is
362 (epg-sign-keys): Make it obsolete.
363 (epg-make-import-status): New object epg-import-status.
364 (epg-make-import-result): New object epg-import-result.
365 (epg--status-IMPORT_RES): New function.
366 (epg-import-result-to-string): New function.
368 * epa.el (epa-keys-mode-map): Don't bind epa-sign-keys.
369 (epa-sign-keys): Make it obsolete.
371 2006-11-11 Daiki Ueno <ueno@unixuser.org>
373 * epg.el (epg-start-sign): Don't set --armor nor --textmode if
374 mode is set for a cleartext signature.
375 (epg-make-context): New slot "sig-notations".
376 (epg--args-from-sig-notations): New function.
377 (epg-start-sign): Specify --sig-notation or --sig-policy-url if
379 (epg-start-encrypt): Ditto.
380 (epg-make-signature): New slot "notations".
381 (epg--status-NOTATION_NAME): New function.
382 (epg--status-NOTATION_DATA): New function.
383 (epg--status-POLICY_URL): New function.
385 2006-10-29 Daiki Ueno <ueno@unixuser.org>
387 * EasyPG: Version 0.0.7 released.
388 * epg-config.el (epg-version-number): Bump up.
389 * configure.ac: Bump up version.
391 2006-10-29 Daiki Ueno <ueno@unixuser.org>
394 (epa-file-cache-passphrase-for-symmetric-encryption): New user
397 2006-10-12 Daiki Ueno <ueno@unixuser.org>
399 * epg.el (epg-start-verify): Fixed a clearsign verification bug.
400 Reported by Hirohisa Yamaguchi <umq@ueo.co.jp>.
402 2006-09-29 Daiki Ueno <ueno@unixuser.org>
404 * EasyPG: Version 0.0.6 released.
405 * epg.el (epg-version-number): Bump up.
406 * configure.ac: Bump up version.
408 2006-09-29 Daiki Ueno <ueno@unixuser.org>
410 * epa.el (epa-verify-cleartext-in-region): Renamed from
411 epa-verify-armor-in-region.
413 * epg.el (epg-passphrase-callback-function): Suggest to use
414 epa-passphrase-callback-function instead.
415 (epg-start-verify): Don't specify --verify if SIGNATURE is a
416 normal or a clear text signature.
417 (epg-verify-file): Mention that the plaintext will be stored into
418 the file PLAIN after successful verification.
419 (epg-verify-string): Mention that the plaintext will be returned
420 after successful verification.
422 2006-09-27 Daiki Ueno <ueno@unixuser.org>
424 * epa-file.el (epa-file-insert-file-contents): Set progress callback.
425 (epa-file-write-region): Ditto.
427 * epa.el (epa-decrypt-file): Set callbacks.
428 (epa-sign-file): Ditto.
429 (epa-encrypt-file): Ditto.
430 (epa-decrypt-region): Ditto.
431 (epa-sign-region): Ditto.
432 (epa-encrypt-region): Ditto.
433 (epa-sign-keys): Ditto.
435 * epg.el (epg-progress-callback-function): Removed.
437 2006-09-24 Daiki Ueno <ueno@unixuser.org>
439 * epa.el (epa-passphrase-callback-function): Moved from epg.el.
440 (epa-progress-callback-function): Ditto.
441 * epg.el (epg-passphrase-callback-function): Made it obsolete.
442 (epg-progress-callback-function): Ditto.
444 2006-09-23 Daiki Ueno <ueno@unixuser.org>
446 * epg.el (epg-start-decrypt): Append "--" to the end of options.
447 (epg-start-verify): Ditto.
448 (epg-start-sign): Ditto.
449 (epg-start-encrypt): Ditto.
450 (epg-start-import-keys): Ditto.
451 (epg-start-generate-key): Ditto.
453 2006-09-23 Daiki Ueno <ueno@unixuser.org>
455 * epg.el (epg-make-context): Don't set progress-callback by
457 (epg--start): Don't specify --enable-progress-filter if
458 progress-callback is not set.
459 (epg--status-GET_HIDDEN): Signal an error if passphrase-callback
462 2006-09-15 Daiki Ueno <ueno@unixuser.org>
464 * epg.el (epg-progress-callback-function): Show the percentage.
466 2006-09-15 Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr>
468 * pgg-epg.el (mml2015-gpg-extract-signature-details): Fixed a typo.
470 2006-09-13 Daiki Ueno <ueno@unixuser.org>
472 * epg-config.el (epg-passphrase-coding-system): Renamed from
473 epg-locale-coding-system.
475 2006-09-11 Daiki Ueno <ueno@unixuser.org>
477 * epa-file.el (epa-file-decode-and-insert): New function which
478 utilizes decode-coding-inserted-region if available.
479 (epa-file-insert-file-contents): Use it.
481 * epg.el (epg--start): Specify --enable-progress-filter in
483 (epg-progress-callback-function): Remove a couple of %%'s.
485 2006-09-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
487 * epg-config.el (epg-configuration): Fixed the last change;
488 collect configuration other than group and algorithm.
490 2006-09-05 Daiki Ueno <ueno@unixuser.org>
492 * epg-config.el (epg-debug): Moved from epg.el.
493 (epg-configuration): Parse group configuration.
494 (epg-expand-group): New function.
496 2006-09-04 Daiki Ueno <ueno@unixuser.org>
498 * EasyPG: Version 0.0.5 released.
499 * epg.el (epg-version-number): Bump up.
500 * configure.ac: Bump up version.
502 2006-09-04 Daiki Ueno <ueno@unixuser.org>
504 * epg-config.el (epg-locale-coding-system): New user option.
506 * epg.el (epg--list-keys-1): Respect epg-gpg-home-directory.
507 (epg--clear-string): New function.
508 (epg--status-GET_HIDDEN): Encode passphrase with
509 terminal-coding-system.
511 * epg-config.el (epg-gpg-minimum-version): New constant.
512 (epg-config--parse-version): New function.
513 (epg-config--compare-version): New function.
514 (epg-configuration): Respect epg-gpg-home-directory.
516 2006-09-03 Daiki Ueno <ueno@unixuser.org>
518 * epg-config.el: New file; moved GnuPG configuration check from
521 2006-09-02 Daiki Ueno <ueno@unixuser.org>
523 * epg.el (epg-check-configuration): New function.
524 (epg-gpg-home-directory): New user option.
526 * pgg-epg.el (pgg-epg-lookup-key): New function.
528 2006-07-29 Daiki Ueno <ueno@unixuser.org>
530 * EasyPG: Version 0.0.4 released.
531 * epg.el (epg-version-number): Bump up.
532 * configure.ac: Bump up version.
534 2006-07-29 Daiki Ueno <ueno@unixuser.org>
536 * acinclude.m4 (AC_CHECK_GPG): Run $3 if there is no gpg executable.
538 2006-07-28 Daiki Ueno <ueno@unixuser.org>
540 * epg.el (epg-start-encrypt): Extract primary key ID from
542 Thanks to Steve Youngs <steve@sxemacs.org>
544 * pgg-epg.el (pgg-epg-encrypt-region): Fixed a bug; it didn't
545 give CONTEXT to epg-list-keys.
546 Thanks to Steve Youngs <steve@sxemacs.org>
548 2006-07-18 Daiki Ueno <ueno@unixuser.org>
550 * epg-pgp50i.el (epg-pgp50i--process-filter): Use
551 epg-process-filter-running instead of epg-pgp50i-status; Don't
552 save-excursion during handler execution.
553 (epg-pgp50i--read-line): Renamed from epg-pgp50i--wait-for-line;
554 don't allow process input.
555 (epg-pgp50i--parse-time): New function.
556 (epg-pgp50i--status-BAD_SIGNATURE): New function.
558 * epg.el (epg--process-filter): Don't save-excursion during
561 2006-07-18 Daiki Ueno <ueno@unixuser.org>
563 * acinclude.m4 (AC_CHECK_GPG): Renamed from AC_PATH_GPG.
565 * epg.el (epg-process-filter-running): New variable.
566 (epg--start): Setup epg-process-filter-running.
567 (epg--process-filter): Allow only one status handler to run at a
568 time; update epg-read-point everytime the point changes.
570 2006-07-14 Daiki Ueno <ueno@unixuser.org>
572 * epg-pgp50i.el: New file.
574 2006-07-13 Daiki Ueno <ueno@unixuser.org>
576 * acinclude.m4 (AC_PATH_GPG): New macro.
577 * configure.ac: Check gpg version.
578 Suggested by Max Froumentin <max@lapin-bleu.net>
580 2006-07-10 Daiki Ueno <ueno@unixuser.org>
582 * epg.el (epg--status-ERRSIG): Don't remove the last verify-result.
583 (epg-signature-to-string): Remove a trailing whitespace.
585 * epa.el (epa-keys-mode-map): Bind return to epa-toggle-mark.
586 (epa-toggle-mark): New command.
588 2006-07-04 Daiki Ueno <ueno@unixuser.org>
590 * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched
591 with pgg-default-user-id.
592 Reported by Elias Oltmanns <oltmanns@uni-bonn.de>
594 2006-07-01 Daiki Ueno <ueno@unixuser.org>
596 * epa.el (epa-select-keys): If SECRET is specified, select a
597 primary secret key by default.
599 2006-06-29 Daiki Ueno <ueno@unixuser.org>
601 * EasyPG: Version 0.0.3 released.
602 * epg.el (epg-version-number): Bump up.
603 * configure.ac: Bump up version.
605 2006-06-12 Daiki Ueno <ueno@unixuser.org>
607 * epa-file.el (epa-file-insert-file-contents): Don't move the
608 point to the end of the inserted region.
609 Reported by doug <douglas.bagley@gmail.com>
611 2006-06-01 Daiki Ueno <ueno@unixuser.org>
613 * epa-file.el (epa-file-insert-file-contents): Support partial read.
615 2006-05-30 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
617 * epa-file.el (epa-file-write-region): Encode the plain text with
618 coding-system-for-write.
620 2006-05-30 Daiki Ueno <ueno@unixuser.org>
622 * epa-file.el (epa-file-insert-file-contents):
623 Decode the decrypted text with coding-system-for-read.
625 2006-05-29 Daiki Ueno <ueno@unixuser.org>
627 * EasyPG: Version 0.0.2 released.
628 * epg.el (epg-version-number): Bump up.
629 * configure.ac: Bump up version.
631 2006-05-29 Daiki Ueno <ueno@unixuser.org>
633 * epg.el (epg--time-from-seconds): New function.
634 (epg--status-ERRSIG): Convert seconds from epoch to encoded-time.
635 (epg--status-VALIDSIG): Ditto.
636 (epg--status-KEYEXPIRED): Ditto.
638 2006-05-28 Daiki Ueno <ueno@unixuser.org>
640 * epg.el (epg-start-import-keys): Don't specify filename if keys
643 2006-05-27 Daiki Ueno <ueno@unixuser.org>
645 * epg.el (epg--process-filter): Pass epg-context instead of
646 process to status handlers.
647 (epg--status-NO_PUBKEY): Check if the previous signature's key-id
648 matches with the given key-id.
650 2006-05-26 Daiki Ueno <ueno@unixuser.org>
652 * epg.el (epg--status-NO_PUBKEY): Replace the previous signature's
653 status from 'error to 'no-pubkey.
654 (epg--status-ERRSIG): Just add 'error signature to the verify result.
656 * epa.el (epa-insert-keys): Renamed from epa-list-keys-1; don't
657 disable inhibit-quit here; make text-properties nonsticky.
658 (epa-popup-info-window): New user option.
659 (epa-info-window-height): New user option.
660 (epa-display-verify-result): New function.
661 (epa-decrypt-file): Use it.
662 (epa-verify-file): Use it.
663 (epa-decrypt-region): Use it.
664 (epa-verify-region): Use it.
666 * epg.el (epg-make-context): New slot "operation".
667 (epg-passphrase-callback-function): Confirm passphrase when
668 performing symmetric encryption.
670 2006-05-25 Daiki Ueno <ueno@unixuser.org>
672 * epa.el (epa-decrypt-file): Display verify result if the message
674 (epa-decrypt-region): New command.
675 (epa-verify-region): New command.
676 (epa-decrypt-armor-in-region): New command.
677 (epa-verify-armor-in-region): New command.
678 (epa-sign-region): New command.
679 (epa-encrypt-region): New command.
681 2006-05-11 Daiki Ueno <ueno@unixuser.org>
683 * epa.el (epa-armor): New user option.
684 (epa-textmode): New user option.
686 2006-05-02 Daiki Ueno <ueno@unixuser.org>
688 * epg.el (epg-make-key-signature): New object epg-key-signature.
689 (epg-list-keys): Collect key signatures.
690 (epg-make-sub-key): Renamed secret -> secret-p.
691 (epg-list-keys-postprocess-one-key): Abolished.
692 (epg-list-keys): Reverse all keys, sub-keys, user-ids, and key
693 signatures by itself.
694 (epg-no-data-reason-alist): New constant.
695 (epg-unexpected-reason-alist): New constant.
697 2006-05-01 Daiki Ueno <ueno@unixuser.org>
699 * epg.el (epg-invalid-recipients-reason-alist): Renamed.
700 (epg-delete-problem-reason-alist): Renamed.
701 (epg-import-ok-reason-alist): New constant.
702 (epg-import-problem-reason-alist): New constant.
703 (epg-status-IMPORTED): New function.
704 (epg-status-IMPORT_OK): New function.
705 (epg-status-IMPORT_PROBLEM): New function.
706 (epg-start-import-keys): Don't use a temporary output file.
707 (epg-start-receive-keys): New function.
708 (epg-import-keys-from-server): New function.
709 (epg-receive-keys): Alias to epg-import-keys-from-server.
711 2006-05-01 Daiki Ueno <ueno@unixuser.org>
713 * epg.el (epg-start): Signal an error if the process of CONTEXT is
714 already running for other operations.
715 (epg-flush): Abolished.
716 (epg-start-generate-key): New function.
717 (epg-generate-key-from-file): New function.
718 (epg-generate-key-from-string): New function.
719 (epg-status-KEY_CREATED): New function.
720 (epg-status-KEY_NOT_CREATED): New function.
721 (epg-new-signature-type-alist): New variable.
722 (epg-make-new-signature): New object epg-new-signature.
723 (epg-status-SIG_CREATED): Set epg-new-signature object.
724 (epg-new-signature-to-string): New function.
725 (epg-make-signature): Added slots for signature class and version.
726 (epg-start-sign): Fixed rule of the MODE argument.
728 2006-04-30 Daiki Ueno <ueno@unixuser.org>
730 * epa.el (epa-delete-keys): Support deletion of secret keys.
732 * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
735 * epg.el (epg-read-output): Don't convert line endings of the
737 (epg-cancel): Set 'error result.
739 2006-04-29 Daiki Ueno <ueno@unixuser.org>
741 * epg.el (epg-make-signature): Removed user-id; added
742 creation-time, expiration-time, pubkey-algorithm,
744 (epg-process-sentinel): Abolished.
745 (epg-signature-to-string): Decode DN.
746 (epg-list-keys): Cache user-id in epg-user-id-alist.
747 (epg-make-user-id): Renamed name -> string.
749 2006-04-29 Daiki Ueno <ueno@unixuser.org>
751 * epg.el (epg-status-ERRSIG): New function.
752 (epg-verify-file): Signal an error if we encounter ERRSIG status.
753 (epg-verify-string): Ditto.
755 2006-04-28 Daiki Ueno <ueno@unixuser.org>
757 * epg.el: Added typecheck to accessors to objects.
759 2006-04-26 Daiki Ueno <ueno@unixuser.org>
761 * epg.el (epg-status-GET_HIDDEN): Pass epg-context as the first
762 argument of passphrase-callback.
763 (epg-status-PROGRESS): Ditto.
765 2006-04-26 Daiki Ueno <ueno@unixuser.org>
767 * epa.el (epa-select-keys): Don't set inhibit-quit when
768 recursive-edit is called.
769 (epg-cancel): New function.
771 2006-04-25 Daiki Ueno <ueno@unixuser.org>
773 * epg.el (epg-process-sentinel): New function; set 'error if gpg
774 process exited abnormally, but we have not received an error
776 (epg-sign-file): Signal an error only when a signature is not
778 (epg-sign-string): Ditto.
779 (epg-encrypt-file): Signal an error if SIGN is specified and
780 signature is not created.
781 (epg-encrypt-string): Ditto.
783 2006-04-22 Daiki Ueno <ueno@unixuser.org>
785 * epa.el (epa-key-widget-value-create): Decode DN.
786 (epa-list-keys): Add the PROTOCOL argument.
787 (epa-select-keys): Require CONTEXT as the first argument.
789 * epg.el (epg-gpgsm-program): New user option.
790 (epg-dn-type-alist): New variable.
791 (epg-start): Don't specify --command-fd if protocol is CMS.
792 (epg-list-keys): Require CONTEXT as the first argument.
793 (epg-dn-from-string): New function.
794 (epg-decode-dn): New function.
796 2006-04-21 Daiki Ueno <ueno@unixuser.org>
798 * epa.el (epa-sign-keys): New command.
800 * epg.el (epg-start-sign-keys): New function.
801 (epg-sign-keys): New function.
802 (epg-status-GET_HIDDEN): Enable local quit.
803 (epg-status-GET_BOOL): Ditto.
804 (epg-status-GET_LINE): Ditto.
806 2006-04-20 Daiki Ueno <ueno@unixuser.org>
808 * epa.el (epa-list-keys-1): Add 'epa-list-keys property to keylist
811 2006-04-20 Daiki Ueno <ueno@unixuser.org>
813 * pgg-epg.el (pgg-epg-secret-key-id-list): New variable.
814 (pgg-epg-passphrase-callback): New function.
816 * epa.el (epa-select-keys): Added "Cancel" button.
818 2006-04-20 Daiki Ueno <ueno@unixuser.org>
820 * epg.el (epg-signature-to-string): New function.
822 2006-04-20 Daiki Ueno <ueno@unixuser.org>
824 * epa-file.el (epa-file-write-region): RECIPIENTS is now a list of
826 * epa-dired.el (epa-dired-do-encrypt): RECIPIENTS is now a list of
829 * epa.el (epa-select-keys): Added MODE argument.
830 (epa-encrypt-file): RECIPIENTS is now a list of key objects.
832 * epg.el (epg-status-SIG_CREATED): New function.
833 (epg-start-sign): epg-context-signers is now a list of key objects.
834 (epg-start-encrypt): RECIPIENTS is now a list of key objects.
836 2006-04-19 Daiki Ueno <ueno@unixuser.org>
838 * epa.el (epa-verify-file): Show results in minibuffer.
839 * epg.el (epg-debug-buffer): New variable.
840 (epg-flush): New function.
842 2006-04-18 Daiki Ueno <ueno@unixuser.org>
844 * epa.el (epa-export-keys): New command.
845 * epg.el (epg-start-export-keys): Accept a list of epg-key object
848 2006-04-18 Daiki Ueno <ueno@unixuser.org>
850 * epa.el (epa-keys-mode-map): Bind epa-list-keys; epa-import-key.
851 (epa-import-key): New command.
853 * epg.el (epg-delete-problem-alist): New constant.
854 (epg-status-DELETE_PROBLEM): New function.
855 (epg-start-delete-key): New function.
856 (epg-delete-key): New function.
857 (epg-wait-for-completion): Add the NO-EOF argument.
859 2006-04-18 Daiki Ueno <ueno@unixuser.org>
861 * epg.el (epg-start): Insert the command-line arguments to the
863 (epg-start-encrypt): Wait for BEGIN_ENCRYPTION.
864 (epg-start-delete-key): New function.
865 (epg-delete-key): New function.
867 * epa.el (epa-key): New widget.
868 (epa-key-widget-action): New function.
869 (epa-key-widget-value-create): New function.
870 (epa-key-widget-button-face-get): New function.
871 (epa-key-widget-help-echo): New function.
873 2006-04-17 Daiki Ueno <ueno@unixuser.org>
875 * epa-file.el (epa-file-write-region): Check if START is a string.
877 2006-04-17 Daiki Ueno <ueno@unixuser.org>
879 * epa-file.el: Rewritten with file-name-handler.
880 (epa-file-handler): New variable.
881 (epa-file-enable): New command.
882 (epa-file-disable): New command.
884 * epa-setup.el: Call epa-file-enable.
886 2006-04-17 Daiki Ueno <ueno@unixuser.org>
888 * epa-file.el (epa-passphrase): New variable.
889 (epa-file-passphrase-callback-function): New function.
890 (epa-find-file): Reset buffer-undo-list; set
891 buffer-file-coding-system to last-coding-system-used after
894 2006-04-17 Daiki Ueno <ueno@unixuser.org>
896 * epa-file.el (epa-write-file): Try to write region to "/" to get
897 last-coding-system-used to be set.
899 2006-04-17 Daiki Ueno <ueno@unixuser.org>
901 * epa-file.el: New implementation of epf.el.
905 2006-04-17 Daiki Ueno <ueno@unixuser.org>
907 * epa.el (epa-verify-file): Display verify result.
909 * epg.el (epg-invalid-recipients-alist): New variable.
910 (epg-status-INV_RECP): New function.
911 (epg-status-NO_RECP): New function.
913 * epa.el (epa-keys-mode-map): Bind epa-decrypt-file,
914 epa-verify-file, epa-sign-file, and epa-encrypt-file.
915 (epa-decrypt-file): New function imported from epa-dired.el.
916 (epa-verify-file): New function imported from epa-dired.el.
917 (epa-sign-file): New function imported from epa-dired.el.
918 (epa-encrypt-file): New function imported from epa-dired.el.
920 2006-04-16 Daiki Ueno <ueno@unixuser.org>
922 * epa.el (epa-select-keys): Renamed from epa-ask-keys; use
924 * epa-dired.el (epa-dired-encrypt-file): Use epa-select-keys.
926 2006-04-16 Daiki Ueno <ueno@unixuser.org>
928 * epa-setup.el: New file.
929 * epa-dired.el: New file.
931 * epg.el (epg-colons-pub-spec): Abolished.
932 (epg-colons-sec-spec): Abolished.
933 (epg-colons-uid-spec): Abolished.
934 (epg-colons-fpr-spec): Abolished.
935 (epg-key-validity-alist): New variable.
936 (epg-key-capablity-alist): New variable.
937 (epg-make-key): New object epg-key.
938 (epg-make-sub-key): New object epg-sub-key.
939 (epg-make-user-id): New object epg-user-id.
940 (epg-list-keys-1): Renamed from epg-list-keys.
941 (epg-list-keys): Rewritten.
943 2006-04-15 Daiki Ueno <ueno@unixuser.org>
945 * epg.el (epg-list-keys): Make the NAME argument optional.
947 2006-04-13 Daiki Ueno <ueno@unixuser.org>
949 * epa.el: Added header.
951 * epg.el (epg-list-keys): Specify --with-fingerprint.
952 (epg-colons-fpr-spec): New variable.
953 (epg-colons-pub-spec): Renamed trust -> validity and ownertrust ->
955 (epg-colons-sec-spec): Ditto.
956 (epg-colons-uid-spec): Renamed trust -> validity.
958 2006-04-13 Daiki Ueno <ueno@unixuser.org>
962 * epg.el (epg-cipher-algorithm-alist): New constant.
963 (epg-pubkey-algorithm-alist): New constant.
964 (epg-digest-algorithm-alist): New constant.
965 (epg-compress-algorithm-alist): New constant.
966 (epg-configuration): New function.
967 (epg-start): Don't specify --yes.
969 2006-04-13 Daiki Ueno <ueno@unixuser.org>
971 * epg.el (epg-make-data-from-file): New function.
972 (epg-make-data-from-string): New function.
973 (epg-data-file): New function.
974 (epg-data-string): New function.
975 (epg-start-decrypt): Get a cipher text from a data object.
976 (epg-delete-output-file): New function.
977 (epg-decrypt-file): Add the 3rd argument PLAIN to specify where
979 (epg-start-verify): Get a signature and signed-text from a data
981 (epg-verify-file): Added the 3rd argument PLAIN to specify where
982 the output goes; return the plain text if PLAIN is nil.
983 (epg-verify-string): Return the plain text.
984 (epg-start-sign): Get a plain text from a data object.
985 (epg-sign-file): Added the 3rd argument SIGNATURE to specify where
987 (epg-start-encrypt): Get a plain text from a data object.
988 (epg-encrypt-file): Added the 4th argument CIPHER to specify where
990 (epg-start-import-keys): Get keys from a data object.
991 (epg-import-keys-1): New function.
992 (epg-import-keys-from-file): Use it.
993 (epg-import-keys-from-string): Use it.
995 2006-04-12 Daiki Ueno <ueno@unixuser.org>
997 * epf.el: Renamed from epg-file.el.
999 2006-04-12 Daiki Ueno <ueno@unixuser.org>
1001 * epg.el (epg-status-GET_BOOL): New function.
1002 (epg-status-GET_LINE): New function.
1003 (epg-prompt-alist): New variable, to be filled.
1005 * pgg-epg.el (mml2015-gpg-extract-signature-details): New function.
1006 * epg.el (epg-signature-fingerprint): New function.
1007 (epg-signature-set-fingerprint): New function.
1008 (epg-status-VALIDSIG): New function.
1010 * epg.el (epg-reset): Don't reset result.
1011 (epg-start-decrypt): Reset result before epg-start.
1012 (epg-start-verify): Ditto.
1013 (epg-start-sign): Ditto.
1014 (epg-start-encrypt): Ditto.
1015 (epg-start-export-keys): Ditto.
1016 (epg-start-import-keys): Ditto.
1018 * Makefile.am (EXTRA_DIST): Added pgg-epg.el.
1019 * pgg-epg.el: New file.
1021 * epg.el (epg-start-export-keys): New function.
1022 (epg-export-keys): New function.
1023 (epg-start-import-keys): New function.
1024 (epg-import-keys): New function.
1025 (epg-verify-file): New function.
1027 * epg-file.el (epg-file-write-region): Support public key encryption.
1029 * epg.el (epg-passphrase-callback-function): Always display key-id.