* epa.el (epa-insert-keys): Renamed from epa-list-keys-1; don't
[elisp/epg.git] / ChangeLog
1 2006-05-26  Daiki Ueno  <ueno@unixuser.org>
2
3         * epa.el (epa-insert-keys): Renamed from epa-list-keys-1; don't
4         disable inhibit-quit here.
5
6         * epg.el (epg-make-context): New slot "operation".
7         (epg-passphrase-callback-function): Confirm passphrase when
8         performing symmetric encryption.
9
10 2006-05-25  Daiki Ueno  <ueno@unixuser.org>
11
12         * epa.el (epa-decrypt-file): Display verify result if the message
13         is signed.
14         (epa-decrypt-region): New command.
15         (epa-verify-region): New command.
16         (epa-decrypt-armor-in-region): New command.
17         (epa-verify-armor-in-region): New command.
18         (epa-sign-region): New command.
19         (epa-encrypt-region): New command.
20
21 2006-05-11  Daiki Ueno  <ueno@unixuser.org>
22
23         * epa.el (epa-armor): New user option.
24         (epa-textmode): New user option.
25
26 2006-05-02  Daiki Ueno  <ueno@unixuser.org>
27
28         * epg.el (epg-make-key-signature): New object epg-key-signature.
29         (epg-list-keys): Collect key signatures.
30         (epg-make-sub-key): Renamed secret -> secret-p.
31         (epg-list-keys-postprocess-one-key): Abolished.
32         (epg-list-keys): Reverse all keys, sub-keys, user-ids, and key
33         signatures by itself.
34         (epg-no-data-reason-alist): New constant.
35         (epg-unexpected-reason-alist): New constant.
36
37 2006-05-01  Daiki Ueno  <ueno@unixuser.org>
38
39         * epg.el (epg-invalid-recipients-reason-alist): Renamed.
40         (epg-delete-problem-reason-alist): Renamed.
41         (epg-import-ok-reason-alist): New constant.
42         (epg-import-problem-reason-alist): New constant.
43         (epg-status-IMPORTED): New function.
44         (epg-status-IMPORT_OK): New function.
45         (epg-status-IMPORT_PROBLEM): New function.
46         (epg-start-import-keys): Don't use a temporary output file.
47         (epg-start-receive-keys): New function.
48         (epg-import-keys-from-server): New function.
49         (epg-receive-keys): Alias to epg-import-keys-from-server.
50
51 2006-05-01  Daiki Ueno  <ueno@unixuser.org>
52
53         * epg.el (epg-start): Signal an error if the process of CONTEXT is
54         already running for other operations.
55         (epg-flush): Abolished.
56         (epg-start-generate-key): New function.
57         (epg-generate-key-from-file): New function.
58         (epg-generate-key-from-string): New function.
59         (epg-status-KEY_CREATED): New function.
60         (epg-status-KEY_NOT_CREATED): New function.
61         (epg-new-signature-type-alist): New variable.
62         (epg-make-new-signature): New object epg-new-signature.
63         (epg-status-SIG_CREATED): Set epg-new-signature object.
64         (epg-new-signature-to-string): New function.
65         (epg-make-signature): Added slots for signature class and version.
66         (epg-start-sign): Fixed rule of the MODE argument.
67
68 2006-04-30  Daiki Ueno  <ueno@unixuser.org>
69
70         * epa.el (epa-delete-keys): Support deletion of secret keys.
71
72         * pgg-epg.el (pgg-epg-decrypt-region): Convert line endings of the
73         decrypted text.
74
75         * epg.el (epg-read-output): Don't convert line endings of the
76         output file.
77         (epg-cancel): Set 'error result.
78
79 2006-04-29  Daiki Ueno  <ueno@unixuser.org>
80
81         * epg.el (epg-make-signature): Removed user-id; added
82         creation-time, expiration-time, pubkey-algorithm,
83         digest-algorithm.
84         (epg-process-sentinel): Abolished.
85         (epg-signature-to-string): Decode DN.
86         (epg-list-keys): Cache user-id in epg-user-id-alist.
87         (epg-make-user-id): Renamed name -> string.
88
89 2006-04-29  Daiki Ueno  <ueno@unixuser.org>
90
91         * epg.el (epg-status-ERRSIG): New function.
92         (epg-verify-file): Signal an error if we encounter ERRSIG status.
93         (epg-verify-string): Ditto.
94
95 2006-04-28  Daiki Ueno  <ueno@unixuser.org>
96
97         * epg.el: Added typecheck to accessors to objects.
98
99 2006-04-26  Daiki Ueno  <ueno@unixuser.org>
100
101         * epg.el (epg-status-GET_HIDDEN): Pass epg-context as the first
102         argument of passphrase-callback.
103         (epg-status-PROGRESS): Ditto.
104
105 2006-04-26  Daiki Ueno  <ueno@unixuser.org>
106
107         * epa.el (epa-select-keys): Don't set inhibit-quit when
108         recursive-edit is called.
109         (epg-cancel): New function.
110
111 2006-04-25  Daiki Ueno  <ueno@unixuser.org>
112
113         * epg.el (epg-process-sentinel): New function; set 'error if gpg
114         process exited abnormally, but we have not received an error
115         response from it.
116         (epg-sign-file): Signal an error only when a signature is not
117         created.
118         (epg-sign-string): Ditto.
119         (epg-encrypt-file): Signal an error if SIGN is specified and
120         signature is not created.
121         (epg-encrypt-string): Ditto.
122
123 2006-04-22  Daiki Ueno  <ueno@unixuser.org>
124
125         * epa.el (epa-key-widget-value-create): Decode DN.
126         (epa-list-keys): Add the PROTOCOL argument.
127         (epa-select-keys): Require CONTEXT as the first argument.
128
129         * epg.el (epg-gpgsm-program): New user option.
130         (epg-dn-type-alist): New variable.
131         (epg-start): Don't specify --command-fd if protocol is CMS.
132         (epg-list-keys): Require CONTEXT as the first argument.
133         (epg-dn-from-string): New function.
134         (epg-decode-dn): New function.
135
136 2006-04-21  Daiki Ueno  <ueno@unixuser.org>
137
138         * epa.el (epa-sign-keys): New command.
139
140         * epg.el (epg-start-sign-keys): New function.
141         (epg-sign-keys): New function.
142         (epg-status-GET_HIDDEN): Enable local quit.
143         (epg-status-GET_BOOL): Ditto.
144         (epg-status-GET_LINE): Ditto.
145
146 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
147
148         * epa.el (epa-list-keys-1): Add 'epa-list-keys property to keylist
149         region.
150
151 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
152
153         * pgg-epg.el (pgg-epg-secret-key-id-list): New variable.
154         (pgg-epg-passphrase-callback): New function.
155
156         * epa.el (epa-select-keys): Added "Cancel" button.
157
158 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
159
160         * epg.el (epg-signature-to-string): New function.
161
162 2006-04-20  Daiki Ueno  <ueno@unixuser.org>
163
164         * epa-file.el (epa-file-write-region): RECIPIENTS is now a list of
165         key objects.
166         * epa-dired.el (epa-dired-do-encrypt): RECIPIENTS is now a list of
167         key objects.
168
169         * epa.el (epa-select-keys): Added MODE argument.
170         (epa-encrypt-file): RECIPIENTS is now a list of key objects.
171
172         * epg.el (epg-status-SIG_CREATED): New function.
173         (epg-start-sign): epg-context-signers is now a list of key objects.
174         (epg-start-encrypt): RECIPIENTS is now a list of key objects.
175
176 2006-04-19  Daiki Ueno  <ueno@unixuser.org>
177
178         * epa.el (epa-verify-file): Show results in minibuffer.
179         * epg.el (epg-debug-buffer): New variable.
180         (epg-flush): New function.
181
182 2006-04-18  Daiki Ueno  <ueno@unixuser.org>
183
184         * epa.el (epa-export-keys): New command.
185         * epg.el (epg-start-export-keys): Accept a list of epg-key object
186         instead of a regexp.
187
188 2006-04-18  Daiki Ueno  <ueno@unixuser.org>
189
190         * epa.el (epa-keys-mode-map): Bind epa-list-keys; epa-import-key.
191         (epa-import-key): New command.
192
193         * epg.el (epg-delete-problem-alist): New constant.
194         (epg-status-DELETE_PROBLEM): New function.
195         (epg-start-delete-key): New function.
196         (epg-delete-key): New function.
197         (epg-wait-for-completion): Add the NO-EOF argument.
198
199 2006-04-18  Daiki Ueno  <ueno@unixuser.org>
200
201         * epg.el (epg-start): Insert the command-line arguments to the
202         debug buffer.
203         (epg-start-encrypt): Wait for BEGIN_ENCRYPTION.
204         (epg-start-delete-key): New function.
205         (epg-delete-key): New function.
206
207         * epa.el (epa-key): New widget.
208         (epa-key-widget-action): New function.
209         (epa-key-widget-value-create): New function.
210         (epa-key-widget-button-face-get): New function.
211         (epa-key-widget-help-echo): New function.
212
213 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
214
215         * epa-file.el (epa-file-write-region): Check if START is a string.
216
217 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
218
219         * epa-file.el: Rewritten with file-name-handler.
220         (epa-file-handler): New variable.
221         (epa-file-enable): New command.
222         (epa-file-disable): New command.
223
224         * epa-setup.el: Call epa-file-enable.
225
226 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
227
228         * epa-file.el (epa-passphrase): New variable.
229         (epa-file-passphrase-callback-function): New function.
230         (epa-find-file): Reset buffer-undo-list; set
231         buffer-file-coding-system to last-coding-system-used after
232         decoding.
233
234 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
235
236         * epa-file.el (epa-write-file): Try to write region to "/" to get
237         last-coding-system-used to be set.
238
239 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
240
241         * epa-file.el: New implementation of epf.el.
242
243         * epf.el: Abolished.
244
245 2006-04-17  Daiki Ueno  <ueno@unixuser.org>
246
247         * epa.el (epa-verify-file): Display verify result.
248
249         * epg.el (epg-invalid-recipients-alist): New variable.
250         (epg-status-INV_RECP): New function.
251         (epg-status-NO_RECP): New function.
252
253         * epa.el (epa-keys-mode-map): Bind epa-decrypt-file,
254         epa-verify-file, epa-sign-file, and epa-encrypt-file.
255         (epa-decrypt-file): New function imported from epa-dired.el.
256         (epa-verify-file): New function imported from epa-dired.el.
257         (epa-sign-file): New function imported from epa-dired.el.
258         (epa-encrypt-file): New function imported from epa-dired.el.
259
260 2006-04-16  Daiki Ueno  <ueno@unixuser.org>
261
262         * epa.el (epa-select-keys): Renamed from epa-ask-keys; use
263         recursive-edit.
264         * epa-dired.el (epa-dired-encrypt-file): Use epa-select-keys.
265
266 2006-04-16  Daiki Ueno  <ueno@unixuser.org>
267
268         * epa-setup.el: New file.
269         * epa-dired.el: New file.
270
271         * epg.el (epg-colons-pub-spec): Abolished.
272         (epg-colons-sec-spec): Abolished.
273         (epg-colons-uid-spec): Abolished.
274         (epg-colons-fpr-spec): Abolished.
275         (epg-key-validity-alist): New variable.
276         (epg-key-capablity-alist): New variable.
277         (epg-make-key): New object epg-key.
278         (epg-make-sub-key): New object epg-sub-key.
279         (epg-make-user-id): New object epg-user-id.
280         (epg-list-keys-1): Renamed from epg-list-keys.
281         (epg-list-keys): Rewritten.
282
283 2006-04-15  Daiki Ueno  <ueno@unixuser.org>
284
285         * epg.el (epg-list-keys): Make the NAME argument optional.
286
287 2006-04-13  Daiki Ueno  <ueno@unixuser.org>
288
289         * epa.el: Added header.
290
291         * epg.el (epg-list-keys): Specify --with-fingerprint.
292         (epg-colons-fpr-spec): New variable.
293         (epg-colons-pub-spec): Renamed trust -> validity and ownertrust ->
294         owner-trust.
295         (epg-colons-sec-spec): Ditto.
296         (epg-colons-uid-spec): Renamed trust -> validity.
297
298 2006-04-13  Daiki Ueno  <ueno@unixuser.org>
299
300         * epa.el: New file.
301
302         * epg.el (epg-cipher-algorithm-alist): New constant.
303         (epg-pubkey-algorithm-alist): New constant.
304         (epg-digest-algorithm-alist): New constant.
305         (epg-compress-algorithm-alist): New constant.
306         (epg-configuration): New function.
307         (epg-start): Don't specify --yes.
308
309 2006-04-13  Daiki Ueno  <ueno@unixuser.org>
310
311         * epg.el (epg-make-data-from-file): New function.
312         (epg-make-data-from-string): New function.
313         (epg-data-file): New function.
314         (epg-data-string): New function.
315         (epg-start-decrypt): Get a cipher text from a data object.
316         (epg-delete-output-file): New function.
317         (epg-decrypt-file): Add the 3rd argument PLAIN to specify where
318         the output goes.
319         (epg-start-verify): Get a signature and signed-text from a data
320         object.
321         (epg-verify-file): Added the 3rd argument PLAIN to specify where
322         the output goes; return the plain text if PLAIN is nil.
323         (epg-verify-string): Return the plain text.
324         (epg-start-sign): Get a plain text from a data object.
325         (epg-sign-file): Added the 3rd argument SIGNATURE to specify where
326         the output goes.
327         (epg-start-encrypt): Get a plain text from a data object.
328         (epg-encrypt-file): Added the 4th argument CIPHER to specify where
329         the output goes.
330         (epg-start-import-keys): Get keys from a data object.
331         (epg-import-keys-1): New function.
332         (epg-import-keys-from-file): Use it.
333         (epg-import-keys-from-string): Use it.
334
335 2006-04-12  Daiki Ueno  <ueno@unixuser.org>
336
337         * epf.el: Renamed from epg-file.el.
338
339 2006-04-12  Daiki Ueno  <ueno@unixuser.org>
340
341         * epg.el (epg-status-GET_BOOL): New function.
342         (epg-status-GET_LINE): New function.
343         (epg-prompt-alist): New variable, to be filled.
344
345         * pgg-epg.el (mml2015-gpg-extract-signature-details): New function.
346         * epg.el (epg-signature-fingerprint): New function.
347         (epg-signature-set-fingerprint): New function.
348         (epg-status-VALIDSIG): New function.
349
350         * epg.el (epg-reset): Don't reset result.
351         (epg-start-decrypt): Reset result before epg-start.
352         (epg-start-verify): Ditto.
353         (epg-start-sign): Ditto.
354         (epg-start-encrypt): Ditto.
355         (epg-start-export-keys): Ditto.
356         (epg-start-import-keys): Ditto.
357
358         * Makefile.am (EXTRA_DIST): Added pgg-epg.el.
359         * pgg-epg.el: New file.
360
361         * epg.el (epg-start-export-keys): New function.
362         (epg-export-keys): New function.
363         (epg-start-import-keys): New function.
364         (epg-import-keys): New function.
365         (epg-verify-file): New function.
366
367         * epg-file.el (epg-file-write-region): Support public key encryption.
368
369         * epg.el (epg-passphrase-callback-function): Always display key-id.
370