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