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