Update.
[elisp/semi.git] / ChangeLog.pgpgpg
1 1999-09-14  Akihiro Arisawa   <ari@atesoft.advantest.co.jp>
2             Katsumi Yamaoka   <yamaoka@jpl.org>
3
4         * mime-mc.el (mime-mc-gpg-process-region): Call the parser function
5         with the 6th arg `nil' if `mc-gpg-handle-pre095' is not bound.  It
6         is supposed to be used with another mc-gpg.el which is available
7         from http://www.lothar.com/tech/crypto/.
8
9 1999-09-08  Katsumi Yamaoka   <yamaoka@jpl.org>
10
11         * mime-mc.el (mime-mc-gpg-encrypt-region): Bind `mc-gpg-comment' to
12         "DUMMY".
13         (mime-mc-gpg-sign-region): Don't use "--textmode" in GPG arguments,
14         replace line break code with CRLF while signing instead.
15         (mime-mc-decrypt): Attempt to fix the bug in "mc-gpg.el".
16
17 1999-09-08  Katsumi Yamaoka   <yamaoka@jpl.org>
18
19         * mime-play.el (mime-show-echo-buffer): Fix bug.
20
21 1999-09-08  Katsumi Yamaoka   <yamaoka@jpl.org>
22
23         * mime-edit.el (mime-edit-user-agent-value): Add PGPGPG feature.
24
25         * mime-play.el (mime-show-echo-buffer): Rewrite.
26
27 1999-09-08  Katsumi Yamaoka   <yamaoka@jpl.org>
28
29         * mime-play.el (mime-show-echo-buffer): Don't specify the negative
30         number to `enlarge-window'.
31
32 1999-07-02  Katsumi Yamaoka   <yamaoka@jpl.org>
33
34         * mime-pgp.el (mime-view-application/pgp): Specify preview buffer
35         explicitly; set the value of `mime-raw-buffer' and
36         `mime-mother-buffer' in preview buffer.
37
38 1999-05-21  Katsumi Yamaoka   <yamaoka@jpl.org>
39
40         * mime-pgp.el (mime-pgp-fetch-key): Returns nil if the key fecthing
41         is failed or the fetched key is discarded.
42
43 1999-05-17  KOSEKI Yoshinori  <kose@yk.NetLaputa.ne.jp>
44
45         * mime-pgp.el (mime-verify-application/pgp-signature): Specify the
46         name of `sig-file' explicitly for `mime-pgp-check-signature'.
47         (mime-pgp-check-signature): Accept new arg `sig-file' and feed its
48         value to the verify command.
49
50 1999-05-13  Katsumi Yamaoka   <yamaoka@jpl.org>
51
52         * mime-edit.el (mime-edit-decode-message-in-buffer): Call
53         `mime-edit-decode-single-part-in-buffer' with return value of
54         `mime-read-Content-Disposition'; don't modify the header if the
55         buffer is narrowed to a part.
56         (mime-edit-decode-single-part-in-buffer): Accept the optional arg
57         `content-disposition' and inherit it into the editing buffer.
58
59 1999-05-13  OKUNISHI Fujikazu <fuji0924@mbox.kyoto-inet.or.jp>
60
61         * mime-mc.el (mime-mc-pgp50-process-region,
62         mime-mc-gpg-process-region): Bind `shell-command-switch' to the
63         value of `mime-mc-shell-command-switch'.
64         (mime-mc-shell-command-switch): New user option.
65
66 1999-05-12  Katsumi Yamaoka   <yamaoka@jpl.org>
67
68         * mime-edit.el (mime-edit-decode-multipart-in-buffer): Use
69         `pgp-encrypted' or `pgp-signed' for the value of `subtype' if the
70         protocol "application/pgp-encrypted" or "application/pgp-signature"
71         is declared; attempt to decrypt the encrypted part with the new
72         function `mime-edit-decrypt-application/pgp-encrypted' and strip
73         sender, recipients and useless tags from the decrypted part.
74         (TopLevel): Autoload "mime-pgp" for the function
75         `mime-edit-decrypt-application/pgp-encrypted'.
76
77         * mime-pgp.el (mime-edit-decrypt-application/pgp-encrypted): New
78         function.
79         (mime-pgp-detect-version): Allow some leading garbage lines.
80
81 1999-04-16  Katsumi Yamaoka   <yamaoka@jpl.org>
82
83         * mime-play.el (mime-show-echo-buffer): Make it returns the list of
84         window, start and end positions of inserted text; adjust a window
85         height to the value of `mime-echo-window-height' whenever this
86         function is called; bind `window-min-height' to 1 during splitting
87         a window vertically.
88
89         * mime-pgp.el (mime-pgp-fetch-key): Enclose a tcp process with
90         a temp buffer.
91         (mime-pgp-show-fetched-key-for-pgp50): Always use
92         `mime-show-echo-buffer' for displaying a fetched key; optimize its
93         window height.
94         (mime-pgp-show-fetched-key): Likewise.
95         (mime-pgp-keyserver-port): Replace "HTTP" with "HKP" in doc string.
96         (mime-verify-application/pgp-signature): Optimize a height of window
97         where some informations are displayed.
98         (mime-pgp-parse-verify-error): Likewise.
99         (mime-pgp-show-echo-buffer): New macro.
100         (mime-pgp-parse-verify-error-for-pgp): Make it to accept an arg
101         `output-buffer' and to return the list of expected key-ID, start
102         position and lines to be shown a result.
103         (mime-pgp-parse-verify-error-for-pgp50): Likewise.
104         (mime-pgp-parse-verify-error-for-gpg): Likewise.
105         (mime-pgp-parse-verify-error): Likewise.
106         (mime-pgp-check-signature): Returns a start position and lines
107         to be used for how a result should be displayed in echo window.
108         (mime-pgp-detect-version): Bug fix -- save restriction before
109         narrowing.
110
111 1999-04-15  Katsumi Yamaoka   <yamaoka@jpl.org>
112
113         * mime-pgp.el (mime-add-application/pgp-keys): Use
114         `mime-insert-entity-content' and `mime-pgp-detect-version' to get
115         public keys.
116         (mime-decrypt-application/pgp-encrypted): Use
117         `mime-entity-detect-pgp-version' instead of
118         `mime-pgp-detect-version'.
119         (mime-verify-application/pgp-signature): Likewise.
120         (mime-entity-detect-pgp-version): Function to detect PGP version
121         from entity content; renamed from `mime-pgp-detect-version'.
122         (mime-pgp-detect-version): New function to detect PGP version in
123         the buffer.
124
125 1999-04-13  Hirokazu FUKUI    <fukui@atesoft.advantest.co.jp>
126
127         * mime-pgp.el (mime-add-application/pgp-keys): Call
128         `buffer-substring' in entity's buffer.
129
130 1999-04-15  Katsumi Yamaoka   <yamaoka@jpl.org>
131
132         * mime-mc.el (mime-mc-insert-public-key, mime-mc-encrypt-region,
133         mime-mc-traditional-sign-region, mime-mc-sign-region,
134         mime-mc-snarf-keys, mime-mc-fetch-key, mime-mc-decrypt,
135         mime-mc-verify, mime-mc-comment): Use `mime-mc-symbol'.
136         (mime-mc-symbol): New macro.
137         (mime-mc-symbol-format-alist): New variable.
138
139 1999-04-14  Katsumi Yamaoka   <yamaoka@jpl.org>
140
141         * mime-edit.el (mime-edit-insert-key): Prompt for user id if prefix
142         arg is given.
143
144         * mime-mc.el (mime-mc-insert-public-key): Fix bug - referring to
145         undefined variable.
146
147 1999-04-14  Katsumi Yamaoka   <yamaoka@jpl.org>
148
149         * mime-ui-en.texi, mime-ui-ja.texi: Sync up with .sgml files.
150         * mime-ui-en.sgml, mime-ui-ja.sgml: Modify a description for
151         simplified `pgp-function-alist'.
152
153         * semi-def.el (pgp-function-alist): Simplify. Use
154         `mime-mc-encrypt-region', `mime-mc-traditional-sign-region',
155         `mime-mc-sign-region' and `mime-mc-fetch-key' for it.
156
157         * mime-mc.el (mime-mc-insert-public-key, mime-mc-snarf-keys,
158         mime-mc-decrypt, mime-mc-verify): Add doc strings.
159         (mime-mc-encrypt-region, mime-mc-traditional-sign-region,
160         mime-mc-sign-region, mime-mc-fetch-key): New functions.
161         (TopLevel): Add autoloads "mc-gpg", "mc-pgp5" and "mc-pgp" for the
162         functions `mc-gpg-fetch-key', `mc-gpg-sign-region',
163         `mc-pgp50-fetch-key', `mc-pgp50-sign-region', `mc-pgp-fetch-key'
164         and `mc-pgp-sign-region'.
165
166         * mime-pgp.el (mime-pgp-fetch-key): Kill useless buffers after
167         fetching.
168         (mime-pgp-show-fetched-key-for-pgp50, mime-pgp-show-fetched-key):
169         Show fetched key in the window of `mime-echo-buffer-name' if it is
170         alive, otherwise use `display-buffer'; minimize the window height;
171         return buffer object to be killed.
172
173 1999-04-14  Katsumi Yamaoka   <yamaoka@jpl.org>
174
175         * mime-pgp.el (mime-pgp-fetch-key,
176         mime-pgp-show-fetched-key-for-pgp,
177         mime-pgp-show-fetched-key-for-pgp50,
178         mime-pgp-show-fetched-key-for-gpg): New functions.
179         (mime-pgp-show-fetched-key): New macro.
180         (mime-pgp-fetch-timeout, mime-pgp-http-proxy-server-port,
181         mime-pgp-http-proxy-server-address,
182         mime-pgp-http-proxy-url-template, mime-pgp-keyserver-port,
183         mime-pgp-keyserver-address, mime-pgp-keyserver-url-template): New
184         user options.
185         (mime-pgp-key-expected-regexp-alist,
186         mime-pgp-bad-signature-regexp-alist,
187         mime-pgp-good-signature-regexp-alist,
188         mime-pgp-default-language-alist, mime-pgp-command-alist): Change
189         the customization group to `mime-pgp'.
190         (mime-pgp): New group for customization.
191
192         * mime-mc.el (mime-mc-pgp50-process-region,
193         mime-mc-gpg-process-region): Deactivate passwd if detecting the
194         value of `micalg' is failed and `mc-passwd-timeout' is nil; remove
195         useless `progn's.
196         (mime-mc-comment-alist, mime-mc-omit-micalg,
197         mime-mc-shell-file-name): Change the customization group to
198         `mime-mc'.
199         (mime-mc): New group for customization.
200
201 1999-04-14  Katsumi Yamaoka   <yamaoka@jpl.org>
202
203         * mime-mc.el (mime-mc-pgp50-sign-region, mime-mc-gpg-sign-region):
204         Return nil if an erorr has occurred during detecting the value of
205         `micalg'.
206         (mime-mc-pgp50-process-region, mime-mc-gpg-process-region): Don't
207         signal an error. Return non-nil if success, otherwise nil with
208         error message.
209
210         * mime-edit.el (mime-edit-translate-buffer): Do `undo-boundary'
211         before translating.
212
213 1999-04-13  Katsumi Yamaoka   <yamaoka@jpl.org>
214
215         * mime-mc.el (mime-mc-pgp50-sign-region, mime-mc-gpg-sign-region):
216         Don't deactivate passwd during detecting the value of `micalg' even
217         if `mc-passwd-timeout' is set to nil.
218         (mime-mc-gpg-process-region): Print this function name for
219         debugging.
220
221 1999-04-12  Katsumi Yamaoka   <yamaoka@jpl.org>
222
223         * mime-pgp.el (mime-pgp-check-signature): Return nil if neither bad
224         nor good.
225
226 1999-04-09  Katsumi Yamaoka   <yamaoka@jpl.org>
227
228         * mime-mc.el (mime-mc-pgp-encrypt-region, mime-mc-pgp-sign-region,
229         mime-mc-process-region, mime-mc-pgp50-encrypt-region,
230         mime-mc-pgp50-sign-region, mime-mc-pgp50-process-region,
231         mime-mc-gpg-encrypt-region, mime-mc-gpg-sign-region,
232         mime-mc-gpg-process-region, mime-mc-insert-public-key): Identify
233         the version of SEMI as a comment field of ASCII armor.
234         (mime-mc-replace-comment-field): New function.
235         (mime-mc-comment): New macro.
236         (mime-mc-comment-alist): New user option.
237         (TopLevel): Require `mime-def'.
238
239 1999-04-08  Katsumi Yamaoka   <yamaoka@jpl.org>
240
241         * mime-mc.el (mime-mc-pgp-sign-region): Omit the micalg parameter
242         if the value of `mime-mc-omit-micalg' is non-nil.
243         (mime-mc-pgp50-sign-region, mime-mc-gpg-sign-region): Detect and
244         cache the value of message integrity check algorithm before signing
245         and use it for the micalg parameter if the value of
246         `mime-mc-omit-micalg' is nil.
247         (mime-mc-gpg-process-region): Show boundary in
248         `mc-gpg-debug-buffer'.
249         (mime-mc-pgp-process-region, mime-mc-pgp50-process-region,
250         mime-mc-gpg-process-region): Add doc string.
251         (mime-mc-micalg-alist): New variable.
252         (mime-mc-omit-micalg): New user option.
253         (TopLevel): Require `alist' and `std11'.
254
255         * mime-pgp.el (TopLevel): Add comment that this module is based on
256         draft-yamamoto-openpgp-mime-00.txt (OpenPGP/MIME) as well.
257
258 1999-04-06  Katsumi Yamaoka   <yamaoka@jpl.org>
259
260         * mime-pgp.el (mime-pgp-bad-signature-post-function-pgp50-us): New
261         function.
262         (mime-verify-application/pgp-signature): Say "Checking signature..."
263         before verifying; say "Can't check signature" if public key is not
264         available.
265         (mime-pgp-parse-verify-error): Goto beginning of buffer, eval forms
266         and set window start.
267         (mime-pgp-parse-verify-error-for-pgp): Use it
268         (mime-pgp-parse-verify-error-for-pgp50): Use it.
269         (mime-pgp-parse-verify-error-for-gpg): Use it.
270         (mime-pgp-check-signature): Rewrite for detecting "BAD signature".
271         (mime-pgp-bad-signature-post-function): New macro.
272         (mime-pgp-bad-signature-regexp): New macro.
273         (mime-pgp-bad-signature-regexp-alist): New user option.
274
275         * mime-ui-en.texi, mime-ui-ja.texi: Sync up with .sgml files.
276         * mime-ui-en.sgml, mime-ui-ja.sgml (mime-mc-setversion): Use <var>,
277         </var> token in doc string.
278
279 1999-04-06  Keiichi Suzuki  <keiichi@nanap.org>
280
281         * mime-pgp.el (mime-view-application/pgp): Support PGP5.X and
282         GnuPG format.
283
284 1999-04-05  Katsumi Yamaoka   <yamaoka@jpl.org>
285
286         * mime-pgp.el (mime-pgp-parse-verify-error): Use
287         `with-current-buffer' instead of `save-current-buffer'.
288         (mime-pgp-check-signature): Use `with-current-buffer' instead of
289         `save-current-buffer'; add comment about PGP 5.0i.
290