]>
Commit | Line | Data |
---|---|---|
81a6c781 | 1 | |
f1c236f8 | 2 | OpenSSL CHANGES |
651d0aff RE |
3 | _______________ |
4 | ||
a9d2bc49 | 5 | Changes between 0.9.6 and 0.9.7 [xx XXX 2001] |
a43cf9fa | 6 | |
e9ad0d2c | 7 | OpenSSL 0.9.6a/0.9.6b (bugfix releases, 5 Apr 2001 and 9 July 2001) |
e3fefbfd | 8 | and OpenSSL 0.9.7 were developed in parallel, based on OpenSSL 0.9.6. |
e9ad0d2c | 9 | |
a9d2bc49 | 10 | Change log entries are tagged as follows: |
daba492c BM |
11 | -) applies to 0.9.6a/0.9.6b/0.9.6c only |
12 | *) applies to 0.9.6a/0.9.6b/0.9.6c and 0.9.7 | |
a9d2bc49 BM |
13 | +) applies to 0.9.7 only |
14 | ||
f3e24bad DSH |
15 | *) Only add signing time to PKCS7 structures if it is not already present. |
16 | [Steve Henson] | |
17 | ||
35e25255 BM |
18 | *) Fix crypto/objects/objects.h: "ld-ce" should be "id-ce", |
19 | OBJ_ld_ce should be OBJ_id_ce. | |
20 | Also some ip-pda OIDs in crypto/objects/objects.txt were | |
21 | incorrect (cf. RFC 3039). | |
22 | [Matt Cooper, Frederic Giudicelli, Bodo Moeller] | |
23 | ||
21a85f19 DSH |
24 | +) Add option to output public keys in req command. |
25 | [Massimiliano Pala madwolf@openca.org] | |
26 | ||
883b0c22 BM |
27 | *) Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid() |
28 | returns early because it has nothing to do. | |
29 | [Andy Schneider <andy.schneider@bjss.co.uk>] | |
30 | ||
31 | *) [In 0.9.6c-engine and 0.9.7 release:] | |
32 | Fix mutex callback return values in crypto/engine/hw_ncipher.c. | |
33 | [Andy Schneider <andy.schneider@bjss.co.uk>] | |
34 | ||
898f856c BM |
35 | -) [In 0.9.6c-engine release:] |
36 | Add support for Cryptographic Appliance's keyserver technology. | |
37 | (Use engine 'keyclient') | |
38 | [Cryptographic Appliances and Geoff Thorpe] | |
39 | ||
1d4581c2 BM |
40 | *) Add a configuration entry for OS/390 Unix. The C compiler 'c89' |
41 | is called via tools/c89.sh because arguments have to be | |
42 | rearranged (all '-L' options must appear before the first object | |
43 | modules). | |
44 | [Richard Shapiro <rshapiro@abinitio.com>] | |
45 | ||
76c4336c BM |
46 | +) Use wNAFs in EC_POINTs_mul() for improved efficiency |
47 | (up to about 10% better than before for P-192 and P-224). | |
3ba1f111 BM |
48 | [Bodo Moeller] |
49 | ||
83978bd3 BM |
50 | -) [In 0.9.6c-engine release:] |
51 | Add support for Broadcom crypto accelerator cards, backported | |
52 | from 0.9.7. | |
53 | [Broadcom, Nalin Dahyabhai <nalin@redhat.com>, Mark Cox] | |
54 | ||
55 | -) [In 0.9.6c-engine release:] | |
56 | Add support for SureWare crypto accelerator cards from | |
57 | Baltimore Technologies. (Use engine 'sureware') | |
58 | [Baltimore Technologies and Mark Cox] | |
59 | ||
60 | -) [In 0.9.6c-engine release:] | |
61 | Add support for crypto accelerator cards from Accelerated | |
62 | Encryption Processing, www.aep.ie. (Use engine 'aep') | |
63 | [AEP Inc. and Mark Cox] | |
64 | ||
c5571db0 BM |
65 | *) Add a configuration entry for gcc on UnixWare. |
66 | [Gary Benson <gbenson@redhat.com>] | |
67 | ||
7aa983c6 BM |
68 | +) New functions/macros |
69 | ||
70 | SSL_CTX_set_msg_callback(ctx, cb) | |
71 | SSL_CTX_set_msg_callback_arg(ctx, arg) | |
72 | SSL_set_msg_callback(ssl, cb) | |
73 | SSL_set_msg_callback_arg(ssl, arg) | |
74 | ||
75 | to request calling a callback function | |
76 | ||
77 | void cb(int write_p, int version, int content_type, | |
78 | const void *buf, size_t len, SSL *ssl, void *arg) | |
79 | ||
80 | whenever a protocol message has been completely received | |
81 | (write_p == 0) or sent (write_p == 1). Here 'version' is the | |
82 | protocol version according to which the SSL library interprets | |
83 | the current protocol message (SSL2_VERSION, SSL3_VERSION, or | |
84 | TLS1_VERSION). 'content_type' is 0 in the case of SSL 2.0, or | |
85 | the content type as defined in the SSL 3.0/TLS 1.0 protocol | |
86 | specification (change_cipher_spec(20), alert(21), handshake(22)). | |
87 | 'buf' and 'len' point to the actual message, 'ssl' to the | |
88 | SSL object, and 'arg' is the application-defined value set by | |
89 | SSL[_CTX]_set_msg_callback_arg(). | |
90 | ||
91 | 'openssl s_client' and 'openssl s_server' have new '-msg' options | |
92 | to enable a callback that displays all protocol messages. | |
93 | [Bodo Moeller] | |
94 | ||
95 | *) Change ssl/s2_clnt.c and ssl/s2_srvr.c so that received handshake | |
96 | messages are stored in a single piece (fixed-length part and | |
97 | variable-length part combined) and fix various bugs found on the way. | |
98 | [Bodo Moeller] | |
99 | ||
a7b42009 RL |
100 | +) Change the shared library support so shared libraries are built as |
101 | soon as the corresponding static library is finished, and thereby get | |
102 | openssl and the test programs linked against the shared library. | |
103 | This still only happens when the keyword "shard" has been given to | |
104 | the configuration scripts. | |
105 | ||
106 | NOTE: shared library support is still an experimental thing, and | |
107 | backward binary compatibility is still not guaranteed. | |
108 | ["Maciej W. Rozycki" <macro@ds2.pg.gda.pl> and Richard Levitte] | |
109 | ||
7d5b04db DSH |
110 | +) Add support for Subject Information Access extension. |
111 | [Peter Sylvester <Peter.Sylvester@EdelWeb.fr>] | |
112 | ||
48b0cf8b BM |
113 | +) Make BUF_MEM_grow() behaviour more consistent: Initialise to zero |
114 | additional bytes when new memory had to be allocated, not just | |
115 | when reusing an existing buffer. | |
116 | [Bodo Moeller] | |
117 | ||
c602e7f4 BM |
118 | *) Disable caching in BIO_gethostbyname(), directly use gethostbyname() |
119 | instead. BIO_gethostbyname() does not know what timeouts are | |
48b0cf8b | 120 | appropriate, so entries would stay in cache even when they have |
c602e7f4 BM |
121 | become invalid. |
122 | [Bodo Moeller; problem pointed out by Rich Salz <rsalz@zolera.com> | |
123 | ||
1fc6d41b DSH |
124 | +) New command line and configuration option 'utf8' for the req command. |
125 | This allows field values to be specified as UTF8 strings. | |
126 | [Steve Henson] | |
127 | ||
0e211563 BL |
128 | +) Add -multi and -mr options to "openssl speed" - giving multiple parallel |
129 | runs for the former and machine-readable output for the latter. | |
130 | [Ben Laurie] | |
131 | ||
89da653f BM |
132 | +) Add '-noemailDN' option to 'openssl ca'. This prevents inclusion |
133 | of the e-mail address in the DN (i.e., it will go into a certificate | |
134 | extension only). The new configuration file option 'email_in_dn = no' | |
135 | has the same effect. | |
136 | [Massimiliano Pala madwolf@openca.org] | |
137 | ||
ba1c6022 BM |
138 | *) Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when |
139 | faced with a pathologically small ClientHello fragment that does | |
140 | not contain client_version: Instead of aborting with an error, | |
141 | simply choose the highest available protocol version (i.e., | |
142 | TLS 1.0 unless it is disabled). In practice, ClientHello | |
143 | messages are never sent like this, but this change gives us | |
144 | strictly correct behaviour at least for TLS. | |
145 | [Bodo Moeller] | |
146 | ||
c2e4f17c RL |
147 | +) Change all functions with names starting with des_ to be starting |
148 | with DES_ instead. This because there are increasing clashes with | |
149 | libdes and other des libraries that are currently used by other | |
150 | projects. The old libdes interface is provided, as well as crypt(), | |
151 | if openssl/des_old.h is included. Note that crypt() is no longer | |
152 | declared in openssl/des.h. | |
153 | ||
154 | NOTE: This is a major break of an old API into a new one. Software | |
155 | authors are encouraged to switch to the DES_ style functions. Some | |
156 | time in the future, des_old.h and the libdes compatibility functions | |
157 | will be completely removed. | |
158 | [Richard Levitte] | |
159 | ||
979689aa BM |
160 | *) Fix SSL handshake functions and SSL_clear() such that SSL_clear() |
161 | never resets s->method to s->ctx->method when called from within | |
162 | one of the SSL handshake functions. | |
163 | [Bodo Moeller; problem pointed out by Niko Baric] | |
164 | ||
f1558bb4 DSH |
165 | +) Test for certificates which contain unsupported critical extensions. |
166 | If such a certificate is found during a verify operation it is | |
167 | rejected by default: this behaviour can be overridden by either | |
168 | handling the new error X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION or | |
169 | by setting the verify flag X509_V_FLAG_IGNORE_CRITICAL. A new function | |
170 | X509_supported_extension() has also been added which returns 1 if a | |
171 | particular extension is supported. | |
172 | [Steve Henson] | |
173 | ||
a661b653 BM |
174 | *) In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert |
175 | (sent using the client's version number) if client_version is | |
176 | smaller than the protocol version in use. Also change | |
177 | ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if | |
178 | the client demanded SSL 3.0 but only TLS 1.0 is enabled; then | |
179 | the client will at least see that alert. | |
180 | [Bodo Moeller] | |
181 | ||
581f1c84 DSH |
182 | +) Modify the behaviour of EVP cipher functions in similar way to digests |
183 | to retain compatibility with existing code. | |
184 | [Steve Henson] | |
185 | ||
20d2186c | 186 | +) Modify the behaviour of EVP_DigestInit() and EVP_DigestFinal() to retain |
50d194af DSH |
187 | compatibility with existing code. In particular the 'ctx' parameter does |
188 | not have to be to be initialized before the call to EVP_DigestInit() and | |
189 | it is tidied up after a call to EVP_DigestFinal(). New function | |
190 | EVP_DigestFinal_ex() which does not tidy up the ctx. Similarly function | |
191 | EVP_MD_CTX_copy() changed to not require the destination to be | |
192 | initialized valid and new function EVP_MD_CTX_copy_ex() added which | |
193 | requires the destination to be valid. | |
194 | ||
195 | Modify all the OpenSSL digest calls to use EVP_DigestInit_ex(), | |
196 | EVP_DigestFinal_ex() and EVP_MD_CTX_copy_ex(). | |
20d2186c DSH |
197 | [Steve Henson] |
198 | ||
48948d53 BM |
199 | +) Change ssl3_get_message (ssl/s3_both.c) and the functions using it |
200 | so that complete 'Handshake' protocol structures are kept in memory | |
201 | instead of overwriting 'msg_type' and 'length' with 'body' data. | |
202 | [Bodo Moeller] | |
203 | ||
204 | *) Fix ssl3_get_message (ssl/s3_both.c) to handle message fragmentation | |
205 | correctly. | |
206 | [Bodo Moeller] | |
207 | ||
285046ec RL |
208 | +) Add an implementation of SSL_add_dir_cert_subjects_to_stack for Win32. |
209 | [Massimo Santin via Richard Levitte] | |
210 | ||
07cee702 GT |
211 | +) Major restructuring to the underlying ENGINE code. This includes |
212 | reduction of linker bloat, separation of pure "ENGINE" manipulation | |
213 | (initialisation, etc) from functionality dealing with implementations | |
214 | of specific crypto iterfaces. This change also introduces integrated | |
215 | support for symmetric ciphers and digest implementations - so ENGINEs | |
216 | can now accelerate these by providing EVP_CIPHER and EVP_MD | |
217 | implementations of their own. This is detailed in crypto/engine/README | |
218 | as it couldn't be adequately described here. However, there are a few | |
219 | API changes worth noting - some RSA, DSA, DH, and RAND functions that | |
220 | were changed in the original introduction of ENGINE code have now | |
221 | reverted back - the hooking from this code to ENGINE is now a good | |
222 | deal more passive and at run-time, operations deal directly with | |
223 | RSA_METHODs, DSA_METHODs (etc) as they did before, rather than | |
224 | dereferencing through an ENGINE pointer any more. Also, the ENGINE | |
225 | functions dealing with BN_MOD_EXP[_CRT] handlers have been removed - | |
226 | they were not being used by the framework as there is no concept of a | |
227 | BIGNUM_METHOD and they could not be generalised to the new | |
228 | 'ENGINE_TABLE' mechanism that underlies the new code. Similarly, | |
229 | ENGINE_cpy() has been removed as it cannot be consistently defined in | |
230 | the new code. | |
231 | [Geoff Thorpe] | |
232 | ||
d46c1a81 DSH |
233 | +) Change ASN1_GENERALIZEDTIME_check() to allow fractional seconds. |
234 | [Steve Henson] | |
235 | ||
89eeccac RL |
236 | +) Change mkdef.pl to sort symbols that get the same entry number, |
237 | and make sure the automatically generated functions ERR_load_* | |
238 | become part of libeay.num as well. | |
239 | [Richard Levitte] | |
240 | ||
3b0b5aba BM |
241 | *) Avoid infinite loop in ssl3_get_message (ssl/s3_both.c) if a |
242 | client receives HelloRequest while in a handshake. | |
243 | [Bodo Moeller; bug noticed by Andy Schneider <andy.schneider@bjss.co.uk>] | |
244 | ||
6b0e9fac BM |
245 | +) New function SSL_renegotiate_pending(). This returns true once |
246 | renegotiation has been requested (either SSL_renegotiate() call | |
247 | or HelloRequest/ClientHello receveived from the peer) and becomes | |
248 | false once a handshake has been completed. | |
249 | (For servers, SSL_renegotiate() followed by SSL_do_handshake() | |
250 | sends a HelloRequest, but does not ensure that a handshake takes | |
251 | place. SSL_renegotiate_pending() is useful for checking if the | |
252 | client has followed the request.) | |
253 | [Bodo Moeller] | |
254 | ||
255 | +) New SSL option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION. | |
256 | By default, clients may request session resumption even during | |
257 | renegotiation (if session ID contexts permit); with this option, | |
258 | session resumption is possible only in the first handshake. | |
259 | [Bodo Moeller] | |
260 | ||
2260ad21 BM |
261 | *) Bugfix in ssl3_accept (ssl/s3_srvr.c): Case SSL3_ST_SW_HELLO_REQ_C |
262 | should end in 'break', not 'goto end' which circuments various | |
b49124f6 BM |
263 | cleanups done in state SSL_ST_OK. But session related stuff |
264 | must be disabled for SSL_ST_OK in the case that we just sent a | |
265 | HelloRequest. | |
2260ad21 BM |
266 | |
267 | Also avoid some overhead by not calling ssl_init_wbio_buffer() | |
268 | before just sending a HelloRequest. | |
b49124f6 | 269 | [Bodo Moeller, Eric Rescorla <ekr@rtfm.com>] |
8e2f6b79 | 270 | |
ee60d9fb BM |
271 | *) Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don't |
272 | reveal whether illegal block cipher padding was found or a MAC | |
273 | verification error occured. (Neither SSLerr() codes nor alerts | |
274 | are directly visible to potential attackers, but the information | |
275 | may leak via logfiles.) | |
276 | ||
277 | Similar changes are not required for the SSL 2.0 implementation | |
278 | because the number of padding bytes is sent in clear for SSL 2.0, | |
279 | and the extra bytes are just ignored. However ssl/s2_pkt.c | |
280 | failed to verify that the purported number of padding bytes is in | |
281 | the legal range. | |
282 | [Bodo Moeller] | |
283 | ||
96bd6f73 DSH |
284 | +) Add some demos for certificate and certificate request creation. |
285 | [Steve Henson] | |
286 | ||
c0f5dd07 LJ |
287 | +) Make maximum certificate chain size accepted from the peer application |
288 | settable (SSL*_get/set_max_cert_list()), as proposed by | |
289 | "Douglas E. Engert" <deengert@anl.gov>. | |
290 | [Lutz Jaenicke] | |
291 | ||
b26ca340 BM |
292 | +) Add support for shared libraries for Unixware-7 |
293 | (Boyd Lynn Gerber <gerberb@zenez.com>). | |
6c36f7a9 LJ |
294 | [Lutz Jaenicke] |
295 | ||
b26ca340 BM |
296 | *) Add OpenUNIX-8 support including shared libraries |
297 | (Boyd Lynn Gerber <gerberb@zenez.com>). | |
c5571db0 BM |
298 | [Lutz Jaenicke] |
299 | ||
a9ed4da8 BM |
300 | *) Improve RSA_padding_check_PKCS1_OAEP() check again to avoid |
301 | 'wristwatch attack' using huge encoding parameters (cf. | |
302 | James H. Manger's CRYPTO 2001 paper). Note that the | |
303 | RSA_PKCS1_OAEP_PADDING case of RSA_private_decrypt() does not use | |
e3fefbfd | 304 | encoding parameters and hence was not vulnerable. |
a9ed4da8 BM |
305 | [Bodo Moeller] |
306 | ||
4450107a | 307 | +) Add a "destroy" handler to ENGINEs that allows structural cleanup to |
908efd3b GT |
308 | be done prior to destruction. Use this to unload error strings from |
309 | ENGINEs that load their own error strings. NB: This adds two new API | |
310 | functions to "get" and "set" this destroy handler in an ENGINE. | |
a9ed4da8 | 311 | [Geoff Thorpe] |
908efd3b | 312 | |
4450107a | 313 | +) Alter all existing ENGINE implementations (except "openssl" and |
541814c4 GT |
314 | "openbsd") to dynamically instantiate their own error strings. This |
315 | makes them more flexible to be built both as statically-linked ENGINEs | |
316 | and self-contained shared-libraries loadable via the "dynamic" ENGINE. | |
317 | Also, add stub code to each that makes building them as self-contained | |
318 | shared-libraries easier (see README.ENGINE). | |
319 | [Geoff Thorpe] | |
320 | ||
4450107a | 321 | +) Add a "dynamic" ENGINE that provides a mechanism for binding ENGINE |
541814c4 GT |
322 | implementations into applications that are completely implemented in |
323 | self-contained shared-libraries. The "dynamic" ENGINE exposes control | |
324 | commands that can be used to configure what shared-library to load and | |
325 | to control aspects of the way it is handled. Also, made an update to | |
326 | the README.ENGINE file that brings its information up-to-date and | |
327 | provides some information and instructions on the "dynamic" ENGINE | |
328 | (ie. how to use it, how to build "dynamic"-loadable ENGINEs, etc). | |
329 | [Geoff Thorpe] | |
330 | ||
d98a4b73 UM |
331 | *) BN_sqr() bug fix. |
332 |