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