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