]> git.ipfire.org Git - thirdparty/openssl.git/blame - CHANGES.md
Document EVP_PKEY_set1_encoded_public_key()
[thirdparty/openssl.git] / CHANGES.md
CommitLineData
5f8e6c50
DMSP
1OpenSSL CHANGES
2===============
3
4This is a high-level summary of the most important changes.
5For a full list of changes, see the [git commit log][log] and
6pick the appropriate release branch.
7
8 [log]: https://github.com/openssl/openssl/commits/
9
44652c16
DMSP
10OpenSSL Releases
11----------------
12
13 - [OpenSSL 3.0](#openssl-30)
14 - [OpenSSL 1.1.1](#openssl-111)
15 - [OpenSSL 1.1.0](#openssl-110)
16 - [OpenSSL 1.0.2](#openssl-102)
17 - [OpenSSL 1.0.1](#openssl-101)
18 - [OpenSSL 1.0.0](#openssl-100)
19 - [OpenSSL 0.9.x](#openssl-09x)
20
21OpenSSL 3.0
22-----------
23
e8dca211 24### Changes between 1.1.1 and 3.0 [xx XXX xxxx]
44652c16 25
372e72b1
MC
26 * The security callback, which can be customised by application code, supports
27 the security operation SSL_SECOP_TMP_DH. This is defined to take an EVP_PKEY
28 in the "other" parameter. In most places this is what is passed. All these
29 places occur server side. However there was one client side call of this
30 security operation and it passed a DH object instead. This is incorrect
31 according to the definition of SSL_SECOP_TMP_DH, and is inconsistent with all
32 of the other locations. Therefore this client side call has been changed to
33 pass an EVP_PKEY instead.
34
35 *Matt Caswell*
36
db554ae1
JM
37 * Add PKCS7_get_octet_string() and PKCS7_type_is_other() to the public
38 interface. Their functionality remains unchanged.
39
40 *Jordan Montgomery*
41
f4bd5105
P
42 * Added new option for 'openssl list', '-providers', which will display the
43 list of loaded providers, their names, version and status. It optionally
44 displays their gettable parameters.
45
46 *Paul Dale*
47
14711fff
RL
48 * Deprecated EVP_PKEY_set_alias_type(). This function was previously
49 needed as a workaround to recognise SM2 keys. With OpenSSL 3.0, this key
50 type is internally recognised so the workaround is no longer needed.
51
52 Functionality is still retained as it is, but will only work with
53 EVP_PKEYs with a legacy internal key.
54
55 *Richard Levitte*
56
3786d748 57 * Deprecated EVP_PKEY_CTX_set_rsa_keygen_pubexp() & introduced
58 EVP_PKEY_CTX_set1_rsa_keygen_pubexp(), which is now preferred.
59
60 *Jeremy Walch*
61
31605414
MC
62 * Changed all "STACK" functions to be macros instead of inline functions. Macro
63 parameters are still checked for type safety at compile time via helper
64 inline functions.
65
66 *Matt Caswell*
67
7d615e21
P
68 * Remove the RAND_DRBG API
69
70 The RAND_DRBG API did not fit well into the new provider concept as
71 implemented by EVP_RAND and EVP_RAND_CTX. The main reason is that the
72 RAND_DRBG API is a mixture of 'front end' and 'back end' API calls
73 and some of its API calls are rather low-level. This holds in particular
74 for the callback mechanism (RAND_DRBG_set_callbacks()).
75
76 Adding a compatibility layer to continue supporting the RAND_DRBG API as
77 a legacy API for a regular deprecation period turned out to come at the
78 price of complicating the new provider API unnecessarily. Since the
79 RAND_DRBG API exists only since version 1.1.1, it was decided by the OMC
80 to drop it entirely.
81
82 *Paul Dale and Matthias St. Pierre*
83
37d898df
DW
84 * Allow SSL_set1_host() and SSL_add1_host() to take IP literal addresses
85 as well as actual hostnames.
86
87 *David Woodhouse*
88
77174598
VD
89 * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently
90 ignore TLS protocol version bounds when configuring DTLS-based contexts, and
91 conversely, silently ignore DTLS protocol version bounds when configuring
92 TLS-based contexts. The commands can be repeated to set bounds of both
93 types. The same applies with the corresponding "min_protocol" and
94 "max_protocol" command-line switches, in case some application uses both TLS
95 and DTLS.
96
97 SSL_CTX instances that are created for a fixed protocol version (e.g.
98 TLSv1_server_method()) also silently ignore version bounds. Previously
99 attempts to apply bounds to these protocol versions would result in an
100 error. Now only the "version-flexible" SSL_CTX instances are subject to
101 limits in configuration files in command-line options.
102
103 *Viktor Dukhovni*
104
8dab4de5
RL
105 * Deprecated the `ENGINE` API. Engines should be replaced with providers
106 going forward.
107
108 *Paul Dale*
109
110 * Reworked the recorded ERR codes to make better space for system errors.
111 To distinguish them, the macro `ERR_SYSTEM_ERROR()` indicates if the
112 given code is a system error (true) or an OpenSSL error (false).
113
114 *Richard Levitte*
115
116 * Reworked the test perl framework to better allow parallel testing.
117
118 *Nicola Tuveri and David von Oheimb*
119
7cc355c2
SL
120 * Added ciphertext stealing algorithms AES-128-CBC-CTS, AES-192-CBC-CTS and
121 AES-256-CBC-CTS to the providers. CS1, CS2 and CS3 variants are supported.
122
123 *Shane Lontis*
124
16b0e0fc
RL
125 * 'Configure' has been changed to figure out the configuration target if
126 none is given on the command line. Consequently, the 'config' script is
127 now only a mere wrapper. All documentation is changed to only mention
128 'Configure'.
129
130 *Rich Salz and Richard Levitte*
131
b4250010
DMSP
132 * Added a library context `OSSL_LIB_CTX` that applications as well as
133 other libraries can use to form a separate context within which
134 libcrypto operations are performed.
3bd65f9b
RL
135
136 There are two ways this can be used:
137
138 - Directly, by passing a library context to functions that take
139 such an argument, such as `EVP_CIPHER_fetch` and similar algorithm
140 fetching functions.
141 - Indirectly, by creating a new library context and then assigning
b4250010 142 it as the new default, with `OSSL_LIB_CTX_set0_default`.
3bd65f9b 143
b4250010
DMSP
144 All public OpenSSL functions that take an `OSSL_LIB_CTX` pointer,
145 apart from the functions directly related to `OSSL_LIB_CTX`, accept
3bd65f9b
RL
146 NULL to indicate that the default library context should be used.
147
148 Library code that changes the default library context using
b4250010 149 `OSSL_LIB_CTX_set0_default` should take care to restore it with a
3bd65f9b
RL
150 second call before returning to the caller.
151
b4250010
DMSP
152 _(Note: the library context was initially called `OPENSSL_CTX` and
153 renamed to `OSSL_LIB_CTX` in version 3.0.0 alpha7.)_
154
3bd65f9b
RL
155 *Richard Levitte*
156
11d3235e
TM
157 * Handshake now fails if Extended Master Secret extension is dropped
158 on renegotiation.
159
160 *Tomas Mraz*
161
eca47139
RL
162 * Dropped interactive mode from the 'openssl' program. From now on,
163 the `openssl` command without arguments is equivalent to `openssl
164 help`.
165
166 *Richard Levitte*
167
987e3a0e
DDO
168 * Renamed EVP_PKEY_cmp() to EVP_PKEY_eq() and
169 EVP_PKEY_cmp_parameters() to EVP_PKEY_parameters_eq().
170 While the old function names have been retained for backward compatibility
171 they should not be used in new developments
172 because their return values are confusing: Unlike other `_cmp()` functions
173 they do not return 0 in case their arguments are equal.
174
175 *David von Oheimb*
176
23ccae80
BB
177 * Deprecated EC_METHOD_get_field_type(). Applications should switch to
178 EC_GROUP_get_field_type().
179
180 *Billy Bob Brumley*
181
182 * Deprecated EC_GFp_simple_method(), EC_GFp_mont_method(),
183 EC_GF2m_simple_method(), EC_GFp_nist_method(), EC_GFp_nistp224_method()
184 EC_GFp_nistp256_method(), and EC_GFp_nistp521_method().
185 Applications should rely on the library automatically assigning a suitable
186 EC_METHOD internally upon EC_GROUP construction.
187
188 *Billy Bob Brumley*
189
190 * Deprecated EC_GROUP_new(), EC_GROUP_method_of(), and EC_POINT_method_of().
191 EC_METHOD is now an internal-only concept and a suitable EC_METHOD is
192 assigned internally without application intervention.
193 Users of EC_GROUP_new() should switch to a different suitable constructor.
194
195 *Billy Bob Brumley*
196
9e3c510b
F
197 * Add CAdES-BES signature verification support, mostly derived
198 from ESSCertIDv2 TS (RFC 5816) contribution by Marek Klein.
199
200 *Filipe Raimundo da Silva*
201
202 * Add CAdES-BES signature scheme and attributes support (RFC 5126) to CMS API.
203
204 *Antonio Iacono*
205
c2f2db9b
BB
206 * Deprecated EC_POINT_make_affine() and EC_POINTs_make_affine(). These
207 functions are not widely used and now OpenSSL automatically perform this
208 conversion when needed.
6b4eb933 209
c2f2db9b
BB
210 *Billy Bob Brumley*
211
212 * Deprecated EC_GROUP_precompute_mult(), EC_GROUP_have_precompute_mult(), and
213 EC_KEY_precompute_mult(). These functions are not widely used and
214 applications should instead switch to named curves which OpenSSL has
215 hardcoded lookup tables for.
216
217 *Billy Bob Brumley*
6b4eb933 218
4fcd15c1
BB
219 * Deprecated EC_POINTs_mul(). This function is not widely used and applications
220 should instead use the L<EC_POINT_mul(3)> function.
221
222 *Billy Bob Brumley*
223
885a2a39 224 * Removed FIPS_mode() and FIPS_mode_set(). These functions are legacy API's
31b069ec
SL
225 that are not applicable to the new provider model. Applications should
226 instead use EVP_default_properties_is_fips_enabled() and
227 EVP_default_properties_enable_fips().
228
229 *Shane Lontis*
230
09b90e0e
DB
231 * The SSL option SSL_OP_IGNORE_UNEXPECTED_EOF is introduced. If that option
232 is set, an unexpected EOF is ignored, it pretends a close notify was received
233 instead and so the returned error becomes SSL_ERROR_ZERO_RETURN.
234
235 *Dmitry Belyavskiy*
236
07caec83
BB
237 * Deprecated EC_POINT_set_Jprojective_coordinates_GFp() and
238 EC_POINT_get_Jprojective_coordinates_GFp(). These functions are not widely
239 used and applications should instead use the
240 L<EC_POINT_set_affine_coordinates(3)> and
241 L<EC_POINT_get_affine_coordinates(3)> functions.
242
243 *Billy Bob Brumley*
244
be19d3ca
P
245 * Added OSSL_PARAM_BLD to the public interface. This allows OSSL_PARAM
246 arrays to be more easily constructed via a series of utility functions.
247 Create a parameter builder using OSSL_PARAM_BLD_new(), add parameters using
248 the various push functions and finally convert to a passable OSSL_PARAM
249 array using OSSL_PARAM_BLD_to_param().
250
ccb8f0c8 251 *Paul Dale*
be19d3ca 252
aba03ae5
KR
253 * The security strength of SHA1 and MD5 based signatures in TLS has been
254 reduced. This results in SSL 3, TLS 1.0, TLS 1.1 and DTLS 1.0 no longer
255 working at the default security level of 1 and instead requires security
256 level 0. The security level can be changed either using the cipher string
257 with @SECLEVEL, or calling SSL_CTX_set_security_level().
258
259 *Kurt Roeckx*
260
acb90ba8
RL
261 * EVP_PKEY_get0_RSA(), EVP_PKEY_get0_DSA(), EVP_PKEY_get0_DH(), and
262 EVP_PKEY_get0_EC_KEY() can now handle EVP_PKEYs with provider side
263 internal keys, if they correspond to one of those built in types.
264
265 *Richard Levitte*
266
8243d8d1
RL
267 * Added EVP_PKEY_set_type_by_keymgmt(), to initialise an EVP_PKEY to
268 contain a provider side internal key.
269
270 *Richard Levitte*
271
ccb8f0c8 272 * ASN1_verify(), ASN1_digest() and ASN1_sign() have been deprecated.
12d99aac 273 They are old functions that we don't use, and that you could disable with
ccb8f0c8 274 the macro NO_ASN1_OLD. This goes all the way back to OpenSSL 0.9.7.
12d99aac
RL
275
276 *Richard Levitte*
c50604eb 277
036cbb6b 278 * Project text documents not yet having a proper file name extension
1dc1ea18
DDO
279 (`HACKING`, `LICENSE`, `NOTES*`, `README*`, `VERSION`) have been renamed to
280 `*.md` as far as reasonable, else `*.txt`, for better use with file managers.
036cbb6b
DDO
281
282 *David von Oheimb*
283
1dc1ea18 284 * The main project documents (README, NEWS, CHANGES, INSTALL, SUPPORT)
c50604eb
DMSP
285 have been converted to Markdown with the goal to produce documents
286 which not only look pretty when viewed online in the browser, but
287 remain well readable inside a plain text editor.
288
289 To achieve this goal, a 'minimalistic' Markdown style has been applied
290 which avoids formatting elements that interfere too much with the
291 reading flow in the text file. For example, it
292
293 * avoids [ATX headings][] and uses [setext headings][] instead
294 (which works for `<h1>` and `<h2>` headings only).
295 * avoids [inline links][] and uses [reference links][] instead.
296 * avoids [fenced code blocks][] and uses [indented code blocks][] instead.
297
298 [ATX headings]: https://github.github.com/gfm/#atx-headings
299 [setext headings]: https://github.github.com/gfm/#setext-headings
300 [inline links]: https://github.github.com/gfm/#inline-link
301 [reference links]: https://github.github.com/gfm/#reference-link
302 [fenced code blocks]: https://github.github.com/gfm/#fenced-code-blocks
303 [indented code blocks]: https://github.github.com/gfm/#indented-code-blocks
304
305 *Matthias St. Pierre*
306
44652c16
DMSP
307 * The test suite is changed to preserve results of each test recipe.
308 A new directory test-runs/ with subdirectories named like the
309 test recipes are created in the build tree for this purpose.
310
311 *Richard Levitte*
312
e7774c28 313 * Added an implementation of CMP and CRMF (RFC 4210, RFC 4211 RFC 6712).
8d9a4d83
DDO
314 This adds crypto/cmp/, crpyto/crmf/, apps/cmp.c, and test/cmp_*.
315 See L<openssl-cmp(1)> and L<OSSL_CMP_exec_IR_ses(3)> as starting points.
e7774c28 316
8d9a4d83 317 *David von Oheimb, Martin Peylo*
e7774c28
DDO
318
319 * Generalized the HTTP client code from crypto/ocsp/ into crpyto/http/.
320 The legacy OCSP-focused and only partly documented API is retained.
321 See L<OSSL_CMP_MSG_http_perform(3)> etc. for details.
322
323 *David von Oheimb*
324
16c6534b
DDO
325 * Added `util/check-format.pl`, a tool for checking adherence to the
326 OpenSSL coding style <https://www.openssl.org/policies/codingstyle.html>.
327 The checks performed are incomplete and yield some false positives.
328 Still the tool should be useful for detecting most typical glitches.
329
330 *David von Oheimb*
331
59131529
DDO
332 * BIO_do_connect and BIO_do_handshake have been extended:
333 If domain name resolution yields multiple IP addresses all of them are tried
334 after connect() failures.
335
336 *David von Oheimb*
337
44652c16
DMSP
338 * All of the low level RSA functions have been deprecated including:
339
588d5d01
P
340 RSA_new_method, RSA_size, RSA_security_bits, RSA_get0_pss_params,
341 RSA_get_version, RSA_get0_engine, RSA_generate_key_ex,
342 RSA_generate_multi_prime_key, RSA_X931_derive_ex, RSA_X931_generate_key_ex,
343 RSA_check_key, RSA_check_key_ex, RSA_public_encrypt, RSA_private_encrypt,
44652c16
DMSP
344 RSA_public_decrypt, RSA_private_decrypt, RSA_set_default_method,
345 RSA_get_default_method, RSA_null_method, RSA_get_method, RSA_set_method,
346 RSA_PKCS1_OpenSSL, RSA_print_fp, RSA_print, RSA_sign, RSA_verify,
588d5d01
P
347 RSA_sign_ASN1_OCTET_STRING, RSA_verify_ASN1_OCTET_STRING, RSA_blinding_on,
348 RSA_blinding_off, RSA_setup_blinding, RSA_padding_add_PKCS1_type_1,
349 RSA_padding_check_PKCS1_type_1, RSA_padding_add_PKCS1_type_2,
350 RSA_padding_check_PKCS1_type_2, PKCS1_MGF1, RSA_padding_add_PKCS1_OAEP,
351 RSA_padding_check_PKCS1_OAEP, RSA_padding_add_PKCS1_OAEP_mgf1,
352 RSA_padding_check_PKCS1_OAEP_mgf1, RSA_padding_add_SSLv23,
353 RSA_padding_check_SSLv23, RSA_padding_add_none, RSA_padding_check_none,
354 RSA_padding_add_X931, RSA_padding_check_X931, RSA_X931_hash_id,
355 RSA_verify_PKCS1_PSS, RSA_padding_add_PKCS1_PSS, RSA_verify_PKCS1_PSS_mgf1,
44652c16
DMSP
356 RSA_padding_add_PKCS1_PSS_mgf1, RSA_set_ex_data, RSA_get_ex_data,
357 RSA_meth_new, RSA_meth_free, RSA_meth_dup, RSA_meth_get0_name,
358 RSA_meth_set1_name, RSA_meth_get_flags, RSA_meth_set_flags,
359 RSA_meth_get0_app_data, RSA_meth_set0_app_data, RSA_meth_get_pub_enc,
360 RSA_meth_set_pub_enc, RSA_meth_get_pub_dec, RSA_meth_set_pub_dec,
361 RSA_meth_get_priv_enc, RSA_meth_set_priv_enc, RSA_meth_get_priv_dec,
362 RSA_meth_set_priv_dec, RSA_meth_get_mod_exp, RSA_meth_set_mod_exp,
363 RSA_meth_get_bn_mod_exp, RSA_meth_set_bn_mod_exp, RSA_meth_get_init,
364 RSA_meth_set_init, RSA_meth_get_finish, RSA_meth_set_finish,
365 RSA_meth_get_sign, RSA_meth_set_sign, RSA_meth_get_verify,
366 RSA_meth_set_verify, RSA_meth_get_keygen, RSA_meth_set_keygen,
367 RSA_meth_get_multi_prime_keygen and RSA_meth_set_multi_prime_keygen.
368
369 Use of these low level functions has been informally discouraged for a long
370 time. Instead applications should use L<EVP_PKEY_encrypt_init(3)>,
371 L<EVP_PKEY_encrypt(3)>, L<EVP_PKEY_decrypt_init(3)> and
372 L<EVP_PKEY_decrypt(3)>.
373
374 *Paul Dale*
375
376 * X509 certificates signed using SHA1 are no longer allowed at security
377 level 1 and above.
378 In TLS/SSL the default security level is 1. It can be set either
379 using the cipher string with @SECLEVEL, or calling
380 SSL_CTX_set_security_level(). If the leaf certificate is signed with SHA-1,
381 a call to SSL_CTX_use_certificate() will fail if the security level is not
382 lowered first.
383 Outside TLS/SSL, the default security level is -1 (effectively 0). It can
384 be set using X509_VERIFY_PARAM_set_auth_level() or using the -auth_level
385 options of the apps.
386
387 *Kurt Roeckx*
388
389 * The command line utilities dhparam, dsa, gendsa and dsaparam have been
b304f856
P
390 modified to use PKEY APIs. These commands are now in maintenance mode
391 and no new features will be added to them.
392
393 *Paul Dale*
394
395 * The command line utility rsautl has been deprecated.
396 Instead use the pkeyutl program.
397
398 *Paul Dale*
399
400 * The command line utilities genrsa and rsa have been modified to use PKEY
10203a34
KR
401 APIs. They now write PKCS#8 keys by default. These commands are now in
402 maintenance mode and no new features will be added to them.
44652c16
DMSP
403
404 *Paul Dale*
405
406 * All of the low level DH functions have been deprecated including:
407
588d5d01
P
408 DH_OpenSSL, DH_set_default_method, DH_get_default_method, DH_set_method,
409 DH_new_method, DH_size, DH_security_bits, DH_get_ex_new_index,
410 DH_set_ex_data, DH_get_ex_data, DH_generate_parameters_ex,
411 DH_check_params_ex, DH_check_ex, DH_check_pub_key_ex,
412 DH_check, DH_check_pub_key, DH_generate_key, DH_compute_key,
413 DH_compute_key_padded, DHparams_print_fp, DHparams_print, DH_get_nid,
414 DH_KDF_X9_42, DH_get0_engine, DH_meth_new, DH_meth_free, DH_meth_dup,
415 DH_meth_get0_name, DH_meth_set1_name, DH_meth_get_flags, DH_meth_set_flags,
416 DH_meth_get0_app_data, DH_meth_set0_app_data, DH_meth_get_generate_key,
417 DH_meth_set_generate_key, DH_meth_get_compute_key, DH_meth_set_compute_key,
418 DH_meth_get_bn_mod_exp, DH_meth_set_bn_mod_exp, DH_meth_get_init,
419 DH_meth_set_init, DH_meth_get_finish, DH_meth_set_finish,
420 DH_meth_get_generate_params and DH_meth_set_generate_params.
44652c16
DMSP
421
422 Use of these low level functions has been informally discouraged for a long
423 time. Instead applications should use L<EVP_PKEY_derive_init(3)>
424 and L<EVP_PKEY_derive(3)>.
425
426 *Paul Dale*
427
428 * All of the low level DSA functions have been deprecated including:
429
430 DSA_do_sign, DSA_do_verify, DSA_OpenSSL, DSA_set_default_method,
588d5d01
P
431 DSA_get_default_method, DSA_set_method, DSA_get_method,
432 DSA_new_method, DSA_size, DSA_security_bits, DSA_sign_setup, DSA_sign,
433 DSA_verify, DSA_get_ex_new_index, DSA_set_ex_data, DSA_get_ex_data,
434 DSA_generate_parameters_ex, DSA_generate_key, DSA_meth_new, DSA_get0_engine,
435 DSA_meth_free, DSA_meth_dup, DSA_meth_get0_name, DSA_meth_set1_name,
436 DSA_meth_get_flags, DSA_meth_set_flags, DSA_meth_get0_app_data,
437 DSA_meth_set0_app_data, DSA_meth_get_sign, DSA_meth_set_sign,
438 DSA_meth_get_sign_setup, DSA_meth_set_sign_setup, DSA_meth_get_verify,
439 DSA_meth_set_verify, DSA_meth_get_mod_exp, DSA_meth_set_mod_exp,
440 DSA_meth_get_bn_mod_exp, DSA_meth_set_bn_mod_exp, DSA_meth_get_init,
441 DSA_meth_set_init, DSA_meth_get_finish, DSA_meth_set_finish,
442 DSA_meth_get_paramgen, DSA_meth_set_paramgen, DSA_meth_get_keygen and
443 DSA_meth_set_keygen.
44652c16
DMSP
444
445 Use of these low level functions has been informally discouraged for a long
446 time. Instead applications should use L<EVP_DigestSignInit_ex(3)>,
447 L<EVP_DigestSignUpdate(3)> and L<EVP_DigestSignFinal(3)>.
448
449 *Paul Dale*
450
451 * Reworked the treatment of EC EVP_PKEYs with the SM2 curve to
452 automatically become EVP_PKEY_SM2 rather than EVP_PKEY_EC.
453 This means that applications don't have to look at the curve NID and
454 `EVP_PKEY_set_alias_type(pkey, EVP_PKEY_SM2)` to get SM2 computations.
455 However, they still can, that EVP_PKEY_set_alias_type() call acts as
456 a no-op when the EVP_PKEY is already of the given type.
457
458 Parameter and key generation is also reworked to make it possible
459 to generate EVP_PKEY_SM2 parameters and keys without having to go
460 through EVP_PKEY_EC generation and then change the EVP_PKEY type.
461 However, code that does the latter will still work as before.
462
463 *Richard Levitte*
464
465 * Deprecated low level ECDH and ECDSA functions. These include:
466
467 ECDH_compute_key, ECDSA_do_sign, ECDSA_do_sign_ex, ECDSA_do_verify,
468 ECDSA_sign_setup, ECDSA_sign, ECDSA_sign_ex, ECDSA_verify and
469 ECDSA_size.
470
471 Use of these low level functions has been informally discouraged for a long
472 time. Instead applications should use the EVP_PKEY_derive(3),
473 EVP_DigestSign(3) and EVP_DigestVerify(3) functions.
474
475 *Paul Dale*
476
477 * Deprecated the EC_KEY_METHOD functions. These include:
478
479 EC_KEY_METHOD_new, EC_KEY_METHOD_free, EC_KEY_METHOD_set_init,
480 EC_KEY_METHOD_set_keygen, EC_KEY_METHOD_set_compute_key,
481 EC_KEY_METHOD_set_sign, EC_KEY_METHOD_set_verify,
482 EC_KEY_METHOD_get_init, EC_KEY_METHOD_get_keygen,
483 EC_KEY_METHOD_get_compute_key, EC_KEY_METHOD_get_sign and
484 EC_KEY_METHOD_get_verify.
485
486 Instead applications and extension writers should use the OSSL_PROVIDER APIs.
487
488 *Paul Dale*
489
490 * Deprecated EVP_PKEY_decrypt_old(), please use EVP_PKEY_decrypt_init()
491 and EVP_PKEY_decrypt() instead.
492 Deprecated EVP_PKEY_encrypt_old(), please use EVP_PKEY_encrypt_init()
493 and EVP_PKEY_encrypt() instead.
494
495 *Richard Levitte*
496
497 * Enhanced the documentation of EVP_PKEY_size(), EVP_PKEY_bits()
498 and EVP_PKEY_security_bits(). Especially EVP_PKEY_size() needed
499 a new formulation to include all the things it can be used for,
500 as well as words of caution.
501
502 *Richard Levitte*
503
504 * The SSL_CTX_set_tlsext_ticket_key_cb(3) function has been deprecated.
505 Instead used the new SSL_CTX_set_tlsext_ticket_key_evp_cb(3) function.
506
507 *Paul Dale*
508
509 * All of the low level HMAC functions have been deprecated including:
510
511 HMAC, HMAC_size, HMAC_CTX_new, HMAC_CTX_reset, HMAC_CTX_free,
512 HMAC_Init_ex, HMAC_Update, HMAC_Final, HMAC_CTX_copy, HMAC_CTX_set_flags
513 and HMAC_CTX_get_md.
514
515 Use of these low level functions has been informally discouraged for a long
865adf97
MC
516 time. Instead applications should use L<EVP_MAC_CTX_new(3)>,
517 L<EVP_MAC_CTX_free(3)>, L<EVP_MAC_init(3)>, L<EVP_MAC_update(3)>
44652c16
DMSP
518 and L<EVP_MAC_final(3)>.
519
520 *Paul Dale*
521
522 * Over two thousand fixes were made to the documentation, including:
523 - Common options (such as -rand/-writerand, TLS version control, etc)
524 were refactored and point to newly-enhanced descriptions in openssl.pod.
525 - Added style conformance for all options (with help from Richard Levitte),
526 documented all reported missing options, added a CI build to check
527 that all options are documented and that no unimplemented options
528 are documented.
529 - Documented some internals, such as all use of environment variables.
530 - Addressed all internal broken L<> references.
531
532 *Rich Salz*
533
534 * All of the low level CMAC functions have been deprecated including:
535
536 CMAC_CTX_new, CMAC_CTX_cleanup, CMAC_CTX_free, CMAC_CTX_get0_cipher_ctx,
537 CMAC_CTX_copy, CMAC_Init, CMAC_Update, CMAC_Final and CMAC_resume.
538
539 Use of these low level functions has been informally discouraged for a long
865adf97
MC
540 time. Instead applications should use L<EVP_MAC_CTX_new(3)>,
541 L<EVP_MAC_CTX_free(3)>, L<EVP_MAC_init(3)>, L<EVP_MAC_update(3)>
44652c16
DMSP
542 and L<EVP_MAC_final(3)>.
543
544 *Paul Dale*
545
546 * All of the low level MD2, MD4, MD5, MDC2, RIPEMD160, SHA1, SHA224, SHA256,
547 SHA384, SHA512 and Whirlpool digest functions have been deprecated.
548 These include:
549
550 MD2, MD2_options, MD2_Init, MD2_Update, MD2_Final, MD4, MD4_Init,
551 MD4_Update, MD4_Final, MD4_Transform, MD5, MD5_Init, MD5_Update,
552 MD5_Final, MD5_Transform, MDC2, MDC2_Init, MDC2_Update, MDC2_Final,
553 RIPEMD160, RIPEMD160_Init, RIPEMD160_Update, RIPEMD160_Final,
554 RIPEMD160_Transform, SHA1_Init, SHA1_Update, SHA1_Final, SHA1_Transform,
555 SHA224_Init, SHA224_Update, SHA224_Final, SHA224_Transform, SHA256_Init,
556 SHA256_Update, SHA256_Final, SHA256_Transform, SHA384, SHA384_Init,
557 SHA384_Update, SHA384_Final, SHA512, SHA512_Init, SHA512_Update,
558 SHA512_Final, SHA512_Transform, WHIRLPOOL, WHIRLPOOL_Init,
559 WHIRLPOOL_Update, WHIRLPOOL_BitUpdate and WHIRLPOOL_Final.
560
561 Use of these low level functions has been informally discouraged
562 for a long time. Applications should use the EVP_DigestInit_ex(3),
563 EVP_DigestUpdate(3) and EVP_DigestFinal_ex(3) functions instead.
564
565 *Paul Dale*
566
257e9d03 567 * Corrected the documentation of the return values from the `EVP_DigestSign*`
44652c16
DMSP
568 set of functions. The documentation mentioned negative values for some
569 errors, but this was never the case, so the mention of negative values
570 was removed.
571
572 Code that followed the documentation and thereby check with something
573 like `EVP_DigestSignInit(...) <= 0` will continue to work undisturbed.
574
575 *Richard Levitte*
576
577 * All of the low level cipher functions have been deprecated including:
578
579 AES_options, AES_set_encrypt_key, AES_set_decrypt_key, AES_encrypt,
580 AES_decrypt, AES_ecb_encrypt, AES_cbc_encrypt, AES_cfb128_encrypt,
581 AES_cfb1_encrypt, AES_cfb8_encrypt, AES_ofb128_encrypt,
582 AES_wrap_key, AES_unwrap_key, BF_set_key, BF_encrypt, BF_decrypt,
583 BF_ecb_encrypt, BF_cbc_encrypt, BF_cfb64_encrypt, BF_ofb64_encrypt,
584 BF_options, Camellia_set_key, Camellia_encrypt, Camellia_decrypt,
585 Camellia_ecb_encrypt, Camellia_cbc_encrypt, Camellia_cfb128_encrypt,
586 Camellia_cfb1_encrypt, Camellia_cfb8_encrypt, Camellia_ofb128_encrypt,
587 Camellia_ctr128_encrypt, CAST_set_key, CAST_encrypt, CAST_decrypt,
588 CAST_ecb_encrypt, CAST_cbc_encrypt, CAST_cfb64_encrypt,
589 CAST_ofb64_encrypt, DES_options, DES_encrypt1, DES_encrypt2,
590 DES_encrypt3, DES_decrypt3, DES_cbc_encrypt, DES_ncbc_encrypt,
591 DES_pcbc_encrypt, DES_xcbc_encrypt, DES_cfb_encrypt, DES_cfb64_encrypt,
592 DES_ecb_encrypt, DES_ofb_encrypt, DES_ofb64_encrypt, DES_random_key,
593 DES_set_odd_parity, DES_check_key_parity, DES_is_weak_key, DES_set_key,
594 DES_key_sched, DES_set_key_checked, DES_set_key_unchecked,
595 DES_string_to_key, DES_string_to_2keys, DES_fixup_key_parity,
596 DES_ecb2_encrypt, DES_ede2_cbc_encrypt, DES_ede2_cfb64_encrypt,
597 DES_ede2_ofb64_encrypt, DES_ecb3_encrypt, DES_ede3_cbc_encrypt,
598 DES_ede3_cfb64_encrypt, DES_ede3_cfb_encrypt, DES_ede3_ofb64_encrypt,
599 DES_cbc_cksum, DES_quad_cksum, IDEA_encrypt, IDEA_options,
600 IDEA_ecb_encrypt, IDEA_set_encrypt_key, IDEA_set_decrypt_key,
601 IDEA_cbc_encrypt, IDEA_cfb64_encrypt, IDEA_ofb64_encrypt, RC2_set_key,
602 RC2_encrypt, RC2_decrypt, RC2_ecb_encrypt, RC2_cbc_encrypt,
603 RC2_cfb64_encrypt, RC2_ofb64_encrypt, RC4, RC4_options, RC4_set_key,
604 RC5_32_set_key, RC5_32_encrypt, RC5_32_decrypt, RC5_32_ecb_encrypt,
605 RC5_32_cbc_encrypt, RC5_32_cfb64_encrypt, RC5_32_ofb64_encrypt,
606 SEED_set_key, SEED_encrypt, SEED_decrypt, SEED_ecb_encrypt,
607 SEED_cbc_encrypt, SEED_cfb128_encrypt and SEED_ofb128_encrypt.
608
609 Use of these low level functions has been informally discouraged for
610 a long time. Applications should use the high level EVP APIs, e.g.
611 EVP_EncryptInit_ex, EVP_EncryptUpdate, EVP_EncryptFinal_ex, and the
612 equivalently named decrypt functions instead.
613
614 *Matt Caswell and Paul Dale*
5f8e6c50
DMSP
615
616 * Removed include/openssl/opensslconf.h.in and replaced it with
617 include/openssl/configuration.h.in, which differs in not including
618 <openssl/macros.h>. A short header include/openssl/opensslconf.h
619 was added to include both.
44652c16 620
5f8e6c50
DMSP
621 This allows internal hacks where one might need to modify the set
622 of configured macros, for example this if deprecated symbols are
623 still supposed to be available internally:
44652c16 624
5f8e6c50 625 #include <openssl/configuration.h>
44652c16 626
5f8e6c50
DMSP
627 #undef OPENSSL_NO_DEPRECATED
628 #define OPENSSL_SUPPRESS_DEPRECATED
44652c16 629
5f8e6c50 630 #include <openssl/macros.h>
44652c16 631
5f8e6c50
DMSP
632 This should not be used by applications that use the exported
633 symbols, as that will lead to linking errors.
44652c16 634
5f8e6c50
DMSP
635 *Richard Levitte*
636
44652c16
DMSP
637 * Fixed an overflow bug in the x64_64 Montgomery squaring procedure
638 used in exponentiation with 512-bit moduli. No EC algorithms are
639 affected. Analysis suggests that attacks against 2-prime RSA1024,
640 3-prime RSA1536, and DSA1024 as a result of this defect would be very
641 difficult to perform and are not believed likely. Attacks against DH512
642 are considered just feasible. However, for an attack the target would
643 have to re-use the DH512 private key, which is not recommended anyway.
644 Also applications directly using the low level API BN_mod_exp may be
645 affected if they use BN_FLG_CONSTTIME.
d8dc8538 646 ([CVE-2019-1551])
44652c16
DMSP
647
648 *Andy Polyakov*
5f8e6c50 649
44652c16
DMSP
650 * Most memory-debug features have been deprecated, and the functionality
651 replaced with no-ops.
5f8e6c50 652
44652c16 653 *Rich Salz*
257e9d03 654
31605414 655 * Added documentation for the STACK API.
257e9d03 656
852c2ed2 657 *Rich Salz*
5f8e6c50 658
ece9304c
RL
659 * Introduced a new method type and API, OSSL_ENCODER, to
660 represent generic encoders. An implementation is expected to
661 be able to encode an object associated with a given name (such
5f8e6c50
DMSP
662 as an algorithm name for an asymmetric key) into forms given by
663 implementation properties.
664
ece9304c 665 Encoders are primarily used from inside libcrypto, through
5f8e6c50
DMSP
666 calls to functions like EVP_PKEY_print_private(),
667 PEM_write_bio_PrivateKey() and similar.
668
ece9304c 669 Encoders are specified in such a way that they can be made to
5f8e6c50 670 directly handle the provider side portion of an object, if this
ece9304c 671 provider side part comes from the same provider as the encoder
5f8e6c50
DMSP
672 itself, but can also be made to handle objects in parametrized
673 form (as an OSSL_PARAM array of data). This allows a provider to
ece9304c 674 offer generic encoders as a service for any other provider.
5f8e6c50
DMSP
675
676 *Richard Levitte*
677
678 * Added a .pragma directive to the syntax of configuration files, to
679 allow varying behavior in a supported and predictable manner.
680 Currently added pragma:
681
682 .pragma dollarid:on
683
684 This allows dollar signs to be a keyword character unless it's
685 followed by a opening brace or parenthesis. This is useful for
686 platforms where dollar signs are commonly used in names, such as
687 volume names and system directory names on VMS.
688
689 *Richard Levitte*
690
691 * Added functionality to create an EVP_PKEY from user data. This
692 is effectively the same as creating a RSA, DH or DSA object and
693 then assigning them to an EVP_PKEY, but directly using algorithm
694 agnostic EVP functions. A benefit is that this should be future
695 proof for public key algorithms to come.
696
697 *Richard Levitte*
536454e5 698
5f8e6c50
DMSP
699 * Change the interpretation of the '--api' configuration option to
700 mean that this is a desired API compatibility level with no
701 further meaning. The previous interpretation, that this would
702 also mean to remove all deprecated symbols up to and including
703 the given version, no requires that 'no-deprecated' is also used
704 in the configuration.
705
706 When building applications, the desired API compatibility level
707 can be set with the OPENSSL_API_COMPAT macro like before. For
708 API compatibility version below 3.0, the old style numerical
709 value is valid as before, such as -DOPENSSL_API_COMPAT=0x10100000L.
710 For version 3.0 and on, the value is expected to be the decimal
711 value calculated from the major and minor version like this:
38c65481 712
5f8e6c50 713 MAJOR * 10000 + MINOR * 100
38c65481 714
5f8e6c50 715 Examples:
ea8c77a5 716
5f8e6c50
DMSP
717 -DOPENSSL_API_COMPAT=30000 For 3.0
718 -DOPENSSL_API_COMPAT=30200 For 3.2
719
720 To hide declarations that are deprecated up to and including the
721 given API compatibility level, -DOPENSSL_NO_DEPRECATED must be
722 given when building the application as well.
390c5795 723
5f8e6c50 724 *Richard Levitte*
e5641d7f 725
5f8e6c50
DMSP
726 * Added the X509_LOOKUP_METHOD called X509_LOOKUP_store, to allow
727 access to certificate and CRL stores via URIs and OSSL_STORE
728 loaders.
e5641d7f 729
5f8e6c50 730 This adds the following functions:
3ddc06f0 731
5f8e6c50
DMSP
732 - X509_LOOKUP_store()
733 - X509_STORE_load_file()
734 - X509_STORE_load_path()
735 - X509_STORE_load_store()
736 - SSL_add_store_cert_subjects_to_stack()
737 - SSL_CTX_set_default_verify_store()
738 - SSL_CTX_load_verify_file()
739 - SSL_CTX_load_verify_dir()
740 - SSL_CTX_load_verify_store()
e66cb363 741
5f8e6c50 742 *Richard Levitte*
732d31be 743
5f8e6c50
DMSP
744 * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY.
745 The presence of this system service is determined at run-time.
223c59ea 746
5f8e6c50 747 *Richard Levitte*
173350bc 748
5f8e6c50
DMSP
749 * Added functionality to create an EVP_PKEY context based on data
750 for methods from providers. This takes an algorithm name and a
751 property query string and simply stores them, with the intent
752 that any operation that uses this context will use those strings
753 to fetch the needed methods implicitly, thereby making the port
754 of application written for pre-3.0 OpenSSL easier.
acf20c7d 755
5f8e6c50 756 *Richard Levitte*
3d63b396 757
5f8e6c50
DMSP
758 * The undocumented function NCONF_WIN32() has been deprecated; for
759 conversion details see the HISTORY section of doc/man5/config.pod
c2bf7208 760
5f8e6c50 761 *Rich Salz*
ba64ae6c 762
5f8e6c50
DMSP
763 * Introduced the new functions EVP_DigestSignInit_ex() and
764 EVP_DigestVerifyInit_ex(). The macros EVP_DigestSignUpdate() and
765 EVP_DigestVerifyUpdate() have been converted to functions. See the man
766 pages for further details.
0e0c6821 767
5f8e6c50 768 *Matt Caswell*
e6f418bc 769
5f8e6c50
DMSP
770 * Over two thousand fixes were made to the documentation, including:
771 adding missing command flags, better style conformance, documentation
772 of internals, etc.
3d63b396 773
5f8e6c50 774 *Rich Salz, Richard Levitte*
3d63b396 775
5f8e6c50
DMSP
776 * s390x assembly pack: add hardware-support for P-256, P-384, P-521,
777 X25519, X448, Ed25519 and Ed448.
a25f33d2 778
5f8e6c50 779 *Patrick Steuer*
17716680 780
5f8e6c50
DMSP
781 * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just
782 the first value.
0e4bc563 783
5f8e6c50 784 *Jon Spillett*
e30dd20c 785
5f8e6c50
DMSP
786 * Deprecated the public definition of ERR_STATE as well as the function
787 ERR_get_state(). This is done in preparation of making ERR_STATE an
788 opaque type.
c05353c5 789
5f8e6c50 790 *Richard Levitte*
d741ccad 791
5f8e6c50
DMSP
792 * Added ERR functionality to give callers access to the stored function
793 names that have replaced the older function code based functions.
aaf35f11 794
5f8e6c50
DMSP
795 New functions are ERR_get_error_func(), ERR_peek_error_func(),
796 ERR_peek_last_error_func(), ERR_get_error_data(), ERR_peek_error_data(),
797 ERR_peek_last_error_data(), ERR_get_error_all(), ERR_peek_error_all()
798 and ERR_peek_last_error_all().
aaf35f11 799
5f8e6c50
DMSP
800 These functions have become deprecated: ERR_get_error_line_data(),
801 ERR_peek_error_line_data(), ERR_peek_last_error_line_data() and
802 ERR_func_error_string().
aaf35f11 803
5f8e6c50 804 *Richard Levitte*
3ff55e96 805
5f8e6c50
DMSP
806 * Extended testing to be verbose for failing tests only. The make variables
807 VERBOSE_FAILURE or VF can be used to enable this:
b6af2c7e 808
5f8e6c50
DMSP
809 $ make VF=1 test # Unix
810 $ mms /macro=(VF=1) test ! OpenVMS
811 $ nmake VF=1 test # Windows
77202a85 812
5f8e6c50 813 *Richard Levitte*
57f39cc8 814
5f8e6c50 815 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 816 used even when parsing explicit parameters, when loading a encoded key
5f8e6c50
DMSP
817 or calling `EC_GROUP_new_from_ecpkparameters()`/
818 `EC_GROUP_new_from_ecparameters()`.
819 This prevents bypass of security hardening and performance gains,
820 especially for curves with specialized EC_METHODs.
821 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 822 encoded, the output is still encoded with explicit parameters, even if
5f8e6c50 823 internally a "named" EC_GROUP is used for computation.
480af99e 824
5f8e6c50 825 *Nicola Tuveri*
480af99e 826
5f8e6c50
DMSP
827 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
828 this change, EC_GROUP_set_generator would accept order and/or cofactor as
829 NULL. After this change, only the cofactor parameter can be NULL. It also
830 does some minimal sanity checks on the passed order.
d8dc8538 831 ([CVE-2019-1547])
bab53405 832
5f8e6c50 833 *Billy Bob Brumley*
31636a3e 834
5f8e6c50
DMSP
835 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
836 An attack is simple, if the first CMS_recipientInfo is valid but the
837 second CMS_recipientInfo is chosen ciphertext. If the second
838 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
839 encryption key will be replaced by garbage, and the message cannot be
840 decoded, but if the RSA decryption fails, the correct encryption key is
841 used and the recipient will not notice the attack.
842 As a work around for this potential attack the length of the decrypted
843 key must be equal to the cipher default key length, in case the
844 certifiate is not given and all recipientInfo are tried out.
845 The old behaviour can be re-enabled in the CMS code by setting the
846 CMS_DEBUG_DECRYPT flag.
60aee6ce 847
5f8e6c50 848 *Bernd Edlinger*
31636a3e 849
5f8e6c50
DMSP
850 * Early start up entropy quality from the DEVRANDOM seed source has been
851 improved for older Linux systems. The RAND subsystem will wait for
852 /dev/random to be producing output before seeding from /dev/urandom.
853 The seeded state is stored for future library initialisations using
854 a system global shared memory segment. The shared memory identifier
855 can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to
856 the desired value. The default identifier is 114.
31636a3e 857
5f8e6c50 858 *Paul Dale*
7a762197 859
5f8e6c50
DMSP
860 * Revised BN_generate_prime_ex to not avoid factors 2..17863 in p-1
861 when primes for RSA keys are computed.
862 Since we previously always generated primes == 2 (mod 3) for RSA keys,
863 the 2-prime and 3-prime RSA modules were easy to distinguish, since
257e9d03 864 `N = p*q = 1 (mod 3)`, but `N = p*q*r = 2 (mod 3)`. Therefore fingerprinting
5f8e6c50
DMSP
865 2-prime vs. 3-prime RSA keys was possible by computing N mod 3.
866 This avoids possible fingerprinting of newly generated RSA modules.
6caa4edd 867
5f8e6c50 868 *Bernd Edlinger*
28b6d502 869
5f8e6c50
DMSP
870 * Correct the extended master secret constant on EBCDIC systems. Without this
871 fix TLS connections between an EBCDIC system and a non-EBCDIC system that
872 negotiate EMS will fail. Unfortunately this also means that TLS connections
873 between EBCDIC systems with this fix, and EBCDIC systems without this
874 fix will fail if they negotiate EMS.
d5bbead4 875
5f8e6c50 876 *Matt Caswell*
837f2fc7 877
5f8e6c50
DMSP
878 * Changed the library initialisation so that the config file is now loaded
879 by default. This was already the case for libssl. It now occurs for both
880 libcrypto and libssl. Use the OPENSSL_INIT_NO_LOAD_CONFIG option to
881 OPENSSL_init_crypto() to suppress automatic loading of a config file.
6bf79e30 882
5f8e6c50 883 *Matt Caswell*
480af99e 884
5f8e6c50
DMSP
885 * Introduced new error raising macros, ERR_raise() and ERR_raise_data(),
886 where the former acts as a replacement for ERR_put_error(), and the
887 latter replaces the combination ERR_put_error()+ERR_add_error_data().
888 ERR_raise_data() adds more flexibility by taking a format string and
889 an arbitrary number of arguments following it, to be processed with
890 BIO_snprintf().
e65bcbce 891
5f8e6c50 892 *Richard Levitte*
db99c525 893
5f8e6c50
DMSP
894 * Introduced a new function, OSSL_PROVIDER_available(), which can be used
895 to check if a named provider is loaded and available. When called, it
896 will also activate all fallback providers if such are still present.
db99c525 897
5f8e6c50 898 *Richard Levitte*
db99c525 899
5f8e6c50 900 * Enforce a minimum DH modulus size of 512 bits.
f8d6be3f 901
5f8e6c50 902 *Bernd Edlinger*
f8d6be3f 903
5f8e6c50
DMSP
904 * Changed DH parameters to generate the order q subgroup instead of 2q.
905 Previously generated DH parameters are still accepted by DH_check
906 but DH_generate_key works around that by clearing bit 0 of the
907 private key for those. This avoids leaking bit 0 of the private key.
f8d6be3f 908
5f8e6c50 909 *Bernd Edlinger*
f8d6be3f 910
5f8e6c50 911 * Significantly reduce secure memory usage by the randomness pools.
f8d6be3f 912
5f8e6c50 913 *Paul Dale*
f8d6be3f 914
257e9d03 915 * `{CRYPTO,OPENSSL}_mem_debug_{push,pop}` are now no-ops and have been
5f8e6c50 916 deprecated.
1a489c9a 917
5f8e6c50 918 *Rich Salz*
8528128b 919
5f8e6c50
DMSP
920 * A new type, EVP_KEYEXCH, has been introduced to represent key exchange
921 algorithms. An implementation of a key exchange algorithm can be obtained
922 by using the function EVP_KEYEXCH_fetch(). An EVP_KEYEXCH algorithm can be
923 used in a call to EVP_PKEY_derive_init_ex() which works in a similar way to
924 the older EVP_PKEY_derive_init() function. See the man pages for the new
925 functions for further details.
8228fd89 926
5f8e6c50 927 *Matt Caswell*
adb92d56 928
5f8e6c50 929 * The EVP_PKEY_CTX_set_dh_pad() macro has now been converted to a function.
6bf79e30 930
5f8e6c50 931 *Matt Caswell*
adb92d56 932
5f8e6c50
DMSP
933 * Removed the function names from error messages and deprecated the
934 xxx_F_xxx define's.
6bf79e30 935
5f8e6c50 936 * Removed NextStep support and the macro OPENSSL_UNISTD
db99c525 937
5f8e6c50 938 *Rich Salz*
94fd382f 939
5f8e6c50
DMSP
940 * Removed DES_check_key. Also removed OPENSSL_IMPLEMENT_GLOBAL,
941 OPENSSL_GLOBAL_REF, OPENSSL_DECLARE_GLOBAL.
942 Also removed "export var as function" capability; we do not export
943 variables, only functions.
e194fe8f 944
5f8e6c50 945 *Rich Salz*
40a70628 946
5f8e6c50
DMSP
947 * RC5_32_set_key has been changed to return an int type, with 0 indicating
948 an error and 1 indicating success. In previous versions of OpenSSL this
949 was a void type. If a key was set longer than the maximum possible this
950 would crash.
c2c2e7a4 951
5f8e6c50 952 *Matt Caswell*
c2c2e7a4 953
5f8e6c50 954 * Support SM2 signing and verification schemes with X509 certificate.
d18ef847 955
5f8e6c50 956 *Paul Yang*
d357be38 957
5f8e6c50 958 * Use SHA256 as the default digest for TS query in the ts app.
b615ad90 959
5f8e6c50 960 *Tomas Mraz*
0ebfcc8f 961
5f8e6c50
DMSP
962 * Change PBKDF2 to conform to SP800-132 instead of the older PKCS5 RFC2898.
963 This checks that the salt length is at least 128 bits, the derived key
964 length is at least 112 bits, and that the iteration count is at least 1000.
965 For backwards compatibility these checks are disabled by default in the
966 default provider, but are enabled by default in the fips provider.
967 To enable or disable these checks use the control
968 EVP_KDF_CTRL_SET_PBKDF2_PKCS5_MODE.
62bad771 969
5f8e6c50 970 *Shane Lontis*
1ad2ecb6 971
5f8e6c50
DMSP
972 * Default cipher lists/suites are now available via a function, the
973 #defines are deprecated.
bd3576d2 974
5f8e6c50 975 *Todd Short*
b64f8256 976
5f8e6c50
DMSP
977 * Add target VC-WIN32-UWP, VC-WIN64A-UWP, VC-WIN32-ARM-UWP and
978 VC-WIN64-ARM-UWP in Windows OneCore target for making building libraries
979 for Windows Store apps easier. Also, the "no-uplink" option has been added.
a9be3af5 980
5f8e6c50 981 *Kenji Mouri*
47339f61 982
5f8e6c50 983 * Join the directories crypto/x509 and crypto/x509v3
b0b7b1c5 984
5f8e6c50 985 *Richard Levitte*
6d311938 986
5f8e6c50
DMSP
987 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
988 This changes the size when using the genpkey app when no size is given. It
989 fixes an omission in earlier changes that changed all RSA, DSA and DH
990 generation apps to use 2048 bits by default.
92df9607 991
5f8e6c50 992 *Kurt Roeckx*
85f48f7e 993
5f8e6c50 994 * Added command 'openssl kdf' that uses the EVP_KDF API.
90b8bbb8 995
5f8e6c50 996 *Shane Lontis*
22a4f969 997
5f8e6c50 998 * Added command 'openssl mac' that uses the EVP_MAC API.
41b731f2 999
5f8e6c50 1000 *Shane Lontis*
e778802f 1001
5f8e6c50
DMSP
1002 * Added OPENSSL_info() to get diverse built-in OpenSSL data, such
1003 as default directories. Also added the command 'openssl info'
1004 for scripting purposes.
1d48dd00 1005
5f8e6c50 1006 *Richard Levitte*
28a98809 1007
5f8e6c50
DMSP
1008 * The functions AES_ige_encrypt() and AES_bi_ige_encrypt() have been
1009 deprecated. These undocumented functions were never integrated into the EVP
1010 layer and implement the AES Infinite Garble Extension (IGE) mode and AES
1011 Bi-directional IGE mode. These modes were never formally standardised and
1012 usage of these functions is believed to be very small. In particular
1013 AES_bi_ige_encrypt() has a known bug. It accepts 2 AES keys, but only one
1014 is ever used. The security implications are believed to be minimal, but
1015 this issue was never fixed for backwards compatibility reasons. New code
1016 should not use these modes.
8f7de4f0 1017
5f8e6c50 1018 *Matt Caswell*
5fbe91d8 1019
5f8e6c50 1020 * Add prediction resistance to the DRBG reseeding process.
9263e882 1021
5f8e6c50 1022 *Paul Dale*
f73e07cf 1023
5f8e6c50
DMSP
1024 * Limit the number of blocks in a data unit for AES-XTS to 2^20 as
1025 mandated by IEEE Std 1619-2018.
f9a25931 1026
5f8e6c50 1027 *Paul Dale*
2f0cd195 1028
5f8e6c50 1029 * Added newline escaping functionality to a filename when using openssl dgst.
257e9d03 1030 This output format is to replicate the output format found in the `*sum`
5f8e6c50 1031 checksum programs. This aims to preserve backward compatibility.
268c2102 1032
5f8e6c50 1033 *Matt Eaton, Richard Levitte, and Paul Dale*
fc8ee06b 1034
5f8e6c50
DMSP
1035 * Removed the heartbeat message in DTLS feature, as it has very
1036 little usage and doesn't seem to fulfill a valuable purpose.
1037 The configuration option is now deprecated.
c7ac31e2 1038
5f8e6c50 1039 *Richard Levitte*
9d892e28 1040
5f8e6c50
DMSP
1041 * Changed the output of 'openssl {digestname} < file' to display the
1042 digest name in its output.
9d892e28 1043
5f8e6c50 1044 *Richard Levitte*
ee13f9b1 1045
5f8e6c50
DMSP
1046 * Added a new generic trace API which provides support for enabling
1047 instrumentation through trace output. This feature is mainly intended
1048 as an aid for developers and is disabled by default. To utilize it,
1049 OpenSSL needs to be configured with the `enable-trace` option.
4a18cddd 1050
5f8e6c50
DMSP
1051 If the tracing API is enabled, the application can activate trace output
1052 by registering BIOs as trace channels for a number of tracing and debugging
1053 categories.
b5e406f7 1054
5f8e6c50
DMSP
1055 The 'openssl' application has been expanded to enable any of the types
1056 available via environment variables defined by the user, and serves as
1057 one possible example on how to use this functionality.
cb0f35d7 1058
5f8e6c50 1059 *Richard Levitte & Matthias St. Pierre*
cfcf6453 1060
5f8e6c50
DMSP
1061 * Added build tests for C++. These are generated files that only do one
1062 thing, to include one public OpenSSL head file each. This tests that
1063 the public header files can be usefully included in a C++ application.
cdbb8c2f 1064
5f8e6c50
DMSP
1065 This test isn't enabled by default. It can be enabled with the option
1066 'enable-buildtest-c++'.
06d5b162 1067
5f8e6c50 1068 *Richard Levitte*
c35f549e 1069
5f8e6c50 1070 * Add Single Step KDF (EVP_KDF_SS) to EVP_KDF.
ebc828ca 1071
5f8e6c50 1072 *Shane Lontis*
79e259e3 1073
5f8e6c50 1074 * Add KMAC to EVP_MAC.
56ee3117 1075
5f8e6c50 1076 *Shane Lontis*
6063b27b 1077
5f8e6c50
DMSP
1078 * Added property based algorithm implementation selection framework to
1079 the core.
6063b27b 1080
5f8e6c50 1081 *Paul Dale*
6063b27b 1082
5f8e6c50
DMSP
1083 * Added SCA hardening for modular field inversion in EC_GROUP through
1084 a new dedicated field_inv() pointer in EC_METHOD.
1085 This also addresses a leakage affecting conversions from projective
1086 to affine coordinates.
792a9002 1087
5f8e6c50 1088 *Billy Bob Brumley, Nicola Tuveri*
792a9002 1089
5f8e6c50
DMSP
1090 * Added EVP_KDF, an EVP layer KDF API, to simplify adding KDF and PRF
1091 implementations. This includes an EVP_PKEY to EVP_KDF bridge for
1092 those algorithms that were already supported through the EVP_PKEY API
1093 (scrypt, TLS1 PRF and HKDF). The low-level KDF functions for PBKDF2
1094 and scrypt are now wrappers that call EVP_KDF.
792a9002 1095
5f8e6c50 1096 *David Makepeace*
ce72df1c 1097
5f8e6c50 1098 * Build devcrypto engine as a dynamic engine.
4098e89c 1099
5f8e6c50 1100 *Eneas U de Queiroz*
4098e89c 1101
5f8e6c50 1102 * Add keyed BLAKE2 to EVP_MAC.
03f8b042 1103
5f8e6c50 1104 *Antoine Salon*
5dcdcd47 1105
5f8e6c50
DMSP
1106 * Fix a bug in the computation of the endpoint-pair shared secret used
1107 by DTLS over SCTP. This breaks interoperability with older versions
1108 of OpenSSL like OpenSSL 1.1.0 and OpenSSL 1.0.2. There is a runtime
1109 switch SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG (off by default) enabling
1110 interoperability with such broken implementations. However, enabling
1111 this switch breaks interoperability with correct implementations.
ae82b46f 1112
5f8e6c50
DMSP
1113 * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a
1114 re-used X509_PUBKEY object if the second PUBKEY is malformed.
8d7ed6ff 1115
5f8e6c50 1116 *Bernd Edlinger*
8d7ed6ff 1117
5f8e6c50 1118 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
1b24cca9 1119
5f8e6c50 1120 *Richard Levitte*
9ce5db45 1121
5f8e6c50 1122 * Change the license to the Apache License v2.0.
7f111b8b 1123
5f8e6c50 1124 *Richard Levitte*
651d0aff 1125
5f8e6c50 1126 * Switch to a new version scheme using three numbers MAJOR.MINOR.PATCH.
13e91dd3 1127
5f8e6c50
DMSP
1128 - Major releases (indicated by incrementing the MAJOR release number)
1129 may introduce incompatible API/ABI changes.
1130 - Minor releases (indicated by incrementing the MINOR release number)
1131 may introduce new features but retain API/ABI compatibility.
1132 - Patch releases (indicated by incrementing the PATCH number)
1133 are intended for bug fixes and other improvements of existing
1134 features only (like improving performance or adding documentation)
1135 and retain API/ABI compatibility.
13e91dd3 1136
5f8e6c50 1137 *Richard Levitte*
13e91dd3 1138
5f8e6c50 1139 * Add support for RFC5297 SIV mode (siv128), including AES-SIV.
13e91dd3 1140
5f8e6c50 1141 *Todd Short*
651d0aff 1142
5f8e6c50
DMSP
1143 * Remove the 'dist' target and add a tarball building script. The
1144 'dist' target has fallen out of use, and it shouldn't be
1145 necessary to configure just to create a source distribution.
651d0aff 1146
5f8e6c50 1147 *Richard Levitte*
651d0aff 1148
5f8e6c50
DMSP
1149 * Recreate the OS390-Unix config target. It no longer relies on a
1150 special script like it did for OpenSSL pre-1.1.0.
651d0aff 1151
5f8e6c50 1152 *Richard Levitte*
651d0aff 1153
5f8e6c50
DMSP
1154 * Instead of having the source directories listed in Configure, add
1155 a 'build.info' keyword SUBDIRS to indicate what sub-directories to
1156 look into.
651d0aff 1157
5f8e6c50 1158 *Richard Levitte*
7f111b8b 1159
5f8e6c50 1160 * Add GMAC to EVP_MAC.
1b24cca9 1161
5f8e6c50 1162 *Paul Dale*
651d0aff 1163
5f8e6c50 1164 * Ported the HMAC, CMAC and SipHash EVP_PKEY_METHODs to EVP_MAC.
651d0aff 1165
5f8e6c50 1166 *Richard Levitte*
651d0aff 1167
5f8e6c50
DMSP
1168 * Added EVP_MAC, an EVP layer MAC API, to simplify adding MAC
1169 implementations. This includes a generic EVP_PKEY to EVP_MAC bridge,
1170 to facilitate the continued use of MACs through raw private keys in
1dc1ea18 1171 functionality such as `EVP_DigestSign*` and `EVP_DigestVerify*`.
651d0aff 1172
5f8e6c50 1173 *Richard Levitte*
651d0aff 1174
5f8e6c50
DMSP
1175 * Deprecate ECDH_KDF_X9_62() and mark its replacement as internal. Users
1176 should use the EVP interface instead (EVP_PKEY_CTX_set_ecdh_kdf_type).
651d0aff 1177
5f8e6c50 1178 *Antoine Salon*
651d0aff 1179
5f8e6c50
DMSP
1180 * Added EVP_PKEY_ECDH_KDF_X9_63 and ecdh_KDF_X9_63() as replacements for
1181 the EVP_PKEY_ECDH_KDF_X9_62 KDF type and ECDH_KDF_X9_62(). The old names
1182 are retained for backwards compatibility.
651d0aff 1183
5f8e6c50 1184 *Antoine Salon*
651d0aff 1185
5f8e6c50
DMSP
1186 * AES-XTS mode now enforces that its two keys are different to mitigate
1187 the attacked described in "Efficient Instantiations of Tweakable
1188 Blockciphers and Refinements to Modes OCB and PMAC" by Phillip Rogaway.
1189 Details of this attack can be obtained from:
257e9d03 1190 <http://web.cs.ucdavis.edu/%7Erogaway/papers/offsets.pdf>
651d0aff 1191
5f8e6c50 1192 *Paul Dale*
651d0aff 1193
5f8e6c50
DMSP
1194 * Rename the object files, i.e. give them other names than in previous
1195 versions. Their names now include the name of the final product, as
1196 well as its type mnemonic (bin, lib, shlib).
651d0aff 1197
5f8e6c50 1198 *Richard Levitte*
651d0aff 1199
5f8e6c50
DMSP
1200 * Added new option for 'openssl list', '-objects', which will display the
1201 list of built in objects, i.e. OIDs with names.
651d0aff 1202
5f8e6c50 1203 *Richard Levitte*
651d0aff 1204
64713cb1
CN
1205 * Added the options `-crl_lastupdate` and `-crl_nextupdate` to `openssl ca`,
1206 allowing the `lastUpdate` and `nextUpdate` fields in the generated CRL to
1207 be set explicitly.
1208
1209 *Chris Novakovic*
1210
5f8e6c50
DMSP
1211 * Added support for Linux Kernel TLS data-path. The Linux Kernel data-path
1212 improves application performance by removing data copies and providing
1213 applications with zero-copy system calls such as sendfile and splice.
651d0aff 1214
5f8e6c50 1215 *Boris Pismenny*
651d0aff 1216
163b8016
ME
1217 * The SSL option SSL_OP_CLEANSE_PLAINTEXT is introduced. If that
1218 option is set, openssl cleanses (zeroize) plaintext bytes from
1219 internal buffers after delivering them to the application. Note,
1220 the application is still responsible for cleansing other copies
1221 (e.g.: data received by SSL_read(3)).
1222
1223 *Martin Elshuber*
1224
fc0aae73
DDO
1225 * `PKCS12_parse` now maintains the order of the parsed certificates
1226 when outputting them via `*ca` (rather than reversing it).
1227
1228 *David von Oheimb*
1229
44652c16
DMSP
1230OpenSSL 1.1.1
1231-------------
1232
6ffc3127
DMSP
1233### Changes between 1.1.1h and 1.1.1i [xx XXX xxxx]
1234
1235 *
1236
1237### Changes between 1.1.1g and 1.1.1h [22 Sep 2020]
1238
1239 * Certificates with explicit curve parameters are now disallowed in
1240 verification chains if the X509_V_FLAG_X509_STRICT flag is used.
1241
1242 *Tomas Mraz*
1243
1244 * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently
1245 ignore TLS protocol version bounds when configuring DTLS-based contexts, and
1246 conversely, silently ignore DTLS protocol version bounds when configuring
1247 TLS-based contexts. The commands can be repeated to set bounds of both
1248 types. The same applies with the corresponding "min_protocol" and
1249 "max_protocol" command-line switches, in case some application uses both TLS
1250 and DTLS.
1251
1252 SSL_CTX instances that are created for a fixed protocol version (e.g.
1253 TLSv1_server_method()) also silently ignore version bounds. Previously
1254 attempts to apply bounds to these protocol versions would result in an
1255 error. Now only the "version-flexible" SSL_CTX instances are subject to
1256 limits in configuration files in command-line options.
1257
1258 *Viktor Dukhovni*
1259
1260 * Handshake now fails if Extended Master Secret extension is dropped
1261 on renegotiation.
1262
1263 *Tomas Mraz*
1264
1265 * The Oracle Developer Studio compiler will start reporting deprecated APIs
1266
1267### Changes between 1.1.1f and 1.1.1g [21 Apr 2020]
1268
1269 * Fixed segmentation fault in SSL_check_chain()
1270 Server or client applications that call the SSL_check_chain() function
1271 during or after a TLS 1.3 handshake may crash due to a NULL pointer
1272 dereference as a result of incorrect handling of the
1273 "signature_algorithms_cert" TLS extension. The crash occurs if an invalid
1274 or unrecognised signature algorithm is received from the peer. This could
1275 be exploited by a malicious peer in a Denial of Service attack.
d8dc8538 1276 ([CVE-2020-1967])
6ffc3127
DMSP
1277
1278 *Benjamin Kaduk*
1279
1280 * Added AES consttime code for no-asm configurations
1281 an optional constant time support for AES was added
1282 when building openssl for no-asm.
1283 Enable with: ./config no-asm -DOPENSSL_AES_CONST_TIME
1284 Disable with: ./config no-asm -DOPENSSL_NO_AES_CONST_TIME
1285 At this time this feature is by default disabled.
1286 It will be enabled by default in 3.0.
1287
1288 *Bernd Edlinger*
1289
1290### Changes between 1.1.1e and 1.1.1f [31 Mar 2020]
1291
1292 * Revert the change of EOF detection while reading in libssl to avoid
1293 regressions in applications depending on the current way of reporting
1294 the EOF. As the existing method is not fully accurate the change to
1295 reporting the EOF via SSL_ERROR_SSL is kept on the current development
1296 branch and will be present in the 3.0 release.
1297
1298 *Tomas Mraz*
1299
1300 * Revised BN_generate_prime_ex to not avoid factors 3..17863 in p-1
1301 when primes for RSA keys are computed.
1302 Since we previously always generated primes == 2 (mod 3) for RSA keys,
1303 the 2-prime and 3-prime RSA modules were easy to distinguish, since
1304 N = p*q = 1 (mod 3), but N = p*q*r = 2 (mod 3). Therefore fingerprinting
1305 2-prime vs. 3-prime RSA keys was possible by computing N mod 3.
1306 This avoids possible fingerprinting of newly generated RSA modules.
1307
1308 *Bernd Edlinger*
8658fedd 1309
257e9d03 1310### Changes between 1.1.1d and 1.1.1e [17 Mar 2020]
8658fedd
DMSP
1311
1312 * Properly detect EOF while reading in libssl. Previously if we hit an EOF
1313 while reading in libssl then we would report an error back to the
1314 application (SSL_ERROR_SYSCALL) but errno would be 0. We now add
1315 an error to the stack (which means we instead return SSL_ERROR_SSL) and
1316 therefore give a hint as to what went wrong.
1317
1318 *Matt Caswell*
1319
1320 * Check that ed25519 and ed448 are allowed by the security level. Previously
1321 signature algorithms not using an MD were not being checked that they were
1322 allowed by the security level.
1323
1324 *Kurt Roeckx*
1325
1326 * Fixed SSL_get_servername() behaviour. The behaviour of SSL_get_servername()
1327 was not quite right. The behaviour was not consistent between resumption
1328 and normal handshakes, and also not quite consistent with historical
1329 behaviour. The behaviour in various scenarios has been clarified and
1330 it has been updated to make it match historical behaviour as closely as
1331 possible.
1332
1333 *Matt Caswell*
44652c16 1334
f33ca114
RL
1335 * *[VMS only]* The header files that the VMS compilers include automatically,
1336 `__DECC_INCLUDE_PROLOGUE.H` and `__DECC_INCLUDE_EPILOGUE.H`, use pragmas
1337 that the C++ compiler doesn't understand. This is a shortcoming in the
1338 compiler, but can be worked around with `__cplusplus` guards.
1339
1340 C++ applications that use OpenSSL libraries must be compiled using the
1341 qualifier `/NAMES=(AS_IS,SHORTENED)` to be able to use all the OpenSSL
1342 functions. Otherwise, only functions with symbols of less than 31
1343 characters can be used, as the linker will not be able to successfully
1344 resolve symbols with longer names.
1345
1346 *Richard Levitte*
1347
44652c16
DMSP
1348 * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY.
1349 The presence of this system service is determined at run-time.
1350
1351 *Richard Levitte*
1352
1353 * Added newline escaping functionality to a filename when using openssl dgst.
257e9d03 1354 This output format is to replicate the output format found in the `*sum`
44652c16
DMSP
1355 checksum programs. This aims to preserve backward compatibility.
1356
1357 *Matt Eaton, Richard Levitte, and Paul Dale*
1358
1359 * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just
1360 the first value.
1361
1362 *Jon Spillett*
1363
257e9d03 1364### Changes between 1.1.1c and 1.1.1d [10 Sep 2019]
44652c16
DMSP
1365
1366 * Fixed a fork protection issue. OpenSSL 1.1.1 introduced a rewritten random
1367 number generator (RNG). This was intended to include protection in the
1368 event of a fork() system call in order to ensure that the parent and child
1369 processes did not share the same RNG state. However this protection was not
1370 being used in the default case.
1371
1372 A partial mitigation for this issue is that the output from a high
1373 precision timer is mixed into the RNG state so the likelihood of a parent
1374 and child process sharing state is significantly reduced.
1375
1376 If an application already calls OPENSSL_init_crypto() explicitly using
1377 OPENSSL_INIT_ATFORK then this problem does not occur at all.
d8dc8538 1378 ([CVE-2019-1549])
44652c16
DMSP
1379
1380 *Matthias St. Pierre*
1381
1382 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 1383 used even when parsing explicit parameters, when loading a encoded key
44652c16
DMSP
1384 or calling `EC_GROUP_new_from_ecpkparameters()`/
1385 `EC_GROUP_new_from_ecparameters()`.
1386 This prevents bypass of security hardening and performance gains,
1387 especially for curves with specialized EC_METHODs.
1388 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 1389 encoded, the output is still encoded with explicit parameters, even if
44652c16
DMSP
1390 internally a "named" EC_GROUP is used for computation.
1391
1392 *Nicola Tuveri*
1393
1394 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
1395 this change, EC_GROUP_set_generator would accept order and/or cofactor as
1396 NULL. After this change, only the cofactor parameter can be NULL. It also
1397 does some minimal sanity checks on the passed order.
d8dc8538 1398 ([CVE-2019-1547])
44652c16
DMSP
1399
1400 *Billy Bob Brumley*
1401
1402 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
1403 An attack is simple, if the first CMS_recipientInfo is valid but the
1404 second CMS_recipientInfo is chosen ciphertext. If the second
1405 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
1406 encryption key will be replaced by garbage, and the message cannot be
1407 decoded, but if the RSA decryption fails, the correct encryption key is
1408 used and the recipient will not notice the attack.
1409 As a work around for this potential attack the length of the decrypted
1410 key must be equal to the cipher default key length, in case the
1411 certifiate is not given and all recipientInfo are tried out.
1412 The old behaviour can be re-enabled in the CMS code by setting the
1413 CMS_DEBUG_DECRYPT flag.
d8dc8538 1414 ([CVE-2019-1563])
44652c16
DMSP
1415
1416 *Bernd Edlinger*
1417
1418 * Early start up entropy quality from the DEVRANDOM seed source has been
1419 improved for older Linux systems. The RAND subsystem will wait for
1420 /dev/random to be producing output before seeding from /dev/urandom.
1421 The seeded state is stored for future library initialisations using
1422 a system global shared memory segment. The shared memory identifier
1423 can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to
1424 the desired value. The default identifier is 114.
1425
1426 *Paul Dale*
1427
1428 * Correct the extended master secret constant on EBCDIC systems. Without this
1429 fix TLS connections between an EBCDIC system and a non-EBCDIC system that
1430 negotiate EMS will fail. Unfortunately this also means that TLS connections
1431 between EBCDIC systems with this fix, and EBCDIC systems without this
1432 fix will fail if they negotiate EMS.
1433
1434 *Matt Caswell*
1435
1436 * Use Windows installation paths in the mingw builds
1437
1438 Mingw isn't a POSIX environment per se, which means that Windows
1439 paths should be used for installation.
d8dc8538 1440 ([CVE-2019-1552])
44652c16
DMSP
1441
1442 *Richard Levitte*
1443
1444 * Changed DH_check to accept parameters with order q and 2q subgroups.
1445 With order 2q subgroups the bit 0 of the private key is not secret
1446 but DH_generate_key works around that by clearing bit 0 of the
1447 private key for those. This avoids leaking bit 0 of the private key.
1448
1449 *Bernd Edlinger*
1450
1451 * Significantly reduce secure memory usage by the randomness pools.
1452
1453 *Paul Dale*
1454
1455 * Revert the DEVRANDOM_WAIT feature for Linux systems
1456
1457 The DEVRANDOM_WAIT feature added a select() call to wait for the
1458 /dev/random device to become readable before reading from the
1459 /dev/urandom device.
1460
1461 It turned out that this change had negative side effects on
1462 performance which were not acceptable. After some discussion it
1463 was decided to revert this feature and leave it up to the OS
1464 resp. the platform maintainer to ensure a proper initialization
1465 during early boot time.
1466
1467 *Matthias St. Pierre*
1468
257e9d03 1469### Changes between 1.1.1b and 1.1.1c [28 May 2019]
44652c16
DMSP
1470
1471 * Add build tests for C++. These are generated files that only do one
1472 thing, to include one public OpenSSL head file each. This tests that
1473 the public header files can be usefully included in a C++ application.
1474
1475 This test isn't enabled by default. It can be enabled with the option
1476 'enable-buildtest-c++'.
1477
1478 *Richard Levitte*
1479
1480 * Enable SHA3 pre-hashing for ECDSA and DSA.
1481
1482 *Patrick Steuer*
1483
1484 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
1485 This changes the size when using the genpkey app when no size is given. It
1486 fixes an omission in earlier changes that changed all RSA, DSA and DH
1487 generation apps to use 2048 bits by default.
1488
1489 *Kurt Roeckx*
1490
1491 * Reorganize the manual pages to consistently have RETURN VALUES,
1492 EXAMPLES, SEE ALSO and HISTORY come in that order, and adjust
1493 util/fix-doc-nits accordingly.
1494
1495 *Paul Yang, Joshua Lock*
1496
1497 * Add the missing accessor EVP_PKEY_get0_engine()
1498
1499 *Matt Caswell*
1500
1501 * Have apps like 's_client' and 's_server' output the signature scheme
1502 along with other cipher suite parameters when debugging.
1503
1504 *Lorinczy Zsigmond*
1505
1506 * Make OPENSSL_config() error agnostic again.
1507
1508 *Richard Levitte*
1509
1510 * Do the error handling in RSA decryption constant time.
1511
1512 *Bernd Edlinger*
1513
1514 * Prevent over long nonces in ChaCha20-Poly1305.
1515
1516 ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input
1517 for every encryption operation. RFC 7539 specifies that the nonce value
1518 (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length
1519 and front pads the nonce with 0 bytes if it is less than 12
1520 bytes. However it also incorrectly allows a nonce to be set of up to 16
1521 bytes. In this case only the last 12 bytes are significant and any
1522 additional leading bytes are ignored.
1523
1524 It is a requirement of using this cipher that nonce values are
1525 unique. Messages encrypted using a reused nonce value are susceptible to
1526 serious confidentiality and integrity attacks. If an application changes
1527 the default nonce length to be longer than 12 bytes and then makes a
1528 change to the leading bytes of the nonce expecting the new value to be a
1529 new unique nonce then such an application could inadvertently encrypt
1530 messages with a reused nonce.
1531
1532 Additionally the ignored bytes in a long nonce are not covered by the
1533 integrity guarantee of this cipher. Any application that relies on the
1534 integrity of these ignored leading bytes of a long nonce may be further
1535 affected. Any OpenSSL internal use of this cipher, including in SSL/TLS,
1536 is safe because no such use sets such a long nonce value. However user
1537 applications that use this cipher directly and set a non-default nonce
1538 length to be longer than 12 bytes may be vulnerable.
1539
1540 This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk
1541 Greef of Ronomon.
d8dc8538 1542 ([CVE-2019-1543])
44652c16
DMSP
1543
1544 *Matt Caswell*
1545
1546 * Add DEVRANDOM_WAIT feature for Linux systems
1547
1548 On older Linux systems where the getrandom() system call is not available,
1549 OpenSSL normally uses the /dev/urandom device for seeding its CSPRNG.
1550 Contrary to getrandom(), the /dev/urandom device will not block during
1551 early boot when the kernel CSPRNG has not been seeded yet.
1552
1553 To mitigate this known weakness, use select() to wait for /dev/random to
1554 become readable before reading from /dev/urandom.
1555
1556 * Ensure that SM2 only uses SM3 as digest algorithm
1557
1558 *Paul Yang*
1559
257e9d03 1560### Changes between 1.1.1a and 1.1.1b [26 Feb 2019]
651d0aff 1561
5f8e6c50
DMSP
1562 * Change the info callback signals for the start and end of a post-handshake
1563 message exchange in TLSv1.3. In 1.1.1/1.1.1a we used SSL_CB_HANDSHAKE_START
1564 and SSL_CB_HANDSHAKE_DONE. Experience has shown that many applications get
1565 confused by this and assume that a TLSv1.2 renegotiation has started. This
1566 can break KeyUpdate handling. Instead we no longer signal the start and end
1567 of a post handshake message exchange (although the messages themselves are
1568 still signalled). This could break some applications that were expecting
1569 the old signals. However without this KeyUpdate is not usable for many
1570 applications.
651d0aff 1571
5f8e6c50 1572 *Matt Caswell*
651d0aff 1573
257e9d03 1574### Changes between 1.1.1 and 1.1.1a [20 Nov 2018]
651d0aff 1575
5f8e6c50 1576 * Timing vulnerability in DSA signature generation
651d0aff 1577
5f8e6c50
DMSP
1578 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
1579 timing side channel attack. An attacker could use variations in the signing
1580 algorithm to recover the private key.
651d0aff 1581
5f8e6c50 1582 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
d8dc8538 1583 ([CVE-2018-0734])
651d0aff 1584
5f8e6c50 1585 *Paul Dale*
651d0aff 1586
5f8e6c50 1587 * Timing vulnerability in ECDSA signature generation
651d0aff 1588
5f8e6c50
DMSP
1589 The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a
1590 timing side channel attack. An attacker could use variations in the signing
1591 algorithm to recover the private key.
651d0aff 1592
5f8e6c50 1593 This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser.
d8dc8538 1594 ([CVE-2018-0735])
651d0aff 1595
5f8e6c50 1596 *Paul Dale*
651d0aff 1597
5f8e6c50
DMSP
1598 * Fixed the issue that RAND_add()/RAND_seed() silently discards random input
1599 if its length exceeds 4096 bytes. The limit has been raised to a buffer size
1600 of two gigabytes and the error handling improved.
651d0aff 1601
5f8e6c50
DMSP
1602 This issue was reported to OpenSSL by Dr. Falko Strenzke. It has been
1603 categorized as a normal bug, not a security issue, because the DRBG reseeds
1604 automatically and is fully functional even without additional randomness
1605 provided by the application.
1606
257e9d03 1607### Changes between 1.1.0i and 1.1.1 [11 Sep 2018]
5f8e6c50
DMSP
1608
1609 * Add a new ClientHello callback. Provides a callback interface that gives
1610 the application the ability to adjust the nascent SSL object at the
1611 earliest stage of ClientHello processing, immediately after extensions have
1612 been collected but before they have been processed. In particular, this
1613 callback can adjust the supported TLS versions in response to the contents
1614 of the ClientHello
1615
1616 *Benjamin Kaduk*
1617
1618 * Add SM2 base algorithm support.
1619
1620 *Jack Lloyd*
1621
1622 * s390x assembly pack: add (improved) hardware-support for the following
1623 cryptographic primitives: sha3, shake, aes-gcm, aes-ccm, aes-ctr, aes-ofb,
1624 aes-cfb/cfb8, aes-ecb.
1625
1626 *Patrick Steuer*
1627
1628 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
1629 parameter is no longer accepted, as it leads to a corrupt table. NULL
1630 pem_str is reserved for alias entries only.
1631
1632 *Richard Levitte*
1633
1634 * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder
1635 step for prime curves. The new implementation is based on formulae from
1636 differential addition-and-doubling in homogeneous projective coordinates
1637 from Izu-Takagi "A fast parallel elliptic curve multiplication resistant
1638 against side channel attacks" and Brier-Joye "Weierstrass Elliptic Curves
1639 and Side-Channel Attacks" Eq. (8) for y-coordinate recovery, modified
1640 to work in projective coordinates.
1641
1642 *Billy Bob Brumley, Nicola Tuveri*
1643
1644 * Change generating and checking of primes so that the error rate of not
1645 being prime depends on the intended use based on the size of the input.
1646 For larger primes this will result in more rounds of Miller-Rabin.
1647 The maximal error rate for primes with more than 1080 bits is lowered
1648 to 2^-128.
1649
1650 *Kurt Roeckx, Annie Yousar*
1651
1652 * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
1653
1654 *Kurt Roeckx*
1655
1656 * The 'tsget' script is renamed to 'tsget.pl', to avoid confusion when
1657 moving between systems, and to avoid confusion when a Windows build is
1658 done with mingw vs with MSVC. For POSIX installs, there's still a
1659 symlink or copy named 'tsget' to avoid that confusion as well.
1660
1661 *Richard Levitte*
1662
1663 * Revert blinding in ECDSA sign and instead make problematic addition
1664 length-invariant. Switch even to fixed-length Montgomery multiplication.
1665
1666 *Andy Polyakov*
1667
1668 * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder
1669 step for binary curves. The new implementation is based on formulae from
1670 differential addition-and-doubling in mixed Lopez-Dahab projective
1671 coordinates, modified to independently blind the operands.
1672
1673 *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri*
1674
1675 * Add a scaffold to optionally enhance the Montgomery ladder implementation
1676 for `ec_scalar_mul_ladder` (formerly `ec_mul_consttime`) allowing
1677 EC_METHODs to implement their own specialized "ladder step", to take
1678 advantage of more favorable coordinate systems or more efficient
1679 differential addition-and-doubling algorithms.
1680
1681 *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri*
1682
1683 * Modified the random device based seed sources to keep the relevant
1684 file descriptors open rather than reopening them on each access.
1685 This allows such sources to operate in a chroot() jail without
1686 the associated device nodes being available. This behaviour can be
1687 controlled using RAND_keep_random_devices_open().
1688
1689 *Paul Dale*
1690
1691 * Numerous side-channel attack mitigations have been applied. This may have
1692 performance impacts for some algorithms for the benefit of improved
1693 security. Specific changes are noted in this change log by their respective
1694 authors.
1695
1696 *Matt Caswell*
1697
1698 * AIX shared library support overhaul. Switch to AIX "natural" way of
1699 handling shared libraries, which means collecting shared objects of
1700 different versions and bitnesses in one common archive. This allows to
1701 mitigate conflict between 1.0 and 1.1 side-by-side installations. It
1702 doesn't affect the way 3rd party applications are linked, only how
1703 multi-version installation is managed.
1704
1705 *Andy Polyakov*
1706
1707 * Make ec_group_do_inverse_ord() more robust and available to other
1708 EC cryptosystems, so that irrespective of BN_FLG_CONSTTIME, SCA
1709 mitigations are applied to the fallback BN_mod_inverse().
1710 When using this function rather than BN_mod_inverse() directly, new
1711 EC cryptosystem implementations are then safer-by-default.
1712
1713 *Billy Bob Brumley*
1714
1715 * Add coordinate blinding for EC_POINT and implement projective
1716 coordinate blinding for generic prime curves as a countermeasure to
1717 chosen point SCA attacks.
1718
1719 *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley*
1720
1721 * Add blinding to ECDSA and DSA signatures to protect against side channel
1722 attacks discovered by Keegan Ryan (NCC Group).
1723
1724 *Matt Caswell*
1725
1726 * Enforce checking in the pkeyutl command line app to ensure that the input
1727 length does not exceed the maximum supported digest length when performing
1728 a sign, verify or verifyrecover operation.
1729
1730 *Matt Caswell*
1731
1732 * SSL_MODE_AUTO_RETRY is enabled by default. Applications that use blocking
1733 I/O in combination with something like select() or poll() will hang. This
1734 can be turned off again using SSL_CTX_clear_mode().
1735 Many applications do not properly handle non-application data records, and
1736 TLS 1.3 sends more of such records. Setting SSL_MODE_AUTO_RETRY works
1737 around the problems in those applications, but can also break some.
1738 It's recommended to read the manpages about SSL_read(), SSL_write(),
1739 SSL_get_error(), SSL_shutdown(), SSL_CTX_set_mode() and
1740 SSL_CTX_set_read_ahead() again.
1741
1742 *Kurt Roeckx*
1743
1744 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
1745 now allow empty (zero character) pass phrases.
1746
1747 *Richard Levitte*
1748
1749 * Apply blinding to binary field modular inversion and remove patent
1750 pending (OPENSSL_SUN_GF2M_DIV) BN_GF2m_mod_div implementation.
1751
1752 *Billy Bob Brumley*
1753
1754 * Deprecate ec2_mult.c and unify scalar multiplication code paths for
1755 binary and prime elliptic curves.
1756
1757 *Billy Bob Brumley*
1758
1759 * Remove ECDSA nonce padding: EC_POINT_mul is now responsible for
1760 constant time fixed point multiplication.
1761
1762 *Billy Bob Brumley*
1763
1764 * Revise elliptic curve scalar multiplication with timing attack
1765 defenses: ec_wNAF_mul redirects to a constant time implementation
1766 when computing fixed point and variable point multiplication (which
1767 in OpenSSL are mostly used with secret scalars in keygen, sign,
1768 ECDH derive operations).
1769 *Billy Bob Brumley, Nicola Tuveri, Cesar Pereida García,
1770 Sohaib ul Hassan*
1771
1772 * Updated CONTRIBUTING
1773
1774 *Rich Salz*
1775
1776 * Updated DRBG / RAND to request nonce and additional low entropy
1777 randomness from the system.
1778
1779 *Matthias St. Pierre*
1780
1781 * Updated 'openssl rehash' to use OpenSSL consistent default.
1782
1783 *Richard Levitte*
1784
1785 * Moved the load of the ssl_conf module to libcrypto, which helps
1786 loading engines that libssl uses before libssl is initialised.
1787
1788 *Matt Caswell*
1789
1790 * Added EVP_PKEY_sign() and EVP_PKEY_verify() for EdDSA
1791
1792 *Matt Caswell*
1793
1794 * Fixed X509_NAME_ENTRY_set to get multi-valued RDNs right in all cases.
1795
1796 *Ingo Schwarze, Rich Salz*
1797
1798 * Added output of accepting IP address and port for 'openssl s_server'
1799
1800 *Richard Levitte*
1801
1802 * Added a new API for TLSv1.3 ciphersuites:
1803 SSL_CTX_set_ciphersuites()
1804 SSL_set_ciphersuites()
1805
1806 *Matt Caswell*
1807
1808 * Memory allocation failures consistently add an error to the error
1809 stack.
1810
1811 *Rich Salz*
1812
1813 * Don't use OPENSSL_ENGINES and OPENSSL_CONF environment values
1814 in libcrypto when run as setuid/setgid.
1815
1816 *Bernd Edlinger*
1817
1818 * Load any config file by default when libssl is used.
1819
1820 *Matt Caswell*
1821
1822 * Added new public header file <openssl/rand_drbg.h> and documentation
1823 for the RAND_DRBG API. See manual page RAND_DRBG(7) for an overview.
1824
1825 *Matthias St. Pierre*
1826
1827 * QNX support removed (cannot find contributors to get their approval
1828 for the license change).
1829
1830 *Rich Salz*
1831
1832 * TLSv1.3 replay protection for early data has been implemented. See the
1833 SSL_read_early_data() man page for further details.
1834
1835 *Matt Caswell*
1836
1837 * Separated TLSv1.3 ciphersuite configuration out from TLSv1.2 ciphersuite
1838 configuration. TLSv1.3 ciphersuites are not compatible with TLSv1.2 and
1839 below. Similarly TLSv1.2 ciphersuites are not compatible with TLSv1.3.
1840 In order to avoid issues where legacy TLSv1.2 ciphersuite configuration
1841 would otherwise inadvertently disable all TLSv1.3 ciphersuites the
1842 configuration has been separated out. See the ciphers man page or the
1843 SSL_CTX_set_ciphersuites() man page for more information.
1844
1845 *Matt Caswell*
1846
1847 * On POSIX (BSD, Linux, ...) systems the ocsp(1) command running
1848 in responder mode now supports the new "-multi" option, which
1849 spawns the specified number of child processes to handle OCSP
1850 requests. The "-timeout" option now also limits the OCSP
1851 responder's patience to wait to receive the full client request
1852 on a newly accepted connection. Child processes are respawned
1853 as needed, and the CA index file is automatically reloaded
1854 when changed. This makes it possible to run the "ocsp" responder
1855 as a long-running service, making the OpenSSL CA somewhat more
1856 feature-complete. In this mode, most diagnostic messages logged
1857 after entering the event loop are logged via syslog(3) rather than
1858 written to stderr.
1859
1860 *Viktor Dukhovni*
1861
1862 * Added support for X448 and Ed448. Heavily based on original work by
1863 Mike Hamburg.
1864
1865 *Matt Caswell*
1866
1867 * Extend OSSL_STORE with capabilities to search and to narrow the set of
1868 objects loaded. This adds the functions OSSL_STORE_expect() and
1869 OSSL_STORE_find() as well as needed tools to construct searches and
1870 get the search data out of them.
1871
1872 *Richard Levitte*
1873
1874 * Support for TLSv1.3 added. Note that users upgrading from an earlier
1875 version of OpenSSL should review their configuration settings to ensure
1876 that they are still appropriate for TLSv1.3. For further information see:
257e9d03 1877 <https://wiki.openssl.org/index.php/TLS1.3>
5f8e6c50
DMSP
1878
1879 *Matt Caswell*
1880
1881 * Grand redesign of the OpenSSL random generator
1882
1883 The default RAND method now utilizes an AES-CTR DRBG according to
1884 NIST standard SP 800-90Ar1. The new random generator is essentially
1885 a port of the default random generator from the OpenSSL FIPS 2.0
1886 object module. It is a hybrid deterministic random bit generator
1887 using an AES-CTR bit stream and which seeds and reseeds itself
1888 automatically using trusted system entropy sources.
1889
1890 Some of its new features are:
1891 - Support for multiple DRBG instances with seed chaining.
1892 - The default RAND method makes use of a DRBG.
1893 - There is a public and private DRBG instance.
1894 - The DRBG instances are fork-safe.
1895 - Keep all global DRBG instances on the secure heap if it is enabled.
1896 - The public and private DRBG instance are per thread for lock free
1897 operation
1898
1899 *Paul Dale, Benjamin Kaduk, Kurt Roeckx, Rich Salz, Matthias St. Pierre*
1900
1901 * Changed Configure so it only says what it does and doesn't dump
1902 so much data. Instead, ./configdata.pm should be used as a script
1903 to display all sorts of configuration data.
1904
1905 *Richard Levitte*
1906
1907 * Added processing of "make variables" to Configure.
1908
1909 *Richard Levitte*
1910
1911 * Added SHA512/224 and SHA512/256 algorithm support.
1912
1913 *Paul Dale*
1914
1915 * The last traces of Netware support, first removed in 1.1.0, have
1916 now been removed.
1917
1918 *Rich Salz*
1919
1920 * Get rid of Makefile.shared, and in the process, make the processing
1921 of certain files (rc.obj, or the .def/.map/.opt files produced from
1922 the ordinal files) more visible and hopefully easier to trace and
1923 debug (or make silent).
1924
1925 *Richard Levitte*
1926
1927 * Make it possible to have environment variable assignments as
1928 arguments to config / Configure.
1929
1930 *Richard Levitte*
1931
1932 * Add multi-prime RSA (RFC 8017) support.
1933
1934 *Paul Yang*
1935
1936 * Add SM3 implemented according to GB/T 32905-2016
1dc1ea18
DDO
1937 *Jack Lloyd <jack.lloyd@ribose.com>,*
1938 *Ronald Tse <ronald.tse@ribose.com>,*
1939 *Erick Borsboom <erick.borsboom@ribose.com>*
5f8e6c50
DMSP
1940
1941 * Add 'Maximum Fragment Length' TLS extension negotiation and support
1942 as documented in RFC6066.
1943 Based on a patch from Tomasz Moń
1944
1945 *Filipe Raimundo da Silva*
1946
1947 * Add SM4 implemented according to GB/T 32907-2016.
1dc1ea18
DDO
1948 *Jack Lloyd <jack.lloyd@ribose.com>,*
1949 *Ronald Tse <ronald.tse@ribose.com>,*
1950 *Erick Borsboom <erick.borsboom@ribose.com>*
5f8e6c50
DMSP
1951
1952 * Reimplement -newreq-nodes and ERR_error_string_n; the
1953 original author does not agree with the license change.
1954
1955 *Rich Salz*
1956
1957 * Add ARIA AEAD TLS support.
1958
1959 *Jon Spillett*
1960
1961 * Some macro definitions to support VS6 have been removed. Visual
1962 Studio 6 has not worked since 1.1.0
1963
1964 *Rich Salz*
1965
1966 * Add ERR_clear_last_mark(), to allow callers to clear the last mark
1967 without clearing the errors.
1968
1969 *Richard Levitte*
1970
1971 * Add "atfork" functions. If building on a system that without
1972 pthreads, see doc/man3/OPENSSL_fork_prepare.pod for application
1973 requirements. The RAND facility now uses/requires this.
1974
1975 *Rich Salz*
1976
1977 * Add SHA3.
1978
1979 *Andy Polyakov*
1980
1981 * The UI API becomes a permanent and integral part of libcrypto, i.e.
1982 not possible to disable entirely. However, it's still possible to
1983 disable the console reading UI method, UI_OpenSSL() (use UI_null()
1984 as a fallback).
1985
1986 To disable, configure with 'no-ui-console'. 'no-ui' is still
1987 possible to use as an alias. Check at compile time with the
1988 macro OPENSSL_NO_UI_CONSOLE. The macro OPENSSL_NO_UI is still
1989 possible to check and is an alias for OPENSSL_NO_UI_CONSOLE.
1990
1991 *Richard Levitte*
1992
1993 * Add a STORE module, which implements a uniform and URI based reader of
1994 stores that can contain keys, certificates, CRLs and numerous other
1995 objects. The main API is loosely based on a few stdio functions,
1996 and includes OSSL_STORE_open, OSSL_STORE_load, OSSL_STORE_eof,
1997 OSSL_STORE_error and OSSL_STORE_close.
1998 The implementation uses backends called "loaders" to implement arbitrary
1999 URI schemes. There is one built in "loader" for the 'file' scheme.
2000
2001 *Richard Levitte*
2002
2003 * Add devcrypto engine. This has been implemented against cryptodev-linux,
2004 then adjusted to work on FreeBSD 8.4 as well.
2005 Enable by configuring with 'enable-devcryptoeng'. This is done by default
2006 on BSD implementations, as cryptodev.h is assumed to exist on all of them.
2007
2008 *Richard Levitte*
2009
2010 * Module names can prefixed with OSSL_ or OPENSSL_. This affects
2011 util/mkerr.pl, which is adapted to allow those prefixes, leading to
2012 error code calls like this:
2013
2014 OSSL_FOOerr(OSSL_FOO_F_SOMETHING, OSSL_FOO_R_WHATEVER);
2015
2016 With this change, we claim the namespaces OSSL and OPENSSL in a manner
2017 that can be encoded in C. For the foreseeable future, this will only
2018 affect new modules.
2019
2020 *Richard Levitte and Tim Hudson*
2021
2022 * Removed BSD cryptodev engine.
2023
2024 *Rich Salz*
2025
2026 * Add a build target 'build_all_generated', to build all generated files
2027 and only that. This can be used to prepare everything that requires
2028 things like perl for a system that lacks perl and then move everything
2029 to that system and do the rest of the build there.
2030
2031 *Richard Levitte*
2032
2033 * In the UI interface, make it possible to duplicate the user data. This
2034 can be used by engines that need to retain the data for a longer time
2035 than just the call where this user data is passed.
2036
2037 *Richard Levitte*
2038
2039 * Ignore the '-named_curve auto' value for compatibility of applications
2040 with OpenSSL 1.0.2.
2041
2042 *Tomas Mraz <tmraz@fedoraproject.org>*
2043
2044 * Fragmented SSL/TLS alerts are no longer accepted. An alert message is 2
2045 bytes long. In theory it is permissible in SSLv3 - TLSv1.2 to fragment such
2046 alerts across multiple records (some of which could be empty). In practice
2047 it make no sense to send an empty alert record, or to fragment one. TLSv1.3
44652c16 2048 prohibits this altogether and other libraries (BoringSSL, NSS) do not
5f8e6c50 2049 support this at all. Supporting it adds significant complexity to the
44652c16 2050 record layer, and its removal is unlikely to cause interoperability
5f8e6c50
DMSP
2051 issues.
2052
2053 *Matt Caswell*
2054
2055 * Add the ASN.1 types INT32, UINT32, INT64, UINT64 and variants prefixed
2056 with Z. These are meant to replace LONG and ZLONG and to be size safe.
2057 The use of LONG and ZLONG is discouraged and scheduled for deprecation
2058 in OpenSSL 1.2.0.
2059
2060 *Richard Levitte*
2061
2062 * Add the 'z' and 'j' modifiers to BIO_printf() et al formatting string,
2063 'z' is to be used for [s]size_t, and 'j' - with [u]int64_t.
2064
2065 *Richard Levitte, Andy Polyakov*
2066
2067 * Add EC_KEY_get0_engine(), which does for EC_KEY what RSA_get0_engine()
2068 does for RSA, etc.
2069
2070 *Richard Levitte*
2071
2072 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
2073 platform rather than 'mingw'.
2074
2075 *Richard Levitte*
2076
2077 * The functions X509_STORE_add_cert and X509_STORE_add_crl return
2078 success if they are asked to add an object which already exists
2079 in the store. This change cascades to other functions which load
2080 certificates and CRLs.
2081
2082 *Paul Dale*
2083
2084 * x86_64 assembly pack: annotate code with DWARF CFI directives to
2085 facilitate stack unwinding even from assembly subroutines.
2086
2087 *Andy Polyakov*
2088
2089 * Remove VAX C specific definitions of OPENSSL_EXPORT, OPENSSL_EXTERN.
2090 Also remove OPENSSL_GLOBAL entirely, as it became a no-op.
2091
2092 *Richard Levitte*
2093
2094 * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c.
2095 VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1,
2096 which is the minimum version we support.
2097
2098 *Richard Levitte*
2099
2100 * Certificate time validation (X509_cmp_time) enforces stricter
2101 compliance with RFC 5280. Fractional seconds and timezone offsets
2102 are no longer allowed.
2103
2104 *Emilia Käsper*
2105
2106 * Add support for ARIA
2107
2108 *Paul Dale*
2109
2110 * s_client will now send the Server Name Indication (SNI) extension by
2111 default unless the new "-noservername" option is used. The server name is
2112 based on the host provided to the "-connect" option unless overridden by
2113 using "-servername".
2114
2115 *Matt Caswell*
2116
2117 * Add support for SipHash
2118
2119 *Todd Short*
2120
2121 * OpenSSL now fails if it receives an unrecognised record type in TLS1.0
2122 or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to
2123 prevent issues where no progress is being made and the peer continually
2124 sends unrecognised record types, using up resources processing them.
2125
2126 *Matt Caswell*
2127
2128 * 'openssl passwd' can now produce SHA256 and SHA512 based output,
2129 using the algorithm defined in
257e9d03 2130 <https://www.akkadia.org/drepper/SHA-crypt.txt>
5f8e6c50
DMSP
2131
2132 *Richard Levitte*
2133
2134 * Heartbeat support has been removed; the ABI is changed for now.
2135
2136 *Richard Levitte, Rich Salz*
2137
2138 * Support for SSL_OP_NO_ENCRYPT_THEN_MAC in SSL_CONF_cmd.
2139
2140 *Emilia Käsper*
2141
2142 * The RSA "null" method, which was partially supported to avoid patent
2143 issues, has been replaced to always returns NULL.
2144
2145 *Rich Salz*
2146
44652c16
DMSP
2147OpenSSL 1.1.0
2148-------------
5f8e6c50 2149
257e9d03 2150### Changes between 1.1.0k and 1.1.0l [10 Sep 2019]
5f8e6c50 2151
44652c16 2152 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 2153 used even when parsing explicit parameters, when loading a encoded key
44652c16
DMSP
2154 or calling `EC_GROUP_new_from_ecpkparameters()`/
2155 `EC_GROUP_new_from_ecparameters()`.
2156 This prevents bypass of security hardening and performance gains,
2157 especially for curves with specialized EC_METHODs.
2158 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 2159 encoded, the output is still encoded with explicit parameters, even if
44652c16 2160 internally a "named" EC_GROUP is used for computation.
5f8e6c50 2161
44652c16 2162 *Nicola Tuveri*
5f8e6c50 2163
44652c16
DMSP
2164 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
2165 this change, EC_GROUP_set_generator would accept order and/or cofactor as
2166 NULL. After this change, only the cofactor parameter can be NULL. It also
2167 does some minimal sanity checks on the passed order.
d8dc8538 2168 ([CVE-2019-1547])
5f8e6c50 2169
44652c16 2170 *Billy Bob Brumley*
5f8e6c50 2171
44652c16
DMSP
2172 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
2173 An attack is simple, if the first CMS_recipientInfo is valid but the
2174 second CMS_recipientInfo is chosen ciphertext. If the second
2175 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
2176 encryption key will be replaced by garbage, and the message cannot be
2177 decoded, but if the RSA decryption fails, the correct encryption key is
2178 used and the recipient will not notice the attack.
2179 As a work around for this potential attack the length of the decrypted
2180 key must be equal to the cipher default key length, in case the
2181 certifiate is not given and all recipientInfo are tried out.
2182 The old behaviour can be re-enabled in the CMS code by setting the
2183 CMS_DEBUG_DECRYPT flag.
d8dc8538 2184 ([CVE-2019-1563])
44652c16
DMSP
2185
2186 *Bernd Edlinger*
2187
2188 * Use Windows installation paths in the mingw builds
2189
2190 Mingw isn't a POSIX environment per se, which means that Windows
2191 paths should be used for installation.
d8dc8538 2192 ([CVE-2019-1552])
44652c16
DMSP
2193
2194 *Richard Levitte*
2195
257e9d03 2196### Changes between 1.1.0j and 1.1.0k [28 May 2019]
44652c16
DMSP
2197
2198 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
2199 This changes the size when using the genpkey app when no size is given. It
2200 fixes an omission in earlier changes that changed all RSA, DSA and DH
2201 generation apps to use 2048 bits by default.
2202
2203 *Kurt Roeckx*
2204
2205 * Prevent over long nonces in ChaCha20-Poly1305.
2206
2207 ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input
2208 for every encryption operation. RFC 7539 specifies that the nonce value
2209 (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length
2210 and front pads the nonce with 0 bytes if it is less than 12
2211 bytes. However it also incorrectly allows a nonce to be set of up to 16
2212 bytes. In this case only the last 12 bytes are significant and any
2213 additional leading bytes are ignored.
2214
2215 It is a requirement of using this cipher that nonce values are
2216 unique. Messages encrypted using a reused nonce value are susceptible to
2217 serious confidentiality and integrity attacks. If an application changes
2218 the default nonce length to be longer than 12 bytes and then makes a
2219 change to the leading bytes of the nonce expecting the new value to be a
2220 new unique nonce then such an application could inadvertently encrypt
2221 messages with a reused nonce.
2222
2223 Additionally the ignored bytes in a long nonce are not covered by the
2224 integrity guarantee of this cipher. Any application that relies on the
2225 integrity of these ignored leading bytes of a long nonce may be further
2226 affected. Any OpenSSL internal use of this cipher, including in SSL/TLS,
2227 is safe because no such use sets such a long nonce value. However user
2228 applications that use this cipher directly and set a non-default nonce
2229 length to be longer than 12 bytes may be vulnerable.
2230
2231 This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk
2232 Greef of Ronomon.
d8dc8538 2233 ([CVE-2019-1543])
44652c16
DMSP
2234
2235 *Matt Caswell*
2236
2237 * Added SCA hardening for modular field inversion in EC_GROUP through
2238 a new dedicated field_inv() pointer in EC_METHOD.
2239 This also addresses a leakage affecting conversions from projective
2240 to affine coordinates.
2241
2242 *Billy Bob Brumley, Nicola Tuveri*
2243
2244 * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a
2245 re-used X509_PUBKEY object if the second PUBKEY is malformed.
2246
2247 *Bernd Edlinger*
2248
2249 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
2250
2251 *Richard Levitte*
2252
2253 * Remove the 'dist' target and add a tarball building script. The
2254 'dist' target has fallen out of use, and it shouldn't be
2255 necessary to configure just to create a source distribution.
2256
2257 *Richard Levitte*
2258
257e9d03 2259### Changes between 1.1.0i and 1.1.0j [20 Nov 2018]
44652c16
DMSP
2260
2261 * Timing vulnerability in DSA signature generation
2262
2263 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
2264 timing side channel attack. An attacker could use variations in the signing
2265 algorithm to recover the private key.
2266
2267 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
d8dc8538 2268 ([CVE-2018-0734])
44652c16
DMSP
2269
2270 *Paul Dale*
2271
2272 * Timing vulnerability in ECDSA signature generation
2273
2274 The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a
2275 timing side channel attack. An attacker could use variations in the signing
2276 algorithm to recover the private key.
2277
2278 This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser.
d8dc8538 2279 ([CVE-2018-0735])
44652c16
DMSP
2280
2281 *Paul Dale*
2282
2283 * Add coordinate blinding for EC_POINT and implement projective
2284 coordinate blinding for generic prime curves as a countermeasure to
2285 chosen point SCA attacks.
2286
2287 *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley*
2288
257e9d03 2289### Changes between 1.1.0h and 1.1.0i [14 Aug 2018]
44652c16
DMSP
2290
2291 * Client DoS due to large DH parameter
2292
2293 During key agreement in a TLS handshake using a DH(E) based ciphersuite a
2294 malicious server can send a very large prime value to the client. This will
2295 cause the client to spend an unreasonably long period of time generating a
2296 key for this prime resulting in a hang until the client has finished. This
2297 could be exploited in a Denial Of Service attack.
2298
2299 This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken
d8dc8538 2300 ([CVE-2018-0732])
44652c16
DMSP
2301
2302 *Guido Vranken*
2303
2304 * Cache timing vulnerability in RSA Key Generation
2305
2306 The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to
2307 a cache timing side channel attack. An attacker with sufficient access to
2308 mount cache timing attacks during the RSA key generation process could
2309 recover the private key.
5f8e6c50
DMSP
2310
2311 This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera
2312 Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia.
d8dc8538 2313 ([CVE-2018-0737])
5f8e6c50
DMSP
2314
2315 *Billy Brumley*
2316
2317 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
2318 parameter is no longer accepted, as it leads to a corrupt table. NULL
2319 pem_str is reserved for alias entries only.
2320
2321 *Richard Levitte*
2322
2323 * Revert blinding in ECDSA sign and instead make problematic addition
2324 length-invariant. Switch even to fixed-length Montgomery multiplication.
2325
2326 *Andy Polyakov*
2327
2328 * Change generating and checking of primes so that the error rate of not
2329 being prime depends on the intended use based on the size of the input.
2330 For larger primes this will result in more rounds of Miller-Rabin.
2331 The maximal error rate for primes with more than 1080 bits is lowered
2332 to 2^-128.
2333
2334 *Kurt Roeckx, Annie Yousar*
2335
2336 * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
2337
2338 *Kurt Roeckx*
2339
2340 * Add blinding to ECDSA and DSA signatures to protect against side channel
2341 attacks discovered by Keegan Ryan (NCC Group).
2342
2343 *Matt Caswell*
2344
2345 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
2346 now allow empty (zero character) pass phrases.
2347
2348 *Richard Levitte*
2349
2350 * Certificate time validation (X509_cmp_time) enforces stricter
2351 compliance with RFC 5280. Fractional seconds and timezone offsets
2352 are no longer allowed.
2353
2354 *Emilia Käsper*
2355
2356 * Fixed a text canonicalisation bug in CMS
2357
2358 Where a CMS detached signature is used with text content the text goes
2359 through a canonicalisation process first prior to signing or verifying a
2360 signature. This process strips trailing space at the end of lines, converts
2361 line terminators to CRLF and removes additional trailing line terminators
2362 at the end of a file. A bug in the canonicalisation process meant that
2363 some characters, such as form-feed, were incorrectly treated as whitespace
2364 and removed. This is contrary to the specification (RFC5485). This fix
2365 could mean that detached text data signed with an earlier version of
2366 OpenSSL 1.1.0 may fail to verify using the fixed version, or text data
2367 signed with a fixed OpenSSL may fail to verify with an earlier version of
2368 OpenSSL 1.1.0. A workaround is to only verify the canonicalised text data
2369 and use the "-binary" flag (for the "cms" command line application) or set
2370 the SMIME_BINARY/PKCS7_BINARY/CMS_BINARY flags (if using CMS_verify()).
2371
2372 *Matt Caswell*
2373
257e9d03 2374### Changes between 1.1.0g and 1.1.0h [27 Mar 2018]
5f8e6c50
DMSP
2375
2376 * Constructed ASN.1 types with a recursive definition could exceed the stack
2377
2378 Constructed ASN.1 types with a recursive definition (such as can be found
2379 in PKCS7) could eventually exceed the stack given malicious input with
2380 excessive recursion. This could result in a Denial Of Service attack. There
2381 are no such structures used within SSL/TLS that come from untrusted sources
2382 so this is considered safe.
2383
2384 This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz
2385 project.
d8dc8538 2386 ([CVE-2018-0739])
5f8e6c50
DMSP
2387
2388 *Matt Caswell*
2389
2390 * Incorrect CRYPTO_memcmp on HP-UX PA-RISC
2391
2392 Because of an implementation bug the PA-RISC CRYPTO_memcmp function is
2393 effectively reduced to only comparing the least significant bit of each
2394 byte. This allows an attacker to forge messages that would be considered as
2395 authenticated in an amount of tries lower than that guaranteed by the
2396 security claims of the scheme. The module can only be compiled by the
2397 HP-UX assembler, so that only HP-UX PA-RISC targets are affected.
2398
2399 This issue was reported to OpenSSL on 2nd March 2018 by Peter Waltenberg
2400 (IBM).
d8dc8538 2401 ([CVE-2018-0733])
5f8e6c50
DMSP
2402
2403 *Andy Polyakov*
2404
2405 * Add a build target 'build_all_generated', to build all generated files
2406 and only that. This can be used to prepare everything that requires
2407 things like perl for a system that lacks perl and then move everything
2408 to that system and do the rest of the build there.
2409
2410 *Richard Levitte*
2411
2412 * Backport SSL_OP_NO_RENGOTIATION
2413
2414 OpenSSL 1.0.2 and below had the ability to disable renegotiation using the
2415 (undocumented) SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS flag. Due to the opacity
2416 changes this is no longer possible in 1.1.0. Therefore the new
2417 SSL_OP_NO_RENEGOTIATION option from 1.1.1-dev has been backported to
2418 1.1.0 to provide equivalent functionality.
2419
2420 Note that if an application built against 1.1.0h headers (or above) is run
2421 using an older version of 1.1.0 (prior to 1.1.0h) then the option will be
2422 accepted but nothing will happen, i.e. renegotiation will not be prevented.
2423
2424 *Matt Caswell*
2425
2426 * Removed the OS390-Unix config target. It relied on a script that doesn't
2427 exist.
2428
2429 *Rich Salz*
2430
2431 * rsaz_1024_mul_avx2 overflow bug on x86_64
2432
2433 There is an overflow bug in the AVX2 Montgomery multiplication procedure
2434 used in exponentiation with 1024-bit moduli. No EC algorithms are affected.
2435 Analysis suggests that attacks against RSA and DSA as a result of this
2436 defect would be very difficult to perform and are not believed likely.
2437 Attacks against DH1024 are considered just feasible, because most of the
2438 work necessary to deduce information about a private key may be performed
2439 offline. The amount of resources required for such an attack would be
2440 significant. However, for an attack on TLS to be meaningful, the server
2441 would have to share the DH1024 private key among multiple clients, which is
2442 no longer an option since CVE-2016-0701.
2443
2444 This only affects processors that support the AVX2 but not ADX extensions
2445 like Intel Haswell (4th generation).
2446
2447 This issue was reported to OpenSSL by David Benjamin (Google). The issue
2448 was originally found via the OSS-Fuzz project.
d8dc8538 2449 ([CVE-2017-3738])
5f8e6c50
DMSP
2450
2451 *Andy Polyakov*
2452
257e9d03 2453### Changes between 1.1.0f and 1.1.0g [2 Nov 2017]
5f8e6c50
DMSP
2454
2455 * bn_sqrx8x_internal carry bug on x86_64
2456
2457 There is a carry propagating bug in the x86_64 Montgomery squaring
2458 procedure. No EC algorithms are affected. Analysis suggests that attacks
2459 against RSA and DSA as a result of this defect would be very difficult to
2460 perform and are not believed likely. Attacks against DH are considered just
2461 feasible (although very difficult) because most of the work necessary to
2462 deduce information about a private key may be performed offline. The amount
2463 of resources required for such an attack would be very significant and
2464 likely only accessible to a limited number of attackers. An attacker would
2465 additionally need online access to an unpatched system using the target
2466 private key in a scenario with persistent DH parameters and a private
2467 key that is shared between multiple clients.
2468
2469 This only affects processors that support the BMI1, BMI2 and ADX extensions
2470 like Intel Broadwell (5th generation) and later or AMD Ryzen.
2471
2472 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 2473 ([CVE-2017-3736])
5f8e6c50
DMSP
2474
2475 *Andy Polyakov*
2476
2477 * Malformed X.509 IPAddressFamily could cause OOB read
2478
2479 If an X.509 certificate has a malformed IPAddressFamily extension,
2480 OpenSSL could do a one-byte buffer overread. The most likely result
2481 would be an erroneous display of the certificate in text format.
2482
2483 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 2484 ([CVE-2017-3735])
5f8e6c50
DMSP
2485
2486 *Rich Salz*
2487
257e9d03 2488### Changes between 1.1.0e and 1.1.0f [25 May 2017]
5f8e6c50
DMSP
2489
2490 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
2491 platform rather than 'mingw'.
2492
2493 *Richard Levitte*
2494
2495 * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c.
2496 VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1,
2497 which is the minimum version we support.
2498
2499 *Richard Levitte*
2500
257e9d03 2501### Changes between 1.1.0d and 1.1.0e [16 Feb 2017]
5f8e6c50
DMSP
2502
2503 * Encrypt-Then-Mac renegotiation crash
2504
2505 During a renegotiation handshake if the Encrypt-Then-Mac extension is
2506 negotiated where it was not in the original handshake (or vice-versa) then
2507 this can cause OpenSSL to crash (dependant on ciphersuite). Both clients
2508 and servers are affected.
2509
2510 This issue was reported to OpenSSL by Joe Orton (Red Hat).
d8dc8538 2511 ([CVE-2017-3733])
5f8e6c50
DMSP
2512
2513 *Matt Caswell*
2514
257e9d03 2515### Changes between 1.1.0c and 1.1.0d [26 Jan 2017]
5f8e6c50
DMSP
2516
2517 * Truncated packet could crash via OOB read
2518
2519 If one side of an SSL/TLS path is running on a 32-bit host and a specific
2520 cipher is being used, then a truncated packet can cause that host to
2521 perform an out-of-bounds read, usually resulting in a crash.
2522
2523 This issue was reported to OpenSSL by Robert Święcki of Google.
d8dc8538 2524 ([CVE-2017-3731])
5f8e6c50
DMSP
2525
2526 *Andy Polyakov*
2527
2528 * Bad (EC)DHE parameters cause a client crash
2529
2530 If a malicious server supplies bad parameters for a DHE or ECDHE key
2531 exchange then this can result in the client attempting to dereference a
2532 NULL pointer leading to a client crash. This could be exploited in a Denial
2533 of Service attack.
2534
2535 This issue was reported to OpenSSL by Guido Vranken.
d8dc8538 2536 ([CVE-2017-3730])
5f8e6c50
DMSP
2537
2538 *Matt Caswell*
2539
2540 * BN_mod_exp may produce incorrect results on x86_64
2541
2542 There is a carry propagating bug in the x86_64 Montgomery squaring
2543 procedure. No EC algorithms are affected. Analysis suggests that attacks
2544 against RSA and DSA as a result of this defect would be very difficult to
2545 perform and are not believed likely. Attacks against DH are considered just
2546 feasible (although very difficult) because most of the work necessary to
2547 deduce information about a private key may be performed offline. The amount
2548 of resources required for such an attack would be very significant and
2549 likely only accessible to a limited number of attackers. An attacker would
2550 additionally need online access to an unpatched system using the target
2551 private key in a scenario with persistent DH parameters and a private
2552 key that is shared between multiple clients. For example this can occur by
2553 default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very
2554 similar to CVE-2015-3193 but must be treated as a separate problem.
2555
2556 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 2557 ([CVE-2017-3732])
5f8e6c50
DMSP
2558
2559 *Andy Polyakov*
2560
257e9d03 2561### Changes between 1.1.0b and 1.1.0c [10 Nov 2016]
5f8e6c50
DMSP
2562
2563 * ChaCha20/Poly1305 heap-buffer-overflow
2564
257e9d03 2565 TLS connections using `*-CHACHA20-POLY1305` ciphersuites are susceptible to
5f8e6c50
DMSP
2566 a DoS attack by corrupting larger payloads. This can result in an OpenSSL
2567 crash. This issue is not considered to be exploitable beyond a DoS.
2568
2569 This issue was reported to OpenSSL by Robert Święcki (Google Security Team)
d8dc8538 2570 ([CVE-2016-7054])
5f8e6c50
DMSP
2571
2572 *Richard Levitte*
2573
2574 * CMS Null dereference
2575
2576 Applications parsing invalid CMS structures can crash with a NULL pointer
2577 dereference. This is caused by a bug in the handling of the ASN.1 CHOICE
2578 type in OpenSSL 1.1.0 which can result in a NULL value being passed to the
2579 structure callback if an attempt is made to free certain invalid encodings.
2580 Only CHOICE structures using a callback which do not handle NULL value are
2581 affected.
2582
2583 This issue was reported to OpenSSL by Tyler Nighswander of ForAllSecure.
d8dc8538 2584 ([CVE-2016-7053])
5f8e6c50
DMSP
2585
2586 *Stephen Henson*
2587
2588 * Montgomery multiplication may produce incorrect results
2589
2590 There is a carry propagating bug in the Broadwell-specific Montgomery
2591 multiplication procedure that handles input lengths divisible by, but
2592 longer than 256 bits. Analysis suggests that attacks against RSA, DSA
2593 and DH private keys are impossible. This is because the subroutine in
2594 question is not used in operations with the private key itself and an input
2595 of the attacker's direct choice. Otherwise the bug can manifest itself as
2596 transient authentication and key negotiation failures or reproducible
2597 erroneous outcome of public-key operations with specially crafted input.
2598 Among EC algorithms only Brainpool P-512 curves are affected and one
2599 presumably can attack ECDH key negotiation. Impact was not analyzed in
2600 detail, because pre-requisites for attack are considered unlikely. Namely
2601 multiple clients have to choose the curve in question and the server has to
2602 share the private key among them, neither of which is default behaviour.
2603 Even then only clients that chose the curve will be affected.
2604
2605 This issue was publicly reported as transient failures and was not
2606 initially recognized as a security issue. Thanks to Richard Morgan for
2607 providing reproducible case.
d8dc8538 2608 ([CVE-2016-7055])
5f8e6c50
DMSP
2609
2610 *Andy Polyakov*
2611
2612 * Removed automatic addition of RPATH in shared libraries and executables,
2613 as this was a remainder from OpenSSL 1.0.x and isn't needed any more.
2614
2615 *Richard Levitte*
2616
257e9d03 2617### Changes between 1.1.0a and 1.1.0b [26 Sep 2016]
5f8e6c50
DMSP
2618
2619 * Fix Use After Free for large message sizes
2620
2621 The patch applied to address CVE-2016-6307 resulted in an issue where if a
2622 message larger than approx 16k is received then the underlying buffer to
2623 store the incoming message is reallocated and moved. Unfortunately a
2624 dangling pointer to the old location is left which results in an attempt to
2625 write to the previously freed location. This is likely to result in a
2626 crash, however it could potentially lead to execution of arbitrary code.
2627
2628 This issue only affects OpenSSL 1.1.0a.
2629
2630 This issue was reported to OpenSSL by Robert Święcki.
d8dc8538 2631 ([CVE-2016-6309])
5f8e6c50
DMSP
2632
2633 *Matt Caswell*
2634
257e9d03 2635### Changes between 1.1.0 and 1.1.0a [22 Sep 2016]
5f8e6c50
DMSP
2636
2637 * OCSP Status Request extension unbounded memory growth
2638
2639 A malicious client can send an excessively large OCSP Status Request
2640 extension. If that client continually requests renegotiation, sending a
2641 large OCSP Status Request extension each time, then there will be unbounded
2642 memory growth on the server. This will eventually lead to a Denial Of
2643 Service attack through memory exhaustion. Servers with a default
2644 configuration are vulnerable even if they do not support OCSP. Builds using
2645 the "no-ocsp" build time option are not affected.
2646
2647 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 2648 ([CVE-2016-6304])
5f8e6c50
DMSP
2649
2650 *Matt Caswell*
2651
2652 * SSL_peek() hang on empty record
2653
2654 OpenSSL 1.1.0 SSL/TLS will hang during a call to SSL_peek() if the peer
2655 sends an empty record. This could be exploited by a malicious peer in a
2656 Denial Of Service attack.
2657
2658 This issue was reported to OpenSSL by Alex Gaynor.
d8dc8538 2659 ([CVE-2016-6305])
5f8e6c50
DMSP
2660
2661 *Matt Caswell*
2662
2663 * Excessive allocation of memory in tls_get_message_header() and
2664 dtls1_preprocess_fragment()
2665
2666 A (D)TLS message includes 3 bytes for its length in the header for the
2667 message. This would allow for messages up to 16Mb in length. Messages of
2668 this length are excessive and OpenSSL includes a check to ensure that a
2669 peer is sending reasonably sized messages in order to avoid too much memory
2670 being consumed to service a connection. A flaw in the logic of version
2671 1.1.0 means that memory for the message is allocated too early, prior to
2672 the excessive message length check. Due to way memory is allocated in
2673 OpenSSL this could mean an attacker could force up to 21Mb to be allocated
2674 to service a connection. This could lead to a Denial of Service through
2675 memory exhaustion. However, the excessive message length check still takes
2676 place, and this would cause the connection to immediately fail. Assuming
2677 that the application calls SSL_free() on the failed connection in a timely
2678 manner then the 21Mb of allocated memory will then be immediately freed
2679 again. Therefore the excessive memory allocation will be transitory in
2680 nature. This then means that there is only a security impact if:
2681
2682 1) The application does not call SSL_free() in a timely manner in the event
2683 that the connection fails
2684 or
2685 2) The application is working in a constrained environment where there is
2686 very little free memory
2687 or
2688 3) The attacker initiates multiple connection attempts such that there are
2689 multiple connections in a state where memory has been allocated for the
2690 connection; SSL_free() has not yet been called; and there is insufficient
2691 memory to service the multiple requests.
2692
2693 Except in the instance of (1) above any Denial Of Service is likely to be
2694 transitory because as soon as the connection fails the memory is
2695 subsequently freed again in the SSL_free() call. However there is an
2696 increased risk during this period of application crashes due to the lack of
2697 memory - which would then mean a more serious Denial of Service.
2698
2699 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
2700 (CVE-2016-6307 and CVE-2016-6308)
2701
2702 *Matt Caswell*
2703
2704 * solaris-x86-cc, i.e. 32-bit configuration with vendor compiler,
2705 had to be removed. Primary reason is that vendor assembler can't
2706 assemble our modules with -KPIC flag. As result it, assembly
2707 support, was not even available as option. But its lack means
2708 lack of side-channel resistant code, which is incompatible with
2709 security by todays standards. Fortunately gcc is readily available
2710 prepackaged option, which we firmly point at...
2711
2712 *Andy Polyakov*
2713
257e9d03 2714### Changes between 1.0.2h and 1.1.0 [25 Aug 2016]
5f8e6c50
DMSP
2715
2716 * Windows command-line tool supports UTF-8 opt-in option for arguments
2717 and console input. Setting OPENSSL_WIN32_UTF8 environment variable
2718 (to any value) allows Windows user to access PKCS#12 file generated
2719 with Windows CryptoAPI and protected with non-ASCII password, as well
2720 as files generated under UTF-8 locale on Linux also protected with
2721 non-ASCII password.
2722
2723 *Andy Polyakov*
2724
d8dc8538 2725 * To mitigate the SWEET32 attack ([CVE-2016-2183]), 3DES cipher suites
5f8e6c50
DMSP
2726 have been disabled by default and removed from DEFAULT, just like RC4.
2727 See the RC4 item below to re-enable both.
2728
2729 *Rich Salz*
2730
2731 * The method for finding the storage location for the Windows RAND seed file
2732 has changed. First we check %RANDFILE%. If that is not set then we check
2733 the directories %HOME%, %USERPROFILE% and %SYSTEMROOT% in that order. If
2734 all else fails we fall back to C:\.
2735
2736 *Matt Caswell*
2737
2738 * The EVP_EncryptUpdate() function has had its return type changed from void
2739 to int. A return of 0 indicates and error while a return of 1 indicates
2740 success.
2741
2742 *Matt Caswell*
2743
2744 * The flags RSA_FLAG_NO_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME and
2745 DH_FLAG_NO_EXP_CONSTTIME which previously provided the ability to switch
2746 off the constant time implementation for RSA, DSA and DH have been made
2747 no-ops and deprecated.
2748
2749 *Matt Caswell*
2750
2751 * Windows RAND implementation was simplified to only get entropy by
2752 calling CryptGenRandom(). Various other RAND-related tickets
2753 were also closed.
2754
2755 *Joseph Wylie Yandle, Rich Salz*
2756
257e9d03
RS
2757 * The stack and lhash API's were renamed to start with `OPENSSL_SK_`
2758 and `OPENSSL_LH_`, respectively. The old names are available
5f8e6c50
DMSP
2759 with API compatibility. They new names are now completely documented.
2760
2761 *Rich Salz*
2762
2763 * Unify TYPE_up_ref(obj) methods signature.
2764 SSL_CTX_up_ref(), SSL_up_ref(), X509_up_ref(), EVP_PKEY_up_ref(),
2765 X509_CRL_up_ref(), X509_OBJECT_up_ref_count() methods are now returning an
2766 int (instead of void) like all others TYPE_up_ref() methods.
2767 So now these methods also check the return value of CRYPTO_atomic_add(),
2768 and the validity of object reference counter.
2769
2770 *fdasilvayy@gmail.com*
2771
2772 * With Windows Visual Studio builds, the .pdb files are installed
2773 alongside the installed libraries and executables. For a static
2774 library installation, ossl_static.pdb is the associate compiler
2775 generated .pdb file to be used when linking programs.
2776
2777 *Richard Levitte*
2778
2779 * Remove openssl.spec. Packaging files belong with the packagers.
2780
2781 *Richard Levitte*
2782
2783 * Automatic Darwin/OSX configuration has had a refresh, it will now
2784 recognise x86_64 architectures automatically. You can still decide
2785 to build for a different bitness with the environment variable
2786 KERNEL_BITS (can be 32 or 64), for example:
2787
2788 KERNEL_BITS=32 ./config
2789
2790 *Richard Levitte*
2791
2792 * Change default algorithms in pkcs8 utility to use PKCS#5 v2.0,
2793 256 bit AES and HMAC with SHA256.
2794
2795 *Steve Henson*
2796
2797 * Remove support for MIPS o32 ABI on IRIX (and IRIX only).
2798
2799 *Andy Polyakov*
2800
2801 * Triple-DES ciphers have been moved from HIGH to MEDIUM.
2802
2803 *Rich Salz*
2804
2805 * To enable users to have their own config files and build file templates,
2806 Configure looks in the directory indicated by the environment variable
2807 OPENSSL_LOCAL_CONFIG_DIR as well as the in-source Configurations/
2808 directory. On VMS, OPENSSL_LOCAL_CONFIG_DIR is expected to be a logical
2809 name and is used as is.
2810
2811 *Richard Levitte*
2812
2813 * The following datatypes were made opaque: X509_OBJECT, X509_STORE_CTX,
2814 X509_STORE, X509_LOOKUP, and X509_LOOKUP_METHOD. The unused type
2815 X509_CERT_FILE_CTX was removed.
2816
2817 *Rich Salz*
2818
2819 * "shared" builds are now the default. To create only static libraries use
2820 the "no-shared" Configure option.
2821
2822 *Matt Caswell*
2823
2824 * Remove the no-aes, no-hmac, no-rsa, no-sha and no-md5 Configure options.
2825 All of these option have not worked for some while and are fundamental
2826 algorithms.
2827
2828 *Matt Caswell*
2829
2830 * Make various cleanup routines no-ops and mark them as deprecated. Most
2831 global cleanup functions are no longer required because they are handled
2832 via auto-deinit (see OPENSSL_init_crypto and OPENSSL_init_ssl man pages).
2833 Explicitly de-initing can cause problems (e.g. where a library that uses
2834 OpenSSL de-inits, but an application is still using it). The affected
2835 functions are CONF_modules_free(), ENGINE_cleanup(), OBJ_cleanup(),
2836 EVP_cleanup(), BIO_sock_cleanup(), CRYPTO_cleanup_all_ex_data(),
2837 RAND_cleanup(), SSL_COMP_free_compression_methods(), ERR_free_strings() and
2838 COMP_zlib_cleanup().
2839
2840 *Matt Caswell*
2841
2842 * --strict-warnings no longer enables runtime debugging options
2843 such as REF_DEBUG. Instead, debug options are automatically
2844 enabled with '--debug' builds.
2845
2846 *Andy Polyakov, Emilia Käsper*
2847
2848 * Made DH and DH_METHOD opaque. The structures for managing DH objects
2849 have been moved out of the public header files. New functions for managing
2850 these have been added.
2851
2852 *Matt Caswell*
2853
2854 * Made RSA and RSA_METHOD opaque. The structures for managing RSA
2855 objects have been moved out of the public header files. New
2856 functions for managing these have been added.
2857
2858 *Richard Levitte*
2859
2860 * Made DSA and DSA_METHOD opaque. The structures for managing DSA objects
2861 have been moved out of the public header files. New functions for managing
2862 these have been added.
2863
2864 *Matt Caswell*
2865
2866 * Made BIO and BIO_METHOD opaque. The structures for managing BIOs have been
2867 moved out of the public header files. New functions for managing these
2868 have been added.
2869
2870 *Matt Caswell*
2871
2872 * Removed no-rijndael as a config option. Rijndael is an old name for AES.
2873
2874 *Matt Caswell*
2875
2876 * Removed the mk1mf build scripts.
2877
2878 *Richard Levitte*
2879
2880 * Headers are now wrapped, if necessary, with OPENSSL_NO_xxx, so
2881 it is always safe to #include a header now.
2882
2883 *Rich Salz*
2884
2885 * Removed the aged BC-32 config and all its supporting scripts
2886
2887 *Richard Levitte*
2888
2889 * Removed support for Ultrix, Netware, and OS/2.
2890
2891 *Rich Salz*
2892
2893 * Add support for HKDF.
2894
2895 *Alessandro Ghedini*
2896
2897 * Add support for blake2b and blake2s
2898
2899 *Bill Cox*
2900
2901 * Added support for "pipelining". Ciphers that have the
2902 EVP_CIPH_FLAG_PIPELINE flag set have a capability to process multiple
2903 encryptions/decryptions simultaneously. There are currently no built-in
2904 ciphers with this property but the expectation is that engines will be able
2905 to offer it to significantly improve throughput. Support has been extended
2906 into libssl so that multiple records for a single connection can be
2907 processed in one go (for >=TLS 1.1).
2908
2909 *Matt Caswell*
2910
2911 * Added the AFALG engine. This is an async capable engine which is able to
2912 offload work to the Linux kernel. In this initial version it only supports
2913 AES128-CBC. The kernel must be version 4.1.0 or greater.
2914
2915 *Catriona Lucey*
2916
2917 * OpenSSL now uses a new threading API. It is no longer necessary to
2918 set locking callbacks to use OpenSSL in a multi-threaded environment. There
2919 are two supported threading models: pthreads and windows threads. It is
2920 also possible to configure OpenSSL at compile time for "no-threads". The
2921 old threading API should no longer be used. The functions have been
2922 replaced with "no-op" compatibility macros.
2923
2924 *Alessandro Ghedini, Matt Caswell*
2925
2926 * Modify behavior of ALPN to invoke callback after SNI/servername
2927 callback, such that updates to the SSL_CTX affect ALPN.
2928
2929 *Todd Short*
2930
2931 * Add SSL_CIPHER queries for authentication and key-exchange.
2932
2933 *Todd Short*
2934
2935 * Changes to the DEFAULT cipherlist:
257e9d03
RS
2936 - Prefer (EC)DHE handshakes over plain RSA.
2937 - Prefer AEAD ciphers over legacy ciphers.
2938 - Prefer ECDSA over RSA when both certificates are available.
2939 - Prefer TLSv1.2 ciphers/PRF.
2940 - Remove DSS, SEED, IDEA, CAMELLIA, and AES-CCM from the
2941 default cipherlist.
5f8e6c50
DMSP
2942
2943 *Emilia Käsper*
2944
2945 * Change the ECC default curve list to be this, in order: x25519,
2946 secp256r1, secp521r1, secp384r1.
2947
2948 *Rich Salz*
2949
2950 * RC4 based libssl ciphersuites are now classed as "weak" ciphers and are
2951 disabled by default. They can be re-enabled using the
2952 enable-weak-ssl-ciphers option to Configure.
2953
2954 *Matt Caswell*
2955
2956 * If the server has ALPN configured, but supports no protocols that the
2957 client advertises, send a fatal "no_application_protocol" alert.
2958 This behaviour is SHALL in RFC 7301, though it isn't universally
2959 implemented by other servers.
2960
2961 *Emilia Käsper*
2962
2963 * Add X25519 support.
2964 Add ASN.1 and EVP_PKEY methods for X25519. This includes support
2965 for public and private key encoding using the format documented in
2966 draft-ietf-curdle-pkix-02. The corresponding EVP_PKEY method supports
2967 key generation and key derivation.
2968
2969 TLS support complies with draft-ietf-tls-rfc4492bis-08 and uses
2970 X25519(29).
2971
2972 *Steve Henson*
2973
2974 * Deprecate SRP_VBASE_get_by_user.
2975 SRP_VBASE_get_by_user had inconsistent memory management behaviour.
d8dc8538 2976 In order to fix an unavoidable memory leak ([CVE-2016-0798]),
5f8e6c50
DMSP
2977 SRP_VBASE_get_by_user was changed to ignore the "fake user" SRP
2978 seed, even if the seed is configured.
2979
2980 Users should use SRP_VBASE_get1_by_user instead. Note that in
2981 SRP_VBASE_get1_by_user, caller must free the returned value. Note
2982 also that even though configuring the SRP seed attempts to hide
2983 invalid usernames by continuing the handshake with fake
2984 credentials, this behaviour is not constant time and no strong
2985 guarantees are made that the handshake is indistinguishable from
2986 that of a valid user.
2987
2988 *Emilia Käsper*
2989
2990 * Configuration change; it's now possible to build dynamic engines
2991 without having to build shared libraries and vice versa. This
2992 only applies to the engines in engines/, those in crypto/engine/
2993 will always be built into libcrypto (i.e. "static").
2994
2995 Building dynamic engines is enabled by default; to disable, use
2996 the configuration option "disable-dynamic-engine".
2997
2998 The only requirements for building dynamic engines are the
2999 presence of the DSO module and building with position independent
3000 code, so they will also automatically be disabled if configuring
3001 with "disable-dso" or "disable-pic".
3002
3003 The macros OPENSSL_NO_STATIC_ENGINE and OPENSSL_NO_DYNAMIC_ENGINE
3004 are also taken away from openssl/opensslconf.h, as they are
3005 irrelevant.
3006
3007 *Richard Levitte*
3008
3009 * Configuration change; if there is a known flag to compile
3010 position independent code, it will always be applied on the
3011 libcrypto and libssl object files, and never on the application
3012 object files. This means other libraries that use routines from
3013 libcrypto / libssl can be made into shared libraries regardless
3014 of how OpenSSL was configured.
3015
3016 If this isn't desirable, the configuration options "disable-pic"
3017 or "no-pic" can be used to disable the use of PIC. This will
3018 also disable building shared libraries and dynamic engines.
3019
3020 *Richard Levitte*
3021
3022 * Removed JPAKE code. It was experimental and has no wide use.
3023
3024 *Rich Salz*
3025
3026 * The INSTALL_PREFIX Makefile variable has been renamed to
3027 DESTDIR. That makes for less confusion on what this variable
3028 is for. Also, the configuration option --install_prefix is
3029 removed.
3030
3031 *Richard Levitte*
3032
3033 * Heartbeat for TLS has been removed and is disabled by default
3034 for DTLS; configure with enable-heartbeats. Code that uses the
3035 old #define's might need to be updated.
3036
3037 *Emilia Käsper, Rich Salz*
3038
3039 * Rename REF_CHECK to REF_DEBUG.
3040
3041 *Rich Salz*
3042
3043 * New "unified" build system
3044
3045 The "unified" build system is aimed to be a common system for all
3046 platforms we support. With it comes new support for VMS.
3047
3048 This system builds supports building in a different directory tree
3049 than the source tree. It produces one Makefile (for unix family
3050 or lookalikes), or one descrip.mms (for VMS).
3051
3052 The source of information to make the Makefile / descrip.mms is
3053 small files called 'build.info', holding the necessary
3054 information for each directory with source to compile, and a
3055 template in Configurations, like unix-Makefile.tmpl or
3056 descrip.mms.tmpl.
3057
3058 With this change, the library names were also renamed on Windows
3059 and on VMS. They now have names that are closer to the standard
3060 on Unix, and include the major version number, and in certain
3061 cases, the architecture they are built for. See "Notes on shared
3062 libraries" in INSTALL.
3063
3064 We rely heavily on the perl module Text::Template.
3065
3066 *Richard Levitte*
3067
3068 * Added support for auto-initialisation and de-initialisation of the library.
3069 OpenSSL no longer requires explicit init or deinit routines to be called,
3070 except in certain circumstances. See the OPENSSL_init_crypto() and
3071 OPENSSL_init_ssl() man pages for further information.
3072
3073 *Matt Caswell*
3074
3075 * The arguments to the DTLSv1_listen function have changed. Specifically the
3076 "peer" argument is now expected to be a BIO_ADDR object.
3077
3078 * Rewrite of BIO networking library. The BIO library lacked consistent
3079 support of IPv6, and adding it required some more extensive
3080 modifications. This introduces the BIO_ADDR and BIO_ADDRINFO types,
3081 which hold all types of addresses and chains of address information.
3082 It also introduces a new API, with functions like BIO_socket,
3083 BIO_connect, BIO_listen, BIO_lookup and a rewrite of BIO_accept.
3084 The source/sink BIOs BIO_s_connect, BIO_s_accept and BIO_s_datagram
3085 have been adapted accordingly.
3086
3087 *Richard Levitte*
3088
3089 * RSA_padding_check_PKCS1_type_1 now accepts inputs with and without
3090 the leading 0-byte.
3091
3092 *Emilia Käsper*
3093
3094 * CRIME protection: disable compression by default, even if OpenSSL is
3095 compiled with zlib enabled. Applications can still enable compression
3096 by calling SSL_CTX_clear_options(ctx, SSL_OP_NO_COMPRESSION), or by
3097 using the SSL_CONF library to configure compression.
3098
3099 *Emilia Käsper*
3100
3101 * The signature of the session callback configured with
3102 SSL_CTX_sess_set_get_cb was changed. The read-only input buffer
257e9d03
RS
3103 was explicitly marked as `const unsigned char*` instead of
3104 `unsigned char*`.
5f8e6c50
DMSP
3105
3106 *Emilia Käsper*
3107
3108 * Always DPURIFY. Remove the use of uninitialized memory in the
3109 RNG, and other conditional uses of DPURIFY. This makes -DPURIFY a no-op.
3110
3111 *Emilia Käsper*
3112
3113 * Removed many obsolete configuration items, including
3114 DES_PTR, DES_RISC1, DES_RISC2, DES_INT
3115 MD2_CHAR, MD2_INT, MD2_LONG
3116 BF_PTR, BF_PTR2
3117 IDEA_SHORT, IDEA_LONG
3118 RC2_SHORT, RC2_LONG, RC4_LONG, RC4_CHUNK, RC4_INDEX
3119
3120 *Rich Salz, with advice from Andy Polyakov*
3121
3122 * Many BN internals have been moved to an internal header file.
3123
3124 *Rich Salz with help from Andy Polyakov*
3125
3126 * Configuration and writing out the results from it has changed.
3127 Files such as Makefile include/openssl/opensslconf.h and are now
3128 produced through general templates, such as Makefile.in and
3129 crypto/opensslconf.h.in and some help from the perl module
3130 Text::Template.
3131
3132 Also, the center of configuration information is no longer
3133 Makefile. Instead, Configure produces a perl module in
3134 configdata.pm which holds most of the config data (in the hash
3135 table %config), the target data that comes from the target
1dc1ea18 3136 configuration in one of the `Configurations/*.conf` files (in
5f8e6c50
DMSP
3137 %target).
3138
3139 *Richard Levitte*
3140
3141 * To clarify their intended purposes, the Configure options
3142 --prefix and --openssldir change their semantics, and become more
3143 straightforward and less interdependent.
3144
3145 --prefix shall be used exclusively to give the location INSTALLTOP
3146 where programs, scripts, libraries, include files and manuals are
3147 going to be installed. The default is now /usr/local.
3148
3149 --openssldir shall be used exclusively to give the default
3150 location OPENSSLDIR where certificates, private keys, CRLs are
3151 managed. This is also where the default openssl.cnf gets
3152 installed.
3153 If the directory given with this option is a relative path, the
3154 values of both the --prefix value and the --openssldir value will
3155 be combined to become OPENSSLDIR.
3156 The default for --openssldir is INSTALLTOP/ssl.
3157
3158 Anyone who uses --openssldir to specify where OpenSSL is to be
3159 installed MUST change to use --prefix instead.
3160
3161 *Richard Levitte*
3162
3163 * The GOST engine was out of date and therefore it has been removed. An up
3164 to date GOST engine is now being maintained in an external repository.
257e9d03 3165 See: <https://wiki.openssl.org/index.php/Binaries>. Libssl still retains
5f8e6c50
DMSP
3166 support for GOST ciphersuites (these are only activated if a GOST engine
3167 is present).
3168
3169 *Matt Caswell*
3170
3171 * EGD is no longer supported by default; use enable-egd when
3172 configuring.
3173
3174 *Ben Kaduk and Rich Salz*
3175
3176 * The distribution now has Makefile.in files, which are used to
3177 create Makefile's when Configure is run. *Configure must be run
3178 before trying to build now.*
3179
3180 *Rich Salz*
3181
3182 * The return value for SSL_CIPHER_description() for error conditions
3183 has changed.
3184
3185 *Rich Salz*
3186
3187 * Support for RFC6698/RFC7671 DANE TLSA peer authentication.
3188
3189 Obtaining and performing DNSSEC validation of TLSA records is
3190 the application's responsibility. The application provides
3191 the TLSA records of its choice to OpenSSL, and these are then
3192 used to authenticate the peer.
3193
3194 The TLSA records need not even come from DNS. They can, for
3195 example, be used to implement local end-entity certificate or
3196 trust-anchor "pinning", where the "pin" data takes the form
3197 of TLSA records, which can augment or replace verification
3198 based on the usual WebPKI public certification authorities.
3199
3200 *Viktor Dukhovni*
3201
3202 * Revert default OPENSSL_NO_DEPRECATED setting. Instead OpenSSL
3203 continues to support deprecated interfaces in default builds.
3204 However, applications are strongly advised to compile their
3205 source files with -DOPENSSL_API_COMPAT=0x10100000L, which hides
3206 the declarations of all interfaces deprecated in 0.9.8, 1.0.0
3207 or the 1.1.0 releases.
3208
3209 In environments in which all applications have been ported to
3210 not use any deprecated interfaces OpenSSL's Configure script
3211 should be used with the --api=1.1.0 option to entirely remove
3212 support for the deprecated features from the library and
3213 unconditionally disable them in the installed headers.
3214 Essentially the same effect can be achieved with the "no-deprecated"
3215 argument to Configure, except that this will always restrict
3216 the build to just the latest API, rather than a fixed API
3217 version.
3218
3219 As applications are ported to future revisions of the API,
3220 they should update their compile-time OPENSSL_API_COMPAT define
3221 accordingly, but in most cases should be able to continue to
3222 compile with later releases.
3223
3224 The OPENSSL_API_COMPAT versions for 1.0.0, and 0.9.8 are
3225 0x10000000L and 0x00908000L, respectively. However those
3226 versions did not support the OPENSSL_API_COMPAT feature, and
3227 so applications are not typically tested for explicit support
3228 of just the undeprecated features of either release.
3229
3230 *Viktor Dukhovni*
3231
3232 * Add support for setting the minimum and maximum supported protocol.
3233 It can bet set via the SSL_set_min_proto_version() and
3234 SSL_set_max_proto_version(), or via the SSL_CONF's MinProtocol and
3235 MaxProtocol. It's recommended to use the new APIs to disable
3236 protocols instead of disabling individual protocols using
3237 SSL_set_options() or SSL_CONF's Protocol. This change also
3238 removes support for disabling TLS 1.2 in the OpenSSL TLS
3239 client at compile time by defining OPENSSL_NO_TLS1_2_CLIENT.
3240
3241 *Kurt Roeckx*
3242
3243 * Support for ChaCha20 and Poly1305 added to libcrypto and libssl.
3244
3245 *Andy Polyakov*
3246
3247 * New EC_KEY_METHOD, this replaces the older ECDSA_METHOD and ECDH_METHOD
3248 and integrates ECDSA and ECDH functionality into EC. Implementations can
3249 now redirect key generation and no longer need to convert to or from
3250 ECDSA_SIG format.
3251
3252 Note: the ecdsa.h and ecdh.h headers are now no longer needed and just
3253 include the ec.h header file instead.
3254
3255 *Steve Henson*
3256
3257 * Remove support for all 40 and 56 bit ciphers. This includes all the export
3258 ciphers who are no longer supported and drops support the ephemeral RSA key
3259 exchange. The LOW ciphers currently doesn't have any ciphers in it.
3260
3261 *Kurt Roeckx*
3262
3263 * Made EVP_MD_CTX, EVP_MD, EVP_CIPHER_CTX, EVP_CIPHER and HMAC_CTX
3264 opaque. For HMAC_CTX, the following constructors and destructors
3265 were added:
3266
1dc1ea18
DDO
3267 HMAC_CTX *HMAC_CTX_new(void);
3268 void HMAC_CTX_free(HMAC_CTX *ctx);
5f8e6c50
DMSP
3269
3270 For EVP_MD and EVP_CIPHER, complete APIs to create, fill and
3271 destroy such methods has been added. See EVP_MD_meth_new(3) and
3272 EVP_CIPHER_meth_new(3) for documentation.
3273
3274 Additional changes:
1dc1ea18
DDO
3275 1) `EVP_MD_CTX_cleanup()`, `EVP_CIPHER_CTX_cleanup()` and
3276 `HMAC_CTX_cleanup()` were removed. `HMAC_CTX_reset()` and
3277 `EVP_MD_CTX_reset()` should be called instead to reinitialise
5f8e6c50
DMSP
3278 an already created structure.
3279 2) For consistency with the majority of our object creators and
1dc1ea18
DDO
3280 destructors, `EVP_MD_CTX_(create|destroy)` were renamed to
3281 `EVP_MD_CTX_(new|free)`. The old names are retained as macros
5f8e6c50
DMSP
3282 for deprecated builds.
3283
3284 *Richard Levitte*
3285
3286 * Added ASYNC support. Libcrypto now includes the async sub-library to enable
3287 cryptographic operations to be performed asynchronously as long as an
3288 asynchronous capable engine is used. See the ASYNC_start_job() man page for
3289 further details. Libssl has also had this capability integrated with the
3290 introduction of the new mode SSL_MODE_ASYNC and associated error
3291 SSL_ERROR_WANT_ASYNC. See the SSL_CTX_set_mode() and SSL_get_error() man
3292 pages. This work was developed in partnership with Intel Corp.
3293
3294 *Matt Caswell*
3295
3296 * SSL_{CTX_}set_ecdh_auto() has been removed and ECDH is support is
3297 always enabled now. If you want to disable the support you should
3298 exclude it using the list of supported ciphers. This also means that the
3299 "-no_ecdhe" option has been removed from s_server.
3300
3301 *Kurt Roeckx*
3302
3303 * SSL_{CTX}_set_tmp_ecdh() which can set 1 EC curve now internally calls
3304 SSL_{CTX_}set1_curves() which can set a list.
3305
3306 *Kurt Roeckx*
3307
3308 * Remove support for SSL_{CTX_}set_tmp_ecdh_callback(). You should set the
3309 curve you want to support using SSL_{CTX_}set1_curves().
3310
3311 *Kurt Roeckx*
3312
3313 * State machine rewrite. The state machine code has been significantly
3314 refactored in order to remove much duplication of code and solve issues
036cbb6b
DDO
3315 with the old code (see [ssl/statem/README.md](ssl/statem/README.md) for
3316 further details). This change does have some associated API changes.
3317 Notably the SSL_state() function has been removed and replaced by
3318 SSL_get_state which now returns an "OSSL_HANDSHAKE_STATE" instead of an int.
3319 SSL_set_state() has been removed altogether. The previous handshake states
3320 defined in ssl.h and ssl3.h have also been removed.
5f8e6c50
DMSP
3321
3322 *Matt Caswell*
3323
3324 * All instances of the string "ssleay" in the public API were replaced
3325 with OpenSSL (case-matching; e.g., OPENSSL_VERSION for #define's)
3326 Some error codes related to internal RSA_eay API's were renamed.
3327
3328 *Rich Salz*
3329
3330 * The demo files in crypto/threads were moved to demo/threads.
3331
3332 *Rich Salz*
3333
3334 * Removed obsolete engines: 4758cca, aep, atalla, cswift, nuron, gmp,
3335 sureware and ubsec.
3336
3337 *Matt Caswell, Rich Salz*
3338
3339 * New ASN.1 embed macro.
3340
3341 New ASN.1 macro ASN1_EMBED. This is the same as ASN1_SIMPLE except the
3342 structure is not allocated: it is part of the parent. That is instead of
3343
3344 FOO *x;
3345
3346 it must be:
3347
3348 FOO x;
3349
3350 This reduces memory fragmentation and make it impossible to accidentally
3351 set a mandatory field to NULL.
3352
3353 This currently only works for some fields specifically a SEQUENCE, CHOICE,
3354 or ASN1_STRING type which is part of a parent SEQUENCE. Since it is
3355 equivalent to ASN1_SIMPLE it cannot be tagged, OPTIONAL, SET OF or
3356 SEQUENCE OF.
3357
3358 *Steve Henson*
3359
3360 * Remove EVP_CHECK_DES_KEY, a compile-time option that never compiled.
3361
3362 *Emilia Käsper*
3363
3364 * Removed DES and RC4 ciphersuites from DEFAULT. Also removed RC2 although
3365 in 1.0.2 EXPORT was already removed and the only RC2 ciphersuite is also
3366 an EXPORT one. COMPLEMENTOFDEFAULT has been updated accordingly to add
3367 DES and RC4 ciphersuites.
3368
3369 *Matt Caswell*
3370
3371 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
3372 This changes the decoding behaviour for some invalid messages,
3373 though the change is mostly in the more lenient direction, and
3374 legacy behaviour is preserved as much as possible.
3375
3376 *Emilia Käsper*
3377
3378 * Fix no-stdio build.
1dc1ea18
DDO
3379 *David Woodhouse <David.Woodhouse@intel.com> and also*
3380 *Ivan Nestlerode <ivan.nestlerode@sonos.com>*
5f8e6c50
DMSP
3381
3382 * New testing framework
3383 The testing framework has been largely rewritten and is now using
3384 perl and the perl modules Test::Harness and an extended variant of
3385 Test::More called OpenSSL::Test to do its work. All test scripts in
3386 test/ have been rewritten into test recipes, and all direct calls to
3387 executables in test/Makefile have become individual recipes using the
3388 simplified testing OpenSSL::Test::Simple.
3389
3390 For documentation on our testing modules, do:
3391
3392 perldoc test/testlib/OpenSSL/Test/Simple.pm
3393 perldoc test/testlib/OpenSSL/Test.pm
3394
3395 *Richard Levitte*
3396
3397 * Revamped memory debug; only -DCRYPTO_MDEBUG and -DCRYPTO_MDEBUG_ABORT
3398 are used; the latter aborts on memory leaks (usually checked on exit).
3399 Some undocumented "set malloc, etc., hooks" functions were removed
3400 and others were changed. All are now documented.
3401
3402 *Rich Salz*
3403
3404 * In DSA_generate_parameters_ex, if the provided seed is too short,
3405 return an error
3406
3407 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
3408
3409 * Rewrite PSK to support ECDHE_PSK, DHE_PSK and RSA_PSK. Add ciphersuites
3410 from RFC4279, RFC4785, RFC5487, RFC5489.
3411
3412 Thanks to Christian J. Dietrich and Giuseppe D'Angelo for the
3413 original RSA_PSK patch.
3414
3415 *Steve Henson*
3416
3417 * Dropped support for the SSL3_FLAGS_DELAY_CLIENT_FINISHED flag. This SSLeay
3418 era flag was never set throughout the codebase (only read). Also removed
3419 SSL3_FLAGS_POP_BUFFER which was only used if
3420 SSL3_FLAGS_DELAY_CLIENT_FINISHED was also set.
3421
3422 *Matt Caswell*
3423
3424 * Changed the default name options in the "ca", "crl", "req" and "x509"
3425 to be "oneline" instead of "compat".
3426
3427 *Richard Levitte*
3428
3429 * Remove SSL_OP_TLS_BLOCK_PADDING_BUG. This is SSLeay legacy, we're
3430 not aware of clients that still exhibit this bug, and the workaround
3431 hasn't been working properly for a while.
3432
3433 *Emilia Käsper*
3434
3435 * The return type of BIO_number_read() and BIO_number_written() as well as
3436 the corresponding num_read and num_write members in the BIO structure has
3437 changed from unsigned long to uint64_t. On platforms where an unsigned
3438 long is 32 bits (e.g. Windows) these counters could overflow if >4Gb is
3439 transferred.
3440
3441 *Matt Caswell*
3442
3443 * Given the pervasive nature of TLS extensions it is inadvisable to run
3444 OpenSSL without support for them. It also means that maintaining
3445 the OPENSSL_NO_TLSEXT option within the code is very invasive (and probably
3446 not well tested). Therefore the OPENSSL_NO_TLSEXT option has been removed.
3447
3448 *Matt Caswell*
3449
3450 * Removed support for the two export grade static DH ciphersuites
3451 EXP-DH-RSA-DES-CBC-SHA and EXP-DH-DSS-DES-CBC-SHA. These two ciphersuites
3452 were newly added (along with a number of other static DH ciphersuites) to
3453 1.0.2. However the two export ones have *never* worked since they were
3454 introduced. It seems strange in any case to be adding new export
3455 ciphersuites, and given "logjam" it also does not seem correct to fix them.
3456
3457 *Matt Caswell*
3458
3459 * Version negotiation has been rewritten. In particular SSLv23_method(),
3460 SSLv23_client_method() and SSLv23_server_method() have been deprecated,
3461 and turned into macros which simply call the new preferred function names
3462 TLS_method(), TLS_client_method() and TLS_server_method(). All new code
3463 should use the new names instead. Also as part of this change the ssl23.h
3464 header file has been removed.
3465
3466 *Matt Caswell*
3467
3468 * Support for Kerberos ciphersuites in TLS (RFC2712) has been removed. This
3469 code and the associated standard is no longer considered fit-for-purpose.
3470
3471 *Matt Caswell*
3472
3473 * RT2547 was closed. When generating a private key, try to make the
3474 output file readable only by the owner. This behavior change might
3475 be noticeable when interacting with other software.
3476
3477 * Documented all exdata functions. Added CRYPTO_free_ex_index.
3478 Added a test.
3479
3480 *Rich Salz*
3481
3482 * Added HTTP GET support to the ocsp command.
3483
3484 *Rich Salz*
3485
3486 * Changed default digest for the dgst and enc commands from MD5 to
3487 sha256
3488
3489 *Rich Salz*
3490
3491 * RAND_pseudo_bytes has been deprecated. Users should use RAND_bytes instead.
3492
3493 *Matt Caswell*
3494
3495 * Added support for TLS extended master secret from
3496 draft-ietf-tls-session-hash-03.txt. Thanks for Alfredo Pironti for an
3497 initial patch which was a great help during development.
3498
3499 *Steve Henson*
3500
3501 * All libssl internal structures have been removed from the public header
3502 files, and the OPENSSL_NO_SSL_INTERN option has been removed (since it is
3503 now redundant). Users should not attempt to access internal structures
3504 directly. Instead they should use the provided API functions.
3505
3506 *Matt Caswell*
3507
3508 * config has been changed so that by default OPENSSL_NO_DEPRECATED is used.
3509 Access to deprecated functions can be re-enabled by running config with
3510 "enable-deprecated". In addition applications wishing to use deprecated
3511 functions must define OPENSSL_USE_DEPRECATED. Note that this new behaviour
3512 will, by default, disable some transitive includes that previously existed
3513 in the header files (e.g. ec.h will no longer, by default, include bn.h)
3514
3515 *Matt Caswell*
3516
3517 * Added support for OCB mode. OpenSSL has been granted a patent license
3518 compatible with the OpenSSL license for use of OCB. Details are available
257e9d03 3519 at <https://www.openssl.org/source/OCB-patent-grant-OpenSSL.pdf>. Support
5f8e6c50
DMSP
3520 for OCB can be removed by calling config with no-ocb.
3521
3522 *Matt Caswell*
3523
3524 * SSLv2 support has been removed. It still supports receiving a SSLv2
3525 compatible client hello.
3526
3527 *Kurt Roeckx*
3528
3529 * Increased the minimal RSA keysize from 256 to 512 bits [Rich Salz],
3530 done while fixing the error code for the key-too-small case.
3531
3532 *Annie Yousar <a.yousar@informatik.hu-berlin.de>*
3533
3534 * CA.sh has been removed; use CA.pl instead.
3535
3536 *Rich Salz*
3537
3538 * Removed old DES API.
3539
3540 *Rich Salz*
3541
3542 * Remove various unsupported platforms:
3543 Sony NEWS4
3544 BEOS and BEOS_R5
3545 NeXT
3546 SUNOS
3547 MPE/iX
3548 Sinix/ReliantUNIX RM400
3549 DGUX
3550 NCR
3551 Tandem
3552 Cray
3553 16-bit platforms such as WIN16
3554
3555 *Rich Salz*
3556
3557 * Clean up OPENSSL_NO_xxx #define's
257e9d03
RS
3558 - Use setbuf() and remove OPENSSL_NO_SETVBUF_IONBF
3559 - Rename OPENSSL_SYSNAME_xxx to OPENSSL_SYS_xxx
3560 - OPENSSL_NO_EC{DH,DSA} merged into OPENSSL_NO_EC
3561 - OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160
3562 - OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO
3563 - Remove OPENSSL_NO_BIO OPENSSL_NO_BUFFER OPENSSL_NO_CHAIN_VERIFY
3564 OPENSSL_NO_EVP OPENSSL_NO_FIPS_ERR OPENSSL_NO_HASH_COMP
3565 OPENSSL_NO_LHASH OPENSSL_NO_OBJECT OPENSSL_NO_SPEED OPENSSL_NO_STACK
3566 OPENSSL_NO_X509 OPENSSL_NO_X509_VERIFY
3567 - Remove MS_STATIC; it's a relic from platforms <32 bits.
5f8e6c50
DMSP
3568
3569 *Rich Salz*
3570
3571 * Cleaned up dead code
3572 Remove all but one '#ifdef undef' which is to be looked at.
3573
3574 *Rich Salz*
3575
3576 * Clean up calling of xxx_free routines.
3577 Just like free(), fix most of the xxx_free routines to accept
3578 NULL. Remove the non-null checks from callers. Save much code.
3579
3580 *Rich Salz*
3581
3582 * Add secure heap for storage of private keys (when possible).
3583 Add BIO_s_secmem(), CBIGNUM, etc.
3584 Contributed by Akamai Technologies under our Corporate CLA.
3585
3586 *Rich Salz*
3587
3588 * Experimental support for a new, fast, unbiased prime candidate generator,
3589 bn_probable_prime_dh_coprime(). Not currently used by any prime generator.
3590
3591 *Felix Laurie von Massenbach <felix@erbridge.co.uk>*
3592
3593 * New output format NSS in the sess_id command line tool. This allows
3594 exporting the session id and the master key in NSS keylog format.
3595
3596 *Martin Kaiser <martin@kaiser.cx>*
3597
3598 * Harmonize version and its documentation. -f flag is used to display
3599 compilation flags.
3600
3601 *mancha <mancha1@zoho.com>*
3602
3603 * Fix eckey_priv_encode so it immediately returns an error upon a failure
3604 in i2d_ECPrivateKey. Thanks to Ted Unangst for feedback on this issue.
3605
3606 *mancha <mancha1@zoho.com>*
3607
3608 * Fix some double frees. These are not thought to be exploitable.
3609
3610 *mancha <mancha1@zoho.com>*
3611
3612 * A missing bounds check in the handling of the TLS heartbeat extension
3613 can be used to reveal up to 64k of memory to a connected client or
3614 server.
3615
3616 Thanks for Neel Mehta of Google Security for discovering this bug and to
3617 Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
d8dc8538 3618 preparing the fix ([CVE-2014-0160])
5f8e6c50
DMSP
3619
3620 *Adam Langley, Bodo Moeller*
3621
3622 * Fix for the attack described in the paper "Recovering OpenSSL
3623 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
3624 by Yuval Yarom and Naomi Benger. Details can be obtained from:
257e9d03 3625 <http://eprint.iacr.org/2014/140>
5f8e6c50
DMSP
3626
3627 Thanks to Yuval Yarom and Naomi Benger for discovering this
d8dc8538 3628 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
5f8e6c50
DMSP
3629
3630 *Yuval Yarom and Naomi Benger*
3631
3632 * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
3633 this fixes a limitation in previous versions of OpenSSL.
3634
3635 *Steve Henson*
3636
3637 * Experimental encrypt-then-mac support.
3638
3639 Experimental support for encrypt then mac from
3640 draft-gutmann-tls-encrypt-then-mac-02.txt
3641
3642 To enable it set the appropriate extension number (0x42 for the test
3643 server) using e.g. -DTLSEXT_TYPE_encrypt_then_mac=0x42
3644
3645 For non-compliant peers (i.e. just about everything) this should have no
3646 effect.
3647
3648 WARNING: EXPERIMENTAL, SUBJECT TO CHANGE.
3649
5f8e6c50
DMSP
3650 *Steve Henson*
3651
3652 * Add EVP support for key wrapping algorithms, to avoid problems with
3653 existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
3654 the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
3655 algorithms and include tests cases.
3656
3657 *Steve Henson*
3658
3659 * Extend CMS code to support RSA-PSS signatures and RSA-OAEP for
3660 enveloped data.
3661
3662 *Steve Henson*
3663
3664 * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
3665 MGF1 digest and OAEP label.
3666
3667 *Steve Henson*
3668
3669 * Make openssl verify return errors.
3670
3671 *Chris Palmer <palmer@google.com> and Ben Laurie*
3672
3673 * New function ASN1_TIME_diff to calculate the difference between two
3674 ASN1_TIME structures or one structure and the current time.
3675
3676 *Steve Henson*
3677
3678 * Update fips_test_suite to support multiple command line options. New
3679 test to induce all self test errors in sequence and check expected
3680 failures.
3681
3682 *Steve Henson*
3683
3684 * Add FIPS_{rsa,dsa,ecdsa}_{sign,verify} functions which digest and
3685 sign or verify all in one operation.
3686
3687 *Steve Henson*
3688
3689 * Add fips_algvs: a multicall fips utility incorporating all the algorithm
3690 test programs and fips_test_suite. Includes functionality to parse
3691 the minimal script output of fipsalgest.pl directly.
3692
3693 *Steve Henson*
3694
3695 * Add authorisation parameter to FIPS_module_mode_set().
3696
3697 *Steve Henson*
3698
3699 * Add FIPS selftest for ECDH algorithm using P-224 and B-233 curves.
3700
3701 *Steve Henson*
3702
3703 * Use separate DRBG fields for internal and external flags. New function
3704 FIPS_drbg_health_check() to perform on demand health checking. Add
3705 generation tests to fips_test_suite with reduced health check interval to
3706 demonstrate periodic health checking. Add "nodh" option to
3707 fips_test_suite to skip very slow DH test.
3708
3709 *Steve Henson*
3710
3711 * New function FIPS_get_cipherbynid() to lookup FIPS supported ciphers
3712 based on NID.
3713
3714 *Steve Henson*
3715
3716 * More extensive health check for DRBG checking many more failure modes.
3717 New function FIPS_selftest_drbg_all() to handle every possible DRBG
3718 combination: call this in fips_test_suite.
3719
3720 *Steve Henson*
3721
3722 * Add support for canonical generation of DSA parameter 'g'. See
3723 FIPS 186-3 A.2.3.
3724
3725 * Add support for HMAC DRBG from SP800-90. Update DRBG algorithm test and
3726 POST to handle HMAC cases.
3727
3728 *Steve Henson*
3729
3730 * Add functions FIPS_module_version() and FIPS_module_version_text()
3731 to return numerical and string versions of the FIPS module number.
3732
3733 *Steve Henson*
3734
3735 * Rename FIPS_mode_set and FIPS_mode to FIPS_module_mode_set and
3736 FIPS_module_mode. FIPS_mode and FIPS_mode_set will be implemented
3737 outside the validated module in the FIPS capable OpenSSL.
3738
3739 *Steve Henson*
3740
3741 * Minor change to DRBG entropy callback semantics. In some cases
3742 there is no multiple of the block length between min_len and
3743 max_len. Allow the callback to return more than max_len bytes
3744 of entropy but discard any extra: it is the callback's responsibility
3745 to ensure that the extra data discarded does not impact the
3746 requested amount of entropy.
3747
3748 *Steve Henson*
3749
3750 * Add PRNG security strength checks to RSA, DSA and ECDSA using
3751 information in FIPS186-3, SP800-57 and SP800-131A.
3752
3753 *Steve Henson*
3754
3755 * CCM support via EVP. Interface is very similar to GCM case except we
3756 must supply all data in one chunk (i.e. no update, final) and the
3757 message length must be supplied if AAD is used. Add algorithm test
3758 support.
3759
3760 *Steve Henson*
3761
3762 * Initial version of POST overhaul. Add POST callback to allow the status
3763 of POST to be monitored and/or failures induced. Modify fips_test_suite
3764 to use callback. Always run all selftests even if one fails.
3765
3766 *Steve Henson*
3767
3768 * XTS support including algorithm test driver in the fips_gcmtest program.
3769 Note: this does increase the maximum key length from 32 to 64 bytes but
3770 there should be no binary compatibility issues as existing applications
3771 will never use XTS mode.
3772
3773 *Steve Henson*
3774
3775 * Extensive reorganisation of FIPS PRNG behaviour. Remove all dependencies
3776 to OpenSSL RAND code and replace with a tiny FIPS RAND API which also
3777 performs algorithm blocking for unapproved PRNG types. Also do not
3778 set PRNG type in FIPS_mode_set(): leave this to the application.
3779 Add default OpenSSL DRBG handling: sets up FIPS PRNG and seeds with
3780 the standard OpenSSL PRNG: set additional data to a date time vector.
3781
3782 *Steve Henson*
3783
1dc1ea18 3784 * Rename old X9.31 PRNG functions of the form `FIPS_rand*` to `FIPS_x931*`.
5f8e6c50
DMSP
3785 This shouldn't present any incompatibility problems because applications
3786 shouldn't be using these directly and any that are will need to rethink
3787 anyway as the X9.31 PRNG is now deprecated by FIPS 140-2
3788
3789 *Steve Henson*
3790
3791 * Extensive self tests and health checking required by SP800-90 DRBG.
3792 Remove strength parameter from FIPS_drbg_instantiate and always
3793 instantiate at maximum supported strength.
3794
3795 *Steve Henson*
3796
3797 * Add ECDH code to fips module and fips_ecdhvs for primitives only testing.
3798
3799 *Steve Henson*
3800
3801 * New algorithm test program fips_dhvs to handle DH primitives only testing.
3802
3803 *Steve Henson*
3804
3805 * New function DH_compute_key_padded() to compute a DH key and pad with
3806 leading zeroes if needed: this complies with SP800-56A et al.
3807
3808 *Steve Henson*
3809
3810 * Initial implementation of SP800-90 DRBGs for Hash and CTR. Not used by
3811 anything, incomplete, subject to change and largely untested at present.
3812
3813 *Steve Henson*
3814
3815 * Modify fipscanisteronly build option to only build the necessary object
3816 files by filtering FIPS_EX_OBJ through a perl script in crypto/Makefile.
3817
3818 *Steve Henson*
3819
3820 * Add experimental option FIPSSYMS to give all symbols in
3821 fipscanister.o and FIPS or fips prefix. This will avoid
3822 conflicts with future versions of OpenSSL. Add perl script
3823 util/fipsas.pl to preprocess assembly language source files
3824 and rename any affected symbols.
3825
3826 *Steve Henson*
3827
3828 * Add selftest checks and algorithm block of non-fips algorithms in
3829 FIPS mode. Remove DES2 from selftests.
3830
3831 *Steve Henson*
3832
3833 * Add ECDSA code to fips module. Add tiny fips_ecdsa_check to just
3834 return internal method without any ENGINE dependencies. Add new
3835 tiny fips sign and verify functions.
3836
3837 *Steve Henson*
3838
3839 * New build option no-ec2m to disable characteristic 2 code.
3840
3841 *Steve Henson*
3842
3843 * New build option "fipscanisteronly". This only builds fipscanister.o
3844 and (currently) associated fips utilities. Uses the file Makefile.fips
3845 instead of Makefile.org as the prototype.
3846
3847 *Steve Henson*
3848
3849 * Add some FIPS mode restrictions to GCM. Add internal IV generator.
3850 Update fips_gcmtest to use IV generator.
3851
3852 *Steve Henson*
3853
3854 * Initial, experimental EVP support for AES-GCM. AAD can be input by
257e9d03 3855 setting output buffer to NULL. The `*Final` function must be
5f8e6c50
DMSP
3856 called although it will not retrieve any additional data. The tag
3857 can be set or retrieved with a ctrl. The IV length is by default 12
3858 bytes (96 bits) but can be set to an alternative value. If the IV
3859 length exceeds the maximum IV length (currently 16 bytes) it cannot be
3860 set before the key.
3861
3862 *Steve Henson*
3863
3864 * New flag in ciphers: EVP_CIPH_FLAG_CUSTOM_CIPHER. This means the
3865 underlying do_cipher function handles all cipher semantics itself
3866 including padding and finalisation. This is useful if (for example)
3867 an ENGINE cipher handles block padding itself. The behaviour of
3868 do_cipher is subtly changed if this flag is set: the return value
3869 is the number of characters written to the output buffer (zero is
3870 no longer an error code) or a negative error code. Also if the
3871 input buffer is NULL and length 0 finalisation should be performed.
3872
3873 *Steve Henson*
3874
3875 * If a candidate issuer certificate is already part of the constructed
3876 path ignore it: new debug notification X509_V_ERR_PATH_LOOP for this case.
3877
3878 *Steve Henson*
3879
3880 * Improve forward-security support: add functions
3881
3882 void SSL_CTX_set_not_resumable_session_callback(
3883 SSL_CTX *ctx, int (*cb)(SSL *ssl, int is_forward_secure))
3884 void SSL_set_not_resumable_session_callback(
3885 SSL *ssl, int (*cb)(SSL *ssl, int is_forward_secure))
3886
3887 for use by SSL/TLS servers; the callback function will be called whenever a
3888 new session is created, and gets to decide whether the session may be
3889 cached to make it resumable (return 0) or not (return 1). (As by the
3890 SSL/TLS protocol specifications, the session_id sent by the server will be
3891 empty to indicate that the session is not resumable; also, the server will
3892 not generate RFC 4507 (RFC 5077) session tickets.)
3893
3894 A simple reasonable callback implementation is to return is_forward_secure.
3895 This parameter will be set to 1 or 0 depending on the ciphersuite selected
3896 by the SSL/TLS server library, indicating whether it can provide forward
3897 security.
3898
3899 *Emilia Käsper <emilia.kasper@esat.kuleuven.be> (Google)*
3900
3901 * New -verify_name option in command line utilities to set verification
3902 parameters by name.
3903
3904 *Steve Henson*
3905
3906 * Initial CMAC implementation. WARNING: EXPERIMENTAL, API MAY CHANGE.
3907 Add CMAC pkey methods.
3908
3909 *Steve Henson*
3910
3911 * Experimental renegotiation in s_server -www mode. If the client
3912 browses /reneg connection is renegotiated. If /renegcert it is
3913 renegotiated requesting a certificate.
3914
3915 *Steve Henson*
3916
3917 * Add an "external" session cache for debugging purposes to s_server. This
3918 should help trace issues which normally are only apparent in deployed
3919 multi-process servers.
3920
3921 *Steve Henson*
3922
3923 * Extensive audit of libcrypto with DEBUG_UNUSED. Fix many cases where
3924 return value is ignored. NB. The functions RAND_add(), RAND_seed(),
3925 BIO_set_cipher() and some obscure PEM functions were changed so they
3926 can now return an error. The RAND changes required a change to the
3927 RAND_METHOD structure.
3928
3929 *Steve Henson*
3930
44652c16 3931 * New macro `__owur` for "OpenSSL Warn Unused Result". This makes use of
5f8e6c50
DMSP
3932 a gcc attribute to warn if the result of a function is ignored. This
3933 is enable if DEBUG_UNUSED is set. Add to several functions in evp.h
3934 whose return value is often ignored.
3935
3936 *Steve Henson*
3937
3938 * New -noct, -requestct, -requirect and -ctlogfile options for s_client.
3939 These allow SCTs (signed certificate timestamps) to be requested and
3940 validated when establishing a connection.
3941
3942 *Rob Percival <robpercival@google.com>*
3943
44652c16
DMSP
3944OpenSSL 1.0.2
3945-------------
5f8e6c50 3946
257e9d03 3947### Changes between 1.0.2s and 1.0.2t [10 Sep 2019]
5f8e6c50 3948
44652c16 3949 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 3950 used even when parsing explicit parameters, when loading a encoded key
44652c16
DMSP
3951 or calling `EC_GROUP_new_from_ecpkparameters()`/
3952 `EC_GROUP_new_from_ecparameters()`.
3953 This prevents bypass of security hardening and performance gains,
3954 especially for curves with specialized EC_METHODs.
3955 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 3956 encoded, the output is still encoded with explicit parameters, even if
44652c16 3957 internally a "named" EC_GROUP is used for computation.
5f8e6c50 3958
44652c16 3959 *Nicola Tuveri*
5f8e6c50 3960
44652c16
DMSP
3961 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
3962 this change, EC_GROUP_set_generator would accept order and/or cofactor as
3963 NULL. After this change, only the cofactor parameter can be NULL. It also
3964 does some minimal sanity checks on the passed order.
d8dc8538 3965 ([CVE-2019-1547])
5f8e6c50 3966
44652c16 3967 *Billy Bob Brumley*
5f8e6c50 3968
44652c16
DMSP
3969 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
3970 An attack is simple, if the first CMS_recipientInfo is valid but the
3971 second CMS_recipientInfo is chosen ciphertext. If the second
3972 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
3973 encryption key will be replaced by garbage, and the message cannot be
3974 decoded, but if the RSA decryption fails, the correct encryption key is
3975 used and the recipient will not notice the attack.
3976 As a work around for this potential attack the length of the decrypted
3977 key must be equal to the cipher default key length, in case the
3978 certifiate is not given and all recipientInfo are tried out.
3979 The old behaviour can be re-enabled in the CMS code by setting the
3980 CMS_DEBUG_DECRYPT flag.
d8dc8538 3981 ([CVE-2019-1563])
5f8e6c50 3982
44652c16 3983 *Bernd Edlinger*
5f8e6c50 3984
44652c16 3985 * Document issue with installation paths in diverse Windows builds
5f8e6c50 3986
44652c16
DMSP
3987 '/usr/local/ssl' is an unsafe prefix for location to install OpenSSL
3988 binaries and run-time config file.
d8dc8538 3989 ([CVE-2019-1552])
5f8e6c50 3990
44652c16 3991 *Richard Levitte*
5f8e6c50 3992
257e9d03 3993### Changes between 1.0.2r and 1.0.2s [28 May 2019]
5f8e6c50 3994
44652c16
DMSP
3995 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
3996 This changes the size when using the genpkey app when no size is given. It
3997 fixes an omission in earlier changes that changed all RSA, DSA and DH
3998 generation apps to use 2048 bits by default.
5f8e6c50 3999
44652c16 4000 *Kurt Roeckx*
5f8e6c50 4001
44652c16 4002 * Add FIPS support for Android Arm 64-bit
5f8e6c50 4003
44652c16
DMSP
4004 Support for Android Arm 64-bit was added to the OpenSSL FIPS Object
4005 Module in Version 2.0.10. For some reason, the corresponding target
4006 'android64-aarch64' was missing OpenSSL 1.0.2, whence it could not be
4007 built with FIPS support on Android Arm 64-bit. This omission has been
4008 fixed.
5f8e6c50 4009
44652c16 4010 *Matthias St. Pierre*
5f8e6c50 4011
257e9d03 4012### Changes between 1.0.2q and 1.0.2r [26 Feb 2019]
5f8e6c50 4013
44652c16 4014 * 0-byte record padding oracle
5f8e6c50 4015
44652c16
DMSP
4016 If an application encounters a fatal protocol error and then calls
4017 SSL_shutdown() twice (once to send a close_notify, and once to receive one)
4018 then OpenSSL can respond differently to the calling application if a 0 byte
4019 record is received with invalid padding compared to if a 0 byte record is
4020 received with an invalid MAC. If the application then behaves differently
4021 based on that in a way that is detectable to the remote peer, then this
4022 amounts to a padding oracle that could be used to decrypt data.
5f8e6c50 4023
44652c16
DMSP
4024 In order for this to be exploitable "non-stitched" ciphersuites must be in
4025 use. Stitched ciphersuites are optimised implementations of certain
4026 commonly used ciphersuites. Also the application must call SSL_shutdown()
4027 twice even if a protocol error has occurred (applications should not do
4028 this but some do anyway).
5f8e6c50 4029
44652c16
DMSP
4030 This issue was discovered by Juraj Somorovsky, Robert Merget and Nimrod
4031 Aviram, with additional investigation by Steven Collison and Andrew
4032 Hourselt. It was reported to OpenSSL on 10th December 2018.
d8dc8538 4033 ([CVE-2019-1559])
5f8e6c50
DMSP
4034
4035 *Matt Caswell*
4036
44652c16 4037 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
5f8e6c50 4038
44652c16 4039 *Richard Levitte*
5f8e6c50 4040
257e9d03 4041### Changes between 1.0.2p and 1.0.2q [20 Nov 2018]
5f8e6c50 4042
44652c16 4043 * Microarchitecture timing vulnerability in ECC scalar multiplication
5f8e6c50 4044
44652c16
DMSP
4045 OpenSSL ECC scalar multiplication, used in e.g. ECDSA and ECDH, has been
4046 shown to be vulnerable to a microarchitecture timing side channel attack.
4047 An attacker with sufficient access to mount local timing attacks during
4048 ECDSA signature generation could recover the private key.
5f8e6c50 4049
44652c16
DMSP
4050 This issue was reported to OpenSSL on 26th October 2018 by Alejandro
4051 Cabrera Aldaya, Billy Brumley, Sohaib ul Hassan, Cesar Pereida Garcia and
4052 Nicola Tuveri.
d8dc8538 4053 ([CVE-2018-5407])
5f8e6c50 4054
44652c16 4055 *Billy Brumley*
5f8e6c50 4056
44652c16 4057 * Timing vulnerability in DSA signature generation
5f8e6c50 4058
44652c16
DMSP
4059 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
4060 timing side channel attack. An attacker could use variations in the signing
4061 algorithm to recover the private key.
5f8e6c50 4062
44652c16 4063 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
d8dc8538 4064 ([CVE-2018-0734])
5f8e6c50 4065
44652c16 4066 *Paul Dale*
5f8e6c50 4067
44652c16
DMSP
4068 * Resolve a compatibility issue in EC_GROUP handling with the FIPS Object
4069 Module, accidentally introduced while backporting security fixes from the
4070 development branch and hindering the use of ECC in FIPS mode.
5f8e6c50 4071
44652c16 4072 *Nicola Tuveri*
5f8e6c50 4073
257e9d03 4074### Changes between 1.0.2o and 1.0.2p [14 Aug 2018]
5f8e6c50 4075
44652c16 4076 * Client DoS due to large DH parameter
5f8e6c50 4077
44652c16
DMSP
4078 During key agreement in a TLS handshake using a DH(E) based ciphersuite a
4079 malicious server can send a very large prime value to the client. This will
4080 cause the client to spend an unreasonably long period of time generating a
4081 key for this prime resulting in a hang until the client has finished. This
4082 could be exploited in a Denial Of Service attack.
5f8e6c50 4083
44652c16 4084 This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken
d8dc8538 4085 ([CVE-2018-0732])
5f8e6c50 4086
44652c16 4087 *Guido Vranken*
5f8e6c50 4088
44652c16 4089 * Cache timing vulnerability in RSA Key Generation
5f8e6c50 4090
44652c16
DMSP
4091 The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to
4092 a cache timing side channel attack. An attacker with sufficient access to
4093 mount cache timing attacks during the RSA key generation process could
4094 recover the private key.
5f8e6c50 4095
44652c16
DMSP
4096 This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera
4097 Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia.
d8dc8538 4098 ([CVE-2018-0737])
5f8e6c50 4099
44652c16 4100 *Billy Brumley*
5f8e6c50 4101
44652c16
DMSP
4102 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
4103 parameter is no longer accepted, as it leads to a corrupt table. NULL
4104 pem_str is reserved for alias entries only.
5f8e6c50 4105
44652c16 4106 *Richard Levitte*
5f8e6c50 4107
44652c16
DMSP
4108 * Revert blinding in ECDSA sign and instead make problematic addition
4109 length-invariant. Switch even to fixed-length Montgomery multiplication.
5f8e6c50 4110
44652c16 4111 *Andy Polyakov*
5f8e6c50 4112
44652c16
DMSP
4113 * Change generating and checking of primes so that the error rate of not
4114 being prime depends on the intended use based on the size of the input.
4115 For larger primes this will result in more rounds of Miller-Rabin.
4116 The maximal error rate for primes with more than 1080 bits is lowered
4117 to 2^-128.
5f8e6c50 4118
44652c16 4119 *Kurt Roeckx, Annie Yousar*
5f8e6c50 4120
44652c16 4121 * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
5f8e6c50 4122
44652c16 4123 *Kurt Roeckx*
5f8e6c50 4124
44652c16
DMSP
4125 * Add blinding to ECDSA and DSA signatures to protect against side channel
4126 attacks discovered by Keegan Ryan (NCC Group).
5f8e6c50 4127
44652c16 4128 *Matt Caswell*
5f8e6c50 4129
44652c16
DMSP
4130 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
4131 now allow empty (zero character) pass phrases.
5f8e6c50 4132
44652c16 4133 *Richard Levitte*
5f8e6c50 4134
44652c16
DMSP
4135 * Certificate time validation (X509_cmp_time) enforces stricter
4136 compliance with RFC 5280. Fractional seconds and timezone offsets
4137 are no longer allowed.
5f8e6c50 4138
44652c16 4139 *Emilia Käsper*
5f8e6c50 4140
257e9d03 4141### Changes between 1.0.2n and 1.0.2o [27 Mar 2018]
5f8e6c50 4142
44652c16 4143 * Constructed ASN.1 types with a recursive definition could exceed the stack
5f8e6c50 4144
44652c16
DMSP
4145 Constructed ASN.1 types with a recursive definition (such as can be found
4146 in PKCS7) could eventually exceed the stack given malicious input with
4147 excessive recursion. This could result in a Denial Of Service attack. There
4148 are no such structures used within SSL/TLS that come from untrusted sources
4149 so this is considered safe.
5f8e6c50 4150
44652c16
DMSP
4151 This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz
4152 project.
d8dc8538 4153 ([CVE-2018-0739])
5f8e6c50 4154
44652c16 4155 *Matt Caswell*
5f8e6c50 4156
257e9d03 4157### Changes between 1.0.2m and 1.0.2n [7 Dec 2017]
5f8e6c50 4158
44652c16 4159 * Read/write after SSL object in error state
5f8e6c50 4160
44652c16
DMSP
4161 OpenSSL 1.0.2 (starting from version 1.0.2b) introduced an "error state"
4162 mechanism. The intent was that if a fatal error occurred during a handshake
4163 then OpenSSL would move into the error state and would immediately fail if
4164 you attempted to continue the handshake. This works as designed for the
4165 explicit handshake functions (SSL_do_handshake(), SSL_accept() and
4166 SSL_connect()), however due to a bug it does not work correctly if
4167 SSL_read() or SSL_write() is called directly. In that scenario, if the
4168 handshake fails then a fatal error will be returned in the initial function
4169 call. If SSL_read()/SSL_write() is subsequently called by the application
4170 for the same SSL object then it will succeed and the data is passed without
4171 being decrypted/encrypted directly from the SSL/TLS record layer.
5f8e6c50 4172
44652c16
DMSP
4173 In order to exploit this issue an application bug would have to be present
4174 that resulted in a call to SSL_read()/SSL_write() being issued after having
4175 already received a fatal error.
5f8e6c50 4176
44652c16 4177 This issue was reported to OpenSSL by David Benjamin (Google).
d8dc8538 4178 ([CVE-2017-3737])
5f8e6c50
DMSP
4179
4180 *Matt Caswell*
4181
44652c16 4182 * rsaz_1024_mul_avx2 overflow bug on x86_64
5f8e6c50 4183
44652c16
DMSP
4184 There is an overflow bug in the AVX2 Montgomery multiplication procedure
4185 used in exponentiation with 1024-bit moduli. No EC algorithms are affected.
4186 Analysis suggests that attacks against RSA and DSA as a result of this
4187 defect would be very difficult to perform and are not believed likely.
4188 Attacks against DH1024 are considered just feasible, because most of the
4189 work necessary to deduce information about a private key may be performed
4190 offline. The amount of resources required for such an attack would be
4191 significant. However, for an attack on TLS to be meaningful, the server
4192 would have to share the DH1024 private key among multiple clients, which is
4193 no longer an option since CVE-2016-0701.
5f8e6c50 4194
44652c16
DMSP
4195 This only affects processors that support the AVX2 but not ADX extensions
4196 like Intel Haswell (4th generation).
5f8e6c50 4197
44652c16
DMSP
4198 This issue was reported to OpenSSL by David Benjamin (Google). The issue
4199 was originally found via the OSS-Fuzz project.
d8dc8538 4200 ([CVE-2017-3738])
5f8e6c50 4201
44652c16 4202 *Andy Polyakov*
5f8e6c50 4203
257e9d03 4204### Changes between 1.0.2l and 1.0.2m [2 Nov 2017]
44652c16
DMSP
4205
4206 * bn_sqrx8x_internal carry bug on x86_64
5f8e6c50
DMSP
4207
4208 There is a carry propagating bug in the x86_64 Montgomery squaring
4209 procedure. No EC algorithms are affected. Analysis suggests that attacks
4210 against RSA and DSA as a result of this defect would be very difficult to
4211 perform and are not believed likely. Attacks against DH are considered just
4212 feasible (although very difficult) because most of the work necessary to
4213 deduce information about a private key may be performed offline. The amount
4214 of resources required for such an attack would be very significant and
4215 likely only accessible to a limited number of attackers. An attacker would
4216 additionally need online access to an unpatched system using the target
4217 private key in a scenario with persistent DH parameters and a private
44652c16 4218 key that is shared between multiple clients.
5f8e6c50 4219
44652c16
DMSP
4220 This only affects processors that support the BMI1, BMI2 and ADX extensions
4221 like Intel Broadwell (5th generation) and later or AMD Ryzen.
4222
4223 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 4224 ([CVE-2017-3736])
5f8e6c50
DMSP
4225
4226 *Andy Polyakov*
4227
44652c16 4228 * Malformed X.509 IPAddressFamily could cause OOB read
5f8e6c50 4229
44652c16
DMSP
4230 If an X.509 certificate has a malformed IPAddressFamily extension,
4231 OpenSSL could do a one-byte buffer overread. The most likely result
4232 would be an erroneous display of the certificate in text format.
5f8e6c50 4233
44652c16 4234 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 4235 ([CVE-2017-3735])
5f8e6c50 4236
44652c16 4237 *Rich Salz*
5f8e6c50 4238
257e9d03 4239### Changes between 1.0.2k and 1.0.2l [25 May 2017]
5f8e6c50 4240
44652c16
DMSP
4241 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
4242 platform rather than 'mingw'.
5f8e6c50 4243
44652c16 4244 *Richard Levitte*
5f8e6c50 4245
257e9d03 4246### Changes between 1.0.2j and 1.0.2k [26 Jan 2017]
5f8e6c50 4247
44652c16 4248 * Truncated packet could crash via OOB read
5f8e6c50 4249
44652c16
DMSP
4250 If one side of an SSL/TLS path is running on a 32-bit host and a specific
4251 cipher is being used, then a truncated packet can cause that host to
4252 perform an out-of-bounds read, usually resulting in a crash.
5f8e6c50 4253
44652c16 4254 This issue was reported to OpenSSL by Robert Święcki of Google.
d8dc8538 4255 ([CVE-2017-3731])
5f8e6c50 4256
44652c16 4257 *Andy Polyakov*
5f8e6c50 4258
44652c16 4259 * BN_mod_exp may produce incorrect results on x86_64
5f8e6c50 4260
44652c16
DMSP
4261 There is a carry propagating bug in the x86_64 Montgomery squaring
4262 procedure. No EC algorithms are affected. Analysis suggests that attacks
4263 against RSA and DSA as a result of this defect would be very difficult to
4264 perform and are not believed likely. Attacks against DH are considered just
4265 feasible (although very difficult) because most of the work necessary to
4266 deduce information about a private key may be performed offline. The amount
4267 of resources required for such an attack would be very significant and
4268 likely only accessible to a limited number of attackers. An attacker would
4269 additionally need online access to an unpatched system using the target
4270 private key in a scenario with persistent DH parameters and a private
4271 key that is shared between multiple clients. For example this can occur by
4272 default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very
4273 similar to CVE-2015-3193 but must be treated as a separate problem.
5f8e6c50 4274
44652c16 4275 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 4276 ([CVE-2017-3732])
5f8e6c50 4277
44652c16 4278 *Andy Polyakov*
5f8e6c50 4279
44652c16 4280 * Montgomery multiplication may produce incorrect results
5f8e6c50 4281
44652c16
DMSP
4282 There is a carry propagating bug in the Broadwell-specific Montgomery
4283 multiplication procedure that handles input lengths divisible by, but
4284 longer than 256 bits. Analysis suggests that attacks against RSA, DSA
4285 and DH private keys are impossible. This is because the subroutine in
4286 question is not used in operations with the private key itself and an input
4287 of the attacker's direct choice. Otherwise the bug can manifest itself as
4288 transient authentication and key negotiation failures or reproducible
4289 erroneous outcome of public-key operations with specially crafted input.
4290 Among EC algorithms only Brainpool P-512 curves are affected and one
4291 presumably can attack ECDH key negotiation. Impact was not analyzed in
4292 detail, because pre-requisites for attack are considered unlikely. Namely
4293 multiple clients have to choose the curve in question and the server has to
4294 share the private key among them, neither of which is default behaviour.
4295 Even then only clients that chose the curve will be affected.
5f8e6c50 4296
44652c16
DMSP
4297 This issue was publicly reported as transient failures and was not
4298 initially recognized as a security issue. Thanks to Richard Morgan for
4299 providing reproducible case.
d8dc8538 4300 ([CVE-2016-7055])
44652c16
DMSP
4301
4302 *Andy Polyakov*
4303
4304 * OpenSSL now fails if it receives an unrecognised record type in TLS1.0
4305 or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to
4306 prevent issues where no progress is being made and the peer continually
4307 sends unrecognised record types, using up resources processing them.
5f8e6c50
DMSP
4308
4309 *Matt Caswell*
4310
257e9d03 4311### Changes between 1.0.2i and 1.0.2j [26 Sep 2016]
5f8e6c50 4312
44652c16 4313 * Missing CRL sanity check
5f8e6c50 4314
44652c16
DMSP
4315 A bug fix which included a CRL sanity check was added to OpenSSL 1.1.0
4316 but was omitted from OpenSSL 1.0.2i. As a result any attempt to use
4317 CRLs in OpenSSL 1.0.2i will crash with a null pointer exception.
5f8e6c50 4318
44652c16 4319 This issue only affects the OpenSSL 1.0.2i
d8dc8538 4320 ([CVE-2016-7052])
5f8e6c50 4321
44652c16 4322 *Matt Caswell*
5f8e6c50 4323
257e9d03 4324### Changes between 1.0.2h and 1.0.2i [22 Sep 2016]
5f8e6c50 4325
44652c16 4326 * OCSP Status Request extension unbounded memory growth
5f8e6c50 4327
44652c16
DMSP
4328 A malicious client can send an excessively large OCSP Status Request
4329 extension. If that client continually requests renegotiation, sending a
4330 large OCSP Status Request extension each time, then there will be unbounded
4331 memory growth on the server. This will eventually lead to a Denial Of
4332 Service attack through memory exhaustion. Servers with a default
4333 configuration are vulnerable even if they do not support OCSP. Builds using
4334 the "no-ocsp" build time option are not affected.
5f8e6c50 4335
44652c16 4336 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4337 ([CVE-2016-6304])
5f8e6c50 4338
44652c16 4339 *Matt Caswell*
5f8e6c50 4340
44652c16
DMSP
4341 * In order to mitigate the SWEET32 attack, the DES ciphers were moved from
4342 HIGH to MEDIUM.
5f8e6c50 4343
44652c16
DMSP
4344 This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan
4345 Leurent (INRIA)
d8dc8538 4346 ([CVE-2016-2183])
5f8e6c50 4347
44652c16 4348 *Rich Salz*
5f8e6c50 4349
44652c16 4350 * OOB write in MDC2_Update()
5f8e6c50 4351
44652c16
DMSP
4352 An overflow can occur in MDC2_Update() either if called directly or
4353 through the EVP_DigestUpdate() function using MDC2. If an attacker
4354 is able to supply very large amounts of input data after a previous
4355 call to EVP_EncryptUpdate() with a partial block then a length check
4356 can overflow resulting in a heap corruption.
5f8e6c50 4357
44652c16
DMSP
4358 The amount of data needed is comparable to SIZE_MAX which is impractical
4359 on most platforms.
5f8e6c50 4360
44652c16 4361 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4362 ([CVE-2016-6303])
5f8e6c50
DMSP
4363
4364 *Stephen Henson*
4365
44652c16 4366 * Malformed SHA512 ticket DoS
5f8e6c50 4367
44652c16
DMSP
4368 If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a
4369 DoS attack where a malformed ticket will result in an OOB read which will
4370 ultimately crash.
5f8e6c50 4371
44652c16
DMSP
4372 The use of SHA512 in TLS session tickets is comparatively rare as it requires
4373 a custom server callback and ticket lookup mechanism.
5f8e6c50 4374
44652c16 4375 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4376 ([CVE-2016-6302])
5f8e6c50 4377
44652c16 4378 *Stephen Henson*
5f8e6c50 4379
44652c16 4380 * OOB write in BN_bn2dec()
5f8e6c50 4381
44652c16
DMSP
4382 The function BN_bn2dec() does not check the return value of BN_div_word().
4383 This can cause an OOB write if an application uses this function with an
4384 overly large BIGNUM. This could be a problem if an overly large certificate
4385 or CRL is printed out from an untrusted source. TLS is not affected because
4386 record limits will reject an oversized certificate before it is parsed.
5f8e6c50 4387
44652c16 4388 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4389 ([CVE-2016-2182])
5f8e6c50 4390
44652c16 4391 *Stephen Henson*
5f8e6c50 4392
44652c16 4393 * OOB read in TS_OBJ_print_bio()
5f8e6c50 4394
44652c16
DMSP
4395 The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is
4396 the total length the OID text representation would use and not the amount
4397 of data written. This will result in OOB reads when large OIDs are
4398 presented.
5f8e6c50 4399
44652c16 4400 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4401 ([CVE-2016-2180])
5f8e6c50 4402
44652c16 4403 *Stephen Henson*
5f8e6c50 4404
44652c16 4405 * Pointer arithmetic undefined behaviour
5f8e6c50 4406
44652c16 4407 Avoid some undefined pointer arithmetic
5f8e6c50 4408
44652c16
DMSP
4409 A common idiom in the codebase is to check limits in the following manner:
4410 "p + len > limit"
5f8e6c50 4411
44652c16
DMSP
4412 Where "p" points to some malloc'd data of SIZE bytes and
4413 limit == p + SIZE
5f8e6c50 4414
44652c16
DMSP
4415 "len" here could be from some externally supplied data (e.g. from a TLS
4416 message).
5f8e6c50 4417
44652c16
DMSP
4418 The rules of C pointer arithmetic are such that "p + len" is only well
4419 defined where len <= SIZE. Therefore the above idiom is actually
4420 undefined behaviour.
5f8e6c50 4421
44652c16
DMSP
4422 For example this could cause problems if some malloc implementation
4423 provides an address for "p" such that "p + len" actually overflows for
4424 values of len that are too big and therefore p + len < limit.
5f8e6c50 4425
44652c16 4426 This issue was reported to OpenSSL by Guido Vranken
d8dc8538 4427 ([CVE-2016-2177])
5f8e6c50 4428
44652c16 4429 *Matt Caswell*
5f8e6c50 4430
44652c16 4431 * Constant time flag not preserved in DSA signing
5f8e6c50 4432
44652c16
DMSP
4433 Operations in the DSA signing algorithm should run in constant time in
4434 order to avoid side channel attacks. A flaw in the OpenSSL DSA
4435 implementation means that a non-constant time codepath is followed for
4436 certain operations. This has been demonstrated through a cache-timing
4437 attack to be sufficient for an attacker to recover the private DSA key.
5f8e6c50 4438
44652c16
DMSP
4439 This issue was reported by César Pereida (Aalto University), Billy Brumley
4440 (Tampere University of Technology), and Yuval Yarom (The University of
4441 Adelaide and NICTA).
d8dc8538 4442 ([CVE-2016-2178])
5f8e6c50 4443
44652c16 4444 *César Pereida*
5f8e6c50 4445
44652c16 4446 * DTLS buffered message DoS
5f8e6c50 4447
44652c16
DMSP
4448 In a DTLS connection where handshake messages are delivered out-of-order
4449 those messages that OpenSSL is not yet ready to process will be buffered
4450 for later use. Under certain circumstances, a flaw in the logic means that
4451 those messages do not get removed from the buffer even though the handshake
4452 has been completed. An attacker could force up to approx. 15 messages to
4453 remain in the buffer when they are no longer required. These messages will
4454 be cleared when the DTLS connection is closed. The default maximum size for
4455 a message is 100k. Therefore the attacker could force an additional 1500k
4456 to be consumed per connection. By opening many simulataneous connections an
4457 attacker could cause a DoS attack through memory exhaustion.
5f8e6c50 4458
44652c16 4459 This issue was reported to OpenSSL by Quan Luo.
d8dc8538 4460 ([CVE-2016-2179])
5f8e6c50 4461
44652c16 4462 *Matt Caswell*
5f8e6c50 4463
44652c16 4464 * DTLS replay protection DoS
5f8e6c50 4465
44652c16
DMSP
4466 A flaw in the DTLS replay attack protection mechanism means that records
4467 that arrive for future epochs update the replay protection "window" before
4468 the MAC for the record has been validated. This could be exploited by an
4469 attacker by sending a record for the next epoch (which does not have to
4470 decrypt or have a valid MAC), with a very large sequence number. This means
4471 that all subsequent legitimate packets are dropped causing a denial of
4472 service for a specific DTLS connection.
5f8e6c50 4473
44652c16 4474 This issue was reported to OpenSSL by the OCAP audit team.
d8dc8538 4475 ([CVE-2016-2181])
5f8e6c50 4476
44652c16 4477 *Matt Caswell*
5f8e6c50 4478
44652c16 4479 * Certificate message OOB reads
5f8e6c50 4480
44652c16
DMSP
4481 In OpenSSL 1.0.2 and earlier some missing message length checks can result
4482 in OOB reads of up to 2 bytes beyond an allocated buffer. There is a
4483 theoretical DoS risk but this has not been observed in practice on common
4484 platforms.
5f8e6c50 4485
44652c16
DMSP
4486 The messages affected are client certificate, client certificate request
4487 and server certificate. As a result the attack can only be performed
4488 against a client or a server which enables client authentication.
5f8e6c50 4489
44652c16 4490 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4491 ([CVE-2016-6306])
5f8e6c50 4492
44652c16 4493 *Stephen Henson*
5f8e6c50 4494
257e9d03 4495### Changes between 1.0.2g and 1.0.2h [3 May 2016]
5f8e6c50 4496
44652c16 4497 * Prevent padding oracle in AES-NI CBC MAC check
5f8e6c50 4498
44652c16
DMSP
4499 A MITM attacker can use a padding oracle attack to decrypt traffic
4500 when the connection uses an AES CBC cipher and the server support
4501 AES-NI.
5f8e6c50 4502
44652c16 4503 This issue was introduced as part of the fix for Lucky 13 padding
d8dc8538 4504 attack ([CVE-2013-0169]). The padding check was rewritten to be in
44652c16
DMSP
4505 constant time by making sure that always the same bytes are read and
4506 compared against either the MAC or padding bytes. But it no longer
4507 checked that there was enough data to have both the MAC and padding
4508 bytes.
5f8e6c50 4509
44652c16 4510 This issue was reported by Juraj Somorovsky using TLS-Attacker.
d8dc8538 4511 ([CVE-2016-2107])
5f8e6c50 4512
44652c16 4513 *Kurt Roeckx*
5f8e6c50 4514
44652c16
DMSP
4515 * Fix EVP_EncodeUpdate overflow
4516
4517 An overflow can occur in the EVP_EncodeUpdate() function which is used for
4518 Base64 encoding of binary data. If an attacker is able to supply very large
4519 amounts of input data then a length check can overflow resulting in a heap
4520 corruption.
4521
4522 Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by
257e9d03 4523 the `PEM_write_bio*` family of functions. These are mainly used within the
44652c16
DMSP
4524 OpenSSL command line applications, so any application which processes data
4525 from an untrusted source and outputs it as a PEM file should be considered
4526 vulnerable to this issue. User applications that call these APIs directly
4527 with large amounts of untrusted data may also be vulnerable.
4528
4529 This issue was reported by Guido Vranken.
d8dc8538 4530 ([CVE-2016-2105])
5f8e6c50
DMSP
4531
4532 *Matt Caswell*
4533
44652c16 4534 * Fix EVP_EncryptUpdate overflow
5f8e6c50 4535
44652c16
DMSP
4536 An overflow can occur in the EVP_EncryptUpdate() function. If an attacker
4537 is able to supply very large amounts of input data after a previous call to
4538 EVP_EncryptUpdate() with a partial block then a length check can overflow
4539 resulting in a heap corruption. Following an analysis of all OpenSSL
4540 internal usage of the EVP_EncryptUpdate() function all usage is one of two
4541 forms. The first form is where the EVP_EncryptUpdate() call is known to be
4542 the first called function after an EVP_EncryptInit(), and therefore that
4543 specific call must be safe. The second form is where the length passed to
4544 EVP_EncryptUpdate() can be seen from the code to be some small value and
4545 therefore there is no possibility of an overflow. Since all instances are
4546 one of these two forms, it is believed that there can be no overflows in
4547 internal code due to this problem. It should be noted that
4548 EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths.
4549 Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances
4550 of these calls have also been analysed too and it is believed there are no
4551 instances in internal usage where an overflow could occur.
5f8e6c50 4552
44652c16 4553 This issue was reported by Guido Vranken.
d8dc8538 4554 ([CVE-2016-2106])
5f8e6c50
DMSP
4555
4556 *Matt Caswell*
4557
44652c16 4558 * Prevent ASN.1 BIO excessive memory allocation
5f8e6c50 4559
44652c16
DMSP
4560 When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio()
4561 a short invalid encoding can cause allocation of large amounts of memory
4562 potentially consuming excessive resources or exhausting memory.
5f8e6c50 4563
44652c16
DMSP
4564 Any application parsing untrusted data through d2i BIO functions is
4565 affected. The memory based functions such as d2i_X509() are *not* affected.
4566 Since the memory based functions are used by the TLS library, TLS
4567 applications are not affected.
4568
4569 This issue was reported by Brian Carpenter.
d8dc8538 4570 ([CVE-2016-2109])
5f8e6c50
DMSP
4571
4572 *Stephen Henson*
4573
44652c16 4574 * EBCDIC overread
5f8e6c50 4575
44652c16
DMSP
4576 ASN1 Strings that are over 1024 bytes can cause an overread in applications
4577 using the X509_NAME_oneline() function on EBCDIC systems. This could result
4578 in arbitrary stack data being returned in the buffer.
5f8e6c50 4579
44652c16 4580 This issue was reported by Guido Vranken.
d8dc8538 4581 ([CVE-2016-2176])
5f8e6c50 4582
44652c16 4583 *Matt Caswell*
5f8e6c50 4584
44652c16
DMSP
4585 * Modify behavior of ALPN to invoke callback after SNI/servername
4586 callback, such that updates to the SSL_CTX affect ALPN.
5f8e6c50 4587
44652c16 4588 *Todd Short*
5f8e6c50 4589
44652c16
DMSP
4590 * Remove LOW from the DEFAULT cipher list. This removes singles DES from the
4591 default.
4592
4593 *Kurt Roeckx*
4594
4595 * Only remove the SSLv2 methods with the no-ssl2-method option. When the
4596 methods are enabled and ssl2 is disabled the methods return NULL.
4597
4598 *Kurt Roeckx*
4599
257e9d03 4600### Changes between 1.0.2f and 1.0.2g [1 Mar 2016]
44652c16
DMSP
4601
4602* Disable weak ciphers in SSLv3 and up in default builds of OpenSSL.
4603 Builds that are not configured with "enable-weak-ssl-ciphers" will not
4604 provide any "EXPORT" or "LOW" strength ciphers.
4605
4606 *Viktor Dukhovni*
4607
4608* Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2
4609 is by default disabled at build-time. Builds that are not configured with
4610 "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used,
4611 users who want to negotiate SSLv2 via the version-flexible SSLv23_method()
4612 will need to explicitly call either of:
4613
4614 SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
4615 or
4616 SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
4617
4618 as appropriate. Even if either of those is used, or the application
4619 explicitly uses the version-specific SSLv2_method() or its client and
4620 server variants, SSLv2 ciphers vulnerable to exhaustive search key
4621 recovery have been removed. Specifically, the SSLv2 40-bit EXPORT
4622 ciphers, and SSLv2 56-bit DES are no longer available.
d8dc8538 4623 ([CVE-2016-0800])
44652c16
DMSP
4624
4625 *Viktor Dukhovni*
4626
4627 * Fix a double-free in DSA code
4628
4629 A double free bug was discovered when OpenSSL parses malformed DSA private
4630 keys and could lead to a DoS attack or memory corruption for applications
4631 that receive DSA private keys from untrusted sources. This scenario is
4632 considered rare.
4633
4634 This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using
4635 libFuzzer.
d8dc8538 4636 ([CVE-2016-0705])
44652c16
DMSP
4637
4638 *Stephen Henson*
4639
4640 * Disable SRP fake user seed to address a server memory leak.
4641
4642 Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
4643
4644 SRP_VBASE_get_by_user had inconsistent memory management behaviour.
4645 In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user
4646 was changed to ignore the "fake user" SRP seed, even if the seed
4647 is configured.
4648
4649 Users should use SRP_VBASE_get1_by_user instead. Note that in
4650 SRP_VBASE_get1_by_user, caller must free the returned value. Note
4651 also that even though configuring the SRP seed attempts to hide
4652 invalid usernames by continuing the handshake with fake
4653 credentials, this behaviour is not constant time and no strong
4654 guarantees are made that the handshake is indistinguishable from
4655 that of a valid user.
d8dc8538 4656 ([CVE-2016-0798])
44652c16
DMSP
4657
4658 *Emilia Käsper*
4659
4660 * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption
4661
4662 In the BN_hex2bn function the number of hex digits is calculated using an
1dc1ea18
DDO
4663 int value `i`. Later `bn_expand` is called with a value of `i * 4`. For
4664 large values of `i` this can result in `bn_expand` not allocating any
4665 memory because `i * 4` is negative. This can leave the internal BIGNUM data
44652c16 4666 field as NULL leading to a subsequent NULL ptr deref. For very large values
1dc1ea18 4667 of `i`, the calculation `i * 4` could be a positive value smaller than `i`.
44652c16
DMSP
4668 In this case memory is allocated to the internal BIGNUM data field, but it
4669 is insufficiently sized leading to heap corruption. A similar issue exists
4670 in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn
4671 is ever called by user applications with very large untrusted hex/dec data.
4672 This is anticipated to be a rare occurrence.
4673
4674 All OpenSSL internal usage of these functions use data that is not expected
4675 to be untrusted, e.g. config file data or application command line
4676 arguments. If user developed applications generate config file data based
4677 on untrusted data then it is possible that this could also lead to security
4678 consequences. This is also anticipated to be rare.
4679
4680 This issue was reported to OpenSSL by Guido Vranken.
d8dc8538 4681 ([CVE-2016-0797])
44652c16
DMSP
4682
4683 *Matt Caswell*
4684
257e9d03 4685 * Fix memory issues in `BIO_*printf` functions
44652c16 4686
1dc1ea18 4687 The internal `fmtstr` function used in processing a "%s" format string in
257e9d03 4688 the `BIO_*printf` functions could overflow while calculating the length of a
44652c16
DMSP
4689 string and cause an OOB read when printing very long strings.
4690
1dc1ea18 4691 Additionally the internal `doapr_outch` function can attempt to write to an
44652c16
DMSP
4692 OOB memory location (at an offset from the NULL pointer) in the event of a
4693 memory allocation failure. In 1.0.2 and below this could be caused where
4694 the size of a buffer to be allocated is greater than INT_MAX. E.g. this
4695 could be in processing a very long "%s" format string. Memory leaks can
4696 also occur.
4697
4698 The first issue may mask the second issue dependent on compiler behaviour.
4699 These problems could enable attacks where large amounts of untrusted data
257e9d03 4700 is passed to the `BIO_*printf` functions. If applications use these functions
44652c16
DMSP
4701 in this way then they could be vulnerable. OpenSSL itself uses these
4702 functions when printing out human-readable dumps of ASN.1 data. Therefore
4703 applications that print this data could be vulnerable if the data is from
4704 untrusted sources. OpenSSL command line applications could also be
4705 vulnerable where they print out ASN.1 data, or if untrusted data is passed
4706 as command line arguments.
4707
4708 Libssl is not considered directly vulnerable. Additionally certificates etc
4709 received via remote connections via libssl are also unlikely to be able to
4710 trigger these issues because of message size limits enforced within libssl.
4711
4712 This issue was reported to OpenSSL Guido Vranken.
d8dc8538 4713 ([CVE-2016-0799])
44652c16
DMSP
4714
4715 *Matt Caswell*
4716
4717 * Side channel attack on modular exponentiation
4718
4719 A side-channel attack was found which makes use of cache-bank conflicts on
4720 the Intel Sandy-Bridge microarchitecture which could lead to the recovery
4721 of RSA keys. The ability to exploit this issue is limited as it relies on
4722 an attacker who has control of code in a thread running on the same
4723 hyper-threaded core as the victim thread which is performing decryptions.
4724
4725 This issue was reported to OpenSSL by Yuval Yarom, The University of
4726 Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and
4727 Nadia Heninger, University of Pennsylvania with more information at
257e9d03 4728 <http://cachebleed.info>.
d8dc8538 4729 ([CVE-2016-0702])
44652c16
DMSP
4730
4731 *Andy Polyakov*
4732
4733 * Change the req app to generate a 2048-bit RSA/DSA key by default,
4734 if no keysize is specified with default_bits. This fixes an
4735 omission in an earlier change that changed all RSA/DSA key generation
4736 apps to use 2048 bits by default.
4737
4738 *Emilia Käsper*
4739
257e9d03
RS
4740### Changes between 1.0.2e and 1.0.2f [28 Jan 2016]
4741
44652c16
DMSP
4742 * DH small subgroups
4743
4744 Historically OpenSSL only ever generated DH parameters based on "safe"
4745 primes. More recently (in version 1.0.2) support was provided for
4746 generating X9.42 style parameter files such as those required for RFC 5114
4747 support. The primes used in such files may not be "safe". Where an
4748 application is using DH configured with parameters based on primes that are
4749 not "safe" then an attacker could use this fact to find a peer's private
4750 DH exponent. This attack requires that the attacker complete multiple
4751 handshakes in which the peer uses the same private DH exponent. For example
4752 this could be used to discover a TLS server's private DH exponent if it's
4753 reusing the private DH exponent or it's using a static DH ciphersuite.
4754
4755 OpenSSL provides the option SSL_OP_SINGLE_DH_USE for ephemeral DH (DHE) in
4756 TLS. It is not on by default. If the option is not set then the server
4757 reuses the same private DH exponent for the life of the server process and
4758 would be vulnerable to this attack. It is believed that many popular
4759 applications do set this option and would therefore not be at risk.
4760
4761 The fix for this issue adds an additional check where a "q" parameter is
4762 available (as is the case in X9.42 based parameters). This detects the
4763 only known attack, and is the only possible defense for static DH
4764 ciphersuites. This could have some performance impact.
4765
4766 Additionally the SSL_OP_SINGLE_DH_USE option has been switched on by
4767 default and cannot be disabled. This could have some performance impact.
4768
4769 This issue was reported to OpenSSL by Antonio Sanso (Adobe).
d8dc8538 4770 ([CVE-2016-0701])
44652c16
DMSP
4771
4772 *Matt Caswell*
4773
4774 * SSLv2 doesn't block disabled ciphers
4775
4776 A malicious client can negotiate SSLv2 ciphers that have been disabled on
4777 the server and complete SSLv2 handshakes even if all SSLv2 ciphers have
4778 been disabled, provided that the SSLv2 protocol was not also disabled via
4779 SSL_OP_NO_SSLv2.
4780
4781 This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram
4782 and Sebastian Schinzel.
d8dc8538 4783 ([CVE-2015-3197])
44652c16
DMSP
4784
4785 *Viktor Dukhovni*
4786
257e9d03 4787### Changes between 1.0.2d and 1.0.2e [3 Dec 2015]
44652c16
DMSP
4788
4789 * BN_mod_exp may produce incorrect results on x86_64
4790
4791 There is a carry propagating bug in the x86_64 Montgomery squaring
4792 procedure. No EC algorithms are affected. Analysis suggests that attacks
4793 against RSA and DSA as a result of this defect would be very difficult to
4794 perform and are not believed likely. Attacks against DH are considered just
4795 feasible (although very difficult) because most of the work necessary to
4796 deduce information about a private key may be performed offline. The amount
4797 of resources required for such an attack would be very significant and
4798 likely only accessible to a limited number of attackers. An attacker would
4799 additionally need online access to an unpatched system using the target
4800 private key in a scenario with persistent DH parameters and a private
4801 key that is shared between multiple clients. For example this can occur by
4802 default in OpenSSL DHE based SSL/TLS ciphersuites.
4803
4804 This issue was reported to OpenSSL by Hanno Böck.
d8dc8538 4805 ([CVE-2015-3193])
44652c16
DMSP
4806
4807 *Andy Polyakov*
4808
4809 * Certificate verify crash with missing PSS parameter
4810
4811 The signature verification routines will crash with a NULL pointer
4812 dereference if presented with an ASN.1 signature using the RSA PSS
4813 algorithm and absent mask generation function parameter. Since these
4814 routines are used to verify certificate signature algorithms this can be
4815 used to crash any certificate verification operation and exploited in a
4816 DoS attack. Any application which performs certificate verification is
4817 vulnerable including OpenSSL clients and servers which enable client
4818 authentication.
4819
4820 This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG).
d8dc8538 4821 ([CVE-2015-3194])
44652c16
DMSP
4822
4823 *Stephen Henson*
4824
4825 * X509_ATTRIBUTE memory leak
4826
4827 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
4828 memory. This structure is used by the PKCS#7 and CMS routines so any
4829 application which reads PKCS#7 or CMS data from untrusted sources is
4830 affected. SSL/TLS is not affected.
4831
4832 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
4833 libFuzzer.
d8dc8538 4834 ([CVE-2015-3195])
44652c16
DMSP
4835
4836 *Stephen Henson*
4837
4838 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
4839 This changes the decoding behaviour for some invalid messages,
4840 though the change is mostly in the more lenient direction, and
4841 legacy behaviour is preserved as much as possible.
4842
4843 *Emilia Käsper*
4844
4845 * In DSA_generate_parameters_ex, if the provided seed is too short,
4846 return an error
4847
4848 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
4849
257e9d03 4850### Changes between 1.0.2c and 1.0.2d [9 Jul 2015]
44652c16
DMSP
4851
4852 * Alternate chains certificate forgery
4853
4854 During certificate verification, OpenSSL will attempt to find an
4855 alternative certificate chain if the first attempt to build such a chain
4856 fails. An error in the implementation of this logic can mean that an
4857 attacker could cause certain checks on untrusted certificates to be
4858 bypassed, such as the CA flag, enabling them to use a valid leaf
4859 certificate to act as a CA and "issue" an invalid certificate.
4860
4861 This issue was reported to OpenSSL by Adam Langley/David Benjamin
4862 (Google/BoringSSL).
4863
4864 *Matt Caswell*
4865
257e9d03 4866### Changes between 1.0.2b and 1.0.2c [12 Jun 2015]
44652c16
DMSP
4867
4868 * Fix HMAC ABI incompatibility. The previous version introduced an ABI
4869 incompatibility in the handling of HMAC. The previous ABI has now been
4870 restored.
4871
4872 *Matt Caswell*
4873
257e9d03 4874### Changes between 1.0.2a and 1.0.2b [11 Jun 2015]
44652c16
DMSP
4875
4876 * Malformed ECParameters causes infinite loop
4877
4878 When processing an ECParameters structure OpenSSL enters an infinite loop
4879 if the curve specified is over a specially malformed binary polynomial
4880 field.
4881
4882 This can be used to perform denial of service against any
4883 system which processes public keys, certificate requests or
4884 certificates. This includes TLS clients and TLS servers with
4885 client authentication enabled.
4886
4887 This issue was reported to OpenSSL by Joseph Barr-Pixton.
d8dc8538 4888 ([CVE-2015-1788])
44652c16
DMSP
4889
4890 *Andy Polyakov*
4891
4892 * Exploitable out-of-bounds read in X509_cmp_time
4893
4894 X509_cmp_time does not properly check the length of the ASN1_TIME
4895 string and can read a few bytes out of bounds. In addition,
4896 X509_cmp_time accepts an arbitrary number of fractional seconds in the
4897 time string.
4898
4899 An attacker can use this to craft malformed certificates and CRLs of
4900 various sizes and potentially cause a segmentation fault, resulting in
4901 a DoS on applications that verify certificates or CRLs. TLS clients
4902 that verify CRLs are affected. TLS clients and servers with client
4903 authentication enabled may be affected if they use custom verification
4904 callbacks.
4905
4906 This issue was reported to OpenSSL by Robert Swiecki (Google), and
4907 independently by Hanno Böck.
d8dc8538 4908 ([CVE-2015-1789])
44652c16
DMSP
4909
4910 *Emilia Käsper*
4911
4912 * PKCS7 crash with missing EnvelopedContent
4913
4914 The PKCS#7 parsing code does not handle missing inner EncryptedContent
4915 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
4916 with missing content and trigger a NULL pointer dereference on parsing.
4917
4918 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
4919 structures from untrusted sources are affected. OpenSSL clients and
4920 servers are not affected.
4921
4922 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 4923 ([CVE-2015-1790])
44652c16
DMSP
4924
4925 *Emilia Käsper*
4926
4927 * CMS verify infinite loop with unknown hash function
4928
4929 When verifying a signedData message the CMS code can enter an infinite loop
4930 if presented with an unknown hash function OID. This can be used to perform
4931 denial of service against any system which verifies signedData messages using
4932 the CMS code.
4933 This issue was reported to OpenSSL by Johannes Bauer.
d8dc8538 4934 ([CVE-2015-1792])
44652c16
DMSP
4935
4936 *Stephen Henson*
4937
4938 * Race condition handling NewSessionTicket
4939
4940 If a NewSessionTicket is received by a multi-threaded client when attempting to
4941 reuse a previous ticket then a race condition can occur potentially leading to
4942 a double free of the ticket data.
d8dc8538 4943 ([CVE-2015-1791])
44652c16
DMSP
4944
4945 *Matt Caswell*
4946
4947 * Only support 256-bit or stronger elliptic curves with the
4948 'ecdh_auto' setting (server) or by default (client). Of supported
4949 curves, prefer P-256 (both).
4950
4951 *Emilia Kasper*
4952
257e9d03 4953### Changes between 1.0.2 and 1.0.2a [19 Mar 2015]
44652c16
DMSP
4954
4955 * ClientHello sigalgs DoS fix
4956
4957 If a client connects to an OpenSSL 1.0.2 server and renegotiates with an
4958 invalid signature algorithms extension a NULL pointer dereference will
4959 occur. This can be exploited in a DoS attack against the server.
4960
4961 This issue was was reported to OpenSSL by David Ramos of Stanford
4962 University.
d8dc8538 4963 ([CVE-2015-0291])
44652c16
DMSP
4964
4965 *Stephen Henson and Matt Caswell*
4966
4967 * Multiblock corrupted pointer fix
4968
4969 OpenSSL 1.0.2 introduced the "multiblock" performance improvement. This
4970 feature only applies on 64 bit x86 architecture platforms that support AES
4971 NI instructions. A defect in the implementation of "multiblock" can cause
4972 OpenSSL's internal write buffer to become incorrectly set to NULL when
4973 using non-blocking IO. Typically, when the user application is using a
4974 socket BIO for writing, this will only result in a failed connection.
4975 However if some other BIO is used then it is likely that a segmentation
4976 fault will be triggered, thus enabling a potential DoS attack.
4977
4978 This issue was reported to OpenSSL by Daniel Danner and Rainer Mueller.
d8dc8538 4979 ([CVE-2015-0290])
44652c16
DMSP
4980
4981 *Matt Caswell*
4982
4983 * Segmentation fault in DTLSv1_listen fix
4984
4985 The DTLSv1_listen function is intended to be stateless and processes the
4986 initial ClientHello from many peers. It is common for user code to loop
4987 over the call to DTLSv1_listen until a valid ClientHello is received with
4988 an associated cookie. A defect in the implementation of DTLSv1_listen means
4989 that state is preserved in the SSL object from one invocation to the next
4990 that can lead to a segmentation fault. Errors processing the initial
4991 ClientHello can trigger this scenario. An example of such an error could be
4992 that a DTLS1.0 only client is attempting to connect to a DTLS1.2 only
4993 server.
4994
4995 This issue was reported to OpenSSL by Per Allansson.
d8dc8538 4996 ([CVE-2015-0207])
44652c16
DMSP
4997
4998 *Matt Caswell*
4999
5000 * Segmentation fault in ASN1_TYPE_cmp fix
5001
5002 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
5003 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
5004 certificate signature algorithm consistency this can be used to crash any
5005 certificate verification operation and exploited in a DoS attack. Any
5006 application which performs certificate verification is vulnerable including
5007 OpenSSL clients and servers which enable client authentication.
d8dc8538 5008 ([CVE-2015-0286])
44652c16
DMSP
5009
5010 *Stephen Henson*
5011
5012 * Segmentation fault for invalid PSS parameters fix
5013
5014 The signature verification routines will crash with a NULL pointer
5015 dereference if presented with an ASN.1 signature using the RSA PSS
5016 algorithm and invalid parameters. Since these routines are used to verify
5017 certificate signature algorithms this can be used to crash any
5018 certificate verification operation and exploited in a DoS attack. Any
5019 application which performs certificate verification is vulnerable including
5020 OpenSSL clients and servers which enable client authentication.
5021
5022 This issue was was reported to OpenSSL by Brian Carpenter.
d8dc8538 5023 ([CVE-2015-0208])
44652c16
DMSP
5024
5025 *Stephen Henson*
5026
5027 * ASN.1 structure reuse memory corruption fix
5028
5029 Reusing a structure in ASN.1 parsing may allow an attacker to cause
5030 memory corruption via an invalid write. Such reuse is and has been
5031 strongly discouraged and is believed to be rare.
5032
5033 Applications that parse structures containing CHOICE or ANY DEFINED BY
5034 components may be affected. Certificate parsing (d2i_X509 and related
5035 functions) are however not affected. OpenSSL clients and servers are
5036 not affected.
d8dc8538 5037 ([CVE-2015-0287])
44652c16
DMSP
5038
5039 *Stephen Henson*
5040
5041 * PKCS7 NULL pointer dereferences fix
5042
5043 The PKCS#7 parsing code does not handle missing outer ContentInfo
5044 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
5045 missing content and trigger a NULL pointer dereference on parsing.
5046
5047 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
5048 otherwise parse PKCS#7 structures from untrusted sources are
5049 affected. OpenSSL clients and servers are not affected.
5050
5051 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 5052 ([CVE-2015-0289])
44652c16
DMSP
5053
5054 *Emilia Käsper*
5055
5056 * DoS via reachable assert in SSLv2 servers fix
5057
5058 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
5059 servers that both support SSLv2 and enable export cipher suites by sending
5060 a specially crafted SSLv2 CLIENT-MASTER-KEY message.
5061
5062 This issue was discovered by Sean Burford (Google) and Emilia Käsper
5063 (OpenSSL development team).
d8dc8538 5064 ([CVE-2015-0293])
44652c16
DMSP
5065
5066 *Emilia Käsper*
5067
5068 * Empty CKE with client auth and DHE fix
5069
5070 If client auth is used then a server can seg fault in the event of a DHE
5071 ciphersuite being selected and a zero length ClientKeyExchange message
5072 being sent by the client. This could be exploited in a DoS attack.
d8dc8538 5073 ([CVE-2015-1787])
44652c16
DMSP
5074
5075 *Matt Caswell*
5076
5077 * Handshake with unseeded PRNG fix
5078
5079 Under certain conditions an OpenSSL 1.0.2 client can complete a handshake
5080 with an unseeded PRNG. The conditions are:
5081 - The client is on a platform where the PRNG has not been seeded
5082 automatically, and the user has not seeded manually
5083 - A protocol specific client method version has been used (i.e. not
5084 SSL_client_methodv23)
5085 - A ciphersuite is used that does not require additional random data from
5086 the PRNG beyond the initial ClientHello client random (e.g. PSK-RC4-SHA).
5087
5088 If the handshake succeeds then the client random that has been used will
5089 have been generated from a PRNG with insufficient entropy and therefore the
5090 output may be predictable.
5091
5092 For example using the following command with an unseeded openssl will
5093 succeed on an unpatched platform:
5094
5095 openssl s_client -psk 1a2b3c4d -tls1_2 -cipher PSK-RC4-SHA
d8dc8538 5096 ([CVE-2015-0285])
44652c16
DMSP
5097
5098 *Matt Caswell*
5099
5100 * Use After Free following d2i_ECPrivatekey error fix
5101
5102 A malformed EC private key file consumed via the d2i_ECPrivateKey function
5103 could cause a use after free condition. This, in turn, could cause a double
5104 free in several private key parsing functions (such as d2i_PrivateKey
5105 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
5106 for applications that receive EC private keys from untrusted
5107 sources. This scenario is considered rare.
5108
5109 This issue was discovered by the BoringSSL project and fixed in their
5110 commit 517073cd4b.
d8dc8538 5111 ([CVE-2015-0209])
44652c16
DMSP
5112
5113 *Matt Caswell*
5114
5115 * X509_to_X509_REQ NULL pointer deref fix
5116
5117 The function X509_to_X509_REQ will crash with a NULL pointer dereference if
5118 the certificate key is invalid. This function is rarely used in practice.
5119
5120 This issue was discovered by Brian Carpenter.
d8dc8538 5121 ([CVE-2015-0288])
44652c16
DMSP
5122
5123 *Stephen Henson*
5124
5125 * Removed the export ciphers from the DEFAULT ciphers
5126
5127 *Kurt Roeckx*
5128
257e9d03 5129### Changes between 1.0.1l and 1.0.2 [22 Jan 2015]
44652c16
DMSP
5130
5131 * Facilitate "universal" ARM builds targeting range of ARM ISAs, e.g.
5132 ARMv5 through ARMv8, as opposite to "locking" it to single one.
5133 So far those who have to target multiple platforms would compromise
5134 and argue that binary targeting say ARMv5 would still execute on
5135 ARMv8. "Universal" build resolves this compromise by providing
5136 near-optimal performance even on newer platforms.
5137
5138 *Andy Polyakov*
5139
5140 * Accelerated NIST P-256 elliptic curve implementation for x86_64
5141 (other platforms pending).
5142
5143 *Shay Gueron & Vlad Krasnov (Intel Corp), Andy Polyakov*
5f8e6c50
DMSP
5144
5145 * Add support for the SignedCertificateTimestampList certificate and
5146 OCSP response extensions from RFC6962.
5147
44652c16
DMSP
5148 *Rob Stradling*
5149
5150 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
5151 for corner cases. (Certain input points at infinity could lead to
5152 bogus results, with non-infinity inputs mapped to infinity too.)
5153
5154 *Bodo Moeller*
5155
5156 * Initial support for PowerISA 2.0.7, first implemented in POWER8.
5157 This covers AES, SHA256/512 and GHASH. "Initial" means that most
5158 common cases are optimized and there still is room for further
5159 improvements. Vector Permutation AES for Altivec is also added.
5160
5161 *Andy Polyakov*
5162
5163 * Add support for little-endian ppc64 Linux target.
5164
5165 *Marcelo Cerri (IBM)*
5166
5167 * Initial support for AMRv8 ISA crypto extensions. This covers AES,
5168 SHA1, SHA256 and GHASH. "Initial" means that most common cases
5169 are optimized and there still is room for further improvements.
5170 Both 32- and 64-bit modes are supported.
5171
5172 *Andy Polyakov, Ard Biesheuvel (Linaro)*
5173
5174 * Improved ARMv7 NEON support.
5175
5176 *Andy Polyakov*
5177
5178 * Support for SPARC Architecture 2011 crypto extensions, first
5179 implemented in SPARC T4. This covers AES, DES, Camellia, SHA1,
5180 SHA256/512, MD5, GHASH and modular exponentiation.
5181
5182 *Andy Polyakov, David Miller*
5183
5184 * Accelerated modular exponentiation for Intel processors, a.k.a.
5185 RSAZ.
5186
5187 *Shay Gueron & Vlad Krasnov (Intel Corp)*
5188
5189 * Support for new and upcoming Intel processors, including AVX2,
5190 BMI and SHA ISA extensions. This includes additional "stitched"
5191 implementations, AESNI-SHA256 and GCM, and multi-buffer support
5192 for TLS encrypt.
5193
5194 This work was sponsored by Intel Corp.
5195
5196 *Andy Polyakov*
5197
5198 * Support for DTLS 1.2. This adds two sets of DTLS methods: DTLS_*_method()
5199 supports both DTLS 1.2 and 1.0 and should use whatever version the peer
5200 supports and DTLSv1_2_*_method() which supports DTLS 1.2 only.
5201
5202 *Steve Henson*
5203
5204 * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
5205 this fixes a limitation in previous versions of OpenSSL.
5206
5207 *Steve Henson*
5208
5209 * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
5210 MGF1 digest and OAEP label.
5211
5212 *Steve Henson*
5213
5214 * Add EVP support for key wrapping algorithms, to avoid problems with
5215 existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
5216 the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
5217 algorithms and include tests cases.
5218
5219 *Steve Henson*
5220
5221 * Add functions to allocate and set the fields of an ECDSA_METHOD
5222 structure.
5223
5224 *Douglas E. Engert, Steve Henson*
5225
5226 * New functions OPENSSL_gmtime_diff and ASN1_TIME_diff to find the
5227 difference in days and seconds between two tm or ASN1_TIME structures.
5228
5229 *Steve Henson*
5230
5231 * Add -rev test option to s_server to just reverse order of characters
5232 received by client and send back to server. Also prints an abbreviated
5233 summary of the connection parameters.
5234
5235 *Steve Henson*
5236
5237 * New option -brief for s_client and s_server to print out a brief summary
5238 of connection parameters.
5239
5240 *Steve Henson*
5241
5242 * Add callbacks for arbitrary TLS extensions.
5243
5244 *Trevor Perrin <trevp@trevp.net> and Ben Laurie*
5245
5246 * New option -crl_download in several openssl utilities to download CRLs
5247 from CRLDP extension in certificates.
5248
5249 *Steve Henson*
5250
5251 * New options -CRL and -CRLform for s_client and s_server for CRLs.
5252
5253 *Steve Henson*
5254
5255 * New function X509_CRL_diff to generate a delta CRL from the difference
5256 of two full CRLs. Add support to "crl" utility.
5257
5258 *Steve Henson*
5259
5260 * New functions to set lookup_crls function and to retrieve
5261 X509_STORE from X509_STORE_CTX.
5262
5263 *Steve Henson*
5264
5265 * Print out deprecated issuer and subject unique ID fields in
5266 certificates.
5267
5268 *Steve Henson*
5269
5270 * Extend OCSP I/O functions so they can be used for simple general purpose
5271 HTTP as well as OCSP. New wrapper function which can be used to download
5272 CRLs using the OCSP API.
5273
5274 *Steve Henson*
5275
5276 * Delegate command line handling in s_client/s_server to SSL_CONF APIs.
5277
5278 *Steve Henson*
5279
257e9d03 5280 * `SSL_CONF*` functions. These provide a common framework for application
44652c16
DMSP
5281 configuration using configuration files or command lines.
5282
5283 *Steve Henson*
5284
5285 * SSL/TLS tracing code. This parses out SSL/TLS records using the
5286 message callback and prints the results. Needs compile time option
5287 "enable-ssl-trace". New options to s_client and s_server to enable
5288 tracing.
5289
5290 *Steve Henson*
5291
5292 * New ctrl and macro to retrieve supported points extensions.
5293 Print out extension in s_server and s_client.
5294
5295 *Steve Henson*
5296
5297 * New functions to retrieve certificate signature and signature
5298 OID NID.
5299
5300 *Steve Henson*
5301
5302 * Add functions to retrieve and manipulate the raw cipherlist sent by a
5303 client to OpenSSL.
5304
5305 *Steve Henson*
5306
5307 * New Suite B modes for TLS code. These use and enforce the requirements
5308 of RFC6460: restrict ciphersuites, only permit Suite B algorithms and
5309 only use Suite B curves. The Suite B modes can be set by using the
5310 strings "SUITEB128", "SUITEB192" or "SUITEB128ONLY" for the cipherstring.
5311
5312 *Steve Henson*
5313
5314 * New chain verification flags for Suite B levels of security. Check
5315 algorithms are acceptable when flags are set in X509_verify_cert.
5316
5317 *Steve Henson*
5318
5319 * Make tls1_check_chain return a set of flags indicating checks passed
5320 by a certificate chain. Add additional tests to handle client
5321 certificates: checks for matching certificate type and issuer name
5322 comparison.
5323
5324 *Steve Henson*
5325
5326 * If an attempt is made to use a signature algorithm not in the peer
5327 preference list abort the handshake. If client has no suitable
5328 signature algorithms in response to a certificate request do not
5329 use the certificate.
5330
5331 *Steve Henson*
5332
5333 * If server EC tmp key is not in client preference list abort handshake.
5334
5335 *Steve Henson*
5336
5337 * Add support for certificate stores in CERT structure. This makes it
5338 possible to have different stores per SSL structure or one store in
5339 the parent SSL_CTX. Include distinct stores for certificate chain
5340 verification and chain building. New ctrl SSL_CTRL_BUILD_CERT_CHAIN
5341 to build and store a certificate chain in CERT structure: returning
5342 an error if the chain cannot be built: this will allow applications
5343 to test if a chain is correctly configured.
5344
5345 Note: if the CERT based stores are not set then the parent SSL_CTX
5346 store is used to retain compatibility with existing behaviour.
5347
44652c16
DMSP
5348 *Steve Henson*
5349
5350 * New function ssl_set_client_disabled to set a ciphersuite disabled
5351 mask based on the current session, check mask when sending client
5352 hello and checking the requested ciphersuite.
5353
5354 *Steve Henson*
5355
5356 * New ctrls to retrieve and set certificate types in a certificate
5357 request message. Print out received values in s_client. If certificate
5358 types is not set with custom values set sensible values based on
5359 supported signature algorithms.
5360
5361 *Steve Henson*
5362
5363 * Support for distinct client and server supported signature algorithms.
5364
5365 *Steve Henson*
5366
5367 * Add certificate callback. If set this is called whenever a certificate
5368 is required by client or server. An application can decide which
5369 certificate chain to present based on arbitrary criteria: for example
5370 supported signature algorithms. Add very simple example to s_server.
5371 This fixes many of the problems and restrictions of the existing client
5372 certificate callback: for example you can now clear an existing
5373 certificate and specify the whole chain.
5374
5375 *Steve Henson*
5376
5377 * Add new "valid_flags" field to CERT_PKEY structure which determines what
5378 the certificate can be used for (if anything). Set valid_flags field
5379 in new tls1_check_chain function. Simplify ssl_set_cert_masks which used
5380 to have similar checks in it.
5381
5382 Add new "cert_flags" field to CERT structure and include a "strict mode".
5383 This enforces some TLS certificate requirements (such as only permitting
5384 certificate signature algorithms contained in the supported algorithms
5385 extension) which some implementations ignore: this option should be used
5386 with caution as it could cause interoperability issues.
5387
5388 *Steve Henson*
5389
5390 * Update and tidy signature algorithm extension processing. Work out
5391 shared signature algorithms based on preferences and peer algorithms
5392 and print them out in s_client and s_server. Abort handshake if no
5393 shared signature algorithms.
5394
5395 *Steve Henson*
5396
5397 * Add new functions to allow customised supported signature algorithms
5398 for SSL and SSL_CTX structures. Add options to s_client and s_server
5399 to support them.
5400
5401 *Steve Henson*
5402
5403 * New function SSL_certs_clear() to delete all references to certificates
5404 from an SSL structure. Before this once a certificate had been added
5405 it couldn't be removed.
5406
5407 *Steve Henson*
5408
5409 * Integrate hostname, email address and IP address checking with certificate
5410 verification. New verify options supporting checking in openssl utility.
5411
5412 *Steve Henson*
5413
5414 * Fixes and wildcard matching support to hostname and email checking
5415 functions. Add manual page.
5416
5417 *Florian Weimer (Red Hat Product Security Team)*
5418
5419 * New functions to check a hostname email or IP address against a
5420 certificate. Add options x509 utility to print results of checks against
5421 a certificate.
5422
5423 *Steve Henson*
5424
5425 * Fix OCSP checking.
5426
5427 *Rob Stradling <rob.stradling@comodo.com> and Ben Laurie*
5428
5429 * Initial experimental support for explicitly trusted non-root CAs.
5430 OpenSSL still tries to build a complete chain to a root but if an
5431 intermediate CA has a trust setting included that is used. The first
5432 setting is used: whether to trust (e.g., -addtrust option to the x509
5433 utility) or reject.
5434
5435 *Steve Henson*
5436
5437 * Add -trusted_first option which attempts to find certificates in the
5438 trusted store even if an untrusted chain is also supplied.
5439
5440 *Steve Henson*
5441
5442 * MIPS assembly pack updates: support for MIPS32r2 and SmartMIPS ASE,
5443 platform support for Linux and Android.
5444
5445 *Andy Polyakov*
5446
5447 * Support for linux-x32, ILP32 environment in x86_64 framework.
5448
5449 *Andy Polyakov*
5450
5451 * Experimental multi-implementation support for FIPS capable OpenSSL.
5452 When in FIPS mode the approved implementations are used as normal,
5453 when not in FIPS mode the internal unapproved versions are used instead.
5454 This means that the FIPS capable OpenSSL isn't forced to use the
5455 (often lower performance) FIPS implementations outside FIPS mode.
5456
5457 *Steve Henson*
5458
5459 * Transparently support X9.42 DH parameters when calling
5460 PEM_read_bio_DHparameters. This means existing applications can handle
5461 the new parameter format automatically.
5462
5463 *Steve Henson*
5464
5465 * Initial experimental support for X9.42 DH parameter format: mainly
5466 to support use of 'q' parameter for RFC5114 parameters.
5467
5468 *Steve Henson*
5469
5470 * Add DH parameters from RFC5114 including test data to dhtest.
5471
5472 *Steve Henson*
5473
5474 * Support for automatic EC temporary key parameter selection. If enabled
5475 the most preferred EC parameters are automatically used instead of
5476 hardcoded fixed parameters. Now a server just has to call:
5477 SSL_CTX_set_ecdh_auto(ctx, 1) and the server will automatically
5478 support ECDH and use the most appropriate parameters.
5479
5480 *Steve Henson*
5481
5482 * Enhance and tidy EC curve and point format TLS extension code. Use
5483 static structures instead of allocation if default values are used.
5484 New ctrls to set curves we wish to support and to retrieve shared curves.
5485 Print out shared curves in s_server. New options to s_server and s_client
5486 to set list of supported curves.
5487
5488 *Steve Henson*
5489
5490 * New ctrls to retrieve supported signature algorithms and
5491 supported curve values as an array of NIDs. Extend openssl utility
5492 to print out received values.
5493
5494 *Steve Henson*
5495
5496 * Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert
5497 between NIDs and the more common NIST names such as "P-256". Enhance
5498 ecparam utility and ECC method to recognise the NIST names for curves.
5499
5500 *Steve Henson*
5501
5502 * Enhance SSL/TLS certificate chain handling to support different
5503 chains for each certificate instead of one chain in the parent SSL_CTX.
5504
5505 *Steve Henson*
5506
5507 * Support for fixed DH ciphersuite client authentication: where both
5508 server and client use DH certificates with common parameters.
5509
5510 *Steve Henson*
5511
5512 * Support for fixed DH ciphersuites: those requiring DH server
5513 certificates.
5514
5515 *Steve Henson*
5516
5517 * New function i2d_re_X509_tbs for re-encoding the TBS portion of
5518 the certificate.
5519 Note: Related 1.0.2-beta specific macros X509_get_cert_info,
5520 X509_CINF_set_modified, X509_CINF_get_issuer, X509_CINF_get_extensions and
5521 X509_CINF_get_signature were reverted post internal team review.
5522
44652c16
DMSP
5523OpenSSL 1.0.1
5524-------------
5525
257e9d03 5526### Changes between 1.0.1t and 1.0.1u [22 Sep 2016]
44652c16
DMSP
5527
5528 * OCSP Status Request extension unbounded memory growth
5529
5530 A malicious client can send an excessively large OCSP Status Request
5531 extension. If that client continually requests renegotiation, sending a
5532 large OCSP Status Request extension each time, then there will be unbounded
5533 memory growth on the server. This will eventually lead to a Denial Of
5534 Service attack through memory exhaustion. Servers with a default
5535 configuration are vulnerable even if they do not support OCSP. Builds using
5536 the "no-ocsp" build time option are not affected.
5537
5538 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5539 ([CVE-2016-6304])
44652c16
DMSP
5540
5541 *Matt Caswell*
5542
5543 * In order to mitigate the SWEET32 attack, the DES ciphers were moved from
5544 HIGH to MEDIUM.
5545
5546 This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan
5547 Leurent (INRIA)
d8dc8538 5548 ([CVE-2016-2183])
44652c16
DMSP
5549
5550 *Rich Salz*
5551
5552 * OOB write in MDC2_Update()
5553
5554 An overflow can occur in MDC2_Update() either if called directly or
5555 through the EVP_DigestUpdate() function using MDC2. If an attacker
5556 is able to supply very large amounts of input data after a previous
5557 call to EVP_EncryptUpdate() with a partial block then a length check
5558 can overflow resulting in a heap corruption.
5559
5560 The amount of data needed is comparable to SIZE_MAX which is impractical
5561 on most platforms.
5562
5563 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5564 ([CVE-2016-6303])
44652c16
DMSP
5565
5566 *Stephen Henson*
5567
5568 * Malformed SHA512 ticket DoS
5569
5570 If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a
5571 DoS attack where a malformed ticket will result in an OOB read which will
5572 ultimately crash.
5573
5574 The use of SHA512 in TLS session tickets is comparatively rare as it requires
5575 a custom server callback and ticket lookup mechanism.
5576
5577 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5578 ([CVE-2016-6302])
44652c16
DMSP
5579
5580 *Stephen Henson*
5581
5582 * OOB write in BN_bn2dec()
5583
5584 The function BN_bn2dec() does not check the return value of BN_div_word().
5585 This can cause an OOB write if an application uses this function with an
5586 overly large BIGNUM. This could be a problem if an overly large certificate
5587 or CRL is printed out from an untrusted source. TLS is not affected because
5588 record limits will reject an oversized certificate before it is parsed.
5589
5590 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5591 ([CVE-2016-2182])
44652c16
DMSP
5592
5593 *Stephen Henson*
5594
5595 * OOB read in TS_OBJ_print_bio()
5596
5597 The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is
5598 the total length the OID text representation would use and not the amount
5599 of data written. This will result in OOB reads when large OIDs are
5600 presented.
5601
5602 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5603 ([CVE-2016-2180])
44652c16
DMSP
5604
5605 *Stephen Henson*
5606
5607 * Pointer arithmetic undefined behaviour
5608
5609 Avoid some undefined pointer arithmetic
5610
5611 A common idiom in the codebase is to check limits in the following manner:
5612 "p + len > limit"
5613
5614 Where "p" points to some malloc'd data of SIZE bytes and
5615 limit == p + SIZE
5616
5617 "len" here could be from some externally supplied data (e.g. from a TLS
5618 message).
5619
5620 The rules of C pointer arithmetic are such that "p + len" is only well
5621 defined where len <= SIZE. Therefore the above idiom is actually
5622 undefined behaviour.
5623
5624 For example this could cause problems if some malloc implementation
5625 provides an address for "p" such that "p + len" actually overflows for
5626 values of len that are too big and therefore p + len < limit.
5627
5628 This issue was reported to OpenSSL by Guido Vranken
d8dc8538 5629 ([CVE-2016-2177])
44652c16
DMSP
5630
5631 *Matt Caswell*
5632
5633 * Constant time flag not preserved in DSA signing
5634
5635 Operations in the DSA signing algorithm should run in constant time in
5636 order to avoid side channel attacks. A flaw in the OpenSSL DSA
5637 implementation means that a non-constant time codepath is followed for
5638 certain operations. This has been demonstrated through a cache-timing
5639 attack to be sufficient for an attacker to recover the private DSA key.
5640
5641 This issue was reported by César Pereida (Aalto University), Billy Brumley
5642 (Tampere University of Technology), and Yuval Yarom (The University of
5643 Adelaide and NICTA).
d8dc8538 5644 ([CVE-2016-2178])
44652c16
DMSP
5645
5646 *César Pereida*
5647
5648 * DTLS buffered message DoS
5649
5650 In a DTLS connection where handshake messages are delivered out-of-order
5651 those messages that OpenSSL is not yet ready to process will be buffered
5652 for later use. Under certain circumstances, a flaw in the logic means that
5653 those messages do not get removed from the buffer even though the handshake
5654 has been completed. An attacker could force up to approx. 15 messages to
5655 remain in the buffer when they are no longer required. These messages will
5656 be cleared when the DTLS connection is closed. The default maximum size for
5657 a message is 100k. Therefore the attacker could force an additional 1500k
5658 to be consumed per connection. By opening many simulataneous connections an
5659 attacker could cause a DoS attack through memory exhaustion.
5660
5661 This issue was reported to OpenSSL by Quan Luo.
d8dc8538 5662 ([CVE-2016-2179])
44652c16
DMSP
5663
5664 *Matt Caswell*
5665
5666 * DTLS replay protection DoS
5667
5668 A flaw in the DTLS replay attack protection mechanism means that records
5669 that arrive for future epochs update the replay protection "window" before
5670 the MAC for the record has been validated. This could be exploited by an
5671 attacker by sending a record for the next epoch (which does not have to
5672 decrypt or have a valid MAC), with a very large sequence number. This means
5673 that all subsequent legitimate packets are dropped causing a denial of
5674 service for a specific DTLS connection.
5675
5676 This issue was reported to OpenSSL by the OCAP audit team.
d8dc8538 5677 ([CVE-2016-2181])
44652c16
DMSP
5678
5679 *Matt Caswell*
5680
5681 * Certificate message OOB reads
5682
5683 In OpenSSL 1.0.2 and earlier some missing message length checks can result
5684 in OOB reads of up to 2 bytes beyond an allocated buffer. There is a
5685 theoretical DoS risk but this has not been observed in practice on common
5686 platforms.
5687
5688 The messages affected are client certificate, client certificate request
5689 and server certificate. As a result the attack can only be performed
5690 against a client or a server which enables client authentication.
5691
5692 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5693 ([CVE-2016-6306])
44652c16
DMSP
5694
5695 *Stephen Henson*
5696
257e9d03 5697### Changes between 1.0.1s and 1.0.1t [3 May 2016]
44652c16
DMSP
5698
5699 * Prevent padding oracle in AES-NI CBC MAC check
5700
5701 A MITM attacker can use a padding oracle attack to decrypt traffic
5702 when the connection uses an AES CBC cipher and the server support
5703 AES-NI.
5704
5705 This issue was introduced as part of the fix for Lucky 13 padding
d8dc8538 5706 attack ([CVE-2013-0169]). The padding check was rewritten to be in
44652c16
DMSP
5707 constant time by making sure that always the same bytes are read and
5708 compared against either the MAC or padding bytes. But it no longer
5709 checked that there was enough data to have both the MAC and padding
5710 bytes.
5711
5712 This issue was reported by Juraj Somorovsky using TLS-Attacker.
d8dc8538 5713 ([CVE-2016-2107])
44652c16
DMSP
5714
5715 *Kurt Roeckx*
5716
5717 * Fix EVP_EncodeUpdate overflow
5718
5719 An overflow can occur in the EVP_EncodeUpdate() function which is used for
5720 Base64 encoding of binary data. If an attacker is able to supply very large
5721 amounts of input data then a length check can overflow resulting in a heap
5722 corruption.
5723
5724 Internally to OpenSSL the EVP_EncodeUpdate() function is primarly used by
257e9d03 5725 the `PEM_write_bio*` family of functions. These are mainly used within the
44652c16
DMSP
5726 OpenSSL command line applications, so any application which processes data
5727 from an untrusted source and outputs it as a PEM file should be considered
5728 vulnerable to this issue. User applications that call these APIs directly
5729 with large amounts of untrusted data may also be vulnerable.
5730
5731 This issue was reported by Guido Vranken.
d8dc8538 5732 ([CVE-2016-2105])
44652c16
DMSP
5733
5734 *Matt Caswell*
5735
5736 * Fix EVP_EncryptUpdate overflow
5737
5738 An overflow can occur in the EVP_EncryptUpdate() function. If an attacker
5739 is able to supply very large amounts of input data after a previous call to
5740 EVP_EncryptUpdate() with a partial block then a length check can overflow
5741 resulting in a heap corruption. Following an analysis of all OpenSSL
5742 internal usage of the EVP_EncryptUpdate() function all usage is one of two
5743 forms. The first form is where the EVP_EncryptUpdate() call is known to be
5744 the first called function after an EVP_EncryptInit(), and therefore that
5745 specific call must be safe. The second form is where the length passed to
5746 EVP_EncryptUpdate() can be seen from the code to be some small value and
5747 therefore there is no possibility of an overflow. Since all instances are
5748 one of these two forms, it is believed that there can be no overflows in
5749 internal code due to this problem. It should be noted that
5750 EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths.
5751 Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances
5752 of these calls have also been analysed too and it is believed there are no
5753 instances in internal usage where an overflow could occur.
5754
5755 This issue was reported by Guido Vranken.
d8dc8538 5756 ([CVE-2016-2106])
44652c16
DMSP
5757
5758 *Matt Caswell*
5759
5760 * Prevent ASN.1 BIO excessive memory allocation
5761
5762 When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio()
5763 a short invalid encoding can casuse allocation of large amounts of memory
5764 potentially consuming excessive resources or exhausting memory.
5765
5766 Any application parsing untrusted data through d2i BIO functions is
5767 affected. The memory based functions such as d2i_X509() are *not* affected.
5768 Since the memory based functions are used by the TLS library, TLS
5769 applications are not affected.
5770
5771 This issue was reported by Brian Carpenter.
d8dc8538 5772 ([CVE-2016-2109])
44652c16
DMSP
5773
5774 *Stephen Henson*
5775
5776 * EBCDIC overread
5777
5778 ASN1 Strings that are over 1024 bytes can cause an overread in applications
5779 using the X509_NAME_oneline() function on EBCDIC systems. This could result
5780 in arbitrary stack data being returned in the buffer.
5781
5782 This issue was reported by Guido Vranken.
d8dc8538 5783 ([CVE-2016-2176])
44652c16
DMSP
5784
5785 *Matt Caswell*
5786
5787 * Modify behavior of ALPN to invoke callback after SNI/servername
5788 callback, such that updates to the SSL_CTX affect ALPN.
5789
5790 *Todd Short*
5791
5792 * Remove LOW from the DEFAULT cipher list. This removes singles DES from the
5793 default.
5794
5795 *Kurt Roeckx*
5796
5797 * Only remove the SSLv2 methods with the no-ssl2-method option. When the
5798 methods are enabled and ssl2 is disabled the methods return NULL.
5799
5800 *Kurt Roeckx*
5801
257e9d03 5802### Changes between 1.0.1r and 1.0.1s [1 Mar 2016]
44652c16
DMSP
5803
5804* Disable weak ciphers in SSLv3 and up in default builds of OpenSSL.
5805 Builds that are not configured with "enable-weak-ssl-ciphers" will not
5806 provide any "EXPORT" or "LOW" strength ciphers.
5807
5808 *Viktor Dukhovni*
5809
5810* Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2
5811 is by default disabled at build-time. Builds that are not configured with
5812 "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used,
5813 users who want to negotiate SSLv2 via the version-flexible SSLv23_method()
5814 will need to explicitly call either of:
5815
5816 SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
5817 or
5818 SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
5819
5820 as appropriate. Even if either of those is used, or the application
5821 explicitly uses the version-specific SSLv2_method() or its client and
5822 server variants, SSLv2 ciphers vulnerable to exhaustive search key
5823 recovery have been removed. Specifically, the SSLv2 40-bit EXPORT
5824 ciphers, and SSLv2 56-bit DES are no longer available.
d8dc8538 5825 ([CVE-2016-0800])
44652c16
DMSP
5826
5827 *Viktor Dukhovni*
5828
5829 * Fix a double-free in DSA code
5830
5831 A double free bug was discovered when OpenSSL parses malformed DSA private
5832 keys and could lead to a DoS attack or memory corruption for applications
5833 that receive DSA private keys from untrusted sources. This scenario is
5834 considered rare.
5835
5836 This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using
5837 libFuzzer.
d8dc8538 5838 ([CVE-2016-0705])
44652c16
DMSP
5839
5840 *Stephen Henson*
5841
5842 * Disable SRP fake user seed to address a server memory leak.
5843
5844 Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
5845
5846 SRP_VBASE_get_by_user had inconsistent memory management behaviour.
5847 In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user
5848 was changed to ignore the "fake user" SRP seed, even if the seed
5849 is configured.
5850
5851 Users should use SRP_VBASE_get1_by_user instead. Note that in
5852 SRP_VBASE_get1_by_user, caller must free the returned value. Note
5853 also that even though configuring the SRP seed attempts to hide
5854 invalid usernames by continuing the handshake with fake
5855 credentials, this behaviour is not constant time and no strong
5856 guarantees are made that the handshake is indistinguishable from
5857 that of a valid user.
d8dc8538 5858 ([CVE-2016-0798])
44652c16
DMSP
5859
5860 *Emilia Käsper*
5861
5862 * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption
5863
5864 In the BN_hex2bn function the number of hex digits is calculated using an
1dc1ea18
DDO
5865 int value `i`. Later `bn_expand` is called with a value of `i * 4`. For
5866 large values of `i` this can result in `bn_expand` not allocating any
5867 memory because `i * 4` is negative. This can leave the internal BIGNUM data
44652c16 5868 field as NULL leading to a subsequent NULL ptr deref. For very large values
1dc1ea18 5869 of `i`, the calculation `i * 4` could be a positive value smaller than `i`.
44652c16
DMSP
5870 In this case memory is allocated to the internal BIGNUM data field, but it
5871 is insufficiently sized leading to heap corruption. A similar issue exists
5872 in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn
5873 is ever called by user applications with very large untrusted hex/dec data.
5874 This is anticipated to be a rare occurrence.
5875
5876 All OpenSSL internal usage of these functions use data that is not expected
5877 to be untrusted, e.g. config file data or application command line
5878 arguments. If user developed applications generate config file data based
5879 on untrusted data then it is possible that this could also lead to security
5880 consequences. This is also anticipated to be rare.
5881
5882 This issue was reported to OpenSSL by Guido Vranken.
d8dc8538 5883 ([CVE-2016-0797])
44652c16
DMSP
5884
5885 *Matt Caswell*
5886
257e9d03 5887 * Fix memory issues in `BIO_*printf` functions
44652c16 5888
1dc1ea18 5889 The internal `fmtstr` function used in processing a "%s" format string in
257e9d03 5890 the `BIO_*printf` functions could overflow while calculating the length of a
44652c16
DMSP
5891 string and cause an OOB read when printing very long strings.
5892
1dc1ea18 5893 Additionally the internal `doapr_outch` function can attempt to write to an
44652c16
DMSP
5894 OOB memory location (at an offset from the NULL pointer) in the event of a
5895 memory allocation failure. In 1.0.2 and below this could be caused where
5896 the size of a buffer to be allocated is greater than INT_MAX. E.g. this
5897 could be in processing a very long "%s" format string. Memory leaks can
5898 also occur.
5899
5900 The first issue may mask the second issue dependent on compiler behaviour.
5901 These problems could enable attacks where large amounts of untrusted data
257e9d03 5902 is passed to the `BIO_*printf` functions. If applications use these functions
44652c16
DMSP
5903 in this way then they could be vulnerable. OpenSSL itself uses these
5904 functions when printing out human-readable dumps of ASN.1 data. Therefore
5905 applications that print this data could be vulnerable if the data is from
5906 untrusted sources. OpenSSL command line applications could also be
5907 vulnerable where they print out ASN.1 data, or if untrusted data is passed
5908 as command line arguments.
5909
5910 Libssl is not considered directly vulnerable. Additionally certificates etc
5911 received via remote connections via libssl are also unlikely to be able to
5912 trigger these issues because of message size limits enforced within libssl.
5913
5914 This issue was reported to OpenSSL Guido Vranken.
d8dc8538 5915 ([CVE-2016-0799])
44652c16
DMSP
5916
5917 *Matt Caswell*
5918
5919 * Side channel attack on modular exponentiation
5920
5921 A side-channel attack was found which makes use of cache-bank conflicts on
5922 the Intel Sandy-Bridge microarchitecture which could lead to the recovery
5923 of RSA keys. The ability to exploit this issue is limited as it relies on
5924 an attacker who has control of code in a thread running on the same
5925 hyper-threaded core as the victim thread which is performing decryptions.
5926
5927 This issue was reported to OpenSSL by Yuval Yarom, The University of
5928 Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and
5929 Nadia Heninger, University of Pennsylvania with more information at
257e9d03 5930 <http://cachebleed.info>.
d8dc8538 5931 ([CVE-2016-0702])
44652c16
DMSP
5932
5933 *Andy Polyakov*
5934
5935 * Change the req app to generate a 2048-bit RSA/DSA key by default,
5936 if no keysize is specified with default_bits. This fixes an
5937 omission in an earlier change that changed all RSA/DSA key generation
5938 apps to use 2048 bits by default.
5939
5940 *Emilia Käsper*
5941
257e9d03 5942### Changes between 1.0.1q and 1.0.1r [28 Jan 2016]
44652c16
DMSP
5943
5944 * Protection for DH small subgroup attacks
5945
5946 As a precautionary measure the SSL_OP_SINGLE_DH_USE option has been
5947 switched on by default and cannot be disabled. This could have some
5948 performance impact.
5949
5950 *Matt Caswell*
5951
5952 * SSLv2 doesn't block disabled ciphers
5953
5954 A malicious client can negotiate SSLv2 ciphers that have been disabled on
5955 the server and complete SSLv2 handshakes even if all SSLv2 ciphers have
5956 been disabled, provided that the SSLv2 protocol was not also disabled via
5957 SSL_OP_NO_SSLv2.
5958
5959 This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram
5960 and Sebastian Schinzel.
d8dc8538 5961 ([CVE-2015-3197])
44652c16
DMSP
5962
5963 *Viktor Dukhovni*
5964
5965 * Reject DH handshakes with parameters shorter than 1024 bits.
5966
5967 *Kurt Roeckx*
5968
257e9d03 5969### Changes between 1.0.1p and 1.0.1q [3 Dec 2015]
44652c16
DMSP
5970
5971 * Certificate verify crash with missing PSS parameter
5972
5973 The signature verification routines will crash with a NULL pointer
5974 dereference if presented with an ASN.1 signature using the RSA PSS
5975 algorithm and absent mask generation function parameter. Since these
5976 routines are used to verify certificate signature algorithms this can be
5977 used to crash any certificate verification operation and exploited in a
5978 DoS attack. Any application which performs certificate verification is
5979 vulnerable including OpenSSL clients and servers which enable client
5980 authentication.
5981
5982 This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG).
d8dc8538 5983 ([CVE-2015-3194])
44652c16
DMSP
5984
5985 *Stephen Henson*
5986
5987 * X509_ATTRIBUTE memory leak
5988
5989 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
5990 memory. This structure is used by the PKCS#7 and CMS routines so any
5991 application which reads PKCS#7 or CMS data from untrusted sources is
5992 affected. SSL/TLS is not affected.
5993
5994 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
5995 libFuzzer.
d8dc8538 5996 ([CVE-2015-3195])
44652c16
DMSP
5997
5998 *Stephen Henson*
5999
6000 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
6001 This changes the decoding behaviour for some invalid messages,
6002 though the change is mostly in the more lenient direction, and
6003 legacy behaviour is preserved as much as possible.
6004
6005 *Emilia Käsper*
6006
6007 * In DSA_generate_parameters_ex, if the provided seed is too short,
6008 use a random seed, as already documented.
6009
6010 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
6011
257e9d03 6012### Changes between 1.0.1o and 1.0.1p [9 Jul 2015]
44652c16
DMSP
6013
6014 * Alternate chains certificate forgery
6015
6016 During certificate verfification, OpenSSL will attempt to find an
6017 alternative certificate chain if the first attempt to build such a chain
6018 fails. An error in the implementation of this logic can mean that an
6019 attacker could cause certain checks on untrusted certificates to be
6020 bypassed, such as the CA flag, enabling them to use a valid leaf
6021 certificate to act as a CA and "issue" an invalid certificate.
6022
6023 This issue was reported to OpenSSL by Adam Langley/David Benjamin
6024 (Google/BoringSSL).
d8dc8538 6025 ([CVE-2015-1793])
44652c16
DMSP
6026
6027 *Matt Caswell*
6028
6029 * Race condition handling PSK identify hint
6030
6031 If PSK identity hints are received by a multi-threaded client then
6032 the values are wrongly updated in the parent SSL_CTX structure. This can
6033 result in a race condition potentially leading to a double free of the
6034 identify hint data.
d8dc8538 6035 ([CVE-2015-3196])
44652c16
DMSP
6036
6037 *Stephen Henson*
6038
257e9d03
RS
6039### Changes between 1.0.1n and 1.0.1o [12 Jun 2015]
6040
44652c16
DMSP
6041 * Fix HMAC ABI incompatibility. The previous version introduced an ABI
6042 incompatibility in the handling of HMAC. The previous ABI has now been
6043 restored.
6044
257e9d03 6045### Changes between 1.0.1m and 1.0.1n [11 Jun 2015]
44652c16
DMSP
6046
6047 * Malformed ECParameters causes infinite loop
6048
6049 When processing an ECParameters structure OpenSSL enters an infinite loop
6050 if the curve specified is over a specially malformed binary polynomial
6051 field.
6052
6053 This can be used to perform denial of service against any
6054 system which processes public keys, certificate requests or
6055 certificates. This includes TLS clients and TLS servers with
6056 client authentication enabled.
6057
6058 This issue was reported to OpenSSL by Joseph Barr-Pixton.
d8dc8538 6059 ([CVE-2015-1788])
44652c16
DMSP
6060
6061 *Andy Polyakov*
6062
6063 * Exploitable out-of-bounds read in X509_cmp_time
6064
6065 X509_cmp_time does not properly check the length of the ASN1_TIME
6066 string and can read a few bytes out of bounds. In addition,
6067 X509_cmp_time accepts an arbitrary number of fractional seconds in the
6068 time string.
6069
6070 An attacker can use this to craft malformed certificates and CRLs of
6071 various sizes and potentially cause a segmentation fault, resulting in
6072 a DoS on applications that verify certificates or CRLs. TLS clients
6073 that verify CRLs are affected. TLS clients and servers with client
6074 authentication enabled may be affected if they use custom verification
6075 callbacks.
6076
6077 This issue was reported to OpenSSL by Robert Swiecki (Google), and
6078 independently by Hanno Böck.
d8dc8538 6079 ([CVE-2015-1789])
44652c16
DMSP
6080
6081 *Emilia Käsper*
6082
6083 * PKCS7 crash with missing EnvelopedContent
6084
6085 The PKCS#7 parsing code does not handle missing inner EncryptedContent
6086 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
6087 with missing content and trigger a NULL pointer dereference on parsing.
6088
6089 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
6090 structures from untrusted sources are affected. OpenSSL clients and
6091 servers are not affected.
5f8e6c50 6092
44652c16 6093 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 6094 ([CVE-2015-1790])
5f8e6c50 6095
44652c16 6096 *Emilia Käsper*
5f8e6c50 6097
44652c16
DMSP
6098 * CMS verify infinite loop with unknown hash function
6099
6100 When verifying a signedData message the CMS code can enter an infinite loop
6101 if presented with an unknown hash function OID. This can be used to perform
6102 denial of service against any system which verifies signedData messages using
6103 the CMS code.
6104 This issue was reported to OpenSSL by Johannes Bauer.
d8dc8538 6105 ([CVE-2015-1792])
44652c16
DMSP
6106
6107 *Stephen Henson*
6108
6109 * Race condition handling NewSessionTicket
6110
6111 If a NewSessionTicket is received by a multi-threaded client when attempting to
6112 reuse a previous ticket then a race condition can occur potentially leading to
6113 a double free of the ticket data.
d8dc8538 6114 ([CVE-2015-1791])
44652c16
DMSP
6115
6116 *Matt Caswell*
6117
6118 * Reject DH handshakes with parameters shorter than 768 bits.
6119
6120 *Kurt Roeckx and Emilia Kasper*
6121
6122 * dhparam: generate 2048-bit parameters by default.
6123
6124 *Kurt Roeckx and Emilia Kasper*
6125
257e9d03 6126### Changes between 1.0.1l and 1.0.1m [19 Mar 2015]
44652c16
DMSP
6127
6128 * Segmentation fault in ASN1_TYPE_cmp fix
6129
6130 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
6131 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
6132 certificate signature algorithm consistency this can be used to crash any
6133 certificate verification operation and exploited in a DoS attack. Any
6134 application which performs certificate verification is vulnerable including
6135 OpenSSL clients and servers which enable client authentication.
d8dc8538 6136 ([CVE-2015-0286])
44652c16
DMSP
6137
6138 *Stephen Henson*
6139
6140 * ASN.1 structure reuse memory corruption fix
6141
6142 Reusing a structure in ASN.1 parsing may allow an attacker to cause
6143 memory corruption via an invalid write. Such reuse is and has been
6144 strongly discouraged and is believed to be rare.
6145
6146 Applications that parse structures containing CHOICE or ANY DEFINED BY
6147 components may be affected. Certificate parsing (d2i_X509 and related
6148 functions) are however not affected. OpenSSL clients and servers are
6149 not affected.
d8dc8538 6150 ([CVE-2015-0287])
44652c16
DMSP
6151
6152 *Stephen Henson*
6153
6154 * PKCS7 NULL pointer dereferences fix
6155
6156 The PKCS#7 parsing code does not handle missing outer ContentInfo
6157 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
6158 missing content and trigger a NULL pointer dereference on parsing.
6159
6160 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
6161 otherwise parse PKCS#7 structures from untrusted sources are
6162 affected. OpenSSL clients and servers are not affected.
6163
6164 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 6165 ([CVE-2015-0289])
44652c16
DMSP
6166
6167 *Emilia Käsper*
6168
6169 * DoS via reachable assert in SSLv2 servers fix
6170
6171 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
6172 servers that both support SSLv2 and enable export cipher suites by sending
6173 a specially crafted SSLv2 CLIENT-MASTER-KEY message.
6174
6175 This issue was discovered by Sean Burford (Google) and Emilia Käsper
6176 (OpenSSL development team).
d8dc8538 6177 ([CVE-2015-0293])
44652c16
DMSP
6178
6179 *Emilia Käsper*
6180
6181 * Use After Free following d2i_ECPrivatekey error fix
6182
6183 A malformed EC private key file consumed via the d2i_ECPrivateKey function
6184 could cause a use after free condition. This, in turn, could cause a double
6185 free in several private key parsing functions (such as d2i_PrivateKey
6186 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
6187 for applications that receive EC private keys from untrusted
6188 sources. This scenario is considered rare.
6189
6190 This issue was discovered by the BoringSSL project and fixed in their
6191 commit 517073cd4b.
d8dc8538 6192 ([CVE-2015-0209])
44652c16
DMSP
6193
6194 *Matt Caswell*
6195
6196 * X509_to_X509_REQ NULL pointer deref fix
6197
6198 The function X509_to_X509_REQ will crash with a NULL pointer dereference if
6199 the certificate key is invalid. This function is rarely used in practice.
6200
6201 This issue was discovered by Brian Carpenter.
d8dc8538 6202 ([CVE-2015-0288])
44652c16
DMSP
6203
6204 *Stephen Henson*
6205
6206 * Removed the export ciphers from the DEFAULT ciphers
6207
6208 *Kurt Roeckx*
6209
257e9d03 6210### Changes between 1.0.1k and 1.0.1l [15 Jan 2015]
44652c16
DMSP
6211
6212 * Build fixes for the Windows and OpenVMS platforms
6213
6214 *Matt Caswell and Richard Levitte*
6215
257e9d03 6216### Changes between 1.0.1j and 1.0.1k [8 Jan 2015]
44652c16
DMSP
6217
6218 * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS
6219 message can cause a segmentation fault in OpenSSL due to a NULL pointer
6220 dereference. This could lead to a Denial Of Service attack. Thanks to
6221 Markus Stenberg of Cisco Systems, Inc. for reporting this issue.
d8dc8538 6222 ([CVE-2014-3571])
44652c16
DMSP
6223
6224 *Steve Henson*
6225
6226 * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the
6227 dtls1_buffer_record function under certain conditions. In particular this
6228 could occur if an attacker sent repeated DTLS records with the same
6229 sequence number but for the next epoch. The memory leak could be exploited
6230 by an attacker in a Denial of Service attack through memory exhaustion.
6231 Thanks to Chris Mueller for reporting this issue.
d8dc8538 6232 ([CVE-2015-0206])
44652c16
DMSP
6233
6234 *Matt Caswell*
6235
6236 * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is
6237 built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl
6238 method would be set to NULL which could later result in a NULL pointer
6239 dereference. Thanks to Frank Schmirler for reporting this issue.
d8dc8538 6240 ([CVE-2014-3569])
44652c16
DMSP
6241
6242 *Kurt Roeckx*
6243
6244 * Abort handshake if server key exchange message is omitted for ephemeral
6245 ECDH ciphersuites.
6246
6247 Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for
6248 reporting this issue.
d8dc8538 6249 ([CVE-2014-3572])
44652c16
DMSP
6250
6251 *Steve Henson*
6252
6253 * Remove non-export ephemeral RSA code on client and server. This code
6254 violated the TLS standard by allowing the use of temporary RSA keys in
6255 non-export ciphersuites and could be used by a server to effectively
6256 downgrade the RSA key length used to a value smaller than the server
6257 certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at
6258 INRIA or reporting this issue.
d8dc8538 6259 ([CVE-2015-0204])
44652c16
DMSP
6260
6261 *Steve Henson*
6262
6263 * Fixed issue where DH client certificates are accepted without verification.
6264 An OpenSSL server will accept a DH certificate for client authentication
6265 without the certificate verify message. This effectively allows a client to
6266 authenticate without the use of a private key. This only affects servers
6267 which trust a client certificate authority which issues certificates
6268 containing DH keys: these are extremely rare and hardly ever encountered.
6269 Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting
6270 this issue.
d8dc8538 6271 ([CVE-2015-0205])
44652c16
DMSP
6272
6273 *Steve Henson*
6274
6275 * Ensure that the session ID context of an SSL is updated when its
6276 SSL_CTX is updated via SSL_set_SSL_CTX.
6277
6278 The session ID context is typically set from the parent SSL_CTX,
6279 and can vary with the CTX.
6280
6281 *Adam Langley*
6282
6283 * Fix various certificate fingerprint issues.
6284
6285 By using non-DER or invalid encodings outside the signed portion of a
6286 certificate the fingerprint can be changed without breaking the signature.
6287 Although no details of the signed portion of the certificate can be changed
6288 this can cause problems with some applications: e.g. those using the
6289 certificate fingerprint for blacklists.
6290
6291 1. Reject signatures with non zero unused bits.
6292
6293 If the BIT STRING containing the signature has non zero unused bits reject
6294 the signature. All current signature algorithms require zero unused bits.
6295
6296 2. Check certificate algorithm consistency.
6297
6298 Check the AlgorithmIdentifier inside TBS matches the one in the
6299 certificate signature. NB: this will result in signature failure
6300 errors for some broken certificates.
6301
6302 Thanks to Konrad Kraszewski from Google for reporting this issue.
6303
6304 3. Check DSA/ECDSA signatures use DER.
6305
6306 Re-encode DSA/ECDSA signatures and compare with the original received
6307 signature. Return an error if there is a mismatch.
6308
6309 This will reject various cases including garbage after signature
6310 (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS
6311 program for discovering this case) and use of BER or invalid ASN.1 INTEGERs
6312 (negative or with leading zeroes).
6313
6314 Further analysis was conducted and fixes were developed by Stephen Henson
6315 of the OpenSSL core team.
6316
d8dc8538 6317 ([CVE-2014-8275])
44652c16
DMSP
6318
6319 *Steve Henson*
6320
43a70f02
RS
6321 * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect
6322 results on some platforms, including x86_64. This bug occurs at random
6323 with a very low probability, and is not known to be exploitable in any
6324 way, though its exact impact is difficult to determine. Thanks to Pieter
6325 Wuille (Blockstream) who reported this issue and also suggested an initial
6326 fix. Further analysis was conducted by the OpenSSL development team and
6327 Adam Langley of Google. The final fix was developed by Andy Polyakov of
6328 the OpenSSL core team.
d8dc8538 6329 ([CVE-2014-3570])
5f8e6c50
DMSP
6330
6331 *Andy Polyakov*
6332
43a70f02
RS
6333 * Do not resume sessions on the server if the negotiated protocol
6334 version does not match the session's version. Resuming with a different
6335 version, while not strictly forbidden by the RFC, is of questionable
6336 sanity and breaks all known clients.
5f8e6c50 6337
44652c16
DMSP
6338 *David Benjamin, Emilia Käsper*
6339
43a70f02
RS
6340 * Tighten handling of the ChangeCipherSpec (CCS) message: reject
6341 early CCS messages during renegotiation. (Note that because
6342 renegotiation is encrypted, this early CCS was not exploitable.)
44652c16
DMSP
6343
6344 *Emilia Käsper*
6345
43a70f02
RS
6346 * Tighten client-side session ticket handling during renegotiation:
6347 ensure that the client only accepts a session ticket if the server sends
6348 the extension anew in the ServerHello. Previously, a TLS client would
6349 reuse the old extension state and thus accept a session ticket if one was
6350 announced in the initial ServerHello.
44652c16 6351
43a70f02
RS
6352 Similarly, ensure that the client requires a session ticket if one
6353 was advertised in the ServerHello. Previously, a TLS client would
6354 ignore a missing NewSessionTicket message.
44652c16
DMSP
6355
6356 *Emilia Käsper*
6357
257e9d03 6358### Changes between 1.0.1i and 1.0.1j [15 Oct 2014]
44652c16
DMSP
6359
6360 * SRTP Memory Leak.
6361
6362 A flaw in the DTLS SRTP extension parsing code allows an attacker, who
6363 sends a carefully crafted handshake message, to cause OpenSSL to fail
6364 to free up to 64k of memory causing a memory leak. This could be
6365 exploited in a Denial Of Service attack. This issue affects OpenSSL
6366 1.0.1 server implementations for both SSL/TLS and DTLS regardless of
6367 whether SRTP is used or configured. Implementations of OpenSSL that
6368 have been compiled with OPENSSL_NO_SRTP defined are not affected.
5f8e6c50 6369
44652c16 6370 The fix was developed by the OpenSSL team.
d8dc8538 6371 ([CVE-2014-3513])
5f8e6c50 6372
44652c16 6373 *OpenSSL team*
5f8e6c50 6374
44652c16 6375 * Session Ticket Memory Leak.
5f8e6c50 6376
44652c16
DMSP
6377 When an OpenSSL SSL/TLS/DTLS server receives a session ticket the
6378 integrity of that ticket is first verified. In the event of a session
6379 ticket integrity check failing, OpenSSL will fail to free memory
6380 causing a memory leak. By sending a large number of invalid session
6381 tickets an attacker could exploit this issue in a Denial Of Service
6382 attack.
d8dc8538 6383 ([CVE-2014-3567])
5f8e6c50 6384
44652c16 6385 *Steve Henson*
5f8e6c50 6386
44652c16 6387 * Build option no-ssl3 is incomplete.
5f8e6c50 6388
44652c16
DMSP
6389 When OpenSSL is configured with "no-ssl3" as a build option, servers
6390 could accept and complete a SSL 3.0 handshake, and clients could be
6391 configured to send them.
d8dc8538 6392 ([CVE-2014-3568])
5f8e6c50 6393
44652c16 6394 *Akamai and the OpenSSL team*
5f8e6c50 6395
44652c16
DMSP
6396 * Add support for TLS_FALLBACK_SCSV.
6397 Client applications doing fallback retries should call
6398 SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV).
d8dc8538 6399 ([CVE-2014-3566])
5f8e6c50 6400
44652c16 6401 *Adam Langley, Bodo Moeller*
5f8e6c50 6402
44652c16 6403 * Add additional DigestInfo checks.
5f8e6c50 6404
44652c16
DMSP
6405 Re-encode DigestInto in DER and check against the original when
6406 verifying RSA signature: this will reject any improperly encoded
6407 DigestInfo structures.
5f8e6c50 6408
44652c16 6409 Note: this is a precautionary measure and no attacks are currently known.
5f8e6c50 6410
5f8e6c50
DMSP
6411 *Steve Henson*
6412
257e9d03 6413### Changes between 1.0.1h and 1.0.1i [6 Aug 2014]
5f8e6c50 6414
44652c16
DMSP
6415 * Fix SRP buffer overrun vulnerability. Invalid parameters passed to the
6416 SRP code can be overrun an internal buffer. Add sanity check that
6417 g, A, B < N to SRP code.
5f8e6c50 6418
44652c16
DMSP
6419 Thanks to Sean Devlin and Watson Ladd of Cryptography Services, NCC
6420 Group for discovering this issue.
d8dc8538 6421 ([CVE-2014-3512])
5f8e6c50
DMSP
6422
6423 *Steve Henson*
6424
44652c16
DMSP
6425 * A flaw in the OpenSSL SSL/TLS server code causes the server to negotiate
6426 TLS 1.0 instead of higher protocol versions when the ClientHello message
6427 is badly fragmented. This allows a man-in-the-middle attacker to force a
6428 downgrade to TLS 1.0 even if both the server and the client support a
6429 higher protocol version, by modifying the client's TLS records.
5f8e6c50 6430
44652c16
DMSP
6431 Thanks to David Benjamin and Adam Langley (Google) for discovering and
6432 researching this issue.
d8dc8538 6433 ([CVE-2014-3511])
5f8e6c50 6434
44652c16 6435 *David Benjamin*
5f8e6c50 6436
44652c16
DMSP
6437 * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject
6438 to a denial of service attack. A malicious server can crash the client
6439 with a null pointer dereference (read) by specifying an anonymous (EC)DH
6440 ciphersuite and sending carefully crafted handshake messages.
5f8e6c50 6441
44652c16
DMSP
6442 Thanks to Felix Gröbert (Google) for discovering and researching this
6443 issue.
d8dc8538 6444 ([CVE-2014-3510])
5f8e6c50 6445
44652c16 6446 *Emilia Käsper*
5f8e6c50 6447
44652c16
DMSP
6448 * By sending carefully crafted DTLS packets an attacker could cause openssl
6449 to leak memory. This can be exploited through a Denial of Service attack.
6450 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 6451 ([CVE-2014-3507])
5f8e6c50 6452
44652c16 6453 *Adam Langley*
5f8e6c50 6454
44652c16
DMSP
6455 * An attacker can force openssl to consume large amounts of memory whilst
6456 processing DTLS handshake messages. This can be exploited through a
6457 Denial of Service attack.
6458 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 6459 ([CVE-2014-3506])
5f8e6c50 6460
44652c16 6461 *Adam Langley*
5f8e6c50 6462
44652c16
DMSP
6463 * An attacker can force an error condition which causes openssl to crash
6464 whilst processing DTLS packets due to memory being freed twice. This
6465 can be exploited through a Denial of Service attack.
6466 Thanks to Adam Langley and Wan-Teh Chang for discovering and researching
6467 this issue.
d8dc8538 6468 ([CVE-2014-3505])
5f8e6c50 6469
44652c16 6470 *Adam Langley*
5f8e6c50 6471
44652c16
DMSP
6472 * If a multithreaded client connects to a malicious server using a resumed
6473 session and the server sends an ec point format extension it could write
6474 up to 255 bytes to freed memory.
5f8e6c50 6475
44652c16
DMSP
6476 Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this
6477 issue.
d8dc8538 6478 ([CVE-2014-3509])
5f8e6c50 6479
44652c16 6480 *Gabor Tyukasz*
5f8e6c50 6481
44652c16
DMSP
6482 * A malicious server can crash an OpenSSL client with a null pointer
6483 dereference (read) by specifying an SRP ciphersuite even though it was not
6484 properly negotiated with the client. This can be exploited through a
6485 Denial of Service attack.
5f8e6c50 6486
44652c16
DMSP
6487 Thanks to Joonas Kuorilehto and Riku Hietamäki (Codenomicon) for
6488 discovering and researching this issue.
d8dc8538 6489 ([CVE-2014-5139])
5f8e6c50
DMSP
6490
6491 *Steve Henson*
6492
44652c16
DMSP
6493 * A flaw in OBJ_obj2txt may cause pretty printing functions such as
6494 X509_name_oneline, X509_name_print_ex et al. to leak some information
6495 from the stack. Applications may be affected if they echo pretty printing
6496 output to the attacker.
5f8e6c50 6497
44652c16 6498 Thanks to Ivan Fratric (Google) for discovering this issue.
d8dc8538 6499 ([CVE-2014-3508])
5f8e6c50 6500
44652c16 6501 *Emilia Käsper, and Steve Henson*
5f8e6c50 6502
44652c16
DMSP
6503 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
6504 for corner cases. (Certain input points at infinity could lead to
6505 bogus results, with non-infinity inputs mapped to infinity too.)
5f8e6c50 6506
44652c16 6507 *Bodo Moeller*
5f8e6c50 6508
257e9d03 6509### Changes between 1.0.1g and 1.0.1h [5 Jun 2014]
5f8e6c50 6510
44652c16
DMSP
6511 * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted
6512 handshake can force the use of weak keying material in OpenSSL
6513 SSL/TLS clients and servers.
5f8e6c50 6514
44652c16 6515 Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
d8dc8538 6516 researching this issue. ([CVE-2014-0224])
5f8e6c50 6517
44652c16 6518 *KIKUCHI Masashi, Steve Henson*
5f8e6c50 6519
44652c16
DMSP
6520 * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an
6521 OpenSSL DTLS client the code can be made to recurse eventually crashing
6522 in a DoS attack.
5f8e6c50 6523
44652c16 6524 Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.
d8dc8538 6525 ([CVE-2014-0221])
5f8e6c50 6526
44652c16 6527 *Imre Rad, Steve Henson*
5f8e6c50 6528
44652c16
DMSP
6529 * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can
6530 be triggered by sending invalid DTLS fragments to an OpenSSL DTLS
6531 client or server. This is potentially exploitable to run arbitrary
6532 code on a vulnerable client or server.
5f8e6c50 6533
d8dc8538 6534 Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195])
5f8e6c50 6535
44652c16 6536 *Jüri Aedla, Steve Henson*
5f8e6c50 6537
44652c16
DMSP
6538 * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites
6539 are subject to a denial of service attack.
5f8e6c50 6540
44652c16 6541 Thanks to Felix Gröbert and Ivan Fratric at Google for discovering
d8dc8538 6542 this issue. ([CVE-2014-3470])
5f8e6c50 6543
44652c16 6544 *Felix Gröbert, Ivan Fratric, Steve Henson*
5f8e6c50 6545
44652c16
DMSP
6546 * Harmonize version and its documentation. -f flag is used to display
6547 compilation flags.
5f8e6c50 6548
44652c16 6549 *mancha <mancha1@zoho.com>*
5f8e6c50 6550
44652c16
DMSP
6551 * Fix eckey_priv_encode so it immediately returns an error upon a failure
6552 in i2d_ECPrivateKey.
5f8e6c50 6553
44652c16 6554 *mancha <mancha1@zoho.com>*
5f8e6c50 6555
44652c16 6556 * Fix some double frees. These are not thought to be exploitable.
5f8e6c50 6557
44652c16 6558 *mancha <mancha1@zoho.com>*
5f8e6c50 6559
257e9d03 6560### Changes between 1.0.1f and 1.0.1g [7 Apr 2014]
5f8e6c50 6561
44652c16
DMSP
6562 * A missing bounds check in the handling of the TLS heartbeat extension
6563 can be used to reveal up to 64k of memory to a connected client or
6564 server.
5f8e6c50 6565
44652c16
DMSP
6566 Thanks for Neel Mehta of Google Security for discovering this bug and to
6567 Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
d8dc8538 6568 preparing the fix ([CVE-2014-0160])
5f8e6c50 6569
44652c16 6570 *Adam Langley, Bodo Moeller*
5f8e6c50 6571
44652c16
DMSP
6572 * Fix for the attack described in the paper "Recovering OpenSSL
6573 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
6574 by Yuval Yarom and Naomi Benger. Details can be obtained from:
257e9d03 6575 <http://eprint.iacr.org/2014/140>
5f8e6c50 6576
44652c16 6577 Thanks to Yuval Yarom and Naomi Benger for discovering this
d8dc8538 6578 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
5f8e6c50 6579
44652c16 6580 *Yuval Yarom and Naomi Benger*
5f8e6c50 6581
44652c16 6582 * TLS pad extension: draft-agl-tls-padding-03
5f8e6c50 6583
44652c16
DMSP
6584 Workaround for the "TLS hang bug" (see FAQ and PR#2771): if the
6585 TLS client Hello record length value would otherwise be > 255 and
6586 less that 512 pad with a dummy extension containing zeroes so it
6587 is at least 512 bytes long.
5f8e6c50 6588
44652c16 6589 *Adam Langley, Steve Henson*
5f8e6c50 6590
257e9d03 6591### Changes between 1.0.1e and 1.0.1f [6 Jan 2014]
5f8e6c50 6592
44652c16
DMSP
6593 * Fix for TLS record tampering bug. A carefully crafted invalid
6594 handshake could crash OpenSSL with a NULL pointer exception.
6595 Thanks to Anton Johansson for reporting this issues.
d8dc8538 6596 ([CVE-2013-4353])
5f8e6c50 6597
44652c16
DMSP
6598 * Keep original DTLS digest and encryption contexts in retransmission
6599 structures so we can use the previous session parameters if they need
d8dc8538 6600 to be resent. ([CVE-2013-6450])
5f8e6c50 6601
44652c16 6602 *Steve Henson*
5f8e6c50 6603
44652c16
DMSP
6604 * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which
6605 avoids preferring ECDHE-ECDSA ciphers when the client appears to be
6606 Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for
6607 several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug
6608 is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing
6609 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer.
5f8e6c50 6610
44652c16 6611 *Rob Stradling, Adam Langley*
5f8e6c50 6612
257e9d03 6613### Changes between 1.0.1d and 1.0.1e [11 Feb 2013]
5f8e6c50 6614
44652c16
DMSP
6615 * Correct fix for CVE-2013-0169. The original didn't work on AES-NI
6616 supporting platforms or when small records were transferred.
5f8e6c50 6617
44652c16 6618 *Andy Polyakov, Steve Henson*
5f8e6c50 6619
257e9d03 6620### Changes between 1.0.1c and 1.0.1d [5 Feb 2013]
5f8e6c50 6621
44652c16 6622 * Make the decoding of SSLv3, TLS and DTLS CBC records constant time.
5f8e6c50 6623
44652c16
DMSP
6624 This addresses the flaw in CBC record processing discovered by
6625 Nadhem Alfardan and Kenny Paterson. Details of this attack can be found
257e9d03 6626 at: <http://www.isg.rhul.ac.uk/tls/>
5f8e6c50 6627
44652c16
DMSP
6628 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
6629 Security Group at Royal Holloway, University of London
6630 (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and
6631 Emilia Käsper for the initial patch.
d8dc8538 6632 ([CVE-2013-0169])
5f8e6c50 6633
44652c16 6634 *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson*
5f8e6c50 6635
44652c16
DMSP
6636 * Fix flaw in AESNI handling of TLS 1.2 and 1.1 records for CBC mode
6637 ciphersuites which can be exploited in a denial of service attack.
6638 Thanks go to and to Adam Langley <agl@chromium.org> for discovering
6639 and detecting this bug and to Wolfgang Ettlinger
6640 <wolfgang.ettlinger@gmail.com> for independently discovering this issue.
d8dc8538 6641 ([CVE-2012-2686])
5f8e6c50 6642
44652c16 6643 *Adam Langley*
5f8e6c50 6644
44652c16 6645 * Return an error when checking OCSP signatures when key is NULL.
d8dc8538 6646 This fixes a DoS attack. ([CVE-2013-0166])
5f8e6c50
DMSP
6647
6648 *Steve Henson*
6649
44652c16 6650 * Make openssl verify return errors.
5f8e6c50 6651
44652c16 6652 *Chris Palmer <palmer@google.com> and Ben Laurie*
5f8e6c50 6653
44652c16
DMSP
6654 * Call OCSP Stapling callback after ciphersuite has been chosen, so
6655 the right response is stapled. Also change SSL_get_certificate()
6656 so it returns the certificate actually sent.
257e9d03 6657 See <http://rt.openssl.org/Ticket/Display.html?id=2836>.
5f8e6c50 6658
44652c16 6659 *Rob Stradling <rob.stradling@comodo.com>*
5f8e6c50 6660
44652c16 6661 * Fix possible deadlock when decoding public keys.
5f8e6c50
DMSP
6662
6663 *Steve Henson*
6664
44652c16
DMSP
6665 * Don't use TLS 1.0 record version number in initial client hello
6666 if renegotiating.
5f8e6c50 6667
44652c16 6668 *Steve Henson*
5f8e6c50 6669
257e9d03 6670### Changes between 1.0.1b and 1.0.1c [10 May 2012]
5f8e6c50 6671
44652c16
DMSP
6672 * Sanity check record length before skipping explicit IV in TLS
6673 1.2, 1.1 and DTLS to fix DoS attack.
5f8e6c50 6674
44652c16
DMSP
6675 Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic
6676 fuzzing as a service testing platform.
d8dc8538 6677 ([CVE-2012-2333])
5f8e6c50
DMSP
6678
6679 *Steve Henson*
6680
44652c16
DMSP
6681 * Initialise tkeylen properly when encrypting CMS messages.
6682 Thanks to Solar Designer of Openwall for reporting this issue.
5f8e6c50
DMSP
6683
6684 *Steve Henson*
6685
44652c16
DMSP
6686 * In FIPS mode don't try to use composite ciphers as they are not
6687 approved.
5f8e6c50
DMSP
6688
6689 *Steve Henson*
6690
257e9d03 6691### Changes between 1.0.1a and 1.0.1b [26 Apr 2012]
44652c16
DMSP
6692
6693 * OpenSSL 1.0.0 sets SSL_OP_ALL to 0x80000FFFL and OpenSSL 1.0.1 and
6694 1.0.1a set SSL_OP_NO_TLSv1_1 to 0x00000400L which would unfortunately
6695 mean any application compiled against OpenSSL 1.0.0 headers setting
6696 SSL_OP_ALL would also set SSL_OP_NO_TLSv1_1, unintentionally disabling
6697 TLS 1.1 also. Fix this by changing the value of SSL_OP_NO_TLSv1_1 to
6698 0x10000000L Any application which was previously compiled against
6699 OpenSSL 1.0.1 or 1.0.1a headers and which cares about SSL_OP_NO_TLSv1_1
6700 will need to be recompiled as a result. Letting be results in
6701 inability to disable specifically TLS 1.1 and in client context,
6702 in unlike event, limit maximum offered version to TLS 1.0 [see below].
5f8e6c50
DMSP
6703
6704 *Steve Henson*
6705
44652c16
DMSP
6706 * In order to ensure interoperability SSL_OP_NO_protocolX does not
6707 disable just protocol X, but all protocols above X *if* there are
6708 protocols *below* X still enabled. In more practical terms it means
6709 that if application wants to disable TLS1.0 in favor of TLS1.1 and
1dc1ea18
DDO
6710 above, it's not sufficient to pass `SSL_OP_NO_TLSv1`, one has to pass
6711 `SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv3|SSL_OP_NO_SSLv2`. This applies to
44652c16 6712 client side.
5f8e6c50 6713
44652c16 6714 *Andy Polyakov*
5f8e6c50 6715
257e9d03 6716### Changes between 1.0.1 and 1.0.1a [19 Apr 2012]
5f8e6c50 6717
44652c16
DMSP
6718 * Check for potentially exploitable overflows in asn1_d2i_read_bio
6719 BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
6720 in CRYPTO_realloc_clean.
5f8e6c50 6721
44652c16
DMSP
6722 Thanks to Tavis Ormandy, Google Security Team, for discovering this
6723 issue and to Adam Langley <agl@chromium.org> for fixing it.
d8dc8538 6724 ([CVE-2012-2110])
5f8e6c50 6725
44652c16 6726 *Adam Langley (Google), Tavis Ormandy, Google Security Team*
5f8e6c50 6727
44652c16 6728 * Don't allow TLS 1.2 SHA-256 ciphersuites in TLS 1.0, 1.1 connections.
5f8e6c50 6729
44652c16 6730 *Adam Langley*
5f8e6c50 6731
44652c16
DMSP
6732 * Workarounds for some broken servers that "hang" if a client hello
6733 record length exceeds 255 bytes.
6734
6735 1. Do not use record version number > TLS 1.0 in initial client
6736 hello: some (but not all) hanging servers will now work.
6737 2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate
6738 the number of ciphers sent in the client hello. This should be
6739 set to an even number, such as 50, for example by passing:
6740 -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 to config or Configure.
6741 Most broken servers should now work.
6742 3. If all else fails setting OPENSSL_NO_TLS1_2_CLIENT will disable
6743 TLS 1.2 client support entirely.
5f8e6c50
DMSP
6744
6745 *Steve Henson*
6746
44652c16 6747 * Fix SEGV in Vector Permutation AES module observed in OpenSSH.
5f8e6c50 6748
44652c16 6749 *Andy Polyakov*
5f8e6c50 6750
257e9d03 6751### Changes between 1.0.0h and 1.0.1 [14 Mar 2012]
44652c16
DMSP
6752
6753 * Add compatibility with old MDC2 signatures which use an ASN1 OCTET
6754 STRING form instead of a DigestInfo.
5f8e6c50
DMSP
6755
6756 *Steve Henson*
6757
44652c16
DMSP
6758 * The format used for MDC2 RSA signatures is inconsistent between EVP
6759 and the RSA_sign/RSA_verify functions. This was made more apparent when
6760 OpenSSL used RSA_sign/RSA_verify for some RSA signatures in particular
6761 those which went through EVP_PKEY_METHOD in 1.0.0 and later. Detect
6762 the correct format in RSA_verify so both forms transparently work.
5f8e6c50 6763
44652c16 6764 *Steve Henson*
5f8e6c50 6765
44652c16
DMSP
6766 * Some servers which support TLS 1.0 can choke if we initially indicate
6767 support for TLS 1.2 and later renegotiate using TLS 1.0 in the RSA
6768 encrypted premaster secret. As a workaround use the maximum permitted
6769 client version in client hello, this should keep such servers happy
6770 and still work with previous versions of OpenSSL.
5f8e6c50 6771
44652c16 6772 *Steve Henson*
5f8e6c50 6773
44652c16 6774 * Add support for TLS/DTLS heartbeats.
5f8e6c50 6775
44652c16 6776 *Robin Seggelmann <seggelmann@fh-muenster.de>*
5f8e6c50 6777
44652c16 6778 * Add support for SCTP.
5f8e6c50 6779
44652c16 6780 *Robin Seggelmann <seggelmann@fh-muenster.de>*
5f8e6c50 6781
44652c16 6782 * Improved PRNG seeding for VOS.
5f8e6c50 6783
44652c16 6784 *Paul Green <Paul.Green@stratus.com>*
5f8e6c50 6785
44652c16 6786 * Extensive assembler packs updates, most notably:
5f8e6c50 6787
257e9d03
RS
6788 - x86[_64]: AES-NI, PCLMULQDQ, RDRAND support;
6789 - x86[_64]: SSSE3 support (SHA1, vector-permutation AES);
6790 - x86_64: bit-sliced AES implementation;
6791 - ARM: NEON support, contemporary platforms optimizations;
6792 - s390x: z196 support;
6793 - `*`: GHASH and GF(2^m) multiplication implementations;
5f8e6c50 6794
44652c16 6795 *Andy Polyakov*
5f8e6c50 6796
44652c16
DMSP
6797 * Make TLS-SRP code conformant with RFC 5054 API cleanup
6798 (removal of unnecessary code)
5f8e6c50 6799
44652c16 6800 *Peter Sylvester <peter.sylvester@edelweb.fr>*
5f8e6c50 6801
44652c16 6802 * Add TLS key material exporter from RFC 5705.
5f8e6c50 6803
44652c16 6804 *Eric Rescorla*
5f8e6c50 6805
44652c16 6806 * Add DTLS-SRTP negotiation from RFC 5764.
5f8e6c50 6807
44652c16 6808 *Eric Rescorla*
5f8e6c50 6809
44652c16 6810 * Add Next Protocol Negotiation,
257e9d03 6811 <http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00>. Can be
44652c16
DMSP
6812 disabled with a no-npn flag to config or Configure. Code donated
6813 by Google.
5f8e6c50 6814
44652c16 6815 *Adam Langley <agl@google.com> and Ben Laurie*
5f8e6c50 6816
44652c16
DMSP
6817 * Add optional 64-bit optimized implementations of elliptic curves NIST-P224,
6818 NIST-P256, NIST-P521, with constant-time single point multiplication on
6819 typical inputs. Compiler support for the nonstandard type `__uint128_t` is
6820 required to use this (present in gcc 4.4 and later, for 64-bit builds).
6821 Code made available under Apache License version 2.0.
5f8e6c50 6822
44652c16
DMSP
6823 Specify "enable-ec_nistp_64_gcc_128" on the Configure (or config) command
6824 line to include this in your build of OpenSSL, and run "make depend" (or
6825 "make update"). This enables the following EC_METHODs:
5f8e6c50 6826
44652c16
DMSP
6827 EC_GFp_nistp224_method()
6828 EC_GFp_nistp256_method()
6829 EC_GFp_nistp521_method()
5f8e6c50 6830
44652c16
DMSP
6831 EC_GROUP_new_by_curve_name() will automatically use these (while
6832 EC_GROUP_new_curve_GFp() currently prefers the more flexible
6833 implementations).
5f8e6c50 6834
44652c16 6835 *Emilia Käsper, Adam Langley, Bodo Moeller (Google)*
5f8e6c50 6836
44652c16
DMSP
6837 * Use type ossl_ssize_t instead of ssize_t which isn't available on
6838 all platforms. Move ssize_t definition from e_os.h to the public
6839 header file e_os2.h as it now appears in public header file cms.h
5f8e6c50 6840
44652c16 6841 *Steve Henson*
5f8e6c50 6842
44652c16
DMSP
6843 * New -sigopt option to the ca, req and x509 utilities. Additional
6844 signature parameters can be passed using this option and in
6845 particular PSS.
5f8e6c50 6846
44652c16 6847 *Steve Henson*
5f8e6c50 6848
44652c16
DMSP
6849 * Add RSA PSS signing function. This will generate and set the
6850 appropriate AlgorithmIdentifiers for PSS based on those in the
6851 corresponding EVP_MD_CTX structure. No application support yet.
5f8e6c50 6852
44652c16 6853 *Steve Henson*
5f8e6c50 6854
44652c16
DMSP
6855 * Support for companion algorithm specific ASN1 signing routines.
6856 New function ASN1_item_sign_ctx() signs a pre-initialised
6857 EVP_MD_CTX structure and sets AlgorithmIdentifiers based on
6858 the appropriate parameters.
5f8e6c50
DMSP
6859
6860 *Steve Henson*
6861
44652c16
DMSP
6862 * Add new algorithm specific ASN1 verification initialisation function
6863 to EVP_PKEY_ASN1_METHOD: this is not in EVP_PKEY_METHOD since the ASN1
6864 handling will be the same no matter what EVP_PKEY_METHOD is used.
6865 Add a PSS handler to support verification of PSS signatures: checked
6866 against a number of sample certificates.
5f8e6c50 6867
44652c16 6868 *Steve Henson*
5f8e6c50 6869
44652c16 6870 * Add signature printing for PSS. Add PSS OIDs.
5f8e6c50 6871
44652c16 6872 *Steve Henson, Martin Kaiser <lists@kaiser.cx>*
5f8e6c50 6873
44652c16
DMSP
6874 * Add algorithm specific signature printing. An individual ASN1 method
6875 can now print out signatures instead of the standard hex dump.
5f8e6c50 6876
44652c16
DMSP
6877 More complex signatures (e.g. PSS) can print out more meaningful
6878 information. Include DSA version that prints out the signature
6879 parameters r, s.
5f8e6c50 6880
44652c16 6881 *Steve Henson*
5f8e6c50 6882
44652c16
DMSP
6883 * Password based recipient info support for CMS library: implementing
6884 RFC3211.
5f8e6c50 6885
44652c16 6886 *Steve Henson*
5f8e6c50 6887
44652c16
DMSP
6888 * Split password based encryption into PBES2 and PBKDF2 functions. This
6889 neatly separates the code into cipher and PBE sections and is required
6890 for some algorithms that split PBES2 into separate pieces (such as
6891 password based CMS).
5f8e6c50 6892
44652c16 6893 *Steve Henson*
5f8e6c50 6894
44652c16
DMSP
6895 * Session-handling fixes:
6896 - Fix handling of connections that are resuming with a session ID,
6897 but also support Session Tickets.
6898 - Fix a bug that suppressed issuing of a new ticket if the client
6899 presented a ticket with an expired session.
6900 - Try to set the ticket lifetime hint to something reasonable.
6901 - Make tickets shorter by excluding irrelevant information.
6902 - On the client side, don't ignore renewed tickets.
5f8e6c50 6903
44652c16 6904 *Adam Langley, Bodo Moeller (Google)*
5f8e6c50 6905
44652c16 6906 * Fix PSK session representation.
5f8e6c50 6907
44652c16 6908 *Bodo Moeller*
5f8e6c50 6909
44652c16 6910 * Add RC4-MD5 and AESNI-SHA1 "stitched" implementations.
5f8e6c50 6911
44652c16 6912 This work was sponsored by Intel.
5f8e6c50 6913
44652c16 6914 *Andy Polyakov*
5f8e6c50 6915
44652c16
DMSP
6916 * Add GCM support to TLS library. Some custom code is needed to split
6917 the IV between the fixed (from PRF) and explicit (from TLS record)
6918 portions. This adds all GCM ciphersuites supported by RFC5288 and
257e9d03 6919 RFC5289. Generalise some `AES*` cipherstrings to include GCM and
44652c16 6920 add a special AESGCM string for GCM only.
5f8e6c50 6921
44652c16 6922 *Steve Henson*
5f8e6c50 6923
44652c16
DMSP
6924 * Expand range of ctrls for AES GCM. Permit setting invocation
6925 field on decrypt and retrieval of invocation field only on encrypt.
5f8e6c50 6926
44652c16 6927 *Steve Henson*
5f8e6c50 6928
44652c16
DMSP
6929 * Add HMAC ECC ciphersuites from RFC5289. Include SHA384 PRF support.
6930 As required by RFC5289 these ciphersuites cannot be used if for
6931 versions of TLS earlier than 1.2.
5f8e6c50 6932
44652c16 6933 *Steve Henson*
5f8e6c50 6934
44652c16
DMSP
6935 * For FIPS capable OpenSSL interpret a NULL default public key method
6936 as unset and return the appropriate default but do *not* set the default.
6937 This means we can return the appropriate method in applications that
6938 switch between FIPS and non-FIPS modes.
6939
6940 *Steve Henson*
5f8e6c50 6941
44652c16
DMSP
6942 * Redirect HMAC and CMAC operations to FIPS module in FIPS mode. If an
6943 ENGINE is used then we cannot handle that in the FIPS module so we
6944 keep original code iff non-FIPS operations are allowed.
5f8e6c50
DMSP
6945
6946 *Steve Henson*
6947
44652c16 6948 * Add -attime option to openssl utilities.
5f8e6c50 6949
44652c16 6950 *Peter Eckersley <pde@eff.org>, Ben Laurie and Steve Henson*
5f8e6c50 6951
44652c16 6952 * Redirect DSA and DH operations to FIPS module in FIPS mode.
5f8e6c50
DMSP
6953
6954 *Steve Henson*
6955
44652c16
DMSP
6956 * Redirect ECDSA and ECDH operations to FIPS module in FIPS mode. Also use
6957 FIPS EC methods unconditionally for now.
5f8e6c50 6958
44652c16 6959 *Steve Henson*
5f8e6c50 6960
44652c16 6961 * New build option no-ec2m to disable characteristic 2 code.
5f8e6c50 6962
44652c16 6963 *Steve Henson*
5f8e6c50 6964
44652c16
DMSP
6965 * Backport libcrypto audit of return value checking from 1.1.0-dev; not
6966 all cases can be covered as some introduce binary incompatibilities.
5f8e6c50 6967
44652c16 6968 *Steve Henson*
5f8e6c50 6969
44652c16
DMSP
6970 * Redirect RSA operations to FIPS module including keygen,
6971 encrypt, decrypt, sign and verify. Block use of non FIPS RSA methods.
5f8e6c50 6972
44652c16 6973 *Steve Henson*
5f8e6c50 6974
44652c16 6975 * Add similar low level API blocking to ciphers.
5f8e6c50 6976
44652c16 6977 *Steve Henson*
5f8e6c50 6978
44652c16
DMSP
6979 * Low level digest APIs are not approved in FIPS mode: any attempt
6980 to use these will cause a fatal error. Applications that *really* want
257e9d03 6981 to use them can use the `private_*` version instead.
5f8e6c50 6982
44652c16 6983 *Steve Henson*
5f8e6c50 6984
44652c16 6985 * Redirect cipher operations to FIPS module for FIPS builds.
5f8e6c50 6986
44652c16 6987 *Steve Henson*
5f8e6c50 6988
44652c16 6989 * Redirect digest operations to FIPS module for FIPS builds.
5f8e6c50 6990
44652c16
DMSP
6991 *Steve Henson*
6992
6993 * Update build system to add "fips" flag which will link in fipscanister.o
6994 for static and shared library builds embedding a signature if needed.
5f8e6c50
DMSP
6995
6996 *Steve Henson*
6997
44652c16
DMSP
6998 * Output TLS supported curves in preference order instead of numerical
6999 order. This is currently hardcoded for the highest order curves first.
7000 This should be configurable so applications can judge speed vs strength.
5f8e6c50 7001
44652c16 7002 *Steve Henson*
5f8e6c50 7003
44652c16 7004 * Add TLS v1.2 server support for client authentication.
5f8e6c50 7005
44652c16 7006 *Steve Henson*
5f8e6c50 7007
44652c16
DMSP
7008 * Add support for FIPS mode in ssl library: disable SSLv3, non-FIPS ciphers
7009 and enable MD5.
5f8e6c50 7010
44652c16 7011 *Steve Henson*
5f8e6c50 7012
44652c16
DMSP
7013 * Functions FIPS_mode_set() and FIPS_mode() which call the underlying
7014 FIPS modules versions.
5f8e6c50 7015
44652c16 7016 *Steve Henson*
5f8e6c50 7017
44652c16
DMSP
7018 * Add TLS v1.2 client side support for client authentication. Keep cache
7019 of handshake records longer as we don't know the hash algorithm to use
7020 until after the certificate request message is received.
5f8e6c50 7021
44652c16 7022 *Steve Henson*
5f8e6c50 7023
44652c16
DMSP
7024 * Initial TLS v1.2 client support. Add a default signature algorithms
7025 extension including all the algorithms we support. Parse new signature
7026 format in client key exchange. Relax some ECC signing restrictions for
7027 TLS v1.2 as indicated in RFC5246.
5f8e6c50 7028
44652c16 7029 *Steve Henson*
5f8e6c50 7030
44652c16
DMSP
7031 * Add server support for TLS v1.2 signature algorithms extension. Switch
7032 to new signature format when needed using client digest preference.
7033 All server ciphersuites should now work correctly in TLS v1.2. No client
7034 support yet and no support for client certificates.
5f8e6c50 7035
44652c16 7036 *Steve Henson*
5f8e6c50 7037
44652c16
DMSP
7038 * Initial TLS v1.2 support. Add new SHA256 digest to ssl code, switch
7039 to SHA256 for PRF when using TLS v1.2 and later. Add new SHA256 based
7040 ciphersuites. At present only RSA key exchange ciphersuites work with
7041 TLS v1.2. Add new option for TLS v1.2 replacing the old and obsolete
7042 SSL_OP_PKCS1_CHECK flags with SSL_OP_NO_TLSv1_2. New TLSv1.2 methods
7043 and version checking.
5f8e6c50 7044
44652c16 7045 *Steve Henson*
5f8e6c50 7046
44652c16
DMSP
7047 * New option OPENSSL_NO_SSL_INTERN. If an application can be compiled
7048 with this defined it will not be affected by any changes to ssl internal
7049 structures. Add several utility functions to allow openssl application
7050 to work with OPENSSL_NO_SSL_INTERN defined.
5f8e6c50 7051
44652c16 7052 *Steve Henson*
5f8e6c50 7053
44652c16
DMSP
7054 * A long standing patch to add support for SRP from EdelWeb (Peter
7055 Sylvester and Christophe Renou) was integrated.
7056 *Christophe Renou <christophe.renou@edelweb.fr>, Peter Sylvester
7057 <peter.sylvester@edelweb.fr>, Tom Wu <tjw@cs.stanford.edu>, and
7058 Ben Laurie*
5f8e6c50 7059
44652c16 7060 * Add functions to copy EVP_PKEY_METHOD and retrieve flags and id.
5f8e6c50 7061
44652c16 7062 *Steve Henson*
5f8e6c50 7063
44652c16
DMSP
7064 * Permit abbreviated handshakes when renegotiating using the function
7065 SSL_renegotiate_abbreviated().
5f8e6c50 7066
44652c16 7067 *Robin Seggelmann <seggelmann@fh-muenster.de>*
5f8e6c50 7068
44652c16
DMSP
7069 * Add call to ENGINE_register_all_complete() to
7070 ENGINE_load_builtin_engines(), so some implementations get used
7071 automatically instead of needing explicit application support.
5f8e6c50 7072
44652c16 7073 *Steve Henson*
5f8e6c50 7074
44652c16 7075 * Add support for TLS key exporter as described in RFC5705.
5f8e6c50 7076
44652c16 7077 *Robin Seggelmann <seggelmann@fh-muenster.de>, Steve Henson*
5f8e6c50 7078
44652c16
DMSP
7079 * Initial TLSv1.1 support. Since TLSv1.1 is very similar to TLS v1.0 only
7080 a few changes are required:
5f8e6c50 7081
44652c16
DMSP
7082 Add SSL_OP_NO_TLSv1_1 flag.
7083 Add TLSv1_1 methods.
7084 Update version checking logic to handle version 1.1.
7085 Add explicit IV handling (ported from DTLS code).
7086 Add command line options to s_client/s_server.
5f8e6c50 7087
44652c16 7088 *Steve Henson*
5f8e6c50 7089
44652c16
DMSP
7090OpenSSL 1.0.0
7091-------------
5f8e6c50 7092
257e9d03 7093### Changes between 1.0.0s and 1.0.0t [3 Dec 2015]
5f8e6c50 7094
44652c16 7095 * X509_ATTRIBUTE memory leak
5f8e6c50 7096
44652c16
DMSP
7097 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
7098 memory. This structure is used by the PKCS#7 and CMS routines so any
7099 application which reads PKCS#7 or CMS data from untrusted sources is
7100 affected. SSL/TLS is not affected.
5f8e6c50 7101
44652c16
DMSP
7102 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
7103 libFuzzer.
d8dc8538 7104 ([CVE-2015-3195])
5f8e6c50 7105
44652c16 7106 *Stephen Henson*
5f8e6c50 7107
44652c16 7108 * Race condition handling PSK identify hint
5f8e6c50 7109
44652c16
DMSP
7110 If PSK identity hints are received by a multi-threaded client then
7111 the values are wrongly updated in the parent SSL_CTX structure. This can
7112 result in a race condition potentially leading to a double free of the
7113 identify hint data.
d8dc8538 7114 ([CVE-2015-3196])
5f8e6c50 7115
44652c16 7116 *Stephen Henson*
5f8e6c50 7117
257e9d03 7118### Changes between 1.0.0r and 1.0.0s [11 Jun 2015]
5f8e6c50 7119
44652c16 7120 * Malformed ECParameters causes infinite loop
5f8e6c50 7121
44652c16
DMSP
7122 When processing an ECParameters structure OpenSSL enters an infinite loop
7123 if the curve specified is over a specially malformed binary polynomial
7124 field.
5f8e6c50 7125
44652c16
DMSP
7126 This can be used to perform denial of service against any
7127 system which processes public keys, certificate requests or
7128 certificates. This includes TLS clients and TLS servers with
7129 client authentication enabled.
5f8e6c50 7130
44652c16 7131 This issue was reported to OpenSSL by Joseph Barr-Pixton.
d8dc8538 7132 ([CVE-2015-1788])
5f8e6c50 7133
44652c16 7134 *Andy Polyakov*
5f8e6c50 7135
44652c16 7136 * Exploitable out-of-bounds read in X509_cmp_time
5f8e6c50 7137
44652c16
DMSP
7138 X509_cmp_time does not properly check the length of the ASN1_TIME
7139 string and can read a few bytes out of bounds. In addition,
7140 X509_cmp_time accepts an arbitrary number of fractional seconds in the
7141 time string.
5f8e6c50 7142
44652c16
DMSP
7143 An attacker can use this to craft malformed certificates and CRLs of
7144 various sizes and potentially cause a segmentation fault, resulting in
7145 a DoS on applications that verify certificates or CRLs. TLS clients
7146 that verify CRLs are affected. TLS clients and servers with client
7147 authentication enabled may be affected if they use custom verification
7148 callbacks.
5f8e6c50 7149
44652c16
DMSP
7150 This issue was reported to OpenSSL by Robert Swiecki (Google), and
7151 independently by Hanno Böck.
d8dc8538 7152 ([CVE-2015-1789])
5f8e6c50 7153
44652c16 7154 *Emilia Käsper*
5f8e6c50 7155
44652c16 7156 * PKCS7 crash with missing EnvelopedContent
5f8e6c50 7157
44652c16
DMSP
7158 The PKCS#7 parsing code does not handle missing inner EncryptedContent
7159 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
7160 with missing content and trigger a NULL pointer dereference on parsing.
5f8e6c50 7161
44652c16
DMSP
7162 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
7163 structures from untrusted sources are affected. OpenSSL clients and
7164 servers are not affected.
5f8e6c50 7165
44652c16 7166 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 7167 ([CVE-2015-1790])
5f8e6c50 7168
44652c16 7169 *Emilia Käsper*
5f8e6c50 7170
44652c16 7171 * CMS verify infinite loop with unknown hash function
5f8e6c50 7172
44652c16
DMSP
7173 When verifying a signedData message the CMS code can enter an infinite loop
7174 if presented with an unknown hash function OID. This can be used to perform
7175 denial of service against any system which verifies signedData messages using
7176 the CMS code.
7177 This issue was reported to OpenSSL by Johannes Bauer.
d8dc8538 7178 ([CVE-2015-1792])
5f8e6c50 7179
44652c16 7180 *Stephen Henson*
5f8e6c50 7181
44652c16 7182 * Race condition handling NewSessionTicket
5f8e6c50 7183
44652c16
DMSP
7184 If a NewSessionTicket is received by a multi-threaded client when attempting to
7185 reuse a previous ticket then a race condition can occur potentially leading to
7186 a double free of the ticket data.
d8dc8538 7187 ([CVE-2015-1791])
5f8e6c50 7188
44652c16 7189 *Matt Caswell*
5f8e6c50 7190
257e9d03 7191### Changes between 1.0.0q and 1.0.0r [19 Mar 2015]
5f8e6c50 7192
44652c16
DMSP
7193 * Segmentation fault in ASN1_TYPE_cmp fix
7194
7195 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
7196 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
7197 certificate signature algorithm consistency this can be used to crash any
7198 certificate verification operation and exploited in a DoS attack. Any
7199 application which performs certificate verification is vulnerable including
7200 OpenSSL clients and servers which enable client authentication.
d8dc8538 7201 ([CVE-2015-0286])
5f8e6c50 7202
44652c16 7203 *Stephen Henson*
5f8e6c50 7204
44652c16 7205 * ASN.1 structure reuse memory corruption fix
5f8e6c50 7206
44652c16
DMSP
7207 Reusing a structure in ASN.1 parsing may allow an attacker to cause
7208 memory corruption via an invalid write. Such reuse is and has been
7209 strongly discouraged and is believed to be rare.
5f8e6c50 7210
44652c16
DMSP
7211 Applications that parse structures containing CHOICE or ANY DEFINED BY
7212 components may be affected. Certificate parsing (d2i_X509 and related
7213 functions) are however not affected. OpenSSL clients and servers are
7214 not affected.
d8dc8538 7215 ([CVE-2015-0287])
5f8e6c50 7216
44652c16 7217 *Stephen Henson*
5f8e6c50 7218
44652c16 7219 * PKCS7 NULL pointer dereferences fix
5f8e6c50 7220
44652c16
DMSP
7221 The PKCS#7 parsing code does not handle missing outer ContentInfo
7222 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
7223 missing content and trigger a NULL pointer dereference on parsing.
5f8e6c50 7224
44652c16
DMSP
7225 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
7226 otherwise parse PKCS#7 structures from untrusted sources are
7227 affected. OpenSSL clients and servers are not affected.
5f8e6c50 7228
44652c16 7229 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 7230 ([CVE-2015-0289])
5f8e6c50 7231
44652c16 7232 *Emilia Käsper*
5f8e6c50 7233
44652c16 7234 * DoS via reachable assert in SSLv2 servers fix
5f8e6c50 7235
44652c16
DMSP
7236 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
7237 servers that both support SSLv2 and enable export cipher suites by sending
7238 a specially crafted SSLv2 CLIENT-MASTER-KEY message.
5f8e6c50 7239
44652c16
DMSP
7240 This issue was discovered by Sean Burford (Google) and Emilia Käsper
7241 (OpenSSL development team).
d8dc8538 7242 ([CVE-2015-0293])
5f8e6c50 7243
44652c16 7244 *Emilia Käsper*
5f8e6c50 7245
44652c16 7246 * Use After Free following d2i_ECPrivatekey error fix
5f8e6c50 7247
44652c16
DMSP
7248 A malformed EC private key file consumed via the d2i_ECPrivateKey function
7249 could cause a use after free condition. This, in turn, could cause a double
7250 free in several private key parsing functions (such as d2i_PrivateKey
7251 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
7252 for applications that receive EC private keys from untrusted
7253 sources. This scenario is considered rare.
5f8e6c50 7254
44652c16
DMSP
7255 This issue was discovered by the BoringSSL project and fixed in their
7256 commit 517073cd4b.
d8dc8538 7257 ([CVE-2015-0209])
5f8e6c50 7258
44652c16 7259 *Matt Caswell*
5f8e6c50 7260
44652c16 7261 * X509_to_X509_REQ NULL pointer deref fix
5f8e6c50 7262
44652c16
DMSP
7263 The function X509_to_X509_REQ will crash with a NULL pointer dereference if
7264 the certificate key is invalid. This function is rarely used in practice.
5f8e6c50 7265
44652c16 7266 This issue was discovered by Brian Carpenter.
d8dc8538 7267 ([CVE-2015-0288])
5f8e6c50 7268
44652c16 7269 *Stephen Henson*
5f8e6c50 7270
44652c16 7271 * Removed the export ciphers from the DEFAULT ciphers
5f8e6c50 7272
44652c16 7273 *Kurt Roeckx*
5f8e6c50 7274
257e9d03 7275### Changes between 1.0.0p and 1.0.0q [15 Jan 2015]
5f8e6c50 7276
44652c16 7277 * Build fixes for the Windows and OpenVMS platforms
5f8e6c50 7278
44652c16 7279 *Matt Caswell and Richard Levitte*
5f8e6c50 7280
257e9d03 7281### Changes between 1.0.0o and 1.0.0p [8 Jan 2015]
44652c16
DMSP
7282
7283 * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS
7284 message can cause a segmentation fault in OpenSSL due to a NULL pointer
7285 dereference. This could lead to a Denial Of Service attack. Thanks to
7286 Markus Stenberg of Cisco Systems, Inc. for reporting this issue.
d8dc8538 7287 ([CVE-2014-3571])
5f8e6c50
DMSP
7288
7289 *Steve Henson*
7290
44652c16
DMSP
7291 * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the
7292 dtls1_buffer_record function under certain conditions. In particular this
7293 could occur if an attacker sent repeated DTLS records with the same
7294 sequence number but for the next epoch. The memory leak could be exploited
7295 by an attacker in a Denial of Service attack through memory exhaustion.
7296 Thanks to Chris Mueller for reporting this issue.
d8dc8538 7297 ([CVE-2015-0206])
5f8e6c50 7298
44652c16 7299 *Matt Caswell*
5f8e6c50 7300
44652c16
DMSP
7301 * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is
7302 built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl
7303 method would be set to NULL which could later result in a NULL pointer
7304 dereference. Thanks to Frank Schmirler for reporting this issue.
d8dc8538 7305 ([CVE-2014-3569])
5f8e6c50 7306
44652c16 7307 *Kurt Roeckx*
5f8e6c50 7308
44652c16
DMSP
7309 * Abort handshake if server key exchange message is omitted for ephemeral
7310 ECDH ciphersuites.
5f8e6c50 7311
44652c16
DMSP
7312 Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for
7313 reporting this issue.
d8dc8538 7314 ([CVE-2014-3572])
5f8e6c50 7315
44652c16 7316 *Steve Henson*
5f8e6c50 7317
44652c16
DMSP
7318 * Remove non-export ephemeral RSA code on client and server. This code
7319 violated the TLS standard by allowing the use of temporary RSA keys in
7320 non-export ciphersuites and could be used by a server to effectively
7321 downgrade the RSA key length used to a value smaller than the server
7322 certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at
7323 INRIA or reporting this issue.
d8dc8538 7324 ([CVE-2015-0204])
5f8e6c50 7325
44652c16 7326 *Steve Henson*
5f8e6c50 7327
44652c16
DMSP
7328 * Fixed issue where DH client certificates are accepted without verification.
7329 An OpenSSL server will accept a DH certificate for client authentication
7330 without the certificate verify message. This effectively allows a client to
7331 authenticate without the use of a private key. This only affects servers
7332 which trust a client certificate authority which issues certificates
7333 containing DH keys: these are extremely rare and hardly ever encountered.
7334 Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting
7335 this issue.
d8dc8538 7336 ([CVE-2015-0205])
5f8e6c50 7337
44652c16 7338 *Steve Henson*
5f8e6c50 7339
43a70f02
RS
7340 * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect
7341 results on some platforms, including x86_64. This bug occurs at random
7342 with a very low probability, and is not known to be exploitable in any
7343 way, though its exact impact is difficult to determine. Thanks to Pieter
7344 Wuille (Blockstream) who reported this issue and also suggested an initial
7345 fix. Further analysis was conducted by the OpenSSL development team and
7346 Adam Langley of Google. The final fix was developed by Andy Polyakov of
7347 the OpenSSL core team.
d8dc8538 7348 ([CVE-2014-3570])
5f8e6c50 7349
43a70f02 7350 *Andy Polyakov*
5f8e6c50 7351
43a70f02 7352 * Fix various certificate fingerprint issues.
5f8e6c50 7353
44652c16
DMSP
7354 By using non-DER or invalid encodings outside the signed portion of a
7355 certificate the fingerprint can be changed without breaking the signature.
7356 Although no details of the signed portion of the certificate can be changed
7357 this can cause problems with some applications: e.g. those using the
7358 certificate fingerprint for blacklists.
5f8e6c50 7359
44652c16 7360 1. Reject signatures with non zero unused bits.
5f8e6c50 7361
44652c16
DMSP
7362 If the BIT STRING containing the signature has non zero unused bits reject
7363 the signature. All current signature algorithms require zero unused bits.
5f8e6c50 7364
44652c16 7365 2. Check certificate algorithm consistency.
5f8e6c50 7366
44652c16
DMSP
7367 Check the AlgorithmIdentifier inside TBS matches the one in the
7368 certificate signature. NB: this will result in signature failure
7369 errors for some broken certificates.
5f8e6c50 7370
44652c16 7371 Thanks to Konrad Kraszewski from Google for reporting this issue.
5f8e6c50 7372
44652c16 7373 3. Check DSA/ECDSA signatures use DER.
5f8e6c50 7374
44652c16
DMSP
7375 Reencode DSA/ECDSA signatures and compare with the original received
7376 signature. Return an error if there is a mismatch.
5f8e6c50 7377
44652c16
DMSP
7378 This will reject various cases including garbage after signature
7379 (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS
7380 program for discovering this case) and use of BER or invalid ASN.1 INTEGERs
7381 (negative or with leading zeroes).
5f8e6c50 7382
44652c16
DMSP
7383 Further analysis was conducted and fixes were developed by Stephen Henson
7384 of the OpenSSL core team.
5f8e6c50 7385
d8dc8538 7386 ([CVE-2014-8275])
5f8e6c50
DMSP
7387
7388 *Steve Henson*
7389
257e9d03 7390### Changes between 1.0.0n and 1.0.0o [15 Oct 2014]
5f8e6c50 7391
44652c16 7392 * Session Ticket Memory Leak.
5f8e6c50 7393
44652c16
DMSP
7394 When an OpenSSL SSL/TLS/DTLS server receives a session ticket the
7395 integrity of that ticket is first verified. In the event of a session
7396 ticket integrity check failing, OpenSSL will fail to free memory
7397 causing a memory leak. By sending a large number of invalid session
7398 tickets an attacker could exploit this issue in a Denial Of Service
7399 attack.
d8dc8538 7400 ([CVE-2014-3567])
5f8e6c50
DMSP
7401
7402 *Steve Henson*
7403
44652c16 7404 * Build option no-ssl3 is incomplete.
5f8e6c50 7405
44652c16
DMSP
7406 When OpenSSL is configured with "no-ssl3" as a build option, servers
7407 could accept and complete a SSL 3.0 handshake, and clients could be
7408 configured to send them.
d8dc8538 7409 ([CVE-2014-3568])
5f8e6c50 7410
44652c16
DMSP
7411 *Akamai and the OpenSSL team*
7412
7413 * Add support for TLS_FALLBACK_SCSV.
7414 Client applications doing fallback retries should call
7415 SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV).
d8dc8538 7416 ([CVE-2014-3566])
5f8e6c50 7417
44652c16 7418 *Adam Langley, Bodo Moeller*
5f8e6c50 7419
44652c16 7420 * Add additional DigestInfo checks.
5f8e6c50 7421
44652c16
DMSP
7422 Reencode DigestInto in DER and check against the original when
7423 verifying RSA signature: this will reject any improperly encoded
7424 DigestInfo structures.
5f8e6c50 7425
44652c16 7426 Note: this is a precautionary measure and no attacks are currently known.
5f8e6c50 7427
5f8e6c50
DMSP
7428 *Steve Henson*
7429
257e9d03 7430### Changes between 1.0.0m and 1.0.0n [6 Aug 2014]
5f8e6c50 7431
44652c16
DMSP
7432 * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject
7433 to a denial of service attack. A malicious server can crash the client
7434 with a null pointer dereference (read) by specifying an anonymous (EC)DH
7435 ciphersuite and sending carefully crafted handshake messages.
5f8e6c50 7436
44652c16
DMSP
7437 Thanks to Felix Gröbert (Google) for discovering and researching this
7438 issue.
d8dc8538 7439 ([CVE-2014-3510])
5f8e6c50 7440
44652c16 7441 *Emilia Käsper*
5f8e6c50 7442
44652c16
DMSP
7443 * By sending carefully crafted DTLS packets an attacker could cause openssl
7444 to leak memory. This can be exploited through a Denial of Service attack.
7445 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 7446 ([CVE-2014-3507])
5f8e6c50 7447
44652c16 7448 *Adam Langley*
5f8e6c50 7449
44652c16
DMSP
7450 * An attacker can force openssl to consume large amounts of memory whilst
7451 processing DTLS handshake messages. This can be exploited through a
7452 Denial of Service attack.
7453 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 7454 ([CVE-2014-3506])
5f8e6c50 7455
44652c16 7456 *Adam Langley*
5f8e6c50 7457
44652c16
DMSP
7458 * An attacker can force an error condition which causes openssl to crash
7459 whilst processing DTLS packets due to memory being freed twice. This
7460 can be exploited through a Denial of Service attack.
7461 Thanks to Adam Langley and Wan-Teh Chang for discovering and researching
7462 this issue.
d8dc8538 7463 ([CVE-2014-3505])
5f8e6c50 7464
44652c16 7465 *Adam Langley*
5f8e6c50 7466
44652c16
DMSP
7467 * If a multithreaded client connects to a malicious server using a resumed
7468 session and the server sends an ec point format extension it could write
7469 up to 255 bytes to freed memory.
5f8e6c50 7470
44652c16
DMSP
7471 Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this
7472 issue.
d8dc8538 7473 ([CVE-2014-3509])
5f8e6c50 7474
44652c16 7475 *Gabor Tyukasz*
5f8e6c50 7476
44652c16
DMSP
7477 * A flaw in OBJ_obj2txt may cause pretty printing functions such as
7478 X509_name_oneline, X509_name_print_ex et al. to leak some information
7479 from the stack. Applications may be affected if they echo pretty printing
7480 output to the attacker.
5f8e6c50 7481
44652c16 7482 Thanks to Ivan Fratric (Google) for discovering this issue.
d8dc8538 7483 ([CVE-2014-3508])
5f8e6c50 7484
44652c16 7485 *Emilia Käsper, and Steve Henson*
5f8e6c50 7486
44652c16
DMSP
7487 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
7488 for corner cases. (Certain input points at infinity could lead to
7489 bogus results, with non-infinity inputs mapped to infinity too.)
5f8e6c50 7490
44652c16 7491 *Bodo Moeller*
5f8e6c50 7492
257e9d03 7493### Changes between 1.0.0l and 1.0.0m [5 Jun 2014]
5f8e6c50 7494
44652c16
DMSP
7495 * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted
7496 handshake can force the use of weak keying material in OpenSSL
7497 SSL/TLS clients and servers.
5f8e6c50 7498
44652c16 7499 Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
d8dc8538 7500 researching this issue. ([CVE-2014-0224])
5f8e6c50 7501
44652c16 7502 *KIKUCHI Masashi, Steve Henson*
5f8e6c50 7503
44652c16
DMSP
7504 * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an
7505 OpenSSL DTLS client the code can be made to recurse eventually crashing
7506 in a DoS attack.
5f8e6c50 7507
44652c16 7508 Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.
d8dc8538 7509 ([CVE-2014-0221])
5f8e6c50 7510
44652c16 7511 *Imre Rad, Steve Henson*
5f8e6c50 7512
44652c16
DMSP
7513 * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can
7514 be triggered by sending invalid DTLS fragments to an OpenSSL DTLS
7515 client or server. This is potentially exploitable to run arbitrary
7516 code on a vulnerable client or server.
5f8e6c50 7517
d8dc8538 7518 Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195])
5f8e6c50 7519
44652c16 7520 *Jüri Aedla, Steve Henson*
5f8e6c50 7521
44652c16
DMSP
7522 * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites
7523 are subject to a denial of service attack.
5f8e6c50 7524
44652c16 7525 Thanks to Felix Gröbert and Ivan Fratric at Google for discovering
d8dc8538 7526 this issue. ([CVE-2014-3470])
5f8e6c50 7527
44652c16 7528 *Felix Gröbert, Ivan Fratric, Steve Henson*
5f8e6c50 7529
44652c16
DMSP
7530 * Harmonize version and its documentation. -f flag is used to display
7531 compilation flags.
5f8e6c50 7532
44652c16 7533 *mancha <mancha1@zoho.com>*
5f8e6c50 7534
44652c16
DMSP
7535 * Fix eckey_priv_encode so it immediately returns an error upon a failure
7536 in i2d_ECPrivateKey.
5f8e6c50 7537
44652c16 7538 *mancha <mancha1@zoho.com>*
5f8e6c50 7539
44652c16 7540 * Fix some double frees. These are not thought to be exploitable.
5f8e6c50 7541
44652c16 7542 *mancha <mancha1@zoho.com>*
5f8e6c50 7543
44652c16
DMSP
7544 * Fix for the attack described in the paper "Recovering OpenSSL
7545 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
7546 by Yuval Yarom and Naomi Benger. Details can be obtained from:
257e9d03 7547 <http://eprint.iacr.org/2014/140>
5f8e6c50 7548
44652c16 7549 Thanks to Yuval Yarom and Naomi Benger for discovering this
d8dc8538 7550 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
5f8e6c50 7551
44652c16 7552 *Yuval Yarom and Naomi Benger*
5f8e6c50 7553
257e9d03 7554### Changes between 1.0.0k and 1.0.0l [6 Jan 2014]
5f8e6c50 7555
44652c16
DMSP
7556 * Keep original DTLS digest and encryption contexts in retransmission
7557 structures so we can use the previous session parameters if they need
d8dc8538 7558 to be resent. ([CVE-2013-6450])
5f8e6c50
DMSP
7559
7560 *Steve Henson*
7561
44652c16
DMSP
7562 * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which
7563 avoids preferring ECDHE-ECDSA ciphers when the client appears to be
7564 Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for
7565 several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug
7566 is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing
7567 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer.
5f8e6c50 7568
44652c16 7569 *Rob Stradling, Adam Langley*
5f8e6c50 7570
257e9d03 7571### Changes between 1.0.0j and 1.0.0k [5 Feb 2013]
5f8e6c50 7572
44652c16 7573 * Make the decoding of SSLv3, TLS and DTLS CBC records constant time.
5f8e6c50 7574
44652c16
DMSP
7575 This addresses the flaw in CBC record processing discovered by
7576 Nadhem Alfardan and Kenny Paterson. Details of this attack can be found
257e9d03 7577 at: <http://www.isg.rhul.ac.uk/tls/>
5f8e6c50 7578
44652c16
DMSP
7579 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
7580 Security Group at Royal Holloway, University of London
7581 (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and
7582 Emilia Käsper for the initial patch.
d8dc8538 7583 ([CVE-2013-0169])
5f8e6c50 7584
44652c16 7585 *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson*
5f8e6c50 7586
44652c16 7587 * Return an error when checking OCSP signatures when key is NULL.
d8dc8538 7588 This fixes a DoS attack. ([CVE-2013-0166])
5f8e6c50
DMSP
7589
7590 *Steve Henson*
7591
44652c16
DMSP
7592 * Call OCSP Stapling callback after ciphersuite has been chosen, so
7593 the right response is stapled. Also change SSL_get_certificate()
7594 so it returns the certificate actually sent.
257e9d03 7595 See <http://rt.openssl.org/Ticket/Display.html?id=2836>.
44652c16 7596 (This is a backport)
5f8e6c50 7597
44652c16 7598 *Rob Stradling <rob.stradling@comodo.com>*
5f8e6c50 7599
44652c16 7600 * Fix possible deadlock when decoding public keys.
5f8e6c50
DMSP
7601
7602 *Steve Henson*
7603
257e9d03 7604### Changes between 1.0.0i and 1.0.0j [10 May 2012]
5f8e6c50 7605
44652c16
DMSP
7606[NB: OpenSSL 1.0.0i and later 1.0.0 patch levels were released after
7607OpenSSL 1.0.1.]
5f8e6c50 7608
44652c16
DMSP
7609 * Sanity check record length before skipping explicit IV in DTLS
7610 to fix DoS attack.
5f8e6c50 7611
44652c16
DMSP
7612 Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic
7613 fuzzing as a service testing platform.
d8dc8538 7614 ([CVE-2012-2333])
5f8e6c50
DMSP
7615
7616 *Steve Henson*
7617
44652c16
DMSP
7618 * Initialise tkeylen properly when encrypting CMS messages.
7619 Thanks to Solar Designer of Openwall for reporting this issue.
5f8e6c50
DMSP
7620
7621 *Steve Henson*
7622
257e9d03 7623### Changes between 1.0.0h and 1.0.0i [19 Apr 2012]
5f8e6c50 7624
44652c16
DMSP
7625 * Check for potentially exploitable overflows in asn1_d2i_read_bio
7626 BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
7627 in CRYPTO_realloc_clean.
5f8e6c50 7628
44652c16
DMSP
7629 Thanks to Tavis Ormandy, Google Security Team, for discovering this
7630 issue and to Adam Langley <agl@chromium.org> for fixing it.
d8dc8538 7631 ([CVE-2012-2110])
5f8e6c50 7632
44652c16 7633 *Adam Langley (Google), Tavis Ormandy, Google Security Team*
5f8e6c50 7634
257e9d03 7635### Changes between 1.0.0g and 1.0.0h [12 Mar 2012]
5f8e6c50
DMSP
7636
7637 * Fix MMA (Bleichenbacher's attack on PKCS #1 v1.5 RSA padding) weakness
7638 in CMS and PKCS7 code. When RSA decryption fails use a random key for
7639 content decryption and always return the same error. Note: this attack
7640 needs on average 2^20 messages so it only affects automated senders. The
7641 old behaviour can be re-enabled in the CMS code by setting the
7642 CMS_DEBUG_DECRYPT flag: this is useful for debugging and testing where
7643 an MMA defence is not necessary.
7644 Thanks to Ivan Nestlerode <inestlerode@us.ibm.com> for discovering
d8dc8538 7645 this issue. ([CVE-2012-0884])
5f8e6c50
DMSP
7646
7647 *Steve Henson*
7648
7649 * Fix CVE-2011-4619: make sure we really are receiving a
7650 client hello before rejecting multiple SGC restarts. Thanks to
7651 Ivan Nestlerode <inestlerode@us.ibm.com> for discovering this bug.
7652
7653 *Steve Henson*
7654
257e9d03 7655### Changes between 1.0.0f and 1.0.0g [18 Jan 2012]
5f8e6c50
DMSP
7656
7657 * Fix for DTLS DoS issue introduced by fix for CVE-2011-4109.
7658 Thanks to Antonio Martin, Enterprise Secure Access Research and
7659 Development, Cisco Systems, Inc. for discovering this bug and
d8dc8538 7660 preparing a fix. ([CVE-2012-0050])
5f8e6c50
DMSP
7661
7662 *Antonio Martin*
7663
257e9d03 7664### Changes between 1.0.0e and 1.0.0f [4 Jan 2012]
5f8e6c50
DMSP
7665
7666 * Nadhem Alfardan and Kenny Paterson have discovered an extension
7667 of the Vaudenay padding oracle attack on CBC mode encryption
7668 which enables an efficient plaintext recovery attack against
7669 the OpenSSL implementation of DTLS. Their attack exploits timing
7670 differences arising during decryption processing. A research
7671 paper describing this attack can be found at:
257e9d03 7672 <http://www.isg.rhul.ac.uk/~kp/dtls.pdf>
5f8e6c50
DMSP
7673 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
7674 Security Group at Royal Holloway, University of London
7675 (www.isg.rhul.ac.uk) for discovering this flaw and to Robin Seggelmann
7676 <seggelmann@fh-muenster.de> and Michael Tuexen <tuexen@fh-muenster.de>
d8dc8538 7677 for preparing the fix. ([CVE-2011-4108])
5f8e6c50
DMSP
7678
7679 *Robin Seggelmann, Michael Tuexen*
7680
7681 * Clear bytes used for block padding of SSL 3.0 records.
d8dc8538 7682 ([CVE-2011-4576])
5f8e6c50
DMSP
7683
7684 *Adam Langley (Google)*
7685
7686 * Only allow one SGC handshake restart for SSL/TLS. Thanks to George
7687 Kadianakis <desnacked@gmail.com> for discovering this issue and
d8dc8538 7688 Adam Langley for preparing the fix. ([CVE-2011-4619])
5f8e6c50
DMSP
7689
7690 *Adam Langley (Google)*
7691
d8dc8538 7692 * Check parameters are not NULL in GOST ENGINE. ([CVE-2012-0027])
5f8e6c50
DMSP
7693
7694 *Andrey Kulikov <amdeich@gmail.com>*
7695
7696 * Prevent malformed RFC3779 data triggering an assertion failure.
7697 Thanks to Andrew Chi, BBN Technologies, for discovering the flaw
d8dc8538 7698 and Rob Austein <sra@hactrn.net> for fixing it. ([CVE-2011-4577])
5f8e6c50
DMSP
7699
7700 *Rob Austein <sra@hactrn.net>*
7701
7702 * Improved PRNG seeding for VOS.
7703
7704 *Paul Green <Paul.Green@stratus.com>*
7705
7706 * Fix ssl_ciph.c set-up race.
7707
7708 *Adam Langley (Google)*
7709
7710 * Fix spurious failures in ecdsatest.c.
7711
7712 *Emilia Käsper (Google)*
7713
7714 * Fix the BIO_f_buffer() implementation (which was mixing different
257e9d03 7715 interpretations of the `..._len` fields).
5f8e6c50
DMSP
7716
7717 *Adam Langley (Google)*
7718
7719 * Fix handling of BN_BLINDING: now BN_BLINDING_invert_ex (rather than
7720 BN_BLINDING_invert_ex) calls BN_BLINDING_update, ensuring that concurrent
7721 threads won't reuse the same blinding coefficients.
7722
7723 This also avoids the need to obtain the CRYPTO_LOCK_RSA_BLINDING
7724 lock to call BN_BLINDING_invert_ex, and avoids one use of
7725 BN_BLINDING_update for each BN_BLINDING structure (previously,
7726 the last update always remained unused).
7727
7728 *Emilia Käsper (Google)*
7729
7730 * In ssl3_clear, preserve s3->init_extra along with s3->rbuf.
7731
7732 *Bob Buckholz (Google)*
7733
257e9d03 7734### Changes between 1.0.0d and 1.0.0e [6 Sep 2011]
5f8e6c50
DMSP
7735
7736 * Fix bug where CRLs with nextUpdate in the past are sometimes accepted
d8dc8538 7737 by initialising X509_STORE_CTX properly. ([CVE-2011-3207])
5f8e6c50
DMSP
7738
7739 *Kaspar Brand <ossl@velox.ch>*
7740
7741 * Fix SSL memory handling for (EC)DH ciphersuites, in particular
d8dc8538 7742 for multi-threaded use of ECDH. ([CVE-2011-3210])
5f8e6c50
DMSP
7743
7744 *Adam Langley (Google)*
7745
7746 * Fix x509_name_ex_d2i memory leak on bad inputs.
7747
7748 *Bodo Moeller*
7749
7750 * Remove hard coded ecdsaWithSHA1 signature tests in ssl code and check
7751 signature public key algorithm by using OID xref utilities instead.
7752 Before this you could only use some ECC ciphersuites with SHA1 only.
7753
7754 *Steve Henson*
7755
7756 * Add protection against ECDSA timing attacks as mentioned in the paper
7757 by Billy Bob Brumley and Nicola Tuveri, see:
257e9d03 7758 <http://eprint.iacr.org/2011/232.pdf>
5f8e6c50
DMSP
7759
7760 *Billy Bob Brumley and Nicola Tuveri*
7761
257e9d03 7762### Changes between 1.0.0c and 1.0.0d [8 Feb 2011]
5f8e6c50
DMSP
7763
7764 * Fix parsing of OCSP stapling ClientHello extension. CVE-2011-0014
7765
7766 *Neel Mehta, Adam Langley, Bodo Moeller (Google)*
7767
7768 * Fix bug in string printing code: if *any* escaping is enabled we must
7769 escape the escape character (backslash) or the resulting string is
7770 ambiguous.
7771
7772 *Steve Henson*
7773
257e9d03 7774### Changes between 1.0.0b and 1.0.0c [2 Dec 2010]
5f8e6c50
DMSP
7775
7776 * Disable code workaround for ancient and obsolete Netscape browsers
7777 and servers: an attacker can use it in a ciphersuite downgrade attack.
7778 Thanks to Martin Rex for discovering this bug. CVE-2010-4180
7779
7780 *Steve Henson*
7781
7782 * Fixed J-PAKE implementation error, originally discovered by
7783 Sebastien Martini, further info and confirmation from Stefan
7784 Arentz and Feng Hao. Note that this fix is a security fix. CVE-2010-4252
7785
7786 *Ben Laurie*
7787
257e9d03 7788### Changes between 1.0.0a and 1.0.0b [16 Nov 2010]
5f8e6c50
DMSP
7789
7790 * Fix extension code to avoid race conditions which can result in a buffer
7791 overrun vulnerability: resumed sessions must not be modified as they can
7792 be shared by multiple threads. CVE-2010-3864
7793
7794 *Steve Henson*
7795
7796 * Fix WIN32 build system to correctly link an ENGINE directory into
7797 a DLL.
7798
7799 *Steve Henson*
7800
257e9d03 7801### Changes between 1.0.0 and 1.0.0a [01 Jun 2010]
5f8e6c50
DMSP
7802
7803 * Check return value of int_rsa_verify in pkey_rsa_verifyrecover
d8dc8538 7804 ([CVE-2010-1633])
5f8e6c50
DMSP
7805
7806 *Steve Henson, Peter-Michael Hager <hager@dortmund.net>*
7807
257e9d03 7808### Changes between 0.9.8n and 1.0.0 [29 Mar 2010]
5f8e6c50
DMSP
7809
7810 * Add "missing" function EVP_CIPHER_CTX_copy(). This copies a cipher
7811 context. The operation can be customised via the ctrl mechanism in
7812 case ENGINEs want to include additional functionality.
7813
7814 *Steve Henson*
7815
7816 * Tolerate yet another broken PKCS#8 key format: private key value negative.
7817
7818 *Steve Henson*
7819
7820 * Add new -subject_hash_old and -issuer_hash_old options to x509 utility to
7821 output hashes compatible with older versions of OpenSSL.
7822
7823 *Willy Weisz <weisz@vcpc.univie.ac.at>*
7824
7825 * Fix compression algorithm handling: if resuming a session use the
7826 compression algorithm of the resumed session instead of determining
7827 it from client hello again. Don't allow server to change algorithm.
7828
7829 *Steve Henson*
7830
7831 * Add load_crls() function to apps tidying load_certs() too. Add option
7832 to verify utility to allow additional CRLs to be included.
7833
7834 *Steve Henson*
7835
7836 * Update OCSP request code to permit adding custom headers to the request:
7837 some responders need this.
7838
7839 *Steve Henson*
7840
7841 * The function EVP_PKEY_sign() returns <=0 on error: check return code
7842 correctly.
7843
7844 *Julia Lawall <julia@diku.dk>*
7845
7846 * Update verify callback code in apps/s_cb.c and apps/verify.c, it
7847 needlessly dereferenced structures, used obsolete functions and
7848 didn't handle all updated verify codes correctly.
7849
7850 *Steve Henson*
7851
7852 * Disable MD2 in the default configuration.
7853
7854 *Steve Henson*
7855
7856 * In BIO_pop() and BIO_push() use the ctrl argument (which was NULL) to
7857 indicate the initial BIO being pushed or popped. This makes it possible
7858 to determine whether the BIO is the one explicitly called or as a result
7859 of the ctrl being passed down the chain. Fix BIO_pop() and SSL BIOs so
7860 it handles reference counts correctly and doesn't zero out the I/O bio
7861 when it is not being explicitly popped. WARNING: applications which
7862 included workarounds for the old buggy behaviour will need to be modified
7863 or they could free up already freed BIOs.
7864
7865 *Steve Henson*
7866
7867 * Extend the uni2asc/asc2uni => OPENSSL_uni2asc/OPENSSL_asc2uni
7868 renaming to all platforms (within the 0.9.8 branch, this was
7869 done conditionally on Netware platforms to avoid a name clash).
7870
7871 *Guenter <lists@gknw.net>*
7872
7873 * Add ECDHE and PSK support to DTLS.
7874
7875 *Michael Tuexen <tuexen@fh-muenster.de>*
7876
7877 * Add CHECKED_STACK_OF macro to safestack.h, otherwise safestack can't
7878 be used on C++.
7879
7880 *Steve Henson*
7881
7882 * Add "missing" function EVP_MD_flags() (without this the only way to
7883 retrieve a digest flags is by accessing the structure directly. Update
257e9d03 7884 `EVP_MD_do_all*()` and `EVP_CIPHER_do_all*()` to include the name a digest
5f8e6c50
DMSP
7885 or cipher is registered as in the "from" argument. Print out all
7886 registered digests in the dgst usage message instead of manually
7887 attempting to work them out.
7888
7889 *Steve Henson*
7890
7891 * If no SSLv2 ciphers are used don't use an SSLv2 compatible client hello:
7892 this allows the use of compression and extensions. Change default cipher
7893 string to remove SSLv2 ciphersuites. This effectively avoids ancient SSLv2
7894 by default unless an application cipher string requests it.
7895
7896 *Steve Henson*
7897
7898 * Alter match criteria in PKCS12_parse(). It used to try to use local
7899 key ids to find matching certificates and keys but some PKCS#12 files
7900 don't follow the (somewhat unwritten) rules and this strategy fails.
7901 Now just gather all certificates together and the first private key
7902 then look for the first certificate that matches the key.
7903
7904 *Steve Henson*
7905
7906 * Support use of registered digest and cipher names for dgst and cipher
7907 commands instead of having to add each one as a special case. So now
7908 you can do:
7909
7910 openssl sha256 foo
7911
7912 as well as:
7913
7914 openssl dgst -sha256 foo
7915
7916 and this works for ENGINE based algorithms too.
7917
5f8e6c50
DMSP
7918 *Steve Henson*
7919
7920 * Update Gost ENGINE to support parameter files.
7921
7922 *Victor B. Wagner <vitus@cryptocom.ru>*
7923
7924 * Support GeneralizedTime in ca utility.
7925
7926 *Oliver Martin <oliver@volatilevoid.net>, Steve Henson*
7927
7928 * Enhance the hash format used for certificate directory links. The new
7929 form uses the canonical encoding (meaning equivalent names will work
7930 even if they aren't identical) and uses SHA1 instead of MD5. This form
7931 is incompatible with the older format and as a result c_rehash should
7932 be used to rebuild symbolic links.
7933
7934 *Steve Henson*
7935
7936 * Make PKCS#8 the default write format for private keys, replacing the
7937 traditional format. This form is standardised, more secure and doesn't
7938 include an implicit MD5 dependency.
7939
7940 *Steve Henson*
7941
7942 * Add a $gcc_devteam_warn option to Configure. The idea is that any code
7943 committed to OpenSSL should pass this lot as a minimum.
7944
7945 *Steve Henson*
7946
7947 * Add session ticket override functionality for use by EAP-FAST.
7948
7949 *Jouni Malinen <j@w1.fi>*
7950
7951 * Modify HMAC functions to return a value. Since these can be implemented
7952 in an ENGINE errors can occur.
7953
7954 *Steve Henson*
7955
7956 * Type-checked OBJ_bsearch_ex.
7957
7958 *Ben Laurie*
7959
7960 * Type-checked OBJ_bsearch. Also some constification necessitated
7961 by type-checking. Still to come: TXT_DB, bsearch(?),
7962 OBJ_bsearch_ex, qsort, CRYPTO_EX_DATA, ASN1_VALUE, ASN1_STRING,
7963 CONF_VALUE.
7964
7965 *Ben Laurie*
7966
7967 * New function OPENSSL_gmtime_adj() to add a specific number of days and
7968 seconds to a tm structure directly, instead of going through OS
7969 specific date routines. This avoids any issues with OS routines such
257e9d03 7970 as the year 2038 bug. New `*_adj()` functions for ASN1 time structures
5f8e6c50
DMSP
7971 and X509_time_adj_ex() to cover the extended range. The existing
7972 X509_time_adj() is still usable and will no longer have any date issues.
7973
7974 *Steve Henson*
7975
7976 * Delta CRL support. New use deltas option which will attempt to locate
7977 and search any appropriate delta CRLs available.
7978
7979 This work was sponsored by Google.
7980
7981 *Steve Henson*
7982
7983 * Support for CRLs partitioned by reason code. Reorganise CRL processing
7984 code and add additional score elements. Validate alternate CRL paths
7985 as part of the CRL checking and indicate a new error "CRL path validation
7986 error" in this case. Applications wanting additional details can use
7987 the verify callback and check the new "parent" field. If this is not
7988 NULL CRL path validation is taking place. Existing applications won't
7989 see this because it requires extended CRL support which is off by
7990 default.
7991
7992 This work was sponsored by Google.
7993
7994 *Steve Henson*
7995
7996 * Support for freshest CRL extension.
7997
7998 This work was sponsored by Google.
7999
8000 *Steve Henson*
8001
8002 * Initial indirect CRL support. Currently only supported in the CRLs
8003 passed directly and not via lookup. Process certificate issuer
8004 CRL entry extension and lookup CRL entries by bother issuer name
8005 and serial number. Check and process CRL issuer entry in IDP extension.
8006
8007 This work was sponsored by Google.
8008
8009 *Steve Henson*
8010
8011 * Add support for distinct certificate and CRL paths. The CRL issuer
8012 certificate is validated separately in this case. Only enabled if
8013 an extended CRL support flag is set: this flag will enable additional
8014 CRL functionality in future.
8015
8016 This work was sponsored by Google.
8017
8018 *Steve Henson*
8019
8020 * Add support for policy mappings extension.
8021
8022 This work was sponsored by Google.
8023
8024 *Steve Henson*
8025
8026 * Fixes to pathlength constraint, self issued certificate handling,
8027 policy processing to align with RFC3280 and PKITS tests.
8028
8029 This work was sponsored by Google.
8030
8031 *Steve Henson*
8032
8033 * Support for name constraints certificate extension. DN, email, DNS
8034 and URI types are currently supported.
8035
8036 This work was sponsored by Google.
8037
8038 *Steve Henson*
8039
8040 * To cater for systems that provide a pointer-based thread ID rather
8041 than numeric, deprecate the current numeric thread ID mechanism and
8042 replace it with a structure and associated callback type. This
8043 mechanism allows a numeric "hash" to be extracted from a thread ID in
8044 either case, and on platforms where pointers are larger than 'long',
8045 mixing is done to help ensure the numeric 'hash' is usable even if it
8046 can't be guaranteed unique. The default mechanism is to use "&errno"
8047 as a pointer-based thread ID to distinguish between threads.
8048
8049 Applications that want to provide their own thread IDs should now use
8050 CRYPTO_THREADID_set_callback() to register a callback that will call
8051 either CRYPTO_THREADID_set_numeric() or CRYPTO_THREADID_set_pointer().
8052
8053 Note that ERR_remove_state() is now deprecated, because it is tied
8054 to the assumption that thread IDs are numeric. ERR_remove_state(0)
8055 to free the current thread's error state should be replaced by
8056 ERR_remove_thread_state(NULL).
8057
8058 (This new approach replaces the functions CRYPTO_set_idptr_callback(),
8059 CRYPTO_get_idptr_callback(), and CRYPTO_thread_idptr() that existed in
8060 OpenSSL 0.9.9-dev between June 2006 and August 2008. Also, if an
8061 application was previously providing a numeric thread callback that
8062 was inappropriate for distinguishing threads, then uniqueness might
8063 have been obtained with &errno that happened immediately in the
8064 intermediate development versions of OpenSSL; this is no longer the
8065 case, the numeric thread callback will now override the automatic use
8066 of &errno.)
8067
8068 *Geoff Thorpe, with help from Bodo Moeller*
8069
8070 * Initial support for different CRL issuing certificates. This covers a
8071 simple case where the self issued certificates in the chain exist and
8072 the real CRL issuer is higher in the existing chain.
8073
8074 This work was sponsored by Google.
8075
8076 *Steve Henson*
8077
8078 * Removed effectively defunct crypto/store from the build.
8079
8080 *Ben Laurie*
8081
8082 * Revamp of STACK to provide stronger type-checking. Still to come:
8083 TXT_DB, bsearch(?), OBJ_bsearch, qsort, CRYPTO_EX_DATA, ASN1_VALUE,
8084 ASN1_STRING, CONF_VALUE.
8085
8086 *Ben Laurie*
8087
8088 * Add a new SSL_MODE_RELEASE_BUFFERS mode flag to release unused buffer
8089 RAM on SSL connections. This option can save about 34k per idle SSL.
8090
8091 *Nick Mathewson*
8092
8093 * Revamp of LHASH to provide stronger type-checking. Still to come:
8094 STACK, TXT_DB, bsearch, qsort.
8095
8096 *Ben Laurie*
8097
8098 * Initial support for Cryptographic Message Syntax (aka CMS) based
8099 on RFC3850, RFC3851 and RFC3852. New cms directory and cms utility,
8100 support for data, signedData, compressedData, digestedData and
8101 encryptedData, envelopedData types included. Scripts to check against
8102 RFC4134 examples draft and interop and consistency checks of many
8103 content types and variants.
8104
8105 *Steve Henson*
8106
8107 * Add options to enc utility to support use of zlib compression BIO.
8108
8109 *Steve Henson*
8110
8111 * Extend mk1mf to support importing of options and assembly language
8112 files from Configure script, currently only included in VC-WIN32.
8113 The assembly language rules can now optionally generate the source
8114 files from the associated perl scripts.
8115
8116 *Steve Henson*
8117
8118 * Implement remaining functionality needed to support GOST ciphersuites.
8119 Interop testing has been performed using CryptoPro implementations.
8120
8121 *Victor B. Wagner <vitus@cryptocom.ru>*
8122
8123 * s390x assembler pack.
8124
8125 *Andy Polyakov*
8126
8127 * ARMv4 assembler pack. ARMv4 refers to v4 and later ISA, not CPU
8128 "family."
8129
8130 *Andy Polyakov*
8131
8132 * Implement Opaque PRF Input TLS extension as specified in
8133 draft-rescorla-tls-opaque-prf-input-00.txt. Since this is not an
8134 official specification yet and no extension type assignment by
8135 IANA exists, this extension (for now) will have to be explicitly
8136 enabled when building OpenSSL by providing the extension number
8137 to use. For example, specify an option
8138
8139 -DTLSEXT_TYPE_opaque_prf_input=0x9527
8140
8141 to the "config" or "Configure" script to enable the extension,
8142 assuming extension number 0x9527 (which is a completely arbitrary
8143 and unofficial assignment based on the MD5 hash of the Internet
8144 Draft). Note that by doing so, you potentially lose
8145 interoperability with other TLS implementations since these might
8146 be using the same extension number for other purposes.
8147
8148 SSL_set_tlsext_opaque_prf_input(ssl, src, len) is used to set the
8149 opaque PRF input value to use in the handshake. This will create
8150 an internal copy of the length-'len' string at 'src', and will
8151 return non-zero for success.
8152
8153 To get more control and flexibility, provide a callback function
8154 by using
8155
8156 SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx, cb)
8157 SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx, arg)
8158
8159 where
8160
8161 int (*cb)(SSL *, void *peerinput, size_t len, void *arg);
8162 void *arg;
8163
8164 Callback function 'cb' will be called in handshakes, and is
8165 expected to use SSL_set_tlsext_opaque_prf_input() as appropriate.
8166 Argument 'arg' is for application purposes (the value as given to
8167 SSL_CTX_set_tlsext_opaque_prf_input_callback_arg() will directly
8168 be provided to the callback function). The callback function
8169 has to return non-zero to report success: usually 1 to use opaque
8170 PRF input just if possible, or 2 to enforce use of the opaque PRF
8171 input. In the latter case, the library will abort the handshake
8172 if opaque PRF input is not successfully negotiated.
8173
8174 Arguments 'peerinput' and 'len' given to the callback function
8175 will always be NULL and 0 in the case of a client. A server will
8176 see the client's opaque PRF input through these variables if
8177 available (NULL and 0 otherwise). Note that if the server
8178 provides an opaque PRF input, the length must be the same as the
8179 length of the client's opaque PRF input.
8180
8181 Note that the callback function will only be called when creating
8182 a new session (session resumption can resume whatever was
8183 previously negotiated), and will not be called in SSL 2.0
8184 handshakes; thus, SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) or
8185 SSL_set_options(ssl, SSL_OP_NO_SSLv2) is especially recommended
8186 for applications that need to enforce opaque PRF input.
8187
5f8e6c50
DMSP
8188 *Bodo Moeller*
8189
8190 * Update ssl code to support digests other than SHA1+MD5 for handshake
8191 MAC.
8192
5f8e6c50
DMSP
8193 *Victor B. Wagner <vitus@cryptocom.ru>*
8194
8195 * Add RFC4507 support to OpenSSL. This includes the corrections in
8196 RFC4507bis. The encrypted ticket format is an encrypted encoded
8197 SSL_SESSION structure, that way new session features are automatically
8198 supported.
8199
8200 If a client application caches session in an SSL_SESSION structure
8201 support is transparent because tickets are now stored in the encoded
8202 SSL_SESSION.
8203
8204 The SSL_CTX structure automatically generates keys for ticket
8205 protection in servers so again support should be possible
8206 with no application modification.
8207
8208 If a client or server wishes to disable RFC4507 support then the option
8209 SSL_OP_NO_TICKET can be set.
8210
8211 Add a TLS extension debugging callback to allow the contents of any client
8212 or server extensions to be examined.
8213
8214 This work was sponsored by Google.
8215
8216 *Steve Henson*
8217
8218 * Final changes to avoid use of pointer pointer casts in OpenSSL.
8219 OpenSSL should now compile cleanly on gcc 4.2
8220
8221 *Peter Hartley <pdh@utter.chaos.org.uk>, Steve Henson*
8222
8223 * Update SSL library to use new EVP_PKEY MAC API. Include generic MAC
8224 support including streaming MAC support: this is required for GOST
8225 ciphersuite support.
8226
8227 *Victor B. Wagner <vitus@cryptocom.ru>, Steve Henson*
8228
8229 * Add option -stream to use PKCS#7 streaming in smime utility. New
8230 function i2d_PKCS7_bio_stream() and PEM_write_PKCS7_bio_stream()
8231 to output in BER and PEM format.
8232
8233 *Steve Henson*
8234
8235 * Experimental support for use of HMAC via EVP_PKEY interface. This
257e9d03 8236 allows HMAC to be handled via the `EVP_DigestSign*()` interface. The
5f8e6c50
DMSP
8237 EVP_PKEY "key" in this case is the HMAC key, potentially allowing
8238 ENGINE support for HMAC keys which are unextractable. New -mac and
8239 -macopt options to dgst utility.
8240
8241 *Steve Henson*
8242
8243 * New option -sigopt to dgst utility. Update dgst to use
257e9d03 8244 `EVP_Digest{Sign,Verify}*`. These two changes make it possible to use
5f8e6c50
DMSP
8245 alternative signing parameters such as X9.31 or PSS in the dgst
8246 utility.
8247
8248 *Steve Henson*
8249
8250 * Change ssl_cipher_apply_rule(), the internal function that does
8251 the work each time a ciphersuite string requests enabling
8252 ("foo+bar"), moving ("+foo+bar"), disabling ("-foo+bar", or
8253 removing ("!foo+bar") a class of ciphersuites: Now it maintains
8254 the order of disabled ciphersuites such that those ciphersuites
8255 that most recently went from enabled to disabled not only stay
8256 in order with respect to each other, but also have higher priority
8257 than other disabled ciphersuites the next time ciphersuites are
8258 enabled again.
8259
8260 This means that you can now say, e.g., "PSK:-PSK:HIGH" to enable
8261 the same ciphersuites as with "HIGH" alone, but in a specific
8262 order where the PSK ciphersuites come first (since they are the
8263 most recently disabled ciphersuites when "HIGH" is parsed).
8264
8265 Also, change ssl_create_cipher_list() (using this new
8266 functionality) such that between otherwise identical
8267 ciphersuites, ephemeral ECDH is preferred over ephemeral DH in
8268 the default order.
8269
8270 *Bodo Moeller*
8271
8272 * Change ssl_create_cipher_list() so that it automatically
8273 arranges the ciphersuites in reasonable order before starting
8274 to process the rule string. Thus, the definition for "DEFAULT"
8275 (SSL_DEFAULT_CIPHER_LIST) now is just "ALL:!aNULL:!eNULL", but
8276 remains equivalent to "AES:ALL:!aNULL:!eNULL:+aECDH:+kRSA:+RC4:@STRENGTH".
8277 This makes it much easier to arrive at a reasonable default order
8278 in applications for which anonymous ciphers are OK (meaning
8279 that you can't actually use DEFAULT).
8280
8281 *Bodo Moeller; suggested by Victor Duchovni*
8282
8283 * Split the SSL/TLS algorithm mask (as used for ciphersuite string
8284 processing) into multiple integers instead of setting
8285 "SSL_MKEY_MASK" bits, "SSL_AUTH_MASK" bits, "SSL_ENC_MASK",
8286 "SSL_MAC_MASK", and "SSL_SSL_MASK" bits all in a single integer.
8287 (These masks as well as the individual bit definitions are hidden
8288 away into the non-exported interface ssl/ssl_locl.h, so this
8289 change to the definition of the SSL_CIPHER structure shouldn't
8290 affect applications.) This give us more bits for each of these
8291 categories, so there is no longer a need to coagulate AES128 and
8292 AES256 into a single algorithm bit, and to coagulate Camellia128
8293 and Camellia256 into a single algorithm bit, which has led to all
8294 kinds of kludges.
8295
8296 Thus, among other things, the kludge introduced in 0.9.7m and
8297 0.9.8e for masking out AES256 independently of AES128 or masking
8298 out Camellia256 independently of AES256 is not needed here in 0.9.9.
8299
8300 With the change, we also introduce new ciphersuite aliases that
8301 so far were missing: "AES128", "AES256", "CAMELLIA128", and
8302 "CAMELLIA256".
8303
8304 *Bodo Moeller*
8305
8306 * Add support for dsa-with-SHA224 and dsa-with-SHA256.
8307 Use the leftmost N bytes of the signature input if the input is
8308 larger than the prime q (with N being the size in bytes of q).
8309
8310 *Nils Larsch*
8311
8312 * Very *very* experimental PKCS#7 streaming encoder support. Nothing uses
8313 it yet and it is largely untested.
8314
8315 *Steve Henson*
8316
8317 * Add support for the ecdsa-with-SHA224/256/384/512 signature types.
8318
8319 *Nils Larsch*
8320
8321 * Initial incomplete changes to avoid need for function casts in OpenSSL
8322 some compilers (gcc 4.2 and later) reject their use. Safestack is
8323 reimplemented. Update ASN1 to avoid use of legacy functions.
8324
8325 *Steve Henson*
8326
8327 * Win32/64 targets are linked with Winsock2.
8328
8329 *Andy Polyakov*
8330
8331 * Add an X509_CRL_METHOD structure to allow CRL processing to be redirected
8332 to external functions. This can be used to increase CRL handling
8333 efficiency especially when CRLs are very large by (for example) storing
8334 the CRL revoked certificates in a database.
8335
8336 *Steve Henson*
8337
8338 * Overhaul of by_dir code. Add support for dynamic loading of CRLs so
8339 new CRLs added to a directory can be used. New command line option
8340 -verify_return_error to s_client and s_server. This causes real errors
8341 to be returned by the verify callback instead of carrying on no matter
8342 what. This reflects the way a "real world" verify callback would behave.
8343
8344 *Steve Henson*
8345
8346 * GOST engine, supporting several GOST algorithms and public key formats.
8347 Kindly donated by Cryptocom.
8348
8349 *Cryptocom*
8350
8351 * Partial support for Issuing Distribution Point CRL extension. CRLs
8352 partitioned by DP are handled but no indirect CRL or reason partitioning
8353 (yet). Complete overhaul of CRL handling: now the most suitable CRL is
8354 selected via a scoring technique which handles IDP and AKID in CRLs.
8355
8356 *Steve Henson*
8357
8358 * New X509_STORE_CTX callbacks lookup_crls() and lookup_certs() which
8359 will ultimately be used for all verify operations: this will remove the
8360 X509_STORE dependency on certificate verification and allow alternative
8361 lookup methods. X509_STORE based implementations of these two callbacks.
8362
8363 *Steve Henson*
8364
8365 * Allow multiple CRLs to exist in an X509_STORE with matching issuer names.
8366 Modify get_crl() to find a valid (unexpired) CRL if possible.
8367
8368 *Steve Henson*
8369
8370 * New function X509_CRL_match() to check if two CRLs are identical. Normally
8371 this would be called X509_CRL_cmp() but that name is already used by
8372 a function that just compares CRL issuer names. Cache several CRL
8373 extensions in X509_CRL structure and cache CRLDP in X509.
8374
8375 *Steve Henson*
8376
8377 * Store a "canonical" representation of X509_NAME structure (ASN1 Name)
8378 this maps equivalent X509_NAME structures into a consistent structure.
8379 Name comparison can then be performed rapidly using memcmp().
8380
8381 *Steve Henson*
8382
8383 * Non-blocking OCSP request processing. Add -timeout option to ocsp
8384 utility.
8385
8386 *Steve Henson*
8387
8388 * Allow digests to supply their own micalg string for S/MIME type using
8389 the ctrl EVP_MD_CTRL_MICALG.
8390
8391 *Steve Henson*
8392
8393 * During PKCS7 signing pass the PKCS7 SignerInfo structure to the
8394 EVP_PKEY_METHOD before and after signing via the EVP_PKEY_CTRL_PKCS7_SIGN
8395 ctrl. It can then customise the structure before and/or after signing
8396 if necessary.
8397
8398 *Steve Henson*
8399
8400 * New function OBJ_add_sigid() to allow application defined signature OIDs
8401 to be added to OpenSSLs internal tables. New function OBJ_sigid_free()
8402 to free up any added signature OIDs.
8403
8404 *Steve Henson*
8405
8406 * New functions EVP_CIPHER_do_all(), EVP_CIPHER_do_all_sorted(),
8407 EVP_MD_do_all() and EVP_MD_do_all_sorted() to enumerate internal
8408 digest and cipher tables. New options added to openssl utility:
8409 list-message-digest-algorithms and list-cipher-algorithms.
8410
8411 *Steve Henson*
8412
8413 * Change the array representation of binary polynomials: the list
8414 of degrees of non-zero coefficients is now terminated with -1.
8415 Previously it was terminated with 0, which was also part of the
8416 value; thus, the array representation was not applicable to
8417 polynomials where t^0 has coefficient zero. This change makes
8418 the array representation useful in a more general context.
8419
8420 *Douglas Stebila*
8421
8422 * Various modifications and fixes to SSL/TLS cipher string
8423 handling. For ECC, the code now distinguishes between fixed ECDH
8424 with RSA certificates on the one hand and with ECDSA certificates
8425 on the other hand, since these are separate ciphersuites. The
8426 unused code for Fortezza ciphersuites has been removed.
8427
8428 For consistency with EDH, ephemeral ECDH is now called "EECDH"
8429 (not "ECDHE"). For consistency with the code for DH
8430 certificates, use of ECDH certificates is now considered ECDH
8431 authentication, not RSA or ECDSA authentication (the latter is
8432 merely the CA's signing algorithm and not actively used in the
8433 protocol).
8434
8435 The temporary ciphersuite alias "ECCdraft" is no longer
8436 available, and ECC ciphersuites are no longer excluded from "ALL"
8437 and "DEFAULT". The following aliases now exist for RFC 4492
8438 ciphersuites, most of these by analogy with the DH case:
8439
8440 kECDHr - ECDH cert, signed with RSA
8441 kECDHe - ECDH cert, signed with ECDSA
8442 kECDH - ECDH cert (signed with either RSA or ECDSA)
8443 kEECDH - ephemeral ECDH
8444 ECDH - ECDH cert or ephemeral ECDH
8445
8446 aECDH - ECDH cert
8447 aECDSA - ECDSA cert
8448 ECDSA - ECDSA cert
8449
8450 AECDH - anonymous ECDH
8451 EECDH - non-anonymous ephemeral ECDH (equivalent to "kEECDH:-AECDH")
8452
5f8e6c50
DMSP
8453 *Bodo Moeller*
8454
8455 * Add additional S/MIME capabilities for AES and GOST ciphers if supported.
8456 Use correct micalg parameters depending on digest(s) in signed message.
8457
8458 *Steve Henson*
8459
8460 * Add engine support for EVP_PKEY_ASN1_METHOD. Add functions to process
8461 an ENGINE asn1 method. Support ENGINE lookups in the ASN1 code.
8462
8463 *Steve Henson*
8464
8465 * Initial engine support for EVP_PKEY_METHOD. New functions to permit
8466 an engine to register a method. Add ENGINE lookups for methods and
8467 functional reference processing.
8468
8469 *Steve Henson*
8470
257e9d03
RS
8471 * New functions `EVP_Digest{Sign,Verify)*`. These are enhanced versions of
8472 `EVP_{Sign,Verify}*` which allow an application to customise the signature
5f8e6c50
DMSP
8473 process.
8474
8475 *Steve Henson*
8476
8477 * New -resign option to smime utility. This adds one or more signers
8478 to an existing PKCS#7 signedData structure. Also -md option to use an
8479 alternative message digest algorithm for signing.
8480
8481 *Steve Henson*
8482
8483 * Tidy up PKCS#7 routines and add new functions to make it easier to
8484 create PKCS7 structures containing multiple signers. Update smime
8485 application to support multiple signers.
8486
8487 *Steve Henson*
8488
8489 * New -macalg option to pkcs12 utility to allow setting of an alternative
8490 digest MAC.
8491
8492 *Steve Henson*
8493
8494 * Initial support for PKCS#5 v2.0 PRFs other than default SHA1 HMAC.
8495 Reorganize PBE internals to lookup from a static table using NIDs,
8496 add support for HMAC PBE OID translation. Add a EVP_CIPHER ctrl:
8497 EVP_CTRL_PBE_PRF_NID this allows a cipher to specify an alternative
8498 PRF which will be automatically used with PBES2.
8499
8500 *Steve Henson*
8501
8502 * Replace the algorithm specific calls to generate keys in "req" with the
8503 new API.
8504
8505 *Steve Henson*
8506
8507 * Update PKCS#7 enveloped data routines to use new API. This is now
8508 supported by any public key method supporting the encrypt operation. A
8509 ctrl is added to allow the public key algorithm to examine or modify
8510 the PKCS#7 RecipientInfo structure if it needs to: for RSA this is
8511 a no op.
8512
8513 *Steve Henson*
8514
8515 * Add a ctrl to asn1 method to allow a public key algorithm to express
8516 a default digest type to use. In most cases this will be SHA1 but some
8517 algorithms (such as GOST) need to specify an alternative digest. The
8518 return value indicates how strong the preference is 1 means optional and
8519 2 is mandatory (that is it is the only supported type). Modify
8520 ASN1_item_sign() to accept a NULL digest argument to indicate it should
8521 use the default md. Update openssl utilities to use the default digest
8522 type for signing if it is not explicitly indicated.
8523
8524 *Steve Henson*
8525
8526 * Use OID cross reference table in ASN1_sign() and ASN1_verify(). New
8527 EVP_MD flag EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. This uses the relevant
8528 signing method from the key type. This effectively removes the link
8529 between digests and public key types.
8530
8531 *Steve Henson*
8532
8533 * Add an OID cross reference table and utility functions. Its purpose is to
8534 translate between signature OIDs such as SHA1WithrsaEncryption and SHA1,
8535 rsaEncryption. This will allow some of the algorithm specific hackery
8536 needed to use the correct OID to be removed.
8537
8538 *Steve Henson*
8539
8540 * Remove algorithm specific dependencies when setting PKCS7_SIGNER_INFO
8541 structures for PKCS7_sign(). They are now set up by the relevant public
8542 key ASN1 method.
8543
8544 *Steve Henson*
8545
8546 * Add provisional EC pkey method with support for ECDSA and ECDH.
8547
8548 *Steve Henson*
8549
8550 * Add support for key derivation (agreement) in the API, DH method and
8551 pkeyutl.
8552
8553 *Steve Henson*
8554
8555 * Add DSA pkey method and DH pkey methods, extend DH ASN1 method to support
8556 public and private key formats. As a side effect these add additional
8557 command line functionality not previously available: DSA signatures can be
8558 generated and verified using pkeyutl and DH key support and generation in
8559 pkey, genpkey.
8560
8561 *Steve Henson*
8562
8563 * BeOS support.
8564
8565 *Oliver Tappe <zooey@hirschkaefer.de>*
8566
8567 * New make target "install_html_docs" installs HTML renditions of the
8568 manual pages.
8569
8570 *Oliver Tappe <zooey@hirschkaefer.de>*
8571
8572 * New utility "genpkey" this is analogous to "genrsa" etc except it can
8573 generate keys for any algorithm. Extend and update EVP_PKEY_METHOD to
8574 support key and parameter generation and add initial key generation
8575 functionality for RSA.
8576
8577 *Steve Henson*
8578
8579 * Add functions for main EVP_PKEY_method operations. The undocumented
257e9d03
RS
8580 functions `EVP_PKEY_{encrypt,decrypt}` have been renamed to
8581 `EVP_PKEY_{encrypt,decrypt}_old`.
5f8e6c50
DMSP
8582
8583 *Steve Henson*
8584
8585 * Initial definitions for EVP_PKEY_METHOD. This will be a high level public
8586 key API, doesn't do much yet.
8587
8588 *Steve Henson*
8589
8590 * New function EVP_PKEY_asn1_get0_info() to retrieve information about
8591 public key algorithms. New option to openssl utility:
8592 "list-public-key-algorithms" to print out info.
8593
8594 *Steve Henson*
8595
8596 * Implement the Supported Elliptic Curves Extension for
8597 ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
8598
8599 *Douglas Stebila*
8600
8601 * Don't free up OIDs in OBJ_cleanup() if they are in use by EVP_MD or
8602 EVP_CIPHER structures to avoid later problems in EVP_cleanup().
8603
8604 *Steve Henson*
8605
8606 * New utilities pkey and pkeyparam. These are similar to algorithm specific
8607 utilities such as rsa, dsa, dsaparam etc except they process any key
8608 type.
8609
8610 *Steve Henson*
8611
8612 * Transfer public key printing routines to EVP_PKEY_ASN1_METHOD. New
8613 functions EVP_PKEY_print_public(), EVP_PKEY_print_private(),
8614 EVP_PKEY_print_param() to print public key data from an EVP_PKEY
8615 structure.
8616
8617 *Steve Henson*
8618
8619 * Initial support for pluggable public key ASN1.
8620 De-spaghettify the public key ASN1 handling. Move public and private
8621 key ASN1 handling to a new EVP_PKEY_ASN1_METHOD structure. Relocate
8622 algorithm specific handling to a single module within the relevant
8623 algorithm directory. Add functions to allow (near) opaque processing
8624 of public and private key structures.
8625
8626 *Steve Henson*
8627
8628 * Implement the Supported Point Formats Extension for
8629 ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
8630
8631 *Douglas Stebila*
8632
8633 * Add initial support for RFC 4279 PSK TLS ciphersuites. Add members
8634 for the psk identity [hint] and the psk callback functions to the
8635 SSL_SESSION, SSL and SSL_CTX structure.
8636
8637 New ciphersuites:
8638 PSK-RC4-SHA, PSK-3DES-EDE-CBC-SHA, PSK-AES128-CBC-SHA,
8639 PSK-AES256-CBC-SHA
8640
8641 New functions:
8642 SSL_CTX_use_psk_identity_hint
8643 SSL_get_psk_identity_hint
8644 SSL_get_psk_identity
8645 SSL_use_psk_identity_hint
8646
5f8e6c50
DMSP
8647 *Mika Kousa and Pasi Eronen of Nokia Corporation*
8648
8649 * Add RFC 3161 compliant time stamp request creation, response generation
8650 and response verification functionality.
8651
8652 *Zoltán Glózik <zglozik@opentsa.org>, The OpenTSA Project*
8653
8654 * Add initial support for TLS extensions, specifically for the server_name
8655 extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now
8656 have new members for a host name. The SSL data structure has an
257e9d03 8657 additional member `SSL_CTX *initial_ctx` so that new sessions can be
5f8e6c50
DMSP
8658 stored in that context to allow for session resumption, even after the
8659 SSL has been switched to a new SSL_CTX in reaction to a client's
8660 server_name extension.
8661
8662 New functions (subject to change):
8663
8664 SSL_get_servername()
8665 SSL_get_servername_type()
8666 SSL_set_SSL_CTX()
8667
8668 New CTRL codes and macros (subject to change):
8669
8670 SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
8671 - SSL_CTX_set_tlsext_servername_callback()
8672 SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
8673 - SSL_CTX_set_tlsext_servername_arg()
8674 SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name()
8675
8676 openssl s_client has a new '-servername ...' option.
8677
8678 openssl s_server has new options '-servername_host ...', '-cert2 ...',
8679 '-key2 ...', '-servername_fatal' (subject to change). This allows
8680 testing the HostName extension for a specific single host name ('-cert'
8681 and '-key' remain fallbacks for handshakes without HostName
8682 negotiation). If the unrecognized_name alert has to be sent, this by
8683 default is a warning; it becomes fatal with the '-servername_fatal'
8684 option.
8685
5f8e6c50
DMSP
8686 *Peter Sylvester, Remy Allais, Christophe Renou*
8687
8688 * Whirlpool hash implementation is added.
8689
8690 *Andy Polyakov*
8691
8692 * BIGNUM code on 64-bit SPARCv9 targets is switched from bn(64,64) to
8693 bn(64,32). Because of instruction set limitations it doesn't have
8694 any negative impact on performance. This was done mostly in order
8695 to make it possible to share assembler modules, such as bn_mul_mont
8696 implementations, between 32- and 64-bit builds without hassle.
8697
8698 *Andy Polyakov*
8699
8700 * Move code previously exiled into file crypto/ec/ec2_smpt.c
8701 to ec2_smpl.c, and no longer require the OPENSSL_EC_BIN_PT_COMP
8702 macro.
8703
8704 *Bodo Moeller*
8705
8706 * New candidate for BIGNUM assembler implementation, bn_mul_mont,
8707 dedicated Montgomery multiplication procedure, is introduced.
8708 BN_MONT_CTX is modified to allow bn_mul_mont to reach for higher
8709 "64-bit" performance on certain 32-bit targets.
8710
8711 *Andy Polyakov*
8712
8713 * New option SSL_OP_NO_COMP to disable use of compression selectively
8714 in SSL structures. New SSL ctrl to set maximum send fragment size.
8715 Save memory by setting the I/O buffer sizes dynamically instead of
8716 using the maximum available value.
8717
8718 *Steve Henson*
8719
8720 * New option -V for 'openssl ciphers'. This prints the ciphersuite code
8721 in addition to the text details.
8722
8723 *Bodo Moeller*
8724
8725 * Very, very preliminary EXPERIMENTAL support for printing of general
8726 ASN1 structures. This currently produces rather ugly output and doesn't
8727 handle several customised structures at all.
8728
8729 *Steve Henson*
8730
8731 * Integrated support for PVK file format and some related formats such
8732 as MS PUBLICKEYBLOB and PRIVATEKEYBLOB. Command line switches to support
8733 these in the 'rsa' and 'dsa' utilities.
8734
8735 *Steve Henson*
8736
8737 * Support for PKCS#1 RSAPublicKey format on rsa utility command line.
8738
8739 *Steve Henson*
8740
8741 * Remove the ancient ASN1_METHOD code. This was only ever used in one
8742 place for the (very old) "NETSCAPE" format certificates which are now
8743 handled using new ASN1 code equivalents.
8744
8745 *Steve Henson*
8746
8747 * Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD
8748 pointer and make the SSL_METHOD parameter in SSL_CTX_new,
8749 SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'.
8750
8751 *Nils Larsch*
8752
8753 * Modify CRL distribution points extension code to print out previously
8754 unsupported fields. Enhance extension setting code to allow setting of
8755 all fields.
8756
8757 *Steve Henson*
8758
8759 * Add print and set support for Issuing Distribution Point CRL extension.
8760
8761 *Steve Henson*
8762
8763 * Change 'Configure' script to enable Camellia by default.
8764
8765 *NTT*
8766
44652c16
DMSP
8767OpenSSL 0.9.x
8768-------------
8769
257e9d03 8770### Changes between 0.9.8m and 0.9.8n [24 Mar 2010]
5f8e6c50
DMSP
8771
8772 * When rejecting SSL/TLS records due to an incorrect version number, never
8773 update s->server with a new major version number. As of
8774 - OpenSSL 0.9.8m if 'short' is a 16-bit type,
8775 - OpenSSL 0.9.8f if 'short' is longer than 16 bits,
8776 the previous behavior could result in a read attempt at NULL when
8777 receiving specific incorrect SSL/TLS records once record payload
d8dc8538 8778 protection is active. ([CVE-2010-0740])
5f8e6c50
DMSP
8779
8780 *Bodo Moeller, Adam Langley <agl@chromium.org>*
8781
8782 * Fix for CVE-2010-0433 where some kerberos enabled versions of OpenSSL
8783 could be crashed if the relevant tables were not present (e.g. chrooted).
8784
8785 *Tomas Hoger <thoger@redhat.com>*
8786
257e9d03 8787### Changes between 0.9.8l and 0.9.8m [25 Feb 2010]
5f8e6c50 8788
d8dc8538 8789 * Always check bn_wexpand() return values for failure. ([CVE-2009-3245])
5f8e6c50
DMSP
8790
8791 *Martin Olsson, Neel Mehta*
8792
8793 * Fix X509_STORE locking: Every 'objs' access requires a lock (to
8794 accommodate for stack sorting, always a write lock!).
8795
8796 *Bodo Moeller*
8797
8798 * On some versions of WIN32 Heap32Next is very slow. This can cause
8799 excessive delays in the RAND_poll(): over a minute. As a workaround
8800 include a time check in the inner Heap32Next loop too.
8801
8802 *Steve Henson*
8803
8804 * The code that handled flushing of data in SSL/TLS originally used the
8805 BIO_CTRL_INFO ctrl to see if any data was pending first. This caused
8806 the problem outlined in PR#1949. The fix suggested there however can
8807 trigger problems with buggy BIO_CTRL_WPENDING (e.g. some versions
8808 of Apache). So instead simplify the code to flush unconditionally.
8809 This should be fine since flushing with no data to flush is a no op.
8810
8811 *Steve Henson*
8812
8813 * Handle TLS versions 2.0 and later properly and correctly use the
8814 highest version of TLS/SSL supported. Although TLS >= 2.0 is some way
8815 off ancient servers have a habit of sticking around for a while...
8816
8817 *Steve Henson*
8818
8819 * Modify compression code so it frees up structures without using the
8820 ex_data callbacks. This works around a problem where some applications
8821 call CRYPTO_cleanup_all_ex_data() before application exit (e.g. when
8822 restarting) then use compression (e.g. SSL with compression) later.
8823 This results in significant per-connection memory leaks and
8824 has caused some security issues including CVE-2008-1678 and
8825 CVE-2009-4355.
8826
8827 *Steve Henson*
8828
8829 * Constify crypto/cast (i.e., <openssl/cast.h>): a CAST_KEY doesn't
8830 change when encrypting or decrypting.
8831
8832 *Bodo Moeller*
8833
8834 * Add option SSL_OP_LEGACY_SERVER_CONNECT which will allow clients to
8835 connect and renegotiate with servers which do not support RI.
8836 Until RI is more widely deployed this option is enabled by default.
8837
8838 *Steve Henson*
8839
8840 * Add "missing" ssl ctrls to clear options and mode.
8841
8842 *Steve Henson*
8843
8844 * If client attempts to renegotiate and doesn't support RI respond with
8845 a no_renegotiation alert as required by RFC5746. Some renegotiating
8846 TLS clients will continue a connection gracefully when they receive
8847 the alert. Unfortunately OpenSSL mishandled this alert and would hang
8848 waiting for a server hello which it will never receive. Now we treat a
8849 received no_renegotiation alert as a fatal error. This is because
8850 applications requesting a renegotiation might well expect it to succeed
8851 and would have no code in place to handle the server denying it so the
8852 only safe thing to do is to terminate the connection.
8853
8854 *Steve Henson*
8855
8856 * Add ctrl macro SSL_get_secure_renegotiation_support() which returns 1 if
8857 peer supports secure renegotiation and 0 otherwise. Print out peer
8858 renegotiation support in s_client/s_server.
8859
8860 *Steve Henson*
8861
8862 * Replace the highly broken and deprecated SPKAC certification method with
8863 the updated NID creation version. This should correctly handle UTF8.
8864
8865 *Steve Henson*
8866
8867 * Implement RFC5746. Re-enable renegotiation but require the extension
8868 as needed. Unfortunately, SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION
8869 turns out to be a bad idea. It has been replaced by
8870 SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION which can be set with
8871 SSL_CTX_set_options(). This is really not recommended unless you
8872 know what you are doing.
8873
8874 *Eric Rescorla <ekr@networkresonance.com>, Ben Laurie, Steve Henson*
8875
8876 * Fixes to stateless session resumption handling. Use initial_ctx when
8877 issuing and attempting to decrypt tickets in case it has changed during
8878 servername handling. Use a non-zero length session ID when attempting
8879 stateless session resumption: this makes it possible to determine if
8880 a resumption has occurred immediately after receiving server hello
8881 (several places in OpenSSL subtly assume this) instead of later in
8882 the handshake.
8883
8884 *Steve Henson*
8885
8886 * The functions ENGINE_ctrl(), OPENSSL_isservice(),
8887 CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error
8888 fixes for a few places where the return code is not checked
8889 correctly.
8890
8891 *Julia Lawall <julia@diku.dk>*
8892
8893 * Add --strict-warnings option to Configure script to include devteam
8894 warnings in other configurations.
8895
8896 *Steve Henson*
8897
8898 * Add support for --libdir option and LIBDIR variable in makefiles. This
8899 makes it possible to install openssl libraries in locations which
8900 have names other than "lib", for example "/usr/lib64" which some
8901 systems need.
8902
8903 *Steve Henson, based on patch from Jeremy Utley*
8904
8905 * Don't allow the use of leading 0x80 in OIDs. This is a violation of
8906 X690 8.9.12 and can produce some misleading textual output of OIDs.
8907
8908 *Steve Henson, reported by Dan Kaminsky*
8909
8910 * Delete MD2 from algorithm tables. This follows the recommendation in
8911 several standards that it is not used in new applications due to
8912 several cryptographic weaknesses. For binary compatibility reasons
8913 the MD2 API is still compiled in by default.
8914
8915 *Steve Henson*
8916
8917 * Add compression id to {d2i,i2d}_SSL_SESSION so it is correctly saved
8918 and restored.
8919
8920 *Steve Henson*
8921
8922 * Rename uni2asc and asc2uni functions to OPENSSL_uni2asc and
8923 OPENSSL_asc2uni conditionally on Netware platforms to avoid a name
8924 clash.
8925
8926 *Guenter <lists@gknw.net>*
8927
8928 * Fix the server certificate chain building code to use X509_verify_cert(),
8929 it used to have an ad-hoc builder which was unable to cope with anything
8930 other than a simple chain.
8931
8932 *David Woodhouse <dwmw2@infradead.org>, Steve Henson*
8933
8934 * Don't check self signed certificate signatures in X509_verify_cert()
8935 by default (a flag can override this): it just wastes time without
8936 adding any security. As a useful side effect self signed root CAs
8937 with non-FIPS digests are now usable in FIPS mode.
8938
8939 *Steve Henson*
8940
8941 * In dtls1_process_out_of_seq_message() the check if the current message
8942 is already buffered was missing. For every new message was memory
8943 allocated, allowing an attacker to perform an denial of service attack
8944 with sending out of seq handshake messages until there is no memory
8945 left. Additionally every future message was buffered, even if the
8946 sequence number made no sense and would be part of another handshake.
8947 So only messages with sequence numbers less than 10 in advance will be
d8dc8538 8948 buffered. ([CVE-2009-1378])
5f8e6c50
DMSP
8949
8950 *Robin Seggelmann, discovered by Daniel Mentz*
8951
8952 * Records are buffered if they arrive with a future epoch to be
8953 processed after finishing the corresponding handshake. There is
8954 currently no limitation to this buffer allowing an attacker to perform
8955 a DOS attack with sending records with future epochs until there is no
8956 memory left. This patch adds the pqueue_size() function to determine
8957 the size of a buffer and limits the record buffer to 100 entries.
d8dc8538 8958 ([CVE-2009-1377])
5f8e6c50
DMSP
8959
8960 *Robin Seggelmann, discovered by Daniel Mentz*
8961
8962 * Keep a copy of frag->msg_header.frag_len so it can be used after the
d8dc8538 8963 parent structure is freed. ([CVE-2009-1379])
5f8e6c50
DMSP
8964
8965 *Daniel Mentz*
8966
8967 * Handle non-blocking I/O properly in SSL_shutdown() call.
8968
8969 *Darryl Miles <darryl-mailinglists@netbauds.net>*
8970
257e9d03 8971 * Add `2.5.4.*` OIDs
5f8e6c50
DMSP
8972
8973 *Ilya O. <vrghost@gmail.com>*
8974
257e9d03 8975### Changes between 0.9.8k and 0.9.8l [5 Nov 2009]
5f8e6c50
DMSP
8976
8977 * Disable renegotiation completely - this fixes a severe security
d8dc8538 8978 problem ([CVE-2009-3555]) at the cost of breaking all
5f8e6c50
DMSP
8979 renegotiation. Renegotiation can be re-enabled by setting
8980 SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION in s3->flags at
8981 run-time. This is really not recommended unless you know what
8982 you're doing.
8983
8984 *Ben Laurie*
8985
257e9d03 8986### Changes between 0.9.8j and 0.9.8k [25 Mar 2009]
5f8e6c50
DMSP
8987
8988 * Don't set val to NULL when freeing up structures, it is freed up by
257e9d03 8989 underlying code. If `sizeof(void *) > sizeof(long)` this can result in
d8dc8538 8990 zeroing past the valid field. ([CVE-2009-0789])
5f8e6c50
DMSP
8991
8992 *Paolo Ganci <Paolo.Ganci@AdNovum.CH>*
8993
8994 * Fix bug where return value of CMS_SignerInfo_verify_content() was not
8995 checked correctly. This would allow some invalid signed attributes to
d8dc8538 8996 appear to verify correctly. ([CVE-2009-0591])
5f8e6c50
DMSP
8997
8998 *Ivan Nestlerode <inestlerode@us.ibm.com>*
8999
9000 * Reject UniversalString and BMPString types with invalid lengths. This
9001 prevents a crash in ASN1_STRING_print_ex() which assumes the strings have
d8dc8538 9002 a legal length. ([CVE-2009-0590])
5f8e6c50
DMSP
9003
9004 *Steve Henson*
9005
9006 * Set S/MIME signing as the default purpose rather than setting it
9007 unconditionally. This allows applications to override it at the store
9008 level.
9009
9010 *Steve Henson*
9011
9012 * Permit restricted recursion of ASN1 strings. This is needed in practice
9013 to handle some structures.
9014
9015 *Steve Henson*
9016
9017 * Improve efficiency of mem_gets: don't search whole buffer each time
9018 for a '\n'
9019
9020 *Jeremy Shapiro <jnshapir@us.ibm.com>*
9021
9022 * New -hex option for openssl rand.
9023
9024 *Matthieu Herrb*
9025
9026 * Print out UTF8String and NumericString when parsing ASN1.
9027
9028 *Steve Henson*
9029
9030 * Support NumericString type for name components.
9031
9032 *Steve Henson*
9033
9034 * Allow CC in the environment to override the automatically chosen
9035 compiler. Note that nothing is done to ensure flags work with the
9036 chosen compiler.
9037
9038 *Ben Laurie*
9039
257e9d03 9040### Changes between 0.9.8i and 0.9.8j [07 Jan 2009]
5f8e6c50
DMSP
9041
9042 * Properly check EVP_VerifyFinal() and similar return values
d8dc8538 9043 ([CVE-2008-5077]).
5f8e6c50
DMSP
9044
9045 *Ben Laurie, Bodo Moeller, Google Security Team*
9046
9047 * Enable TLS extensions by default.
9048
9049 *Ben Laurie*
9050
9051 * Allow the CHIL engine to be loaded, whether the application is
9052 multithreaded or not. (This does not release the developer from the
9053 obligation to set up the dynamic locking callbacks.)
9054
9055 *Sander Temme <sander@temme.net>*
9056
9057 * Use correct exit code if there is an error in dgst command.
9058
9059 *Steve Henson; problem pointed out by Roland Dirlewanger*
9060
9061 * Tweak Configure so that you need to say "experimental-jpake" to enable
9062 JPAKE, and need to use -DOPENSSL_EXPERIMENTAL_JPAKE in applications.
9063
9064 *Bodo Moeller*
9065
9066 * Add experimental JPAKE support, including demo authentication in
9067 s_client and s_server.
9068
9069 *Ben Laurie*
9070
9071 * Set the comparison function in v3_addr_canonize().
9072
9073 *Rob Austein <sra@hactrn.net>*
9074
9075 * Add support for XMPP STARTTLS in s_client.
9076
9077 *Philip Paeps <philip@freebsd.org>*
9078
9079 * Change the server-side SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG behavior
9080 to ensure that even with this option, only ciphersuites in the
9081 server's preference list will be accepted. (Note that the option
9082 applies only when resuming a session, so the earlier behavior was
9083 just about the algorithm choice for symmetric cryptography.)
9084
9085 *Bodo Moeller*
9086
257e9d03 9087### Changes between 0.9.8h and 0.9.8i [15 Sep 2008]
5f8e6c50
DMSP
9088
9089 * Fix NULL pointer dereference if a DTLS server received
d8dc8538 9090 ChangeCipherSpec as first record ([CVE-2009-1386]).
5f8e6c50
DMSP
9091
9092 *PR #1679*
9093
9094 * Fix a state transition in s3_srvr.c and d1_srvr.c
257e9d03 9095 (was using SSL3_ST_CW_CLNT_HELLO_B, should be `..._ST_SW_SRVR_...`).
5f8e6c50
DMSP
9096
9097 *Nagendra Modadugu*
9098
9099 * The fix in 0.9.8c that supposedly got rid of unsafe
9100 double-checked locking was incomplete for RSA blinding,
9101 addressing just one layer of what turns out to have been
9102 doubly unsafe triple-checked locking.
9103
9104 So now fix this for real by retiring the MONT_HELPER macro
9105 in crypto/rsa/rsa_eay.c.
9106
5f8e6c50
DMSP
9107 *Bodo Moeller; problem pointed out by Marius Schilder*
9108
9109 * Various precautionary measures:
9110
9111 - Avoid size_t integer overflow in HASH_UPDATE (md32_common.h).
9112
9113 - Avoid a buffer overflow in d2i_SSL_SESSION() (ssl_asn1.c).
9114 (NB: This would require knowledge of the secret session ticket key
9115 to exploit, in which case you'd be SOL either way.)
9116
9117 - Change bn_nist.c so that it will properly handle input BIGNUMs
9118 outside the expected range.
9119
9120 - Enforce the 'num' check in BN_div() (bn_div.c) for non-BN_DEBUG
9121 builds.
9122
5f8e6c50
DMSP
9123 *Neel Mehta, Bodo Moeller*
9124
9125 * Allow engines to be "soft loaded" - i.e. optionally don't die if
9126 the load fails. Useful for distros.
9127
9128 *Ben Laurie and the FreeBSD team*
9129
9130 * Add support for Local Machine Keyset attribute in PKCS#12 files.
9131
9132 *Steve Henson*
9133
9134 * Fix BN_GF2m_mod_arr() top-bit cleanup code.
9135
9136 *Huang Ying*
9137
9138 * Expand ENGINE to support engine supplied SSL client certificate functions.
9139
9140 This work was sponsored by Logica.
9141
9142 *Steve Henson*
9143
9144 * Add CryptoAPI ENGINE to support use of RSA and DSA keys held in Windows
9145 keystores. Support for SSL/TLS client authentication too.
9146 Not compiled unless enable-capieng specified to Configure.
9147
9148 This work was sponsored by Logica.
9149
9150 *Steve Henson*
9151
9152 * Fix bug in X509_ATTRIBUTE creation: don't set attribute using
9153 ASN1_TYPE_set1 if MBSTRING flag set. This bug would crash certain
9154 attribute creation routines such as certificate requests and PKCS#12
9155 files.
9156
9157 *Steve Henson*
9158
257e9d03 9159### Changes between 0.9.8g and 0.9.8h [28 May 2008]
5f8e6c50
DMSP
9160
9161 * Fix flaw if 'Server Key exchange message' is omitted from a TLS
9162 handshake which could lead to a client crash as found using the
d8dc8538 9163 Codenomicon TLS test suite ([CVE-2008-1672])
5f8e6c50
DMSP
9164
9165 *Steve Henson, Mark Cox*
9166
9167 * Fix double free in TLS server name extensions which could lead to
d8dc8538 9168 a remote crash found by Codenomicon TLS test suite ([CVE-2008-0891])
5f8e6c50
DMSP
9169
9170 *Joe Orton*
9171
9172 * Clear error queue in SSL_CTX_use_certificate_chain_file()
9173
9174 Clear the error queue to ensure that error entries left from
9175 older function calls do not interfere with the correct operation.
9176
9177 *Lutz Jaenicke, Erik de Castro Lopo*
9178
9179 * Remove root CA certificates of commercial CAs:
9180
9181 The OpenSSL project does not recommend any specific CA and does not
9182 have any policy with respect to including or excluding any CA.
9183 Therefore it does not make any sense to ship an arbitrary selection
9184 of root CA certificates with the OpenSSL software.
9185
9186 *Lutz Jaenicke*
9187
9188 * RSA OAEP patches to fix two separate invalid memory reads.
9189 The first one involves inputs when 'lzero' is greater than
9190 'SHA_DIGEST_LENGTH' (it would read about SHA_DIGEST_LENGTH bytes
9191 before the beginning of from). The second one involves inputs where
9192 the 'db' section contains nothing but zeroes (there is a one-byte
9193 invalid read after the end of 'db').
9194
9195 *Ivan Nestlerode <inestlerode@us.ibm.com>*
9196
9197 * Partial backport from 0.9.9-dev:
9198
9199 Introduce bn_mul_mont (dedicated Montgomery multiplication
9200 procedure) as a candidate for BIGNUM assembler implementation.
9201 While 0.9.9-dev uses assembler for various architectures, only
9202 x86_64 is available by default here in the 0.9.8 branch, and
9203 32-bit x86 is available through a compile-time setting.
9204
9205 To try the 32-bit x86 assembler implementation, use Configure
9206 option "enable-montasm" (which exists only for this backport).
9207
9208 As "enable-montasm" for 32-bit x86 disclaims code stability
9209 anyway, in this constellation we activate additional code
9210 backported from 0.9.9-dev for further performance improvements,
9211 namely BN_from_montgomery_word. (To enable this otherwise,
44652c16 9212 e.g. x86_64, try `-DMONT_FROM_WORD___NON_DEFAULT_0_9_8_BUILD`.)
5f8e6c50 9213
5f8e6c50
DMSP
9214 *Andy Polyakov (backport partially by Bodo Moeller)*
9215
9216 * Add TLS session ticket callback. This allows an application to set
9217 TLS ticket cipher and HMAC keys rather than relying on hardcoded fixed
9218 values. This is useful for key rollover for example where several key
9219 sets may exist with different names.
9220
9221 *Steve Henson*
9222
9223 * Reverse ENGINE-internal logic for caching default ENGINE handles.
9224 This was broken until now in 0.9.8 releases, such that the only way
9225 a registered ENGINE could be used (assuming it initialises
9226 successfully on the host) was to explicitly set it as the default
9227 for the relevant algorithms. This is in contradiction with 0.9.7
9228 behaviour and the documentation. With this fix, when an ENGINE is
9229 registered into a given algorithm's table of implementations, the
9230 'uptodate' flag is reset so that auto-discovery will be used next
9231 time a new context for that algorithm attempts to select an
9232 implementation.
9233
9234 *Ian Lister (tweaked by Geoff Thorpe)*
9235
9236 * Backport of CMS code to OpenSSL 0.9.8. This differs from the 0.9.9
9237 implementation in the following ways:
9238
9239 Lack of EVP_PKEY_ASN1_METHOD means algorithm parameters have to be
9240 hard coded.
9241
9242 Lack of BER streaming support means one pass streaming processing is
9243 only supported if data is detached: setting the streaming flag is
9244 ignored for embedded content.
9245
9246 CMS support is disabled by default and must be explicitly enabled
9247 with the enable-cms configuration option.
9248
9249 *Steve Henson*
9250
9251 * Update the GMP engine glue to do direct copies between BIGNUM and
9252 mpz_t when openssl and GMP use the same limb size. Otherwise the
9253 existing "conversion via a text string export" trick is still used.
9254
9255 *Paul Sheer <paulsheer@gmail.com>*
9256
9257 * Zlib compression BIO. This is a filter BIO which compressed and
9258 uncompresses any data passed through it.
9259
9260 *Steve Henson*
9261
9262 * Add AES_wrap_key() and AES_unwrap_key() functions to implement
9263 RFC3394 compatible AES key wrapping.
9264
9265 *Steve Henson*
9266
9267 * Add utility functions to handle ASN1 structures. ASN1_STRING_set0():
9268 sets string data without copying. X509_ALGOR_set0() and
9269 X509_ALGOR_get0(): set and retrieve X509_ALGOR (AlgorithmIdentifier)
9270 data. Attribute function X509at_get0_data_by_OBJ(): retrieves data
9271 from an X509_ATTRIBUTE structure optionally checking it occurs only
9272 once. ASN1_TYPE_set1(): set and ASN1_TYPE structure copying supplied
9273 data.
9274
9275 *Steve Henson*
9276
9277 * Fix BN flag handling in RSA_eay_mod_exp() and BN_MONT_CTX_set()
9278 to get the expected BN_FLG_CONSTTIME behavior.
9279
9280 *Bodo Moeller (Google)*
9281
9282 * Netware support:
9283
9284 - fixed wrong usage of ioctlsocket() when build for LIBC BSD sockets
9285 - fixed do_tests.pl to run the test suite with CLIB builds too (CLIB_OPT)
9286 - added some more tests to do_tests.pl
9287 - fixed RunningProcess usage so that it works with newer LIBC NDKs too
9288 - removed usage of BN_LLONG for CLIB builds to avoid runtime dependency
9289 - added new Configure targets netware-clib-bsdsock, netware-clib-gcc,
9290 netware-clib-bsdsock-gcc, netware-libc-bsdsock-gcc
9291 - various changes to netware.pl to enable gcc-cross builds on Win32
9292 platform
9293 - changed crypto/bio/b_sock.c to work with macro functions (CLIB BSD)
9294 - various changes to fix missing prototype warnings
9295 - fixed x86nasm.pl to create correct asm files for NASM COFF output
9296 - added AES, WHIRLPOOL and CPUID assembler code to build files
9297 - added missing AES assembler make rules to mk1mf.pl
9298 - fixed order of includes in apps/ocsp.c so that e_os.h settings apply
9299
9300 *Guenter Knauf <eflash@gmx.net>*
9301
9302 * Implement certificate status request TLS extension defined in RFC3546.
9303 A client can set the appropriate parameters and receive the encoded
9304 OCSP response via a callback. A server can query the supplied parameters
9305 and set the encoded OCSP response in the callback. Add simplified examples
9306 to s_client and s_server.
9307
9308 *Steve Henson*
9309
257e9d03 9310### Changes between 0.9.8f and 0.9.8g [19 Oct 2007]
5f8e6c50
DMSP
9311
9312 * Fix various bugs:
9313 + Binary incompatibility of ssl_ctx_st structure
9314 + DTLS interoperation with non-compliant servers
9315 + Don't call get_session_cb() without proposed session
9316 + Fix ia64 assembler code
9317
9318 *Andy Polyakov, Steve Henson*
9319
257e9d03 9320### Changes between 0.9.8e and 0.9.8f [11 Oct 2007]
5f8e6c50
DMSP
9321
9322 * DTLS Handshake overhaul. There were longstanding issues with
9323 OpenSSL DTLS implementation, which were making it impossible for
9324 RFC 4347 compliant client to communicate with OpenSSL server.
9325 Unfortunately just fixing these incompatibilities would "cut off"
9326 pre-0.9.8f clients. To allow for hassle free upgrade post-0.9.8e
9327 server keeps tolerating non RFC compliant syntax. The opposite is
9328 not true, 0.9.8f client can not communicate with earlier server.
9329 This update even addresses CVE-2007-4995.
9330
9331 *Andy Polyakov*
9332
9333 * Changes to avoid need for function casts in OpenSSL: some compilers
9334 (gcc 4.2 and later) reject their use.
9335 *Kurt Roeckx <kurt@roeckx.be>, Peter Hartley <pdh@utter.chaos.org.uk>,
9336 Steve Henson*
9337
9338 * Add RFC4507 support to OpenSSL. This includes the corrections in
9339 RFC4507bis. The encrypted ticket format is an encrypted encoded
9340 SSL_SESSION structure, that way new session features are automatically
9341 supported.
9342
9343 If a client application caches session in an SSL_SESSION structure
9344 support is transparent because tickets are now stored in the encoded
9345 SSL_SESSION.
9346
9347 The SSL_CTX structure automatically generates keys for ticket
9348 protection in servers so again support should be possible
9349 with no application modification.
9350
9351 If a client or server wishes to disable RFC4507 support then the option
9352 SSL_OP_NO_TICKET can be set.
9353
9354 Add a TLS extension debugging callback to allow the contents of any client
9355 or server extensions to be examined.
9356
9357 This work was sponsored by Google.
9358
9359 *Steve Henson*
9360
9361 * Add initial support for TLS extensions, specifically for the server_name
9362 extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now
9363 have new members for a host name. The SSL data structure has an
257e9d03 9364 additional member `SSL_CTX *initial_ctx` so that new sessions can be
5f8e6c50
DMSP
9365 stored in that context to allow for session resumption, even after the
9366 SSL has been switched to a new SSL_CTX in reaction to a client's
9367 server_name extension.
9368
9369 New functions (subject to change):
9370
9371 SSL_get_servername()
9372 SSL_get_servername_type()
9373 SSL_set_SSL_CTX()
9374
9375 New CTRL codes and macros (subject to change):
9376
9377 SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
9378 - SSL_CTX_set_tlsext_servername_callback()
9379 SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
9380 - SSL_CTX_set_tlsext_servername_arg()
9381 SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name()
9382
9383 openssl s_client has a new '-servername ...' option.
9384
9385 openssl s_server has new options '-servername_host ...', '-cert2 ...',
9386 '-key2 ...', '-servername_fatal' (subject to change). This allows
9387 testing the HostName extension for a specific single host name ('-cert'
9388 and '-key' remain fallbacks for handshakes without HostName
9389 negotiation). If the unrecognized_name alert has to be sent, this by
9390 default is a warning; it becomes fatal with the '-servername_fatal'
9391 option.
9392
5f8e6c50
DMSP
9393 *Peter Sylvester, Remy Allais, Christophe Renou, Steve Henson*
9394
9395 * Add AES and SSE2 assembly language support to VC++ build.
9396
9397 *Steve Henson*
9398
9399 * Mitigate attack on final subtraction in Montgomery reduction.
9400
9401 *Andy Polyakov*
9402
9403 * Fix crypto/ec/ec_mult.c to work properly with scalars of value 0
9404 (which previously caused an internal error).
9405
9406 *Bodo Moeller*
9407
9408 * Squeeze another 10% out of IGE mode when in != out.
9409
9410 *Ben Laurie*
9411
9412 * AES IGE mode speedup.
9413
9414 *Dean Gaudet (Google)*
9415
9416 * Add the Korean symmetric 128-bit cipher SEED (see
257e9d03 9417 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>) and
5f8e6c50
DMSP
9418 add SEED ciphersuites from RFC 4162:
9419
9420 TLS_RSA_WITH_SEED_CBC_SHA = "SEED-SHA"
9421 TLS_DHE_DSS_WITH_SEED_CBC_SHA = "DHE-DSS-SEED-SHA"
9422 TLS_DHE_RSA_WITH_SEED_CBC_SHA = "DHE-RSA-SEED-SHA"
9423 TLS_DH_anon_WITH_SEED_CBC_SHA = "ADH-SEED-SHA"
9424
9425 To minimize changes between patchlevels in the OpenSSL 0.9.8
9426 series, SEED remains excluded from compilation unless OpenSSL
9427 is configured with 'enable-seed'.
9428
9429 *KISA, Bodo Moeller*
9430
9431 * Mitigate branch prediction attacks, which can be practical if a
9432 single processor is shared, allowing a spy process to extract
9433 information. For detailed background information, see
257e9d03 9434 <http://eprint.iacr.org/2007/039> (O. Aciicmez, S. Gueron,
5f8e6c50
DMSP
9435 J.-P. Seifert, "New Branch Prediction Vulnerabilities in OpenSSL
9436 and Necessary Software Countermeasures"). The core of the change
9437 are new versions BN_div_no_branch() and
9438 BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(),
9439 respectively, which are slower, but avoid the security-relevant
9440 conditional branches. These are automatically called by BN_div()
9441 and BN_mod_inverse() if the flag BN_FLG_CONSTTIME is set for one
9442 of the input BIGNUMs. Also, BN_is_bit_set() has been changed to
9443 remove a conditional branch.
9444
9445 BN_FLG_CONSTTIME is the new name for the previous
9446 BN_FLG_EXP_CONSTTIME flag, since it now affects more than just
9447 modular exponentiation. (Since OpenSSL 0.9.7h, setting this flag
9448 in the exponent causes BN_mod_exp_mont() to use the alternative
9449 implementation in BN_mod_exp_mont_consttime().) The old name
9450 remains as a deprecated alias.
9451
9452 Similarly, RSA_FLAG_NO_EXP_CONSTTIME is replaced by a more general
9453 RSA_FLAG_NO_CONSTTIME flag since the RSA implementation now uses
9454 constant-time implementations for more than just exponentiation.
9455 Here too the old name is kept as a deprecated alias.
9456
9457 BN_BLINDING_new() will now use BN_dup() for the modulus so that
9458 the BN_BLINDING structure gets an independent copy of the
257e9d03 9459 modulus. This means that the previous `BIGNUM *m` argument to
5f8e6c50 9460 BN_BLINDING_new() and to BN_BLINDING_create_param() now
257e9d03 9461 essentially becomes `const BIGNUM *m`, although we can't actually
5f8e6c50
DMSP
9462 change this in the header file before 0.9.9. It allows
9463 RSA_setup_blinding() to use BN_with_flags() on the modulus to
9464 enable BN_FLG_CONSTTIME.
9465
5f8e6c50
DMSP
9466 *Matthew D Wood (Intel Corp)*
9467
9468 * In the SSL/TLS server implementation, be strict about session ID
9469 context matching (which matters if an application uses a single
9470 external cache for different purposes). Previously,
9471 out-of-context reuse was forbidden only if SSL_VERIFY_PEER was
9472 set. This did ensure strict client verification, but meant that,
9473 with applications using a single external cache for quite
9474 different requirements, clients could circumvent ciphersuite
9475 restrictions for a given session ID context by starting a session
9476 in a different context.
9477
9478 *Bodo Moeller*
9479
9480 * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that
9481 a ciphersuite string such as "DEFAULT:RSA" cannot enable
9482 authentication-only ciphersuites.
9483
9484 *Bodo Moeller*
9485
9486 * Update the SSL_get_shared_ciphers() fix CVE-2006-3738 which was
9487 not complete and could lead to a possible single byte overflow
d8dc8538 9488 ([CVE-2007-5135]) [Ben Laurie]
5f8e6c50 9489
257e9d03 9490### Changes between 0.9.8d and 0.9.8e [23 Feb 2007]
5f8e6c50
DMSP
9491
9492 * Since AES128 and AES256 (and similarly Camellia128 and
9493 Camellia256) share a single mask bit in the logic of
9494 ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a
9495 kludge to work properly if AES128 is available and AES256 isn't
9496 (or if Camellia128 is available and Camellia256 isn't).
9497
9498 *Victor Duchovni*
9499
9500 * Fix the BIT STRING encoding generated by crypto/ec/ec_asn1.c
9501 (within i2d_ECPrivateKey, i2d_ECPKParameters, i2d_ECParameters):
9502 When a point or a seed is encoded in a BIT STRING, we need to
9503 prevent the removal of trailing zero bits to get the proper DER
9504 encoding. (By default, crypto/asn1/a_bitstr.c assumes the case
9505 of a NamedBitList, for which trailing 0 bits need to be removed.)
9506
9507 *Bodo Moeller*
9508
9509 * Have SSL/TLS server implementation tolerate "mismatched" record
9510 protocol version while receiving ClientHello even if the
9511 ClientHello is fragmented. (The server can't insist on the
9512 particular protocol version it has chosen before the ServerHello
9513 message has informed the client about his choice.)
9514
9515 *Bodo Moeller*
9516
9517 * Add RFC 3779 support.
9518
9519 *Rob Austein for ARIN, Ben Laurie*
9520
9521 * Load error codes if they are not already present instead of using a
9522 static variable. This allows them to be cleanly unloaded and reloaded.
9523 Improve header file function name parsing.
9524
9525 *Steve Henson*
9526
9527 * extend SMTP and IMAP protocol emulation in s_client to use EHLO
9528 or CAPABILITY handshake as required by RFCs.
9529
9530 *Goetz Babin-Ebell*
9531
257e9d03 9532### Changes between 0.9.8c and 0.9.8d [28 Sep 2006]
5f8e6c50
DMSP
9533
9534 * Introduce limits to prevent malicious keys being able to
d8dc8538 9535 cause a denial of service. ([CVE-2006-2940])
5f8e6c50
DMSP
9536
9537 *Steve Henson, Bodo Moeller*
9538
9539 * Fix ASN.1 parsing of certain invalid structures that can result
d8dc8538 9540 in a denial of service. ([CVE-2006-2937]) [Steve Henson]
5f8e6c50
DMSP
9541
9542 * Fix buffer overflow in SSL_get_shared_ciphers() function.
d8dc8538 9543 ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team]
5f8e6c50
DMSP
9544
9545 * Fix SSL client code which could crash if connecting to a
d8dc8538 9546 malicious SSLv2 server. ([CVE-2006-4343])
5f8e6c50
DMSP
9547
9548 *Tavis Ormandy and Will Drewry, Google Security Team*
9549
9550 * Since 0.9.8b, ciphersuite strings naming explicit ciphersuites
9551 match only those. Before that, "AES256-SHA" would be interpreted
9552 as a pattern and match "AES128-SHA" too (since AES128-SHA got
9553 the same strength classification in 0.9.7h) as we currently only
9554 have a single AES bit in the ciphersuite description bitmap.
9555 That change, however, also applied to ciphersuite strings such as
9556 "RC4-MD5" that intentionally matched multiple ciphersuites --
9557 namely, SSL 2.0 ciphersuites in addition to the more common ones
9558 from SSL 3.0/TLS 1.0.
9559
9560 So we change the selection algorithm again: Naming an explicit
9561 ciphersuite selects this one ciphersuite, and any other similar
9562 ciphersuite (same bitmap) from *other* protocol versions.
9563 Thus, "RC4-MD5" again will properly select both the SSL 2.0
9564 ciphersuite and the SSL 3.0/TLS 1.0 ciphersuite.
9565
9566 Since SSL 2.0 does not have any ciphersuites for which the
9567 128/256 bit distinction would be relevant, this works for now.
9568 The proper fix will be to use different bits for AES128 and
9569 AES256, which would have avoided the problems from the beginning;
9570 however, bits are scarce, so we can only do this in a new release
9571 (not just a patchlevel) when we can change the SSL_CIPHER
9572 definition to split the single 'unsigned long mask' bitmap into
9573 multiple values to extend the available space.
9574
5f8e6c50
DMSP
9575 *Bodo Moeller*
9576
257e9d03 9577### Changes between 0.9.8b and 0.9.8c [05 Sep 2006]
5f8e6c50
DMSP
9578
9579 * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher
d8dc8538 9580 ([CVE-2006-4339]) [Ben Laurie and Google Security Team]
5f8e6c50
DMSP
9581
9582 * Add AES IGE and biIGE modes.
9583
9584 *Ben Laurie*
9585
9586 * Change the Unix randomness entropy gathering to use poll() when
9587 possible instead of select(), since the latter has some
9588 undesirable limitations.
9589
9590 *Darryl Miles via Richard Levitte and Bodo Moeller*
9591
9592 * Disable "ECCdraft" ciphersuites more thoroughly. Now special
9593 treatment in ssl/ssl_ciph.s makes sure that these ciphersuites
9594 cannot be implicitly activated as part of, e.g., the "AES" alias.
9595 However, please upgrade to OpenSSL 0.9.9[-dev] for
9596 non-experimental use of the ECC ciphersuites to get TLS extension
9597 support, which is required for curve and point format negotiation
9598 to avoid potential handshake problems.
9599
9600 *Bodo Moeller*
9601
9602 * Disable rogue ciphersuites:
9603
257e9d03
RS
9604 - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5")
9605 - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5")
9606 - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5")
5f8e6c50
DMSP
9607
9608 The latter two were purportedly from
9609 draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really
9610 appear there.
9611
9612 Also deactivate the remaining ciphersuites from
9613 draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as
9614 unofficial, and the ID has long expired.
9615
9616 *Bodo Moeller*
9617
9618 * Fix RSA blinding Heisenbug (problems sometimes occurred on
9619 dual-core machines) and other potential thread-safety issues.
9620
9621 *Bodo Moeller*
9622
9623 * Add the symmetric cipher Camellia (128-bit, 192-bit, 256-bit key
9624 versions), which is now available for royalty-free use
257e9d03 9625 (see <http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html>).
5f8e6c50
DMSP
9626 Also, add Camellia TLS ciphersuites from RFC 4132.
9627
9628 To minimize changes between patchlevels in the OpenSSL 0.9.8
9629 series, Camellia remains excluded from compilation unless OpenSSL
9630 is configured with 'enable-camellia'.
9631
9632 *NTT*
9633
9634 * Disable the padding bug check when compression is in use. The padding
9635 bug check assumes the first packet is of even length, this is not
9636 necessarily true if compression is enabled and can result in false
9637 positives causing handshake failure. The actual bug test is ancient
9638 code so it is hoped that implementations will either have fixed it by
9639 now or any which still have the bug do not support compression.
9640
9641 *Steve Henson*
9642
257e9d03 9643### Changes between 0.9.8a and 0.9.8b [04 May 2006]
5f8e6c50
DMSP
9644
9645 * When applying a cipher rule check to see if string match is an explicit
9646 cipher suite and only match that one cipher suite if it is.
9647
9648 *Steve Henson*
9649
9650 * Link in manifests for VC++ if needed.
9651
9652 *Austin Ziegler <halostatue@gmail.com>*
9653
9654 * Update support for ECC-based TLS ciphersuites according to
9655 draft-ietf-tls-ecc-12.txt with proposed changes (but without
9656 TLS extensions, which are supported starting with the 0.9.9
9657 branch, not in the OpenSSL 0.9.8 branch).
9658
9659 *Douglas Stebila*
9660
9661 * New functions EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free() to support
9662 opaque EVP_CIPHER_CTX handling.
9663
9664 *Steve Henson*
9665
9666 * Fixes and enhancements to zlib compression code. We now only use
44652c16 9667 "zlib1.dll" and use the default `__cdecl` calling convention on Win32
5f8e6c50 9668 to conform with the standards mentioned here:
257e9d03 9669 <http://www.zlib.net/DLL_FAQ.txt>
5f8e6c50
DMSP
9670 Static zlib linking now works on Windows and the new --with-zlib-include
9671 --with-zlib-lib options to Configure can be used to supply the location
9672 of the headers and library. Gracefully handle case where zlib library
9673 can't be loaded.
9674
9675 *Steve Henson*
9676
9677 * Several fixes and enhancements to the OID generation code. The old code
9678 sometimes allowed invalid OIDs (1.X for X >= 40 for example), couldn't
9679 handle numbers larger than ULONG_MAX, truncated printing and had a
9680 non standard OBJ_obj2txt() behaviour.
9681
9682 *Steve Henson*
9683
9684 * Add support for building of engines under engine/ as shared libraries
9685 under VC++ build system.
9686
9687 *Steve Henson*
9688
9689 * Corrected the numerous bugs in the Win32 path splitter in DSO.
9690 Hopefully, we will not see any false combination of paths any more.
9691
9692 *Richard Levitte*
9693
257e9d03 9694### Changes between 0.9.8 and 0.9.8a [11 Oct 2005]
5f8e6c50
DMSP
9695
9696 * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING
9697 (part of SSL_OP_ALL). This option used to disable the
9698 countermeasure against man-in-the-middle protocol-version
9699 rollback in the SSL 2.0 server implementation, which is a bad
d8dc8538 9700 idea. ([CVE-2005-2969])
5f8e6c50
DMSP
9701
9702 *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center
9703 for Information Security, National Institute of Advanced Industrial
257e9d03 9704 Science and Technology [AIST], Japan)*
5f8e6c50
DMSP
9705
9706 * Add two function to clear and return the verify parameter flags.
9707
9708 *Steve Henson*
9709
9710 * Keep cipherlists sorted in the source instead of sorting them at
9711 runtime, thus removing the need for a lock.
9712
9713 *Nils Larsch*
9714
9715 * Avoid some small subgroup attacks in Diffie-Hellman.
9716
9717 *Nick Mathewson and Ben Laurie*
9718
9719 * Add functions for well-known primes.
9720
9721 *Nick Mathewson*
9722
9723 * Extended Windows CE support.
9724
9725 *Satoshi Nakamura and Andy Polyakov*
9726
9727 * Initialize SSL_METHOD structures at compile time instead of during
9728 runtime, thus removing the need for a lock.
9729
9730 *Steve Henson*
9731
9732 * Make PKCS7_decrypt() work even if no certificate is supplied by
9733 attempting to decrypt each encrypted key in turn. Add support to
9734 smime utility.
9735
9736 *Steve Henson*
9737
257e9d03 9738### Changes between 0.9.7h and 0.9.8 [05 Jul 2005]
5f8e6c50
DMSP
9739
9740[NB: OpenSSL 0.9.7i and later 0.9.7 patch levels were released after
9741OpenSSL 0.9.8.]
9742
9743 * Add libcrypto.pc and libssl.pc for those who feel they need them.
9744
9745 *Richard Levitte*
9746
9747 * Change CA.sh and CA.pl so they don't bundle the CSR and the private
9748 key into the same file any more.
9749
9750 *Richard Levitte*
9751
9752 * Add initial support for Win64, both IA64 and AMD64/x64 flavors.
9753
9754 *Andy Polyakov*
9755
9756 * Add -utf8 command line and config file option to 'ca'.
9757
9758 *Stefan <stf@udoma.org*
9759
9760 * Removed the macro des_crypt(), as it seems to conflict with some
9761 libraries. Use DES_crypt().
9762
9763 *Richard Levitte*
9764
9765 * Correct naming of the 'chil' and '4758cca' ENGINEs. This
9766 involves renaming the source and generated shared-libs for
9767 both. The engines will accept the corrected or legacy ids
9768 ('ncipher' and '4758_cca' respectively) when binding. NB,
9769 this only applies when building 'shared'.
9770
9771 *Corinna Vinschen <vinschen@redhat.com> and Geoff Thorpe*
9772
9773 * Add attribute functions to EVP_PKEY structure. Modify
9774 PKCS12_create() to recognize a CSP name attribute and
9775 use it. Make -CSP option work again in pkcs12 utility.
9776
9777 *Steve Henson*
9778
9779 * Add new functionality to the bn blinding code:
9780 - automatic re-creation of the BN_BLINDING parameters after
9781 a fixed number of uses (currently 32)
9782 - add new function for parameter creation
9783 - introduce flags to control the update behaviour of the
9784 BN_BLINDING parameters
9785 - hide BN_BLINDING structure
9786 Add a second BN_BLINDING slot to the RSA structure to improve
9787 performance when a single RSA object is shared among several
9788 threads.
9789
9790 *Nils Larsch*
9791
9792 * Add support for DTLS.
9793
9794 *Nagendra Modadugu <nagendra@cs.stanford.edu> and Ben Laurie*
9795
9796 * Add support for DER encoded private keys (SSL_FILETYPE_ASN1)
9797 to SSL_CTX_use_PrivateKey_file() and SSL_use_PrivateKey_file()
9798
9799 *Walter Goulet*
9800
9801 * Remove buggy and incomplete DH cert support from
9802 ssl/ssl_rsa.c and ssl/s3_both.c
9803
9804 *Nils Larsch*
9805
9806 * Use SHA-1 instead of MD5 as the default digest algorithm for
9807 the apps/openssl applications.
9808
9809 *Nils Larsch*
9810
9811 * Compile clean with "-Wall -Wmissing-prototypes
9812 -Wstrict-prototypes -Wmissing-declarations -Werror". Currently
9813 DEBUG_SAFESTACK must also be set.
9814
9815 *Ben Laurie*
9816
9817 * Change ./Configure so that certain algorithms can be disabled by default.
9818 The new counterpiece to "no-xxx" is "enable-xxx".
9819
9820 The patented RC5 and MDC2 algorithms will now be disabled unless
9821 "enable-rc5" and "enable-mdc2", respectively, are specified.
9822
9823 (IDEA remains enabled despite being patented. This is because IDEA
9824 is frequently required for interoperability, and there is no license
9825 fee for non-commercial use. As before, "no-idea" can be used to
9826 avoid this algorithm.)
9827
5f8e6c50
DMSP
9828 *Bodo Moeller*
9829
9830 * Add processing of proxy certificates (see RFC 3820). This work was
9831 sponsored by KTH (The Royal Institute of Technology in Stockholm) and
9832 EGEE (Enabling Grids for E-science in Europe).
9833
9834 *Richard Levitte*
9835
9836 * RC4 performance overhaul on modern architectures/implementations, such
9837 as Intel P4, IA-64 and AMD64.
9838
9839 *Andy Polyakov*
9840
9841 * New utility extract-section.pl. This can be used specify an alternative
9842 section number in a pod file instead of having to treat each file as
9843 a separate case in Makefile. This can be done by adding two lines to the
9844 pod file:
9845
9846 =for comment openssl_section:XXX
9847
9848 The blank line is mandatory.
9849
5f8e6c50
DMSP
9850 *Steve Henson*
9851
9852 * New arguments -certform, -keyform and -pass for s_client and s_server
9853 to allow alternative format key and certificate files and passphrase
9854 sources.
9855
9856 *Steve Henson*
9857
9858 * New structure X509_VERIFY_PARAM which combines current verify parameters,
9859 update associated structures and add various utility functions.
9860
9861 Add new policy related verify parameters, include policy checking in
9862 standard verify code. Enhance 'smime' application with extra parameters
9863 to support policy checking and print out.
9864
9865 *Steve Henson*
9866
9867 * Add a new engine to support VIA PadLock ACE extensions in the VIA C3
9868 Nehemiah processors. These extensions support AES encryption in hardware
9869 as well as RNG (though RNG support is currently disabled).
9870
9871 *Michal Ludvig <michal@logix.cz>, with help from Andy Polyakov*
9872
257e9d03 9873 * Deprecate `BN_[get|set]_params()` functions (they were ignored internally).
5f8e6c50
DMSP
9874
9875 *Geoff Thorpe*
9876
9877 * New FIPS 180-2 algorithms, SHA-224/-256/-384/-512 are implemented.
9878
9879 *Andy Polyakov and a number of other people*
9880
9881 * Improved PowerPC platform support. Most notably BIGNUM assembler
9882 implementation contributed by IBM.
9883
9884 *Suresh Chari, Peter Waltenberg, Andy Polyakov*
9885
9886 * The new 'RSA_generate_key_ex' function now takes a BIGNUM for the public
9887 exponent rather than 'unsigned long'. There is a corresponding change to
9888 the new 'rsa_keygen' element of the RSA_METHOD structure.
9889
9890 *Jelte Jansen, Geoff Thorpe*
9891
9892 * Functionality for creating the initial serial number file is now
9893 moved from CA.pl to the 'ca' utility with a new option -create_serial.
9894
9895 (Before OpenSSL 0.9.7e, CA.pl used to initialize the serial
9896 number file to 1, which is bound to cause problems. To avoid
9897 the problems while respecting compatibility between different 0.9.7
9898 patchlevels, 0.9.7e employed 'openssl x509 -next_serial' in
9899 CA.pl for serial number initialization. With the new release 0.9.8,
9900 we can fix the problem directly in the 'ca' utility.)
9901
9902 *Steve Henson*
9903
9904 * Reduced header interdependencies by declaring more opaque objects in
9905 ossl_typ.h. As a consequence, including some headers (eg. engine.h) will
9906 give fewer recursive includes, which could break lazy source code - so
9907 this change is covered by the OPENSSL_NO_DEPRECATED symbol. As always,
9908 developers should define this symbol when building and using openssl to
9909 ensure they track the recommended behaviour, interfaces, [etc], but
9910 backwards-compatible behaviour prevails when this isn't defined.
9911
9912 *Geoff Thorpe*
9913
9914 * New function X509_POLICY_NODE_print() which prints out policy nodes.
9915
9916 *Steve Henson*
9917
9918 * Add new EVP function EVP_CIPHER_CTX_rand_key and associated functionality.
9919 This will generate a random key of the appropriate length based on the
9920 cipher context. The EVP_CIPHER can provide its own random key generation
9921 routine to support keys of a specific form. This is used in the des and
9922 3des routines to generate a key of the correct parity. Update S/MIME
9923 code to use new functions and hence generate correct parity DES keys.
9924 Add EVP_CHECK_DES_KEY #define to return an error if the key is not
9925 valid (weak or incorrect parity).
9926
9927 *Steve Henson*
9928
9929 * Add a local set of CRLs that can be used by X509_verify_cert() as well
9930 as looking them up. This is useful when the verified structure may contain
9931 CRLs, for example PKCS#7 signedData. Modify PKCS7_verify() to use any CRLs
9932 present unless the new PKCS7_NO_CRL flag is asserted.
9933
9934 *Steve Henson*
9935
9936 * Extend ASN1 oid configuration module. It now additionally accepts the
9937 syntax:
9938
9939 shortName = some long name, 1.2.3.4
9940
9941 *Steve Henson*
9942
9943 * Reimplemented the BN_CTX implementation. There is now no more static
9944 limitation on the number of variables it can handle nor the depth of the
9945 "stack" handling for BN_CTX_start()/BN_CTX_end() pairs. The stack
9946 information can now expand as required, and rather than having a single
9947 static array of bignums, BN_CTX now uses a linked-list of such arrays
9948 allowing it to expand on demand whilst maintaining the usefulness of
9949 BN_CTX's "bundling".
9950
9951 *Geoff Thorpe*
9952
9953 * Add a missing BN_CTX parameter to the 'rsa_mod_exp' callback in RSA_METHOD
9954 to allow all RSA operations to function using a single BN_CTX.
9955
9956 *Geoff Thorpe*
9957
9958 * Preliminary support for certificate policy evaluation and checking. This
9959 is initially intended to pass the tests outlined in "Conformance Testing
9960 of Relying Party Client Certificate Path Processing Logic" v1.07.
9961
9962 *Steve Henson*
9963
9964 * bn_dup_expand() has been deprecated, it was introduced in 0.9.7 and
9965 remained unused and not that useful. A variety of other little bignum
9966 tweaks and fixes have also been made continuing on from the audit (see
9967 below).
9968
9969 *Geoff Thorpe*
9970
9971 * Constify all or almost all d2i, c2i, s2i and r2i functions, along with
9972 associated ASN1, EVP and SSL functions and old ASN1 macros.
9973
9974 *Richard Levitte*
9975
9976 * BN_zero() only needs to set 'top' and 'neg' to zero for correct results,
9977 and this should never fail. So the return value from the use of
9978 BN_set_word() (which can fail due to needless expansion) is now deprecated;
9979 if OPENSSL_NO_DEPRECATED is defined, BN_zero() is a void macro.
9980
9981 *Geoff Thorpe*
9982
9983 * BN_CTX_get() should return zero-valued bignums, providing the same
9984 initialised value as BN_new().
9985
9986 *Geoff Thorpe, suggested by Ulf Möller*
9987
9988 * Support for inhibitAnyPolicy certificate extension.
9989
9990 *Steve Henson*
9991
9992 * An audit of the BIGNUM code is underway, for which debugging code is
9993 enabled when BN_DEBUG is defined. This makes stricter enforcements on what
9994 is considered valid when processing BIGNUMs, and causes execution to
9995 assert() when a problem is discovered. If BN_DEBUG_RAND is defined,
9996 further steps are taken to deliberately pollute unused data in BIGNUM
9997 structures to try and expose faulty code further on. For now, openssl will
9998 (in its default mode of operation) continue to tolerate the inconsistent
9999 forms that it has tolerated in the past, but authors and packagers should
10000 consider trying openssl and their own applications when compiled with
10001 these debugging symbols defined. It will help highlight potential bugs in
10002 their own code, and will improve the test coverage for OpenSSL itself. At
10003 some point, these tighter rules will become openssl's default to improve
10004 maintainability, though the assert()s and other overheads will remain only
10005 in debugging configurations. See bn.h for more details.
10006
10007 *Geoff Thorpe, Nils Larsch, Ulf Möller*
10008
10009 * BN_CTX_init() has been deprecated, as BN_CTX is an opaque structure
10010 that can only be obtained through BN_CTX_new() (which implicitly
10011 initialises it). The presence of this function only made it possible
10012 to overwrite an existing structure (and cause memory leaks).
10013
10014 *Geoff Thorpe*
10015
10016 * Because of the callback-based approach for implementing LHASH as a
10017 template type, lh_insert() adds opaque objects to hash-tables and
10018 lh_doall() or lh_doall_arg() are typically used with a destructor callback
10019 to clean up those corresponding objects before destroying the hash table
10020 (and losing the object pointers). So some over-zealous constifications in
10021 LHASH have been relaxed so that lh_insert() does not take (nor store) the
257e9d03 10022 objects as "const" and the `lh_doall[_arg]` callback wrappers are not
5f8e6c50
DMSP
10023 prototyped to have "const" restrictions on the object pointers they are
10024 given (and so aren't required to cast them away any more).
10025
10026 *Geoff Thorpe*
10027
10028 * The tmdiff.h API was so ugly and minimal that our own timing utility
10029 (speed) prefers to use its own implementation. The two implementations
10030 haven't been consolidated as yet (volunteers?) but the tmdiff API has had
257e9d03
RS
10031 its object type properly exposed (MS_TM) instead of casting to/from
10032 `char *`. This may still change yet if someone realises MS_TM and
10033 `ms_time_***`
5f8e6c50
DMSP
10034 aren't necessarily the greatest nomenclatures - but this is what was used
10035 internally to the implementation so I've used that for now.
10036
10037 *Geoff Thorpe*
10038
10039 * Ensure that deprecated functions do not get compiled when
10040 OPENSSL_NO_DEPRECATED is defined. Some "openssl" subcommands and a few of
10041 the self-tests were still using deprecated key-generation functions so
10042 these have been updated also.
10043
10044 *Geoff Thorpe*
10045
10046 * Reorganise PKCS#7 code to separate the digest location functionality
10047 into PKCS7_find_digest(), digest addition into PKCS7_bio_add_digest().
10048 New function PKCS7_set_digest() to set the digest type for PKCS#7
10049 digestedData type. Add additional code to correctly generate the
10050 digestedData type and add support for this type in PKCS7 initialization
10051 functions.
10052
10053 *Steve Henson*
10054
10055 * New function PKCS7_set0_type_other() this initializes a PKCS7
10056 structure of type "other".
10057
10058 *Steve Henson*
10059
10060 * Fix prime generation loop in crypto/bn/bn_prime.pl by making
10061 sure the loop does correctly stop and breaking ("division by zero")
10062 modulus operations are not performed. The (pre-generated) prime
10063 table crypto/bn/bn_prime.h was already correct, but it could not be
10064 re-generated on some platforms because of the "division by zero"
10065 situation in the script.
10066
10067 *Ralf S. Engelschall*
10068
10069 * Update support for ECC-based TLS ciphersuites according to
10070 draft-ietf-tls-ecc-03.txt: the KDF1 key derivation function with
10071 SHA-1 now is only used for "small" curves (where the
10072 representation of a field element takes up to 24 bytes); for
10073 larger curves, the field element resulting from ECDH is directly
10074 used as premaster secret.
10075
10076 *Douglas Stebila (Sun Microsystems Laboratories)*
10077
10078 * Add code for kP+lQ timings to crypto/ec/ectest.c, and add SEC2
10079 curve secp160r1 to the tests.
10080
10081 *Douglas Stebila (Sun Microsystems Laboratories)*
10082
10083 * Add the possibility to load symbols globally with DSO.
10084
10085 *Götz Babin-Ebell <babin-ebell@trustcenter.de> via Richard Levitte*
10086
10087 * Add the functions ERR_set_mark() and ERR_pop_to_mark() for better
10088 control of the error stack.
10089
10090 *Richard Levitte*
10091
10092 * Add support for STORE in ENGINE.
10093
10094 *Richard Levitte*
10095
10096 * Add the STORE type. The intention is to provide a common interface
10097 to certificate and key stores, be they simple file-based stores, or
10098 HSM-type store, or LDAP stores, or...
10099 NOTE: The code is currently UNTESTED and isn't really used anywhere.
10100
10101 *Richard Levitte*
10102
10103 * Add a generic structure called OPENSSL_ITEM. This can be used to
10104 pass a list of arguments to any function as well as provide a way
10105 for a function to pass data back to the caller.
10106
10107 *Richard Levitte*
10108
10109 * Add the functions BUF_strndup() and BUF_memdup(). BUF_strndup()
10110 works like BUF_strdup() but can be used to duplicate a portion of
10111 a string. The copy gets NUL-terminated. BUF_memdup() duplicates
10112 a memory area.
10113
10114 *Richard Levitte*
10115
10116 * Add the function sk_find_ex() which works like sk_find(), but will
10117 return an index to an element even if an exact match couldn't be
10118 found. The index is guaranteed to point at the element where the
10119 searched-for key would be inserted to preserve sorting order.
10120
10121 *Richard Levitte*
10122
10123 * Add the function OBJ_bsearch_ex() which works like OBJ_bsearch() but
10124 takes an extra flags argument for optional functionality. Currently,
10125 the following flags are defined:
10126
10127 OBJ_BSEARCH_VALUE_ON_NOMATCH
10128 This one gets OBJ_bsearch_ex() to return a pointer to the first
10129 element where the comparing function returns a negative or zero
10130 number.
10131
10132 OBJ_BSEARCH_FIRST_VALUE_ON_MATCH
10133 This one gets OBJ_bsearch_ex() to return a pointer to the first
10134 element where the comparing function returns zero. This is useful
10135 if there are more than one element where the comparing function
10136 returns zero.
10137
10138 *Richard Levitte*
10139
10140 * Make it possible to create self-signed certificates with 'openssl ca'
10141 in such a way that the self-signed certificate becomes part of the
10142 CA database and uses the same mechanisms for serial number generation
10143 as all other certificate signing. The new flag '-selfsign' enables
10144 this functionality. Adapt CA.sh and CA.pl.in.
10145
10146 *Richard Levitte*
10147
10148 * Add functionality to check the public key of a certificate request
10149 against a given private. This is useful to check that a certificate
10150 request can be signed by that key (self-signing).
10151
10152 *Richard Levitte*
10153
10154 * Make it possible to have multiple active certificates with the same
10155 subject in the CA index file. This is done only if the keyword
10156 'unique_subject' is set to 'no' in the main CA section (default
10157 if 'CA_default') of the configuration file. The value is saved
10158 with the database itself in a separate index attribute file,
10159 named like the index file with '.attr' appended to the name.
10160
10161 *Richard Levitte*
10162
10163 * Generate multi-valued AVAs using '+' notation in config files for
10164 req and dirName.
10165
10166 *Steve Henson*
10167
10168 * Support for nameConstraints certificate extension.
10169
10170 *Steve Henson*
10171
10172 * Support for policyConstraints certificate extension.
10173
10174 *Steve Henson*
10175
10176 * Support for policyMappings certificate extension.
10177
10178 *Steve Henson*
10179
10180 * Make sure the default DSA_METHOD implementation only uses its
10181 dsa_mod_exp() and/or bn_mod_exp() handlers if they are non-NULL,
10182 and change its own handlers to be NULL so as to remove unnecessary
10183 indirection. This lets alternative implementations fallback to the
10184 default implementation more easily.
10185
10186 *Geoff Thorpe*
10187
10188 * Support for directoryName in GeneralName related extensions
10189 in config files.
10190
10191 *Steve Henson*
10192
10193 * Make it possible to link applications using Makefile.shared.
10194 Make that possible even when linking against static libraries!
10195
10196 *Richard Levitte*
10197
10198 * Support for single pass processing for S/MIME signing. This now
10199 means that S/MIME signing can be done from a pipe, in addition
10200 cleartext signing (multipart/signed type) is effectively streaming
10201 and the signed data does not need to be all held in memory.
10202
10203 This is done with a new flag PKCS7_STREAM. When this flag is set
10204 PKCS7_sign() only initializes the PKCS7 structure and the actual signing
10205 is done after the data is output (and digests calculated) in
10206 SMIME_write_PKCS7().
10207
10208 *Steve Henson*
10209
10210 * Add full support for -rpath/-R, both in shared libraries and
10211 applications, at least on the platforms where it's known how
10212 to do it.
10213
10214 *Richard Levitte*
10215
10216 * In crypto/ec/ec_mult.c, implement fast point multiplication with
10217 precomputation, based on wNAF splitting: EC_GROUP_precompute_mult()
10218 will now compute a table of multiples of the generator that
10219 makes subsequent invocations of EC_POINTs_mul() or EC_POINT_mul()
10220 faster (notably in the case of a single point multiplication,
10221 scalar * generator).
10222
10223 *Nils Larsch, Bodo Moeller*
10224
10225 * IPv6 support for certificate extensions. The various extensions
10226 which use the IP:a.b.c.d can now take IPv6 addresses using the
10227 formats of RFC1884 2.2 . IPv6 addresses are now also displayed
10228 correctly.
10229
10230 *Steve Henson*
10231
10232 * Added an ENGINE that implements RSA by performing private key
10233 exponentiations with the GMP library. The conversions to and from
10234 GMP's mpz_t format aren't optimised nor are any montgomery forms
10235 cached, and on x86 it appears OpenSSL's own performance has caught up.
10236 However there are likely to be other architectures where GMP could
10237 provide a boost. This ENGINE is not built in by default, but it can be
10238 specified at Configure time and should be accompanied by the necessary
10239 linker additions, eg;
10240 ./config -DOPENSSL_USE_GMP -lgmp
10241
10242 *Geoff Thorpe*
10243
10244 * "openssl engine" will not display ENGINE/DSO load failure errors when
10245 testing availability of engines with "-t" - the old behaviour is
10246 produced by increasing the feature's verbosity with "-tt".
10247
10248 *Geoff Thorpe*
10249
10250 * ECDSA routines: under certain error conditions uninitialized BN objects
10251 could be freed. Solution: make sure initialization is performed early
10252 enough. (Reported and fix supplied by Nils Larsch <nla@trustcenter.de>
10253 via PR#459)
10254
10255 *Lutz Jaenicke*
10256
10257 * Key-generation can now be implemented in RSA_METHOD, DSA_METHOD
10258 and DH_METHOD (eg. by ENGINE implementations) to override the normal
10259 software implementations. For DSA and DH, parameter generation can
10260 also be overridden by providing the appropriate method callbacks.
10261
10262 *Geoff Thorpe*
10263
10264 * Change the "progress" mechanism used in key-generation and
10265 primality testing to functions that take a new BN_GENCB pointer in
257e9d03 10266 place of callback/argument pairs. The new API functions have `_ex`
5f8e6c50
DMSP
10267 postfixes and the older functions are reimplemented as wrappers for
10268 the new ones. The OPENSSL_NO_DEPRECATED symbol can be used to hide
10269 declarations of the old functions to help (graceful) attempts to
10270 migrate to the new functions. Also, the new key-generation API
10271 functions operate on a caller-supplied key-structure and return
10272 success/failure rather than returning a key or NULL - this is to
10273 help make "keygen" another member function of RSA_METHOD etc.
10274
10275 Example for using the new callback interface:
10276
10277 int (*my_callback)(int a, int b, BN_GENCB *cb) = ...;
10278 void *my_arg = ...;
10279 BN_GENCB my_cb;
10280
10281 BN_GENCB_set(&my_cb, my_callback, my_arg);
10282
10283 return BN_is_prime_ex(some_bignum, BN_prime_checks, NULL, &cb);
10284 /* For the meaning of a, b in calls to my_callback(), see the
10285 * documentation of the function that calls the callback.
10286 * cb will point to my_cb; my_arg can be retrieved as cb->arg.
10287 * my_callback should return 1 if it wants BN_is_prime_ex()
10288 * to continue, or 0 to stop.
10289 */
10290
10291 *Geoff Thorpe*
10292
10293 * Change the ZLIB compression method to be stateful, and make it
10294 available to TLS with the number defined in
10295 draft-ietf-tls-compression-04.txt.
10296
10297 *Richard Levitte*
10298
10299 * Add the ASN.1 structures and functions for CertificatePair, which
10300 is defined as follows (according to X.509_4thEditionDraftV6.pdf):
10301
10302 CertificatePair ::= SEQUENCE {
10303 forward [0] Certificate OPTIONAL,
10304 reverse [1] Certificate OPTIONAL,
10305 -- at least one of the pair shall be present -- }
10306
10307 Also implement the PEM functions to read and write certificate
10308 pairs, and defined the PEM tag as "CERTIFICATE PAIR".
10309
10310 This needed to be defined, mostly for the sake of the LDAP
10311 attribute crossCertificatePair, but may prove useful elsewhere as
10312 well.
10313
10314 *Richard Levitte*
10315
10316 * Make it possible to inhibit symlinking of shared libraries in
10317 Makefile.shared, for Cygwin's sake.
10318
10319 *Richard Levitte*
10320
10321 * Extend the BIGNUM API by creating a function
10322 void BN_set_negative(BIGNUM *a, int neg);
10323 and a macro that behave like
10324 int BN_is_negative(const BIGNUM *a);
10325
10326 to avoid the need to access 'a->neg' directly in applications.
10327
10328 *Nils Larsch*
10329
10330 * Implement fast modular reduction for pseudo-Mersenne primes
10331 used in NIST curves (crypto/bn/bn_nist.c, crypto/ec/ecp_nist.c).
10332 EC_GROUP_new_curve_GFp() will now automatically use this
10333 if applicable.
10334
10335 *Nils Larsch <nla@trustcenter.de>*
10336
10337 * Add new lock type (CRYPTO_LOCK_BN).
10338
10339 *Bodo Moeller*
10340
10341 * Change the ENGINE framework to automatically load engines
10342 dynamically from specific directories unless they could be
10343 found to already be built in or loaded. Move all the
10344 current engines except for the cryptodev one to a new
10345 directory engines/.
10346 The engines in engines/ are built as shared libraries if
10347 the "shared" options was given to ./Configure or ./config.
10348 Otherwise, they are inserted in libcrypto.a.
10349 /usr/local/ssl/engines is the default directory for dynamic
10350 engines, but that can be overridden at configure time through
10351 the usual use of --prefix and/or --openssldir, and at run
10352 time with the environment variable OPENSSL_ENGINES.
10353
10354 *Geoff Thorpe and Richard Levitte*
10355
10356 * Add Makefile.shared, a helper makefile to build shared
10357 libraries. Adapt Makefile.org.
10358
10359 *Richard Levitte*
10360
10361 * Add version info to Win32 DLLs.
10362
10363 *Peter 'Luna' Runestig" <peter@runestig.com>*
10364
10365 * Add new 'medium level' PKCS#12 API. Certificates and keys
10366 can be added using this API to created arbitrary PKCS#12
10367 files while avoiding the low level API.
10368
10369 New options to PKCS12_create(), key or cert can be NULL and
10370 will then be omitted from the output file. The encryption
10371 algorithm NIDs can be set to -1 for no encryption, the mac
10372 iteration count can be set to 0 to omit the mac.
10373
10374 Enhance pkcs12 utility by making the -nokeys and -nocerts
10375 options work when creating a PKCS#12 file. New option -nomac
10376 to omit the mac, NONE can be set for an encryption algorithm.
10377 New code is modified to use the enhanced PKCS12_create()
10378 instead of the low level API.
10379
10380 *Steve Henson*
10381
10382 * Extend ASN1 encoder to support indefinite length constructed
10383 encoding. This can output sequences tags and octet strings in
10384 this form. Modify pk7_asn1.c to support indefinite length
10385 encoding. This is experimental and needs additional code to
10386 be useful, such as an ASN1 bio and some enhanced streaming
10387 PKCS#7 code.
10388
10389 Extend template encode functionality so that tagging is passed
10390 down to the template encoder.
10391
10392 *Steve Henson*
10393
10394 * Let 'openssl req' fail if an argument to '-newkey' is not
10395 recognized instead of using RSA as a default.
10396
10397 *Bodo Moeller*
10398
10399 * Add support for ECC-based ciphersuites from draft-ietf-tls-ecc-01.txt.
10400 As these are not official, they are not included in "ALL";
10401 the "ECCdraft" ciphersuite group alias can be used to select them.
10402
10403 *Vipul Gupta and Sumit Gupta (Sun Microsystems Laboratories)*
10404
10405 * Add ECDH engine support.
10406
10407 *Nils Gura and Douglas Stebila (Sun Microsystems Laboratories)*
10408
10409 * Add ECDH in new directory crypto/ecdh/.
10410
10411 *Douglas Stebila (Sun Microsystems Laboratories)*
10412
10413 * Let BN_rand_range() abort with an error after 100 iterations
10414 without success (which indicates a broken PRNG).
10415
10416 *Bodo Moeller*
10417
10418 * Change BN_mod_sqrt() so that it verifies that the input value
10419 is really the square of the return value. (Previously,
10420 BN_mod_sqrt would show GIGO behaviour.)
10421
10422 *Bodo Moeller*
10423
10424 * Add named elliptic curves over binary fields from X9.62, SECG,
10425 and WAP/WTLS; add OIDs that were still missing.
10426
257e9d03 10427 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10428
10429 * Extend the EC library for elliptic curves over binary fields
10430 (new files ec2_smpl.c, ec2_smpt.c, ec2_mult.c in crypto/ec/).
10431 New EC_METHOD:
10432
10433 EC_GF2m_simple_method
10434
10435 New API functions:
10436
10437 EC_GROUP_new_curve_GF2m
10438 EC_GROUP_set_curve_GF2m
10439 EC_GROUP_get_curve_GF2m
10440 EC_POINT_set_affine_coordinates_GF2m
10441 EC_POINT_get_affine_coordinates_GF2m
10442 EC_POINT_set_compressed_coordinates_GF2m
10443
10444 Point compression for binary fields is disabled by default for
10445 patent reasons (compile with OPENSSL_EC_BIN_PT_COMP defined to
10446 enable it).
10447
10448 As binary polynomials are represented as BIGNUMs, various members
10449 of the EC_GROUP and EC_POINT data structures can be shared
10450 between the implementations for prime fields and binary fields;
257e9d03
RS
10451 the above `..._GF2m functions` (except for EX_GROUP_new_curve_GF2m)
10452 are essentially identical to their `..._GFp` counterparts.
10453 (For simplicity, the `..._GFp` prefix has been dropped from
5f8e6c50
DMSP
10454 various internal method names.)
10455
10456 An internal 'field_div' method (similar to 'field_mul' and
10457 'field_sqr') has been added; this is used only for binary fields.
10458
257e9d03 10459 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10460
10461 * Optionally dispatch EC_POINT_mul(), EC_POINT_precompute_mult()
10462 through methods ('mul', 'precompute_mult').
10463
10464 The generic implementations (now internally called 'ec_wNAF_mul'
10465 and 'ec_wNAF_precomputed_mult') remain the default if these
10466 methods are undefined.
10467
257e9d03 10468 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10469
10470 * New function EC_GROUP_get_degree, which is defined through
10471 EC_METHOD. For curves over prime fields, this returns the bit
10472 length of the modulus.
10473
257e9d03 10474 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10475
10476 * New functions EC_GROUP_dup, EC_POINT_dup.
10477 (These simply call ..._new and ..._copy).
10478
257e9d03 10479 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10480
10481 * Add binary polynomial arithmetic software in crypto/bn/bn_gf2m.c.
10482 Polynomials are represented as BIGNUMs (where the sign bit is not
10483 used) in the following functions [macros]:
10484
10485 BN_GF2m_add
10486 BN_GF2m_sub [= BN_GF2m_add]
10487 BN_GF2m_mod [wrapper for BN_GF2m_mod_arr]
10488 BN_GF2m_mod_mul [wrapper for BN_GF2m_mod_mul_arr]
10489 BN_GF2m_mod_sqr [wrapper for BN_GF2m_mod_sqr_arr]
10490 BN_GF2m_mod_inv
10491 BN_GF2m_mod_exp [wrapper for BN_GF2m_mod_exp_arr]
10492 BN_GF2m_mod_sqrt [wrapper for BN_GF2m_mod_sqrt_arr]
10493 BN_GF2m_mod_solve_quad [wrapper for BN_GF2m_mod_solve_quad_arr]
10494 BN_GF2m_cmp [= BN_ucmp]
10495
10496 (Note that only the 'mod' functions are actually for fields GF(2^m).
10497 BN_GF2m_add() is misnomer, but this is for the sake of consistency.)
10498
10499 For some functions, an the irreducible polynomial defining a
10500 field can be given as an 'unsigned int[]' with strictly
10501 decreasing elements giving the indices of those bits that are set;
10502 i.e., p[] represents the polynomial
10503 f(t) = t^p[0] + t^p[1] + ... + t^p[k]
10504 where
10505 p[0] > p[1] > ... > p[k] = 0.
10506 This applies to the following functions:
10507
10508 BN_GF2m_mod_arr
10509 BN_GF2m_mod_mul_arr
10510 BN_GF2m_mod_sqr_arr
10511 BN_GF2m_mod_inv_arr [wrapper for BN_GF2m_mod_inv]
10512 BN_GF2m_mod_div_arr [wrapper for BN_GF2m_mod_div]
10513 BN_GF2m_mod_exp_arr
10514 BN_GF2m_mod_sqrt_arr
10515 BN_GF2m_mod_solve_quad_arr
10516 BN_GF2m_poly2arr
10517 BN_GF2m_arr2poly
10518
10519 Conversion can be performed by the following functions:
10520
10521 BN_GF2m_poly2arr
10522 BN_GF2m_arr2poly
10523
10524 bntest.c has additional tests for binary polynomial arithmetic.
10525
10526 Two implementations for BN_GF2m_mod_div() are available.
10527 The default algorithm simply uses BN_GF2m_mod_inv() and
10528 BN_GF2m_mod_mul(). The alternative algorithm is compiled in only
10529 if OPENSSL_SUN_GF2M_DIV is defined (patent pending; read the
10530 copyright notice in crypto/bn/bn_gf2m.c before enabling it).
10531
257e9d03 10532 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10533
10534 * Add new error code 'ERR_R_DISABLED' that can be used when some
10535 functionality is disabled at compile-time.
10536
10537 *Douglas Stebila <douglas.stebila@sun.com>*
10538
10539 * Change default behaviour of 'openssl asn1parse' so that more
10540 information is visible when viewing, e.g., a certificate:
10541
10542 Modify asn1_parse2 (crypto/asn1/asn1_par.c) so that in non-'dump'
10543 mode the content of non-printable OCTET STRINGs is output in a
10544 style similar to INTEGERs, but with '[HEX DUMP]' prepended to
10545 avoid the appearance of a printable string.
10546
10547 *Nils Larsch <nla@trustcenter.de>*
10548
10549 * Add 'asn1_flag' and 'asn1_form' member to EC_GROUP with access
10550 functions
10551 EC_GROUP_set_asn1_flag()
10552 EC_GROUP_get_asn1_flag()
10553 EC_GROUP_set_point_conversion_form()
10554 EC_GROUP_get_point_conversion_form()
10555 These control ASN1 encoding details:
10556 - Curves (i.e., groups) are encoded explicitly unless asn1_flag
10557 has been set to OPENSSL_EC_NAMED_CURVE.
10558 - Points are encoded in uncompressed form by default; options for
10559 asn1_for are as for point2oct, namely
10560 POINT_CONVERSION_COMPRESSED
10561 POINT_CONVERSION_UNCOMPRESSED
10562 POINT_CONVERSION_HYBRID
10563
10564 Also add 'seed' and 'seed_len' members to EC_GROUP with access
10565 functions
10566 EC_GROUP_set_seed()
10567 EC_GROUP_get0_seed()
10568 EC_GROUP_get_seed_len()
10569 This is used only for ASN1 purposes (so far).
10570
10571 *Nils Larsch <nla@trustcenter.de>*
10572
10573 * Add 'field_type' member to EC_METHOD, which holds the NID
10574 of the appropriate field type OID. The new function
10575 EC_METHOD_get_field_type() returns this value.
10576
10577 *Nils Larsch <nla@trustcenter.de>*
10578
10579 * Add functions
10580 EC_POINT_point2bn()
10581 EC_POINT_bn2point()
10582 EC_POINT_point2hex()
10583 EC_POINT_hex2point()
10584 providing useful interfaces to EC_POINT_point2oct() and
10585 EC_POINT_oct2point().
10586
10587 *Nils Larsch <nla@trustcenter.de>*
10588
10589 * Change internals of the EC library so that the functions
10590 EC_GROUP_set_generator()
10591 EC_GROUP_get_generator()
10592 EC_GROUP_get_order()
10593 EC_GROUP_get_cofactor()
10594 are implemented directly in crypto/ec/ec_lib.c and not dispatched
10595 to methods, which would lead to unnecessary code duplication when
10596 adding different types of curves.
10597
10598 *Nils Larsch <nla@trustcenter.de> with input by Bodo Moeller*
10599
10600 * Implement compute_wNAF (crypto/ec/ec_mult.c) without BIGNUM
10601 arithmetic, and such that modified wNAFs are generated
10602 (which avoid length expansion in many cases).
10603
10604 *Bodo Moeller*
10605
10606 * Add a function EC_GROUP_check_discriminant() (defined via
10607 EC_METHOD) that verifies that the curve discriminant is non-zero.
10608
10609 Add a function EC_GROUP_check() that makes some sanity tests
10610 on a EC_GROUP, its generator and order. This includes
10611 EC_GROUP_check_discriminant().
10612
10613 *Nils Larsch <nla@trustcenter.de>*
10614
10615 * Add ECDSA in new directory crypto/ecdsa/.
10616
10617 Add applications 'openssl ecparam' and 'openssl ecdsa'
10618 (these are based on 'openssl dsaparam' and 'openssl dsa').
10619
10620 ECDSA support is also included in various other files across the
10621 library. Most notably,
10622 - 'openssl req' now has a '-newkey ecdsa:file' option;
10623 - EVP_PKCS82PKEY (crypto/evp/evp_pkey.c) now can handle ECDSA;
10624 - X509_PUBKEY_get (crypto/asn1/x_pubkey.c) and
10625 d2i_PublicKey (crypto/asn1/d2i_pu.c) have been modified to make
10626 them suitable for ECDSA where domain parameters must be
10627 extracted before the specific public key;
10628 - ECDSA engine support has been added.
10629
10630 *Nils Larsch <nla@trustcenter.de>*
10631
10632 * Include some named elliptic curves, and add OIDs from X9.62,
10633 SECG, and WAP/WTLS. Each curve can be obtained from the new
10634 function
10635 EC_GROUP_new_by_curve_name(),
10636 and the list of available named curves can be obtained with
10637 EC_get_builtin_curves().
10638 Also add a 'curve_name' member to EC_GROUP objects, which can be
10639 accessed via
10640 EC_GROUP_set_curve_name()
10641 EC_GROUP_get_curve_name()
10642
10643 *Nils Larsch <larsch@trustcenter.de, Bodo Moeller*
10644
10645 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
10646 was actually never needed) and in BN_mul(). The removal in BN_mul()
10647 required a small change in bn_mul_part_recursive() and the addition
10648 of the functions bn_cmp_part_words(), bn_sub_part_words() and
10649 bn_add_part_words(), which do the same thing as bn_cmp_words(),
10650 bn_sub_words() and bn_add_words() except they take arrays with
10651 differing sizes.
10652
10653 *Richard Levitte*
10654
257e9d03 10655### Changes between 0.9.7l and 0.9.7m [23 Feb 2007]
5f8e6c50
DMSP
10656
10657 * Cleanse PEM buffers before freeing them since they may contain
10658 sensitive data.
10659
10660 *Benjamin Bennett <ben@psc.edu>*
10661
10662 * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that
10663 a ciphersuite string such as "DEFAULT:RSA" cannot enable
10664 authentication-only ciphersuites.
10665
10666 *Bodo Moeller*
10667
10668 * Since AES128 and AES256 share a single mask bit in the logic of
10669 ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a
10670 kludge to work properly if AES128 is available and AES256 isn't.
10671
10672 *Victor Duchovni*
10673
10674 * Expand security boundary to match 1.1.1 module.
10675
10676 *Steve Henson*
10677
10678 * Remove redundant features: hash file source, editing of test vectors
10679 modify fipsld to use external fips_premain.c signature.
10680
10681 *Steve Henson*
10682
10683 * New perl script mkfipsscr.pl to create shell scripts or batch files to
10684 run algorithm test programs.
10685
10686 *Steve Henson*
10687
10688 * Make algorithm test programs more tolerant of whitespace.
10689
10690 *Steve Henson*
10691
10692 * Have SSL/TLS server implementation tolerate "mismatched" record
10693 protocol version while receiving ClientHello even if the
10694 ClientHello is fragmented. (The server can't insist on the
10695 particular protocol version it has chosen before the ServerHello
10696 message has informed the client about his choice.)
10697
10698 *Bodo Moeller*
10699
10700 * Load error codes if they are not already present instead of using a
10701 static variable. This allows them to be cleanly unloaded and reloaded.
10702
10703 *Steve Henson*
10704
257e9d03 10705### Changes between 0.9.7k and 0.9.7l [28 Sep 2006]
5f8e6c50
DMSP
10706
10707 * Introduce limits to prevent malicious keys being able to
d8dc8538 10708 cause a denial of service. ([CVE-2006-2940])
5f8e6c50
DMSP
10709
10710 *Steve Henson, Bodo Moeller*
10711
10712 * Fix ASN.1 parsing of certain invalid structures that can result
d8dc8538 10713 in a denial of service. ([CVE-2006-2937]) [Steve Henson]
5f8e6c50
DMSP
10714
10715 * Fix buffer overflow in SSL_get_shared_ciphers() function.
d8dc8538 10716 ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team]
5f8e6c50
DMSP
10717
10718 * Fix SSL client code which could crash if connecting to a
d8dc8538 10719 malicious SSLv2 server. ([CVE-2006-4343])
5f8e6c50
DMSP
10720
10721 *Tavis Ormandy and Will Drewry, Google Security Team*
10722
10723 * Change ciphersuite string processing so that an explicit
10724 ciphersuite selects this one ciphersuite (so that "AES256-SHA"
10725 will no longer include "AES128-SHA"), and any other similar
10726 ciphersuite (same bitmap) from *other* protocol versions (so that
10727 "RC4-MD5" will still include both the SSL 2.0 ciphersuite and the
10728 SSL 3.0/TLS 1.0 ciphersuite). This is a backport combining
10729 changes from 0.9.8b and 0.9.8d.
10730
10731 *Bodo Moeller*
10732
257e9d03 10733### Changes between 0.9.7j and 0.9.7k [05 Sep 2006]
5f8e6c50
DMSP
10734
10735 * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher
d8dc8538 10736 ([CVE-2006-4339]) [Ben Laurie and Google Security Team]
5f8e6c50
DMSP
10737
10738 * Change the Unix randomness entropy gathering to use poll() when
10739 possible instead of select(), since the latter has some
10740 undesirable limitations.
10741
10742 *Darryl Miles via Richard Levitte and Bodo Moeller*
10743
10744 * Disable rogue ciphersuites:
10745
257e9d03
RS
10746 - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5")
10747 - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5")
10748 - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5")
5f8e6c50
DMSP
10749
10750 The latter two were purportedly from
10751 draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really
10752 appear there.
10753
10754 Also deactivate the remaining ciphersuites from
10755 draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as
10756 unofficial, and the ID has long expired.
10757
10758 *Bodo Moeller*
10759
10760 * Fix RSA blinding Heisenbug (problems sometimes occurred on
10761 dual-core machines) and other potential thread-safety issues.
10762
10763 *Bodo Moeller*
10764
257e9d03 10765### Changes between 0.9.7i and 0.9.7j [04 May 2006]
5f8e6c50
DMSP
10766
10767 * Adapt fipsld and the build system to link against the validated FIPS
10768 module in FIPS mode.
10769
10770 *Steve Henson*
10771
10772 * Fixes for VC++ 2005 build under Windows.
10773
10774 *Steve Henson*
10775
10776 * Add new Windows build target VC-32-GMAKE for VC++. This uses GNU make
10777 from a Windows bash shell such as MSYS. It is autodetected from the
10778 "config" script when run from a VC++ environment. Modify standard VC++
10779 build to use fipscanister.o from the GNU make build.
10780
10781 *Steve Henson*
10782
257e9d03 10783### Changes between 0.9.7h and 0.9.7i [14 Oct 2005]
5f8e6c50
DMSP
10784
10785 * Wrapped the definition of EVP_MAX_MD_SIZE in a #ifdef OPENSSL_FIPS.
10786 The value now differs depending on if you build for FIPS or not.
10787 BEWARE! A program linked with a shared FIPSed libcrypto can't be
10788 safely run with a non-FIPSed libcrypto, as it may crash because of
10789 the difference induced by this change.
10790
10791 *Andy Polyakov*
10792
257e9d03 10793### Changes between 0.9.7g and 0.9.7h [11 Oct 2005]
5f8e6c50
DMSP
10794
10795 * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING
10796 (part of SSL_OP_ALL). This option used to disable the
10797 countermeasure against man-in-the-middle protocol-version
10798 rollback in the SSL 2.0 server implementation, which is a bad
d8dc8538 10799 idea. ([CVE-2005-2969])
5f8e6c50
DMSP
10800
10801 *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center
10802 for Information Security, National Institute of Advanced Industrial
257e9d03 10803 Science and Technology [AIST, Japan)]*
5f8e6c50
DMSP
10804
10805 * Minimal support for X9.31 signatures and PSS padding modes. This is
10806 mainly for FIPS compliance and not fully integrated at this stage.
10807
10808 *Steve Henson*
10809
10810 * For DSA signing, unless DSA_FLAG_NO_EXP_CONSTTIME is set, perform
10811 the exponentiation using a fixed-length exponent. (Otherwise,
10812 the information leaked through timing could expose the secret key
10813 after many signatures; cf. Bleichenbacher's attack on DSA with
10814 biased k.)
10815
10816 *Bodo Moeller*
10817
10818 * Make a new fixed-window mod_exp implementation the default for
10819 RSA, DSA, and DH private-key operations so that the sequence of
10820 squares and multiplies and the memory access pattern are
10821 independent of the particular secret key. This will mitigate
10822 cache-timing and potential related attacks.
10823
10824 BN_mod_exp_mont_consttime() is the new exponentiation implementation,
10825 and this is automatically used by BN_mod_exp_mont() if the new flag
10826 BN_FLG_EXP_CONSTTIME is set for the exponent. RSA, DSA, and DH
10827 will use this BN flag for private exponents unless the flag
10828 RSA_FLAG_NO_EXP_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME, or
10829 DH_FLAG_NO_EXP_CONSTTIME, respectively, is set.
10830
5f8e6c50
DMSP
10831 *Matthew D Wood (Intel Corp), with some changes by Bodo Moeller*
10832
10833 * Change the client implementation for SSLv23_method() and
10834 SSLv23_client_method() so that is uses the SSL 3.0/TLS 1.0
10835 Client Hello message format if the SSL_OP_NO_SSLv2 option is set.
10836 (Previously, the SSL 2.0 backwards compatible Client Hello
10837 message format would be used even with SSL_OP_NO_SSLv2.)
10838
10839 *Bodo Moeller*
10840
10841 * Add support for smime-type MIME parameter in S/MIME messages which some
10842 clients need.
10843
10844 *Steve Henson*
10845
10846 * New function BN_MONT_CTX_set_locked() to set montgomery parameters in
10847 a threadsafe manner. Modify rsa code to use new function and add calls
10848 to dsa and dh code (which had race conditions before).
10849
10850 *Steve Henson*
10851
10852 * Include the fixed error library code in the C error file definitions
10853 instead of fixing them up at runtime. This keeps the error code
10854 structures constant.
10855
10856 *Steve Henson*
10857
257e9d03 10858### Changes between 0.9.7f and 0.9.7g [11 Apr 2005]
5f8e6c50
DMSP
10859
10860[NB: OpenSSL 0.9.7h and later 0.9.7 patch levels were released after
10861OpenSSL 0.9.8.]
10862
10863 * Fixes for newer kerberos headers. NB: the casts are needed because
10864 the 'length' field is signed on one version and unsigned on another
10865 with no (?) obvious way to tell the difference, without these VC++
10866 complains. Also the "definition" of FAR (blank) is no longer included
10867 nor is the error ENOMEM. KRB5_PRIVATE has to be set to 1 to pick up
10868 some needed definitions.
10869
10870 *Steve Henson*
10871
10872 * Undo Cygwin change.
10873
10874 *Ulf Möller*
10875
10876 * Added support for proxy certificates according to RFC 3820.
10877 Because they may be a security thread to unaware applications,
10878 they must be explicitly allowed in run-time. See
10879 docs/HOWTO/proxy_certificates.txt for further information.
10880
10881 *Richard Levitte*
10882
257e9d03 10883### Changes between 0.9.7e and 0.9.7f [22 Mar 2005]
5f8e6c50
DMSP
10884
10885 * Use (SSL_RANDOM_VALUE - 4) bytes of pseudo random data when generating
10886 server and client random values. Previously
10887 (SSL_RANDOM_VALUE - sizeof(time_t)) would be used which would result in
10888 less random data when sizeof(time_t) > 4 (some 64 bit platforms).
10889
10890 This change has negligible security impact because:
10891
10892 1. Server and client random values still have 24 bytes of pseudo random
10893 data.
10894
10895 2. Server and client random values are sent in the clear in the initial
10896 handshake.
10897
10898 3. The master secret is derived using the premaster secret (48 bytes in
10899 size for static RSA ciphersuites) as well as client server and random
10900 values.
10901
10902 The OpenSSL team would like to thank the UK NISCC for bringing this issue
10903 to our attention.
10904
10905 *Stephen Henson, reported by UK NISCC*
10906
10907 * Use Windows randomness collection on Cygwin.
10908
10909 *Ulf Möller*
10910
10911 * Fix hang in EGD/PRNGD query when communication socket is closed
10912 prematurely by EGD/PRNGD.
10913
10914 *Darren Tucker <dtucker@zip.com.au> via Lutz Jänicke, resolves #1014*
10915
10916 * Prompt for pass phrases when appropriate for PKCS12 input format.
10917
10918 *Steve Henson*
10919
10920 * Back-port of selected performance improvements from development
10921 branch, as well as improved support for PowerPC platforms.
10922
10923 *Andy Polyakov*
10924
10925 * Add lots of checks for memory allocation failure, error codes to indicate
10926 failure and freeing up memory if a failure occurs.
10927
10928 *Nauticus Networks SSL Team <openssl@nauticusnet.com>, Steve Henson*
10929
10930 * Add new -passin argument to dgst.
10931
10932 *Steve Henson*
10933
10934 * Perform some character comparisons of different types in X509_NAME_cmp:
10935 this is needed for some certificates that re-encode DNs into UTF8Strings
10936 (in violation of RFC3280) and can't or won't issue name rollover
10937 certificates.
10938
10939 *Steve Henson*
10940
10941 * Make an explicit check during certificate validation to see that
10942 the CA setting in each certificate on the chain is correct. As a
10943 side effect always do the following basic checks on extensions,
10944 not just when there's an associated purpose to the check:
10945
257e9d03
RS
10946 - if there is an unhandled critical extension (unless the user
10947 has chosen to ignore this fault)
10948 - if the path length has been exceeded (if one is set at all)
10949 - that certain extensions fit the associated purpose (if one has
10950 been given)
5f8e6c50
DMSP
10951
10952 *Richard Levitte*
10953
257e9d03 10954### Changes between 0.9.7d and 0.9.7e [25 Oct 2004]
5f8e6c50
DMSP
10955
10956 * Avoid a race condition when CRLs are checked in a multi threaded
10957 environment. This would happen due to the reordering of the revoked
10958 entries during signature checking and serial number lookup. Now the
10959 encoding is cached and the serial number sort performed under a lock.
10960 Add new STACK function sk_is_sorted().
10961
10962 *Steve Henson*
10963
10964 * Add Delta CRL to the extension code.
10965
10966 *Steve Henson*
10967
10968 * Various fixes to s3_pkt.c so alerts are sent properly.
10969
10970 *David Holmes <d.holmes@f5.com>*
10971
10972 * Reduce the chances of duplicate issuer name and serial numbers (in
10973 violation of RFC3280) using the OpenSSL certificate creation utilities.
10974 This is done by creating a random 64 bit value for the initial serial
10975 number when a serial number file is created or when a self signed
10976 certificate is created using 'openssl req -x509'. The initial serial
10977 number file is created using 'openssl x509 -next_serial' in CA.pl
10978 rather than being initialized to 1.
10979
10980 *Steve Henson*
10981
257e9d03 10982### Changes between 0.9.7c and 0.9.7d [17 Mar 2004]
5f8e6c50
DMSP
10983
10984 * Fix null-pointer assignment in do_change_cipher_spec() revealed
d8dc8538 10985 by using the Codenomicon TLS Test Tool ([CVE-2004-0079])
5f8e6c50
DMSP
10986
10987 *Joe Orton, Steve Henson*
10988
10989 * Fix flaw in SSL/TLS handshaking when using Kerberos ciphersuites
d8dc8538 10990 ([CVE-2004-0112])
5f8e6c50
DMSP
10991
10992 *Joe Orton, Steve Henson*
10993
10994 * Make it possible to have multiple active certificates with the same
10995 subject in the CA index file. This is done only if the keyword
10996 'unique_subject' is set to 'no' in the main CA section (default
10997 if 'CA_default') of the configuration file. The value is saved
10998 with the database itself in a separate index attribute file,
10999 named like the index file with '.attr' appended to the name.
11000
11001 *Richard Levitte*
11002
11003 * X509 verify fixes. Disable broken certificate workarounds when
11004 X509_V_FLAGS_X509_STRICT is set. Check CRL issuer has cRLSign set if
11005 keyUsage extension present. Don't accept CRLs with unhandled critical
11006 extensions: since verify currently doesn't process CRL extensions this
11007 rejects a CRL with *any* critical extensions. Add new verify error codes
11008 for these cases.
11009
11010 *Steve Henson*
11011
11012 * When creating an OCSP nonce use an OCTET STRING inside the extnValue.
11013 A clarification of RFC2560 will require the use of OCTET STRINGs and
11014 some implementations cannot handle the current raw format. Since OpenSSL
11015 copies and compares OCSP nonces as opaque blobs without any attempt at
11016 parsing them this should not create any compatibility issues.
11017
11018 *Steve Henson*
11019
11020 * New md flag EVP_MD_CTX_FLAG_REUSE this allows md_data to be reused when
11021 calling EVP_MD_CTX_copy_ex() to avoid calling OPENSSL_malloc(). Without
11022 this HMAC (and other) operations are several times slower than OpenSSL
11023 < 0.9.7.
11024
11025 *Steve Henson*
11026
11027 * Print out GeneralizedTime and UTCTime in ASN1_STRING_print_ex().
11028
11029 *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>*
11030
11031 * Use the correct content when signing type "other".
11032
11033 *Steve Henson*
11034
257e9d03 11035### Changes between 0.9.7b and 0.9.7c [30 Sep 2003]
5f8e6c50
DMSP
11036
11037 * Fix various bugs revealed by running the NISCC test suite:
11038
11039 Stop out of bounds reads in the ASN1 code when presented with
11040 invalid tags (CVE-2003-0543 and CVE-2003-0544).
11041
d8dc8538 11042 Free up ASN1_TYPE correctly if ANY type is invalid ([CVE-2003-0545]).
5f8e6c50
DMSP
11043
11044 If verify callback ignores invalid public key errors don't try to check
11045 certificate signature with the NULL public key.
11046
5f8e6c50
DMSP
11047 *Steve Henson*
11048
11049 * New -ignore_err option in ocsp application to stop the server
11050 exiting on the first error in a request.
11051
11052 *Steve Henson*
11053
11054 * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate
11055 if the server requested one: as stated in TLS 1.0 and SSL 3.0
11056 specifications.
11057
11058 *Steve Henson*
11059
11060 * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional
11061 extra data after the compression methods not only for TLS 1.0
11062 but also for SSL 3.0 (as required by the specification).
11063
11064 *Bodo Moeller; problem pointed out by Matthias Loepfe*
11065
11066 * Change X509_certificate_type() to mark the key as exported/exportable
11067 when it's 512 *bits* long, not 512 bytes.
11068
11069 *Richard Levitte*
11070
11071 * Change AES_cbc_encrypt() so it outputs exact multiple of
11072 blocks during encryption.
11073
11074 *Richard Levitte*
11075
11076 * Various fixes to base64 BIO and non blocking I/O. On write
11077 flushes were not handled properly if the BIO retried. On read
11078 data was not being buffered properly and had various logic bugs.
11079 This also affects blocking I/O when the data being decoded is a
11080 certain size.
11081
11082 *Steve Henson*
11083
11084 * Various S/MIME bugfixes and compatibility changes:
11085 output correct application/pkcs7 MIME type if
11086 PKCS7_NOOLDMIMETYPE is set. Tolerate some broken signatures.
11087 Output CR+LF for EOL if PKCS7_CRLFEOL is set (this makes opening
11088 of files as .eml work). Correctly handle very long lines in MIME
11089 parser.
11090
11091 *Steve Henson*
11092
257e9d03 11093### Changes between 0.9.7a and 0.9.7b [10 Apr 2003]
5f8e6c50
DMSP
11094
11095 * Countermeasure against the Klima-Pokorny-Rosa extension of
11096 Bleichbacher's attack on PKCS #1 v1.5 padding: treat
11097 a protocol version number mismatch like a decryption error
11098 in ssl3_get_client_key_exchange (ssl/s3_srvr.c).
11099
11100 *Bodo Moeller*
11101
11102 * Turn on RSA blinding by default in the default implementation
11103 to avoid a timing attack. Applications that don't want it can call
11104 RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING.
11105 They would be ill-advised to do so in most cases.
11106
11107 *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller*
11108
11109 * Change RSA blinding code so that it works when the PRNG is not
11110 seeded (in this case, the secret RSA exponent is abused as
11111 an unpredictable seed -- if it is not unpredictable, there
11112 is no point in blinding anyway). Make RSA blinding thread-safe
11113 by remembering the creator's thread ID in rsa->blinding and
11114 having all other threads use local one-time blinding factors
11115 (this requires more computation than sharing rsa->blinding, but
11116 avoids excessive locking; and if an RSA object is not shared
11117 between threads, blinding will still be very fast).
11118
11119 *Bodo Moeller*
11120
11121 * Fixed a typo bug that would cause ENGINE_set_default() to set an
11122 ENGINE as defaults for all supported algorithms irrespective of
11123 the 'flags' parameter. 'flags' is now honoured, so applications
11124 should make sure they are passing it correctly.
11125
11126 *Geoff Thorpe*
11127
11128 * Target "mingw" now allows native Windows code to be generated in
11129 the Cygwin environment as well as with the MinGW compiler.
11130
11131 *Ulf Moeller*
11132
257e9d03 11133### Changes between 0.9.7 and 0.9.7a [19 Feb 2003]
5f8e6c50
DMSP
11134
11135 * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked
11136 via timing by performing a MAC computation even if incorrect
11137 block cipher padding has been found. This is a countermeasure
11138 against active attacks where the attacker has to distinguish
d8dc8538 11139 between bad padding and a MAC verification error. ([CVE-2003-0078])
5f8e6c50
DMSP
11140
11141 *Bodo Moeller; problem pointed out by Brice Canvel (EPFL),
11142 Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and
11143 Martin Vuagnoux (EPFL, Ilion)*
11144
11145 * Make the no-err option work as intended. The intention with no-err
11146 is not to have the whole error stack handling routines removed from
11147 libcrypto, it's only intended to remove all the function name and
11148 reason texts, thereby removing some of the footprint that may not
11149 be interesting if those errors aren't displayed anyway.
11150
11151 NOTE: it's still possible for any application or module to have its
11152 own set of error texts inserted. The routines are there, just not
11153 used by default when no-err is given.
11154
11155 *Richard Levitte*
11156
11157 * Add support for FreeBSD on IA64.
11158
11159 *dirk.meyer@dinoex.sub.org via Richard Levitte, resolves #454*
11160
11161 * Adjust DES_cbc_cksum() so it returns the same value as the MIT
11162 Kerberos function mit_des_cbc_cksum(). Before this change,
11163 the value returned by DES_cbc_cksum() was like the one from
11164 mit_des_cbc_cksum(), except the bytes were swapped.
11165
11166 *Kevin Greaney <Kevin.Greaney@hp.com> and Richard Levitte*
11167
11168 * Allow an application to disable the automatic SSL chain building.
11169 Before this a rather primitive chain build was always performed in
11170 ssl3_output_cert_chain(): an application had no way to send the
11171 correct chain if the automatic operation produced an incorrect result.
11172
11173 Now the chain builder is disabled if either:
11174
11175 1. Extra certificates are added via SSL_CTX_add_extra_chain_cert().
11176
11177 2. The mode flag SSL_MODE_NO_AUTO_CHAIN is set.
11178
11179 The reasoning behind this is that an application would not want the
11180 auto chain building to take place if extra chain certificates are
11181 present and it might also want a means of sending no additional
11182 certificates (for example the chain has two certificates and the
11183 root is omitted).
11184
11185 *Steve Henson*
11186
11187 * Add the possibility to build without the ENGINE framework.
11188
11189 *Steven Reddie <smr@essemer.com.au> via Richard Levitte*
11190
11191 * Under Win32 gmtime() can return NULL: check return value in
11192 OPENSSL_gmtime(). Add error code for case where gmtime() fails.
11193
11194 *Steve Henson*
11195
11196 * DSA routines: under certain error conditions uninitialized BN objects
11197 could be freed. Solution: make sure initialization is performed early
11198 enough. (Reported and fix supplied by Ivan D Nestlerode <nestler@MIT.EDU>,
11199 Nils Larsch <nla@trustcenter.de> via PR#459)
11200
11201 *Lutz Jaenicke*
11202
11203 * Another fix for SSLv2 session ID handling: the session ID was incorrectly
11204 checked on reconnect on the client side, therefore session resumption
11205 could still fail with a "ssl session id is different" error. This
11206 behaviour is masked when SSL_OP_ALL is used due to
11207 SSL_OP_MICROSOFT_SESS_ID_BUG being set.
11208 Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as
11209 followup to PR #377.
11210
11211 *Lutz Jaenicke*
11212
11213 * IA-32 assembler support enhancements: unified ELF targets, support
11214 for SCO/Caldera platforms, fix for Cygwin shared build.
11215
11216 *Andy Polyakov*
11217
11218 * Add support for FreeBSD on sparc64. As a consequence, support for
11219 FreeBSD on non-x86 processors is separate from x86 processors on
11220 the config script, much like the NetBSD support.
11221
11222 *Richard Levitte & Kris Kennaway <kris@obsecurity.org>*
11223
257e9d03 11224### Changes between 0.9.6h and 0.9.7 [31 Dec 2002]
5f8e6c50
DMSP
11225
11226[NB: OpenSSL 0.9.6i and later 0.9.6 patch levels were released after
11227OpenSSL 0.9.7.]
11228
11229 * Fix session ID handling in SSLv2 client code: the SERVER FINISHED
11230 code (06) was taken as the first octet of the session ID and the last
11231 octet was ignored consequently. As a result SSLv2 client side session
11232 caching could not have worked due to the session ID mismatch between
11233 client and server.
11234 Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as
11235 PR #377.
11236
11237 *Lutz Jaenicke*
11238
11239 * Change the declaration of needed Kerberos libraries to use EX_LIBS
11240 instead of the special (and badly supported) LIBKRB5. LIBKRB5 is
11241 removed entirely.
11242
11243 *Richard Levitte*
11244
11245 * The hw_ncipher.c engine requires dynamic locks. Unfortunately, it
11246 seems that in spite of existing for more than a year, many application
11247 author have done nothing to provide the necessary callbacks, which
11248 means that this particular engine will not work properly anywhere.
11249 This is a very unfortunate situation which forces us, in the name
11250 of usability, to give the hw_ncipher.c a static lock, which is part
11251 of libcrypto.
11252 NOTE: This is for the 0.9.7 series ONLY. This hack will never
11253 appear in 0.9.8 or later. We EXPECT application authors to have
11254 dealt properly with this when 0.9.8 is released (unless we actually
11255 make such changes in the libcrypto locking code that changes will
11256 have to be made anyway).
11257
11258 *Richard Levitte*
11259
11260 * In asn1_d2i_read_bio() repeatedly call BIO_read() until all content
11261 octets have been read, EOF or an error occurs. Without this change
11262 some truncated ASN1 structures will not produce an error.
11263
11264 *Steve Henson*
11265
11266 * Disable Heimdal support, since it hasn't been fully implemented.
11267 Still give the possibility to force the use of Heimdal, but with
11268 warnings and a request that patches get sent to openssl-dev.
11269
11270 *Richard Levitte*
11271
11272 * Add the VC-CE target, introduce the WINCE sysname, and add
11273 INSTALL.WCE and appropriate conditionals to make it build.
11274
11275 *Steven Reddie <smr@essemer.com.au> via Richard Levitte*
11276
11277 * Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and
11278 cygssl-x.y.z.dll, where x, y and z are the major, minor and
11279 edit numbers of the version.
11280
11281 *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte*
11282
11283 * Introduce safe string copy and catenation functions
11284 (BUF_strlcpy() and BUF_strlcat()).
11285
11286 *Ben Laurie (CHATS) and Richard Levitte*
11287
11288 * Avoid using fixed-size buffers for one-line DNs.
11289
11290 *Ben Laurie (CHATS)*
11291
11292 * Add BUF_MEM_grow_clean() to avoid information leakage when
11293 resizing buffers containing secrets, and use where appropriate.
11294
11295 *Ben Laurie (CHATS)*
11296
11297 * Avoid using fixed size buffers for configuration file location.
11298
11299 *Ben Laurie (CHATS)*
11300
11301 * Avoid filename truncation for various CA files.
11302
11303 *Ben Laurie (CHATS)*
11304
11305 * Use sizeof in preference to magic numbers.
11306
11307 *Ben Laurie (CHATS)*
11308
11309 * Avoid filename truncation in cert requests.
11310
11311 *Ben Laurie (CHATS)*
11312
11313 * Add assertions to check for (supposedly impossible) buffer
11314 overflows.
11315
11316 *Ben Laurie (CHATS)*
11317
11318 * Don't cache truncated DNS entries in the local cache (this could
11319 potentially lead to a spoofing attack).
11320
11321 *Ben Laurie (CHATS)*
11322
11323 * Fix various buffers to be large enough for hex/decimal
11324 representations in a platform independent manner.
11325
11326 *Ben Laurie (CHATS)*
11327
11328 * Add CRYPTO_realloc_clean() to avoid information leakage when
11329 resizing buffers containing secrets, and use where appropriate.
11330
11331 *Ben Laurie (CHATS)*
11332
11333 * Add BIO_indent() to avoid much slightly worrying code to do
11334 indents.
11335
11336 *Ben Laurie (CHATS)*
11337
11338 * Convert sprintf()/BIO_puts() to BIO_printf().
11339
11340 *Ben Laurie (CHATS)*
11341
11342 * buffer_gets() could terminate with the buffer only half
11343 full. Fixed.
11344
11345 *Ben Laurie (CHATS)*
11346
11347 * Add assertions to prevent user-supplied crypto functions from
11348 overflowing internal buffers by having large block sizes, etc.
11349
11350 *Ben Laurie (CHATS)*
11351
11352 * New OPENSSL_assert() macro (similar to assert(), but enabled
11353 unconditionally).
11354
11355 *Ben Laurie (CHATS)*
11356
11357 * Eliminate unused copy of key in RC4.
11358
11359 *Ben Laurie (CHATS)*
11360
11361 * Eliminate unused and incorrectly sized buffers for IV in pem.h.
11362
11363 *Ben Laurie (CHATS)*
11364
11365 * Fix off-by-one error in EGD path.
11366
11367 *Ben Laurie (CHATS)*
11368
11369 * If RANDFILE path is too long, ignore instead of truncating.
11370
11371 *Ben Laurie (CHATS)*
11372
11373 * Eliminate unused and incorrectly sized X.509 structure
11374 CBCParameter.
11375
11376 *Ben Laurie (CHATS)*
11377
11378 * Eliminate unused and dangerous function knumber().
11379
11380 *Ben Laurie (CHATS)*
11381
11382 * Eliminate unused and dangerous structure, KSSL_ERR.
11383
11384 *Ben Laurie (CHATS)*
11385
11386 * Protect against overlong session ID context length in an encoded
11387 session object. Since these are local, this does not appear to be
11388 exploitable.
11389
11390 *Ben Laurie (CHATS)*
11391
11392 * Change from security patch (see 0.9.6e below) that did not affect
11393 the 0.9.6 release series:
11394
11395 Remote buffer overflow in SSL3 protocol - an attacker could
11396 supply an oversized master key in Kerberos-enabled versions.
d8dc8538 11397 ([CVE-2002-0657])
5f8e6c50
DMSP
11398
11399 *Ben Laurie (CHATS)*
11400
11401 * Change the SSL kerb5 codes to match RFC 2712.
11402
11403 *Richard Levitte*
11404
11405 * Make -nameopt work fully for req and add -reqopt switch.
11406
11407 *Michael Bell <michael.bell@rz.hu-berlin.de>, Steve Henson*
11408
11409 * The "block size" for block ciphers in CFB and OFB mode should be 1.
11410
11411 *Steve Henson, reported by Yngve Nysaeter Pettersen <yngve@opera.com>*
11412
11413 * Make sure tests can be performed even if the corresponding algorithms
11414 have been removed entirely. This was also the last step to make
11415 OpenSSL compilable with DJGPP under all reasonable conditions.
11416
11417 *Richard Levitte, Doug Kaufman <dkaufman@rahul.net>*
11418
11419 * Add cipher selection rules COMPLEMENTOFALL and COMPLEMENTOFDEFAULT
11420 to allow version independent disabling of normally unselected ciphers,
11421 which may be activated as a side-effect of selecting a single cipher.
11422
11423 (E.g., cipher list string "RSA" enables ciphersuites that are left
11424 out of "ALL" because they do not provide symmetric encryption.
11425 "RSA:!COMPLEMEMENTOFALL" avoids these unsafe ciphersuites.)
11426
11427 *Lutz Jaenicke, Bodo Moeller*
11428
11429 * Add appropriate support for separate platform-dependent build
11430 directories. The recommended way to make a platform-dependent
11431 build directory is the following (tested on Linux), maybe with
11432 some local tweaks:
11433
11434 # Place yourself outside of the OpenSSL source tree. In
11435 # this example, the environment variable OPENSSL_SOURCE
11436 # is assumed to contain the absolute OpenSSL source directory.
11437 mkdir -p objtree/"`uname -s`-`uname -r`-`uname -m`"
11438 cd objtree/"`uname -s`-`uname -r`-`uname -m`"
11439 (cd $OPENSSL_SOURCE; find . -type f) | while read F; do
11440 mkdir -p `dirname $F`
11441 ln -s $OPENSSL_SOURCE/$F $F
11442 done
11443
11444 To be absolutely sure not to disturb the source tree, a "make clean"
11445 is a good thing. If it isn't successful, don't worry about it,
11446 it probably means the source directory is very clean.
11447
11448 *Richard Levitte*
11449
11450 * Make sure any ENGINE control commands make local copies of string
11451 pointers passed to them whenever necessary. Otherwise it is possible
11452 the caller may have overwritten (or deallocated) the original string
11453 data when a later ENGINE operation tries to use the stored values.
11454
11455 *Götz Babin-Ebell <babinebell@trustcenter.de>*
11456
11457 * Improve diagnostics in file reading and command-line digests.
11458
11459 *Ben Laurie aided and abetted by Solar Designer <solar@openwall.com>*
11460
11461 * Add AES modes CFB and OFB to the object database. Correct an
11462 error in AES-CFB decryption.
11463
11464 *Richard Levitte*
11465
11466 * Remove most calls to EVP_CIPHER_CTX_cleanup() in evp_enc.c, this
11467 allows existing EVP_CIPHER_CTX structures to be reused after
257e9d03 11468 calling `EVP_*Final()`. This behaviour is used by encryption
5f8e6c50
DMSP
11469 BIOs and some applications. This has the side effect that
11470 applications must explicitly clean up cipher contexts with
11471 EVP_CIPHER_CTX_cleanup() or they will leak memory.
11472
11473 *Steve Henson*
11474
11475 * Check the values of dna and dnb in bn_mul_recursive before calling
11476 bn_mul_comba (a non zero value means the a or b arrays do not contain
11477 n2 elements) and fallback to bn_mul_normal if either is not zero.
11478
11479 *Steve Henson*
11480
11481 * Fix escaping of non-ASCII characters when using the -subj option
11482 of the "openssl req" command line tool. (Robert Joop <joop@fokus.gmd.de>)
11483
11484 *Lutz Jaenicke*
11485
11486 * Make object definitions compliant to LDAP (RFC2256): SN is the short
11487 form for "surname", serialNumber has no short form.
11488 Use "mail" as the short name for "rfc822Mailbox" according to RFC2798;
11489 therefore remove "mail" short name for "internet 7".
11490 The OID for unique identifiers in X509 certificates is
11491 x500UniqueIdentifier, not uniqueIdentifier.
11492 Some more OID additions. (Michael Bell <michael.bell@rz.hu-berlin.de>)
11493
11494 *Lutz Jaenicke*
11495
11496 * Add an "init" command to the ENGINE config module and auto initialize
11497 ENGINEs. Without any "init" command the ENGINE will be initialized
11498 after all ctrl commands have been executed on it. If init=1 the
11499 ENGINE is initialized at that point (ctrls before that point are run
11500 on the uninitialized ENGINE and after on the initialized one). If
11501 init=0 then the ENGINE will not be initialized at all.
11502
11503 *Steve Henson*
11504
11505 * Fix the 'app_verify_callback' interface so that the user-defined
11506 argument is actually passed to the callback: In the
11507 SSL_CTX_set_cert_verify_callback() prototype, the callback
11508 declaration has been changed from
11509 int (*cb)()
11510 into
11511 int (*cb)(X509_STORE_CTX *,void *);
11512 in ssl_verify_cert_chain (ssl/ssl_cert.c), the call
11513 i=s->ctx->app_verify_callback(&ctx)
11514 has been changed into
11515 i=s->ctx->app_verify_callback(&ctx, s->ctx->app_verify_arg).
11516
11517 To update applications using SSL_CTX_set_cert_verify_callback(),
11518 a dummy argument can be added to their callback functions.
11519
11520 *D. K. Smetters <smetters@parc.xerox.com>*
11521
11522 * Added the '4758cca' ENGINE to support IBM 4758 cards.
11523
11524 *Maurice Gittens <maurice@gittens.nl>, touchups by Geoff Thorpe*
11525
11526 * Add and OPENSSL_LOAD_CONF define which will cause
11527 OpenSSL_add_all_algorithms() to load the openssl.cnf config file.
11528 This allows older applications to transparently support certain
11529 OpenSSL features: such as crypto acceleration and dynamic ENGINE loading.
11530 Two new functions OPENSSL_add_all_algorithms_noconf() which will never
11531 load the config file and OPENSSL_add_all_algorithms_conf() which will
11532 always load it have also been added.
11533
11534 *Steve Henson*
11535
11536 * Add the OFB, CFB and CTR (all with 128 bit feedback) to AES.
11537 Adjust NIDs and EVP layer.
11538
11539 *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte*
11540
11541 * Config modules support in openssl utility.
11542
11543 Most commands now load modules from the config file,
11544 though in a few (such as version) this isn't done
11545 because it couldn't be used for anything.
11546
11547 In the case of ca and req the config file used is
11548 the same as the utility itself: that is the -config
11549 command line option can be used to specify an
11550 alternative file.
11551
11552 *Steve Henson*
11553
11554 * Move default behaviour from OPENSSL_config(). If appname is NULL
11555 use "openssl_conf" if filename is NULL use default openssl config file.
11556
11557 *Steve Henson*
11558
11559 * Add an argument to OPENSSL_config() to allow the use of an alternative
11560 config section name. Add a new flag to tolerate a missing config file
11561 and move code to CONF_modules_load_file().
11562
11563 *Steve Henson*
11564
11565 * Support for crypto accelerator cards from Accelerated Encryption
11566 Processing, www.aep.ie. (Use engine 'aep')
11567 The support was copied from 0.9.6c [engine] and adapted/corrected
11568 to work with the new engine framework.
11569
11570 *AEP Inc. and Richard Levitte*
11571
11572 * Support for SureWare crypto accelerator cards from Baltimore
11573 Technologies. (Use engine 'sureware')
11574 The support was copied from 0.9.6c [engine] and adapted
11575 to work with the new engine framework.
11576
11577 *Richard Levitte*
11578
11579 * Have the CHIL engine fork-safe (as defined by nCipher) and actually
11580 make the newer ENGINE framework commands for the CHIL engine work.
11581
11582 *Toomas Kiisk <vix@cyber.ee> and Richard Levitte*
11583
11584 * Make it possible to produce shared libraries on ReliantUNIX.
11585
11586 *Robert Dahlem <Robert.Dahlem@ffm2.siemens.de> via Richard Levitte*
11587
11588 * Add the configuration target debug-linux-ppro.
11589 Make 'openssl rsa' use the general key loading routines
11590 implemented in apps.c, and make those routines able to
11591 handle the key format FORMAT_NETSCAPE and the variant
11592 FORMAT_IISSGC.
11593
11594 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
11595
11596 * Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
11597
11598 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
11599
11600 * Add -keyform to rsautl, and document -engine.
11601
11602 *Richard Levitte, inspired by Toomas Kiisk <vix@cyber.ee>*
11603
11604 * Change BIO_new_file (crypto/bio/bss_file.c) to use new
11605 BIO_R_NO_SUCH_FILE error code rather than the generic
11606 ERR_R_SYS_LIB error code if fopen() fails with ENOENT.
11607
11608 *Ben Laurie*
11609
11610 * Add new functions
11611 ERR_peek_last_error
11612 ERR_peek_last_error_line
11613 ERR_peek_last_error_line_data.
11614 These are similar to
11615 ERR_peek_error
11616 ERR_peek_error_line
11617 ERR_peek_error_line_data,
11618 but report on the latest error recorded rather than the first one
11619 still in the error queue.
11620
11621 *Ben Laurie, Bodo Moeller*
11622
11623 * default_algorithms option in ENGINE config module. This allows things
11624 like:
11625 default_algorithms = ALL
11626 default_algorithms = RSA, DSA, RAND, CIPHERS, DIGESTS
11627
11628 *Steve Henson*
11629
11630 * Preliminary ENGINE config module.
11631
11632 *Steve Henson*
11633
11634 * New experimental application configuration code.
11635
11636 *Steve Henson*
11637
11638 * Change the AES code to follow the same name structure as all other
11639 symmetric ciphers, and behave the same way. Move everything to
11640 the directory crypto/aes, thereby obsoleting crypto/rijndael.
11641
11642 *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte*
11643
11644 * SECURITY: remove unsafe setjmp/signal interaction from ui_openssl.c.
11645
11646 *Ben Laurie and Theo de Raadt*
11647
11648 * Add option to output public keys in req command.
11649
11650 *Massimiliano Pala madwolf@openca.org*
11651
11652 * Use wNAFs in EC_POINTs_mul() for improved efficiency
11653 (up to about 10% better than before for P-192 and P-224).
11654
11655 *Bodo Moeller*
11656
11657 * New functions/macros
11658
11659 SSL_CTX_set_msg_callback(ctx, cb)
11660 SSL_CTX_set_msg_callback_arg(ctx, arg)
11661 SSL_set_msg_callback(ssl, cb)
11662 SSL_set_msg_callback_arg(ssl, arg)
11663
11664 to request calling a callback function
11665
11666 void cb(int write_p, int version, int content_type,
11667 const void *buf, size_t len, SSL *ssl, void *arg)
11668
11669 whenever a protocol message has been completely received
11670 (write_p == 0) or sent (write_p == 1). Here 'version' is the
11671 protocol version according to which the SSL library interprets
11672 the current protocol message (SSL2_VERSION, SSL3_VERSION, or
11673 TLS1_VERSION). 'content_type' is 0 in the case of SSL 2.0, or
11674 the content type as defined in the SSL 3.0/TLS 1.0 protocol
11675 specification (change_cipher_spec(20), alert(21), handshake(22)).
11676 'buf' and 'len' point to the actual message, 'ssl' to the
11677 SSL object, and 'arg' is the application-defined value set by
11678 SSL[_CTX]_set_msg_callback_arg().
11679
11680 'openssl s_client' and 'openssl s_server' have new '-msg' options
11681 to enable a callback that displays all protocol messages.
11682
11683 *Bodo Moeller*
11684
11685 * Change the shared library support so shared libraries are built as
11686 soon as the corresponding static library is finished, and thereby get
11687 openssl and the test programs linked against the shared library.
11688 This still only happens when the keyword "shard" has been given to
11689 the configuration scripts.
11690
11691 NOTE: shared library support is still an experimental thing, and
11692 backward binary compatibility is still not guaranteed.
11693
11694 *"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> and Richard Levitte*
11695
11696 * Add support for Subject Information Access extension.
11697
11698 *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>*
11699
11700 * Make BUF_MEM_grow() behaviour more consistent: Initialise to zero
11701 additional bytes when new memory had to be allocated, not just
11702 when reusing an existing buffer.
11703
11704 *Bodo Moeller*
11705
11706 * New command line and configuration option 'utf8' for the req command.
11707 This allows field values to be specified as UTF8 strings.
11708
11709 *Steve Henson*
11710
11711 * Add -multi and -mr options to "openssl speed" - giving multiple parallel
11712 runs for the former and machine-readable output for the latter.
11713
11714 *Ben Laurie*
11715
11716 * Add '-noemailDN' option to 'openssl ca'. This prevents inclusion
11717 of the e-mail address in the DN (i.e., it will go into a certificate
11718 extension only). The new configuration file option 'email_in_dn = no'
11719 has the same effect.
11720
11721 *Massimiliano Pala madwolf@openca.org*
11722
257e9d03
RS
11723 * Change all functions with names starting with `des_` to be starting
11724 with `DES_` instead. Add wrappers that are compatible with libdes,
11725 but are named `_ossl_old_des_*`. Finally, add macros that map the
11726 `des_*` symbols to the corresponding `_ossl_old_des_*` if libdes
5f8e6c50 11727 compatibility is desired. If OpenSSL 0.9.6c compatibility is
257e9d03 11728 desired, the `des_*` symbols will be mapped to `DES_*`, with one
5f8e6c50
DMSP
11729 exception.
11730
11731 Since we provide two compatibility mappings, the user needs to
11732 define the macro OPENSSL_DES_LIBDES_COMPATIBILITY if libdes
11733 compatibility is desired. The default (i.e., when that macro
11734 isn't defined) is OpenSSL 0.9.6c compatibility.
11735
11736 There are also macros that enable and disable the support of old
11737 des functions altogether. Those are OPENSSL_ENABLE_OLD_DES_SUPPORT
11738 and OPENSSL_DISABLE_OLD_DES_SUPPORT. If none or both of those
11739 are defined, the default will apply: to support the old des routines.
11740
11741 In either case, one must include openssl/des.h to get the correct
11742 definitions. Do not try to just include openssl/des_old.h, that
11743 won't work.
11744
11745 NOTE: This is a major break of an old API into a new one. Software
257e9d03 11746 authors are encouraged to switch to the `DES_` style functions. Some
5f8e6c50
DMSP
11747 time in the future, des_old.h and the libdes compatibility functions
11748 will be disable (i.e. OPENSSL_DISABLE_OLD_DES_SUPPORT will be the
11749 default), and then completely removed.
11750
11751 *Richard Levitte*
11752
11753 * Test for certificates which contain unsupported critical extensions.
11754 If such a certificate is found during a verify operation it is
11755 rejected by default: this behaviour can be overridden by either
11756 handling the new error X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION or
11757 by setting the verify flag X509_V_FLAG_IGNORE_CRITICAL. A new function
11758 X509_supported_extension() has also been added which returns 1 if a
11759 particular extension is supported.
11760
11761 *Steve Henson*
11762
11763 * Modify the behaviour of EVP cipher functions in similar way to digests
11764 to retain compatibility with existing code.
11765
11766 *Steve Henson*
11767
11768 * Modify the behaviour of EVP_DigestInit() and EVP_DigestFinal() to retain
11769 compatibility with existing code. In particular the 'ctx' parameter does
11770 not have to be to be initialized before the call to EVP_DigestInit() and
11771 it is tidied up after a call to EVP_DigestFinal(). New function
11772 EVP_DigestFinal_ex() which does not tidy up the ctx. Similarly function
11773 EVP_MD_CTX_copy() changed to not require the destination to be
11774 initialized valid and new function EVP_MD_CTX_copy_ex() added which
11775 requires the destination to be valid.
11776
11777 Modify all the OpenSSL digest calls to use EVP_DigestInit_ex(),
11778 EVP_DigestFinal_ex() and EVP_MD_CTX_copy_ex().
11779
11780 *Steve Henson*
11781
11782 * Change ssl3_get_message (ssl/s3_both.c) and the functions using it
11783 so that complete 'Handshake' protocol structures are kept in memory
11784 instead of overwriting 'msg_type' and 'length' with 'body' data.
11785
11786 *Bodo Moeller*
11787
11788 * Add an implementation of SSL_add_dir_cert_subjects_to_stack for Win32.
11789
11790 *Massimo Santin via Richard Levitte*
11791
11792 * Major restructuring to the underlying ENGINE code. This includes
11793 reduction of linker bloat, separation of pure "ENGINE" manipulation
11794 (initialisation, etc) from functionality dealing with implementations
11795 of specific crypto interfaces. This change also introduces integrated
11796 support for symmetric ciphers and digest implementations - so ENGINEs
11797 can now accelerate these by providing EVP_CIPHER and EVP_MD
036cbb6b
DDO
11798 implementations of their own. This is detailed in
11799 [crypto/engine/README.md](crypto/engine/README.md)
5f8e6c50
DMSP
11800 as it couldn't be adequately described here. However, there are a few
11801 API changes worth noting - some RSA, DSA, DH, and RAND functions that
11802 were changed in the original introduction of ENGINE code have now
11803 reverted back - the hooking from this code to ENGINE is now a good
11804 deal more passive and at run-time, operations deal directly with
11805 RSA_METHODs, DSA_METHODs (etc) as they did before, rather than
11806 dereferencing through an ENGINE pointer any more. Also, the ENGINE
257e9d03 11807 functions dealing with `BN_MOD_EXP[_CRT]` handlers have been removed -
5f8e6c50
DMSP
11808 they were not being used by the framework as there is no concept of a
11809 BIGNUM_METHOD and they could not be generalised to the new
11810 'ENGINE_TABLE' mechanism that underlies the new code. Similarly,
11811 ENGINE_cpy() has been removed as it cannot be consistently defined in
11812 the new code.
11813
11814 *Geoff Thorpe*
11815
11816 * Change ASN1_GENERALIZEDTIME_check() to allow fractional seconds.
11817
11818 *Steve Henson*
11819
11820 * Change mkdef.pl to sort symbols that get the same entry number,
257e9d03 11821 and make sure the automatically generated functions `ERR_load_*`
5f8e6c50
DMSP
11822 become part of libeay.num as well.
11823
11824 *Richard Levitte*
11825
11826 * New function SSL_renegotiate_pending(). This returns true once
11827 renegotiation has been requested (either SSL_renegotiate() call
11828 or HelloRequest/ClientHello received from the peer) and becomes
11829 false once a handshake has been completed.
11830 (For servers, SSL_renegotiate() followed by SSL_do_handshake()
11831 sends a HelloRequest, but does not ensure that a handshake takes
11832 place. SSL_renegotiate_pending() is useful for checking if the
11833 client has followed the request.)
11834
11835 *Bodo Moeller*
11836
11837 * New SSL option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION.
11838 By default, clients may request session resumption even during
11839 renegotiation (if session ID contexts permit); with this option,
11840 session resumption is possible only in the first handshake.
11841
11842 SSL_OP_ALL is now 0x00000FFFL instead of 0x000FFFFFL. This makes
11843 more bits available for options that should not be part of
11844 SSL_OP_ALL (such as SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION).
11845
11846 *Bodo Moeller*
11847
11848 * Add some demos for certificate and certificate request creation.
11849
11850 *Steve Henson*
11851
11852 * Make maximum certificate chain size accepted from the peer application
257e9d03 11853 settable (`SSL*_get/set_max_cert_list()`), as proposed by
5f8e6c50
DMSP
11854 "Douglas E. Engert" <deengert@anl.gov>.
11855
11856 *Lutz Jaenicke*
11857
11858 * Add support for shared libraries for Unixware-7
11859 (Boyd Lynn Gerber <gerberb@zenez.com>).
11860
11861 *Lutz Jaenicke*
11862
11863 * Add a "destroy" handler to ENGINEs that allows structural cleanup to
11864 be done prior to destruction. Use this to unload error strings from
11865 ENGINEs that load their own error strings. NB: This adds two new API
11866 functions to "get" and "set" this destroy handler in an ENGINE.
11867
11868 *Geoff Thorpe*
11869
11870 * Alter all existing ENGINE implementations (except "openssl" and
11871 "openbsd") to dynamically instantiate their own error strings. This
11872 makes them more flexible to be built both as statically-linked ENGINEs
11873 and self-contained shared-libraries loadable via the "dynamic" ENGINE.
11874 Also, add stub code to each that makes building them as self-contained
036cbb6b 11875 shared-libraries easier (see [README-Engine.md](README-Engine.md)).
5f8e6c50
DMSP
11876
11877 *Geoff Thorpe*
11878
11879 * Add a "dynamic" ENGINE that provides a mechanism for binding ENGINE
11880 implementations into applications that are completely implemented in
11881 self-contained shared-libraries. The "dynamic" ENGINE exposes control
11882 commands that can be used to configure what shared-library to load and
11883 to control aspects of the way it is handled. Also, made an update to
036cbb6b
DDO
11884 the [README-Engine.md](README-Engine.md) file
11885 that brings its information up-to-date and
5f8e6c50
DMSP
11886 provides some information and instructions on the "dynamic" ENGINE
11887 (ie. how to use it, how to build "dynamic"-loadable ENGINEs, etc).
11888
11889 *Geoff Thorpe*
11890
11891 * Make it possible to unload ranges of ERR strings with a new
11892 "ERR_unload_strings" function.
11893
11894 *Geoff Thorpe*
11895
11896 * Add a copy() function to EVP_MD.
11897
11898 *Ben Laurie*
11899
11900 * Make EVP_MD routines take a context pointer instead of just the
11901 md_data void pointer.
11902
11903 *Ben Laurie*
11904
11905 * Add flags to EVP_MD and EVP_MD_CTX. EVP_MD_FLAG_ONESHOT indicates
11906 that the digest can only process a single chunk of data
11907 (typically because it is provided by a piece of
11908 hardware). EVP_MD_CTX_FLAG_ONESHOT indicates that the application
11909 is only going to provide a single chunk of data, and hence the
11910 framework needn't accumulate the data for oneshot drivers.
11911
11912 *Ben Laurie*
11913
11914 * As with "ERR", make it possible to replace the underlying "ex_data"
11915 functions. This change also alters the storage and management of global
11916 ex_data state - it's now all inside ex_data.c and all "class" code (eg.
11917 RSA, BIO, SSL_CTX, etc) no longer stores its own STACKS and per-class
11918 index counters. The API functions that use this state have been changed
11919 to take a "class_index" rather than pointers to the class's local STACK
11920 and counter, and there is now an API function to dynamically create new
11921 classes. This centralisation allows us to (a) plug a lot of the
11922 thread-safety problems that existed, and (b) makes it possible to clean
11923 up all allocated state using "CRYPTO_cleanup_all_ex_data()". W.r.t. (b)
11924 such data would previously have always leaked in application code and
11925 workarounds were in place to make the memory debugging turn a blind eye
11926 to it. Application code that doesn't use this new function will still
11927 leak as before, but their memory debugging output will announce it now
11928 rather than letting it slide.
11929
11930 Besides the addition of CRYPTO_cleanup_all_ex_data(), another API change
11931 induced by the "ex_data" overhaul is that X509_STORE_CTX_init() now
11932 has a return value to indicate success or failure.
11933
11934 *Geoff Thorpe*
11935
11936 * Make it possible to replace the underlying "ERR" functions such that the
11937 global state (2 LHASH tables and 2 locks) is only used by the "default"
11938 implementation. This change also adds two functions to "get" and "set"
11939 the implementation prior to it being automatically set the first time
11940 any other ERR function takes place. Ie. an application can call "get",
11941 pass the return value to a module it has just loaded, and that module
11942 can call its own "set" function using that value. This means the
11943 module's "ERR" operations will use (and modify) the error state in the
11944 application and not in its own statically linked copy of OpenSSL code.
11945
11946 *Geoff Thorpe*
11947
257e9d03 11948 * Give DH, DSA, and RSA types their own `*_up_ref()` function to increment
5f8e6c50
DMSP
11949 reference counts. This performs normal REF_PRINT/REF_CHECK macros on
11950 the operation, and provides a more encapsulated way for external code
11951 (crypto/evp/ and ssl/) to do this. Also changed the evp and ssl code
11952 to use these functions rather than manually incrementing the counts.
11953
11954 Also rename "DSO_up()" function to more descriptive "DSO_up_ref()".
11955
11956 *Geoff Thorpe*
11957
11958 * Add EVP test program.
11959
11960 *Ben Laurie*
11961
11962 * Add symmetric cipher support to ENGINE. Expect the API to change!
11963
11964 *Ben Laurie*
11965
11966 * New CRL functions: X509_CRL_set_version(), X509_CRL_set_issuer_name()
11967 X509_CRL_set_lastUpdate(), X509_CRL_set_nextUpdate(), X509_CRL_sort(),
11968 X509_REVOKED_set_serialNumber(), and X509_REVOKED_set_revocationDate().
11969 These allow a CRL to be built without having to access X509_CRL fields
11970 directly. Modify 'ca' application to use new functions.
11971
11972 *Steve Henson*
11973
11974 * Move SSL_OP_TLS_ROLLBACK_BUG out of the SSL_OP_ALL list of recommended
11975 bug workarounds. Rollback attack detection is a security feature.
11976 The problem will only arise on OpenSSL servers when TLSv1 is not
11977 available (sslv3_server_method() or SSL_OP_NO_TLSv1).
11978 Software authors not wanting to support TLSv1 will have special reasons
11979 for their choice and can explicitly enable this option.
11980
11981 *Bodo Moeller, Lutz Jaenicke*
11982
11983 * Rationalise EVP so it can be extended: don't include a union of
11984 cipher/digest structures, add init/cleanup functions for EVP_MD_CTX
11985 (similar to those existing for EVP_CIPHER_CTX).
11986 Usage example:
11987
11988 EVP_MD_CTX md;
11989
11990 EVP_MD_CTX_init(&md); /* new function call */
11991 EVP_DigestInit(&md, EVP_sha1());
11992 EVP_DigestUpdate(&md, in, len);
11993 EVP_DigestFinal(&md, out, NULL);
11994 EVP_MD_CTX_cleanup(&md); /* new function call */
11995
5f8e6c50
DMSP
11996 *Ben Laurie*
11997
11998 * Make DES key schedule conform to the usual scheme, as well as
11999 correcting its structure. This means that calls to DES functions
12000 now have to pass a pointer to a des_key_schedule instead of a
12001 plain des_key_schedule (which was actually always a pointer
12002 anyway): E.g.,
12003
12004 des_key_schedule ks;
12005
12006 des_set_key_checked(..., &ks);
12007 des_ncbc_encrypt(..., &ks, ...);
12008
12009 (Note that a later change renames 'des_...' into 'DES_...'.)
12010
12011 *Ben Laurie*
12012
12013 * Initial reduction of linker bloat: the use of some functions, such as
12014 PEM causes large amounts of unused functions to be linked in due to
12015 poor organisation. For example pem_all.c contains every PEM function
12016 which has a knock on effect of linking in large amounts of (unused)
12017 ASN1 code. Grouping together similar functions and splitting unrelated
12018 functions prevents this.
12019
12020 *Steve Henson*
12021
12022 * Cleanup of EVP macros.
12023
12024 *Ben Laurie*
12025
257e9d03
RS
12026 * Change historical references to `{NID,SN,LN}_des_ede` and ede3 to add the
12027 correct `_ecb suffix`.
5f8e6c50
DMSP
12028
12029 *Ben Laurie*
12030
12031 * Add initial OCSP responder support to ocsp application. The
12032 revocation information is handled using the text based index
12033 use by the ca application. The responder can either handle
12034 requests generated internally, supplied in files (for example
12035 via a CGI script) or using an internal minimal server.
12036
12037 *Steve Henson*
12038
12039 * Add configuration choices to get zlib compression for TLS.
12040
12041 *Richard Levitte*
12042
12043 * Changes to Kerberos SSL for RFC 2712 compliance:
257e9d03
RS
12044 1. Implemented real KerberosWrapper, instead of just using
12045 KRB5 AP_REQ message. [Thanks to Simon Wilkinson <sxw@sxw.org.uk>]
12046 2. Implemented optional authenticator field of KerberosWrapper.
5f8e6c50
DMSP
12047
12048 Added openssl-style ASN.1 macros for Kerberos ticket, ap_req,
12049 and authenticator structs; see crypto/krb5/.
12050
12051 Generalized Kerberos calls to support multiple Kerberos libraries.
257e9d03
RS
12052 *Vern Staats <staatsvr@asc.hpc.mil>, Jeffrey Altman <jaltman@columbia.edu>
12053 via Richard Levitte*
5f8e6c50
DMSP
12054
12055 * Cause 'openssl speed' to use fully hard-coded DSA keys as it
12056 already does with RSA. testdsa.h now has 'priv_key/pub_key'
12057 values for each of the key sizes rather than having just
12058 parameters (and 'speed' generating keys each time).
12059
12060 *Geoff Thorpe*
12061
12062 * Speed up EVP routines.
12063 Before:
12064crypt
12065pe 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
12066s-cbc 4408.85k 5560.51k 5778.46k 5862.20k 5825.16k
12067s-cbc 4389.55k 5571.17k 5792.23k 5846.91k 5832.11k
12068s-cbc 4394.32k 5575.92k 5807.44k 5848.37k 5841.30k
12069crypt
12070s-cbc 3482.66k 5069.49k 5496.39k 5614.16k 5639.28k
12071s-cbc 3480.74k 5068.76k 5510.34k 5609.87k 5635.52k
12072s-cbc 3483.72k 5067.62k 5504.60k 5708.01k 5724.80k
12073 After:
12074crypt
12075s-cbc 4660.16k 5650.19k 5807.19k 5827.13k 5783.32k
12076crypt
12077s-cbc 3624.96k 5258.21k 5530.91k 5624.30k 5628.26k
12078
12079 *Ben Laurie*
12080
12081 * Added the OS2-EMX target.
12082
12083 *"Brian Havard" <brianh@kheldar.apana.org.au> and Richard Levitte*
12084
12085 * Rewrite apps to use NCONF routines instead of the old CONF. New functions
12086 to support NCONF routines in extension code. New function CONF_set_nconf()
12087 to allow functions which take an NCONF to also handle the old LHASH
12088 structure: this means that the old CONF compatible routines can be
12089 retained (in particular wrt extensions) without having to duplicate the
12090 code. New function X509V3_add_ext_nconf_sk to add extensions to a stack.
12091
12092 *Steve Henson*
12093
12094 * Enhance the general user interface with mechanisms for inner control
12095 and with possibilities to have yes/no kind of prompts.
12096
12097 *Richard Levitte*
12098
12099 * Change all calls to low level digest routines in the library and
12100 applications to use EVP. Add missing calls to HMAC_cleanup() and
12101 don't assume HMAC_CTX can be copied using memcpy().
12102
12103 *Verdon Walker <VWalker@novell.com>, Steve Henson*
12104
12105 * Add the possibility to control engines through control names but with
12106 arbitrary arguments instead of just a string.
12107 Change the key loaders to take a UI_METHOD instead of a callback
12108 function pointer. NOTE: this breaks binary compatibility with earlier
12109 versions of OpenSSL [engine].
12110 Adapt the nCipher code for these new conditions and add a card insertion
12111 callback.
12112
12113 *Richard Levitte*
12114
12115 * Enhance the general user interface with mechanisms to better support
12116 dialog box interfaces, application-defined prompts, the possibility
12117 to use defaults (for example default passwords from somewhere else)
12118 and interrupts/cancellations.
12119
12120 *Richard Levitte*
12121
12122 * Tidy up PKCS#12 attribute handling. Add support for the CSP name
12123 attribute in PKCS#12 files, add new -CSP option to pkcs12 utility.
12124
12125 *Steve Henson*
12126
12127 * Fix a memory leak in 'sk_dup()' in the case reallocation fails. (Also
12128 tidy up some unnecessarily weird code in 'sk_new()').
12129
12130 *Geoff, reported by Diego Tartara <dtartara@novamens.com>*
12131
12132 * Change the key loading routines for ENGINEs to use the same kind
12133 callback (pem_password_cb) as all other routines that need this
12134 kind of callback.
12135
12136 *Richard Levitte*
12137
12138 * Increase ENTROPY_NEEDED to 32 bytes, as Rijndael can operate with
12139 256 bit (=32 byte) keys. Of course seeding with more entropy bytes
12140 than this minimum value is recommended.
12141
12142 *Lutz Jaenicke*
12143
12144 * New random seeder for OpenVMS, using the system process statistics
12145 that are easily reachable.
12146
12147 *Richard Levitte*
12148
12149 * Windows apparently can't transparently handle global
12150 variables defined in DLLs. Initialisations such as:
12151
12152 const ASN1_ITEM *it = &ASN1_INTEGER_it;
12153
12154 won't compile. This is used by the any applications that need to
12155 declare their own ASN1 modules. This was fixed by adding the option
12156 EXPORT_VAR_AS_FN to all Win32 platforms, although this isn't strictly
12157 needed for static libraries under Win32.
12158
12159 *Steve Henson*
12160
12161 * New functions X509_PURPOSE_set() and X509_TRUST_set() to handle
12162 setting of purpose and trust fields. New X509_STORE trust and
12163 purpose functions and tidy up setting in other SSL functions.
12164
12165 *Steve Henson*
12166
12167 * Add copies of X509_STORE_CTX fields and callbacks to X509_STORE
12168 structure. These are inherited by X509_STORE_CTX when it is
12169 initialised. This allows various defaults to be set in the
12170 X509_STORE structure (such as flags for CRL checking and custom
12171 purpose or trust settings) for functions which only use X509_STORE_CTX
12172 internally such as S/MIME.
12173
12174 Modify X509_STORE_CTX_purpose_inherit() so it only sets purposes and
12175 trust settings if they are not set in X509_STORE. This allows X509_STORE
12176 purposes and trust (in S/MIME for example) to override any set by default.
12177
12178 Add command line options for CRL checking to smime, s_client and s_server
12179 applications.
12180
12181 *Steve Henson*
12182
12183 * Initial CRL based revocation checking. If the CRL checking flag(s)
12184 are set then the CRL is looked up in the X509_STORE structure and
12185 its validity and signature checked, then if the certificate is found
12186 in the CRL the verify fails with a revoked error.
12187
12188 Various new CRL related callbacks added to X509_STORE_CTX structure.
12189
12190 Command line options added to 'verify' application to support this.
12191
12192 This needs some additional work, such as being able to handle multiple
12193 CRLs with different times, extension based lookup (rather than just
12194 by subject name) and ultimately more complete V2 CRL extension
12195 handling.
12196
12197 *Steve Henson*
12198
12199 * Add a general user interface API (crypto/ui/). This is designed
12200 to replace things like des_read_password and friends (backward
12201 compatibility functions using this new API are provided).
12202 The purpose is to remove prompting functions from the DES code
12203 section as well as provide for prompting through dialog boxes in
12204 a window system and the like.
12205
12206 *Richard Levitte*
12207
12208 * Add "ex_data" support to ENGINE so implementations can add state at a
12209 per-structure level rather than having to store it globally.
12210
12211 *Geoff*
12212
12213 * Make it possible for ENGINE structures to be copied when retrieved by
12214 ENGINE_by_id() if the ENGINE specifies a new flag: ENGINE_FLAGS_BY_ID_COPY.
12215 This causes the "original" ENGINE structure to act like a template,
12216 analogous to the RSA vs. RSA_METHOD type of separation. Because of this
12217 operational state can be localised to each ENGINE structure, despite the
12218 fact they all share the same "methods". New ENGINE structures returned in
12219 this case have no functional references and the return value is the single
12220 structural reference. This matches the single structural reference returned
12221 by ENGINE_by_id() normally, when it is incremented on the pre-existing
12222 ENGINE structure.
12223
12224 *Geoff*
12225
12226 * Fix ASN1 decoder when decoding type ANY and V_ASN1_OTHER: since this
12227 needs to match any other type at all we need to manually clear the
12228 tag cache.
12229
12230 *Steve Henson*
12231
12232 * Changes to the "openssl engine" utility to include;
12233 - verbosity levels ('-v', '-vv', and '-vvv') that provide information
12234 about an ENGINE's available control commands.
12235 - executing control commands from command line arguments using the
12236 '-pre' and '-post' switches. '-post' is only used if '-t' is
12237 specified and the ENGINE is successfully initialised. The syntax for
12238 the individual commands are colon-separated, for example;
12239 openssl engine chil -pre FORK_CHECK:0 -pre SO_PATH:/lib/test.so
12240
12241 *Geoff*
12242
12243 * New dynamic control command support for ENGINEs. ENGINEs can now
12244 declare their own commands (numbers), names (strings), descriptions,
12245 and input types for run-time discovery by calling applications. A
12246 subset of these commands are implicitly classed as "executable"
12247 depending on their input type, and only these can be invoked through
12248 the new string-based API function ENGINE_ctrl_cmd_string(). (Eg. this
12249 can be based on user input, config files, etc). The distinction is
12250 that "executable" commands cannot return anything other than a boolean
12251 result and can only support numeric or string input, whereas some
12252 discoverable commands may only be for direct use through
12253 ENGINE_ctrl(), eg. supporting the exchange of binary data, function
12254 pointers, or other custom uses. The "executable" commands are to
12255 support parameterisations of ENGINE behaviour that can be
12256 unambiguously defined by ENGINEs and used consistently across any
12257 OpenSSL-based application. Commands have been added to all the
12258 existing hardware-supporting ENGINEs, noticeably "SO_PATH" to allow
12259 control over shared-library paths without source code alterations.
12260
12261 *Geoff*
12262
12263 * Changed all ENGINE implementations to dynamically allocate their
12264 ENGINEs rather than declaring them statically. Apart from this being
12265 necessary with the removal of the ENGINE_FLAGS_MALLOCED distinction,
12266 this also allows the implementations to compile without using the
12267 internal engine_int.h header.
12268
12269 *Geoff*
12270
12271 * Minor adjustment to "rand" code. RAND_get_rand_method() now returns a
12272 'const' value. Any code that should be able to modify a RAND_METHOD
12273 should already have non-const pointers to it (ie. they should only
12274 modify their own ones).
12275
12276 *Geoff*
12277
12278 * Made a variety of little tweaks to the ENGINE code.
12279 - "atalla" and "ubsec" string definitions were moved from header files
12280 to C code. "nuron" string definitions were placed in variables
12281 rather than hard-coded - allowing parameterisation of these values
12282 later on via ctrl() commands.
12283 - Removed unused "#if 0"'d code.
12284 - Fixed engine list iteration code so it uses ENGINE_free() to release
12285 structural references.
12286 - Constified the RAND_METHOD element of ENGINE structures.
12287 - Constified various get/set functions as appropriate and added
12288 missing functions (including a catch-all ENGINE_cpy that duplicates
12289 all ENGINE values onto a new ENGINE except reference counts/state).
12290 - Removed NULL parameter checks in get/set functions. Setting a method
12291 or function to NULL is a way of cancelling out a previously set
12292 value. Passing a NULL ENGINE parameter is just plain stupid anyway
12293 and doesn't justify the extra error symbols and code.
12294 - Deprecate the ENGINE_FLAGS_MALLOCED define and move the area for
12295 flags from engine_int.h to engine.h.
12296 - Changed prototypes for ENGINE handler functions (init(), finish(),
12297 ctrl(), key-load functions, etc) to take an (ENGINE*) parameter.
12298
12299 *Geoff*
12300
12301 * Implement binary inversion algorithm for BN_mod_inverse in addition
12302 to the algorithm using long division. The binary algorithm can be
12303 used only if the modulus is odd. On 32-bit systems, it is faster
12304 only for relatively small moduli (roughly 20-30% for 128-bit moduli,
12305 roughly 5-15% for 256-bit moduli), so we use it only for moduli
12306 up to 450 bits. In 64-bit environments, the binary algorithm
12307 appears to be advantageous for much longer moduli; here we use it
12308 for moduli up to 2048 bits.
12309
12310 *Bodo Moeller*
12311
12312 * Rewrite CHOICE field setting in ASN1_item_ex_d2i(). The old code
12313 could not support the combine flag in choice fields.
12314
12315 *Steve Henson*
12316
12317 * Add a 'copy_extensions' option to the 'ca' utility. This copies
12318 extensions from a certificate request to the certificate.
12319
12320 *Steve Henson*
12321
12322 * Allow multiple 'certopt' and 'nameopt' options to be separated
12323 by commas. Add 'namopt' and 'certopt' options to the 'ca' config
12324 file: this allows the display of the certificate about to be
12325 signed to be customised, to allow certain fields to be included
12326 or excluded and extension details. The old system didn't display
12327 multicharacter strings properly, omitted fields not in the policy
12328 and couldn't display additional details such as extensions.
12329
12330 *Steve Henson*
12331
12332 * Function EC_POINTs_mul for multiple scalar multiplication
12333 of an arbitrary number of elliptic curve points
12334 \sum scalars[i]*points[i],
12335 optionally including the generator defined for the EC_GROUP:
12336 scalar*generator + \sum scalars[i]*points[i].
12337
12338 EC_POINT_mul is a simple wrapper function for the typical case
12339 that the point list has just one item (besides the optional
12340 generator).
12341
12342 *Bodo Moeller*
12343
12344 * First EC_METHODs for curves over GF(p):
12345
12346 EC_GFp_simple_method() uses the basic BN_mod_mul and BN_mod_sqr
12347 operations and provides various method functions that can also
12348 operate with faster implementations of modular arithmetic.
12349
12350 EC_GFp_mont_method() reuses most functions that are part of
12351 EC_GFp_simple_method, but uses Montgomery arithmetic.
12352
12353 *Bodo Moeller; point addition and point doubling
12354 implementation directly derived from source code provided by
12355 Lenka Fibikova <fibikova@exp-math.uni-essen.de>*
12356
12357 * Framework for elliptic curves (crypto/ec/ec.h, crypto/ec/ec_lcl.h,
12358 crypto/ec/ec_lib.c):
12359
12360 Curves are EC_GROUP objects (with an optional group generator)
12361 based on EC_METHODs that are built into the library.
12362
12363 Points are EC_POINT objects based on EC_GROUP objects.
12364
12365 Most of the framework would be able to handle curves over arbitrary
12366 finite fields, but as there are no obvious types for fields other
12367 than GF(p), some functions are limited to that for now.
12368
12369 *Bodo Moeller*
12370
12371 * Add the -HTTP option to s_server. It is similar to -WWW, but requires
12372 that the file contains a complete HTTP response.
12373
12374 *Richard Levitte*
12375
12376 * Add the ec directory to mkdef.pl and mkfiles.pl. In mkdef.pl
12377 change the def and num file printf format specifier from "%-40sXXX"
12378 to "%-39s XXX". The latter will always guarantee a space after the
12379 field while the former will cause them to run together if the field
12380 is 40 of more characters long.
12381
12382 *Steve Henson*
12383
12384 * Constify the cipher and digest 'method' functions and structures
12385 and modify related functions to take constant EVP_MD and EVP_CIPHER
12386 pointers.
12387
12388 *Steve Henson*
12389
12390 * Hide BN_CTX structure details in bn_lcl.h instead of publishing them
12391 in <openssl/bn.h>. Also further increase BN_CTX_NUM to 32.
12392
12393 *Bodo Moeller*
12394
257e9d03 12395 * Modify `EVP_Digest*()` routines so they now return values. Although the
5f8e6c50
DMSP
12396 internal software routines can never fail additional hardware versions
12397 might.
12398
12399 *Steve Henson*
12400
12401 * Clean up crypto/err/err.h and change some error codes to avoid conflicts:
12402
12403 Previously ERR_R_FATAL was too small and coincided with ERR_LIB_PKCS7
12404 (= ERR_R_PKCS7_LIB); it is now 64 instead of 32.
12405
12406 ASN1 error codes
12407 ERR_R_NESTED_ASN1_ERROR
12408 ...
12409 ERR_R_MISSING_ASN1_EOS
12410 were 4 .. 9, conflicting with
12411 ERR_LIB_RSA (= ERR_R_RSA_LIB)
12412 ...
12413 ERR_LIB_PEM (= ERR_R_PEM_LIB).
12414 They are now 58 .. 63 (i.e., just below ERR_R_FATAL).
12415
12416 Add new error code 'ERR_R_INTERNAL_ERROR'.
12417
12418 *Bodo Moeller*
12419
12420 * Don't overuse locks in crypto/err/err.c: For data retrieval, CRYPTO_r_lock
12421 suffices.
12422
12423 *Bodo Moeller*
12424
12425 * New option '-subj arg' for 'openssl req' and 'openssl ca'. This
12426 sets the subject name for a new request or supersedes the
12427 subject name in a given request. Formats that can be parsed are
12428 'CN=Some Name, OU=myOU, C=IT'
12429 and
12430 'CN=Some Name/OU=myOU/C=IT'.
12431
12432 Add options '-batch' and '-verbose' to 'openssl req'.
12433
12434 *Massimiliano Pala <madwolf@hackmasters.net>*
12435
12436 * Introduce the possibility to access global variables through
12437 functions on platform were that's the best way to handle exporting
12438 global variables in shared libraries. To enable this functionality,
12439 one must configure with "EXPORT_VAR_AS_FN" or defined the C macro
12440 "OPENSSL_EXPORT_VAR_AS_FUNCTION" in crypto/opensslconf.h (the latter
12441 is normally done by Configure or something similar).
12442
12443 To implement a global variable, use the macro OPENSSL_IMPLEMENT_GLOBAL
12444 in the source file (foo.c) like this:
12445
12446 OPENSSL_IMPLEMENT_GLOBAL(int,foo)=1;
12447 OPENSSL_IMPLEMENT_GLOBAL(double,bar);
12448
12449 To declare a global variable, use the macros OPENSSL_DECLARE_GLOBAL
12450 and OPENSSL_GLOBAL_REF in the header file (foo.h) like this:
12451
12452 OPENSSL_DECLARE_GLOBAL(int,foo);
12453 #define foo OPENSSL_GLOBAL_REF(foo)
12454 OPENSSL_DECLARE_GLOBAL(double,bar);
12455 #define bar OPENSSL_GLOBAL_REF(bar)
12456
12457 The #defines are very important, and therefore so is including the
12458 header file everywhere where the defined globals are used.
12459
12460 The macro OPENSSL_EXPORT_VAR_AS_FUNCTION also affects the definition
12461 of ASN.1 items, but that structure is a bit different.
12462
12463 The largest change is in util/mkdef.pl which has been enhanced with
12464 better and easier to understand logic to choose which symbols should
12465 go into the Windows .def files as well as a number of fixes and code
12466 cleanup (among others, algorithm keywords are now sorted
12467 lexicographically to avoid constant rewrites).
12468
12469 *Richard Levitte*
12470
12471 * In BN_div() keep a copy of the sign of 'num' before writing the
12472 result to 'rm' because if rm==num the value will be overwritten
12473 and produce the wrong result if 'num' is negative: this caused
12474 problems with BN_mod() and BN_nnmod().
12475
12476 *Steve Henson*
12477
12478 * Function OCSP_request_verify(). This checks the signature on an
12479 OCSP request and verifies the signer certificate. The signer
12480 certificate is just checked for a generic purpose and OCSP request
12481 trust settings.
12482
12483 *Steve Henson*
12484
12485 * Add OCSP_check_validity() function to check the validity of OCSP
12486 responses. OCSP responses are prepared in real time and may only
12487 be a few seconds old. Simply checking that the current time lies
12488 between thisUpdate and nextUpdate max reject otherwise valid responses
12489 caused by either OCSP responder or client clock inaccuracy. Instead
12490 we allow thisUpdate and nextUpdate to fall within a certain period of
12491 the current time. The age of the response can also optionally be
12492 checked. Two new options -validity_period and -status_age added to
12493 ocsp utility.
12494
12495 *Steve Henson*
12496
12497 * If signature or public key algorithm is unrecognized print out its
12498 OID rather that just UNKNOWN.
12499
12500 *Steve Henson*
12501
12502 * Change OCSP_cert_to_id() to tolerate a NULL subject certificate and
12503 OCSP_cert_id_new() a NULL serialNumber. This allows a partial certificate
12504 ID to be generated from the issuer certificate alone which can then be
12505 passed to OCSP_id_issuer_cmp().
12506
12507 *Steve Henson*
12508
12509 * New compilation option ASN1_ITEM_FUNCTIONS. This causes the new
12510 ASN1 modules to export functions returning ASN1_ITEM pointers
12511 instead of the ASN1_ITEM structures themselves. This adds several
12512 new macros which allow the underlying ASN1 function/structure to
12513 be accessed transparently. As a result code should not use ASN1_ITEM
12514 references directly (such as &X509_it) but instead use the relevant
12515 macros (such as ASN1_ITEM_rptr(X509)). This option is to allow
12516 use of the new ASN1 code on platforms where exporting structures
12517 is problematical (for example in shared libraries) but exporting
12518 functions returning pointers to structures is not.
12519
12520 *Steve Henson*
12521
12522 * Add support for overriding the generation of SSL/TLS session IDs.
12523 These callbacks can be registered either in an SSL_CTX or per SSL.
12524 The purpose of this is to allow applications to control, if they wish,
12525 the arbitrary values chosen for use as session IDs, particularly as it
12526 can be useful for session caching in multiple-server environments. A
12527 command-line switch for testing this (and any client code that wishes
12528 to use such a feature) has been added to "s_server".
12529
12530 *Geoff Thorpe, Lutz Jaenicke*
12531
12532 * Modify mkdef.pl to recognise and parse preprocessor conditionals
1dc1ea18
DDO
12533 of the form `#if defined(...) || defined(...) || ...` and
12534 `#if !defined(...) && !defined(...) && ...`. This also avoids
5f8e6c50
DMSP
12535 the growing number of special cases it was previously handling.
12536
12537 *Richard Levitte*
12538
12539 * Make all configuration macros available for application by making
12540 sure they are available in opensslconf.h, by giving them names starting
257e9d03 12541 with `OPENSSL_` to avoid conflicts with other packages and by making
5f8e6c50
DMSP
12542 sure e_os2.h will cover all platform-specific cases together with
12543 opensslconf.h.
12544 Additionally, it is now possible to define configuration/platform-
12545 specific names (called "system identities"). In the C code, these
257e9d03
RS
12546 are prefixed with `OPENSSL_SYSNAME_`. e_os2.h will create another
12547 macro with the name beginning with `OPENSSL_SYS_`, which is determined
12548 from `OPENSSL_SYSNAME_*` or compiler-specific macros depending on
5f8e6c50
DMSP
12549 what is available.
12550
12551 *Richard Levitte*
12552
12553 * New option -set_serial to 'req' and 'x509' this allows the serial
12554 number to use to be specified on the command line. Previously self
12555 signed certificates were hard coded with serial number 0 and the
12556 CA options of 'x509' had to use a serial number in a file which was
12557 auto incremented.
12558
12559 *Steve Henson*
12560
12561 * New options to 'ca' utility to support V2 CRL entry extensions.
12562 Currently CRL reason, invalidity date and hold instruction are
12563 supported. Add new CRL extensions to V3 code and some new objects.
12564
12565 *Steve Henson*
12566
12567 * New function EVP_CIPHER_CTX_set_padding() this is used to
12568 disable standard block padding (aka PKCS#5 padding) in the EVP
12569 API, which was previously mandatory. This means that the data is
12570 not padded in any way and so the total length much be a multiple
12571 of the block size, otherwise an error occurs.
12572
12573 *Steve Henson*
12574
12575 * Initial (incomplete) OCSP SSL support.
12576
12577 *Steve Henson*
12578
12579 * New function OCSP_parse_url(). This splits up a URL into its host,
12580 port and path components: primarily to parse OCSP URLs. New -url
12581 option to ocsp utility.
12582
12583 *Steve Henson*
12584
12585 * New nonce behavior. The return value of OCSP_check_nonce() now
12586 reflects the various checks performed. Applications can decide
12587 whether to tolerate certain situations such as an absent nonce
12588 in a response when one was present in a request: the ocsp application
12589 just prints out a warning. New function OCSP_add1_basic_nonce()
12590 this is to allow responders to include a nonce in a response even if
12591 the request is nonce-less.
12592
12593 *Steve Henson*
12594
12595 * Disable stdin buffering in load_cert (apps/apps.c) so that no certs are
12596 skipped when using openssl x509 multiple times on a single input file,
257e9d03 12597 e.g. `(openssl x509 -out cert1; openssl x509 -out cert2) <certs`.
5f8e6c50
DMSP
12598
12599 *Bodo Moeller*
12600
12601 * Make ASN1_UTCTIME_set_string() and ASN1_GENERALIZEDTIME_set_string()
12602 set string type: to handle setting ASN1_TIME structures. Fix ca
12603 utility to correctly initialize revocation date of CRLs.
12604
12605 *Steve Henson*
12606
12607 * New option SSL_OP_CIPHER_SERVER_PREFERENCE allows the server to override
12608 the clients preferred ciphersuites and rather use its own preferences.
12609 Should help to work around M$ SGC (Server Gated Cryptography) bug in
12610 Internet Explorer by ensuring unchanged hash method during stepup.
12611 (Also replaces the broken/deactivated SSL_OP_NON_EXPORT_FIRST option.)
12612
12613 *Lutz Jaenicke*
12614
12615 * Make mkdef.pl recognise all DECLARE_ASN1 macros, change rijndael
12616 to aes and add a new 'exist' option to print out symbols that don't
12617 appear to exist.
12618
12619 *Steve Henson*
12620
12621 * Additional options to ocsp utility to allow flags to be set and
12622 additional certificates supplied.
12623
12624 *Steve Henson*
12625
12626 * Add the option -VAfile to 'openssl ocsp', so the user can give the
12627 OCSP client a number of certificate to only verify the response
12628 signature against.
12629
12630 *Richard Levitte*
12631
12632 * Update Rijndael code to version 3.0 and change EVP AES ciphers to
12633 handle the new API. Currently only ECB, CBC modes supported. Add new
12634 AES OIDs.
12635
12636 Add TLS AES ciphersuites as described in RFC3268, "Advanced
12637 Encryption Standard (AES) Ciphersuites for Transport Layer
12638 Security (TLS)". (In beta versions of OpenSSL 0.9.7, these were
12639 not enabled by default and were not part of the "ALL" ciphersuite
12640 alias because they were not yet official; they could be
12641 explicitly requested by specifying the "AESdraft" ciphersuite
12642 group alias. In the final release of OpenSSL 0.9.7, the group
12643 alias is called "AES" and is part of "ALL".)
12644
12645 *Ben Laurie, Steve Henson, Bodo Moeller*
12646
12647 * New function OCSP_copy_nonce() to copy nonce value (if present) from
12648 request to response.
12649
12650 *Steve Henson*
12651
12652 * Functions for OCSP responders. OCSP_request_onereq_count(),
12653 OCSP_request_onereq_get0(), OCSP_onereq_get0_id() and OCSP_id_get0_info()
12654 extract information from a certificate request. OCSP_response_create()
12655 creates a response and optionally adds a basic response structure.
12656 OCSP_basic_add1_status() adds a complete single response to a basic
12657 response and returns the OCSP_SINGLERESP structure just added (to allow
12658 extensions to be included for example). OCSP_basic_add1_cert() adds a
12659 certificate to a basic response and OCSP_basic_sign() signs a basic
12660 response with various flags. New helper functions ASN1_TIME_check()
12661 (checks validity of ASN1_TIME structure) and ASN1_TIME_to_generalizedtime()
12662 (converts ASN1_TIME to GeneralizedTime).
12663
12664 *Steve Henson*
12665
12666 * Various new functions. EVP_Digest() combines EVP_Digest{Init,Update,Final}()
12667 in a single operation. X509_get0_pubkey_bitstr() extracts the public_key
12668 structure from a certificate. X509_pubkey_digest() digests the public_key
12669 contents: this is used in various key identifiers.
12670
12671 *Steve Henson*
12672
12673 * Make sk_sort() tolerate a NULL argument.
12674
12675 *Steve Henson reported by Massimiliano Pala <madwolf@comune.modena.it>*
12676
12677 * New OCSP verify flag OCSP_TRUSTOTHER. When set the "other" certificates
12678 passed by the function are trusted implicitly. If any of them signed the
12679 response then it is assumed to be valid and is not verified.
12680
12681 *Steve Henson*
12682
12683 * In PKCS7_set_type() initialise content_type in PKCS7_ENC_CONTENT
12684 to data. This was previously part of the PKCS7 ASN1 code. This
12685 was causing problems with OpenSSL created PKCS#12 and PKCS#7 structures.
12686 *Steve Henson, reported by Kenneth R. Robinette
12687 <support@securenetterm.com>*
12688
12689 * Add CRYPTO_push_info() and CRYPTO_pop_info() calls to new ASN1
12690 routines: without these tracing memory leaks is very painful.
12691 Fix leaks in PKCS12 and PKCS7 routines.
12692
12693 *Steve Henson*
12694
12695 * Make X509_time_adj() cope with the new behaviour of ASN1_TIME_new().
12696 Previously it initialised the 'type' argument to V_ASN1_UTCTIME which
12697 effectively meant GeneralizedTime would never be used. Now it
12698 is initialised to -1 but X509_time_adj() now has to check the value
12699 and use ASN1_TIME_set() if the value is not V_ASN1_UTCTIME or
12700 V_ASN1_GENERALIZEDTIME, without this it always uses GeneralizedTime.
12701 *Steve Henson, reported by Kenneth R. Robinette
12702 <support@securenetterm.com>*
12703
12704 * Fixes to BN_to_ASN1_INTEGER when bn is zero. This would previously
12705 result in a zero length in the ASN1_INTEGER structure which was
12706 not consistent with the structure when d2i_ASN1_INTEGER() was used
12707 and would cause ASN1_INTEGER_cmp() to fail. Enhance s2i_ASN1_INTEGER()
12708 to cope with hex and negative integers. Fix bug in i2a_ASN1_INTEGER()
12709 where it did not print out a minus for negative ASN1_INTEGER.
12710
12711 *Steve Henson*
12712
12713 * Add summary printout to ocsp utility. The various functions which
12714 convert status values to strings have been renamed to:
12715 OCSP_response_status_str(), OCSP_cert_status_str() and
12716 OCSP_crl_reason_str() and are no longer static. New options
12717 to verify nonce values and to disable verification. OCSP response
12718 printout format cleaned up.
12719
12720 *Steve Henson*
12721
12722 * Add additional OCSP certificate checks. These are those specified
12723 in RFC2560. This consists of two separate checks: the CA of the
12724 certificate being checked must either be the OCSP signer certificate
12725 or the issuer of the OCSP signer certificate. In the latter case the
12726 OCSP signer certificate must contain the OCSP signing extended key
12727 usage. This check is performed by attempting to match the OCSP
12728 signer or the OCSP signer CA to the issuerNameHash and issuerKeyHash
12729 in the OCSP_CERTID structures of the response.
12730
12731 *Steve Henson*
12732
12733 * Initial OCSP certificate verification added to OCSP_basic_verify()
12734 and related routines. This uses the standard OpenSSL certificate
12735 verify routines to perform initial checks (just CA validity) and
12736 to obtain the certificate chain. Then additional checks will be
12737 performed on the chain. Currently the root CA is checked to see
12738 if it is explicitly trusted for OCSP signing. This is used to set
12739 a root CA as a global signing root: that is any certificate that
12740 chains to that CA is an acceptable OCSP signing certificate.
12741
12742 *Steve Henson*
12743
12744 * New '-extfile ...' option to 'openssl ca' for reading X.509v3
12745 extensions from a separate configuration file.
12746 As when reading extensions from the main configuration file,
12747 the '-extensions ...' option may be used for specifying the
12748 section to use.
12749
12750 *Massimiliano Pala <madwolf@comune.modena.it>*
12751
12752 * New OCSP utility. Allows OCSP requests to be generated or
12753 read. The request can be sent to a responder and the output
44652c16 12754 parsed, outputted or printed in text form. Not complete yet:
5f8e6c50
DMSP
12755 still needs to check the OCSP response validity.
12756
12757 *Steve Henson*
12758
12759 * New subcommands for 'openssl ca':
257e9d03 12760 `openssl ca -status <serial>` prints the status of the cert with
5f8e6c50 12761 the given serial number (according to the index file).
257e9d03 12762 `openssl ca -updatedb` updates the expiry status of certificates
5f8e6c50
DMSP
12763 in the index file.
12764
12765 *Massimiliano Pala <madwolf@comune.modena.it>*
12766
12767 * New '-newreq-nodes' command option to CA.pl. This is like
12768 '-newreq', but calls 'openssl req' with the '-nodes' option
12769 so that the resulting key is not encrypted.
12770
12771 *Damien Miller <djm@mindrot.org>*
12772
12773 * New configuration for the GNU Hurd.
12774
12775 *Jonathan Bartlett <johnnyb@wolfram.com> via Richard Levitte*
12776
12777 * Initial code to implement OCSP basic response verify. This
12778 is currently incomplete. Currently just finds the signer's
12779 certificate and verifies the signature on the response.
12780
12781 *Steve Henson*
12782
12783 * New SSLeay_version code SSLEAY_DIR to determine the compiled-in
12784 value of OPENSSLDIR. This is available via the new '-d' option
12785 to 'openssl version', and is also included in 'openssl version -a'.
12786
12787 *Bodo Moeller*
12788
12789 * Allowing defining memory allocation callbacks that will be given
12790 file name and line number information in additional arguments
257e9d03 12791 (a `const char*` and an int). The basic functionality remains, as
5f8e6c50
DMSP
12792 well as the original possibility to just replace malloc(),
12793 realloc() and free() by functions that do not know about these
12794 additional arguments. To register and find out the current
12795 settings for extended allocation functions, the following
12796 functions are provided:
12797
12798 CRYPTO_set_mem_ex_functions
12799 CRYPTO_set_locked_mem_ex_functions
12800 CRYPTO_get_mem_ex_functions
12801 CRYPTO_get_locked_mem_ex_functions
12802
12803 These work the same way as CRYPTO_set_mem_functions and friends.
257e9d03 12804 `CRYPTO_get_[locked_]mem_functions` now writes 0 where such an
5f8e6c50 12805 extended allocation function is enabled.
257e9d03 12806 Similarly, `CRYPTO_get_[locked_]mem_ex_functions` writes 0 where
5f8e6c50
DMSP
12807 a conventional allocation function is enabled.
12808
12809 *Richard Levitte, Bodo Moeller*
12810
12811 * Finish off removing the remaining LHASH function pointer casts.
12812 There should no longer be any prototype-casting required when using
12813 the LHASH abstraction, and any casts that remain are "bugs". See
12814 the callback types and macros at the head of lhash.h for details
12815 (and "OBJ_cleanup" in crypto/objects/obj_dat.c as an example).
12816
12817 *Geoff Thorpe*
12818
12819 * Add automatic query of EGD sockets in RAND_poll() for the unix variant.
12820 If /dev/[u]random devices are not available or do not return enough
12821 entropy, EGD style sockets (served by EGD or PRNGD) will automatically
12822 be queried.
12823 The locations /var/run/egd-pool, /dev/egd-pool, /etc/egd-pool, and
12824 /etc/entropy will be queried once each in this sequence, querying stops
12825 when enough entropy was collected without querying more sockets.
12826
12827 *Lutz Jaenicke*
12828
12829 * Change the Unix RAND_poll() variant to be able to poll several
12830 random devices, as specified by DEVRANDOM, until a sufficient amount
12831 of data has been collected. We spend at most 10 ms on each file
12832 (select timeout) and read in non-blocking mode. DEVRANDOM now
12833 defaults to the list "/dev/urandom", "/dev/random", "/dev/srandom"
12834 (previously it was just the string "/dev/urandom"), so on typical
12835 platforms the 10 ms delay will never occur.
12836 Also separate out the Unix variant to its own file, rand_unix.c.
12837 For VMS, there's a currently-empty rand_vms.c.
12838
12839 *Richard Levitte*
12840
12841 * Move OCSP client related routines to ocsp_cl.c. These
12842 provide utility functions which an application needing
12843 to issue a request to an OCSP responder and analyse the
12844 response will typically need: as opposed to those which an
12845 OCSP responder itself would need which will be added later.
12846
12847 OCSP_request_sign() signs an OCSP request with an API similar
12848 to PKCS7_sign(). OCSP_response_status() returns status of OCSP
12849 response. OCSP_response_get1_basic() extracts basic response
12850 from response. OCSP_resp_find_status(): finds and extracts status
12851 information from an OCSP_CERTID structure (which will be created
12852 when the request structure is built). These are built from lower
12853 level functions which work on OCSP_SINGLERESP structures but
12854 won't normally be used unless the application wishes to examine
12855 extensions in the OCSP response for example.
12856
12857 Replace nonce routines with a pair of functions.
12858 OCSP_request_add1_nonce() adds a nonce value and optionally
12859 generates a random value. OCSP_check_nonce() checks the
12860 validity of the nonce in an OCSP response.
12861
12862 *Steve Henson*
12863
12864 * Change function OCSP_request_add() to OCSP_request_add0_id().
12865 This doesn't copy the supplied OCSP_CERTID and avoids the
12866 need to free up the newly created id. Change return type
12867 to OCSP_ONEREQ to return the internal OCSP_ONEREQ structure.
12868 This can then be used to add extensions to the request.
12869 Deleted OCSP_request_new(), since most of its functionality
12870 is now in OCSP_REQUEST_new() (and the case insensitive name
12871 clash) apart from the ability to set the request name which
12872 will be added elsewhere.
12873
12874 *Steve Henson*
12875
12876 * Update OCSP API. Remove obsolete extensions argument from
12877 various functions. Extensions are now handled using the new
12878 OCSP extension code. New simple OCSP HTTP function which
12879 can be used to send requests and parse the response.
12880
12881 *Steve Henson*
12882
12883 * Fix the PKCS#7 (S/MIME) code to work with new ASN1. Two new
12884 ASN1_ITEM structures help with sign and verify. PKCS7_ATTR_SIGN
12885 uses the special reorder version of SET OF to sort the attributes
12886 and reorder them to match the encoded order. This resolves a long
12887 standing problem: a verify on a PKCS7 structure just after signing
12888 it used to fail because the attribute order did not match the
12889 encoded order. PKCS7_ATTR_VERIFY does not reorder the attributes:
12890 it uses the received order. This is necessary to tolerate some broken
12891 software that does not order SET OF. This is handled by encoding
12892 as a SEQUENCE OF but using implicit tagging (with UNIVERSAL class)
12893 to produce the required SET OF.
12894
12895 *Steve Henson*
12896
12897 * Have mk1mf.pl generate the macros OPENSSL_BUILD_SHLIBCRYPTO and
12898 OPENSSL_BUILD_SHLIBSSL and use them appropriately in the header
12899 files to get correct declarations of the ASN.1 item variables.
12900
12901 *Richard Levitte*
12902
12903 * Rewrite of PKCS#12 code to use new ASN1 functionality. Replace many
12904 PKCS#12 macros with real functions. Fix two unrelated ASN1 bugs:
12905 asn1_check_tlen() would sometimes attempt to use 'ctx' when it was
12906 NULL and ASN1_TYPE was not dereferenced properly in asn1_ex_c2i().
12907 New ASN1 macro: DECLARE_ASN1_ITEM() which just declares the relevant
12908 ASN1_ITEM and no wrapper functions.
12909
12910 *Steve Henson*
12911
12912 * New functions or ASN1_item_d2i_fp() and ASN1_item_d2i_bio(). These
12913 replace the old function pointer based I/O routines. Change most of
257e9d03 12914 the `*_d2i_bio()` and `*_d2i_fp()` functions to use these.
5f8e6c50
DMSP
12915
12916 *Steve Henson*
12917
12918 * Enhance mkdef.pl to be more accepting about spacing in C preprocessor
12919 lines, recognize more "algorithms" that can be deselected, and make
12920 it complain about algorithm deselection that isn't recognised.
12921
12922 *Richard Levitte*
12923
12924 * New ASN1 functions to handle dup, sign, verify, digest, pack and
12925 unpack operations in terms of ASN1_ITEM. Modify existing wrappers
12926 to use new functions. Add NO_ASN1_OLD which can be set to remove
12927 some old style ASN1 functions: this can be used to determine if old
12928 code will still work when these eventually go away.
12929
12930 *Steve Henson*
12931
12932 * New extension functions for OCSP structures, these follow the
12933 same conventions as certificates and CRLs.
12934
12935 *Steve Henson*
12936
12937 * New function X509V3_add1_i2d(). This automatically encodes and
12938 adds an extension. Its behaviour can be customised with various
12939 flags to append, replace or delete. Various wrappers added for
12940 certificates and CRLs.
12941
12942 *Steve Henson*
12943
12944 * Fix to avoid calling the underlying ASN1 print routine when
12945 an extension cannot be parsed. Correct a typo in the
12946 OCSP_SERVICELOC extension. Tidy up print OCSP format.
12947
12948 *Steve Henson*
12949
12950 * Make mkdef.pl parse some of the ASN1 macros and add appropriate
12951 entries for variables.
12952
12953 *Steve Henson*
12954
12955 * Add functionality to apps/openssl.c for detecting locking
12956 problems: As the program is single-threaded, all we have
12957 to do is register a locking callback using an array for
12958 storing which locks are currently held by the program.
12959
12960 *Bodo Moeller*
12961
12962 * Use a lock around the call to CRYPTO_get_ex_new_index() in
12963 SSL_get_ex_data_X509_STORE_idx(), which is used in
12964 ssl_verify_cert_chain() and thus can be called at any time
12965 during TLS/SSL handshakes so that thread-safety is essential.
12966 Unfortunately, the ex_data design is not at all suited
12967 for multi-threaded use, so it probably should be abolished.
12968
12969 *Bodo Moeller*
12970
12971 * Added Broadcom "ubsec" ENGINE to OpenSSL.
12972
12973 *Broadcom, tweaked and integrated by Geoff Thorpe*
12974
12975 * Move common extension printing code to new function
12976 X509V3_print_extensions(). Reorganise OCSP print routines and
12977 implement some needed OCSP ASN1 functions. Add OCSP extensions.
12978
12979 *Steve Henson*
12980
12981 * New function X509_signature_print() to remove duplication in some
12982 print routines.
12983
12984 *Steve Henson*
12985
12986 * Add a special meaning when SET OF and SEQUENCE OF flags are both
12987 set (this was treated exactly the same as SET OF previously). This
12988 is used to reorder the STACK representing the structure to match the
12989 encoding. This will be used to get round a problem where a PKCS7
12990 structure which was signed could not be verified because the STACK
12991 order did not reflect the encoded order.
12992
12993 *Steve Henson*
12994
12995 * Reimplement the OCSP ASN1 module using the new code.
12996
12997 *Steve Henson*
12998
12999 * Update the X509V3 code to permit the use of an ASN1_ITEM structure
13000 for its ASN1 operations. The old style function pointers still exist
13001 for now but they will eventually go away.
13002
13003 *Steve Henson*
13004
13005 * Merge in replacement ASN1 code from the ASN1 branch. This almost
13006 completely replaces the old ASN1 functionality with a table driven
13007 encoder and decoder which interprets an ASN1_ITEM structure describing
13008 the ASN1 module. Compatibility with the existing ASN1 API (i2d,d2i) is
13009 largely maintained. Almost all of the old asn1_mac.h macro based ASN1
13010 has also been converted to the new form.
13011
13012 *Steve Henson*
13013
13014 * Change BN_mod_exp_recp so that negative moduli are tolerated
13015 (the sign is ignored). Similarly, ignore the sign in BN_MONT_CTX_set
13016 so that BN_mod_exp_mont and BN_mod_exp_mont_word work
13017 for negative moduli.
13018
13019 *Bodo Moeller*
13020
13021 * Fix BN_uadd and BN_usub: Always return non-negative results instead
13022 of not touching the result's sign bit.
13023
13024 *Bodo Moeller*
13025
13026 * BN_div bugfix: If the result is 0, the sign (res->neg) must not be
13027 set.
13028
13029 *Bodo Moeller*
13030
13031 * Changed the LHASH code to use prototypes for callbacks, and created
13032 macros to declare and implement thin (optionally static) functions
13033 that provide type-safety and avoid function pointer casting for the
13034 type-specific callbacks.
13035
13036 *Geoff Thorpe*
13037
13038 * Added Kerberos Cipher Suites to be used with TLS, as written in
13039 RFC 2712.
13040 *Veers Staats <staatsvr@asc.hpc.mil>,
257e9d03 13041 Jeffrey Altman <jaltman@columbia.edu>, via Richard Levitte*
5f8e6c50
DMSP
13042
13043 * Reformat the FAQ so the different questions and answers can be divided
13044 in sections depending on the subject.
13045
13046 *Richard Levitte*
13047
13048 * Have the zlib compression code load ZLIB.DLL dynamically under
13049 Windows.
13050
13051 *Richard Levitte*
13052
13053 * New function BN_mod_sqrt for computing square roots modulo a prime
13054 (using the probabilistic Tonelli-Shanks algorithm unless
13055 p == 3 (mod 4) or p == 5 (mod 8), which are cases that can
13056 be handled deterministically).
13057
13058 *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller*
13059
13060 * Make BN_mod_inverse faster by explicitly handling small quotients
13061 in the Euclid loop. (Speed gain about 20% for small moduli [256 or
13062 512 bits], about 30% for larger ones [1024 or 2048 bits].)
13063
13064 *Bodo Moeller*
13065
13066 * New function BN_kronecker.
13067
13068 *Bodo Moeller*
13069
13070 * Fix BN_gcd so that it works on negative inputs; the result is
13071 positive unless both parameters are zero.
13072 Previously something reasonably close to an infinite loop was
13073 possible because numbers could be growing instead of shrinking
13074 in the implementation of Euclid's algorithm.
13075
13076 *Bodo Moeller*
13077
13078 * Fix BN_is_word() and BN_is_one() macros to take into account the
13079 sign of the number in question.
13080
13081 Fix BN_is_word(a,w) to work correctly for w == 0.
13082
13083 The old BN_is_word(a,w) macro is now called BN_abs_is_word(a,w)
13084 because its test if the absolute value of 'a' equals 'w'.
13085 Note that BN_abs_is_word does *not* handle w == 0 reliably;
13086 it exists mostly for use in the implementations of BN_is_zero(),
13087 BN_is_one(), and BN_is_word().
13088
13089 *Bodo Moeller*
13090
13091 * New function BN_swap.
13092
13093 *Bodo Moeller*
13094
13095 * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that
13096 the exponentiation functions are more likely to produce reasonable
13097 results on negative inputs.
13098
13099 *Bodo Moeller*
13100
13101 * Change BN_mod_mul so that the result is always non-negative.
13102 Previously, it could be negative if one of the factors was negative;
13103 I don't think anyone really wanted that behaviour.
13104
13105 *Bodo Moeller*
13106
1dc1ea18
DDO
13107 * Move `BN_mod_...` functions into new file `crypto/bn/bn_mod.c`
13108 (except for exponentiation, which stays in `crypto/bn/bn_exp.c`,
13109 and `BN_mod_mul_reciprocal`, which stays in `crypto/bn/bn_recp.c`)
5f8e6c50
DMSP
13110 and add new functions:
13111
13112 BN_nnmod
13113 BN_mod_sqr
13114 BN_mod_add
13115 BN_mod_add_quick
13116 BN_mod_sub
13117 BN_mod_sub_quick
13118 BN_mod_lshift1
13119 BN_mod_lshift1_quick
13120 BN_mod_lshift
13121 BN_mod_lshift_quick
13122
13123 These functions always generate non-negative results.
13124
1dc1ea18
DDO
13125 `BN_nnmod` otherwise is `like BN_mod` (if `BN_mod` computes a remainder `r`
13126 such that `|m| < r < 0`, `BN_nnmod` will output `rem + |m|` instead).
5f8e6c50 13127
1dc1ea18
DDO
13128 `BN_mod_XXX_quick(r, a, [b,] m)` generates the same result as
13129 `BN_mod_XXX(r, a, [b,] m, ctx)`, but requires that `a` [and `b`]
13130 be reduced modulo `m`.
5f8e6c50
DMSP
13131
13132 *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller*
13133
1dc1ea18 13134<!--
5f8e6c50
DMSP
13135 The following entry accidentally appeared in the CHANGES file
13136 distributed with OpenSSL 0.9.7. The modifications described in
13137 it do *not* apply to OpenSSL 0.9.7.
13138
13139 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
13140 was actually never needed) and in BN_mul(). The removal in BN_mul()
13141 required a small change in bn_mul_part_recursive() and the addition
13142 of the functions bn_cmp_part_words(), bn_sub_part_words() and
13143 bn_add_part_words(), which do the same thing as bn_cmp_words(),
13144 bn_sub_words() and bn_add_words() except they take arrays with
13145 differing sizes.
13146
13147 *Richard Levitte*
1dc1ea18 13148-->
5f8e6c50
DMSP
13149
13150 * In 'openssl passwd', verify passwords read from the terminal
13151 unless the '-salt' option is used (which usually means that
13152 verification would just waste user's time since the resulting
13153 hash is going to be compared with some given password hash)
13154 or the new '-noverify' option is used.
13155
13156 This is an incompatible change, but it does not affect
13157 non-interactive use of 'openssl passwd' (passwords on the command
13158 line, '-stdin' option, '-in ...' option) and thus should not
13159 cause any problems.
13160
13161 *Bodo Moeller*
13162
13163 * Remove all references to RSAref, since there's no more need for it.
13164
13165 *Richard Levitte*
13166
13167 * Make DSO load along a path given through an environment variable
13168 (SHLIB_PATH) with shl_load().
13169
13170 *Richard Levitte*
13171
13172 * Constify the ENGINE code as a result of BIGNUM constification.
13173 Also constify the RSA code and most things related to it. In a
13174 few places, most notable in the depth of the ASN.1 code, ugly
13175 casts back to non-const were required (to be solved at a later
13176 time)
13177
13178 *Richard Levitte*
13179
13180 * Make it so the openssl application has all engines loaded by default.
13181
13182 *Richard Levitte*
13183
13184 * Constify the BIGNUM routines a little more.
13185
13186 *Richard Levitte*
13187
13188 * Add the following functions:
13189
13190 ENGINE_load_cswift()
13191 ENGINE_load_chil()
13192 ENGINE_load_atalla()
13193 ENGINE_load_nuron()
13194 ENGINE_load_builtin_engines()
13195
13196 That way, an application can itself choose if external engines that
13197 are built-in in OpenSSL shall ever be used or not. The benefit is
13198 that applications won't have to be linked with libdl or other dso
13199 libraries unless it's really needed.
13200
13201 Changed 'openssl engine' to load all engines on demand.
13202 Changed the engine header files to avoid the duplication of some
13203 declarations (they differed!).
13204
13205 *Richard Levitte*
13206
13207 * 'openssl engine' can now list capabilities.
13208
13209 *Richard Levitte*
13210
13211 * Better error reporting in 'openssl engine'.
13212
13213 *Richard Levitte*
13214
13215 * Never call load_dh_param(NULL) in s_server.
13216
13217 *Bodo Moeller*
13218
13219 * Add engine application. It can currently list engines by name and
13220 identity, and test if they are actually available.
13221
13222 *Richard Levitte*
13223
13224 * Improve RPM specification file by forcing symbolic linking and making
13225 sure the installed documentation is also owned by root.root.
13226
13227 *Damien Miller <djm@mindrot.org>*
13228
13229 * Give the OpenSSL applications more possibilities to make use of
13230 keys (public as well as private) handled by engines.
13231
13232 *Richard Levitte*
13233
13234 * Add OCSP code that comes from CertCo.
13235
13236 *Richard Levitte*
13237
13238 * Add VMS support for the Rijndael code.
13239
13240 *Richard Levitte*
13241
13242 * Added untested support for Nuron crypto accelerator.
13243
13244 *Ben Laurie*
13245
13246 * Add support for external cryptographic devices. This code was
13247 previously distributed separately as the "engine" branch.
13248
13249 *Geoff Thorpe, Richard Levitte*
13250
13251 * Rework the filename-translation in the DSO code. It is now possible to
13252 have far greater control over how a "name" is turned into a filename
13253 depending on the operating environment and any oddities about the
13254 different shared library filenames on each system.
13255
13256 *Geoff Thorpe*
13257
13258 * Support threads on FreeBSD-elf in Configure.
13259
13260 *Richard Levitte*
13261
13262 * Fix for SHA1 assembly problem with MASM: it produces
13263 warnings about corrupt line number information when assembling
13264 with debugging information. This is caused by the overlapping
13265 of two sections.
13266
13267 *Bernd Matthes <mainbug@celocom.de>, Steve Henson*
13268
13269 * NCONF changes.
13270 NCONF_get_number() has no error checking at all. As a replacement,
257e9d03 13271 NCONF_get_number_e() is defined (`_e` for "error checking") and is
5f8e6c50
DMSP
13272 promoted strongly. The old NCONF_get_number is kept around for
13273 binary backward compatibility.
13274 Make it possible for methods to load from something other than a BIO,
13275 by providing a function pointer that is given a name instead of a BIO.
13276 For example, this could be used to load configuration data from an
13277 LDAP server.
13278
13279 *Richard Levitte*
13280
13281 * Fix for non blocking accept BIOs. Added new I/O special reason
13282 BIO_RR_ACCEPT to cover this case. Previously use of accept BIOs
13283 with non blocking I/O was not possible because no retry code was
13284 implemented. Also added new SSL code SSL_WANT_ACCEPT to cover
13285 this case.
13286
13287 *Steve Henson*
13288
13289 * Added the beginnings of Rijndael support.
13290
13291 *Ben Laurie*
13292
13293 * Fix for bug in DirectoryString mask setting. Add support for
13294 X509_NAME_print_ex() in 'req' and X509_print_ex() function
13295 to allow certificate printing to more controllable, additional
13296 'certopt' option to 'x509' to allow new printing options to be
13297 set.
13298
13299 *Steve Henson*
13300
13301 * Clean old EAY MD5 hack from e_os.h.
13302
13303 *Richard Levitte*
13304
257e9d03 13305### Changes between 0.9.6l and 0.9.6m [17 Mar 2004]
5f8e6c50
DMSP
13306
13307 * Fix null-pointer assignment in do_change_cipher_spec() revealed
d8dc8538 13308 by using the Codenomicon TLS Test Tool ([CVE-2004-0079])
5f8e6c50
DMSP
13309
13310 *Joe Orton, Steve Henson*
13311
257e9d03 13312### Changes between 0.9.6k and 0.9.6l [04 Nov 2003]
5f8e6c50
DMSP
13313
13314 * Fix additional bug revealed by the NISCC test suite:
13315
13316 Stop bug triggering large recursion when presented with
d8dc8538 13317 certain ASN.1 tags ([CVE-2003-0851])
5f8e6c50
DMSP
13318
13319 *Steve Henson*
13320
257e9d03 13321### Changes between 0.9.6j and 0.9.6k [30 Sep 2003]
5f8e6c50
DMSP
13322
13323 * Fix various bugs revealed by running the NISCC test suite:
13324
13325 Stop out of bounds reads in the ASN1 code when presented with
13326 invalid tags (CVE-2003-0543 and CVE-2003-0544).
13327
13328 If verify callback ignores invalid public key errors don't try to check
13329 certificate signature with the NULL public key.
13330
5f8e6c50
DMSP
13331 *Steve Henson*
13332
13333 * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate
13334 if the server requested one: as stated in TLS 1.0 and SSL 3.0
13335 specifications.
13336
13337 *Steve Henson*
13338
13339 * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional
13340 extra data after the compression methods not only for TLS 1.0
13341 but also for SSL 3.0 (as required by the specification).
13342
13343 *Bodo Moeller; problem pointed out by Matthias Loepfe*
13344
13345 * Change X509_certificate_type() to mark the key as exported/exportable
13346 when it's 512 *bits* long, not 512 bytes.
13347
13348 *Richard Levitte*
13349
257e9d03 13350### Changes between 0.9.6i and 0.9.6j [10 Apr 2003]
5f8e6c50
DMSP
13351
13352 * Countermeasure against the Klima-Pokorny-Rosa extension of
13353 Bleichbacher's attack on PKCS #1 v1.5 padding: treat
13354 a protocol version number mismatch like a decryption error
13355 in ssl3_get_client_key_exchange (ssl/s3_srvr.c).
13356
13357 *Bodo Moeller*
13358
13359 * Turn on RSA blinding by default in the default implementation
13360 to avoid a timing attack. Applications that don't want it can call
13361 RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING.
13362 They would be ill-advised to do so in most cases.
13363
13364 *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller*
13365
13366 * Change RSA blinding code so that it works when the PRNG is not
13367 seeded (in this case, the secret RSA exponent is abused as
13368 an unpredictable seed -- if it is not unpredictable, there
13369 is no point in blinding anyway). Make RSA blinding thread-safe
13370 by remembering the creator's thread ID in rsa->blinding and
13371 having all other threads use local one-time blinding factors
13372 (this requires more computation than sharing rsa->blinding, but
13373 avoids excessive locking; and if an RSA object is not shared
13374 between threads, blinding will still be very fast).
13375
13376 *Bodo Moeller*
13377
257e9d03 13378### Changes between 0.9.6h and 0.9.6i [19 Feb 2003]
5f8e6c50
DMSP
13379
13380 * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked
13381 via timing by performing a MAC computation even if incorrect
13382 block cipher padding has been found. This is a countermeasure
13383 against active attacks where the attacker has to distinguish
d8dc8538 13384 between bad padding and a MAC verification error. ([CVE-2003-0078])
5f8e6c50
DMSP
13385
13386 *Bodo Moeller; problem pointed out by Brice Canvel (EPFL),
13387 Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and
13388 Martin Vuagnoux (EPFL, Ilion)*
13389
257e9d03 13390### Changes between 0.9.6g and 0.9.6h [5 Dec 2002]
5f8e6c50
DMSP
13391
13392 * New function OPENSSL_cleanse(), which is used to cleanse a section of
13393 memory from its contents. This is done with a counter that will
13394 place alternating values in each byte. This can be used to solve
13395 two issues: 1) the removal of calls to memset() by highly optimizing
13396 compilers, and 2) cleansing with other values than 0, since those can
13397 be read through on certain media, for example a swap space on disk.
13398
13399 *Geoff Thorpe*
13400
13401 * Bugfix: client side session caching did not work with external caching,
13402 because the session->cipher setting was not restored when reloading
13403 from the external cache. This problem was masked, when
13404 SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG (part of SSL_OP_ALL) was set.
13405 (Found by Steve Haslam <steve@araqnid.ddts.net>.)
13406
13407 *Lutz Jaenicke*
13408
13409 * Fix client_certificate (ssl/s2_clnt.c): The permissible total
13410 length of the REQUEST-CERTIFICATE message is 18 .. 34, not 17 .. 33.
13411
13412 *Zeev Lieber <zeev-l@yahoo.com>*
13413
13414 * Undo an undocumented change introduced in 0.9.6e which caused
13415 repeated calls to OpenSSL_add_all_ciphers() and
13416 OpenSSL_add_all_digests() to be ignored, even after calling
13417 EVP_cleanup().
13418
13419 *Richard Levitte*
13420
13421 * Change the default configuration reader to deal with last line not
13422 being properly terminated.
13423
13424 *Richard Levitte*
13425
13426 * Change X509_NAME_cmp() so it applies the special rules on handling
13427 DN values that are of type PrintableString, as well as RDNs of type
13428 emailAddress where the value has the type ia5String.
13429
13430 *stefank@valicert.com via Richard Levitte*
13431
13432 * Add a SSL_SESS_CACHE_NO_INTERNAL_STORE flag to take over half
13433 the job SSL_SESS_CACHE_NO_INTERNAL_LOOKUP was inconsistently
13434 doing, define a new flag (SSL_SESS_CACHE_NO_INTERNAL) to be
13435 the bitwise-OR of the two for use by the majority of applications
13436 wanting this behaviour, and update the docs. The documented
13437 behaviour and actual behaviour were inconsistent and had been
13438 changing anyway, so this is more a bug-fix than a behavioural
13439 change.
13440
13441 *Geoff Thorpe, diagnosed by Nadav Har'El*
13442
13443 * Don't impose a 16-byte length minimum on session IDs in ssl/s3_clnt.c
13444 (the SSL 3.0 and TLS 1.0 specifications allow any length up to 32 bytes).
13445
13446 *Bodo Moeller*
13447
13448 * Fix initialization code race conditions in
13449 SSLv23_method(), SSLv23_client_method(), SSLv23_server_method(),
13450 SSLv2_method(), SSLv2_client_method(), SSLv2_server_method(),
13451 SSLv3_method(), SSLv3_client_method(), SSLv3_server_method(),
13452 TLSv1_method(), TLSv1_client_method(), TLSv1_server_method(),
13453 ssl2_get_cipher_by_char(),
13454 ssl3_get_cipher_by_char().
13455
13456 *Patrick McCormick <patrick@tellme.com>, Bodo Moeller*
13457
13458 * Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after
13459 the cached sessions are flushed, as the remove_cb() might use ex_data
13460 contents. Bug found by Sam Varshavchik <mrsam@courier-mta.com>
13461 (see [openssl.org #212]).
13462
13463 *Geoff Thorpe, Lutz Jaenicke*
13464
13465 * Fix typo in OBJ_txt2obj which incorrectly passed the content
13466 length, instead of the encoding length to d2i_ASN1_OBJECT.
13467
13468 *Steve Henson*
13469
257e9d03 13470### Changes between 0.9.6f and 0.9.6g [9 Aug 2002]
5f8e6c50
DMSP
13471
13472 * [In 0.9.6g-engine release:]
257e9d03 13473 Fix crypto/engine/vendor_defns/cswift.h for WIN32 (use `_stdcall`).
5f8e6c50
DMSP
13474
13475 *Lynn Gazis <lgazis@rainbow.com>*
13476
257e9d03 13477### Changes between 0.9.6e and 0.9.6f [8 Aug 2002]
5f8e6c50
DMSP
13478
13479 * Fix ASN1 checks. Check for overflow by comparing with LONG_MAX
13480 and get fix the header length calculation.
13481 *Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>,
257e9d03 13482 Alon Kantor <alonk@checkpoint.com> (and others), Steve Henson*
5f8e6c50
DMSP
13483
13484 * Use proper error handling instead of 'assertions' in buffer
13485 overflow checks added in 0.9.6e. This prevents DoS (the
13486 assertions could call abort()).
13487
13488 *Arne Ansper <arne@ats.cyber.ee>, Bodo Moeller*
13489
257e9d03 13490### Changes between 0.9.6d and 0.9.6e [30 Jul 2002]
5f8e6c50
DMSP
13491
13492 * Add various sanity checks to asn1_get_length() to reject
13493 the ASN1 length bytes if they exceed sizeof(long), will appear
13494 negative or the content length exceeds the length of the
13495 supplied buffer.
13496
13497 *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>*
13498
13499 * Fix cipher selection routines: ciphers without encryption had no flags
13500 for the cipher strength set and where therefore not handled correctly
13501 by the selection routines (PR #130).
13502
13503 *Lutz Jaenicke*
13504
13505 * Fix EVP_dsa_sha macro.
13506
13507 *Nils Larsch*
13508
13509 * New option
13510 SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
13511 for disabling the SSL 3.0/TLS 1.0 CBC vulnerability countermeasure
13512 that was added in OpenSSL 0.9.6d.
13513
13514 As the countermeasure turned out to be incompatible with some
13515 broken SSL implementations, the new option is part of SSL_OP_ALL.
13516 SSL_OP_ALL is usually employed when compatibility with weird SSL
13517 implementations is desired (e.g. '-bugs' option to 's_client' and
13518 's_server'), so the new option is automatically set in many
13519 applications.
13520
13521 *Bodo Moeller*
13522
13523 * Changes in security patch:
13524
13525 Changes marked "(CHATS)" were sponsored by the Defense Advanced
13526 Research Projects Agency (DARPA) and Air Force Research Laboratory,
13527 Air Force Materiel Command, USAF, under agreement number
13528 F30602-01-2-0537.
13529
13530 * Add various sanity checks to asn1_get_length() to reject
13531 the ASN1 length bytes if they exceed sizeof(long), will appear
13532 negative or the content length exceeds the length of the
d8dc8538 13533 supplied buffer. ([CVE-2002-0659])
5f8e6c50
DMSP
13534
13535 *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>*
13536
13537 * Assertions for various potential buffer overflows, not known to
13538 happen in practice.
13539
13540 *Ben Laurie (CHATS)*
13541
13542 * Various temporary buffers to hold ASCII versions of integers were
d8dc8538 13543 too small for 64 bit platforms. ([CVE-2002-0655])
257e9d03 13544 *Matthew Byng-Maddick <mbm@aldigital.co.uk> and Ben Laurie (CHATS)>*
5f8e6c50
DMSP
13545
13546 * Remote buffer overflow in SSL3 protocol - an attacker could
d8dc8538 13547 supply an oversized session ID to a client. ([CVE-2002-0656])
5f8e6c50 13548
44652c16 13549 *Ben Laurie (CHATS)*
5f8e6c50
DMSP
13550
13551 * Remote buffer overflow in SSL2 protocol - an attacker could
d8dc8538 13552 supply an oversized client master key. ([CVE-2002-0656])
5f8e6c50
DMSP
13553
13554 *Ben Laurie (CHATS)*
13555
257e9d03 13556### Changes between 0.9.6c and 0.9.6d [9 May 2002]
5f8e6c50
DMSP
13557
13558 * Fix crypto/asn1/a_sign.c so that 'parameters' is omitted (not
13559 encoded as NULL) with id-dsa-with-sha1.
13560
13561 *Nils Larsch <nla@trustcenter.de>; problem pointed out by Bodo Moeller*
13562
257e9d03 13563 * Check various `X509_...()` return values in apps/req.c.
5f8e6c50
DMSP
13564
13565 *Nils Larsch <nla@trustcenter.de>*
13566
13567 * Fix BASE64 decode (EVP_DecodeUpdate) for data with CR/LF ended lines:
13568 an end-of-file condition would erroneously be flagged, when the CRLF
13569 was just at the end of a processed block. The bug was discovered when
13570 processing data through a buffering memory BIO handing the data to a
13571 BASE64-decoding BIO. Bug fund and patch submitted by Pavel Tsekov
13572 <ptsekov@syntrex.com> and Nedelcho Stanev.
13573
13574 *Lutz Jaenicke*
13575
13576 * Implement a countermeasure against a vulnerability recently found
13577 in CBC ciphersuites in SSL 3.0/TLS 1.0: Send an empty fragment
13578 before application data chunks to avoid the use of known IVs
13579 with data potentially chosen by the attacker.
13580
13581 *Bodo Moeller*
13582
13583 * Fix length checks in ssl3_get_client_hello().
13584
13585 *Bodo Moeller*
13586
13587 * TLS/SSL library bugfix: use s->s3->in_read_app_data differently
13588 to prevent ssl3_read_internal() from incorrectly assuming that
13589 ssl3_read_bytes() found application data while handshake
13590 processing was enabled when in fact s->s3->in_read_app_data was
13591 merely automatically cleared during the initial handshake.
13592
13593 *Bodo Moeller; problem pointed out by Arne Ansper <arne@ats.cyber.ee>*
13594
13595 * Fix object definitions for Private and Enterprise: they were not
13596 recognized in their shortname (=lowercase) representation. Extend
13597 obj_dat.pl to issue an error when using undefined keywords instead
13598 of silently ignoring the problem (Svenning Sorensen
13599 <sss@sss.dnsalias.net>).
13600
13601 *Lutz Jaenicke*
13602
13603 * Fix DH_generate_parameters() so that it works for 'non-standard'
13604 generators, i.e. generators other than 2 and 5. (Previously, the
13605 code did not properly initialise the 'add' and 'rem' values to
13606 BN_generate_prime().)
13607
13608 In the new general case, we do not insist that 'generator' is
13609 actually a primitive root: This requirement is rather pointless;
13610 a generator of the order-q subgroup is just as good, if not
13611 better.
13612
13613 *Bodo Moeller*
13614
13615 * Map new X509 verification errors to alerts. Discovered and submitted by
13616 Tom Wu <tom@arcot.com>.
13617
13618 *Lutz Jaenicke*
13619
13620 * Fix ssl3_pending() (ssl/s3_lib.c) to prevent SSL_pending() from
13621 returning non-zero before the data has been completely received
13622 when using non-blocking I/O.
13623
13624 *Bodo Moeller; problem pointed out by John Hughes*
13625
13626 * Some of the ciphers missed the strength entry (SSL_LOW etc).
13627
13628 *Ben Laurie, Lutz Jaenicke*
13629
13630 * Fix bug in SSL_clear(): bad sessions were not removed (found by
13631 Yoram Zahavi <YoramZ@gilian.com>).
13632
13633 *Lutz Jaenicke*
13634
13635 * Add information about CygWin 1.3 and on, and preserve proper
13636 configuration for the versions before that.
13637
13638 *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte*
13639
13640 * Make removal from session cache (SSL_CTX_remove_session()) more robust:
13641 check whether we deal with a copy of a session and do not delete from
13642 the cache in this case. Problem reported by "Izhar Shoshani Levi"
13643 <izhar@checkpoint.com>.
13644
13645 *Lutz Jaenicke*
13646
13647 * Do not store session data into the internal session cache, if it
13648 is never intended to be looked up (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP
13649 flag is set). Proposed by Aslam <aslam@funk.com>.
13650
13651 *Lutz Jaenicke*
13652
13653 * Have ASN1_BIT_STRING_set_bit() really clear a bit when the requested
13654 value is 0.
13655
13656 *Richard Levitte*
13657
13658 * [In 0.9.6d-engine release:]
13659 Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
13660
13661 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
13662
13663 * Add the configuration target linux-s390x.
13664
13665 *Neale Ferguson <Neale.Ferguson@SoftwareAG-USA.com> via Richard Levitte*
13666
13667 * The earlier bugfix for the SSL3_ST_SW_HELLO_REQ_C case of
13668 ssl3_accept (ssl/s3_srvr.c) incorrectly used a local flag
13669 variable as an indication that a ClientHello message has been
13670 received. As the flag value will be lost between multiple
13671 invocations of ssl3_accept when using non-blocking I/O, the
13672 function may not be aware that a handshake has actually taken
13673 place, thus preventing a new session from being added to the
13674 session cache.
13675
13676 To avoid this problem, we now set s->new_session to 2 instead of
13677 using a local variable.
13678
13679 *Lutz Jaenicke, Bodo Moeller*
13680
13681 * Bugfix: Return -1 from ssl3_get_server_done (ssl3/s3_clnt.c)
13682 if the SSL_R_LENGTH_MISMATCH error is detected.
13683
13684 *Geoff Thorpe, Bodo Moeller*
13685
13686 * New 'shared_ldflag' column in Configure platform table.
13687
13688 *Richard Levitte*
13689
13690 * Fix EVP_CIPHER_mode macro.
13691
13692 *"Dan S. Camper" <dan@bti.net>*
13693
13694 * Fix ssl3_read_bytes (ssl/s3_pkt.c): To ignore messages of unknown
13695 type, we must throw them away by setting rr->length to 0.
13696
13697 *D P Chang <dpc@qualys.com>*
13698
257e9d03 13699### Changes between 0.9.6b and 0.9.6c [21 dec 2001]
5f8e6c50
DMSP
13700
13701 * Fix BN_rand_range bug pointed out by Dominikus Scherkl
13702 <Dominikus.Scherkl@biodata.com>. (The previous implementation
257e9d03
RS
13703 worked incorrectly for those cases where range = `10..._2` and
13704 `3*range` is two bits longer than range.)
5f8e6c50
DMSP
13705
13706 *Bodo Moeller*
13707
13708 * Only add signing time to PKCS7 structures if it is not already
13709 present.
13710
13711 *Steve Henson*
13712
13713 * Fix crypto/objects/objects.h: "ld-ce" should be "id-ce",
13714 OBJ_ld_ce should be OBJ_id_ce.
13715 Also some ip-pda OIDs in crypto/objects/objects.txt were
13716 incorrect (cf. RFC 3039).
13717
13718 *Matt Cooper, Frederic Giudicelli, Bodo Moeller*
13719
13720 * Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid()
13721 returns early because it has nothing to do.
13722
13723 *Andy Schneider <andy.schneider@bjss.co.uk>*
13724
13725 * [In 0.9.6c-engine release:]
13726 Fix mutex callback return values in crypto/engine/hw_ncipher.c.
13727
13728 *Andy Schneider <andy.schneider@bjss.co.uk>*
13729
13730 * [In 0.9.6c-engine release:]
13731 Add support for Cryptographic Appliance's keyserver technology.
13732 (Use engine 'keyclient')
13733
13734 *Cryptographic Appliances and Geoff Thorpe*
13735
13736 * Add a configuration entry for OS/390 Unix. The C compiler 'c89'
13737 is called via tools/c89.sh because arguments have to be
13738 rearranged (all '-L' options must appear before the first object
13739 modules).
13740
13741 *Richard Shapiro <rshapiro@abinitio.com>*
13742
13743 * [In 0.9.6c-engine release:]
13744 Add support for Broadcom crypto accelerator cards, backported
13745 from 0.9.7.
13746
13747 *Broadcom, Nalin Dahyabhai <nalin@redhat.com>, Mark Cox*
13748
13749 * [In 0.9.6c-engine release:]
13750 Add support for SureWare crypto accelerator cards from
13751 Baltimore Technologies. (Use engine 'sureware')
13752
13753 *Baltimore Technologies and Mark Cox*
13754
13755 * [In 0.9.6c-engine release:]
13756 Add support for crypto accelerator cards from Accelerated
13757 Encryption Processing, www.aep.ie. (Use engine 'aep')
13758
13759 *AEP Inc. and Mark Cox*
13760
13761 * Add a configuration entry for gcc on UnixWare.
13762
13763 *Gary Benson <gbenson@redhat.com>*
13764
13765 * Change ssl/s2_clnt.c and ssl/s2_srvr.c so that received handshake
13766 messages are stored in a single piece (fixed-length part and
13767 variable-length part combined) and fix various bugs found on the way.
13768
13769 *Bodo Moeller*
13770
13771 * Disable caching in BIO_gethostbyname(), directly use gethostbyname()
13772 instead. BIO_gethostbyname() does not know what timeouts are
13773 appropriate, so entries would stay in cache even when they have
13774 become invalid.
257e9d03 13775 *Bodo Moeller; problem pointed out by Rich Salz <rsalz@zolera.com>*
5f8e6c50
DMSP
13776
13777 * Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when
13778 faced with a pathologically small ClientHello fragment that does
13779 not contain client_version: Instead of aborting with an error,
13780 simply choose the highest available protocol version (i.e.,
13781 TLS 1.0 unless it is disabled). In practice, ClientHello
13782 messages are never sent like this, but this change gives us
13783 strictly correct behaviour at least for TLS.
13784
44652c16 13785 *Bodo Moeller*
5f8e6c50
DMSP
13786
13787 * Fix SSL handshake functions and SSL_clear() such that SSL_clear()
13788 never resets s->method to s->ctx->method when called from within
13789 one of the SSL handshake functions.
13790
13791 *Bodo Moeller; problem pointed out by Niko Baric*
13792
13793 * In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert
13794 (sent using the client's version number) if client_version is
13795 smaller than the protocol version in use. Also change
13796 ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if
13797 the client demanded SSL 3.0 but only TLS 1.0 is enabled; then
13798 the client will at least see that alert.
13799
13800 *Bodo Moeller*
13801
13802 * Fix ssl3_get_message (ssl/s3_both.c) to handle message fragmentation
13803 correctly.
13804
13805 *Bodo Moeller*
13806
13807 * Avoid infinite loop in ssl3_get_message (ssl/s3_both.c) if a
13808 client receives HelloRequest while in a handshake.
13809
13810 *Bodo Moeller; bug noticed by Andy Schneider <andy.schneider@bjss.co.uk>*
13811
13812 * Bugfix in ssl3_accept (ssl/s3_srvr.c): Case SSL3_ST_SW_HELLO_REQ_C
13813 should end in 'break', not 'goto end' which circumvents various
13814 cleanups done in state SSL_ST_OK. But session related stuff
13815 must be disabled for SSL_ST_OK in the case that we just sent a
13816 HelloRequest.
13817
13818 Also avoid some overhead by not calling ssl_init_wbio_buffer()
13819 before just sending a HelloRequest.
13820
13821 *Bodo Moeller, Eric Rescorla <ekr@rtfm.com>*
13822
13823 * Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don't
13824 reveal whether illegal block cipher padding was found or a MAC
13825 verification error occurred. (Neither SSLerr() codes nor alerts
13826 are directly visible to potential attackers, but the information
13827 may leak via logfiles.)
13828
13829 Similar changes are not required for the SSL 2.0 implementation
13830 because the number of padding bytes is sent in clear for SSL 2.0,
13831 and the extra bytes are just ignored. However ssl/s2_pkt.c
13832 failed to verify that the purported number of padding bytes is in
13833 the legal range.
13834
13835 *Bodo Moeller*
13836
13837 * Add OpenUNIX-8 support including shared libraries
13838 (Boyd Lynn Gerber <gerberb@zenez.com>).
13839
13840 *Lutz Jaenicke*
13841
13842 * Improve RSA_padding_check_PKCS1_OAEP() check again to avoid
13843 'wristwatch attack' using huge encoding parameters (cf.
13844 James H. Manger's CRYPTO 2001 paper). Note that the
13845 RSA_PKCS1_OAEP_PADDING case of RSA_private_decrypt() does not use
13846 encoding parameters and hence was not vulnerable.
13847
13848 *Bodo Moeller*
13849
13850 * BN_sqr() bug fix.
13851
13852 *Ulf Möller, reported by Jim Ellis <jim.ellis@cavium.com>*
13853
13854 * Rabin-Miller test analyses assume uniformly distributed witnesses,
13855 so use BN_pseudo_rand_range() instead of using BN_pseudo_rand()
13856 followed by modular reduction.
13857
13858 *Bodo Moeller; pointed out by Adam Young <AYoung1@NCSUS.JNJ.COM>*
13859
13860 * Add BN_pseudo_rand_range() with obvious functionality: BN_rand_range()
13861 equivalent based on BN_pseudo_rand() instead of BN_rand().
13862
13863 *Bodo Moeller*
13864
13865 * s3_srvr.c: allow sending of large client certificate lists (> 16 kB).
13866 This function was broken, as the check for a new client hello message
13867 to handle SGC did not allow these large messages.
13868 (Tracked down by "Douglas E. Engert" <deengert@anl.gov>.)
13869
13870 *Lutz Jaenicke*
13871
257e9d03 13872 * Add alert descriptions for TLSv1 to `SSL_alert_desc_string[_long]()`.
5f8e6c50
DMSP
13873
13874 *Lutz Jaenicke*
13875
13876 * Fix buggy behaviour of BIO_get_num_renegotiates() and BIO_ctrl()
13877 for BIO_C_GET_WRITE_BUF_SIZE ("Stephen Hinton" <shinton@netopia.com>).
13878
13879 *Lutz Jaenicke*
13880
13881 * Rework the configuration and shared library support for Tru64 Unix.
13882 The configuration part makes use of modern compiler features and
13883 still retains old compiler behavior for those that run older versions
13884 of the OS. The shared library support part includes a variant that
13885 uses the RPATH feature, and is available through the special
13886 configuration target "alpha-cc-rpath", which will never be selected
13887 automatically.
13888
13889 *Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> via Richard Levitte*
13890
13891 * In ssl3_get_key_exchange (ssl/s3_clnt.c), call ssl3_get_message()
13892 with the same message size as in ssl3_get_certificate_request().
13893 Otherwise, if no ServerKeyExchange message occurs, CertificateRequest
13894 messages might inadvertently be reject as too long.
13895
13896 *Petr Lampa <lampa@fee.vutbr.cz>*
13897
13898 * Enhanced support for IA-64 Unix platforms (well, Linux and HP-UX).
13899
13900 *Andy Polyakov*
13901
13902 * Modified SSL library such that the verify_callback that has been set
44652c16 13903 specifically for an SSL object with SSL_set_verify() is actually being
5f8e6c50
DMSP
13904 used. Before the change, a verify_callback set with this function was
13905 ignored and the verify_callback() set in the SSL_CTX at the time of
13906 the call was used. New function X509_STORE_CTX_set_verify_cb() introduced
13907 to allow the necessary settings.
13908
13909 *Lutz Jaenicke*
13910
13911 * Initialize static variable in crypto/dsa/dsa_lib.c and crypto/dh/dh_lib.c
13912 explicitly to NULL, as at least on Solaris 8 this seems not always to be
13913 done automatically (in contradiction to the requirements of the C
13914 standard). This made problems when used from OpenSSH.
13915
13916 *Lutz Jaenicke*
13917
13918 * In OpenSSL 0.9.6a and 0.9.6b, crypto/dh/dh_key.c ignored
13919 dh->length and always used
13920
13921 BN_rand_range(priv_key, dh->p).
13922
13923 BN_rand_range() is not necessary for Diffie-Hellman, and this
13924 specific range makes Diffie-Hellman unnecessarily inefficient if
13925 dh->length (recommended exponent length) is much smaller than the
13926 length of dh->p. We could use BN_rand_range() if the order of
13927 the subgroup was stored in the DH structure, but we only have
13928 dh->length.
13929
13930 So switch back to
13931
13932 BN_rand(priv_key, l, ...)
13933
13934 where 'l' is dh->length if this is defined, or BN_num_bits(dh->p)-1
13935 otherwise.
13936
13937 *Bodo Moeller*
13938
13939 * In
13940
13941 RSA_eay_public_encrypt
13942 RSA_eay_private_decrypt
13943 RSA_eay_private_encrypt (signing)
13944 RSA_eay_public_decrypt (signature verification)
13945
13946 (default implementations for RSA_public_encrypt,
13947 RSA_private_decrypt, RSA_private_encrypt, RSA_public_decrypt),
13948 always reject numbers >= n.
13949
13950 *Bodo Moeller*
13951
13952 * In crypto/rand/md_rand.c, use a new short-time lock CRYPTO_LOCK_RAND2
13953 to synchronize access to 'locking_thread'. This is necessary on
13954 systems where access to 'locking_thread' (an 'unsigned long'
13955 variable) is not atomic.
13956
13957 *Bodo Moeller*
13958
13959 * In crypto/rand/md_rand.c, set 'locking_thread' to current thread's ID
13960 *before* setting the 'crypto_lock_rand' flag. The previous code had
13961 a race condition if 0 is a valid thread ID.
13962
13963 *Travis Vitek <vitek@roguewave.com>*
13964
13965 * Add support for shared libraries under Irix.
13966
13967 *Albert Chin-A-Young <china@thewrittenword.com>*
13968
13969 * Add configuration option to build on Linux on both big-endian and
13970 little-endian MIPS.
13971
13972 *Ralf Baechle <ralf@uni-koblenz.de>*
13973
13974 * Add the possibility to create shared libraries on HP-UX.
13975
13976 *Richard Levitte*
13977
257e9d03 13978### Changes between 0.9.6a and 0.9.6b [9 Jul 2001]
5f8e6c50
DMSP
13979
13980 * Change ssleay_rand_bytes (crypto/rand/md_rand.c)
13981 to avoid a SSLeay/OpenSSL PRNG weakness pointed out by
13982 Markku-Juhani O. Saarinen <markku-juhani.saarinen@nokia.com>:
13983 PRNG state recovery was possible based on the output of
13984 one PRNG request appropriately sized to gain knowledge on
13985 'md' followed by enough consecutive 1-byte PRNG requests
13986 to traverse all of 'state'.
13987
13988 1. When updating 'md_local' (the current thread's copy of 'md')
13989 during PRNG output generation, hash all of the previous
13990 'md_local' value, not just the half used for PRNG output.
13991
13992 2. Make the number of bytes from 'state' included into the hash
13993 independent from the number of PRNG bytes requested.
13994
13995 The first measure alone would be sufficient to avoid
13996 Markku-Juhani's attack. (Actually it had never occurred
13997 to me that the half of 'md_local' used for chaining was the
13998 half from which PRNG output bytes were taken -- I had always
13999 assumed that the secret half would be used.) The second
14000 measure makes sure that additional data from 'state' is never
14001 mixed into 'md_local' in small portions; this heuristically
14002 further strengthens the PRNG.
14003
14004 *Bodo Moeller*
14005
14006 * Fix crypto/bn/asm/mips3.s.
14007
14008 *Andy Polyakov*
14009
14010 * When only the key is given to "enc", the IV is undefined. Print out
14011 an error message in this case.
14012
14013 *Lutz Jaenicke*
14014
14015 * Handle special case when X509_NAME is empty in X509 printing routines.
14016
14017 *Steve Henson*
14018
14019 * In dsa_do_verify (crypto/dsa/dsa_ossl.c), verify that r and s are
14020 positive and less than q.
14021
14022 *Bodo Moeller*
14023
257e9d03 14024 * Don't change `*pointer` in CRYPTO_add_lock() is add_lock_callback is
5f8e6c50
DMSP
14025 used: it isn't thread safe and the add_lock_callback should handle
14026 that itself.
14027
14028 *Paul Rose <Paul.Rose@bridge.com>*
14029
14030 * Verify that incoming data obeys the block size in
14031 ssl3_enc (ssl/s3_enc.c) and tls1_enc (ssl/t1_enc.c).
14032
14033 *Bodo Moeller*
14034
14035 * Fix OAEP check.
14036
14037 *Ulf Möller, Bodo Möller*
14038
14039 * The countermeasure against Bleichbacher's attack on PKCS #1 v1.5
14040 RSA encryption was accidentally removed in s3_srvr.c in OpenSSL 0.9.5
14041 when fixing the server behaviour for backwards-compatible 'client
14042 hello' messages. (Note that the attack is impractical against
14043 SSL 3.0 and TLS 1.0 anyway because length and version checking
14044 means that the probability of guessing a valid ciphertext is
14045 around 2^-40; see section 5 in Bleichenbacher's CRYPTO '98
14046 paper.)
14047
14048 Before 0.9.5, the countermeasure (hide the error by generating a
14049 random 'decryption result') did not work properly because
14050 ERR_clear_error() was missing, meaning that SSL_get_error() would
14051 detect the supposedly ignored error.
14052
14053 Both problems are now fixed.
14054
14055 *Bodo Moeller*
14056
14057 * In crypto/bio/bf_buff.c, increase DEFAULT_BUFFER_SIZE to 4096
14058 (previously it was 1024).
14059
14060 *Bodo Moeller*
14061
14062 * Fix for compatibility mode trust settings: ignore trust settings
14063 unless some valid trust or reject settings are present.
14064
14065 *Steve Henson*
14066
14067 * Fix for blowfish EVP: its a variable length cipher.
14068
14069 *Steve Henson*
14070
14071 * Fix various bugs related to DSA S/MIME verification. Handle missing
14072 parameters in DSA public key structures and return an error in the
14073 DSA routines if parameters are absent.
14074
14075 *Steve Henson*
14076
14077 * In versions up to 0.9.6, RAND_file_name() resorted to file ".rnd"
14078 in the current directory if neither $RANDFILE nor $HOME was set.
14079 RAND_file_name() in 0.9.6a returned NULL in this case. This has
14080 caused some confusion to Windows users who haven't defined $HOME.
14081 Thus RAND_file_name() is changed again: e_os.h can define a
14082 DEFAULT_HOME, which will be used if $HOME is not set.
14083 For Windows, we use "C:"; on other platforms, we still require
14084 environment variables.
14085
14086 * Move 'if (!initialized) RAND_poll()' into regions protected by
14087 CRYPTO_LOCK_RAND. This is not strictly necessary, but avoids
14088 having multiple threads call RAND_poll() concurrently.
14089
14090 *Bodo Moeller*
14091
14092 * In crypto/rand/md_rand.c, replace 'add_do_not_lock' flag by a
14093 combination of a flag and a thread ID variable.
14094 Otherwise while one thread is in ssleay_rand_bytes (which sets the
14095 flag), *other* threads can enter ssleay_add_bytes without obeying
14096 the CRYPTO_LOCK_RAND lock (and may even illegally release the lock
14097 that they do not hold after the first thread unsets add_do_not_lock).
14098
14099 *Bodo Moeller*
14100
14101 * Change bctest again: '-x' expressions are not available in all
14102 versions of 'test'.
14103
14104 *Bodo Moeller*
14105
257e9d03 14106### Changes between 0.9.6 and 0.9.6a [5 Apr 2001]
5f8e6c50
DMSP
14107
14108 * Fix a couple of memory leaks in PKCS7_dataDecode()
14109
14110 *Steve Henson, reported by Heyun Zheng <hzheng@atdsprint.com>*
14111
14112 * Change Configure and Makefiles to provide EXE_EXT, which will contain
14113 the default extension for executables, if any. Also, make the perl
14114 scripts that use symlink() to test if it really exists and use "cp"
14115 if it doesn't. All this made OpenSSL compilable and installable in
14116 CygWin.
14117
14118 *Richard Levitte*
14119
14120 * Fix for asn1_GetSequence() for indefinite length constructed data.
14121 If SEQUENCE is length is indefinite just set c->slen to the total
14122 amount of data available.
14123
14124 *Steve Henson, reported by shige@FreeBSD.org*
14125
14126 *This change does not apply to 0.9.7.*
14127
14128 * Change bctest to avoid here-documents inside command substitution
14129 (workaround for FreeBSD /bin/sh bug).
14130 For compatibility with Ultrix, avoid shell functions (introduced
14131 in the bctest version that searches along $PATH).
14132
14133 *Bodo Moeller*
14134
14135 * Rename 'des_encrypt' to 'des_encrypt1'. This avoids the clashes
14136 with des_encrypt() defined on some operating systems, like Solaris
14137 and UnixWare.
14138
14139 *Richard Levitte*
14140
14141 * Check the result of RSA-CRT (see D. Boneh, R. DeMillo, R. Lipton:
14142 On the Importance of Eliminating Errors in Cryptographic
14143 Computations, J. Cryptology 14 (2001) 2, 101-119,
257e9d03 14144 <http://theory.stanford.edu/~dabo/papers/faults.ps.gz>).
5f8e6c50
DMSP
14145
14146 *Ulf Moeller*
14147
14148 * MIPS assembler BIGNUM division bug fix.
14149
14150 *Andy Polyakov*
14151
14152 * Disabled incorrect Alpha assembler code.
14153
14154 *Richard Levitte*
14155
14156 * Fix PKCS#7 decode routines so they correctly update the length
14157 after reading an EOC for the EXPLICIT tag.
14158
14159 *Steve Henson*
14160
14161 *This change does not apply to 0.9.7.*
14162
14163 * Fix bug in PKCS#12 key generation routines. This was triggered
14164 if a 3DES key was generated with a 0 initial byte. Include
14165 PKCS12_BROKEN_KEYGEN compilation option to retain the old
14166 (but broken) behaviour.
14167
14168 *Steve Henson*
14169
14170 * Enhance bctest to search for a working bc along $PATH and print
14171 it when found.
14172
14173 *Tim Rice <tim@multitalents.net> via Richard Levitte*
14174
14175 * Fix memory leaks in err.c: free err_data string if necessary;
14176 don't write to the wrong index in ERR_set_error_data.
14177
14178 *Bodo Moeller*
14179
14180 * Implement ssl23_peek (analogous to ssl23_read), which previously
14181 did not exist.
14182
14183 *Bodo Moeller*
14184
257e9d03 14185 * Replace rdtsc with `_emit` statements for VC++ version 5.
5f8e6c50
DMSP
14186
14187 *Jeremy Cooper <jeremy@baymoo.org>*
14188
14189 * Make it possible to reuse SSLv2 sessions.
14190
14191 *Richard Levitte*
14192
14193 * In copy_email() check for >= 0 as a return value for
14194 X509_NAME_get_index_by_NID() since 0 is a valid index.
14195
14196 *Steve Henson reported by Massimiliano Pala <madwolf@opensca.org>*
14197
14198 * Avoid coredump with unsupported or invalid public keys by checking if
14199 X509_get_pubkey() fails in PKCS7_verify(). Fix memory leak when
14200 PKCS7_verify() fails with non detached data.
14201
14202 *Steve Henson*
14203
14204 * Don't use getenv in library functions when run as setuid/setgid.
14205 New function OPENSSL_issetugid().
14206
14207 *Ulf Moeller*
14208
14209 * Avoid false positives in memory leak detection code (crypto/mem_dbg.c)
14210 due to incorrect handling of multi-threading:
14211
14212 1. Fix timing glitch in the MemCheck_off() portion of CRYPTO_mem_ctrl().
14213
14214 2. Fix logical glitch in is_MemCheck_on() aka CRYPTO_is_mem_check_on().
14215
14216 3. Count how many times MemCheck_off() has been called so that
14217 nested use can be treated correctly. This also avoids
14218 inband-signalling in the previous code (which relied on the
14219 assumption that thread ID 0 is impossible).
14220
14221 *Bodo Moeller*
14222
14223 * Add "-rand" option also to s_client and s_server.
14224
14225 *Lutz Jaenicke*
14226
14227 * Fix CPU detection on Irix 6.x.
14228 *Kurt Hockenbury <khockenb@stevens-tech.edu> and
257e9d03 14229 "Bruce W. Forsberg" <bruce.forsberg@baesystems.com>*
5f8e6c50
DMSP
14230
14231 * Fix X509_NAME bug which produced incorrect encoding if X509_NAME
14232 was empty.
14233
14234 *Steve Henson*
14235
14236 *This change does not apply to 0.9.7.*
14237
14238 * Use the cached encoding of an X509_NAME structure rather than
14239 copying it. This is apparently the reason for the libsafe "errors"
14240 but the code is actually correct.
14241
14242 *Steve Henson*
14243
14244 * Add new function BN_rand_range(), and fix DSA_sign_setup() to prevent
14245 Bleichenbacher's DSA attack.
14246 Extend BN_[pseudo_]rand: As before, top=1 forces the highest two bits
14247 to be set and top=0 forces the highest bit to be set; top=-1 is new
14248 and leaves the highest bit random.
14249
14250 *Ulf Moeller, Bodo Moeller*
14251
257e9d03 14252 * In the `NCONF_...`-based implementations for `CONF_...` queries
5f8e6c50
DMSP
14253 (crypto/conf/conf_lib.c), if the input LHASH is NULL, avoid using
14254 a temporary CONF structure with the data component set to NULL
14255 (which gives segmentation faults in lh_retrieve).
14256 Instead, use NULL for the CONF pointer in CONF_get_string and
14257 CONF_get_number (which may use environment variables) and directly
14258 return NULL from CONF_get_section.
14259
14260 *Bodo Moeller*
14261
14262 * Fix potential buffer overrun for EBCDIC.
14263
14264 *Ulf Moeller*
14265
14266 * Tolerate nonRepudiation as being valid for S/MIME signing and certSign
14267 keyUsage if basicConstraints absent for a CA.
14268
14269 *Steve Henson*
14270
14271 * Make SMIME_write_PKCS7() write mail header values with a format that
14272 is more generally accepted (no spaces before the semicolon), since
14273 some programs can't parse those values properly otherwise. Also make
14274 sure BIO's that break lines after each write do not create invalid
14275 headers.
14276
14277 *Richard Levitte*
14278
14279 * Make the CRL encoding routines work with empty SEQUENCE OF. The
14280 macros previously used would not encode an empty SEQUENCE OF
14281 and break the signature.
14282
14283 *Steve Henson*
14284
14285 *This change does not apply to 0.9.7.*
14286
14287 * Zero the premaster secret after deriving the master secret in
14288 DH ciphersuites.
14289
14290 *Steve Henson*
14291
14292 * Add some EVP_add_digest_alias registrations (as found in
14293 OpenSSL_add_all_digests()) to SSL_library_init()
14294 aka OpenSSL_add_ssl_algorithms(). This provides improved
14295 compatibility with peers using X.509 certificates
14296 with unconventional AlgorithmIdentifier OIDs.
14297
14298 *Bodo Moeller*
14299
14300 * Fix for Irix with NO_ASM.
14301
14302 *"Bruce W. Forsberg" <bruce.forsberg@baesystems.com>*
14303
14304 * ./config script fixes.
14305
14306 *Ulf Moeller, Richard Levitte*
14307
14308 * Fix 'openssl passwd -1'.
14309
14310 *Bodo Moeller*
14311
14312 * Change PKCS12_key_gen_asc() so it can cope with non null
14313 terminated strings whose length is passed in the passlen
14314 parameter, for example from PEM callbacks. This was done
14315 by adding an extra length parameter to asc2uni().
14316
14317 *Steve Henson, reported by <oddissey@samsung.co.kr>*
14318
14319 * Fix C code generated by 'openssl dsaparam -C': If a BN_bin2bn
14320 call failed, free the DSA structure.
14321
14322 *Bodo Moeller*
14323
14324 * Fix to uni2asc() to cope with zero length Unicode strings.
14325 These are present in some PKCS#12 files.
14326
14327 *Steve Henson*
14328
14329 * Increase s2->wbuf allocation by one byte in ssl2_new (ssl/s2_lib.c).
14330 Otherwise do_ssl_write (ssl/s2_pkt.c) will write beyond buffer limits
14331 when writing a 32767 byte record.
14332
14333 *Bodo Moeller; problem reported by Eric Day <eday@concentric.net>*
14334
257e9d03
RS
14335 * In `RSA_eay_public_{en,ed}crypt` and RSA_eay_mod_exp (rsa_eay.c),
14336 obtain lock CRYPTO_LOCK_RSA before setting `rsa->_method_mod_{n,p,q}`.
5f8e6c50
DMSP
14337
14338 (RSA objects have a reference count access to which is protected
14339 by CRYPTO_LOCK_RSA [see rsa_lib.c, s3_srvr.c, ssl_cert.c, ssl_rsa.c],
14340 so they are meant to be shared between threads.)
14341 *Bodo Moeller, Geoff Thorpe; original patch submitted by
14342 "Reddie, Steven" <Steven.Reddie@ca.com>*
14343
14344 * Fix a deadlock in CRYPTO_mem_leaks().
14345
14346 *Bodo Moeller*
14347
14348 * Use better test patterns in bntest.
14349
14350 *Ulf Möller*
14351
14352 * rand_win.c fix for Borland C.
14353
14354 *Ulf Möller*
14355
14356 * BN_rshift bugfix for n == 0.
14357
14358 *Bodo Moeller*
14359
14360 * Add a 'bctest' script that checks for some known 'bc' bugs
14361 so that 'make test' does not abort just because 'bc' is broken.
14362
14363 *Bodo Moeller*
14364
14365 * Store verify_result within SSL_SESSION also for client side to
14366 avoid potential security hole. (Re-used sessions on the client side
14367 always resulted in verify_result==X509_V_OK, not using the original
14368 result of the server certificate verification.)
14369
14370 *Lutz Jaenicke*
14371
14372 * Fix ssl3_pending: If the record in s->s3->rrec is not of type
14373 SSL3_RT_APPLICATION_DATA, return 0.
14374 Similarly, change ssl2_pending to return 0 if SSL_in_init(s) is true.
14375
14376 *Bodo Moeller*
14377
14378 * Fix SSL_peek:
14379 Both ssl2_peek and ssl3_peek, which were totally broken in earlier
14380 releases, have been re-implemented by renaming the previous
14381 implementations of ssl2_read and ssl3_read to ssl2_read_internal
14382 and ssl3_read_internal, respectively, and adding 'peek' parameters
14383 to them. The new ssl[23]_{read,peek} functions are calls to
14384 ssl[23]_read_internal with the 'peek' flag set appropriately.
14385 A 'peek' parameter has also been added to ssl3_read_bytes, which
14386 does the actual work for ssl3_read_internal.
14387
14388 *Bodo Moeller*
14389
14390 * Initialise "ex_data" member of RSA/DSA/DH structures prior to calling
14391 the method-specific "init()" handler. Also clean up ex_data after
14392 calling the method-specific "finish()" handler. Previously, this was
14393 happening the other way round.
14394
14395 *Geoff Thorpe*
14396
14397 * Increase BN_CTX_NUM (the number of BIGNUMs in a BN_CTX) to 16.
14398 The previous value, 12, was not always sufficient for BN_mod_exp().
14399
14400 *Bodo Moeller*
14401
14402 * Make sure that shared libraries get the internal name engine with
14403 the full version number and not just 0. This should mark the
14404 shared libraries as not backward compatible. Of course, this should
14405 be changed again when we can guarantee backward binary compatibility.
14406
14407 *Richard Levitte*
14408
14409 * Fix typo in get_cert_by_subject() in by_dir.c
14410
14411 *Jean-Marc Desperrier <jean-marc.desperrier@certplus.com>*
14412
14413 * Rework the system to generate shared libraries:
14414
14415 - Make note of the expected extension for the shared libraries and
14416 if there is a need for symbolic links from for example libcrypto.so.0
14417 to libcrypto.so.0.9.7. There is extended info in Configure for
14418 that.
14419
14420 - Make as few rebuilds of the shared libraries as possible.
14421
14422 - Still avoid linking the OpenSSL programs with the shared libraries.
14423
14424 - When installing, install the shared libraries separately from the
14425 static ones.
14426
14427 *Richard Levitte*
14428
14429 * Fix SSL_CTX_set_read_ahead macro to actually use its argument.
14430
14431 Copy SSL_CTX's read_ahead flag to SSL object directly in SSL_new
14432 and not in SSL_clear because the latter is also used by the
14433 accept/connect functions; previously, the settings made by
14434 SSL_set_read_ahead would be lost during the handshake.
14435
14436 *Bodo Moeller; problems reported by Anders Gertz <gertz@epact.se>*
14437
14438 * Correct util/mkdef.pl to be selective about disabled algorithms.
14439 Previously, it would create entries for disabled algorithms no
14440 matter what.
14441
14442 *Richard Levitte*
14443
14444 * Added several new manual pages for SSL_* function.
14445
14446 *Lutz Jaenicke*
14447
257e9d03 14448### Changes between 0.9.5a and 0.9.6 [24 Sep 2000]
5f8e6c50
DMSP
14449
14450 * In ssl23_get_client_hello, generate an error message when faced
14451 with an initial SSL 3.0/TLS record that is too small to contain the
14452 first two bytes of the ClientHello message, i.e. client_version.
14453 (Note that this is a pathologic case that probably has never happened
14454 in real life.) The previous approach was to use the version number
14455 from the record header as a substitute; but our protocol choice
14456 should not depend on that one because it is not authenticated
14457 by the Finished messages.
14458
14459 *Bodo Moeller*
14460
14461 * More robust randomness gathering functions for Windows.
14462
14463 *Jeffrey Altman <jaltman@columbia.edu>*
14464
14465 * For compatibility reasons if the flag X509_V_FLAG_ISSUER_CHECK is
14466 not set then we don't setup the error code for issuer check errors
14467 to avoid possibly overwriting other errors which the callback does
14468 handle. If an application does set the flag then we assume it knows
14469 what it is doing and can handle the new informational codes
14470 appropriately.
14471
14472 *Steve Henson*
14473
14474 * Fix for a nasty bug in ASN1_TYPE handling. ASN1_TYPE is used for
14475 a general "ANY" type, as such it should be able to decode anything
14476 including tagged types. However it didn't check the class so it would
14477 wrongly interpret tagged types in the same way as their universal
14478 counterpart and unknown types were just rejected. Changed so that the
14479 tagged and unknown types are handled in the same way as a SEQUENCE:
14480 that is the encoding is stored intact. There is also a new type
14481 "V_ASN1_OTHER" which is used when the class is not universal, in this
14482 case we have no idea what the actual type is so we just lump them all
14483 together.
14484
14485 *Steve Henson*
14486
14487 * On VMS, stdout may very well lead to a file that is written to
14488 in a record-oriented fashion. That means that every write() will
14489 write a separate record, which will be read separately by the
14490 programs trying to read from it. This can be very confusing.
14491
14492 The solution is to put a BIO filter in the way that will buffer
14493 text until a linefeed is reached, and then write everything a
14494 line at a time, so every record written will be an actual line,
14495 not chunks of lines and not (usually doesn't happen, but I've
14496 seen it once) several lines in one record. BIO_f_linebuffer() is
14497 the answer.
14498
14499 Currently, it's a VMS-only method, because that's where it has
14500 been tested well enough.
14501
14502 *Richard Levitte*
14503
14504 * Remove 'optimized' squaring variant in BN_mod_mul_montgomery,
14505 it can return incorrect results.
14506 (Note: The buggy variant was not enabled in OpenSSL 0.9.5a,
14507 but it was in 0.9.6-beta[12].)
14508
14509 *Bodo Moeller*
14510
14511 * Disable the check for content being present when verifying detached
14512 signatures in pk7_smime.c. Some versions of Netscape (wrongly)
14513 include zero length content when signing messages.
14514
14515 *Steve Henson*
14516
14517 * New BIO_shutdown_wr macro, which invokes the BIO_C_SHUTDOWN_WR
14518 BIO_ctrl (for BIO pairs).
14519
14520 *Bodo Möller*
14521
14522 * Add DSO method for VMS.
14523
14524 *Richard Levitte*
14525
14526 * Bug fix: Montgomery multiplication could produce results with the
14527 wrong sign.
14528
14529 *Ulf Möller*
14530
14531 * Add RPM specification openssl.spec and modify it to build three
14532 packages. The default package contains applications, application
14533 documentation and run-time libraries. The devel package contains
14534 include files, static libraries and function documentation. The
14535 doc package contains the contents of the doc directory. The original
14536 openssl.spec was provided by Damien Miller <djm@mindrot.org>.
14537
14538 *Richard Levitte*
14539
14540 * Add a large number of documentation files for many SSL routines.
14541
14542 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>*
14543
14544 * Add a configuration entry for Sony News 4.
14545
14546 *NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>*
14547
14548 * Don't set the two most significant bits to one when generating a
14549 random number < q in the DSA library.
14550
14551 *Ulf Möller*
14552
14553 * New SSL API mode 'SSL_MODE_AUTO_RETRY'. This disables the default
14554 behaviour that SSL_read may result in SSL_ERROR_WANT_READ (even if
14555 the underlying transport is blocking) if a handshake took place.
14556 (The default behaviour is needed by applications such as s_client
14557 and s_server that use select() to determine when to use SSL_read;
14558 but for applications that know in advance when to expect data, it
14559 just makes things more complicated.)
14560
14561 *Bodo Moeller*
14562
14563 * Add RAND_egd_bytes(), which gives control over the number of bytes read
14564 from EGD.
14565
14566 *Ben Laurie*
14567
257e9d03 14568 * Add a few more EBCDIC conditionals that make `req` and `x509`
5f8e6c50
DMSP
14569 work better on such systems.
14570
14571 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
14572
14573 * Add two demo programs for PKCS12_parse() and PKCS12_create().
14574 Update PKCS12_parse() so it copies the friendlyName and the
14575 keyid to the certificates aux info.
14576
14577 *Steve Henson*
14578
14579 * Fix bug in PKCS7_verify() which caused an infinite loop
14580 if there was more than one signature.
14581
14582 *Sven Uszpelkat <su@celocom.de>*
14583
14584 * Major change in util/mkdef.pl to include extra information
14585 about each symbol, as well as presenting variables as well
14586 as functions. This change means that there's n more need
14587 to rebuild the .num files when some algorithms are excluded.
14588
14589 *Richard Levitte*
14590
14591 * Allow the verify time to be set by an application,
14592 rather than always using the current time.
14593
14594 *Steve Henson*
14595
14596 * Phase 2 verify code reorganisation. The certificate
14597 verify code now looks up an issuer certificate by a
14598 number of criteria: subject name, authority key id
14599 and key usage. It also verifies self signed certificates
14600 by the same criteria. The main comparison function is
14601 X509_check_issued() which performs these checks.
14602
14603 Lot of changes were necessary in order to support this
14604 without completely rewriting the lookup code.
14605
14606 Authority and subject key identifier are now cached.
14607
14608 The LHASH 'certs' is X509_STORE has now been replaced
14609 by a STACK_OF(X509_OBJECT). This is mainly because an
14610 LHASH can't store or retrieve multiple objects with
14611 the same hash value.
14612
14613 As a result various functions (which were all internal
14614 use only) have changed to handle the new X509_STORE
14615 structure. This will break anything that messed round
14616 with X509_STORE internally.
14617
14618 The functions X509_STORE_add_cert() now checks for an
14619 exact match, rather than just subject name.
14620
14621 The X509_STORE API doesn't directly support the retrieval
14622 of multiple certificates matching a given criteria, however
14623 this can be worked round by performing a lookup first
14624 (which will fill the cache with candidate certificates)
14625 and then examining the cache for matches. This is probably
14626 the best we can do without throwing out X509_LOOKUP
14627 entirely (maybe later...).
14628
14629 The X509_VERIFY_CTX structure has been enhanced considerably.
14630
14631 All certificate lookup operations now go via a get_issuer()
14632 callback. Although this currently uses an X509_STORE it
14633 can be replaced by custom lookups. This is a simple way
14634 to bypass the X509_STORE hackery necessary to make this
14635 work and makes it possible to use more efficient techniques
14636 in future. A very simple version which uses a simple
14637 STACK for its trusted certificate store is also provided
14638 using X509_STORE_CTX_trusted_stack().
14639
14640 The verify_cb() and verify() callbacks now have equivalents
14641 in the X509_STORE_CTX structure.
14642
14643 X509_STORE_CTX also has a 'flags' field which can be used
14644 to customise the verify behaviour.
14645
14646 *Steve Henson*
14647
14648 * Add new PKCS#7 signing option PKCS7_NOSMIMECAP which
14649 excludes S/MIME capabilities.
14650
14651 *Steve Henson*
14652
14653 * When a certificate request is read in keep a copy of the
14654 original encoding of the signed data and use it when outputting
14655 again. Signatures then use the original encoding rather than
14656 a decoded, encoded version which may cause problems if the
14657 request is improperly encoded.
14658
14659 *Steve Henson*
14660
14661 * For consistency with other BIO_puts implementations, call
14662 buffer_write(b, ...) directly in buffer_puts instead of calling
14663 BIO_write(b, ...).
14664
14665 In BIO_puts, increment b->num_write as in BIO_write.
14666
14667 *Peter.Sylvester@EdelWeb.fr*
14668
14669 * Fix BN_mul_word for the case where the word is 0. (We have to use
14670 BN_zero, we may not return a BIGNUM with an array consisting of
14671 words set to zero.)
14672
14673 *Bodo Moeller*
14674
14675 * Avoid calling abort() from within the library when problems are
14676 detected, except if preprocessor symbols have been defined
14677 (such as REF_CHECK, BN_DEBUG etc.).
14678
14679 *Bodo Moeller*
14680
14681 * New openssl application 'rsautl'. This utility can be
14682 used for low level RSA operations. DER public key
14683 BIO/fp routines also added.
14684
14685 *Steve Henson*
14686
14687 * New Configure entry and patches for compiling on QNX 4.
14688
14689 *Andreas Schneider <andreas@ds3.etech.fh-hamburg.de>*
14690
14691 * A demo state-machine implementation was sponsored by
257e9d03 14692 Nuron (<http://www.nuron.com/>) and is now available in
5f8e6c50
DMSP
14693 demos/state_machine.
14694
14695 *Ben Laurie*
14696
14697 * New options added to the 'dgst' utility for signature
14698 generation and verification.
14699
14700 *Steve Henson*
14701
14702 * Unrecognized PKCS#7 content types are now handled via a
14703 catch all ASN1_TYPE structure. This allows unsupported
14704 types to be stored as a "blob" and an application can
14705 encode and decode it manually.
14706
14707 *Steve Henson*
14708
14709 * Fix various signed/unsigned issues to make a_strex.c
14710 compile under VC++.
14711
14712 *Oscar Jacobsson <oscar.jacobsson@celocom.com>*
14713
14714 * ASN1 fixes. i2d_ASN1_OBJECT was not returning the correct
14715 length if passed a buffer. ASN1_INTEGER_to_BN failed
14716 if passed a NULL BN and its argument was negative.
14717
14718 *Steve Henson, pointed out by Sven Heiberg <sven@tartu.cyber.ee>*
14719
14720 * Modification to PKCS#7 encoding routines to output definite
14721 length encoding. Since currently the whole structures are in
14722 memory there's not real point in using indefinite length
14723 constructed encoding. However if OpenSSL is compiled with
14724 the flag PKCS7_INDEFINITE_ENCODING the old form is used.
14725
14726 *Steve Henson*
14727
14728 * Added BIO_vprintf() and BIO_vsnprintf().
14729
14730 *Richard Levitte*
14731
14732 * Added more prefixes to parse for in the strings written
14733 through a logging bio, to cover all the levels that are available
14734 through syslog. The prefixes are now:
14735
14736 PANIC, EMERG, EMR => LOG_EMERG
14737 ALERT, ALR => LOG_ALERT
14738 CRIT, CRI => LOG_CRIT
14739 ERROR, ERR => LOG_ERR
14740 WARNING, WARN, WAR => LOG_WARNING
14741 NOTICE, NOTE, NOT => LOG_NOTICE
14742 INFO, INF => LOG_INFO
14743 DEBUG, DBG => LOG_DEBUG
14744
14745 and as before, if none of those prefixes are present at the
14746 beginning of the string, LOG_ERR is chosen.
14747
257e9d03 14748 On Win32, the `LOG_*` levels are mapped according to this:
5f8e6c50
DMSP
14749
14750 LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR => EVENTLOG_ERROR_TYPE
14751 LOG_WARNING => EVENTLOG_WARNING_TYPE
14752 LOG_NOTICE, LOG_INFO, LOG_DEBUG => EVENTLOG_INFORMATION_TYPE
14753
5f8e6c50
DMSP
14754 *Richard Levitte*
14755
14756 * Made it possible to reconfigure with just the configuration
14757 argument "reconf" or "reconfigure". The command line arguments
14758 are stored in Makefile.ssl in the variable CONFIGURE_ARGS,
14759 and are retrieved from there when reconfiguring.
14760
14761 *Richard Levitte*
14762
14763 * MD4 implemented.
14764
14765 *Assar Westerlund <assar@sics.se>, Richard Levitte*
14766
14767 * Add the arguments -CAfile and -CApath to the pkcs12 utility.
14768
14769 *Richard Levitte*
14770
14771 * The obj_dat.pl script was messing up the sorting of object
14772 names. The reason was that it compared the quoted version
14773 of strings as a result "OCSP" > "OCSP Signing" because
14774 " > SPACE. Changed script to store unquoted versions of
14775 names and add quotes on output. It was also omitting some
14776 names from the lookup table if they were given a default
14777 value (that is if SN is missing it is given the same
14778 value as LN and vice versa), these are now added on the
14779 grounds that if an object has a name we should be able to
14780 look it up. Finally added warning output when duplicate
14781 short or long names are found.
14782
14783 *Steve Henson*
14784
14785 * Changes needed for Tandem NSK.
14786
14787 *Scott Uroff <scott@xypro.com>*
14788
14789 * Fix SSL 2.0 rollback checking: Due to an off-by-one error in
14790 RSA_padding_check_SSLv23(), special padding was never detected
14791 and thus the SSL 3.0/TLS 1.0 countermeasure against protocol
14792 version rollback attacks was not effective.
14793
14794 In s23_clnt.c, don't use special rollback-attack detection padding
14795 (RSA_SSLV23_PADDING) if SSL 2.0 is the only protocol enabled in the
14796 client; similarly, in s23_srvr.c, don't do the rollback check if
14797 SSL 2.0 is the only protocol enabled in the server.
14798
14799 *Bodo Moeller*
14800
14801 * Make it possible to get hexdumps of unprintable data with 'openssl
14802 asn1parse'. By implication, the functions ASN1_parse_dump() and
14803 BIO_dump_indent() are added.
14804
14805 *Richard Levitte*
14806
14807 * New functions ASN1_STRING_print_ex() and X509_NAME_print_ex()
14808 these print out strings and name structures based on various
14809 flags including RFC2253 support and proper handling of
14810 multibyte characters. Added options to the 'x509' utility
14811 to allow the various flags to be set.
14812
14813 *Steve Henson*
14814
14815 * Various fixes to use ASN1_TIME instead of ASN1_UTCTIME.
14816 Also change the functions X509_cmp_current_time() and
14817 X509_gmtime_adj() work with an ASN1_TIME structure,
14818 this will enable certificates using GeneralizedTime in validity
14819 dates to be checked.
14820
14821 *Steve Henson*
14822
14823 * Make the NEG_PUBKEY_BUG code (which tolerates invalid
14824 negative public key encodings) on by default,
14825 NO_NEG_PUBKEY_BUG can be set to disable it.
14826
14827 *Steve Henson*
14828
14829 * New function c2i_ASN1_OBJECT() which acts on ASN1_OBJECT
14830 content octets. An i2c_ASN1_OBJECT is unnecessary because
14831 the encoding can be trivially obtained from the structure.
14832
14833 *Steve Henson*
14834
257e9d03
RS
14835 * crypto/err.c locking bugfix: Use write locks (`CRYPTO_w_[un]lock`),
14836 not read locks (`CRYPTO_r_[un]lock`).
5f8e6c50
DMSP
14837
14838 *Bodo Moeller*
14839
14840 * A first attempt at creating official support for shared
14841 libraries through configuration. I've kept it so the
14842 default is static libraries only, and the OpenSSL programs
14843 are always statically linked for now, but there are
14844 preparations for dynamic linking in place.
14845 This has been tested on Linux and Tru64.
14846
14847 *Richard Levitte*
14848
14849 * Randomness polling function for Win9x, as described in:
14850 Peter Gutmann, Software Generation of Practically Strong
14851 Random Numbers.
14852
14853 *Ulf Möller*
14854
14855 * Fix so PRNG is seeded in req if using an already existing
14856 DSA key.
14857
14858 *Steve Henson*
14859
14860 * New options to smime application. -inform and -outform
14861 allow alternative formats for the S/MIME message including
14862 PEM and DER. The -content option allows the content to be
14863 specified separately. This should allow things like Netscape
14864 form signing output easier to verify.
14865
14866 *Steve Henson*
14867
14868 * Fix the ASN1 encoding of tags using the 'long form'.
14869
14870 *Steve Henson*
14871
257e9d03 14872 * New ASN1 functions, `i2c_*` and `c2i_*` for INTEGER and BIT
5f8e6c50
DMSP
14873 STRING types. These convert content octets to and from the
14874 underlying type. The actual tag and length octets are
14875 already assumed to have been read in and checked. These
14876 are needed because all other string types have virtually
14877 identical handling apart from the tag. By having versions
14878 of the ASN1 functions that just operate on content octets
14879 IMPLICIT tagging can be handled properly. It also allows
14880 the ASN1_ENUMERATED code to be cut down because ASN1_ENUMERATED
14881 and ASN1_INTEGER are identical apart from the tag.
14882
14883 *Steve Henson*
14884
14885 * Change the handling of OID objects as follows:
14886
14887 - New object identifiers are inserted in objects.txt, following
1dc1ea18 14888 the syntax given in [crypto/objects/README.md](crypto/objects/README.md).
5f8e6c50
DMSP
14889 - objects.pl is used to process obj_mac.num and create a new
14890 obj_mac.h.
14891 - obj_dat.pl is used to create a new obj_dat.h, using the data in
14892 obj_mac.h.
14893
14894 This is currently kind of a hack, and the perl code in objects.pl
14895 isn't very elegant, but it works as I intended. The simplest way
14896 to check that it worked correctly is to look in obj_dat.h and
14897 check the array nid_objs and make sure the objects haven't moved
14898 around (this is important!). Additions are OK, as well as
14899 consistent name changes.
14900
14901 *Richard Levitte*
14902
14903 * Add BSD-style MD5-based passwords to 'openssl passwd' (option '-1').
14904
14905 *Bodo Moeller*
14906
14907 * Addition of the command line parameter '-rand file' to 'openssl req'.
14908 The given file adds to whatever has already been seeded into the
14909 random pool through the RANDFILE configuration file option or
14910 environment variable, or the default random state file.
14911
14912 *Richard Levitte*
14913
14914 * mkstack.pl now sorts each macro group into lexical order.
14915 Previously the output order depended on the order the files
14916 appeared in the directory, resulting in needless rewriting
14917 of safestack.h .
14918
14919 *Steve Henson*
14920
14921 * Patches to make OpenSSL compile under Win32 again. Mostly
14922 work arounds for the VC++ problem that it treats func() as
14923 func(void). Also stripped out the parts of mkdef.pl that
14924 added extra typesafe functions: these no longer exist.
14925
14926 *Steve Henson*
14927
14928 * Reorganisation of the stack code. The macros are now all
14929 collected in safestack.h . Each macro is defined in terms of
257e9d03 14930 a "stack macro" of the form `SKM_<name>(type, a, b)`. The
5f8e6c50
DMSP
14931 DEBUG_SAFESTACK is now handled in terms of function casts,
14932 this has the advantage of retaining type safety without the
14933 use of additional functions. If DEBUG_SAFESTACK is not defined
14934 then the non typesafe macros are used instead. Also modified the
14935 mkstack.pl script to handle the new form. Needs testing to see
14936 if which (if any) compilers it chokes and maybe make DEBUG_SAFESTACK
14937 the default if no major problems. Similar behaviour for ASN1_SET_OF
14938 and PKCS12_STACK_OF.
14939
14940 *Steve Henson*
14941
14942 * When some versions of IIS use the 'NET' form of private key the
14943 key derivation algorithm is different. Normally MD5(password) is
14944 used as a 128 bit RC4 key. In the modified case
14945 MD5(MD5(password) + "SGCKEYSALT") is used instead. Added some
14946 new functions i2d_RSA_NET(), d2i_RSA_NET() etc which are the same
14947 as the old Netscape_RSA functions except they have an additional
14948 'sgckey' parameter which uses the modified algorithm. Also added
14949 an -sgckey command line option to the rsa utility. Thanks to
14950 Adrian Peck <bertie@ncipher.com> for posting details of the modified
14951 algorithm to openssl-dev.
14952
14953 *Steve Henson*
14954
14955 * The evp_local.h macros were using 'c.##kname' which resulted in
14956 invalid expansion on some systems (SCO 5.0.5 for example).
14957 Corrected to 'c.kname'.
14958
14959 *Phillip Porch <root@theporch.com>*
14960
14961 * New X509_get1_email() and X509_REQ_get1_email() functions that return
14962 a STACK of email addresses from a certificate or request, these look
14963 in the subject name and the subject alternative name extensions and
14964 omit any duplicate addresses.
14965
14966 *Steve Henson*
14967
14968 * Re-implement BN_mod_exp2_mont using independent (and larger) windows.
14969 This makes DSA verification about 2 % faster.
14970
14971 *Bodo Moeller*
14972
257e9d03 14973 * Increase maximum window size in `BN_mod_exp_...` to 6 bits instead of 5
5f8e6c50
DMSP
14974 (meaning that now 2^5 values will be precomputed, which is only 4 KB
14975 plus overhead for 1024 bit moduli).
14976 This makes exponentiations about 0.5 % faster for 1024 bit
14977 exponents (as measured by "openssl speed rsa2048").
14978
14979 *Bodo Moeller*
14980
14981 * Rename memory handling macros to avoid conflicts with other
14982 software:
14983 Malloc => OPENSSL_malloc
14984 Malloc_locked => OPENSSL_malloc_locked
14985 Realloc => OPENSSL_realloc
14986 Free => OPENSSL_free
14987
14988 *Richard Levitte*
14989
14990 * New function BN_mod_exp_mont_word for small bases (roughly 15%
14991 faster than BN_mod_exp_mont, i.e. 7% for a full DH exchange).
14992
14993 *Bodo Moeller*
14994
14995 * CygWin32 support.
14996
14997 *John Jarvie <jjarvie@newsguy.com>*
14998
14999 * The type-safe stack code has been rejigged. It is now only compiled
15000 in when OpenSSL is configured with the DEBUG_SAFESTACK option and
15001 by default all type-specific stack functions are "#define"d back to
15002 standard stack functions. This results in more streamlined output
15003 but retains the type-safety checking possibilities of the original
15004 approach.
15005
15006 *Geoff Thorpe*
15007
15008 * The STACK code has been cleaned up, and certain type declarations
15009 that didn't make a lot of sense have been brought in line. This has
15010 also involved a cleanup of sorts in safestack.h to more correctly
15011 map type-safe stack functions onto their plain stack counterparts.
15012 This work has also resulted in a variety of "const"ifications of
257e9d03 15013 lots of the code, especially `_cmp` operations which should normally
5f8e6c50
DMSP
15014 be prototyped with "const" parameters anyway.
15015
15016 *Geoff Thorpe*
15017
15018 * When generating bytes for the first time in md_rand.c, 'stir the pool'
15019 by seeding with STATE_SIZE dummy bytes (with zero entropy count).
15020 (The PRNG state consists of two parts, the large pool 'state' and 'md',
15021 where all of 'md' is used each time the PRNG is used, but 'state'
15022 is used only indexed by a cyclic counter. As entropy may not be
15023 well distributed from the beginning, 'md' is important as a
15024 chaining variable. However, the output function chains only half
15025 of 'md', i.e. 80 bits. ssleay_rand_add, on the other hand, chains
15026 all of 'md', and seeding with STATE_SIZE dummy bytes will result
15027 in all of 'state' being rewritten, with the new values depending
15028 on virtually all of 'md'. This overcomes the 80 bit limitation.)
15029
15030 *Bodo Moeller*
15031
15032 * In ssl/s2_clnt.c and ssl/s3_clnt.c, call ERR_clear_error() when
15033 the handshake is continued after ssl_verify_cert_chain();
15034 otherwise, if SSL_VERIFY_NONE is set, remaining error codes
15035 can lead to 'unexplainable' connection aborts later.
15036
15037 *Bodo Moeller; problem tracked down by Lutz Jaenicke*
15038
15039 * Major EVP API cipher revision.
15040 Add hooks for extra EVP features. This allows various cipher
15041 parameters to be set in the EVP interface. Support added for variable
15042 key length ciphers via the EVP_CIPHER_CTX_set_key_length() function and
15043 setting of RC2 and RC5 parameters.
15044
15045 Modify EVP_OpenInit() and EVP_SealInit() to cope with variable key length
15046 ciphers.
15047
15048 Remove lots of duplicated code from the EVP library. For example *every*
15049 cipher init() function handles the 'iv' in the same way according to the
15050 cipher mode. They also all do nothing if the 'key' parameter is NULL and
15051 for CFB and OFB modes they zero ctx->num.
15052
15053 New functionality allows removal of S/MIME code RC2 hack.
15054
15055 Most of the routines have the same form and so can be declared in terms
15056 of macros.
15057
15058 By shifting this to the top level EVP_CipherInit() it can be removed from
15059 all individual ciphers. If the cipher wants to handle IVs or keys
15060 differently it can set the EVP_CIPH_CUSTOM_IV or EVP_CIPH_ALWAYS_CALL_INIT
15061 flags.
15062
15063 Change lots of functions like EVP_EncryptUpdate() to now return a
15064 value: although software versions of the algorithms cannot fail
15065 any installed hardware versions can.
15066
15067 *Steve Henson*
15068
15069 * Implement SSL_OP_TLS_ROLLBACK_BUG: In ssl3_get_client_key_exchange, if
15070 this option is set, tolerate broken clients that send the negotiated
15071 protocol version number instead of the requested protocol version
15072 number.
15073
15074 *Bodo Moeller*
15075
257e9d03 15076 * Call dh_tmp_cb (set by `..._TMP_DH_CB`) with correct 'is_export' flag;
5f8e6c50
DMSP
15077 i.e. non-zero for export ciphersuites, zero otherwise.
15078 Previous versions had this flag inverted, inconsistent with
15079 rsa_tmp_cb (..._TMP_RSA_CB).
15080
15081 *Bodo Moeller; problem reported by Amit Chopra*
15082
15083 * Add missing DSA library text string. Work around for some IIS
15084 key files with invalid SEQUENCE encoding.
15085
15086 *Steve Henson*
15087
15088 * Add a document (doc/standards.txt) that list all kinds of standards
15089 and so on that are implemented in OpenSSL.
15090
15091 *Richard Levitte*
15092
15093 * Enhance c_rehash script. Old version would mishandle certificates
15094 with the same subject name hash and wouldn't handle CRLs at all.
15095 Added -fingerprint option to crl utility, to support new c_rehash
15096 features.
15097
15098 *Steve Henson*
15099
15100 * Eliminate non-ANSI declarations in crypto.h and stack.h.
15101
15102 *Ulf Möller*
15103
15104 * Fix for SSL server purpose checking. Server checking was
15105 rejecting certificates which had extended key usage present
15106 but no ssl client purpose.
15107
15108 *Steve Henson, reported by Rene Grosser <grosser@hisolutions.com>*
15109
15110 * Make PKCS#12 code work with no password. The PKCS#12 spec
15111 is a little unclear about how a blank password is handled.
15112 Since the password in encoded as a BMPString with terminating
15113 double NULL a zero length password would end up as just the
15114 double NULL. However no password at all is different and is
15115 handled differently in the PKCS#12 key generation code. NS
15116 treats a blank password as zero length. MSIE treats it as no
15117 password on export: but it will try both on import. We now do
15118 the same: PKCS12_parse() tries zero length and no password if
15119 the password is set to "" or NULL (NULL is now a valid password:
15120 it wasn't before) as does the pkcs12 application.
15121
15122 *Steve Henson*
15123
15124 * Bugfixes in apps/x509.c: Avoid a memory leak; and don't use
15125 perror when PEM_read_bio_X509_REQ fails, the error message must
15126 be obtained from the error queue.
15127
15128 *Bodo Moeller*
15129
15130 * Avoid 'thread_hash' memory leak in crypto/err/err.c by freeing
15131 it in ERR_remove_state if appropriate, and change ERR_get_state
15132 accordingly to avoid race conditions (this is necessary because
15133 thread_hash is no longer constant once set).
15134
15135 *Bodo Moeller*
15136
15137 * Bugfix for linux-elf makefile.one.
15138
15139 *Ulf Möller*
15140
15141 * RSA_get_default_method() will now cause a default
15142 RSA_METHOD to be chosen if one doesn't exist already.
15143 Previously this was only set during a call to RSA_new()
15144 or RSA_new_method(NULL) meaning it was possible for
15145 RSA_get_default_method() to return NULL.
15146
15147 *Geoff Thorpe*
15148
15149 * Added native name translation to the existing DSO code
15150 that will convert (if the flag to do so is set) filenames
15151 that are sufficiently small and have no path information
15152 into a canonical native form. Eg. "blah" converted to
15153 "libblah.so" or "blah.dll" etc.
15154
15155 *Geoff Thorpe*
15156
15157 * New function ERR_error_string_n(e, buf, len) which is like
15158 ERR_error_string(e, buf), but writes at most 'len' bytes
15159 including the 0 terminator. For ERR_error_string_n, 'buf'
15160 may not be NULL.
15161
15162 *Damien Miller <djm@mindrot.org>, Bodo Moeller*
15163
15164 * CONF library reworked to become more general. A new CONF
15165 configuration file reader "class" is implemented as well as a
257e9d03
RS
15166 new functions (`NCONF_*`, for "New CONF") to handle it. The now
15167 old `CONF_*` functions are still there, but are reimplemented to
5f8e6c50
DMSP
15168 work in terms of the new functions. Also, a set of functions
15169 to handle the internal storage of the configuration data is
15170 provided to make it easier to write new configuration file
15171 reader "classes" (I can definitely see something reading a
257e9d03 15172 configuration file in XML format, for example), called `_CONF_*`,
5f8e6c50
DMSP
15173 or "the configuration storage API"...
15174
15175 The new configuration file reading functions are:
15176
15177 NCONF_new, NCONF_free, NCONF_load, NCONF_load_fp, NCONF_load_bio,
15178 NCONF_get_section, NCONF_get_string, NCONF_get_numbre
15179
15180 NCONF_default, NCONF_WIN32
15181
15182 NCONF_dump_fp, NCONF_dump_bio
15183
15184 NCONF_default and NCONF_WIN32 are method (or "class") choosers,
15185 NCONF_new creates a new CONF object. This works in the same way
15186 as other interfaces in OpenSSL, like the BIO interface.
257e9d03 15187 `NCONF_dump_*` dump the internal storage of the configuration file,
5f8e6c50 15188 which is useful for debugging. All other functions take the same
257e9d03
RS
15189 arguments as the old `CONF_*` functions with the exception of the
15190 first that must be a `CONF *` instead of a `LHASH *`.
5f8e6c50 15191
257e9d03 15192 To make it easier to use the new classes with the old `CONF_*` functions,
5f8e6c50
DMSP
15193 the function CONF_set_default_method is provided.
15194
15195 *Richard Levitte*
15196
15197 * Add '-tls1' option to 'openssl ciphers', which was already
15198 mentioned in the documentation but had not been implemented.
15199 (This option is not yet really useful because even the additional
15200 experimental TLS 1.0 ciphers are currently treated as SSL 3.0 ciphers.)
15201
15202 *Bodo Moeller*
15203
15204 * Initial DSO code added into libcrypto for letting OpenSSL (and
15205 OpenSSL-based applications) load shared libraries and bind to
15206 them in a portable way.
15207
15208 *Geoff Thorpe, with contributions from Richard Levitte*
15209
257e9d03 15210### Changes between 0.9.5 and 0.9.5a [1 Apr 2000]
5f8e6c50
DMSP
15211
15212 * Make sure _lrotl and _lrotr are only used with MSVC.
15213
15214 * Use lock CRYPTO_LOCK_RAND correctly in ssleay_rand_status
15215 (the default implementation of RAND_status).
15216
15217 * Rename openssl x509 option '-crlext', which was added in 0.9.5,
15218 to '-clrext' (= clear extensions), as intended and documented.
15219 *Bodo Moeller; inconsistency pointed out by Michael Attili
15220 <attili@amaxo.com>*
15221
15222 * Fix for HMAC. It wasn't zeroing the rest of the block if the key length
15223 was larger than the MD block size.
15224
15225 *Steve Henson, pointed out by Yost William <YostW@tce.com>*
15226
15227 * Modernise PKCS12_parse() so it uses STACK_OF(X509) for its ca argument
15228 fix a leak when the ca argument was passed as NULL. Stop X509_PUBKEY_set()
15229 using the passed key: if the passed key was a private key the result
15230 of X509_print(), for example, would be to print out all the private key
15231 components.
15232
15233 *Steve Henson*
15234
15235 * des_quad_cksum() byte order bug fix.
15236 *Ulf Möller, using the problem description in krb4-0.9.7, where
257e9d03 15237 the solution is attributed to Derrick J Brashear <shadow@DEMENTIA.ORG>*
5f8e6c50
DMSP
15238
15239 * Fix so V_ASN1_APP_CHOOSE works again: however its use is strongly
15240 discouraged.
15241
15242 *Steve Henson, pointed out by Brian Korver <briank@cs.stanford.edu>*
15243
15244 * For easily testing in shell scripts whether some command
15245 'openssl XXX' exists, the new pseudo-command 'openssl no-XXX'
15246 returns with exit code 0 iff no command of the given name is available.
15247 'no-XXX' is printed in this case, 'XXX' otherwise. In both cases,
15248 the output goes to stdout and nothing is printed to stderr.
15249 Additional arguments are always ignored.
15250
15251 Since for each cipher there is a command of the same name,
15252 the 'no-cipher' compilation switches can be tested this way.
15253
15254 ('openssl no-XXX' is not able to detect pseudo-commands such
15255 as 'quit', 'list-XXX-commands', or 'no-XXX' itself.)
15256
15257 *Bodo Moeller*
15258
15259 * Update test suite so that 'make test' succeeds in 'no-rsa' configuration.
15260
15261 *Bodo Moeller*
15262
15263 * For SSL_[CTX_]set_tmp_dh, don't create a DH key if SSL_OP_SINGLE_DH_USE
15264 is set; it will be thrown away anyway because each handshake creates
15265 its own key.
15266 ssl_cert_dup, which is used by SSL_new, now copies DH keys in addition
15267 to parameters -- in previous versions (since OpenSSL 0.9.3) the
15268 'default key' from SSL_CTX_set_tmp_dh would always be lost, meaning
15269 you effectively got SSL_OP_SINGLE_DH_USE when using this macro.
15270
15271 *Bodo Moeller*
15272
15273 * New s_client option -ign_eof: EOF at stdin is ignored, and
15274 'Q' and 'R' lose their special meanings (quit/renegotiate).
15275 This is part of what -quiet does; unlike -quiet, -ign_eof
15276 does not suppress any output.
15277
15278 *Richard Levitte*
15279
15280 * Add compatibility options to the purpose and trust code. The
15281 purpose X509_PURPOSE_ANY is "any purpose" which automatically
15282 accepts a certificate or CA, this was the previous behaviour,
15283 with all the associated security issues.
15284
15285 X509_TRUST_COMPAT is the old trust behaviour: only and
15286 automatically trust self signed roots in certificate store. A
15287 new trust setting X509_TRUST_DEFAULT is used to specify that
15288 a purpose has no associated trust setting and it should instead
15289 use the value in the default purpose.
15290
15291 *Steve Henson*
15292
15293 * Fix the PKCS#8 DSA private key code so it decodes keys again
15294 and fix a memory leak.
15295
15296 *Steve Henson*
15297
15298 * In util/mkerr.pl (which implements 'make errors'), preserve
15299 reason strings from the previous version of the .c file, as
15300 the default to have only downcase letters (and digits) in
15301 automatically generated reasons codes is not always appropriate.
15302
15303 *Bodo Moeller*
15304
15305 * In ERR_load_ERR_strings(), build an ERR_LIB_SYS error reason table
15306 using strerror. Previously, ERR_reason_error_string() returned
15307 library names as reason strings for SYSerr; but SYSerr is a special
15308 case where small numbers are errno values, not library numbers.
15309
15310 *Bodo Moeller*
15311
15312 * Add '-dsaparam' option to 'openssl dhparam' application. This
15313 converts DSA parameters into DH parameters. (When creating parameters,
15314 DSA_generate_parameters is used.)
15315
15316 *Bodo Moeller*
15317
15318 * Include 'length' (recommended exponent length) in C code generated
15319 by 'openssl dhparam -C'.
15320
15321 *Bodo Moeller*
15322
15323 * The second argument to set_label in perlasm was already being used
15324 so couldn't be used as a "file scope" flag. Moved to third argument
15325 which was free.
15326
15327 *Steve Henson*
15328
15329 * In PEM_ASN1_write_bio and some other functions, use RAND_pseudo_bytes
15330 instead of RAND_bytes for encryption IVs and salts.
15331
15332 *Bodo Moeller*
15333
15334 * Include RAND_status() into RAND_METHOD instead of implementing
15335 it only for md_rand.c Otherwise replacing the PRNG by calling
15336 RAND_set_rand_method would be impossible.
15337
15338 *Bodo Moeller*
15339
15340 * Don't let DSA_generate_key() enter an infinite loop if the random
15341 number generation fails.
15342
15343 *Bodo Moeller*
15344
15345 * New 'rand' application for creating pseudo-random output.
15346
15347 *Bodo Moeller*
15348
15349 * Added configuration support for Linux/IA64
15350
15351 *Rolf Haberrecker <rolf@suse.de>*
15352
15353 * Assembler module support for Mingw32.
15354
15355 *Ulf Möller*
15356
15357 * Shared library support for HPUX (in shlib/).
15358
15359 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE> and Anonymous*
15360
15361 * Shared library support for Solaris gcc.
15362
15363 *Lutz Behnke <behnke@trustcenter.de>*
15364
257e9d03 15365### Changes between 0.9.4 and 0.9.5 [28 Feb 2000]
5f8e6c50
DMSP
15366
15367 * PKCS7_encrypt() was adding text MIME headers twice because they
15368 were added manually and by SMIME_crlf_copy().
15369
15370 *Steve Henson*
15371
15372 * In bntest.c don't call BN_rand with zero bits argument.
15373
15374 *Steve Henson, pointed out by Andrew W. Gray <agray@iconsinc.com>*
15375
15376 * BN_mul bugfix: In bn_mul_part_recursion() only the a>a[n] && b>b[n]
15377 case was implemented. This caused BN_div_recp() to fail occasionally.
15378
15379 *Ulf Möller*
15380
15381 * Add an optional second argument to the set_label() in the perl
15382 assembly language builder. If this argument exists and is set
15383 to 1 it signals that the assembler should use a symbol whose
15384 scope is the entire file, not just the current function. This
15385 is needed with MASM which uses the format label:: for this scope.
15386
15387 *Steve Henson, pointed out by Peter Runestig <peter@runestig.com>*
15388
15389 * Change the ASN1 types so they are typedefs by default. Before
15390 almost all types were #define'd to ASN1_STRING which was causing
15391 STACK_OF() problems: you couldn't declare STACK_OF(ASN1_UTF8STRING)
15392 for example.
15393
15394 *Steve Henson*
15395
15396 * Change names of new functions to the new get1/get0 naming
15397 convention: After 'get1', the caller owns a reference count
257e9d03 15398 and has to call `..._free`; 'get0' returns a pointer to some
5f8e6c50
DMSP
15399 data structure without incrementing reference counters.
15400 (Some of the existing 'get' functions increment a reference
15401 counter, some don't.)
15402 Similarly, 'set1' and 'add1' functions increase reference
15403 counters or duplicate objects.
15404
15405 *Steve Henson*
15406
15407 * Allow for the possibility of temp RSA key generation failure:
15408 the code used to assume it always worked and crashed on failure.
15409
15410 *Steve Henson*
15411
15412 * Fix potential buffer overrun problem in BIO_printf().
15413 *Ulf Möller, using public domain code by Patrick Powell; problem
257e9d03 15414 pointed out by David Sacerdote <das33@cornell.edu>*
5f8e6c50
DMSP
15415
15416 * Support EGD <http://www.lothar.com/tech/crypto/>. New functions
15417 RAND_egd() and RAND_status(). In the command line application,
15418 the EGD socket can be specified like a seed file using RANDFILE
15419 or -rand.
15420
15421 *Ulf Möller*
15422
15423 * Allow the string CERTIFICATE to be tolerated in PKCS#7 structures.
15424 Some CAs (e.g. Verisign) distribute certificates in this form.
15425
15426 *Steve Henson*
15427
15428 * Remove the SSL_ALLOW_ADH compile option and set the default cipher
15429 list to exclude them. This means that no special compilation option
15430 is needed to use anonymous DH: it just needs to be included in the
15431 cipher list.
15432
15433 *Steve Henson*
15434
15435 * Change the EVP_MD_CTX_type macro so its meaning consistent with
15436 EVP_MD_type. The old functionality is available in a new macro called
15437 EVP_MD_md(). Change code that uses it and update docs.
15438
15439 *Steve Henson*
15440
257e9d03
RS
15441 * `..._ctrl` functions now have corresponding `..._callback_ctrl` functions
15442 where the `void *` argument is replaced by a function pointer argument.
15443 Previously `void *` was abused to point to functions, which works on
5f8e6c50
DMSP
15444 many platforms, but is not correct. As these functions are usually
15445 called by macros defined in OpenSSL header files, most source code
15446 should work without changes.
15447
15448 *Richard Levitte*
15449
257e9d03 15450 * `<openssl/opensslconf.h>` (which is created by Configure) now contains
5f8e6c50
DMSP
15451 sections with information on -D... compiler switches used for
15452 compiling the library so that applications can see them. To enable
257e9d03 15453 one of these sections, a pre-processor symbol `OPENSSL_..._DEFINES`
5f8e6c50
DMSP
15454 must be defined. E.g.,
15455 #define OPENSSL_ALGORITHM_DEFINES
15456 #include <openssl/opensslconf.h>
257e9d03 15457 defines all pertinent `NO_<algo>` symbols, such as NO_IDEA, NO_RSA, etc.
5f8e6c50
DMSP
15458
15459 *Richard Levitte, Ulf and Bodo Möller*
15460
15461 * Bugfix: Tolerate fragmentation and interleaving in the SSL 3/TLS
15462 record layer.
15463
15464 *Bodo Moeller*
15465
15466 * Change the 'other' type in certificate aux info to a STACK_OF
15467 X509_ALGOR. Although not an AlgorithmIdentifier as such it has
15468 the required ASN1 format: arbitrary types determined by an OID.
15469
15470 *Steve Henson*
15471
15472 * Add some PEM_write_X509_REQ_NEW() functions and a command line
15473 argument to 'req'. This is not because the function is newer or
15474 better than others it just uses the work 'NEW' in the certificate
15475 request header lines. Some software needs this.
15476
15477 *Steve Henson*
15478
15479 * Reorganise password command line arguments: now passwords can be
15480 obtained from various sources. Delete the PEM_cb function and make
15481 it the default behaviour: i.e. if the callback is NULL and the
15482 usrdata argument is not NULL interpret it as a null terminated pass
15483 phrase. If usrdata and the callback are NULL then the pass phrase
15484 is prompted for as usual.
15485
15486 *Steve Henson*
15487
15488 * Add support for the Compaq Atalla crypto accelerator. If it is installed,
15489 the support is automatically enabled. The resulting binaries will
15490 autodetect the card and use it if present.
15491
15492 *Ben Laurie and Compaq Inc.*
15493
15494 * Work around for Netscape hang bug. This sends certificate request
15495 and server done in one record. Since this is perfectly legal in the
15496 SSL/TLS protocol it isn't a "bug" option and is on by default. See
15497 the bugs/SSLv3 entry for more info.
15498
15499 *Steve Henson*
15500
15501 * HP-UX tune-up: new unified configs, HP C compiler bug workaround.
15502
15503 *Andy Polyakov*
15504
15505 * Add -rand argument to smime and pkcs12 applications and read/write
15506 of seed file.
15507
15508 *Steve Henson*
15509
15510 * New 'passwd' tool for crypt(3) and apr1 password hashes.
15511
15512 *Bodo Moeller*
15513
15514 * Add command line password options to the remaining applications.
15515
15516 *Steve Henson*
15517
15518 * Bug fix for BN_div_recp() for numerators with an even number of
15519 bits.
15520
15521 *Ulf Möller*
15522
15523 * More tests in bntest.c, and changed test_bn output.
15524
15525 *Ulf Möller*
15526
15527 * ./config recognizes MacOS X now.
15528
15529 *Andy Polyakov*
15530
15531 * Bug fix for BN_div() when the first words of num and divisor are
257e9d03 15532 equal (it gave wrong results if `(rem=(n1-q*d0)&BN_MASK2) < d0)`.
5f8e6c50
DMSP
15533
15534 *Ulf Möller*
15535
15536 * Add support for various broken PKCS#8 formats, and command line
15537 options to produce them.
15538
15539 *Steve Henson*
15540
15541 * New functions BN_CTX_start(), BN_CTX_get() and BT_CTX_end() to
15542 get temporary BIGNUMs from a BN_CTX.
15543
15544 *Ulf Möller*
15545
15546 * Correct return values in BN_mod_exp_mont() and BN_mod_exp2_mont()
15547 for p == 0.
15548
15549 *Ulf Möller*
15550
257e9d03 15551 * Change the `SSLeay_add_all_*()` functions to `OpenSSL_add_all_*()` and
5f8e6c50
DMSP
15552 include a #define from the old name to the new. The original intent
15553 was that statically linked binaries could for example just call
15554 SSLeay_add_all_ciphers() to just add ciphers to the table and not
15555 link with digests. This never worked because SSLeay_add_all_digests()
15556 and SSLeay_add_all_ciphers() were in the same source file so calling
15557 one would link with the other. They are now in separate source files.
15558
15559 *Steve Henson*
15560
15561 * Add a new -notext option to 'ca' and a -pubkey option to 'spkac'.
15562
15563 *Steve Henson*
15564
15565 * Use a less unusual form of the Miller-Rabin primality test (it used
15566 a binary algorithm for exponentiation integrated into the Miller-Rabin
15567 loop, our standard modexp algorithms are faster).
15568
15569 *Bodo Moeller*
15570
15571 * Support for the EBCDIC character set completed.
15572
15573 *Martin Kraemer <Martin.Kraemer@Mch.SNI.De>*
15574
15575 * Source code cleanups: use const where appropriate, eliminate casts,
257e9d03 15576 use `void *` instead of `char *` in lhash.
5f8e6c50
DMSP
15577
15578 *Ulf Möller*
15579
15580 * Bugfix: ssl3_send_server_key_exchange was not restartable
15581 (the state was not changed to SSL3_ST_SW_KEY_EXCH_B, and because of
15582 this the server could overwrite ephemeral keys that the client
15583 has already seen).
15584
15585 *Bodo Moeller*
15586
15587 * Turn DSA_is_prime into a macro that calls BN_is_prime,
15588 using 50 iterations of the Rabin-Miller test.
15589
15590 DSA_generate_parameters now uses BN_is_prime_fasttest (with 50
15591 iterations of the Rabin-Miller test as required by the appendix
15592 to FIPS PUB 186[-1]) instead of DSA_is_prime.
15593 As BN_is_prime_fasttest includes trial division, DSA parameter
15594 generation becomes much faster.
15595
15596 This implies a change for the callback functions in DSA_is_prime
15597 and DSA_generate_parameters: The callback function is called once
15598 for each positive witness in the Rabin-Miller test, not just
15599 occasionally in the inner loop; and the parameters to the
15600 callback function now provide an iteration count for the outer
15601 loop rather than for the current invocation of the inner loop.
15602 DSA_generate_parameters additionally can call the callback
15603 function with an 'iteration count' of -1, meaning that a
15604 candidate has passed the trial division test (when q is generated
15605 from an application-provided seed, trial division is skipped).
15606
15607 *Bodo Moeller*
15608
15609 * New function BN_is_prime_fasttest that optionally does trial
15610 division before starting the Rabin-Miller test and has
15611 an additional BN_CTX * argument (whereas BN_is_prime always
15612 has to allocate at least one BN_CTX).
15613 'callback(1, -1, cb_arg)' is called when a number has passed the
15614 trial division stage.
15615
15616 *Bodo Moeller*
15617
15618 * Fix for bug in CRL encoding. The validity dates weren't being handled
15619 as ASN1_TIME.
15620
15621 *Steve Henson*
15622
15623 * New -pkcs12 option to CA.pl script to write out a PKCS#12 file.
15624
15625 *Steve Henson*
15626
15627 * New function BN_pseudo_rand().
15628
15629 *Ulf Möller*
15630
15631 * Clean up BN_mod_mul_montgomery(): replace the broken (and unreadable)
15632 bignum version of BN_from_montgomery() with the working code from
15633 SSLeay 0.9.0 (the word based version is faster anyway), and clean up
15634 the comments.
15635
15636 *Ulf Möller*
15637
15638 * Avoid a race condition in s2_clnt.c (function get_server_hello) that
15639 made it impossible to use the same SSL_SESSION data structure in
15640 SSL2 clients in multiple threads.
15641
15642 *Bodo Moeller*
15643
15644 * The return value of RAND_load_file() no longer counts bytes obtained
15645 by stat(). RAND_load_file(..., -1) is new and uses the complete file
15646 to seed the PRNG (previously an explicit byte count was required).
15647
15648 *Ulf Möller, Bodo Möller*
15649
15650 * Clean up CRYPTO_EX_DATA functions, some of these didn't have prototypes
257e9d03 15651 used `char *` instead of `void *` and had casts all over the place.
5f8e6c50
DMSP
15652
15653 *Steve Henson*
15654
15655 * Make BN_generate_prime() return NULL on error if ret!=NULL.
15656
15657 *Ulf Möller*
15658
15659 * Retain source code compatibility for BN_prime_checks macro:
15660 BN_is_prime(..., BN_prime_checks, ...) now uses
15661 BN_prime_checks_for_size to determine the appropriate number of
15662 Rabin-Miller iterations.
15663
15664 *Ulf Möller*
15665
15666 * Diffie-Hellman uses "safe" primes: DH_check() return code renamed to
15667 DH_CHECK_P_NOT_SAFE_PRIME.
15668 (Check if this is true? OpenPGP calls them "strong".)
15669
15670 *Ulf Möller*
15671
15672 * Merge the functionality of "dh" and "gendh" programs into a new program
15673 "dhparam". The old programs are retained for now but will handle DH keys
15674 (instead of parameters) in future.
15675
15676 *Steve Henson*
15677
15678 * Make the ciphers, s_server and s_client programs check the return values
15679 when a new cipher list is set.
15680
15681 *Steve Henson*
15682
15683 * Enhance the SSL/TLS cipher mechanism to correctly handle the TLS 56bit
15684 ciphers. Before when the 56bit ciphers were enabled the sorting was
15685 wrong.
15686
15687 The syntax for the cipher sorting has been extended to support sorting by
15688 cipher-strength (using the strength_bits hard coded in the tables).
15689 The new command is "@STRENGTH" (see also doc/apps/ciphers.pod).
15690
15691 Fix a bug in the cipher-command parser: when supplying a cipher command
15692 string with an "undefined" symbol (neither command nor alphanumeric
15693 *A-Za-z0-9*, ssl_set_cipher_list used to hang in an endless loop. Now
15694 an error is flagged.
15695
15696 Due to the strength-sorting extension, the code of the
15697 ssl_create_cipher_list() function was completely rearranged. I hope that
15698 the readability was also increased :-)
15699
15700 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>*
15701
15702 * Minor change to 'x509' utility. The -CAcreateserial option now uses 1
15703 for the first serial number and places 2 in the serial number file. This
15704 avoids problems when the root CA is created with serial number zero and
15705 the first user certificate has the same issuer name and serial number
15706 as the root CA.
15707
15708 *Steve Henson*
15709
15710 * Fixes to X509_ATTRIBUTE utilities, change the 'req' program so it uses
15711 the new code. Add documentation for this stuff.
15712
15713 *Steve Henson*
15714
15715 * Changes to X509_ATTRIBUTE utilities. These have been renamed from
257e9d03 15716 `X509_*()` to `X509at_*()` on the grounds that they don't handle X509
5f8e6c50
DMSP
15717 structures and behave in an analogous way to the X509v3 functions:
15718 they shouldn't be called directly but wrapper functions should be used
15719 instead.
15720
15721 So we also now have some wrapper functions that call the X509at functions
15722 when passed certificate requests. (TO DO: similar things can be done with
15723 PKCS#7 signed and unsigned attributes, PKCS#12 attributes and a few other
15724 things. Some of these need some d2i or i2d and print functionality
15725 because they handle more complex structures.)
15726
15727 *Steve Henson*
15728
15729 * Add missing #ifndefs that caused missing symbols when building libssl
15730 as a shared library without RSA. Use #ifndef NO_SSL2 instead of
257e9d03 15731 NO_RSA in `ssl/s2*.c`.
5f8e6c50
DMSP
15732
15733 *Kris Kennaway <kris@hub.freebsd.org>, modified by Ulf Möller*
15734
15735 * Precautions against using the PRNG uninitialized: RAND_bytes() now
15736 has a return value which indicates the quality of the random data
15737 (1 = ok, 0 = not seeded). Also an error is recorded on the thread's
15738 error queue. New function RAND_pseudo_bytes() generates output that is
15739 guaranteed to be unique but not unpredictable. RAND_add is like
15740 RAND_seed, but takes an extra argument for an entropy estimate
15741 (RAND_seed always assumes full entropy).
15742
15743 *Ulf Möller*
15744
15745 * Do more iterations of Rabin-Miller probable prime test (specifically,
15746 3 for 1024-bit primes, 6 for 512-bit primes, 12 for 256-bit primes
15747 instead of only 2 for all lengths; see BN_prime_checks_for_size definition
15748 in crypto/bn/bn_prime.c for the complete table). This guarantees a
15749 false-positive rate of at most 2^-80 for random input.
15750
15751 *Bodo Moeller*
15752
15753 * Rewrite ssl3_read_n (ssl/s3_pkt.c) avoiding a couple of bugs.
15754
15755 *Bodo Moeller*
15756
15757 * New function X509_CTX_rget_chain() (renamed to X509_CTX_get1_chain
15758 in the 0.9.5 release), this returns the chain
15759 from an X509_CTX structure with a dup of the stack and all
15760 the X509 reference counts upped: so the stack will exist
15761 after X509_CTX_cleanup() has been called. Modify pkcs12.c
15762 to use this.
15763
15764 Also make SSL_SESSION_print() print out the verify return
15765 code.
15766
15767 *Steve Henson*
15768
15769 * Add manpage for the pkcs12 command. Also change the default
15770 behaviour so MAC iteration counts are used unless the new
15771 -nomaciter option is used. This improves file security and
15772 only older versions of MSIE (4.0 for example) need it.
15773
15774 *Steve Henson*
15775
15776 * Honor the no-xxx Configure options when creating .DEF files.
15777
15778 *Ulf Möller*
15779
15780 * Add PKCS#10 attributes to field table: challengePassword,
15781 unstructuredName and unstructuredAddress. These are taken from
15782 draft PKCS#9 v2.0 but are compatible with v1.2 provided no
15783 international characters are used.
15784
15785 More changes to X509_ATTRIBUTE code: allow the setting of types
15786 based on strings. Remove the 'loc' parameter when adding
15787 attributes because these will be a SET OF encoding which is sorted
15788 in ASN1 order.
15789
15790 *Steve Henson*
15791
15792 * Initial changes to the 'req' utility to allow request generation
15793 automation. This will allow an application to just generate a template
15794 file containing all the field values and have req construct the
15795 request.
15796
15797 Initial support for X509_ATTRIBUTE handling. Stacks of these are
15798 used all over the place including certificate requests and PKCS#7
15799 structures. They are currently handled manually where necessary with
15800 some primitive wrappers for PKCS#7. The new functions behave in a
15801 manner analogous to the X509 extension functions: they allow
15802 attributes to be looked up by NID and added.
15803
15804 Later something similar to the X509V3 code would be desirable to
15805 automatically handle the encoding, decoding and printing of the
15806 more complex types. The string types like challengePassword can
15807 be handled by the string table functions.
15808
15809 Also modified the multi byte string table handling. Now there is
15810 a 'global mask' which masks out certain types. The table itself
15811 can use the flag STABLE_NO_MASK to ignore the mask setting: this
15812 is useful when for example there is only one permissible type
15813 (as in countryName) and using the mask might result in no valid
15814 types at all.
15815
15816 *Steve Henson*
15817
15818 * Clean up 'Finished' handling, and add functions SSL_get_finished and
15819 SSL_get_peer_finished to allow applications to obtain the latest
15820 Finished messages sent to the peer or expected from the peer,
15821 respectively. (SSL_get_peer_finished is usually the Finished message
15822 actually received from the peer, otherwise the protocol will be aborted.)
15823
15824 As the Finished message are message digests of the complete handshake
15825 (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
15826 be used for external authentication procedures when the authentication
15827 provided by SSL/TLS is not desired or is not enough.
15828
15829 *Bodo Moeller*
15830
15831 * Enhanced support for Alpha Linux is added. Now ./config checks if
15832 the host supports BWX extension and if Compaq C is present on the
15833 $PATH. Just exploiting of the BWX extension results in 20-30%
15834 performance kick for some algorithms, e.g. DES and RC4 to mention
15835 a couple. Compaq C in turn generates ~20% faster code for MD5 and
15836 SHA1.
15837
15838 *Andy Polyakov*
15839
15840 * Add support for MS "fast SGC". This is arguably a violation of the
15841 SSL3/TLS protocol. Netscape SGC does two handshakes: the first with
15842 weak crypto and after checking the certificate is SGC a second one
15843 with strong crypto. MS SGC stops the first handshake after receiving
15844 the server certificate message and sends a second client hello. Since
15845 a server will typically do all the time consuming operations before
15846 expecting any further messages from the client (server key exchange
15847 is the most expensive) there is little difference between the two.
15848
15849 To get OpenSSL to support MS SGC we have to permit a second client
15850 hello message after we have sent server done. In addition we have to
15851 reset the MAC if we do get this second client hello.
15852
15853 *Steve Henson*
15854
15855 * Add a function 'd2i_AutoPrivateKey()' this will automatically decide
15856 if a DER encoded private key is RSA or DSA traditional format. Changed
15857 d2i_PrivateKey_bio() to use it. This is only needed for the "traditional"
15858 format DER encoded private key. Newer code should use PKCS#8 format which
15859 has the key type encoded in the ASN1 structure. Added DER private key
15860 support to pkcs8 application.
15861
15862 *Steve Henson*
15863
15864 * SSL 3/TLS 1 servers now don't request certificates when an anonymous
15865 ciphersuites has been selected (as required by the SSL 3/TLS 1
15866 specifications). Exception: When SSL_VERIFY_FAIL_IF_NO_PEER_CERT
15867 is set, we interpret this as a request to violate the specification
15868 (the worst that can happen is a handshake failure, and 'correct'
15869 behaviour would result in a handshake failure anyway).
15870
15871 *Bodo Moeller*
15872
15873 * In SSL_CTX_add_session, take into account that there might be multiple
15874 SSL_SESSION structures with the same session ID (e.g. when two threads
15875 concurrently obtain them from an external cache).
15876 The internal cache can handle only one SSL_SESSION with a given ID,
15877 so if there's a conflict, we now throw out the old one to achieve
15878 consistency.
15879
15880 *Bodo Moeller*
15881
15882 * Add OIDs for idea and blowfish in CBC mode. This will allow both
15883 to be used in PKCS#5 v2.0 and S/MIME. Also add checking to
15884 some routines that use cipher OIDs: some ciphers do not have OIDs
15885 defined and so they cannot be used for S/MIME and PKCS#5 v2.0 for
15886 example.
15887
15888 *Steve Henson*
15889
15890 * Simplify the trust setting structure and code. Now we just have
15891 two sequences of OIDs for trusted and rejected settings. These will
15892 typically have values the same as the extended key usage extension
15893 and any application specific purposes.
15894
15895 The trust checking code now has a default behaviour: it will just
15896 check for an object with the same NID as the passed id. Functions can
15897 be provided to override either the default behaviour or the behaviour
15898 for a given id. SSL client, server and email already have functions
15899 in place for compatibility: they check the NID and also return "trusted"
15900 if the certificate is self signed.
15901
15902 *Steve Henson*
15903
15904 * Add d2i,i2d bio/fp functions for PrivateKey: these convert the
15905 traditional format into an EVP_PKEY structure.
15906
15907 *Steve Henson*
15908
15909 * Add a password callback function PEM_cb() which either prompts for
15910 a password if usr_data is NULL or otherwise assumes it is a null
15911 terminated password. Allow passwords to be passed on command line
15912 environment or config files in a few more utilities.
15913
15914 *Steve Henson*
15915
15916 * Add a bunch of DER and PEM functions to handle PKCS#8 format private
15917 keys. Add some short names for PKCS#8 PBE algorithms and allow them
15918 to be specified on the command line for the pkcs8 and pkcs12 utilities.
15919 Update documentation.
15920
15921 *Steve Henson*
15922
15923 * Support for ASN1 "NULL" type. This could be handled before by using
15924 ASN1_TYPE but there wasn't any function that would try to read a NULL
15925 and produce an error if it couldn't. For compatibility we also have
15926 ASN1_NULL_new() and ASN1_NULL_free() functions but these are faked and
15927 don't allocate anything because they don't need to.
15928
15929 *Steve Henson*
15930
15931 * Initial support for MacOS is now provided. Examine INSTALL.MacOS
15932 for details.
15933
15934 *Andy Polyakov, Roy Woods <roy@centicsystems.ca>*
15935
15936 * Rebuild of the memory allocation routines used by OpenSSL code and
15937 possibly others as well. The purpose is to make an interface that
15938 provide hooks so anyone can build a separate set of allocation and
15939 deallocation routines to be used by OpenSSL, for example memory
15940 pool implementations, or something else, which was previously hard
15941 since Malloc(), Realloc() and Free() were defined as macros having
15942 the values malloc, realloc and free, respectively (except for Win32
15943 compilations). The same is provided for memory debugging code.
15944 OpenSSL already comes with functionality to find memory leaks, but
15945 this gives people a chance to debug other memory problems.
15946
15947 With these changes, a new set of functions and macros have appeared:
15948
15949 CRYPTO_set_mem_debug_functions() [F]
15950 CRYPTO_get_mem_debug_functions() [F]
15951 CRYPTO_dbg_set_options() [F]
15952 CRYPTO_dbg_get_options() [F]
15953 CRYPTO_malloc_debug_init() [M]
15954
15955 The memory debug functions are NULL by default, unless the library
15956 is compiled with CRYPTO_MDEBUG or friends is defined. If someone
15957 wants to debug memory anyway, CRYPTO_malloc_debug_init() (which
15958 gives the standard debugging functions that come with OpenSSL) or
15959 CRYPTO_set_mem_debug_functions() (tells OpenSSL to use functions
15960 provided by the library user) must be used. When the standard
15961 debugging functions are used, CRYPTO_dbg_set_options can be used to
15962 request additional information:
15963 CRYPTO_dbg_set_options(V_CYRPTO_MDEBUG_xxx) corresponds to setting
15964 the CRYPTO_MDEBUG_xxx macro when compiling the library.
15965
15966 Also, things like CRYPTO_set_mem_functions will always give the
15967 expected result (the new set of functions is used for allocation
15968 and deallocation) at all times, regardless of platform and compiler
15969 options.
15970
15971 To finish it up, some functions that were never use in any other
15972 way than through macros have a new API and new semantic:
15973
15974 CRYPTO_dbg_malloc()
15975 CRYPTO_dbg_realloc()
15976 CRYPTO_dbg_free()
15977
15978 All macros of value have retained their old syntax.
15979
15980 *Richard Levitte and Bodo Moeller*
15981
15982 * Some S/MIME fixes. The OID for SMIMECapabilities was wrong, the
15983 ordering of SMIMECapabilities wasn't in "strength order" and there
15984 was a missing NULL in the AlgorithmIdentifier for the SHA1 signature
15985 algorithm.
15986
15987 *Steve Henson*
15988
15989 * Some ASN1 types with illegal zero length encoding (INTEGER,
15990 ENUMERATED and OBJECT IDENTIFIER) choked the ASN1 routines.
15991
15992 *Frans Heymans <fheymans@isaserver.be>, modified by Steve Henson*
15993
15994 * Merge in my S/MIME library for OpenSSL. This provides a simple
15995 S/MIME API on top of the PKCS#7 code, a MIME parser (with enough
15996 functionality to handle multipart/signed properly) and a utility
15997 called 'smime' to call all this stuff. This is based on code I
15998 originally wrote for Celo who have kindly allowed it to be
15999 included in OpenSSL.
16000
16001 *Steve Henson*
16002
16003 * Add variants des_set_key_checked and des_set_key_unchecked of
16004 des_set_key (aka des_key_sched). Global variable des_check_key
16005 decides which of these is called by des_set_key; this way
16006 des_check_key behaves as it always did, but applications and
16007 the library itself, which was buggy for des_check_key == 1,
16008 have a cleaner way to pick the version they need.
16009
16010 *Bodo Moeller*
16011
16012 * New function PKCS12_newpass() which changes the password of a
16013 PKCS12 structure.
16014
16015 *Steve Henson*
16016
16017 * Modify X509_TRUST and X509_PURPOSE so it also uses a static and
16018 dynamic mix. In both cases the ids can be used as an index into the
16019 table. Also modified the X509_TRUST_add() and X509_PURPOSE_add()
16020 functions so they accept a list of the field values and the
16021 application doesn't need to directly manipulate the X509_TRUST
16022 structure.
16023
16024 *Steve Henson*
16025
16026 * Modify the ASN1_STRING_TABLE stuff so it also uses bsearch and doesn't
16027 need initialising.
16028
16029 *Steve Henson*
16030
16031 * Modify the way the V3 extension code looks up extensions. This now
16032 works in a similar way to the object code: we have some "standard"
16033 extensions in a static table which is searched with OBJ_bsearch()
16034 and the application can add dynamic ones if needed. The file
16035 crypto/x509v3/ext_dat.h now has the info: this file needs to be
16036 updated whenever a new extension is added to the core code and kept
16037 in ext_nid order. There is a simple program 'tabtest.c' which checks
16038 this. New extensions are not added too often so this file can readily
16039 be maintained manually.
16040
16041 There are two big advantages in doing things this way. The extensions
16042 can be looked up immediately and no longer need to be "added" using
16043 X509V3_add_standard_extensions(): this function now does nothing.
257e9d03
RS
16044 Side note: I get *lots* of email saying the extension code doesn't
16045 work because people forget to call this function.
5f8e6c50
DMSP
16046 Also no dynamic allocation is done unless new extensions are added:
16047 so if we don't add custom extensions there is no need to call
16048 X509V3_EXT_cleanup().
16049
16050 *Steve Henson*
16051
16052 * Modify enc utility's salting as follows: make salting the default. Add a
16053 magic header, so unsalted files fail gracefully instead of just decrypting
16054 to garbage. This is because not salting is a big security hole, so people
16055 should be discouraged from doing it.
16056
16057 *Ben Laurie*
16058
16059 * Fixes and enhancements to the 'x509' utility. It allowed a message
16060 digest to be passed on the command line but it only used this
16061 parameter when signing a certificate. Modified so all relevant
16062 operations are affected by the digest parameter including the
16063 -fingerprint and -x509toreq options. Also -x509toreq choked if a
16064 DSA key was used because it didn't fix the digest.
16065
16066 *Steve Henson*
16067
16068 * Initial certificate chain verify code. Currently tests the untrusted
16069 certificates for consistency with the verify purpose (which is set
16070 when the X509_STORE_CTX structure is set up) and checks the pathlength.
16071
16072 There is a NO_CHAIN_VERIFY compilation option to keep the old behaviour:
16073 this is because it will reject chains with invalid extensions whereas
16074 every previous version of OpenSSL and SSLeay made no checks at all.
16075
16076 Trust code: checks the root CA for the relevant trust settings. Trust
16077 settings have an initial value consistent with the verify purpose: e.g.
16078 if the verify purpose is for SSL client use it expects the CA to be
16079 trusted for SSL client use. However the default value can be changed to
16080 permit custom trust settings: one example of this would be to only trust
16081 certificates from a specific "secure" set of CAs.
16082
16083 Also added X509_STORE_CTX_new() and X509_STORE_CTX_free() functions
16084 which should be used for version portability: especially since the
16085 verify structure is likely to change more often now.
16086
16087 SSL integration. Add purpose and trust to SSL_CTX and SSL and functions
16088 to set them. If not set then assume SSL clients will verify SSL servers
16089 and vice versa.
16090
16091 Two new options to the verify program: -untrusted allows a set of
16092 untrusted certificates to be passed in and -purpose which sets the
16093 intended purpose of the certificate. If a purpose is set then the
16094 new chain verify code is used to check extension consistency.
16095
16096 *Steve Henson*
16097
16098 * Support for the authority information access extension.
16099
16100 *Steve Henson*
16101
16102 * Modify RSA and DSA PEM read routines to transparently handle
16103 PKCS#8 format private keys. New *_PUBKEY_* functions that handle
16104 public keys in a format compatible with certificate
16105 SubjectPublicKeyInfo structures. Unfortunately there were already
16106 functions called *_PublicKey_* which used various odd formats so
16107 these are retained for compatibility: however the DSA variants were
16108 never in a public release so they have been deleted. Changed dsa/rsa
16109 utilities to handle the new format: note no releases ever handled public
16110 keys so we should be OK.
16111
16112 The primary motivation for this change is to avoid the same fiasco
16113 that dogs private keys: there are several incompatible private key
16114 formats some of which are standard and some OpenSSL specific and
16115 require various evil hacks to allow partial transparent handling and
16116 even then it doesn't work with DER formats. Given the option anything
16117 other than PKCS#8 should be dumped: but the other formats have to
16118 stay in the name of compatibility.
16119
16120 With public keys and the benefit of hindsight one standard format
16121 is used which works with EVP_PKEY, RSA or DSA structures: though
16122 it clearly returns an error if you try to read the wrong kind of key.
16123
16124 Added a -pubkey option to the 'x509' utility to output the public key.
257e9d03
RS
16125 Also rename the `EVP_PKEY_get_*()` to `EVP_PKEY_rget_*()`
16126 (renamed to `EVP_PKEY_get1_*()` in the OpenSSL 0.9.5 release) and add
16127 `EVP_PKEY_rset_*()` functions (renamed to `EVP_PKEY_set1_*()`)
16128 that do the same as the `EVP_PKEY_assign_*()` except they up the
5f8e6c50
DMSP
16129 reference count of the added key (they don't "swallow" the
16130 supplied key).
16131
16132 *Steve Henson*
16133
16134 * Fixes to crypto/x509/by_file.c the code to read in certificates and
16135 CRLs would fail if the file contained no certificates or no CRLs:
16136 added a new function to read in both types and return the number
16137 read: this means that if none are read it will be an error. The
16138 DER versions of the certificate and CRL reader would always fail
16139 because it isn't possible to mix certificates and CRLs in DER format
16140 without choking one or the other routine. Changed this to just read
16141 a certificate: this is the best we can do. Also modified the code
16142 in apps/verify.c to take notice of return codes: it was previously
16143 attempting to read in certificates from NULL pointers and ignoring
16144 any errors: this is one reason why the cert and CRL reader seemed
16145 to work. It doesn't check return codes from the default certificate
16146 routines: these may well fail if the certificates aren't installed.
16147
16148 *Steve Henson*
16149
16150 * Code to support otherName option in GeneralName.
16151
16152 *Steve Henson*
16153
16154 * First update to verify code. Change the verify utility
16155 so it warns if it is passed a self signed certificate:
16156 for consistency with the normal behaviour. X509_verify
16157 has been modified to it will now verify a self signed
16158 certificate if *exactly* the same certificate appears
16159 in the store: it was previously impossible to trust a
16160 single self signed certificate. This means that:
16161 openssl verify ss.pem
16162 now gives a warning about a self signed certificate but
16163 openssl verify -CAfile ss.pem ss.pem
16164 is OK.
16165
16166 *Steve Henson*
16167
16168 * For servers, store verify_result in SSL_SESSION data structure
16169 (and add it to external session representation).
16170 This is needed when client certificate verifications fails,
16171 but an application-provided verification callback (set by
16172 SSL_CTX_set_cert_verify_callback) allows accepting the session
16173 anyway (i.e. leaves x509_store_ctx->error != X509_V_OK
16174 but returns 1): When the session is reused, we have to set
16175 ssl->verify_result to the appropriate error code to avoid
16176 security holes.
16177
16178 *Bodo Moeller, problem pointed out by Lutz Jaenicke*
16179
16180 * Fix a bug in the new PKCS#7 code: it didn't consider the
16181 case in PKCS7_dataInit() where the signed PKCS7 structure
16182 didn't contain any existing data because it was being created.
16183
16184 *Po-Cheng Chen <pocheng@nst.com.tw>, slightly modified by Steve Henson*
16185
16186 * Add a salt to the key derivation routines in enc.c. This
16187 forms the first 8 bytes of the encrypted file. Also add a
16188 -S option to allow a salt to be input on the command line.
16189
16190 *Steve Henson*
16191
16192 * New function X509_cmp(). Oddly enough there wasn't a function
16193 to compare two certificates. We do this by working out the SHA1
16194 hash and comparing that. X509_cmp() will be needed by the trust
16195 code.
16196
16197 *Steve Henson*
16198
16199 * SSL_get1_session() is like SSL_get_session(), but increments
16200 the reference count in the SSL_SESSION returned.
16201
16202 *Geoff Thorpe <geoff@eu.c2.net>*
16203
16204 * Fix for 'req': it was adding a null to request attributes.
16205 Also change the X509_LOOKUP and X509_INFO code to handle
16206 certificate auxiliary information.
16207
16208 *Steve Henson*
16209
16210 * Add support for 40 and 64 bit RC2 and RC4 algorithms: document
16211 the 'enc' command.
16212
16213 *Steve Henson*
16214
16215 * Add the possibility to add extra information to the memory leak
16216 detecting output, to form tracebacks, showing from where each
16217 allocation was originated: CRYPTO_push_info("constant string") adds
16218 the string plus current file name and line number to a per-thread
16219 stack, CRYPTO_pop_info() does the obvious, CRYPTO_remove_all_info()
16220 is like calling CYRPTO_pop_info() until the stack is empty.
16221 Also updated memory leak detection code to be multi-thread-safe.
16222
16223 *Richard Levitte*
16224
16225 * Add options -text and -noout to pkcs7 utility and delete the
16226 encryption options which never did anything. Update docs.
16227
16228 *Steve Henson*
16229
16230 * Add options to some of the utilities to allow the pass phrase
16231 to be included on either the command line (not recommended on
16232 OSes like Unix) or read from the environment. Update the
16233 manpages and fix a few bugs.
16234
16235 *Steve Henson*
16236
16237 * Add a few manpages for some of the openssl commands.
16238
16239 *Steve Henson*
16240
16241 * Fix the -revoke option in ca. It was freeing up memory twice,
16242 leaking and not finding already revoked certificates.
16243
16244 *Steve Henson*
16245
16246 * Extensive changes to support certificate auxiliary information.
16247 This involves the use of X509_CERT_AUX structure and X509_AUX
16248 functions. An X509_AUX function such as PEM_read_X509_AUX()
16249 can still read in a certificate file in the usual way but it
16250 will also read in any additional "auxiliary information". By
16251 doing things this way a fair degree of compatibility can be
16252 retained: existing certificates can have this information added
16253 using the new 'x509' options.
16254
16255 Current auxiliary information includes an "alias" and some trust
16256 settings. The trust settings will ultimately be used in enhanced
16257 certificate chain verification routines: currently a certificate
16258 can only be trusted if it is self signed and then it is trusted
16259 for all purposes.
16260
16261 *Steve Henson*
16262
257e9d03 16263 * Fix assembler for Alpha (tested only on DEC OSF not Linux or `*BSD`).
5f8e6c50
DMSP
16264 The problem was that one of the replacement routines had not been working
16265 since SSLeay releases. For now the offending routine has been replaced
16266 with non-optimised assembler. Even so, this now gives around 95%
16267 performance improvement for 1024 bit RSA signs.
16268
16269 *Mark Cox*
16270
16271 * Hack to fix PKCS#7 decryption when used with some unorthodox RC2
16272 handling. Most clients have the effective key size in bits equal to
16273 the key length in bits: so a 40 bit RC2 key uses a 40 bit (5 byte) key.
16274 A few however don't do this and instead use the size of the decrypted key
16275 to determine the RC2 key length and the AlgorithmIdentifier to determine
16276 the effective key length. In this case the effective key length can still
16277 be 40 bits but the key length can be 168 bits for example. This is fixed
16278 by manually forcing an RC2 key into the EVP_PKEY structure because the
16279 EVP code can't currently handle unusual RC2 key sizes: it always assumes
16280 the key length and effective key length are equal.
16281
16282 *Steve Henson*
16283
16284 * Add a bunch of functions that should simplify the creation of
16285 X509_NAME structures. Now you should be able to do:
16286 X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC, "Steve", -1, -1, 0);
16287 and have it automatically work out the correct field type and fill in
16288 the structures. The more adventurous can try:
16289 X509_NAME_add_entry_by_txt(nm, field, MBSTRING_UTF8, str, -1, -1, 0);
16290 and it will (hopefully) work out the correct multibyte encoding.
16291
16292 *Steve Henson*
16293
16294 * Change the 'req' utility to use the new field handling and multibyte
16295 copy routines. Before the DN field creation was handled in an ad hoc
16296 way in req, ca, and x509 which was rather broken and didn't support
16297 BMPStrings or UTF8Strings. Since some software doesn't implement
16298 BMPStrings or UTF8Strings yet, they can be enabled using the config file
16299 using the dirstring_type option. See the new comment in the default
16300 openssl.cnf for more info.
16301
16302 *Steve Henson*
16303
16304 * Make crypto/rand/md_rand.c more robust:
16305 - Assure unique random numbers after fork().
16306 - Make sure that concurrent threads access the global counter and
16307 md serializably so that we never lose entropy in them
16308 or use exactly the same state in multiple threads.
16309 Access to the large state is not always serializable because
16310 the additional locking could be a performance killer, and
16311 md should be large enough anyway.
16312
16313 *Bodo Moeller*
16314
16315 * New file apps/app_rand.c with commonly needed functionality
16316 for handling the random seed file.
16317
16318 Use the random seed file in some applications that previously did not:
16319 ca,
16320 dsaparam -genkey (which also ignored its '-rand' option),
16321 s_client,
16322 s_server,
16323 x509 (when signing).
16324 Except on systems with /dev/urandom, it is crucial to have a random
16325 seed file at least for key creation, DSA signing, and for DH exchanges;
16326 for RSA signatures we could do without one.
16327
16328 gendh and gendsa (unlike genrsa) used to read only the first byte
16329 of each file listed in the '-rand' option. The function as previously
16330 found in genrsa is now in app_rand.c and is used by all programs
16331 that support '-rand'.
16332
16333 *Bodo Moeller*
16334
16335 * In RAND_write_file, use mode 0600 for creating files;
16336 don't just chmod when it may be too late.
16337
16338 *Bodo Moeller*
16339
16340 * Report an error from X509_STORE_load_locations
16341 when X509_LOOKUP_load_file or X509_LOOKUP_add_dir failed.
16342
16343 *Bill Perry*
16344
16345 * New function ASN1_mbstring_copy() this copies a string in either
16346 ASCII, Unicode, Universal (4 bytes per character) or UTF8 format
16347 into an ASN1_STRING type. A mask of permissible types is passed
16348 and it chooses the "minimal" type to use or an error if not type
16349 is suitable.
16350
16351 *Steve Henson*
16352
16353 * Add function equivalents to the various macros in asn1.h. The old
257e9d03
RS
16354 macros are retained with an `M_` prefix. Code inside the library can
16355 use the `M_` macros. External code (including the openssl utility)
5f8e6c50
DMSP
16356 should *NOT* in order to be "shared library friendly".
16357
16358 *Steve Henson*
16359
16360 * Add various functions that can check a certificate's extensions
16361 to see if it usable for various purposes such as SSL client,
16362 server or S/MIME and CAs of these types. This is currently
16363 VERY EXPERIMENTAL but will ultimately be used for certificate chain
16364 verification. Also added a -purpose flag to x509 utility to
16365 print out all the purposes.
16366
16367 *Steve Henson*
16368
16369 * Add a CRYPTO_EX_DATA to X509 certificate structure and associated
16370 functions.
16371
16372 *Steve Henson*
16373
257e9d03 16374 * New `X509V3_{X509,CRL,REVOKED}_get_d2i()` functions. These will search
5f8e6c50
DMSP
16375 for, obtain and decode and extension and obtain its critical flag.
16376 This allows all the necessary extension code to be handled in a
16377 single function call.
16378
16379 *Steve Henson*
16380
16381 * RC4 tune-up featuring 30-40% performance improvement on most RISC
16382 platforms. See crypto/rc4/rc4_enc.c for further details.
16383
16384 *Andy Polyakov*
16385
16386 * New -noout option to asn1parse. This causes no output to be produced
16387 its main use is when combined with -strparse and -out to extract data
16388 from a file (which may not be in ASN.1 format).
16389
16390 *Steve Henson*
16391
16392 * Fix for pkcs12 program. It was hashing an invalid certificate pointer
16393 when producing the local key id.
16394
16395 *Richard Levitte <levitte@stacken.kth.se>*
16396
16397 * New option -dhparam in s_server. This allows a DH parameter file to be
16398 stated explicitly. If it is not stated then it tries the first server
16399 certificate file. The previous behaviour hard coded the filename
16400 "server.pem".
16401
16402 *Steve Henson*
16403
16404 * Add -pubin and -pubout options to the rsa and dsa commands. These allow
16405 a public key to be input or output. For example:
16406 openssl rsa -in key.pem -pubout -out pubkey.pem
16407 Also added necessary DSA public key functions to handle this.
16408
16409 *Steve Henson*
16410
16411 * Fix so PKCS7_dataVerify() doesn't crash if no certificates are contained
16412 in the message. This was handled by allowing
16413 X509_find_by_issuer_and_serial() to tolerate a NULL passed to it.
16414
16415 *Steve Henson, reported by Sampo Kellomaki <sampo@mail.neuronio.pt>*
16416
16417 * Fix for bug in d2i_ASN1_bytes(): other ASN1 functions add an extra null
16418 to the end of the strings whereas this didn't. This would cause problems
16419 if strings read with d2i_ASN1_bytes() were later modified.
16420
16421 *Steve Henson, reported by Arne Ansper <arne@ats.cyber.ee>*
16422
16423 * Fix for base64 decode bug. When a base64 bio reads only one line of
16424 data and it contains EOF it will end up returning an error. This is
16425 caused by input 46 bytes long. The cause is due to the way base64
16426 BIOs find the start of base64 encoded data. They do this by trying a
16427 trial decode on each line until they find one that works. When they
16428 do a flag is set and it starts again knowing it can pass all the
16429 data directly through the decoder. Unfortunately it doesn't reset
16430 the context it uses. This means that if EOF is reached an attempt
16431 is made to pass two EOFs through the context and this causes the
16432 resulting error. This can also cause other problems as well. As is
16433 usual with these problems it takes *ages* to find and the fix is
16434 trivial: move one line.
16435
257e9d03 16436 *Steve Henson, reported by ian@uns.ns.ac.yu (Ivan Nejgebauer)*
5f8e6c50
DMSP
16437
16438 * Ugly workaround to get s_client and s_server working under Windows. The
16439 old code wouldn't work because it needed to select() on sockets and the
16440 tty (for keypresses and to see if data could be written). Win32 only
16441 supports select() on sockets so we select() with a 1s timeout on the
16442 sockets and then see if any characters are waiting to be read, if none
16443 are present then we retry, we also assume we can always write data to
16444 the tty. This isn't nice because the code then blocks until we've
16445 received a complete line of data and it is effectively polling the
16446 keyboard at 1s intervals: however it's quite a bit better than not
16447 working at all :-) A dedicated Windows application might handle this
16448 with an event loop for example.
16449
16450 *Steve Henson*
16451
16452 * Enhance RSA_METHOD structure. Now there are two extra methods, rsa_sign
16453 and rsa_verify. When the RSA_FLAGS_SIGN_VER option is set these functions
16454 will be called when RSA_sign() and RSA_verify() are used. This is useful
16455 if rsa_pub_dec() and rsa_priv_enc() equivalents are not available.
16456 For this to work properly RSA_public_decrypt() and RSA_private_encrypt()
16457 should *not* be used: RSA_sign() and RSA_verify() must be used instead.
16458 This necessitated the support of an extra signature type NID_md5_sha1
16459 for SSL signatures and modifications to the SSL library to use it instead
16460 of calling RSA_public_decrypt() and RSA_private_encrypt().
16461
16462 *Steve Henson*
16463
16464 * Add new -verify -CAfile and -CApath options to the crl program, these
16465 will lookup a CRL issuers certificate and verify the signature in a
16466 similar way to the verify program. Tidy up the crl program so it
16467 no longer accesses structures directly. Make the ASN1 CRL parsing a bit
16468 less strict. It will now permit CRL extensions even if it is not
16469 a V2 CRL: this will allow it to tolerate some broken CRLs.
16470
16471 *Steve Henson*
16472
16473 * Initialize all non-automatic variables each time one of the openssl
16474 sub-programs is started (this is necessary as they may be started
16475 multiple times from the "OpenSSL>" prompt).
16476
16477 *Lennart Bang, Bodo Moeller*
16478
16479 * Preliminary compilation option RSA_NULL which disables RSA crypto without
16480 removing all other RSA functionality (this is what NO_RSA does). This
16481 is so (for example) those in the US can disable those operations covered
16482 by the RSA patent while allowing storage and parsing of RSA keys and RSA
16483 key generation.
16484
16485 *Steve Henson*
16486
16487 * Non-copying interface to BIO pairs.
16488 (still largely untested)
16489
16490 *Bodo Moeller*
16491
16492 * New function ASN1_tag2str() to convert an ASN1 tag to a descriptive
16493 ASCII string. This was handled independently in various places before.
16494
16495 *Steve Henson*
16496
16497 * New functions UTF8_getc() and UTF8_putc() that parse and generate
16498 UTF8 strings a character at a time.
16499
16500 *Steve Henson*
16501
16502 * Use client_version from client hello to select the protocol
16503 (s23_srvr.c) and for RSA client key exchange verification
16504 (s3_srvr.c), as required by the SSL 3.0/TLS 1.0 specifications.
16505
16506 *Bodo Moeller*
16507
16508 * Add various utility functions to handle SPKACs, these were previously
16509 handled by poking round in the structure internals. Added new function
16510 NETSCAPE_SPKI_print() to print out SPKAC and a new utility 'spkac' to
16511 print, verify and generate SPKACs. Based on an original idea from
16512 Massimiliano Pala <madwolf@comune.modena.it> but extensively modified.
16513
16514 *Steve Henson*
16515
16516 * RIPEMD160 is operational on all platforms and is back in 'make test'.
16517
16518 *Andy Polyakov*
16519
16520 * Allow the config file extension section to be overwritten on the
16521 command line. Based on an original idea from Massimiliano Pala
16522 <madwolf@comune.modena.it>. The new option is called -extensions
16523 and can be applied to ca, req and x509. Also -reqexts to override
16524 the request extensions in req and -crlexts to override the crl extensions
16525 in ca.
16526
16527 *Steve Henson*
16528
16529 * Add new feature to the SPKAC handling in ca. Now you can include
16530 the same field multiple times by preceding it by "XXXX." for example:
16531 1.OU="Unit name 1"
16532 2.OU="Unit name 2"
16533 this is the same syntax as used in the req config file.
16534
16535 *Steve Henson*
16536
16537 * Allow certificate extensions to be added to certificate requests. These
16538 are specified in a 'req_extensions' option of the req section of the
16539 config file. They can be printed out with the -text option to req but
16540 are otherwise ignored at present.
16541
16542 *Steve Henson*
16543
16544 * Fix a horrible bug in enc_read() in crypto/evp/bio_enc.c: if the first
16545 data read consists of only the final block it would not decrypted because
16546 EVP_CipherUpdate() would correctly report zero bytes had been decrypted.
16547 A misplaced 'break' also meant the decrypted final block might not be
16548 copied until the next read.
16549
16550 *Steve Henson*
16551
16552 * Initial support for DH_METHOD. Again based on RSA_METHOD. Also added
16553 a few extra parameters to the DH structure: these will be useful if
16554 for example we want the value of 'q' or implement X9.42 DH.
16555
16556 *Steve Henson*
16557
16558 * Initial support for DSA_METHOD. This is based on the RSA_METHOD and
16559 provides hooks that allow the default DSA functions or functions on a
16560 "per key" basis to be replaced. This allows hardware acceleration and
16561 hardware key storage to be handled without major modification to the
16562 library. Also added low level modexp hooks and CRYPTO_EX structure and
16563 associated functions.
16564
16565 *Steve Henson*
16566
16567 * Add a new flag to memory BIOs, BIO_FLAG_MEM_RDONLY. This marks the BIO
16568 as "read only": it can't be written to and the buffer it points to will
16569 not be freed. Reading from a read only BIO is much more efficient than
16570 a normal memory BIO. This was added because there are several times when
16571 an area of memory needs to be read from a BIO. The previous method was
16572 to create a memory BIO and write the data to it, this results in two
16573 copies of the data and an O(n^2) reading algorithm. There is a new
16574 function BIO_new_mem_buf() which creates a read only memory BIO from
16575 an area of memory. Also modified the PKCS#7 routines to use read only
16576 memory BIOs.
16577
16578 *Steve Henson*
16579
16580 * Bugfix: ssl23_get_client_hello did not work properly when called in
16581 state SSL23_ST_SR_CLNT_HELLO_B, i.e. when the first 7 bytes of
16582 a SSLv2-compatible client hello for SSLv3 or TLSv1 could be read,
16583 but a retry condition occurred while trying to read the rest.
16584
16585 *Bodo Moeller*
16586
16587 * The PKCS7_ENC_CONTENT_new() function was setting the content type as
16588 NID_pkcs7_encrypted by default: this was wrong since this should almost
16589 always be NID_pkcs7_data. Also modified the PKCS7_set_type() to handle
16590 the encrypted data type: this is a more sensible place to put it and it
16591 allows the PKCS#12 code to be tidied up that duplicated this
16592 functionality.
16593
16594 *Steve Henson*
16595
16596 * Changed obj_dat.pl script so it takes its input and output files on
16597 the command line. This should avoid shell escape redirection problems
16598 under Win32.
16599
16600 *Steve Henson*
16601
16602 * Initial support for certificate extension requests, these are included
16603 in things like Xenroll certificate requests. Included functions to allow
16604 extensions to be obtained and added.
16605
16606 *Steve Henson*
16607
16608 * -crlf option to s_client and s_server for sending newlines as
16609 CRLF (as required by many protocols).
16610
16611 *Bodo Moeller*
16612
257e9d03 16613### Changes between 0.9.3a and 0.9.4 [09 Aug 1999]
5f8e6c50
DMSP
16614
16615 * Install libRSAglue.a when OpenSSL is built with RSAref.
16616
16617 *Ralf S. Engelschall*
16618
257e9d03 16619 * A few more `#ifndef NO_FP_API / #endif` pairs for consistency.
5f8e6c50
DMSP
16620
16621 *Andrija Antonijevic <TheAntony2@bigfoot.com>*
16622
16623 * Fix -startdate and -enddate (which was missing) arguments to 'ca'
16624 program.
16625
16626 *Steve Henson*
16627
16628 * New function DSA_dup_DH, which duplicates DSA parameters/keys as
16629 DH parameters/keys (q is lost during that conversion, but the resulting
16630 DH parameters contain its length).
16631
16632 For 1024-bit p, DSA_generate_parameters followed by DSA_dup_DH is
16633 much faster than DH_generate_parameters (which creates parameters
257e9d03 16634 where `p = 2*q + 1`), and also the smaller q makes DH computations
5f8e6c50
DMSP
16635 much more efficient (160-bit exponentiation instead of 1024-bit
16636 exponentiation); so this provides a convenient way to support DHE
16637 ciphersuites in SSL/TLS servers (see ssl/ssltest.c). It is of
16638 utter importance to use
16639 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
16640 or
16641 SSL_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
16642 when such DH parameters are used, because otherwise small subgroup
16643 attacks may become possible!
16644
16645 *Bodo Moeller*
16646
16647 * Avoid memory leak in i2d_DHparams.
16648
16649 *Bodo Moeller*
16650
16651 * Allow the -k option to be used more than once in the enc program:
16652 this allows the same encrypted message to be read by multiple recipients.
16653
16654 *Steve Henson*
16655
16656 * New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts
16657 an ASN1_OBJECT to a text string. If the "no_name" parameter is set then
16658 it will always use the numerical form of the OID, even if it has a short
16659 or long name.
16660
16661 *Steve Henson*
16662
16663 * Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp
16664 method only got called if p,q,dmp1,dmq1,iqmp components were present,
16665 otherwise bn_mod_exp was called. In the case of hardware keys for example
16666 no private key components need be present and it might store extra data
16667 in the RSA structure, which cannot be accessed from bn_mod_exp.
16668 By setting RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for
16669 private key operations.
16670
16671 *Steve Henson*
16672
16673 * Added support for SPARC Linux.
16674
16675 *Andy Polyakov*
16676
16677 * pem_password_cb function type incompatibly changed from
16678 typedef int pem_password_cb(char *buf, int size, int rwflag);
16679 to
16680 ....(char *buf, int size, int rwflag, void *userdata);
16681 so that applications can pass data to their callbacks:
257e9d03 16682 The `PEM[_ASN1]_{read,write}...` functions and macros now take an
5f8e6c50
DMSP
16683 additional void * argument, which is just handed through whenever
16684 the password callback is called.
16685
16686 *Damien Miller <dmiller@ilogic.com.au>; tiny changes by Bodo Moeller*
16687
16688 New function SSL_CTX_set_default_passwd_cb_userdata.
16689
16690 Compatibility note: As many C implementations push function arguments
16691 onto the stack in reverse order, the new library version is likely to
16692 interoperate with programs that have been compiled with the old
16693 pem_password_cb definition (PEM_whatever takes some data that
16694 happens to be on the stack as its last argument, and the callback
16695 just ignores this garbage); but there is no guarantee whatsoever that
16696 this will work.
16697
16698 * The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
16699 (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
16700 problems not only on Windows, but also on some Unix platforms.
16701 To avoid problematic command lines, these definitions are now in an
16702 auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl
16703 for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds).
16704
16705 *Bodo Moeller*
16706
16707 * MIPS III/IV assembler module is reimplemented.
16708
16709 *Andy Polyakov*
16710
16711 * More DES library cleanups: remove references to srand/rand and
16712 delete an unused file.
16713
16714 *Ulf Möller*
16715
16716 * Add support for the free Netwide assembler (NASM) under Win32,
16717 since not many people have MASM (ml) and it can be hard to obtain.
16718 This is currently experimental but it seems to work OK and pass all
16719 the tests. Check out INSTALL.W32 for info.
16720
16721 *Steve Henson*
16722
16723 * Fix memory leaks in s3_clnt.c: All non-anonymous SSL3/TLS1 connections
16724 without temporary keys kept an extra copy of the server key,
16725 and connections with temporary keys did not free everything in case
16726 of an error.
16727
16728 *Bodo Moeller*
16729
16730 * New function RSA_check_key and new openssl rsa option -check
16731 for verifying the consistency of RSA keys.
16732
16733 *Ulf Moeller, Bodo Moeller*
16734
16735 * Various changes to make Win32 compile work:
16736 1. Casts to avoid "loss of data" warnings in p5_crpt2.c
16737 2. Change unsigned int to int in b_dump.c to avoid "signed/unsigned
16738 comparison" warnings.
257e9d03 16739 3. Add `sk_<TYPE>_sort` to DEF file generator and do make update.
5f8e6c50
DMSP
16740
16741 *Steve Henson*
16742
16743 * Add a debugging option to PKCS#5 v2 key generation function: when
16744 you #define DEBUG_PKCS5V2 passwords, salts, iteration counts and
16745 derived keys are printed to stderr.
16746
16747 *Steve Henson*
16748
16749 * Copy the flags in ASN1_STRING_dup().
16750
16751 *Roman E. Pavlov <pre@mo.msk.ru>*
16752
16753 * The x509 application mishandled signing requests containing DSA
16754 keys when the signing key was also DSA and the parameters didn't match.
16755
16756 It was supposed to omit the parameters when they matched the signing key:
16757 the verifying software was then supposed to automatically use the CA's
16758 parameters if they were absent from the end user certificate.
16759
16760 Omitting parameters is no longer recommended. The test was also
16761 the wrong way round! This was probably due to unusual behaviour in
16762 EVP_cmp_parameters() which returns 1 if the parameters match.
16763 This meant that parameters were omitted when they *didn't* match and
16764 the certificate was useless. Certificates signed with 'ca' didn't have
16765 this bug.
16766
16767 *Steve Henson, reported by Doug Erickson <Doug.Erickson@Part.NET>*
16768
16769 * Memory leak checking (-DCRYPTO_MDEBUG) had some problems.
16770 The interface is as follows:
16771 Applications can use
16772 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) aka MemCheck_start(),
16773 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) aka MemCheck_stop();
16774 "off" is now the default.
16775 The library internally uses
16776 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) aka MemCheck_off(),
16777 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) aka MemCheck_on()
16778 to disable memory-checking temporarily.
16779
16780 Some inconsistent states that previously were possible (and were
16781 even the default) are now avoided.
16782
16783 -DCRYPTO_MDEBUG_TIME is new and additionally stores the current time
16784 with each memory chunk allocated; this is occasionally more helpful
16785 than just having a counter.
16786
16787 -DCRYPTO_MDEBUG_THREAD is also new and adds the thread ID.
16788
16789 -DCRYPTO_MDEBUG_ALL enables all of the above, plus any future
16790 extensions.
16791
16792 *Bodo Moeller*
16793
16794 * Introduce "mode" for SSL structures (with defaults in SSL_CTX),
16795 which largely parallels "options", but is for changing API behaviour,
16796 whereas "options" are about protocol behaviour.
16797 Initial "mode" flags are:
16798
16799 SSL_MODE_ENABLE_PARTIAL_WRITE Allow SSL_write to report success when
16800 a single record has been written.
16801 SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER Don't insist that SSL_write
16802 retries use the same buffer location.
16803 (But all of the contents must be
16804 copied!)
16805
16806 *Bodo Moeller*
16807
16808 * Bugfix: SSL_set_options ignored its parameter, only SSL_CTX_set_options
16809 worked.
16810
16811 * Fix problems with no-hmac etc.
16812
16813 *Ulf Möller, pointed out by Brian Wellington <bwelling@tislabs.com>*
16814
16815 * New functions RSA_get_default_method(), RSA_set_method() and
16816 RSA_get_method(). These allows replacement of RSA_METHODs without having
16817 to mess around with the internals of an RSA structure.
16818
16819 *Steve Henson*
16820
16821 * Fix memory leaks in DSA_do_sign and DSA_is_prime.
16822 Also really enable memory leak checks in openssl.c and in some
16823 test programs.
16824
16825 *Chad C. Mulligan, Bodo Moeller*
16826
16827 * Fix a bug in d2i_ASN1_INTEGER() and i2d_ASN1_INTEGER() which can mess
16828 up the length of negative integers. This has now been simplified to just
16829 store the length when it is first determined and use it later, rather
16830 than trying to keep track of where data is copied and updating it to
16831 point to the end.
257e9d03 16832 *Steve Henson, reported by Brien Wheeler <bwheeler@authentica-security.com>*
5f8e6c50
DMSP
16833
16834 * Add a new function PKCS7_signatureVerify. This allows the verification
16835 of a PKCS#7 signature but with the signing certificate passed to the
16836 function itself. This contrasts with PKCS7_dataVerify which assumes the
16837 certificate is present in the PKCS#7 structure. This isn't always the
16838 case: certificates can be omitted from a PKCS#7 structure and be
16839 distributed by "out of band" means (such as a certificate database).
16840
16841 *Steve Henson*
16842
257e9d03 16843 * Complete the `PEM_*` macros with DECLARE_PEM versions to replace the
5f8e6c50
DMSP
16844 function prototypes in pem.h, also change util/mkdef.pl to add the
16845 necessary function names.
16846
16847 *Steve Henson*
16848
16849 * mk1mf.pl (used by Windows builds) did not properly read the
16850 options set by Configure in the top level Makefile, and Configure
16851 was not even able to write more than one option correctly.
16852 Fixed, now "no-idea no-rc5 -DCRYPTO_MDEBUG" etc. works as intended.
16853
16854 *Bodo Moeller*
16855
16856 * New functions CONF_load_bio() and CONF_load_fp() to allow a config
16857 file to be loaded from a BIO or FILE pointer. The BIO version will
16858 for example allow memory BIOs to contain config info.
16859
16860 *Steve Henson*
16861
16862 * New function "CRYPTO_num_locks" that returns CRYPTO_NUM_LOCKS.
16863 Whoever hopes to achieve shared-library compatibility across versions
16864 must use this, not the compile-time macro.
16865 (Exercise 0.9.4: Which is the minimum library version required by
16866 such programs?)
16867 Note: All this applies only to multi-threaded programs, others don't
16868 need locks.
16869
16870 *Bodo Moeller*
16871
16872 * Add missing case to s3_clnt.c state machine -- one of the new SSL tests
16873 through a BIO pair triggered the default case, i.e.
16874 SSLerr(...,SSL_R_UNKNOWN_STATE).
16875
16876 *Bodo Moeller*
16877
16878 * New "BIO pair" concept (crypto/bio/bss_bio.c) so that applications
16879 can use the SSL library even if none of the specific BIOs is
16880 appropriate.
16881
16882 *Bodo Moeller*
16883
16884 * Fix a bug in i2d_DSAPublicKey() which meant it returned the wrong value
16885 for the encoded length.
16886
16887 *Jeon KyoungHo <khjeon@sds.samsung.co.kr>*
16888
16889 * Add initial documentation of the X509V3 functions.
16890
16891 *Steve Henson*
16892
16893 * Add a new pair of functions PEM_write_PKCS8PrivateKey() and
16894 PEM_write_bio_PKCS8PrivateKey() that are equivalent to
16895 PEM_write_PrivateKey() and PEM_write_bio_PrivateKey() but use the more
16896 secure PKCS#8 private key format with a high iteration count.
16897
16898 *Steve Henson*
16899
16900 * Fix determination of Perl interpreter: A perl or perl5
257e9d03 16901 *directory* in $PATH was also accepted as the interpreter.
5f8e6c50
DMSP
16902
16903 *Ralf S. Engelschall*
16904
16905 * Fix demos/sign/sign.c: well there wasn't anything strictly speaking
16906 wrong with it but it was very old and did things like calling
16907 PEM_ASN1_read() directly and used MD5 for the hash not to mention some
16908 unusual formatting.
16909
16910 *Steve Henson*
16911
16912 * Fix demos/selfsign.c: it used obsolete and deleted functions, changed
16913 to use the new extension code.
16914
16915 *Steve Henson*
16916
16917 * Implement the PEM_read/PEM_write functions in crypto/pem/pem_all.c
16918 with macros. This should make it easier to change their form, add extra
16919 arguments etc. Fix a few PEM prototypes which didn't have cipher as a
16920 constant.
16921
16922 *Steve Henson*
16923
16924 * Add to configuration table a new entry that can specify an alternative
16925 name for unistd.h (for pre-POSIX systems); we need this for NeXTstep,
16926 according to Mark Crispin <MRC@Panda.COM>.
16927
16928 *Bodo Moeller*
16929
5f8e6c50
DMSP
16930 * DES CBC did not update the IV. Weird.
16931
16932 *Ben Laurie*
16933lse
16934 des_cbc_encrypt does not update the IV, but des_ncbc_encrypt does.
16935 Changing the behaviour of the former might break existing programs --
16936 where IV updating is needed, des_ncbc_encrypt can be used.
16937ndif
16938
16939 * When bntest is run from "make test" it drives bc to check its
16940 calculations, as well as internally checking them. If an internal check
16941 fails, it needs to cause bc to give a non-zero result or make test carries
16942 on without noticing the failure. Fixed.
16943
16944 *Ben Laurie*
16945
16946 * DES library cleanups.
16947
16948 *Ulf Möller*
16949
16950 * Add support for PKCS#5 v2.0 PBE algorithms. This will permit PKCS#8 to be
16951 used with any cipher unlike PKCS#5 v1.5 which can at most handle 64 bit
16952 ciphers. NOTE: although the key derivation function has been verified
16953 against some published test vectors it has not been extensively tested
16954 yet. Added a -v2 "cipher" option to pkcs8 application to allow the use
16955 of v2.0.
16956
16957 *Steve Henson*
16958
16959 * Instead of "mkdir -p", which is not fully portable, use new
16960 Perl script "util/mkdir-p.pl".
16961
16962 *Bodo Moeller*
16963
16964 * Rewrite the way password based encryption (PBE) is handled. It used to
16965 assume that the ASN1 AlgorithmIdentifier parameter was a PBEParameter
16966 structure. This was true for the PKCS#5 v1.5 and PKCS#12 PBE algorithms
16967 but doesn't apply to PKCS#5 v2.0 where it can be something else. Now
16968 the 'parameter' field of the AlgorithmIdentifier is passed to the
16969 underlying key generation function so it must do its own ASN1 parsing.
16970 This has also changed the EVP_PBE_CipherInit() function which now has a
16971 'parameter' argument instead of literal salt and iteration count values
16972 and the function EVP_PBE_ALGOR_CipherInit() has been deleted.
16973
16974 *Steve Henson*
16975
16976 * Support for PKCS#5 v1.5 compatible password based encryption algorithms
16977 and PKCS#8 functionality. New 'pkcs8' application linked to openssl.
16978 Needed to change the PEM_STRING_EVP_PKEY value which was just "PRIVATE
16979 KEY" because this clashed with PKCS#8 unencrypted string. Since this
16980 value was just used as a "magic string" and not used directly its
16981 value doesn't matter.
16982
16983 *Steve Henson*
16984
16985 * Introduce some semblance of const correctness to BN. Shame C doesn't
16986 support mutable.
16987
16988 *Ben Laurie*
16989
16990 * "linux-sparc64" configuration (ultrapenguin).
16991
16992 *Ray Miller <ray.miller@oucs.ox.ac.uk>*
16993 "linux-sparc" configuration.
16994
16995 *Christian Forster <fo@hawo.stw.uni-erlangen.de>*
16996
16997 * config now generates no-xxx options for missing ciphers.
16998
16999 *Ulf Möller*
17000
17001 * Support the EBCDIC character set (work in progress).
17002 File ebcdic.c not yet included because it has a different license.
17003
17004 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
17005
17006 * Support BS2000/OSD-POSIX.
17007
17008 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
17009
257e9d03 17010 * Make callbacks for key generation use `void *` instead of `char *`.
5f8e6c50
DMSP
17011
17012 *Ben Laurie*
17013
17014 * Make S/MIME samples compile (not yet tested).
17015
17016 *Ben Laurie*
17017
17018 * Additional typesafe stacks.
17019
17020 *Ben Laurie*
17021
17022 * New configuration variants "bsdi-elf-gcc" (BSD/OS 4.x).
17023
17024 *Bodo Moeller*
17025
257e9d03 17026### Changes between 0.9.3 and 0.9.3a [29 May 1999]
5f8e6c50
DMSP
17027
17028 * New configuration variant "sco5-gcc".
17029
17030 * Updated some demos.
17031
17032 *Sean O Riordain, Wade Scholine*
17033
17034 * Add missing BIO_free at exit of pkcs12 application.
17035
17036 *Wu Zhigang*
17037
17038 * Fix memory leak in conf.c.
17039
17040 *Steve Henson*
17041
17042 * Updates for Win32 to assembler version of MD5.
17043
17044 *Steve Henson*
17045
17046 * Set #! path to perl in apps/der_chop to where we found it
17047 instead of using a fixed path.
17048
17049 *Bodo Moeller*
17050
17051 * SHA library changes for irix64-mips4-cc.
17052
17053 *Andy Polyakov*
17054
17055 * Improvements for VMS support.
17056
17057 *Richard Levitte*
17058
257e9d03 17059### Changes between 0.9.2b and 0.9.3 [24 May 1999]
5f8e6c50
DMSP
17060
17061 * Bignum library bug fix. IRIX 6 passes "make test" now!
17062 This also avoids the problems with SC4.2 and unpatched SC5.
17063
17064 *Andy Polyakov <appro@fy.chalmers.se>*
17065
17066 * New functions sk_num, sk_value and sk_set to replace the previous macros.
17067 These are required because of the typesafe stack would otherwise break
17068 existing code. If old code used a structure member which used to be STACK
17069 and is now STACK_OF (for example cert in a PKCS7_SIGNED structure) with
17070 sk_num or sk_value it would produce an error because the num, data members
17071 are not present in STACK_OF. Now it just produces a warning. sk_set
17072 replaces the old method of assigning a value to sk_value
17073 (e.g. sk_value(x, i) = y) which the library used in a few cases. Any code
17074 that does this will no longer work (and should use sk_set instead) but
17075 this could be regarded as a "questionable" behaviour anyway.
17076
17077 *Steve Henson*
17078
17079 * Fix most of the other PKCS#7 bugs. The "experimental" code can now
17080 correctly handle encrypted S/MIME data.
17081
17082 *Steve Henson*
17083
17084 * Change type of various DES function arguments from des_cblock
17085 (which means, in function argument declarations, pointer to char)
17086 to des_cblock * (meaning pointer to array with 8 char elements),
17087 which allows the compiler to do more typechecking; it was like
17088 that back in SSLeay, but with lots of ugly casts.
17089
17090 Introduce new type const_des_cblock.
17091
17092 *Bodo Moeller*
17093
17094 * Reorganise the PKCS#7 library and get rid of some of the more obvious
17095 problems: find RecipientInfo structure that matches recipient certificate
17096 and initialise the ASN1 structures properly based on passed cipher.
17097
17098 *Steve Henson*
17099
17100 * Belatedly make the BN tests actually check the results.
17101
17102 *Ben Laurie*
17103
17104 * Fix the encoding and decoding of negative ASN1 INTEGERS and conversion
17105 to and from BNs: it was completely broken. New compilation option
17106 NEG_PUBKEY_BUG to allow for some broken certificates that encode public
17107 key elements as negative integers.
17108
17109 *Steve Henson*
17110
17111 * Reorganize and speed up MD5.
17112
17113 *Andy Polyakov <appro@fy.chalmers.se>*
17114
17115 * VMS support.
17116
17117 *Richard Levitte <richard@levitte.org>*
17118
17119 * New option -out to asn1parse to allow the parsed structure to be
17120 output to a file. This is most useful when combined with the -strparse
17121 option to examine the output of things like OCTET STRINGS.
17122
17123 *Steve Henson*
17124
17125 * Make SSL library a little more fool-proof by not requiring any longer
257e9d03
RS
17126 that `SSL_set_{accept,connect}_state` be called before
17127 `SSL_{accept,connect}` may be used (`SSL_set_..._state` is omitted
5f8e6c50
DMSP
17128 in many applications because usually everything *appeared* to work as
17129 intended anyway -- now it really works as intended).
17130
17131 *Bodo Moeller*
17132
17133 * Move openssl.cnf out of lib/.
17134
17135 *Ulf Möller*
17136
257e9d03 17137 * Fix various things to let OpenSSL even pass "egcc -pipe -O2 -Wall
5f8e6c50 17138 -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes
257e9d03 17139 -Wmissing-declarations -Wnested-externs -Winline" with EGCS 1.1.2+
5f8e6c50
DMSP
17140
17141 *Ralf S. Engelschall*
17142
17143 * Various fixes to the EVP and PKCS#7 code. It may now be able to
17144 handle PKCS#7 enveloped data properly.
17145
17146 *Sebastian Akerman <sak@parallelconsulting.com>, modified by Steve*
17147
17148 * Create a duplicate of the SSL_CTX's CERT in SSL_new instead of
17149 copying pointers. The cert_st handling is changed by this in
17150 various ways (and thus what used to be known as ctx->default_cert
257e9d03 17151 is now called ctx->cert, since we don't resort to `s->ctx->[default_]cert`
5f8e6c50
DMSP
17152 any longer when s->cert does not give us what we need).
17153 ssl_cert_instantiate becomes obsolete by this change.
17154 As soon as we've got the new code right (possibly it already is?),
17155 we have solved a couple of bugs of the earlier code where s->cert
17156 was used as if it could not have been shared with other SSL structures.
17157
17158 Note that using the SSL API in certain dirty ways now will result
17159 in different behaviour than observed with earlier library versions:
257e9d03 17160 Changing settings for an `SSL_CTX *ctx` after having done s = SSL_new(ctx)
5f8e6c50
DMSP
17161 does not influence s as it used to.
17162
17163 In order to clean up things more thoroughly, inside SSL_SESSION
17164 we don't use CERT any longer, but a new structure SESS_CERT
17165 that holds per-session data (if available); currently, this is
17166 the peer's certificate chain and, for clients, the server's certificate
17167 and temporary key. CERT holds only those values that can have
17168 meaningful defaults in an SSL_CTX.
17169
17170 *Bodo Moeller*
17171
17172 * New function X509V3_EXT_i2d() to create an X509_EXTENSION structure
17173 from the internal representation. Various PKCS#7 fixes: remove some
17174 evil casts and set the enc_dig_alg field properly based on the signing
17175 key type.
17176
17177 *Steve Henson*
17178
17179 * Allow PKCS#12 password to be set from the command line or the
17180 environment. Let 'ca' get its config file name from the environment
17181 variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req'
17182 and 'x509').
17183
17184 *Steve Henson*
17185
17186 * Allow certificate policies extension to use an IA5STRING for the
17187 organization field. This is contrary to the PKIX definition but
17188 VeriSign uses it and IE5 only recognises this form. Document 'x509'
17189 extension option.
17190
17191 *Steve Henson*
17192
17193 * Add PEDANTIC compiler flag to allow compilation with gcc -pedantic,
17194 without disallowing inline assembler and the like for non-pedantic builds.
17195
17196 *Ben Laurie*
17197
17198 * Support Borland C++ builder.
17199
17200 *Janez Jere <jj@void.si>, modified by Ulf Möller*
17201
17202 * Support Mingw32.
17203
17204 *Ulf Möller*
17205
17206 * SHA-1 cleanups and performance enhancements.
17207
17208 *Andy Polyakov <appro@fy.chalmers.se>*
17209
17210 * Sparc v8plus assembler for the bignum library.
17211
17212 *Andy Polyakov <appro@fy.chalmers.se>*
17213
17214 * Accept any -xxx and +xxx compiler options in Configure.
17215
17216 *Ulf Möller*
17217
17218 * Update HPUX configuration.
17219
17220 *Anonymous*
17221
257e9d03 17222 * Add missing `sk_<type>_unshift()` function to safestack.h
5f8e6c50
DMSP
17223
17224 *Ralf S. Engelschall*
17225
17226 * New function SSL_CTX_use_certificate_chain_file that sets the
17227 "extra_cert"s in addition to the certificate. (This makes sense
17228 only for "PEM" format files, as chains as a whole are not
17229 DER-encoded.)
17230
17231 *Bodo Moeller*
17232
17233 * Support verify_depth from the SSL API.
17234 x509_vfy.c had what can be considered an off-by-one-error:
17235 Its depth (which was not part of the external interface)
17236 was actually counting the number of certificates in a chain;
17237 now it really counts the depth.
17238
17239 *Bodo Moeller*
17240
17241 * Bugfix in crypto/x509/x509_cmp.c: The SSLerr macro was used
17242 instead of X509err, which often resulted in confusing error
17243 messages since the error codes are not globally unique
17244 (e.g. an alleged error in ssl3_accept when a certificate
17245 didn't match the private key).
17246
17247 * New function SSL_CTX_set_session_id_context that allows to set a default
17248 value (so that you don't need SSL_set_session_id_context for each
17249 connection using the SSL_CTX).
17250
17251 *Bodo Moeller*
17252
17253 * OAEP decoding bug fix.
17254
17255 *Ulf Möller*
17256
17257 * Support INSTALL_PREFIX for package builders, as proposed by
17258 David Harris.
17259
17260 *Bodo Moeller*
17261
17262 * New Configure options "threads" and "no-threads". For systems
17263 where the proper compiler options are known (currently Solaris
17264 and Linux), "threads" is the default.
17265
17266 *Bodo Moeller*
17267
17268 * New script util/mklink.pl as a faster substitute for util/mklink.sh.
17269
17270 *Bodo Moeller*
17271
17272 * Install various scripts to $(OPENSSLDIR)/misc, not to
17273 $(INSTALLTOP)/bin -- they shouldn't clutter directories
17274 such as /usr/local/bin.
17275
17276 *Bodo Moeller*
17277
17278 * "make linux-shared" to build shared libraries.
17279
17280 *Niels Poppe <niels@netbox.org>*
17281
257e9d03 17282 * New Configure option `no-<cipher>` (rsa, idea, rc5, ...).
5f8e6c50
DMSP
17283
17284 *Ulf Möller*
17285
17286 * Add the PKCS#12 API documentation to openssl.txt. Preliminary support for
17287 extension adding in x509 utility.
17288
17289 *Steve Henson*
17290
17291 * Remove NOPROTO sections and error code comments.
17292
17293 *Ulf Möller*
17294
17295 * Partial rewrite of the DEF file generator to now parse the ANSI
17296 prototypes.
17297
17298 *Steve Henson*
17299
17300 * New Configure options --prefix=DIR and --openssldir=DIR.
17301
17302 *Ulf Möller*
17303
17304 * Complete rewrite of the error code script(s). It is all now handled
17305 by one script at the top level which handles error code gathering,
17306 header rewriting and C source file generation. It should be much better
17307 than the old method: it now uses a modified version of Ulf's parser to
17308 read the ANSI prototypes in all header files (thus the old K&R definitions
17309 aren't needed for error creation any more) and do a better job of
44652c16 17310 translating function codes into names. The old 'ASN1 error code embedded
5f8e6c50
DMSP
17311 in a comment' is no longer necessary and it doesn't use .err files which
17312 have now been deleted. Also the error code call doesn't have to appear all
17313 on one line (which resulted in some large lines...).
17314
17315 *Steve Henson*
17316
257e9d03 17317 * Change #include filenames from `<foo.h>` to `<openssl/foo.h>`.
5f8e6c50
DMSP
17318
17319 *Bodo Moeller*
17320
17321 * Change behaviour of ssl2_read when facing length-0 packets: Don't return
17322 0 (which usually indicates a closed connection), but continue reading.
17323
17324 *Bodo Moeller*
17325
17326 * Fix some race conditions.
17327
17328 *Bodo Moeller*
17329
17330 * Add support for CRL distribution points extension. Add Certificate
17331 Policies and CRL distribution points documentation.
17332
17333 *Steve Henson*
17334
17335 * Move the autogenerated header file parts to crypto/opensslconf.h.
17336
17337 *Ulf Möller*
17338
17339 * Fix new 56-bit DES export ciphersuites: they were using 7 bytes instead of
17340 8 of keying material. Merlin has also confirmed interop with this fix
17341 between OpenSSL and Baltimore C/SSL 2.0 and J/SSL 2.0.
17342
17343 *Merlin Hughes <merlin@baltimore.ie>*
17344
17345 * Fix lots of warnings.
17346
17347 *Richard Levitte <levitte@stacken.kth.se>*
17348
17349 * In add_cert_dir() in crypto/x509/by_dir.c, break out of the loop if
17350 the directory spec didn't end with a LIST_SEPARATOR_CHAR.
17351
17352 *Richard Levitte <levitte@stacken.kth.se>*
17353
17354 * Fix problems with sizeof(long) == 8.
17355
17356 *Andy Polyakov <appro@fy.chalmers.se>*
17357
17358 * Change functions to ANSI C.
17359
17360 *Ulf Möller*
17361
17362 * Fix typos in error codes.
17363
17364 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>, Ulf Möller*
17365
17366 * Remove defunct assembler files from Configure.
17367
17368 *Ulf Möller*
17369
17370 * SPARC v8 assembler BIGNUM implementation.
17371
17372 *Andy Polyakov <appro@fy.chalmers.se>*
17373
17374 * Support for Certificate Policies extension: both print and set.
17375 Various additions to support the r2i method this uses.
17376
17377 *Steve Henson*
17378
17379 * A lot of constification, and fix a bug in X509_NAME_oneline() that could
17380 return a const string when you are expecting an allocated buffer.
17381
17382 *Ben Laurie*
17383
17384 * Add support for ASN1 types UTF8String and VISIBLESTRING, also the CHOICE
17385 types DirectoryString and DisplayText.
17386
17387 *Steve Henson*
17388
17389 * Add code to allow r2i extensions to access the configuration database,
17390 add an LHASH database driver and add several ctx helper functions.
17391
17392 *Steve Henson*
17393
17394 * Fix an evil bug in bn_expand2() which caused various BN functions to
17395 fail when they extended the size of a BIGNUM.
17396
17397 *Steve Henson*
17398
17399 * Various utility functions to handle SXNet extension. Modify mkdef.pl to
17400 support typesafe stack.
17401
17402 *Steve Henson*
17403
17404 * Fix typo in SSL_[gs]et_options().
17405
17406 *Nils Frostberg <nils@medcom.se>*
17407
17408 * Delete various functions and files that belonged to the (now obsolete)
17409 old X509V3 handling code.
17410
17411 *Steve Henson*
17412
17413 * New Configure option "rsaref".
17414
17415 *Ulf Möller*
17416
17417 * Don't auto-generate pem.h.
17418
17419 *Bodo Moeller*
17420
17421 * Introduce type-safe ASN.1 SETs.
17422
17423 *Ben Laurie*
17424
17425 * Convert various additional casted stacks to type-safe STACK_OF() variants.
17426
17427 *Ben Laurie, Ralf S. Engelschall, Steve Henson*
17428
17429 * Introduce type-safe STACKs. This will almost certainly break lots of code
17430 that links with OpenSSL (well at least cause lots of warnings), but fear
17431 not: the conversion is trivial, and it eliminates loads of evil casts. A
17432 few STACKed things have been converted already. Feel free to convert more.
17433 In the fullness of time, I'll do away with the STACK type altogether.
17434
17435 *Ben Laurie*
17436
257e9d03
RS
17437 * Add `openssl ca -revoke <certfile>` facility which revokes a certificate
17438 specified in `<certfile>` by updating the entry in the index.txt file.
5f8e6c50
DMSP
17439 This way one no longer has to edit the index.txt file manually for
17440 revoking a certificate. The -revoke option does the gory details now.
17441
17442 *Massimiliano Pala <madwolf@openca.org>, Ralf S. Engelschall*
17443
257e9d03
RS
17444 * Fix `openssl crl -noout -text` combination where `-noout` killed the
17445 `-text` option at all and this way the `-noout -text` combination was
17446 inconsistent in `openssl crl` with the friends in `openssl x509|rsa|dsa`.
5f8e6c50
DMSP
17447
17448 *Ralf S. Engelschall*
17449
17450 * Make sure a corresponding plain text error message exists for the
17451 X509_V_ERR_CERT_REVOKED/23 error number which can occur when a
17452 verify callback function determined that a certificate was revoked.
17453
17454 *Ralf S. Engelschall*
17455
257e9d03 17456 * Bugfix: In test/testenc, don't test `openssl <cipher>` for
5f8e6c50
DMSP
17457 ciphers that were excluded, e.g. by -DNO_IDEA. Also, test
17458 all available ciphers including rc5, which was forgotten until now.
17459 In order to let the testing shell script know which algorithms
17460 are available, a new (up to now undocumented) command
257e9d03 17461 `openssl list-cipher-commands` is used.
5f8e6c50
DMSP
17462
17463 *Bodo Moeller*
17464
17465 * Bugfix: s_client occasionally would sleep in select() when
17466 it should have checked SSL_pending() first.
17467
17468 *Bodo Moeller*
17469
17470 * New functions DSA_do_sign and DSA_do_verify to provide access to
17471 the raw DSA values prior to ASN.1 encoding.
17472
17473 *Ulf Möller*
17474
17475 * Tweaks to Configure
17476
17477 *Niels Poppe <niels@netbox.org>*
17478
17479 * Add support for PKCS#5 v2.0 ASN1 PBES2 structures. No other support,
17480 yet...
17481
17482 *Steve Henson*
17483
17484 * New variables $(RANLIB) and $(PERL) in the Makefiles.
17485
17486 *Ulf Möller*
17487
17488 * New config option to avoid instructions that are illegal on the 80386.
17489 The default code is faster, but requires at least a 486.
17490
17491 *Ulf Möller*
17492
17493 * Got rid of old SSL2_CLIENT_VERSION (inconsistently used) and
17494 SSL2_SERVER_VERSION (not used at all) macros, which are now the
17495 same as SSL2_VERSION anyway.
17496
17497 *Bodo Moeller*
17498
17499 * New "-showcerts" option for s_client.
17500
17501 *Bodo Moeller*
17502
17503 * Still more PKCS#12 integration. Add pkcs12 application to openssl
17504 application. Various cleanups and fixes.
17505
17506 *Steve Henson*
17507
17508 * More PKCS#12 integration. Add new pkcs12 directory with Makefile.ssl and
17509 modify error routines to work internally. Add error codes and PBE init
17510 to library startup routines.
17511
17512 *Steve Henson*
17513
17514 * Further PKCS#12 integration. Added password based encryption, PKCS#8 and
17515 packing functions to asn1 and evp. Changed function names and error
17516 codes along the way.
17517
17518 *Steve Henson*
17519
17520 * PKCS12 integration: and so it begins... First of several patches to
17521 slowly integrate PKCS#12 functionality into OpenSSL. Add PKCS#12
17522 objects to objects.h
17523
17524 *Steve Henson*
17525
17526 * Add a new 'indent' option to some X509V3 extension code. Initial ASN1
17527 and display support for Thawte strong extranet extension.
17528
17529 *Steve Henson*
17530
17531 * Add LinuxPPC support.
17532
17533 *Jeff Dubrule <igor@pobox.org>*
17534
17535 * Get rid of redundant BN file bn_mulw.c, and rename bn_div64 to
17536 bn_div_words in alpha.s.
17537
17538 *Hannes Reinecke <H.Reinecke@hw.ac.uk> and Ben Laurie*
17539
17540 * Make sure the RSA OAEP test is skipped under -DRSAref because
17541 OAEP isn't supported when OpenSSL is built with RSAref.
17542
17543 *Ulf Moeller <ulf@fitug.de>*
17544
17545 * Move definitions of IS_SET/IS_SEQUENCE inside crypto/asn1/asn1.h
17546 so they no longer are missing under -DNOPROTO.
17547
17548 *Soren S. Jorvang <soren@t.dk>*
17549
257e9d03 17550### Changes between 0.9.1c and 0.9.2b [22 Mar 1999]
5f8e6c50
DMSP
17551
17552 * Make SSL_get_peer_cert_chain() work in servers. Unfortunately, it still
17553 doesn't work when the session is reused. Coming soon!
17554
17555 *Ben Laurie*
17556
17557 * Fix a security hole, that allows sessions to be reused in the wrong
17558 context thus bypassing client cert protection! All software that uses
17559 client certs and session caches in multiple contexts NEEDS PATCHING to
17560 allow session reuse! A fuller solution is in the works.
17561
17562 *Ben Laurie, problem pointed out by Holger Reif, Bodo Moeller (and ???)*
17563
17564 * Some more source tree cleanups (removed obsolete files
17565 crypto/bf/asm/bf586.pl, test/test.txt and crypto/sha/asm/f.s; changed
17566 permission on "config" script to be executable) and a fix for the INSTALL
17567 document.
17568
17569 *Ulf Moeller <ulf@fitug.de>*
17570
17571 * Remove some legacy and erroneous uses of malloc, free instead of
17572 Malloc, Free.
17573
17574 *Lennart Bang <lob@netstream.se>, with minor changes by Steve*
17575
17576 * Make rsa_oaep_test return non-zero on error.
17577
17578 *Ulf Moeller <ulf@fitug.de>*
17579
17580 * Add support for native Solaris shared libraries. Configure
17581 solaris-sparc-sc4-pic, make, then run shlib/solaris-sc4.sh. It'd be nice
17582 if someone would make that last step automatic.
17583
17584 *Matthias Loepfe <Matthias.Loepfe@AdNovum.CH>*
17585
17586 * ctx_size was not built with the right compiler during "make links". Fixed.
17587
17588 *Ben Laurie*
17589
17590 * Change the meaning of 'ALL' in the cipher list. It now means "everything
17591 except NULL ciphers". This means the default cipher list will no longer
17592 enable NULL ciphers. They need to be specifically enabled e.g. with
17593 the string "DEFAULT:eNULL".
17594
17595 *Steve Henson*
17596
17597 * Fix to RSA private encryption routines: if p < q then it would
17598 occasionally produce an invalid result. This will only happen with
17599 externally generated keys because OpenSSL (and SSLeay) ensure p > q.
17600
17601 *Steve Henson*
17602
17603 * Be less restrictive and allow also `perl util/perlpath.pl
1dc1ea18
DDO
17604 /path/to/bin/perl` in addition to `perl util/perlpath.pl /path/to/bin`,
17605 because this way one can also use an interpreter named `perl5` (which is
5f8e6c50 17606 usually the name of Perl 5.xxx on platforms where an Perl 4.x is still
1dc1ea18 17607 installed as `perl`).
5f8e6c50
DMSP
17608
17609 *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
17610
17611 * Let util/clean-depend.pl work also with older Perl 5.00x versions.
17612
17613 *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
17614
17615 * Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add
17616 advapi32.lib to Win32 build and change the pem test comparison
17617 to fc.exe (thanks to Ulrich Kroener <kroneru@yahoo.com> for the
17618 suggestion). Fix misplaced ASNI prototypes and declarations in evp.h
17619 and crypto/des/ede_cbcm_enc.c.
17620
17621 *Steve Henson*
17622
17623 * DES quad checksum was broken on big-endian architectures. Fixed.
17624
17625 *Ben Laurie*
17626
17627 * Comment out two functions in bio.h that aren't implemented. Fix up the
17628 Win32 test batch file so it (might) work again. The Win32 test batch file
17629 is horrible: I feel ill....
17630
17631 *Steve Henson*
17632
17633 * Move various #ifdefs around so NO_SYSLOG, NO_DIRENT etc are now selected
17634 in e_os.h. Audit of header files to check ANSI and non ANSI
17635 sections: 10 functions were absent from non ANSI section and not exported
17636 from Windows DLLs. Fixed up libeay.num for new functions.
17637
17638 *Steve Henson*
17639
1dc1ea18 17640 * Make `openssl version` output lines consistent.
5f8e6c50
DMSP
17641
17642 *Ralf S. Engelschall*
17643
17644 * Fix Win32 symbol export lists for BIO functions: Added
17645 BIO_get_ex_new_index, BIO_get_ex_num, BIO_get_ex_data and BIO_set_ex_data
17646 to ms/libeay{16,32}.def.
17647
17648 *Ralf S. Engelschall*
17649
17650 * Second round of fixing the OpenSSL perl/ stuff. It now at least compiled
17651 fine under Unix and passes some trivial tests I've now added. But the
17652 whole stuff is horribly incomplete, so a README.1ST with a disclaimer was
17653 added to make sure no one expects that this stuff really works in the
17654 OpenSSL 0.9.2 release. Additionally I've started to clean the XS sources
17655 up and fixed a few little bugs and inconsistencies in OpenSSL.{pm,xs} and
17656 openssl_bio.xs.
17657
17658 *Ralf S. Engelschall*
17659
17660 * Fix the generation of two part addresses in perl.
17661
17662 *Kenji Miyake <kenji@miyake.org>, integrated by Ben Laurie*
17663
17664 * Add config entry for Linux on MIPS.
17665
17666 *John Tobey <jtobey@channel1.com>*
17667
17668 * Make links whenever Configure is run, unless we are on Windoze.
17669
17670 *Ben Laurie*
17671
17672 * Permit extensions to be added to CRLs using crl_section in openssl.cnf.
17673 Currently only issuerAltName and AuthorityKeyIdentifier make any sense
17674 in CRLs.
17675
17676 *Steve Henson*
17677
17678 * Add a useful kludge to allow package maintainers to specify compiler and
17679 other platforms details on the command line without having to patch the
257e9d03
RS
17680 Configure script every time: One now can use
17681 `perl Configure <id>:<details>`,
17682 i.e. platform ids are allowed to have details appended
5f8e6c50 17683 to them (separated by colons). This is treated as there would be a static
257e9d03
RS
17684 pre-configured entry in Configure's %table under key `<id>` with value
17685 `<details>` and `perl Configure <id>` is called. So, when you want to
5f8e6c50 17686 perform a quick test-compile under FreeBSD 3.1 with pgcc and without
257e9d03 17687 assembler stuff you can use `perl Configure "FreeBSD-elf:pgcc:-O6:::"`
5f8e6c50
DMSP
17688 now, which overrides the FreeBSD-elf entry on-the-fly.
17689
17690 *Ralf S. Engelschall*
17691
17692 * Disable new TLS1 ciphersuites by default: they aren't official yet.
17693
17694 *Ben Laurie*
17695
17696 * Allow DSO flags like -fpic, -fPIC, -KPIC etc. to be specified
1dc1ea18 17697 on the `perl Configure ...` command line. This way one can compile
5f8e6c50
DMSP
17698 OpenSSL libraries with Position Independent Code (PIC) which is needed
17699 for linking it into DSOs.
17700
17701 *Ralf S. Engelschall*
17702
17703 * Remarkably, export ciphers were totally broken and no-one had noticed!
17704 Fixed.
17705
17706 *Ben Laurie*
17707
17708 * Cleaned up the LICENSE document: The official contact for any license
17709 questions now is the OpenSSL core team under openssl-core@openssl.org.
17710 And add a paragraph about the dual-license situation to make sure people
17711 recognize that _BOTH_ the OpenSSL license _AND_ the SSLeay license apply
17712 to the OpenSSL toolkit.
17713
17714 *Ralf S. Engelschall*
17715
1dc1ea18
DDO
17716 * General source tree makefile cleanups: Made `making xxx in yyy...`
17717 display consistent in the source tree and replaced `/bin/rm` by `rm`.
17718 Additionally cleaned up the `make links` target: Remove unnecessary
5f8e6c50
DMSP
17719 semicolons, subsequent redundant removes, inline point.sh into mklink.sh
17720 to speed processing and no longer clutter the display with confusing
17721 stuff. Instead only the actually done links are displayed.
17722
17723 *Ralf S. Engelschall*
17724
17725 * Permit null encryption ciphersuites, used for authentication only. It used
17726 to be necessary to set the preprocessor define SSL_ALLOW_ENULL to do this.
17727 It is now necessary to set SSL_FORBID_ENULL to prevent the use of null
17728 encryption.
17729
17730 *Ben Laurie*
17731
17732 * Add a bunch of fixes to the PKCS#7 stuff. It used to sometimes reorder
17733 signed attributes when verifying signatures (this would break them),
17734 the detached data encoding was wrong and public keys obtained using
17735 X509_get_pubkey() weren't freed.
17736
17737 *Steve Henson*
17738
17739 * Add text documentation for the BUFFER functions. Also added a work around
17740 to a Win95 console bug. This was triggered by the password read stuff: the
17741 last character typed gets carried over to the next fread(). If you were
17742 generating a new cert request using 'req' for example then the last
17743 character of the passphrase would be CR which would then enter the first
17744 field as blank.
17745
17746 *Steve Henson*
17747
257e9d03 17748 * Added the new 'Includes OpenSSL Cryptography Software' button as
5f8e6c50
DMSP
17749 doc/openssl_button.{gif,html} which is similar in style to the old SSLeay
17750 button and can be used by applications based on OpenSSL to show the
17751 relationship to the OpenSSL project.
17752
17753 *Ralf S. Engelschall*
17754
17755 * Remove confusing variables in function signatures in files
17756 ssl/ssl_lib.c and ssl/ssl.h.
17757
17758 *Lennart Bong <lob@kulthea.stacken.kth.se>*
17759
17760 * Don't install bss_file.c under PREFIX/include/
17761
17762 *Lennart Bong <lob@kulthea.stacken.kth.se>*
17763
17764 * Get the Win32 compile working again. Modify mkdef.pl so it can handle
17765 functions that return function pointers and has support for NT specific
17766 stuff. Fix mk1mf.pl and VC-32.pl to support NT differences also. Various
17767 #ifdef WIN32 and WINNTs sprinkled about the place and some changes from
17768 unsigned to signed types: this was killing the Win32 compile.
17769
17770 *Steve Henson*
17771
17772 * Add new certificate file to stack functions,
17773 SSL_add_dir_cert_subjects_to_stack() and
17774 SSL_add_file_cert_subjects_to_stack(). These largely supplant
17775 SSL_load_client_CA_file(), and can be used to add multiple certs easily
17776 to a stack (usually this is then handed to SSL_CTX_set_client_CA_list()).
17777 This means that Apache-SSL and similar packages don't have to mess around
17778 to add as many CAs as they want to the preferred list.
17779
17780 *Ben Laurie*
17781
17782 * Experiment with doxygen documentation. Currently only partially applied to
17783 ssl/ssl_lib.c.
257e9d03 17784 See <http://www.stack.nl/~dimitri/doxygen/index.html>, and run doxygen with
5f8e6c50
DMSP
17785 openssl.doxy as the configuration file.
17786
17787 *Ben Laurie*
17788
17789 * Get rid of remaining C++-style comments which strict C compilers hate.
17790
17791 *Ralf S. Engelschall, pointed out by Carlos Amengual*
17792
17793 * Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not
17794 compiled in by default: it has problems with large keys.
17795
17796 *Steve Henson*
17797
17798 * Add a bunch of SSL_xxx() functions for configuring the temporary RSA and
17799 DH private keys and/or callback functions which directly correspond to
17800 their SSL_CTX_xxx() counterparts but work on a per-connection basis. This
17801 is needed for applications which have to configure certificates on a
17802 per-connection basis (e.g. Apache+mod_ssl) instead of a per-context basis
17803 (e.g. s_server).
17804 For the RSA certificate situation is makes no difference, but
17805 for the DSA certificate situation this fixes the "no shared cipher"
17806 problem where the OpenSSL cipher selection procedure failed because the
17807 temporary keys were not overtaken from the context and the API provided
17808 no way to reconfigure them.
17809 The new functions now let applications reconfigure the stuff and they
17810 are in detail: SSL_need_tmp_RSA, SSL_set_tmp_rsa, SSL_set_tmp_dh,
17811 SSL_set_tmp_rsa_callback and SSL_set_tmp_dh_callback. Additionally a new
17812 non-public-API function ssl_cert_instantiate() is used as a helper
17813 function and also to reduce code redundancy inside ssl_rsa.c.
17814
17815 *Ralf S. Engelschall*
17816
17817 * Move s_server -dcert and -dkey options out of the undocumented feature
17818 area because they are useful for the DSA situation and should be
17819 recognized by the users.
17820
17821 *Ralf S. Engelschall*
17822
17823 * Fix the cipher decision scheme for export ciphers: the export bits are
17824 *not* within SSL_MKEY_MASK or SSL_AUTH_MASK, they are within
17825 SSL_EXP_MASK. So, the original variable has to be used instead of the
17826 already masked variable.
17827
17828 *Richard Levitte <levitte@stacken.kth.se>*
17829
257e9d03 17830 * Fix `port` variable from `int` to `unsigned int` in crypto/bio/b_sock.c
5f8e6c50
DMSP
17831
17832 *Richard Levitte <levitte@stacken.kth.se>*
17833
17834 * Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal()
257e9d03
RS
17835 from `int` to `unsigned int` because it is a length and initialized by
17836 EVP_DigestFinal() which expects an `unsigned int *`.
5f8e6c50
DMSP
17837
17838 *Richard Levitte <levitte@stacken.kth.se>*
17839
17840 * Don't hard-code path to Perl interpreter on shebang line of Configure
17841 script. Instead use the usual Shell->Perl transition trick.
17842
17843 *Ralf S. Engelschall*
17844
1dc1ea18 17845 * Make `openssl x509 -noout -modulus`' functional also for DSA certificates
5f8e6c50 17846 (in addition to RSA certificates) to match the behaviour of `openssl dsa
1dc1ea18
DDO
17847 -noout -modulus` as it's already the case for `openssl rsa -noout
17848 -modulus`. For RSA the -modulus is the real "modulus" while for DSA
5f8e6c50 17849 currently the public key is printed (a decision which was already done by
1dc1ea18 17850 `openssl dsa -modulus` in the past) which serves a similar purpose.
5f8e6c50
DMSP
17851 Additionally the NO_RSA no longer completely removes the whole -modulus
17852 option; it now only avoids using the RSA stuff. Same applies to NO_DSA
17853 now, too.
17854
17855 *Ralf S. Engelschall*
17856
17857 * Add Arne Ansper's reliable BIO - this is an encrypted, block-digested
17858 BIO. See the source (crypto/evp/bio_ok.c) for more info.
17859
17860 *Arne Ansper <arne@ats.cyber.ee>*
17861
17862 * Dump the old yucky req code that tried (and failed) to allow raw OIDs
17863 to be added. Now both 'req' and 'ca' can use new objects defined in the
17864 config file.
17865
17866 *Steve Henson*
17867
17868 * Add cool BIO that does syslog (or event log on NT).
17869
17870 *Arne Ansper <arne@ats.cyber.ee>, integrated by Ben Laurie*
17871
17872 * Add support for new TLS ciphersuites, TLS_RSA_EXPORT56_WITH_RC4_56_MD5,
17873 TLS_RSA_EXPORT56_WITH_RC2_CBC_56_MD5 and
17874 TLS_RSA_EXPORT56_WITH_DES_CBC_SHA, as specified in "56-bit Export Cipher
17875 Suites For TLS", draft-ietf-tls-56-bit-ciphersuites-00.txt.
17876
17877 *Ben Laurie*
17878
17879 * Add preliminary config info for new extension code.
17880
17881 *Steve Henson*
17882
17883 * Make RSA_NO_PADDING really use no padding.
17884
17885 *Ulf Moeller <ulf@fitug.de>*
17886
17887 * Generate errors when private/public key check is done.
17888
17889 *Ben Laurie*
17890
17891 * Overhaul for 'crl' utility. New function X509_CRL_print. Partial support
17892 for some CRL extensions and new objects added.
17893
17894 *Steve Henson*
17895
17896 * Really fix the ASN1 IMPLICIT bug this time... Partial support for private
17897 key usage extension and fuller support for authority key id.
17898
17899 *Steve Henson*
17900
17901 * Add OAEP encryption for the OpenSSL crypto library. OAEP is the improved
17902 padding method for RSA, which is recommended for new applications in PKCS
17903 #1 v2.0 (RFC 2437, October 1998).
17904 OAEP (Optimal Asymmetric Encryption Padding) has better theoretical
17905 foundations than the ad-hoc padding used in PKCS #1 v1.5. It is secure
17906 against Bleichbacher's attack on RSA.
17907 *Ulf Moeller <ulf@fitug.de>, reformatted, corrected and integrated by
257e9d03 17908 Ben Laurie*
5f8e6c50
DMSP
17909
17910 * Updates to the new SSL compression code
17911
17912 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
17913
17914 * Fix so that the version number in the master secret, when passed
17915 via RSA, checks that if TLS was proposed, but we roll back to SSLv3
17916 (because the server will not accept higher), that the version number
17917 is 0x03,0x01, not 0x03,0x00
17918
17919 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
17920
17921 * Run extensive memory leak checks on SSL apps. Fixed *lots* of memory
17922 leaks in ssl/ relating to new X509_get_pubkey() behaviour. Also fixes
17923 in apps/ and an unrelated leak in crypto/dsa/dsa_vrf.c
17924
17925 *Steve Henson*
17926
17927 * Support for RAW extensions where an arbitrary extension can be
17928 created by including its DER encoding. See apps/openssl.cnf for
17929 an example.
17930
17931 *Steve Henson*
17932
17933 * Make sure latest Perl versions don't interpret some generated C array
17934 code as Perl array code in the crypto/err/err_genc.pl script.
17935
17936 *Lars Weber <3weber@informatik.uni-hamburg.de>*
17937
17938 * Modify ms/do_ms.bat to not generate assembly language makefiles since
17939 not many people have the assembler. Various Win32 compilation fixes and
17940 update to the INSTALL.W32 file with (hopefully) more accurate Win32
17941 build instructions.
17942
17943 *Steve Henson*
17944
17945 * Modify configure script 'Configure' to automatically create crypto/date.h
17946 file under Win32 and also build pem.h from pem.org. New script
17947 util/mkfiles.pl to create the MINFO file on environments that can't do a
17948 'make files': perl util/mkfiles.pl >MINFO should work.
17949
17950 *Steve Henson*
17951
17952 * Major rework of DES function declarations, in the pursuit of correctness
17953 and purity. As a result, many evil casts evaporated, and some weirdness,
17954 too. You may find this causes warnings in your code. Zapping your evil
17955 casts will probably fix them. Mostly.
17956
17957 *Ben Laurie*
17958
17959 * Fix for a typo in asn1.h. Bug fix to object creation script
17960 obj_dat.pl. It considered a zero in an object definition to mean
17961 "end of object": none of the objects in objects.h have any zeros
17962 so it wasn't spotted.
17963
17964 *Steve Henson, reported by Erwann ABALEA <eabalea@certplus.com>*
17965
17966 * Add support for Triple DES Cipher Block Chaining with Output Feedback
17967 Masking (CBCM). In the absence of test vectors, the best I have been able
17968 to do is check that the decrypt undoes the encrypt, so far. Send me test
17969 vectors if you have them.
17970
17971 *Ben Laurie*
17972
17973 * Correct calculation of key length for export ciphers (too much space was
17974 allocated for null ciphers). This has not been tested!
17975
17976 *Ben Laurie*
17977
17978 * Modifications to the mkdef.pl for Win32 DEF file creation. The usage
17979 message is now correct (it understands "crypto" and "ssl" on its
17980 command line). There is also now an "update" option. This will update
17981 the util/ssleay.num and util/libeay.num files with any new functions.
17982 If you do a:
17983 perl util/mkdef.pl crypto ssl update
17984 it will update them.
17985
17986 *Steve Henson*
17987
257e9d03 17988 * Overhauled the Perl interface:
5f8e6c50
DMSP
17989 - ported BN stuff to OpenSSL's different BN library
17990 - made the perl/ source tree CVS-aware
17991 - renamed the package from SSLeay to OpenSSL (the files still contain
17992 their history because I've copied them in the repository)
17993 - removed obsolete files (the test scripts will be replaced
17994 by better Test::Harness variants in the future)
17995
17996 *Ralf S. Engelschall*
17997
17998 * First cut for a very conservative source tree cleanup:
17999 1. merge various obsolete readme texts into doc/ssleay.txt
18000 where we collect the old documents and readme texts.
18001 2. remove the first part of files where I'm already sure that we no
18002 longer need them because of three reasons: either they are just temporary
18003 files which were left by Eric or they are preserved original files where
18004 I've verified that the diff is also available in the CVS via "cvs diff
18005 -rSSLeay_0_8_1b" or they were renamed (as it was definitely the case for
18006 the crypto/md/ stuff).
18007
18008 *Ralf S. Engelschall*
18009
18010 * More extension code. Incomplete support for subject and issuer alt
18011 name, issuer and authority key id. Change the i2v function parameters
18012 and add an extra 'crl' parameter in the X509V3_CTX structure: guess
18013 what that's for :-) Fix to ASN1 macro which messed up
18014 IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED.
18015
18016 *Steve Henson*
18017
18018 * Preliminary support for ENUMERATED type. This is largely copied from the
18019 INTEGER code.
18020
18021 *Steve Henson*
18022
18023 * Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy.
18024
18025 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
18026
257e9d03 18027 * Make sure `make rehash` target really finds the `openssl` program.
5f8e6c50
DMSP
18028
18029 *Ralf S. Engelschall, Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
18030
18031 * Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd
18032 like to hear about it if this slows down other processors.
18033
18034 *Ben Laurie*
18035
18036 * Add CygWin32 platform information to Configure script.
18037
18038 *Alan Batie <batie@aahz.jf.intel.com>*
18039
257e9d03 18040 * Fixed ms/32all.bat script: `no_asm` -> `no-asm`
5f8e6c50
DMSP
18041
18042 *Rainer W. Gerling <gerling@mpg-gv.mpg.de>*
18043
18044 * New program nseq to manipulate netscape certificate sequences
18045
18046 *Steve Henson*
18047
18048 * Modify crl2pkcs7 so it supports multiple -certfile arguments. Fix a
18049 few typos.
18050
18051 *Steve Henson*
18052
18053 * Fixes to BN code. Previously the default was to define BN_RECURSION
18054 but the BN code had some problems that would cause failures when
18055 doing certificate verification and some other functions.
18056
18057 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
18058
18059 * Add ASN1 and PEM code to support netscape certificate sequences.
18060
18061 *Steve Henson*
18062
18063 * Add ASN1 and PEM code to support netscape certificate sequences.
18064
18065 *Steve Henson*
18066
18067 * Add several PKIX and private extended key usage OIDs.
18068
18069 *Steve Henson*
18070
18071 * Modify the 'ca' program to handle the new extension code. Modify
18072 openssl.cnf for new extension format, add comments.
18073
18074 *Steve Henson*
18075
18076 * More X509 V3 changes. Fix typo in v3_bitstr.c. Add support to 'req'
18077 and add a sample to openssl.cnf so req -x509 now adds appropriate
18078 CA extensions.
18079
18080 *Steve Henson*
18081
18082 * Continued X509 V3 changes. Add to other makefiles, integrate with the
18083 error code, add initial support to X509_print() and x509 application.
18084
18085 *Steve Henson*
18086
18087 * Takes a deep breath and start adding X509 V3 extension support code. Add
18088 files in crypto/x509v3. Move original stuff to crypto/x509v3/old. All this
18089 stuff is currently isolated and isn't even compiled yet.
18090
18091 *Steve Henson*
18092
18093 * Continuing patches for GeneralizedTime. Fix up certificate and CRL
18094 ASN1 to use ASN1_TIME and modify print routines to use ASN1_TIME_print.
18095 Removed the versions check from X509 routines when loading extensions:
18096 this allows certain broken certificates that don't set the version
18097 properly to be processed.
18098
18099 *Steve Henson*
18100
18101 * Deal with irritating shit to do with dependencies, in YAAHW (Yet Another
18102 Ad Hoc Way) - Makefile.ssls now all contain local dependencies, which
18103 can still be regenerated with "make depend".
18104
18105 *Ben Laurie*
18106
18107 * Spelling mistake in C version of CAST-128.
18108
18109 *Ben Laurie, reported by Jeremy Hylton <jeremy@cnri.reston.va.us>*
18110
18111 * Changes to the error generation code. The perl script err-code.pl
18112 now reads in the old error codes and retains the old numbers, only
18113 adding new ones if necessary. It also only changes the .err files if new
18114 codes are added. The makefiles have been modified to only insert errors
18115 when needed (to avoid needlessly modifying header files). This is done
18116 by only inserting errors if the .err file is newer than the auto generated
18117 C file. To rebuild all the error codes from scratch (the old behaviour)
18118 either modify crypto/Makefile.ssl to pass the -regen flag to err_code.pl
18119 or delete all the .err files.
18120
18121 *Steve Henson*
18122
18123 * CAST-128 was incorrectly implemented for short keys. The C version has
18124 been fixed, but is untested. The assembler versions are also fixed, but
18125 new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing
18126 to regenerate it if needed.
18127 *Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun
18128 Hagino <itojun@kame.net>*
18129
18130 * File was opened incorrectly in randfile.c.
18131
18132 *Ulf Möller <ulf@fitug.de>*
18133
18134 * Beginning of support for GeneralizedTime. d2i, i2d, check and print
18135 functions. Also ASN1_TIME suite which is a CHOICE of UTCTime or
18136 GeneralizedTime. ASN1_TIME is the proper type used in certificates et
18137 al: it's just almost always a UTCTime. Note this patch adds new error
18138 codes so do a "make errors" if there are problems.
18139
18140 *Steve Henson*
18141
18142 * Correct Linux 1 recognition in config.
18143
18144 *Ulf Möller <ulf@fitug.de>*
18145
18146 * Remove pointless MD5 hash when using DSA keys in ca.
18147
18148 *Anonymous <nobody@replay.com>*
18149
18150 * Generate an error if given an empty string as a cert directory. Also
18151 generate an error if handed NULL (previously returned 0 to indicate an
18152 error, but didn't set one).
18153
18154 *Ben Laurie, reported by Anonymous <nobody@replay.com>*
18155
18156 * Add prototypes to SSL methods. Make SSL_write's buffer const, at last.
18157
18158 *Ben Laurie*
18159
18160 * Fix the dummy function BN_ref_mod_exp() in rsaref.c to have the correct
18161 parameters. This was causing a warning which killed off the Win32 compile.
18162
18163 *Steve Henson*
18164
18165 * Remove C++ style comments from crypto/bn/bn_local.h.
18166
18167 *Neil Costigan <neil.costigan@celocom.com>*
18168
18169 * The function OBJ_txt2nid was broken. It was supposed to return a nid
18170 based on a text string, looking up short and long names and finally
18171 "dot" format. The "dot" format stuff didn't work. Added new function
18172 OBJ_txt2obj to do the same but return an ASN1_OBJECT and rewrote
18173 OBJ_txt2nid to use it. OBJ_txt2obj can also return objects even if the
18174 OID is not part of the table.
18175
18176 *Steve Henson*
18177
18178 * Add prototypes to X509 lookup/verify methods, fixing a bug in
18179 X509_LOOKUP_by_alias().
18180
18181 *Ben Laurie*
18182
18183 * Sort openssl functions by name.
18184
18185 *Ben Laurie*
18186
18187 * Get the gendsa program working (hopefully) and add it to app list. Remove
18188 encryption from sample DSA keys (in case anyone is interested the password
18189 was "1234").
18190
18191 *Steve Henson*
18192
257e9d03 18193 * Make *all* `*_free` functions accept a NULL pointer.
5f8e6c50
DMSP
18194
18195 *Frans Heymans <fheymans@isaserver.be>*
18196
18197 * If a DH key is generated in s3_srvr.c, don't blow it by trying to use
18198 NULL pointers.
18199
18200 *Anonymous <nobody@replay.com>*
18201
18202 * s_server should send the CAfile as acceptable CAs, not its own cert.
18203
18204 *Bodo Moeller <3moeller@informatik.uni-hamburg.de>*
18205
18206 * Don't blow it for numeric -newkey arguments to apps/req.
18207
18208 *Bodo Moeller <3moeller@informatik.uni-hamburg.de>*
18209
18210 * Temp key "for export" tests were wrong in s3_srvr.c.
18211
18212 *Anonymous <nobody@replay.com>*
18213
18214 * Add prototype for temp key callback functions
18215 SSL_CTX_set_tmp_{rsa,dh}_callback().
18216
18217 *Ben Laurie*
18218
18219 * Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and
18220 DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey().
18221
18222 *Steve Henson*
18223
18224 * X509_name_add_entry() freed the wrong thing after an error.
18225
18226 *Arne Ansper <arne@ats.cyber.ee>*
18227
18228 * rsa_eay.c would attempt to free a NULL context.
18229
18230 *Arne Ansper <arne@ats.cyber.ee>*
18231
18232 * BIO_s_socket() had a broken should_retry() on Windoze.
18233
18234 *Arne Ansper <arne@ats.cyber.ee>*
18235
18236 * BIO_f_buffer() didn't pass on BIO_CTRL_FLUSH.
18237
18238 *Arne Ansper <arne@ats.cyber.ee>*
18239
18240 * Make sure the already existing X509_STORE->depth variable is initialized
18241 in X509_STORE_new(), but document the fact that this variable is still
18242 unused in the certificate verification process.
18243
18244 *Ralf S. Engelschall*
18245
18246 * Fix the various library and apps files to free up pkeys obtained from
18247 X509_PUBKEY_get() et al. Also allow x509.c to handle netscape extensions.
18248
18249 *Steve Henson*
18250
18251 * Fix reference counting in X509_PUBKEY_get(). This makes
18252 demos/maurice/example2.c work, amongst others, probably.
18253
18254 *Steve Henson and Ben Laurie*
18255
257e9d03
RS
18256 * First cut of a cleanup for apps/. First the `ssleay` program is now named
18257 `openssl` and second, the shortcut symlinks for the `openssl <command>`
5f8e6c50 18258 are no longer created. This way we have a single and consistent command
257e9d03 18259 line interface `openssl <command>`, similar to `cvs <command>`.
5f8e6c50
DMSP
18260
18261 *Ralf S. Engelschall, Paul Sutton and Ben Laurie*
18262
18263 * ca.c: move test for DSA keys inside #ifndef NO_DSA. Make pubkey
18264 BIT STRING wrapper always have zero unused bits.
18265
18266 *Steve Henson*
18267
18268 * Add CA.pl, perl version of CA.sh, add extended key usage OID.
18269
18270 *Steve Henson*
18271
18272 * Make the top-level INSTALL documentation easier to understand.
18273
18274 *Paul Sutton*
18275
18276 * Makefiles updated to exit if an error occurs in a sub-directory
18277 make (including if user presses ^C) [Paul Sutton]
18278
18279 * Make Montgomery context stuff explicit in RSA data structure.
18280
18281 *Ben Laurie*
18282
18283 * Fix build order of pem and err to allow for generated pem.h.
18284
18285 *Ben Laurie*
18286
18287 * Fix renumbering bug in X509_NAME_delete_entry().
18288
18289 *Ben Laurie*
18290
18291 * Enhanced the err-ins.pl script so it makes the error library number
18292 global and can add a library name. This is needed for external ASN1 and
18293 other error libraries.
18294
18295 *Steve Henson*
18296
18297 * Fixed sk_insert which never worked properly.
18298
18299 *Steve Henson*
18300
18301 * Fix ASN1 macros so they can handle indefinite length constructed
18302 EXPLICIT tags. Some non standard certificates use these: they can now
18303 be read in.
18304
18305 *Steve Henson*
18306
18307 * Merged the various old/obsolete SSLeay documentation files (doc/xxx.doc)
18308 into a single doc/ssleay.txt bundle. This way the information is still
18309 preserved but no longer messes up this directory. Now it's new room for
18310 the new set of documentation files.
18311
18312 *Ralf S. Engelschall*
18313
18314 * SETs were incorrectly DER encoded. This was a major pain, because they
18315 shared code with SEQUENCEs, which aren't coded the same. This means that
18316 almost everything to do with SETs or SEQUENCEs has either changed name or
18317 number of arguments.
18318
18319 *Ben Laurie, based on a partial fix by GP Jayan <gp@nsj.co.jp>*
18320
18321 * Fix test data to work with the above.
18322
18323 *Ben Laurie*
18324
18325 * Fix the RSA header declarations that hid a bug I fixed in 0.9.0b but
18326 was already fixed by Eric for 0.9.1 it seems.
18327
18328 *Ben Laurie - pointed out by Ulf Möller <ulf@fitug.de>*
18329
18330 * Autodetect FreeBSD3.
18331
18332 *Ben Laurie*
18333
18334 * Fix various bugs in Configure. This affects the following platforms:
18335 nextstep
18336 ncr-scde
18337 unixware-2.0
18338 unixware-2.0-pentium
18339 sco5-cc.
18340
18341 *Ben Laurie*
18342
18343 * Eliminate generated files from CVS. Reorder tests to regenerate files
18344 before they are needed.
18345
18346 *Ben Laurie*
18347
18348 * Generate Makefile.ssl from Makefile.org (to keep CVS happy).
18349
18350 *Ben Laurie*
18351
257e9d03 18352### Changes between 0.9.1b and 0.9.1c [23-Dec-1998]
5f8e6c50
DMSP
18353
18354 * Added OPENSSL_VERSION_NUMBER to crypto/crypto.h and
18355 changed SSLeay to OpenSSL in version strings.
18356
18357 *Ralf S. Engelschall*
18358
18359 * Some fixups to the top-level documents.
18360
18361 *Paul Sutton*
18362
18363 * Fixed the nasty bug where rsaref.h was not found under compile-time
18364 because the symlink to include/ was missing.
18365
18366 *Ralf S. Engelschall*
18367
18368 * Incorporated the popular no-RSA/DSA-only patches
18369 which allow to compile a RSA-free SSLeay.
18370
18371 *Andrew Cooke / Interrader Ldt., Ralf S. Engelschall*
18372
257e9d03 18373 * Fixed nasty rehash problem under `make -f Makefile.ssl links`
5f8e6c50
DMSP
18374 when "ssleay" is still not found.
18375
18376 *Ralf S. Engelschall*
18377
18378 * Added more platforms to Configure: Cray T3E, HPUX 11,
18379
18380 *Ralf S. Engelschall, Beckmann <beckman@acl.lanl.gov>*
18381
18382 * Updated the README file.
18383
18384 *Ralf S. Engelschall*
18385
18386 * Added various .cvsignore files in the CVS repository subdirs
18387 to make a "cvs update" really silent.
18388
18389 *Ralf S. Engelschall*
18390
18391 * Recompiled the error-definition header files and added
18392 missing symbols to the Win32 linker tables.
18393
18394 *Ralf S. Engelschall*
18395
18396 * Cleaned up the top-level documents;
18397 o new files: CHANGES and LICENSE
18398 o merged VERSION, HISTORY* and README* files a CHANGES.SSLeay
18399 o merged COPYRIGHT into LICENSE
18400 o removed obsolete TODO file
18401 o renamed MICROSOFT to INSTALL.W32
18402
18403 *Ralf S. Engelschall*
18404
18405 * Removed dummy files from the 0.9.1b source tree:
18406 crypto/asn1/x crypto/bio/cd crypto/bio/fg crypto/bio/grep crypto/bio/vi
18407 crypto/bn/asm/......add.c crypto/bn/asm/a.out crypto/dsa/f crypto/md5/f
18408 crypto/pem/gmon.out crypto/perlasm/f crypto/pkcs7/build crypto/rsa/f
18409 crypto/sha/asm/f crypto/threads/f ms/zzz ssl/f ssl/f.mak test/f
18410 util/f.mak util/pl/f util/pl/f.mak crypto/bf/bf_locl.old apps/f
18411
18412 *Ralf S. Engelschall*
18413
18414 * Added various platform portability fixes.
18415
18416 *Mark J. Cox*
18417
18418 * The Genesis of the OpenSSL rpject:
18419 We start with the latest (unreleased) SSLeay version 0.9.1b which Eric A.
18420 Young and Tim J. Hudson created while they were working for C2Net until
18421 summer 1998.
18422
18423 *The OpenSSL Project*
18424
257e9d03 18425### Changes between 0.9.0b and 0.9.1b [not released]
5f8e6c50
DMSP
18426
18427 * Updated a few CA certificates under certs/
18428
18429 *Eric A. Young*
18430
18431 * Changed some BIGNUM api stuff.
18432
18433 *Eric A. Young*
18434
18435 * Various platform ports: OpenBSD, Ultrix, IRIX 64bit, NetBSD,
18436 DGUX x86, Linux Alpha, etc.
18437
18438 *Eric A. Young*
18439
18440 * New COMP library [crypto/comp/] for SSL Record Layer Compression:
18441 RLE (dummy implemented) and ZLIB (really implemented when ZLIB is
18442 available).
18443
18444 *Eric A. Young*
18445
18446 * Add -strparse option to asn1pars program which parses nested
18447 binary structures
18448
18449 *Dr Stephen Henson <shenson@bigfoot.com>*
18450
18451 * Added "oid_file" to ssleay.cnf for "ca" and "req" programs.
18452
18453 *Eric A. Young*
18454
18455 * DSA fix for "ca" program.
18456
18457 *Eric A. Young*
18458
18459 * Added "-genkey" option to "dsaparam" program.
18460
18461 *Eric A. Young*
18462
18463 * Added RIPE MD160 (rmd160) message digest.
18464
18465 *Eric A. Young*
18466
18467 * Added -a (all) option to "ssleay version" command.
18468
18469 *Eric A. Young*
18470
18471 * Added PLATFORM define which is the id given to Configure.
18472
18473 *Eric A. Young*
18474
18475 * Added MemCheck_XXXX functions to crypto/mem.c for memory checking.
18476
18477 *Eric A. Young*
18478
18479 * Extended the ASN.1 parser routines.
18480
18481 *Eric A. Young*
18482
18483 * Extended BIO routines to support REUSEADDR, seek, tell, etc.
18484
18485 *Eric A. Young*
18486
18487 * Added a BN_CTX to the BN library.
18488
18489 *Eric A. Young*
18490
18491 * Fixed the weak key values in DES library
18492
18493 *Eric A. Young*
18494
18495 * Changed API in EVP library for cipher aliases.
18496
18497 *Eric A. Young*
18498
18499 * Added support for RC2/64bit cipher.
18500
18501 *Eric A. Young*
18502
18503 * Converted the lhash library to the crypto/mem.c functions.
18504
18505 *Eric A. Young*
18506
18507 * Added more recognized ASN.1 object ids.
18508
18509 *Eric A. Young*
18510
18511 * Added more RSA padding checks for SSL/TLS.
18512
18513 *Eric A. Young*
18514
18515 * Added BIO proxy/filter functionality.
18516
18517 *Eric A. Young*
18518
18519 * Added extra_certs to SSL_CTX which can be used
18520 send extra CA certificates to the client in the CA cert chain sending
18521 process. It can be configured with SSL_CTX_add_extra_chain_cert().
18522
18523 *Eric A. Young*
18524
18525 * Now Fortezza is denied in the authentication phase because
18526 this is key exchange mechanism is not supported by SSLeay at all.
18527
18528 *Eric A. Young*
18529
18530 * Additional PKCS1 checks.
18531
18532 *Eric A. Young*
18533
18534 * Support the string "TLSv1" for all TLS v1 ciphers.
18535
18536 *Eric A. Young*
18537
18538 * Added function SSL_get_ex_data_X509_STORE_CTX_idx() which gives the
18539 ex_data index of the SSL context in the X509_STORE_CTX ex_data.
18540
18541 *Eric A. Young*
18542
18543 * Fixed a few memory leaks.
18544
18545 *Eric A. Young*
18546
18547 * Fixed various code and comment typos.
18548
18549 *Eric A. Young*
18550
18551 * A minor bug in ssl/s3_clnt.c where there would always be 4 0
18552 bytes sent in the client random.
18553
18554 *Edward Bishop <ebishop@spyglass.com>*
44652c16 18555
44652c16
DMSP
18556<!-- Links -->
18557
6ffc3127 18558[CVE-2020-1967]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1967
44652c16
DMSP
18559[CVE-2019-1563]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1563
18560[CVE-2019-1559]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1559
18561[CVE-2019-1552]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1552
18562[CVE-2019-1551]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1551
18563[CVE-2019-1549]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1549
18564[CVE-2019-1547]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1547
18565[CVE-2019-1543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1543
18566[CVE-2018-5407]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-5407
18567[CVE-2018-0739]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0739
18568[CVE-2018-0737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0737
18569[CVE-2018-0735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0735
18570[CVE-2018-0734]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0734
18571[CVE-2018-0733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0733
18572[CVE-2018-0732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0732
18573[CVE-2017-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3738
18574[CVE-2017-3737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3737
18575[CVE-2017-3736]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3736
18576[CVE-2017-3735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3735
18577[CVE-2017-3733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3733
18578[CVE-2017-3732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3732
18579[CVE-2017-3731]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3731
18580[CVE-2017-3730]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3730
18581[CVE-2016-7055]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7055
18582[CVE-2016-7054]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7054
18583[CVE-2016-7053]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7053
18584[CVE-2016-7052]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7052
18585[CVE-2016-6309]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6309
18586[CVE-2016-6308]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6308
18587[CVE-2016-6307]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6307
18588[CVE-2016-6306]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6306
18589[CVE-2016-6305]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6305
18590[CVE-2016-6304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6304
18591[CVE-2016-6303]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6303
18592[CVE-2016-6302]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6302
18593[CVE-2016-2183]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2183
18594[CVE-2016-2182]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2182
18595[CVE-2016-2181]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2181
18596[CVE-2016-2180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2180
18597[CVE-2016-2179]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2179
18598[CVE-2016-2178]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2178
18599[CVE-2016-2177]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2177
18600[CVE-2016-2176]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2176
18601[CVE-2016-2109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2109
18602[CVE-2016-2107]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2107
18603[CVE-2016-2106]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2106
18604[CVE-2016-2105]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2105
18605[CVE-2016-0800]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0800
18606[CVE-2016-0799]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0799
18607[CVE-2016-0798]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0798
18608[CVE-2016-0797]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0797
18609[CVE-2016-0705]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0705
18610[CVE-2016-0702]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0702
18611[CVE-2016-0701]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0701
18612[CVE-2015-3197]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3197
18613[CVE-2015-3196]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3196
18614[CVE-2015-3195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3195
18615[CVE-2015-3194]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3194
18616[CVE-2015-3193]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3193
18617[CVE-2015-1793]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1793
18618[CVE-2015-1792]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1792
18619[CVE-2015-1791]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1791
18620[CVE-2015-1790]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1790
18621[CVE-2015-1789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1789
18622[CVE-2015-1788]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1788
18623[CVE-2015-1787]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1787
18624[CVE-2015-0293]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0293
18625[CVE-2015-0291]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0291
18626[CVE-2015-0290]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0290
18627[CVE-2015-0289]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0289
18628[CVE-2015-0288]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0288
18629[CVE-2015-0287]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0287
18630[CVE-2015-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0286
18631[CVE-2015-0285]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0285
18632[CVE-2015-0209]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0209
18633[CVE-2015-0208]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0208
18634[CVE-2015-0207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0207
18635[CVE-2015-0206]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0206
18636[CVE-2015-0205]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0205
18637[CVE-2015-0204]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0204
18638[CVE-2014-8275]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-8275
18639[CVE-2014-5139]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-5139
18640[CVE-2014-3572]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3572
18641[CVE-2014-3571]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3571
18642[CVE-2014-3570]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3570
18643[CVE-2014-3569]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3569
18644[CVE-2014-3568]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3568
18645[CVE-2014-3567]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3567
18646[CVE-2014-3566]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3566
18647[CVE-2014-3513]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3513
18648[CVE-2014-3512]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3512
18649[CVE-2014-3511]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3511
18650[CVE-2014-3510]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3510
18651[CVE-2014-3509]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3509
18652[CVE-2014-3508]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3508
18653[CVE-2014-3507]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3507
18654[CVE-2014-3506]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3506
18655[CVE-2014-3505]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3505
18656[CVE-2014-3470]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3470
18657[CVE-2014-0224]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0224
18658[CVE-2014-0221]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0221
18659[CVE-2014-0195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0195
18660[CVE-2014-0160]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0160
18661[CVE-2014-0076]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0076
18662[CVE-2013-6450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-6450
18663[CVE-2013-4353]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-4353
18664[CVE-2013-0169]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0169
18665[CVE-2013-0166]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0166
18666[CVE-2012-2686]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2686
18667[CVE-2012-2333]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2333
18668[CVE-2012-2110]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2110
18669[CVE-2012-0884]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0884
18670[CVE-2012-0050]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0050
18671[CVE-2012-0027]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0027
18672[CVE-2011-4619]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4619
18673[CVE-2011-4577]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4577
18674[CVE-2011-4576]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4576
18675[CVE-2011-4109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4109
18676[CVE-2011-4108]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4108
18677[CVE-2011-3210]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3210
18678[CVE-2011-3207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3207
18679[CVE-2011-0014]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-0014
18680[CVE-2010-4252]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4252
18681[CVE-2010-4180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4180
18682[CVE-2010-3864]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-3864
18683[CVE-2010-1633]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-1633
18684[CVE-2010-0740]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0740
18685[CVE-2010-0433]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0433
18686[CVE-2009-4355]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-4355
18687[CVE-2009-3555]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3555
18688[CVE-2009-3245]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3245
18689[CVE-2009-1386]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1386
18690[CVE-2009-1379]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1379
18691[CVE-2009-1378]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1378
18692[CVE-2009-1377]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1377
18693[CVE-2009-0789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0789
18694[CVE-2009-0591]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0591
18695[CVE-2009-0590]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0590
18696[CVE-2008-5077]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-5077
18697[CVE-2008-1678]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1678
18698[CVE-2008-1672]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1672
18699[CVE-2008-0891]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-0891
18700[CVE-2007-5135]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-5135
18701[CVE-2007-4995]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-4995
18702[CVE-2006-4343]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4343
18703[CVE-2006-4339]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4339
18704[CVE-2006-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-3738
18705[CVE-2006-2940]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2940
18706[CVE-2006-2937]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2937
18707[CVE-2005-2969]: https://www.openssl.org/news/vulnerabilities.html#CVE-2005-2969
18708[CVE-2004-0112]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0112
18709[CVE-2004-0079]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0079
18710[CVE-2003-0851]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0851
18711[CVE-2003-0545]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0545
18712[CVE-2003-0544]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0544
18713[CVE-2003-0543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0543
18714[CVE-2003-0078]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0078
18715[CVE-2002-0659]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0659
18716[CVE-2002-0657]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0657
18717[CVE-2002-0656]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0656
18718[CVE-2002-0655]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0655