* epg.el (epg-start-encrypt): Extract primary key ID from
[elisp/epg.git] / ChangeLog
1 2006-07-28  Daiki Ueno  <ueno@unixuser.org>
2
3         * epg.el (epg-start-encrypt): Extract primary key ID from
4         epg-context-signers.
5         Thanks to Steve Youngs <steve@sxemacs.org>
6
7         * pgg-epg.el (pgg-epg-encrypt-region): Fixed a bug; it didn't
8         give CONTEXT to epg-list-keys.
9         Thanks to Steve Youngs <steve@sxemacs.org>
10
11 2006-07-18  Daiki Ueno  <ueno@unixuser.org>
12
13         * epg-pgp50i.el (epg-pgp50i--process-filter): Use
14         epg-process-filter-running instead of epg-pgp50i-status; Don't
15         save-excursion during handler execution.
16         (epg-pgp50i--read-line): Renamed from epg-pgp50i--wait-for-line;
17         don't allow process input.
18         (epg-pgp50i--parse-time): New function.
19         (epg-pgp50i--status-BAD_SIGNATURE): New function.
20
21         * epg.el (epg--process-filter): Don't save-excursion during
22         handler execution.
23
24 2006-07-18  Daiki Ueno  <ueno@unixuser.org>
25
26         * acinclude.m4 (AC_CHECK_GPG): Renamed from AC_PATH_GPG.
27
28         * epg.el (epg-process-filter-running): New variable.
29         (epg--start): Setup epg-process-filter-running.
30         (epg--process-filter): Allow only one status handler to run at a
31         time; update epg-read-point everytime the point changes.
32
33 2006-07-14  Daiki Ueno  <ueno@unixuser.org>
34
35         * epg-pgp50i.el: New file.
36
37 2006-07-13  Daiki Ueno  <ueno@unixuser.org>
38
39         * acinclude.m4 (AC_PATH_GPG): New macro.
40         * configure.ac: Check gpg version.
41         Suggested by Max Froumentin <max@lapin-bleu.net>
42
43 2006-07-10  Daiki Ueno  <ueno@unixuser.org>
44
45         * epg.el (epg--status-ERRSIG): Don't remove the last verify-result.
46         (epg-signature-to-string): Remove a trailing whitespace.
47
48         * epa.el (epa-keys-mode-map): Bind return to epa-toggle-mark.
49         (epa-toggle-mark): New command.
50
51 2006-07-04  Daiki Ueno  <ueno@unixuser.org>
52
53         * pgg-epg.el (pgg-epg-sign-region): Select the signing key matched
54         with pgg-default-user-id.
55         Reported by Elias Oltmanns <oltmanns@uni-bonn.de>
56
57 2006-07-01  Daiki Ueno  <ueno@unixuser.org>
58
59         * epa.el (epa-select-keys): If SECRET is specified, select a
60         primary secret key by default.
61
62 2006-06-29  Daiki Ueno  <ueno@unixuser.org>
63
64         * EasyPG: Version 0.0.3 released.
65         * epg.el (epg-version-number): Bump up.
66         * configure.ac: Bump up version.
67
68 2006-06-12  Daiki Ueno  <ueno@unixuser.org>
69
70         * epa-file.el (epa-file-insert-file-contents): Don't move the
71         point to the end of the inserted region.
72         Reported by doug <douglas.bagley@gmail.com>
73
74 2006-06-01  Daiki Ueno  <ueno@unixuser.org>
75
76         * epa-file.el (epa-file-insert-file-contents): Support partial read.
77
78 2006-05-30  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
79
80         * epa-file.el (epa-file-write-region): Encode the plain text with
81         coding-system-for-write.
82
83 2006-05-30  Daiki Ueno  <ueno@unixuser.org>
84
85         * epa-file.el (epa-file-insert-file-contents):
86         Decode the decrypted text with coding-system-for-read.
87
88 2006-05-29  Daiki Ueno  <ueno@unixuser.org>
89
90         * EasyPG: Version 0.0.2 released.
91         * epg.el (epg-version-number): Bump up.
92         * configure.ac: Bump up version.
93
94 2006-05-29  Daiki Ueno  <ueno@unixuser.org>
95
96         * epg.el (epg--time-from-seconds): New function.
97         (epg--status-ERRSIG): Convert seconds from epoch to encoded-time.
98         (epg--status-VALIDSIG): Ditto.
99         (epg--status-KEYEXPIRED): Ditto.
100
101 2006-05-28  Daiki Ueno  <ueno@unixuser.org>
102
103         * epg.el (epg-start-import-keys): Don't specify filename if keys
104         is a string data.
105
106 2006-05-27  Daiki Ueno  <ueno@unixuser.org>
107
108         * epg.el (epg--process-filter): Pass epg-context instead of
109         process to status handlers.
110         (epg--status-NO_PUBKEY): Check if the previous signature's key-id
111         matches with the given key-id.
112
113 2006-05-26  Daiki Ueno  <ueno@unixuser.org>
114
115         * epg.el (epg--status-NO_PUBKEY): Replace the previous signature's
116         status from 'error to 'no-pubkey.
117         (epg--status-ERRSIG): Just add 'error signature to the verify result.
118
119         * epa.el (epa-insert-keys): Renamed from epa-list-keys-1; don't
120         disable inhibit-quit here; make text-properties nonsticky.
121         (epa-popup-info-window): New user option.
122         (epa-info-window-height): New user option.
123         (epa-display-verify-result): New function.
124         (epa-decrypt-file): Use it.
125         (epa-verify-file): Use it.
126         (epa-decrypt-region): Use it.
127         (epa-verify-region): Use it.
128
129         * epg.el (epg-make-context): New slot "operation".
130         (epg-passphrase-callback-function): Confirm passphrase when
131         performing symmetric encryption.
132
133 2006-05-25  Daiki Ueno  <ueno@unixuser.org>
134
135         * epa.el (epa-decrypt-file): Display verify result if the message
136         is signed.
137         (epa-decrypt-region): New command.
138         (epa-verify-region): New command.
139         (epa-decrypt-armor-in-region): New command.
140         (epa-verify-armor-in-region): New command.
141         (epa-sign-region): New command.
142         (epa-encrypt-region): New command.
143
144 2006-05-11  Daiki Ueno  <ueno@unixuser.org>
145
146         * epa.el (epa-armor): New user option.
147         (epa-textmode): New user option.
148
149 2006-05-02  Daiki Ueno  <ueno@unixuser.org>
150
151         * epg.el (epg-make-key-signature): New object epg-key-signature.
152         (epg-list-keys): Collect key signatures.
153         (epg-make-sub-key): Renamed secret -> secret-p.
154         (epg-list-keys-postprocess-one-key): Abolished.
155         (epg-list-keys): Reverse all keys, sub-keys, user-ids, and key
156         signatures by itself.
157         (epg-no-data-reason-alist): New constant.
158         (epg-unexpected-reason-alist): New constant.
159
160 2006-05-01  Daiki Ueno  <ueno@unixuser.org>
161
162         * epg.el (epg-invalid-recipients-reason-alist): Renamed.
163         (epg-delete-problem-reason-alist): Renamed.
164         (epg-import-ok-reason-alist): New constant.
165         (epg-import-problem-reason-alist): New constant.
166         (epg-status-IMPORTED): New function.
167         (epg-status-IMPORT_OK): New function.
168         (epg-status-IMPORT_PROBLEM): New function.
169         (epg-start-import-keys): Don't use a temporary output file.
170         (epg-start-receive-keys): New function.
171         (epg-import-keys-from-server): New function.
172         (epg-receive-keys): Alias to epg-import-keys-from-server.
173
174 2006-05-01  Daiki Ueno  <ueno@unixuser.org>
175
176         * epg.el (epg-start): Signal an error if the process of CONTEXT is
177         already running for other operations.
178         (epg-flush): Abolished.
179         (epg-start-generate-key): New function.
180         (epg-generate-key-from-file): New function.
181         (epg-generate-key-from-string): New function.
182         (epg-status-KEY_CREATED): New function.
183         (epg-status-KEY_NOT_CREATED): New function.
184         (epg-new-signature-type-alist): New variable.
185         (epg-make-new-signature): New object epg-new-signature.
186         (epg-status-SIG_CREATED): Set epg-new-signature object.
187         (epg-new-signature-to-string): New function.
188         (epg-make-signature): Added slots for signature class and version.
189         (epg-start-sign): Fixed rule of the MODE argument.
190
191 2006-04-30  Daiki Ueno  <ueno@unixuser.org>
192
193         * epa.el (epa-delete-keys): Support deletion of secret keys.
194
195         * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
196         decrypted text.
197
198         * epg.el (epg-read-output): Don't convert line endings of the
199         output file.
200         (epg-cancel): Set 'error result.
201
202 2006-04-29  Daiki Ueno  <ueno@unixuser.org>
203
204         * epg.el (epg-make-signature): Removed user-id; added
205         creation-time, expiration-time, pubkey-algorithm,
206         digest-algorithm.
207         (epg-process-sentinel): Abolished.
208         (epg-signature-to-string): Decode DN.
209         (epg-list-keys): Cache user-id in epg-user-id-alist.
210         (epg-make-user-id): Renamed name -> string.
211
212 2006-04-29  Daiki Ueno  <ueno@unixuser.org>
213
214         * epg.el (epg-status-ERRSIG): New function.
215         (epg-verify-file): Signal an error if we encounter ERRSIG status.
216         (epg-verify-string): Ditto.
217
218 2006-04-28  Daiki Ueno  <ueno@unixuser.org>
219
220         * epg.el: Added typecheck to accessors to objects.
221
222 2006-04-26  Daiki Ueno  <ueno@unixuser.org>
223
224         * epg.el (epg-status-GET_HIDDEN): Pass epg-context as the first
225         argument of passphrase-callback.
226         (epg-status-PROGRESS): Ditto.
227
228 2006-04-26  Daiki Ueno  <ueno@unixuser.org>
229
230         * epa.el (epa-select-keys): Don't set inhibit-quit when
231         recursive-edit is called.
232         (epg-cancel): New function.
233
234 2006-04-25  Daiki Ueno  <ueno@unixuser.org>
235
236         * epg.el (epg-process-sentinel): New function; set 'error if gpg
237         process exited abnormally, but we have not received an error
238         response from it.
239         (epg-sign-file): Signal an error only when a signature is not
240         created.
241         (epg-sign-string): Ditto.
242         (epg-encrypt-file): Signal an error if SIGN is specified and
243         signature is not created.
244         (epg-encrypt-string): Ditto.
245
246 2006-04-22  Daiki Ueno  <ueno@unixuser.org>
247
248         * epa.el (epa-key-widget-value-create): Decode DN.
249         (epa-list-keys): Add the PROTOCOL argument.
250         (epa-select-keys): Require CONTEXT as the first argument.
251
252         * epg.el (epg-gpgsm-program): New user option.
253         (epg-dn-type-alist): New variable.
254         (epg-start): Don't specify --command-fd if protocol is CMS.
255         (epg-list-keys): Require CONTEXT as the first argument.
256         (epg-dn-from-string): New function.
257         (epg-decode-dn): New function.
258
259 2006-04-21  Daiki Ueno  <ueno@unixuser.org>
260
261         * epa.el (epa-sign-keys): New command.
262
263         * epg.el (epg-start-sign-keys): New function.
264         (epg-sign-keys): New function.
265         (epg-status-GET_HIDDEN): Enable local quit.
266         (epg-status-GET_BOOL): Ditto.
267         (epg-status-GET_LINE): Ditto.
268
269 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
270
271         * epa.el (epa-list-keys-1): Add 'epa-list-keys property to keylist
272         region.
273
274 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
275
276         * pgg-epg.el (pgg-epg-secret-key-id-list): New variable.
277         (pgg-epg-passphrase-callback): New function.
278
279         * epa.el (epa-select-keys): Added "Cancel" button.
280
281 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
282
283         * epg.el (epg-signature-to-string): New function.
284
285 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
286
287         * epa-file.el (epa-file-write-region): RECIPIENTS is now a list of
288         key objects.
289         * epa-dired.el (epa-dired-do-encrypt): RECIPIENTS is now a list of
290         key objects.
291
292         * epa.el (epa-select-keys): Added MODE argument.
293         (epa-encrypt-file): RECIPIENTS is now a list of key objects.
294
295         * epg.el (epg-status-SIG_CREATED): New function.
296         (epg-start-sign): epg-context-signers is now a list of key objects.
297         (epg-start-encrypt): RECIPIENTS is now a list of key objects.
298
299 2006-04-19  Daiki Ueno  <ueno@unixuser.org>
300
301         * epa.el (epa-verify-file): Show results in minibuffer.
302         * epg.el (epg-debug-buffer): New variable.
303         (epg-flush): New function.
304
305 2006-04-18  Daiki Ueno  <ueno@unixuser.org>
306
307         * epa.el (epa-export-keys): New command.
308         * epg.el (epg-start-export-keys): Accept a list of epg-key object
309         instead of a regexp.
310
311 2006-04-18  Daiki Ueno  <ueno@unixuser.org>
312
313         * epa.el (epa-keys-mode-map): Bind epa-list-keys; epa-import-key.
314         (epa-import-key): New command.
315
316         * epg.el (epg-delete-problem-alist): New constant.
317         (epg-status-DELETE_PROBLEM): New function.
318         (epg-start-delete-key): New function.
319         (epg-delete-key): New function.
320         (epg-wait-for-completion): Add the NO-EOF argument.
321
322 2006-04-18  Daiki Ueno  <ueno@unixuser.org>
323
324         * epg.el (epg-start): Insert the command-line arguments to the
325         debug buffer.
326         (epg-start-encrypt): Wait for BEGIN_ENCRYPTION.
327         (epg-start-delete-key): New function.
328         (epg-delete-key): New function.
329
330         * epa.el (epa-key): New widget.
331         (epa-key-widget-action): New function.
332         (epa-key-widget-value-create): New function.
333         (epa-key-widget-button-face-get): New function.
334         (epa-key-widget-help-echo): New function.
335
336 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
337
338         * epa-file.el (epa-file-write-region): Check if START is a string.
339
340 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
341
342         * epa-file.el: Rewritten with file-name-handler.
343         (epa-file-handler): New variable.
344         (epa-file-enable): New command.
345         (epa-file-disable): New command.
346
347         * epa-setup.el: Call epa-file-enable.
348
349 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
350
351         * epa-file.el (epa-passphrase): New variable.
352         (epa-file-passphrase-callback-function): New function.
353         (epa-find-file): Reset buffer-undo-list; set
354         buffer-file-coding-system to last-coding-system-used after
355         decoding.
356
357 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
358
359         * epa-file.el (epa-write-file): Try to write region to "/" to get
360         last-coding-system-used to be set.
361
362 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
363
364         * epa-file.el: New implementation of epf.el.
365
366         * epf.el: Abolished.
367
368 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
369
370         * epa.el (epa-verify-file): Display verify result.
371
372         * epg.el (epg-invalid-recipients-alist): New variable.
373         (epg-status-INV_RECP): New function.
374         (epg-status-NO_RECP): New function.
375
376         * epa.el (epa-keys-mode-map): Bind epa-decrypt-file,
377         epa-verify-file, epa-sign-file, and epa-encrypt-file.
378         (epa-decrypt-file): New function imported from epa-dired.el.
379         (epa-verify-file): New function imported from epa-dired.el.
380         (epa-sign-file): New function imported from epa-dired.el.
381         (epa-encrypt-file): New function imported from epa-dired.el.
382
383 2006-04-16  Daiki Ueno  <ueno@unixuser.org>
384
385         * epa.el (epa-select-keys): Renamed from epa-ask-keys; use
386         recursive-edit.
387         * epa-dired.el (epa-dired-encrypt-file): Use epa-select-keys.
388
389 2006-04-16  Daiki Ueno  <ueno@unixuser.org>
390
391         * epa-setup.el: New file.
392         * epa-dired.el: New file.
393
394         * epg.el (epg-colons-pub-spec): Abolished.
395         (epg-colons-sec-spec): Abolished.
396         (epg-colons-uid-spec): Abolished.
397         (epg-colons-fpr-spec): Abolished.
398         (epg-key-validity-alist): New variable.
399         (epg-key-capablity-alist): New variable.
400         (epg-make-key): New object epg-key.
401         (epg-make-sub-key): New object epg-sub-key.
402         (epg-make-user-id): New object epg-user-id.
403         (epg-list-keys-1): Renamed from epg-list-keys.
404         (epg-list-keys): Rewritten.
405
406 2006-04-15  Daiki Ueno  <ueno@unixuser.org>
407
408         * epg.el (epg-list-keys): Make the NAME argument optional.
409
410 2006-04-13  Daiki Ueno  <ueno@unixuser.org>
411
412         * epa.el: Added header.
413
414         * epg.el (epg-list-keys): Specify --with-fingerprint.
415         (epg-colons-fpr-spec): New variable.
416         (epg-colons-pub-spec): Renamed trust -> validity and ownertrust ->
417         owner-trust.
418         (epg-colons-sec-spec): Ditto.
419         (epg-colons-uid-spec): Renamed trust -> validity.
420
421 2006-04-13  Daiki Ueno  <ueno@unixuser.org>
422
423         * epa.el: New file.
424
425         * epg.el (epg-cipher-algorithm-alist): New constant.
426         (epg-pubkey-algorithm-alist): New constant.
427         (epg-digest-algorithm-alist): New constant.
428         (epg-compress-algorithm-alist): New constant.
429         (epg-configuration): New function.
430         (epg-start): Don't specify --yes.
431
432 2006-04-13  Daiki Ueno  <ueno@unixuser.org>
433
434         * epg.el (epg-make-data-from-file): New function.
435         (epg-make-data-from-string): New function.
436         (epg-data-file): New function.
437         (epg-data-string): New function.
438         (epg-start-decrypt): Get a cipher text from a data object.
439         (epg-delete-output-file): New function.
440         (epg-decrypt-file): Add the 3rd argument PLAIN to specify where
441         the output goes.
442         (epg-start-verify): Get a signature and signed-text from a data
443         object.
444         (epg-verify-file): Added the 3rd argument PLAIN to specify where
445         the output goes; return the plain text if PLAIN is nil.
446         (epg-verify-string): Return the plain text.
447         (epg-start-sign): Get a plain text from a data object.
448         (epg-sign-file): Added the 3rd argument SIGNATURE to specify where
449         the output goes.
450         (epg-start-encrypt): Get a plain text from a data object.
451         (epg-encrypt-file): Added the 4th argument CIPHER to specify where
452         the output goes.
453         (epg-start-import-keys): Get keys from a data object.
454         (epg-import-keys-1): New function.
455         (epg-import-keys-from-file): Use it.
456         (epg-import-keys-from-string): Use it.
457
458 2006-04-12  Daiki Ueno  <ueno@unixuser.org>
459
460         * epf.el: Renamed from epg-file.el.
461
462 2006-04-12  Daiki Ueno  <ueno@unixuser.org>
463
464         * epg.el (epg-status-GET_BOOL): New function.
465         (epg-status-GET_LINE): New function.
466         (epg-prompt-alist): New variable, to be filled.
467
468         * pgg-epg.el (mml2015-gpg-extract-signature-details): New function.
469         * epg.el (epg-signature-fingerprint): New function.
470         (epg-signature-set-fingerprint): New function.
471         (epg-status-VALIDSIG): New function.
472
473         * epg.el (epg-reset): Don't reset result.
474         (epg-start-decrypt): Reset result before epg-start.
475         (epg-start-verify): Ditto.
476         (epg-start-sign): Ditto.
477         (epg-start-encrypt): Ditto.
478         (epg-start-export-keys): Ditto.
479         (epg-start-import-keys): Ditto.
480
481         * Makefile.am (EXTRA_DIST): Added pgg-epg.el.
482         * pgg-epg.el: New file.
483
484         * epg.el (epg-start-export-keys): New function.
485         (epg-export-keys): New function.
486         (epg-start-import-keys): New function.
487         (epg-import-keys): New function.
488         (epg-verify-file): New function.
489
490         * epg-file.el (epg-file-write-region): Support public key encryption.
491
492         * epg.el (epg-passphrase-callback-function): Always display key-id.
493