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