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