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