]> git.ipfire.org Git - thirdparty/openssl.git/blame - CHANGES.md
doc: document the change to the security level of CCM8 cipher suites
[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
27272657 13 - [OpenSSL 3.1](#openssl-31)
44652c16
DMSP
14 - [OpenSSL 3.0](#openssl-30)
15 - [OpenSSL 1.1.1](#openssl-111)
16 - [OpenSSL 1.1.0](#openssl-110)
17 - [OpenSSL 1.0.2](#openssl-102)
18 - [OpenSSL 1.0.1](#openssl-101)
19 - [OpenSSL 1.0.0](#openssl-100)
20 - [OpenSSL 0.9.x](#openssl-09x)
21
27272657
RL
22OpenSSL 3.1
23-----------
24
25### Changes between 3.0 and 3.1 [xx XXX xxxx]
26
1a473d1c
P
27 * CCM8 cipher suites in TLS have been downgraded to security level 1 because
28 they use a short tag which lowers their strength.
29
30 *Paul Dale*
31
537976de
DB
32 * Subject or issuer names in X.509 objects are now displayed as UTF-8 strings
33 by default.
34
35 *Dmitry Belyavskiy*
27272657 36
44652c16
DMSP
37OpenSSL 3.0
38-----------
39
b7140b06
SL
40For OpenSSL 3.0 a [Migration guide][] has been added, so the CHANGES entries
41listed here are only a brief description.
42The migration guide contains more detailed information related to new features,
43breaking changes, and mappings for the large list of deprecated functions.
44
45[Migration guide]: https://github.com/openssl/openssl/tree/master/doc/man7/migration_guide.pod
46
b5e2b1d8 47### Changes between 1.1.1 and 3.0 [xx XXX xxxx]
c7d4d032 48
95a444c9
TM
49 * TLS_MAX_VERSION, DTLS_MAX_VERSION and DTLS_MIN_VERSION constants are now
50 deprecated.
51
52 *Matt Caswell*
53
54 * The `OPENSSL_s390xcap` environment variable can be used to set bits in the
55 S390X capability vector to zero. This simplifies testing of different code
56 paths on S390X architecture.
57
58 *Patrick Steuer*
59
60 * Encrypting more than 2^64 TLS records with AES-GCM is disallowed
61 as per FIPS 140-2 IG A.5 "Key/IV Pair Uniqueness Requirements from
62 SP 800-38D". The communication will fail at this point.
63
64 *Paul Dale*
65
66 * The EC_GROUP_clear_free() function is deprecated as there is nothing
67 confidential in EC_GROUP data.
68
69 *Nicola Tuveri*
70
71 * The byte order mark (BOM) character is ignored if encountered at the
72 beginning of a PEM-formatted file.
73
74 *Dmitry Belyavskiy*
75
76 * Added CMS support for the Russian GOST algorithms.
77
78 *Dmitry Belyavskiy*
79
6f242d22
TM
80 * Due to move of the implementation of cryptographic operations
81 to the providers, validation of various operation parameters can
82 be postponed until the actual operation is executed where previously
83 it happened immediately when an operation parameter was set.
84
85 For example when setting an unsupported curve with
86 EVP_PKEY_CTX_set_ec_paramgen_curve_nid() this function call will not
87 fail but later keygen operations with the EVP_PKEY_CTX will fail.
88
89 *OpenSSL team members and many third party contributors*
90
69222552 91 * The EVP_get_cipherbyname() function will return NULL for algorithms such as
92 "AES-128-SIV", "AES-128-CBC-CTS" and "CAMELLIA-128-CBC-CTS" which were
93 previously only accessible via low level interfaces. Use EVP_CIPHER_fetch()
94 instead to retrieve these algorithms from a provider.
95
96 *Shane Lontis*
97
bd32bdb8
TM
98 * On build targets where the multilib postfix is set in the build
99 configuration the libdir directory was changing based on whether
100 the lib directory with the multilib postfix exists on the system
101 or not. This unpredictable behavior was removed and eventual
102 multilib postfix is now always added to the default libdir. Use
103 `--libdir=lib` to override the libdir if adding the postfix is
104 undesirable.
105
106 *Jan Lána*
107
e5f8935c
P
108 * The triple DES key wrap functionality now conforms to RFC 3217 but is
109 no longer interoperable with OpenSSL 1.1.1.
110
111 *Paul Dale*
112
0f71b1eb
P
113 * The ERR_GET_FUNC() function was removed. With the loss of meaningful
114 function codes, this function can only cause problems for calling
115 applications.
116
117 *Paul Dale*
118
8c5bff22
WE
119 * Add a configurable flag to output date formats as ISO 8601. Does not
120 change the default date format.
121
122 *William Edmisten*
123
f8ab78f6
RS
124 * Version of MSVC earlier than 1300 could get link warnings, which could
125 be suppressed if the undocumented -DI_CAN_LIVE_WITH_LNK4049 was set.
126 Support for this flag has been removed.
127
128 *Rich Salz*
129
a935791d
RS
130 * Rework and make DEBUG macros consistent. Remove unused -DCONF_DEBUG,
131 -DBN_CTX_DEBUG, and REF_PRINT. Add a new tracing category and use it for
132 printing reference counts. Rename -DDEBUG_UNUSED to -DUNUSED_RESULT_DEBUG
133 Fix BN_DEBUG_RAND so it compiles and, when set, force DEBUG_RAND to be set
134 also. Rename engine_debug_ref to be ENGINE_REF_PRINT also for consistency.
135
136 *Rich Salz*
137
f04bb0bc
RS
138 * The signatures of the functions to get and set options on SSL and
139 SSL_CTX objects changed from "unsigned long" to "uint64_t" type.
140 Some source code changes may be required.
141
a935791d 142 *Rich Salz*
f04bb0bc 143
ff234c68
RS
144 * The public definitions of conf_method_st and conf_st have been
145 deprecated. They will be made opaque in a future release.
146
b3c2ed70 147 *Rich Salz and Tomáš Mráz*
ff234c68 148
55373bfd
RS
149 * Client-initiated renegotiation is disabled by default. To allow it, use
150 the -client_renegotiation option, the SSL_OP_ALLOW_CLIENT_RENEGOTIATION
151 flag, or the "ClientRenegotiation" config parameter as appropriate.
152
a935791d 153 *Rich Salz*
55373bfd 154
f7050588
RS
155 * Add "abspath" and "includedir" pragma's to config files, to prevent,
156 or modify relative pathname inclusion.
3fb985fd 157
a935791d 158 *Rich Salz*
3fb985fd 159
3b9e4769 160 * OpenSSL includes a cryptographic module that is intended to be FIPS 140-2
b7140b06 161 validated. Please consult the README-FIPS and
3b9e4769
DMSP
162 README-PROVIDERS files, as well as the migration guide.
163
3b9e4769
DMSP
164 *OpenSSL team members and many third party contributors*
165
f1ffaaee 166 * For the key types DH and DHX the allowed settable parameters are now different.
f1ffaaee
SL
167
168 *Shane Lontis*
169
bee3f389 170 * The openssl commands that read keys, certificates, and CRLs now
b7140b06 171 automatically detect the PEM or DER format of the input files.
bee3f389
TM
172
173 *David von Oheimb, Richard Levitte, and Tomáš Mráz*
174
b7140b06 175 * Added enhanced PKCS#12 APIs which accept a library context.
b536880c
JS
176
177 *Jon Spillett*
178
ae6f65ae
MC
179 * The default manual page suffix ($MANSUFFIX) has been changed to "ossl"
180
181 *Matt Caswell*
182
b7140b06 183 * Added support for Kernel TLS (KTLS).
6878f430
MC
184
185 *Boris Pismenny, John Baldwin and Andrew Gallatin*
186
72d2670b 187 * Support for RFC 5746 secure renegotiation is now required by default for
b7140b06 188 SSL or TLS connections to succeed.
72d2670b
BK
189
190 *Benjamin Kaduk*
191
9ac653d8
TM
192 * The signature of the `copy` functional parameter of the
193 EVP_PKEY_meth_set_copy() function has changed so its `src` argument is
194 now `const EVP_PKEY_CTX *` instead of `EVP_PKEY_CTX *`. Similarly
195 the signature of the `pub_decode` functional parameter of the
196 EVP_PKEY_asn1_set_public() function has changed so its `pub` argument is
197 now `const X509_PUBKEY *` instead of `X509_PUBKEY *`.
198
199 *David von Oheimb*
200
9c1b19eb 201 * The error return values from some control calls (ctrl) have changed.
9c1b19eb
P
202
203 *Paul Dale*
204
e454a393 205 * A public key check is now performed during EVP_PKEY_derive_set_peer().
e454a393
SL
206
207 *Shane Lontis*
208
31b7f23d
TM
209 * Many functions in the EVP_ namespace that are getters of values from
210 implementations or contexts were renamed to include get or get0 in their
211 names. Old names are provided as macro aliases for compatibility and
212 are not deprecated.
213
214 *Tomáš Mráz*
215
0cfbc828
TM
216 * The EVP_PKEY_CTRL_PKCS7_ENCRYPT, EVP_PKEY_CTRL_PKCS7_DECRYPT,
217 EVP_PKEY_CTRL_PKCS7_SIGN, EVP_PKEY_CTRL_CMS_ENCRYPT,
218 EVP_PKEY_CTRL_CMS_DECRYPT, and EVP_PKEY_CTRL_CMS_SIGN control operations
b7140b06 219 are deprecated.
0cfbc828
TM
220
221 *Tomáš Mráz*
222
2db5834c 223 * The EVP_PKEY_public_check() and EVP_PKEY_param_check() functions now work for
b7140b06 224 more key types.
2db5834c 225
28a8d07d 226 * The output from the command line applications may have minor
b7140b06 227 changes.
28a8d07d
P
228
229 *Paul Dale*
230
b7140b06 231 * The output from numerous "printing" may have minor changes.
2db5834c
MC
232
233 *David von Oheimb*
234
f70863d9
VD
235 * Windows thread synchronization uses read/write primitives (SRWLock) when
236 supported by the OS, otherwise CriticalSection continues to be used.
237
238 *Vincent Drake*
239
a30823c8
SL
240 * Add filter BIO BIO_f_readbuffer() that allows BIO_tell() and BIO_seek() to
241 work on read only BIO source/sinks that do not support these functions.
242 This allows piping or redirection of a file BIO using stdin to be buffered
243 into memory. This is used internally in OSSL_DECODER_from_bio().
244
245 *Shane Lontis*
246
f74f416b
MC
247 * OSSL_STORE_INFO_get_type() may now return an additional value. In 1.1.1
248 this function would return one of the values OSSL_STORE_INFO_NAME,
249 OSSL_STORE_INFO_PKEY, OSSL_STORE_INFO_PARAMS, OSSL_STORE_INFO_CERT or
250 OSSL_STORE_INFO_CRL. Decoded public keys would previously have been reported
251 as type OSSL_STORE_INFO_PKEY in 1.1.1. In 3.0 decoded public keys are now
252 reported as having the new type OSSL_STORE_INFO_PUBKEY. Applications
253 using this function should be amended to handle the changed return value.
254
255 *Richard Levitte*
256
6b937ae3 257 * Improved adherence to Enhanced Security Services (ESS, RFC 2634 and RFC 5035)
63b64f19 258 for the TSP and CMS Advanced Electronic Signatures (CAdES) implementations.
bef876f9 259 As required by RFC 5035 check both ESSCertID and ESSCertIDv2 if both present.
6b937ae3
DDO
260 Correct the semantics of checking the validation chain in case ESSCertID{,v2}
261 contains more than one certificate identifier: This means that all
262 certificates referenced there MUST be part of the validation chain.
263
264 *David von Oheimb*
265
b7140b06
SL
266 * The implementation of older EVP ciphers related to CAST, IDEA, SEED, RC2, RC4,
267 RC5, DESX and DES have been moved to the legacy provider.
c7d4d032
MC
268
269 *Matt Caswell*
270
271 * The implementation of the EVP digests MD2, MD4, MDC2, WHIRLPOOL and
b7140b06 272 RIPEMD-160 have been moved to the legacy provider.
c7d4d032
MC
273
274 *Matt Caswell*
275
896dcda1
DB
276 * The deprecated function EVP_PKEY_get0() now returns NULL being called for a
277 provided key.
8e53d94d 278
896dcda1
DB
279 *Dmitry Belyavskiy*
280
281 * The deprecated functions EVP_PKEY_get0_RSA(),
cc57dc96
MC
282 EVP_PKEY_get0_DSA(), EVP_PKEY_get0_EC_KEY(), EVP_PKEY_get0_DH(),
283 EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and EVP_PKEY_get0_siphash() as
b7140b06
SL
284 well as the similarly named "get1" functions behave differently in
285 OpenSSL 3.0.
7bc0fdd3 286
cc57dc96
MC
287 *Matt Caswell*
288
4d49b685 289 * A number of functions handling low-level keys or engines were deprecated
8e53d94d
MC
290 including EVP_PKEY_set1_engine(), EVP_PKEY_get0_engine(), EVP_PKEY_assign(),
291 EVP_PKEY_get0(), EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and
b7140b06 292 EVP_PKEY_get0_siphash().
8e53d94d
MC
293
294 *Matt Caswell*
295
0f183675
JS
296 * PKCS#5 PBKDF1 key derivation has been moved from PKCS5_PBE_keyivgen() into
297 the legacy crypto provider as an EVP_KDF. Applications requiring this KDF
298 will need to load the legacy crypto provider. This includes these PBE
299 algorithms which use this KDF:
300 - NID_pbeWithMD2AndDES_CBC
301 - NID_pbeWithMD5AndDES_CBC
302 - NID_pbeWithSHA1AndRC2_CBC
303 - NID_pbeWithMD2AndRC2_CBC
304 - NID_pbeWithMD5AndRC2_CBC
305 - NID_pbeWithSHA1AndDES_CBC
306
307 *Jon Spillett*
308
0800318a
TM
309 * Deprecated obsolete BIO_set_callback(), BIO_get_callback(), and
310 BIO_debug_callback() functions.
311
312 *Tomáš Mráz*
313
76e48c9d 314 * Deprecated obsolete EVP_PKEY_CTX_get0_dh_kdf_ukm() and
b7140b06 315 EVP_PKEY_CTX_get0_ecdh_kdf_ukm() functions.
44652c16 316
76e48c9d
TM
317 *Tomáš Mráz*
318
b7140b06 319 * The RAND_METHOD APIs have been deprecated.
12631540
P
320
321 *Paul Dale*
8e53d94d 322
b7140b06 323 * The SRP APIs have been deprecated.
13888e79
MC
324
325 *Matt Caswell*
326
7dd5a00f
P
327 * Add a compile time option to prevent the caching of provider fetched
328 algorithms. This is enabled by including the no-cached-fetch option
329 at configuration time.
330
331 *Paul Dale*
76e48c9d 332
b7140b06
SL
333 * pkcs12 now uses defaults of PBKDF2, AES and SHA-256, with a MAC iteration
334 count of PKCS12_DEFAULT_ITER.
762970bd
TM
335
336 *Tomáš Mráz and Sahana Prasad*
337
b7140b06 338 * The openssl speed command does not use low-level API calls anymore.
f3ccfc76
TM
339
340 *Tomáš Mráz*
341
c781eb1c
AM
342 * Parallel dual-prime 1024-bit modular exponentiation for AVX512_IFMA
343 capable processors.
344
345 *Ilya Albrekht, Sergey Kirillov, Andrey Matyukov (Intel Corp)*
346
a763ca11 347 * Combining the Configure options no-ec and no-dh no longer disables TLSv1.3.
a763ca11
MC
348
349 *Matt Caswell*
350
f5680cd0
MC
351 * Implemented support for fully "pluggable" TLSv1.3 groups. This means that
352 providers may supply their own group implementations (using either the "key
353 exchange" or the "key encapsulation" methods) which will automatically be
354 detected and used by libssl.
355
356 *Matt Caswell, Nicola Tuveri*
357
7ff9fdd4 358 * The undocumented function X509_certificate_type() has been deprecated;
7ff9fdd4
RS
359
360 *Rich Salz*
361
b7140b06 362 * Deprecated the obsolete BN_pseudo_rand() and BN_pseudo_rand_range().
4d2a6159
TM
363
364 *Tomáš Mráz*
365
b0aae913
RS
366 * Removed RSA padding mode for SSLv23 (which was only used for
367 SSLv2). This includes the functions RSA_padding_check_SSLv23() and
368 RSA_padding_add_SSLv23() and the `-ssl` option in the deprecated
369 `rsautl` command.
370
371 *Rich Salz*
372
b7140b06 373 * Deprecated the obsolete X9.31 RSA key generation related functions.
c27e7922 374
4672e5de
DDO
375 * While a callback function set via `SSL_CTX_set_cert_verify_callback()`
376 is not allowed to return a value > 1, this is no more taken as failure.
377
378 *Viktor Dukhovni and David von Oheimb*
379
380 * Deprecated the obsolete X9.31 RSA key generation related functions
381 BN_X931_generate_Xpq(), BN_X931_derive_prime_ex(), and
382 BN_X931_generate_prime_ex().
383
66194839 384 *Tomáš Mráz*
c27e7922 385
93b39c85 386 * The default key generation method for the regular 2-prime RSA keys was
b7140b06 387 changed to the FIPS 186-4 B.3.6 method.
93b39c85
TM
388
389 *Shane Lontis*
390
391 * Deprecated the BN_is_prime_ex() and BN_is_prime_fasttest_ex() functions.
93b39c85
TM
392
393 *Kurt Roeckx*
394
b7140b06 395 * Deprecated EVP_MD_CTX_set_update_fn() and EVP_MD_CTX_update_fn().
1409b5f6
RS
396
397 *Rich Salz*
398
b7140b06
SL
399 * Deprecated the type OCSP_REQ_CTX and the functions OCSP_REQ_CTX_*() and
400 replaced with OSSL_HTTP_REQ_CTX and the functions OSSL_HTTP_REQ_CTX_*().
83b6dc8d 401
8f965908 402 *Rich Salz, Richard Levitte, and David von Oheimb*
83b6dc8d 403
b7140b06 404 * Deprecated `X509_http_nbio()` and `X509_CRL_http_nbio()`.
a07b0bfb
DDO
405
406 *David von Oheimb*
407
b7140b06 408 * Deprecated `OCSP_parse_url()`.
7932982b
DDO
409
410 *David von Oheimb*
411
9e49aff2 412 * Validation of SM2 keys has been separated from the validation of regular EC
b7140b06 413 keys.
9e49aff2
NT
414
415 *Nicola Tuveri*
416
ed37336b
NT
417 * Behavior of the `pkey` app is changed, when using the `-check` or `-pubcheck`
418 switches: a validation failure triggers an early exit, returning a failure
419 exit status to the parent process.
420
421 *Nicola Tuveri*
422
1c47539a
OH
423 * Changed behavior of SSL_CTX_set_ciphersuites() and SSL_set_ciphersuites()
424 to ignore unknown ciphers.
425
426 *Otto Hollmann*
427
ec2bfb7d
DDO
428 * The `-cipher-commands` and `-digest-commands` options
429 of the command line utility `list` have been deprecated.
430 Instead use the `-cipher-algorithms` and `-digest-algorithms` options.
a08489e2
DB
431
432 *Dmitry Belyavskiy*
433
f9253152
DDO
434 * Added convenience functions for generating asymmetric key pairs:
435 The 'quick' one-shot (yet somewhat limited) function L<EVP_PKEY_Q_keygen(3)>
436 and macros for the most common cases: <EVP_RSA_gen(3)> and L<EVP_EC_gen(3)>.
437
438 *David von Oheimb*
439
b7140b06 440 * All of the low level EC_KEY functions have been deprecated.
5b5eea4b 441
66194839 442 *Shane Lontis, Paul Dale, Richard Levitte, and Tomáš Mráz*
5b5eea4b 443
f5a46ed7 444 * Deprecated all the libcrypto and libssl error string loading
b7140b06 445 functions.
f5a46ed7
RL
446
447 *Richard Levitte*
448
1b2a55ff
MC
449 * The functions SSL_CTX_set_tmp_dh_callback and SSL_set_tmp_dh_callback, as
450 well as the macros SSL_CTX_set_tmp_dh() and SSL_set_tmp_dh() have been
b7140b06 451 deprecated.
1b2a55ff
MC
452
453 *Matt Caswell*
454
ec2bfb7d 455 * The `-crypt` option to the `passwd` command line tool has been removed.
c87a7f31
P
456
457 *Paul Dale*
458
ec2bfb7d 459 * The -C option to the `x509`, `dhparam`, `dsaparam`, and `ecparam` commands
a18cf8fc 460 were removed.
1696b890
RS
461
462 *Rich Salz*
463
8ea761bf 464 * Add support for AES Key Wrap inverse ciphers to the EVP layer.
8ea761bf
SL
465
466 *Shane Lontis*
467
0a737e16 468 * Deprecated EVP_PKEY_set1_tls_encodedpoint() and
b7140b06 469 EVP_PKEY_get1_tls_encodedpoint().
0a737e16
MC
470
471 *Matt Caswell*
472
372e72b1 473 * The security callback, which can be customised by application code, supports
b7140b06
SL
474 the security operation SSL_SECOP_TMP_DH. One location of the "other" parameter
475 was incorrectly passing a DH object. It now passed an EVP_PKEY in all cases.
372e72b1
MC
476
477 *Matt Caswell*
478
db554ae1
JM
479 * Add PKCS7_get_octet_string() and PKCS7_type_is_other() to the public
480 interface. Their functionality remains unchanged.
481
482 *Jordan Montgomery*
483
f4bd5105
P
484 * Added new option for 'openssl list', '-providers', which will display the
485 list of loaded providers, their names, version and status. It optionally
486 displays their gettable parameters.
487
488 *Paul Dale*
489
b7140b06 490 * Removed EVP_PKEY_set_alias_type().
14711fff
RL
491
492 *Richard Levitte*
493
ec2bfb7d
DDO
494 * Deprecated `EVP_PKEY_CTX_set_rsa_keygen_pubexp()` and introduced
495 `EVP_PKEY_CTX_set1_rsa_keygen_pubexp()`, which is now preferred.
3786d748 496
497 *Jeremy Walch*
498
31605414
MC
499 * Changed all "STACK" functions to be macros instead of inline functions. Macro
500 parameters are still checked for type safety at compile time via helper
501 inline functions.
502
503 *Matt Caswell*
504
7d615e21
P
505 * Remove the RAND_DRBG API
506
7d615e21
P
507 *Paul Dale and Matthias St. Pierre*
508
ec2bfb7d 509 * Allow `SSL_set1_host()` and `SSL_add1_host()` to take IP literal addresses
37d898df
DW
510 as well as actual hostnames.
511
512 *David Woodhouse*
513
77174598
VD
514 * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently
515 ignore TLS protocol version bounds when configuring DTLS-based contexts, and
516 conversely, silently ignore DTLS protocol version bounds when configuring
517 TLS-based contexts. The commands can be repeated to set bounds of both
518 types. The same applies with the corresponding "min_protocol" and
519 "max_protocol" command-line switches, in case some application uses both TLS
520 and DTLS.
521
522 SSL_CTX instances that are created for a fixed protocol version (e.g.
ec2bfb7d 523 `TLSv1_server_method()`) also silently ignore version bounds. Previously
77174598
VD
524 attempts to apply bounds to these protocol versions would result in an
525 error. Now only the "version-flexible" SSL_CTX instances are subject to
526 limits in configuration files in command-line options.
527
528 *Viktor Dukhovni*
529
8dab4de5
RL
530 * Deprecated the `ENGINE` API. Engines should be replaced with providers
531 going forward.
532
533 *Paul Dale*
534
535 * Reworked the recorded ERR codes to make better space for system errors.
536 To distinguish them, the macro `ERR_SYSTEM_ERROR()` indicates if the
537 given code is a system error (true) or an OpenSSL error (false).
538
539 *Richard Levitte*
540
541 * Reworked the test perl framework to better allow parallel testing.
542
543 *Nicola Tuveri and David von Oheimb*
544
7cc355c2
SL
545 * Added ciphertext stealing algorithms AES-128-CBC-CTS, AES-192-CBC-CTS and
546 AES-256-CBC-CTS to the providers. CS1, CS2 and CS3 variants are supported.
547
548 *Shane Lontis*
549
16b0e0fc
RL
550 * 'Configure' has been changed to figure out the configuration target if
551 none is given on the command line. Consequently, the 'config' script is
552 now only a mere wrapper. All documentation is changed to only mention
553 'Configure'.
554
555 *Rich Salz and Richard Levitte*
556
b4250010
DMSP
557 * Added a library context `OSSL_LIB_CTX` that applications as well as
558 other libraries can use to form a separate context within which
559 libcrypto operations are performed.
3bd65f9b 560
3bd65f9b
RL
561 *Richard Levitte*
562
95a444c9
TM
563 * Added various `_ex` functions to the OpenSSL API that support using
564 a non-default `OSSL_LIB_CTX`.
565
566 *OpenSSL team*
567
11d3235e
TM
568 * Handshake now fails if Extended Master Secret extension is dropped
569 on renegotiation.
570
66194839 571 *Tomáš Mráz*
11d3235e 572
b7140b06 573 * Dropped interactive mode from the `openssl` program.
eca47139
RL
574
575 *Richard Levitte*
576
b7140b06 577 * Deprecated `EVP_PKEY_cmp()` and `EVP_PKEY_cmp_parameters()`.
987e3a0e 578
c85c5e1a 579 *David von Oheimb and Shane Lontis*
987e3a0e 580
b7140b06 581 * Deprecated `EC_METHOD_get_field_type()`.
23ccae80
BB
582
583 *Billy Bob Brumley*
584
585 * Deprecated EC_GFp_simple_method(), EC_GFp_mont_method(),
586 EC_GF2m_simple_method(), EC_GFp_nist_method(), EC_GFp_nistp224_method()
587 EC_GFp_nistp256_method(), and EC_GFp_nistp521_method().
23ccae80
BB
588
589 *Billy Bob Brumley*
590
591 * Deprecated EC_GROUP_new(), EC_GROUP_method_of(), and EC_POINT_method_of().
23ccae80
BB
592
593 *Billy Bob Brumley*
594
9e3c510b
F
595 * Add CAdES-BES signature verification support, mostly derived
596 from ESSCertIDv2 TS (RFC 5816) contribution by Marek Klein.
597
598 *Filipe Raimundo da Silva*
599
600 * Add CAdES-BES signature scheme and attributes support (RFC 5126) to CMS API.
601
602 *Antonio Iacono*
603
34347512 604 * Added the AuthEnvelopedData content type structure (RFC 5083) with AES-GCM
b7140b06 605 parameter (RFC 5084) for the Cryptographic Message Syntax (CMS).
34347512
JZ
606
607 *Jakub Zelenka*
608
b7140b06 609 * Deprecated EC_POINT_make_affine() and EC_POINTs_make_affine().
6b4eb933 610
c2f2db9b
BB
611 *Billy Bob Brumley*
612
613 * Deprecated EC_GROUP_precompute_mult(), EC_GROUP_have_precompute_mult(), and
b7140b06 614 EC_KEY_precompute_mult().
c2f2db9b
BB
615
616 *Billy Bob Brumley*
6b4eb933 617
b7140b06 618 * Deprecated EC_POINTs_mul().
4fcd15c1
BB
619
620 *Billy Bob Brumley*
621
b7140b06 622 * Removed FIPS_mode() and FIPS_mode_set().
31b069ec
SL
623
624 *Shane Lontis*
625
b7140b06 626 * The SSL option SSL_OP_IGNORE_UNEXPECTED_EOF is introduced.
09b90e0e
DB
627
628 *Dmitry Belyavskiy*
629
07caec83 630 * Deprecated EC_POINT_set_Jprojective_coordinates_GFp() and
b7140b06 631 EC_POINT_get_Jprojective_coordinates_GFp().
07caec83
BB
632
633 *Billy Bob Brumley*
634
be19d3ca
P
635 * Added OSSL_PARAM_BLD to the public interface. This allows OSSL_PARAM
636 arrays to be more easily constructed via a series of utility functions.
637 Create a parameter builder using OSSL_PARAM_BLD_new(), add parameters using
638 the various push functions and finally convert to a passable OSSL_PARAM
639 array using OSSL_PARAM_BLD_to_param().
640
ccb8f0c8 641 *Paul Dale*
be19d3ca 642
aba03ae5 643 * The security strength of SHA1 and MD5 based signatures in TLS has been
b7140b06 644 reduced.
aba03ae5
KR
645
646 *Kurt Roeckx*
647
8243d8d1
RL
648 * Added EVP_PKEY_set_type_by_keymgmt(), to initialise an EVP_PKEY to
649 contain a provider side internal key.
650
651 *Richard Levitte*
652
ccb8f0c8 653 * ASN1_verify(), ASN1_digest() and ASN1_sign() have been deprecated.
12d99aac
RL
654
655 *Richard Levitte*
c50604eb 656
036cbb6b 657 * Project text documents not yet having a proper file name extension
1dc1ea18
DDO
658 (`HACKING`, `LICENSE`, `NOTES*`, `README*`, `VERSION`) have been renamed to
659 `*.md` as far as reasonable, else `*.txt`, for better use with file managers.
036cbb6b
DDO
660
661 *David von Oheimb*
662
1dc1ea18 663 * The main project documents (README, NEWS, CHANGES, INSTALL, SUPPORT)
c50604eb
DMSP
664 have been converted to Markdown with the goal to produce documents
665 which not only look pretty when viewed online in the browser, but
666 remain well readable inside a plain text editor.
667
668 To achieve this goal, a 'minimalistic' Markdown style has been applied
669 which avoids formatting elements that interfere too much with the
670 reading flow in the text file. For example, it
671
672 * avoids [ATX headings][] and uses [setext headings][] instead
673 (which works for `<h1>` and `<h2>` headings only).
674 * avoids [inline links][] and uses [reference links][] instead.
675 * avoids [fenced code blocks][] and uses [indented code blocks][] instead.
676
677 [ATX headings]: https://github.github.com/gfm/#atx-headings
678 [setext headings]: https://github.github.com/gfm/#setext-headings
679 [inline links]: https://github.github.com/gfm/#inline-link
680 [reference links]: https://github.github.com/gfm/#reference-link
681 [fenced code blocks]: https://github.github.com/gfm/#fenced-code-blocks
682 [indented code blocks]: https://github.github.com/gfm/#indented-code-blocks
683
684 *Matthias St. Pierre*
685
44652c16
DMSP
686 * The test suite is changed to preserve results of each test recipe.
687 A new directory test-runs/ with subdirectories named like the
688 test recipes are created in the build tree for this purpose.
689
690 *Richard Levitte*
691
e7774c28 692 * Added an implementation of CMP and CRMF (RFC 4210, RFC 4211 RFC 6712).
ec2bfb7d 693 This adds `crypto/cmp/`, `crpyto/crmf/`, `apps/cmp.c`, and `test/cmp_*`.
8d9a4d83 694 See L<openssl-cmp(1)> and L<OSSL_CMP_exec_IR_ses(3)> as starting points.
e7774c28 695
8d9a4d83 696 *David von Oheimb, Martin Peylo*
e7774c28 697
ec2bfb7d 698 * Generalized the HTTP client code from `crypto/ocsp/` into `crpyto/http/`.
8f965908
DDO
699 It supports arbitrary request and response content types, GET redirection,
700 TLS, connections via HTTP(S) proxies, connections and exchange via
701 user-defined BIOs (allowing implicit connections), persistent connections,
702 and timeout checks. See L<OSSL_HTTP_transfer(3)> etc. for details.
703 The legacy OCSP-focused (and only partly documented) API
704 is retained for backward compatibility, while most of it is deprecated.
e7774c28
DDO
705
706 *David von Oheimb*
707
16c6534b
DDO
708 * Added `util/check-format.pl`, a tool for checking adherence to the
709 OpenSSL coding style <https://www.openssl.org/policies/codingstyle.html>.
710 The checks performed are incomplete and yield some false positives.
711 Still the tool should be useful for detecting most typical glitches.
712
713 *David von Oheimb*
714
ec2bfb7d 715 * `BIO_do_connect()` and `BIO_do_handshake()` have been extended:
59131529 716 If domain name resolution yields multiple IP addresses all of them are tried
ec2bfb7d 717 after `connect()` failures.
59131529
DDO
718
719 *David von Oheimb*
720
b7140b06 721 * All of the low level RSA functions have been deprecated.
b47e7bbc 722
44652c16
DMSP
723 *Paul Dale*
724
725 * X509 certificates signed using SHA1 are no longer allowed at security
726 level 1 and above.
44652c16
DMSP
727
728 *Kurt Roeckx*
729
730 * The command line utilities dhparam, dsa, gendsa and dsaparam have been
b304f856
P
731 modified to use PKEY APIs. These commands are now in maintenance mode
732 and no new features will be added to them.
733
734 *Paul Dale*
735
736 * The command line utility rsautl has been deprecated.
b304f856
P
737
738 *Paul Dale*
739
740 * The command line utilities genrsa and rsa have been modified to use PKEY
10203a34
KR
741 APIs. They now write PKCS#8 keys by default. These commands are now in
742 maintenance mode and no new features will be added to them.
44652c16
DMSP
743
744 *Paul Dale*
745
b7140b06 746 * All of the low level DH functions have been deprecated.
59d7ad07
MC
747
748 *Paul Dale and Matt Caswell*
44652c16 749
b7140b06 750 * All of the low level DSA functions have been deprecated.
8e53d94d 751
44652c16
DMSP
752 *Paul Dale*
753
754 * Reworked the treatment of EC EVP_PKEYs with the SM2 curve to
b7140b06 755 automatically become EVP_PKEY_SM2 rather than EVP_PKEY_EC.
44652c16
DMSP
756
757 *Richard Levitte*
758
b7140b06 759 * Deprecated low level ECDH and ECDSA functions.
44652c16
DMSP
760
761 *Paul Dale*
762
b7140b06 763 * Deprecated EVP_PKEY_decrypt_old() and EVP_PKEY_encrypt_old().
44652c16
DMSP
764
765 *Richard Levitte*
766
ed576acd
TM
767 * Enhanced the documentation of EVP_PKEY_get_size(), EVP_PKEY_get_bits()
768 and EVP_PKEY_get_security_bits(). Especially EVP_PKEY_get_size() needed
44652c16
DMSP
769 a new formulation to include all the things it can be used for,
770 as well as words of caution.
771
772 *Richard Levitte*
773
774 * The SSL_CTX_set_tlsext_ticket_key_cb(3) function has been deprecated.
44652c16
DMSP
775
776 *Paul Dale*
777
b7140b06 778 * All of the low level HMAC functions have been deprecated.
44652c16 779
0a8a6afd 780 *Paul Dale and David von Oheimb*
44652c16
DMSP
781
782 * Over two thousand fixes were made to the documentation, including:
783 - Common options (such as -rand/-writerand, TLS version control, etc)
784 were refactored and point to newly-enhanced descriptions in openssl.pod.
785 - Added style conformance for all options (with help from Richard Levitte),
786 documented all reported missing options, added a CI build to check
787 that all options are documented and that no unimplemented options
788 are documented.
789 - Documented some internals, such as all use of environment variables.
790 - Addressed all internal broken L<> references.
791
792 *Rich Salz*
793
b7140b06 794 * All of the low level CMAC functions have been deprecated.
44652c16
DMSP
795
796 *Paul Dale*
797
1dc8eb5b
P
798 * The low-level MD2, MD4, MD5, MDC2, RIPEMD160 and Whirlpool digest
799 functions have been deprecated.
44652c16 800
4d49b685 801 *Paul Dale and David von Oheimb*
44652c16 802
257e9d03 803 * Corrected the documentation of the return values from the `EVP_DigestSign*`
44652c16
DMSP
804 set of functions. The documentation mentioned negative values for some
805 errors, but this was never the case, so the mention of negative values
806 was removed.
807
808 Code that followed the documentation and thereby check with something
809 like `EVP_DigestSignInit(...) <= 0` will continue to work undisturbed.
810
811 *Richard Levitte*
812
b7140b06 813 * All of the low level cipher functions have been deprecated.
44652c16
DMSP
814
815 *Matt Caswell and Paul Dale*
5f8e6c50
DMSP
816
817 * Removed include/openssl/opensslconf.h.in and replaced it with
818 include/openssl/configuration.h.in, which differs in not including
819 <openssl/macros.h>. A short header include/openssl/opensslconf.h
820 was added to include both.
44652c16 821
5f8e6c50
DMSP
822 This allows internal hacks where one might need to modify the set
823 of configured macros, for example this if deprecated symbols are
824 still supposed to be available internally:
44652c16 825
5f8e6c50 826 #include <openssl/configuration.h>
44652c16 827
5f8e6c50
DMSP
828 #undef OPENSSL_NO_DEPRECATED
829 #define OPENSSL_SUPPRESS_DEPRECATED
44652c16 830
5f8e6c50 831 #include <openssl/macros.h>
44652c16 832
5f8e6c50
DMSP
833 This should not be used by applications that use the exported
834 symbols, as that will lead to linking errors.
44652c16 835
5f8e6c50
DMSP
836 *Richard Levitte*
837
44652c16
DMSP
838 * Fixed an overflow bug in the x64_64 Montgomery squaring procedure
839 used in exponentiation with 512-bit moduli. No EC algorithms are
840 affected. Analysis suggests that attacks against 2-prime RSA1024,
841 3-prime RSA1536, and DSA1024 as a result of this defect would be very
842 difficult to perform and are not believed likely. Attacks against DH512
843 are considered just feasible. However, for an attack the target would
844 have to re-use the DH512 private key, which is not recommended anyway.
4d49b685 845 Also applications directly using the low-level API BN_mod_exp may be
44652c16 846 affected if they use BN_FLG_CONSTTIME.
d8dc8538 847 ([CVE-2019-1551])
44652c16
DMSP
848
849 *Andy Polyakov*
5f8e6c50 850
44652c16
DMSP
851 * Most memory-debug features have been deprecated, and the functionality
852 replaced with no-ops.
5f8e6c50 853
44652c16 854 *Rich Salz*
257e9d03 855
31605414 856 * Added documentation for the STACK API.
257e9d03 857
852c2ed2 858 *Rich Salz*
5f8e6c50 859
02649104
RL
860 * Introduced a new method type and API, OSSL_ENCODER, to represent
861 generic encoders. These do the same sort of job that PEM writers
862 and d2i functions do, but with support for methods supplied by
863 providers, and the possibility for providers to support other
864 formats as well.
865
866 *Richard Levitte*
867
868 * Introduced a new method type and API, OSSL_DECODER, to represent
869 generic decoders. These do the same sort of job that PEM readers
870 and i2d functions do, but with support for methods supplied by
871 providers, and the possibility for providers to support other
872 formats as well.
5f8e6c50
DMSP
873
874 *Richard Levitte*
875
876 * Added a .pragma directive to the syntax of configuration files, to
877 allow varying behavior in a supported and predictable manner.
878 Currently added pragma:
879
880 .pragma dollarid:on
881
882 This allows dollar signs to be a keyword character unless it's
883 followed by a opening brace or parenthesis. This is useful for
884 platforms where dollar signs are commonly used in names, such as
885 volume names and system directory names on VMS.
886
887 *Richard Levitte*
888
b7140b06 889 * Added functionality to create an EVP_PKEY from user data.
5f8e6c50
DMSP
890
891 *Richard Levitte*
536454e5 892
5f8e6c50
DMSP
893 * Change the interpretation of the '--api' configuration option to
894 mean that this is a desired API compatibility level with no
895 further meaning. The previous interpretation, that this would
896 also mean to remove all deprecated symbols up to and including
897 the given version, no requires that 'no-deprecated' is also used
898 in the configuration.
899
900 When building applications, the desired API compatibility level
901 can be set with the OPENSSL_API_COMPAT macro like before. For
902 API compatibility version below 3.0, the old style numerical
903 value is valid as before, such as -DOPENSSL_API_COMPAT=0x10100000L.
904 For version 3.0 and on, the value is expected to be the decimal
905 value calculated from the major and minor version like this:
38c65481 906
5f8e6c50 907 MAJOR * 10000 + MINOR * 100
38c65481 908
5f8e6c50 909 Examples:
ea8c77a5 910
5f8e6c50
DMSP
911 -DOPENSSL_API_COMPAT=30000 For 3.0
912 -DOPENSSL_API_COMPAT=30200 For 3.2
913
914 To hide declarations that are deprecated up to and including the
915 given API compatibility level, -DOPENSSL_NO_DEPRECATED must be
916 given when building the application as well.
390c5795 917
5f8e6c50 918 *Richard Levitte*
e5641d7f 919
5f8e6c50
DMSP
920 * Added the X509_LOOKUP_METHOD called X509_LOOKUP_store, to allow
921 access to certificate and CRL stores via URIs and OSSL_STORE
922 loaders.
e5641d7f 923
5f8e6c50 924 This adds the following functions:
3ddc06f0 925
5f8e6c50
DMSP
926 - X509_LOOKUP_store()
927 - X509_STORE_load_file()
928 - X509_STORE_load_path()
929 - X509_STORE_load_store()
930 - SSL_add_store_cert_subjects_to_stack()
931 - SSL_CTX_set_default_verify_store()
932 - SSL_CTX_load_verify_file()
933 - SSL_CTX_load_verify_dir()
934 - SSL_CTX_load_verify_store()
e66cb363 935
5f8e6c50 936 *Richard Levitte*
732d31be 937
5f8e6c50
DMSP
938 * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY.
939 The presence of this system service is determined at run-time.
223c59ea 940
5f8e6c50 941 *Richard Levitte*
173350bc 942
5f8e6c50
DMSP
943 * Added functionality to create an EVP_PKEY context based on data
944 for methods from providers. This takes an algorithm name and a
945 property query string and simply stores them, with the intent
946 that any operation that uses this context will use those strings
947 to fetch the needed methods implicitly, thereby making the port
948 of application written for pre-3.0 OpenSSL easier.
acf20c7d 949
5f8e6c50 950 *Richard Levitte*
3d63b396 951
5f8e6c50
DMSP
952 * The undocumented function NCONF_WIN32() has been deprecated; for
953 conversion details see the HISTORY section of doc/man5/config.pod
c2bf7208 954
5f8e6c50 955 *Rich Salz*
ba64ae6c 956
5f8e6c50
DMSP
957 * Introduced the new functions EVP_DigestSignInit_ex() and
958 EVP_DigestVerifyInit_ex(). The macros EVP_DigestSignUpdate() and
959 EVP_DigestVerifyUpdate() have been converted to functions. See the man
960 pages for further details.
0e0c6821 961
5f8e6c50 962 *Matt Caswell*
e6f418bc 963
5f8e6c50
DMSP
964 * Over two thousand fixes were made to the documentation, including:
965 adding missing command flags, better style conformance, documentation
966 of internals, etc.
3d63b396 967
5f8e6c50 968 *Rich Salz, Richard Levitte*
3d63b396 969
5f8e6c50
DMSP
970 * s390x assembly pack: add hardware-support for P-256, P-384, P-521,
971 X25519, X448, Ed25519 and Ed448.
a25f33d2 972
5f8e6c50 973 *Patrick Steuer*
17716680 974
5f8e6c50
DMSP
975 * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just
976 the first value.
0e4bc563 977
5f8e6c50 978 *Jon Spillett*
e30dd20c 979
ec2bfb7d
DDO
980 * Deprecated the public definition of `ERR_STATE` as well as the function
981 `ERR_get_state()`. This is done in preparation of making `ERR_STATE` an
5f8e6c50 982 opaque type.
c05353c5 983
5f8e6c50 984 *Richard Levitte*
d741ccad 985
5f8e6c50
DMSP
986 * Added ERR functionality to give callers access to the stored function
987 names that have replaced the older function code based functions.
aaf35f11 988
af2f14ac
RL
989 New functions are ERR_peek_error_func(), ERR_peek_last_error_func(),
990 ERR_peek_error_data(), ERR_peek_last_error_data(), ERR_get_error_all(),
991 ERR_peek_error_all() and ERR_peek_last_error_all().
992
b7140b06
SL
993 Deprecate ERR functions ERR_get_error_line(), ERR_get_error_line_data(),
994 ERR_peek_error_line_data(), ERR_peek_last_error_line_data() and
995 ERR_func_error_string().
aaf35f11 996
5f8e6c50 997 *Richard Levitte*
3ff55e96 998
5f8e6c50
DMSP
999 * Extended testing to be verbose for failing tests only. The make variables
1000 VERBOSE_FAILURE or VF can be used to enable this:
b6af2c7e 1001
5f8e6c50
DMSP
1002 $ make VF=1 test # Unix
1003 $ mms /macro=(VF=1) test ! OpenVMS
1004 $ nmake VF=1 test # Windows
77202a85 1005
5f8e6c50 1006 *Richard Levitte*
57f39cc8 1007
b9fbacaa
DDO
1008 * Added the `-copy_extensions` option to the `x509` command for use with
1009 `-req` and `-x509toreq`. When given with the `copy` or `copyall` argument,
1010 all extensions in the request are copied to the certificate or vice versa.
1011
1012 *David von Oheimb*, *Kirill Stefanenkov <kirill_stefanenkov@rambler.ru>*
1013
1014 * Added the `-copy_extensions` option to the `req` command for use with
1015 `-x509`. When given with the `copy` or `copyall` argument,
1016 all extensions in the certification request are copied to the certificate.
b65c5ec8
DDO
1017
1018 *David von Oheimb*
1019
b9fbacaa
DDO
1020 * The `x509`, `req`, and `ca` commands now make sure that X.509v3 certificates
1021 they generate are by default RFC 5280 compliant in the following sense:
1022 There is a subjectKeyIdentifier extension with a hash value of the public key
1023 and for not self-signed certs there is an authorityKeyIdentifier extension
1024 with a keyIdentifier field or issuer information identifying the signing key.
ec2bfb7d 1025 This is done unless some configuration overrides the new default behavior,
b9fbacaa 1026 such as `subjectKeyIdentifier = none` and `authorityKeyIdentifier = none`.
ec2bfb7d
DDO
1027
1028 *David von Oheimb*
1029
1030 * Added several checks to `X509_verify_cert()` according to requirements in
0e071fbc
DO
1031 RFC 5280 in case `X509_V_FLAG_X509_STRICT` is set
1032 (which may be done by using the CLI option `-x509_strict`):
1033 * The basicConstraints of CA certificates must be marked critical.
1034 * CA certificates must explicitly include the keyUsage extension.
1035 * If a pathlenConstraint is given the key usage keyCertSign must be allowed.
1036 * The issuer name of any certificate must not be empty.
1037 * The subject name of CA certs, certs with keyUsage crlSign,
1038 and certs without subjectAlternativeName must not be empty.
1039 * If a subjectAlternativeName extension is given it must not be empty.
1040 * The signatureAlgorithm field and the cert signature must be consistent.
1041 * Any given authorityKeyIdentifier and any given subjectKeyIdentifier
1042 must not be marked critical.
1043 * The authorityKeyIdentifier must be given for X.509v3 certs
1044 unless they are self-signed.
1045 * The subjectKeyIdentifier must be given for all X.509v3 CA certs.
1046
1047 *David von Oheimb*
1048
ec2bfb7d 1049 * Certificate verification using `X509_verify_cert()` meanwhile rejects EC keys
0e071fbc
DO
1050 with explicit curve parameters (specifiedCurve) as required by RFC 5480.
1051
66194839 1052 *Tomáš Mráz*
0e071fbc 1053
5f8e6c50 1054 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 1055 used even when parsing explicit parameters, when loading a encoded key
5f8e6c50
DMSP
1056 or calling `EC_GROUP_new_from_ecpkparameters()`/
1057 `EC_GROUP_new_from_ecparameters()`.
1058 This prevents bypass of security hardening and performance gains,
1059 especially for curves with specialized EC_METHODs.
1060 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 1061 encoded, the output is still encoded with explicit parameters, even if
5f8e6c50 1062 internally a "named" EC_GROUP is used for computation.
480af99e 1063
5f8e6c50 1064 *Nicola Tuveri*
480af99e 1065
5f8e6c50
DMSP
1066 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
1067 this change, EC_GROUP_set_generator would accept order and/or cofactor as
1068 NULL. After this change, only the cofactor parameter can be NULL. It also
1069 does some minimal sanity checks on the passed order.
d8dc8538 1070 ([CVE-2019-1547])
bab53405 1071
5f8e6c50 1072 *Billy Bob Brumley*
31636a3e 1073
5f8e6c50
DMSP
1074 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
1075 An attack is simple, if the first CMS_recipientInfo is valid but the
1076 second CMS_recipientInfo is chosen ciphertext. If the second
1077 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
1078 encryption key will be replaced by garbage, and the message cannot be
1079 decoded, but if the RSA decryption fails, the correct encryption key is
1080 used and the recipient will not notice the attack.
1081 As a work around for this potential attack the length of the decrypted
1082 key must be equal to the cipher default key length, in case the
1083 certifiate is not given and all recipientInfo are tried out.
1084 The old behaviour can be re-enabled in the CMS code by setting the
1085 CMS_DEBUG_DECRYPT flag.
60aee6ce 1086
5f8e6c50 1087 *Bernd Edlinger*
31636a3e 1088
5f8e6c50
DMSP
1089 * Early start up entropy quality from the DEVRANDOM seed source has been
1090 improved for older Linux systems. The RAND subsystem will wait for
1091 /dev/random to be producing output before seeding from /dev/urandom.
1092 The seeded state is stored for future library initialisations using
1093 a system global shared memory segment. The shared memory identifier
1094 can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to
1095 the desired value. The default identifier is 114.
31636a3e 1096
5f8e6c50 1097 *Paul Dale*
7a762197 1098
5f8e6c50
DMSP
1099 * Revised BN_generate_prime_ex to not avoid factors 2..17863 in p-1
1100 when primes for RSA keys are computed.
1101 Since we previously always generated primes == 2 (mod 3) for RSA keys,
1102 the 2-prime and 3-prime RSA modules were easy to distinguish, since
257e9d03 1103 `N = p*q = 1 (mod 3)`, but `N = p*q*r = 2 (mod 3)`. Therefore fingerprinting
5f8e6c50
DMSP
1104 2-prime vs. 3-prime RSA keys was possible by computing N mod 3.
1105 This avoids possible fingerprinting of newly generated RSA modules.
6caa4edd 1106
5f8e6c50 1107 *Bernd Edlinger*
28b6d502 1108
5f8e6c50
DMSP
1109 * Correct the extended master secret constant on EBCDIC systems. Without this
1110 fix TLS connections between an EBCDIC system and a non-EBCDIC system that
1111 negotiate EMS will fail. Unfortunately this also means that TLS connections
1112 between EBCDIC systems with this fix, and EBCDIC systems without this
1113 fix will fail if they negotiate EMS.
d5bbead4 1114
5f8e6c50 1115 *Matt Caswell*
837f2fc7 1116
5f8e6c50
DMSP
1117 * Changed the library initialisation so that the config file is now loaded
1118 by default. This was already the case for libssl. It now occurs for both
1119 libcrypto and libssl. Use the OPENSSL_INIT_NO_LOAD_CONFIG option to
ec2bfb7d 1120 `OPENSSL_init_crypto()` to suppress automatic loading of a config file.
6bf79e30 1121
5f8e6c50 1122 *Matt Caswell*
480af99e 1123
ec2bfb7d
DDO
1124 * Introduced new error raising macros, `ERR_raise()` and `ERR_raise_data()`,
1125 where the former acts as a replacement for `ERR_put_error()`, and the
1126 latter replaces the combination `ERR_put_error()` + `ERR_add_error_data()`.
1127 `ERR_raise_data()` adds more flexibility by taking a format string and
5f8e6c50 1128 an arbitrary number of arguments following it, to be processed with
ec2bfb7d 1129 `BIO_snprintf()`.
e65bcbce 1130
5f8e6c50 1131 *Richard Levitte*
db99c525 1132
ec2bfb7d 1133 * Introduced a new function, `OSSL_PROVIDER_available()`, which can be used
5f8e6c50
DMSP
1134 to check if a named provider is loaded and available. When called, it
1135 will also activate all fallback providers if such are still present.
db99c525 1136
5f8e6c50 1137 *Richard Levitte*
db99c525 1138
5f8e6c50 1139 * Enforce a minimum DH modulus size of 512 bits.
f8d6be3f 1140
5f8e6c50 1141 *Bernd Edlinger*
f8d6be3f 1142
5f8e6c50
DMSP
1143 * Changed DH parameters to generate the order q subgroup instead of 2q.
1144 Previously generated DH parameters are still accepted by DH_check
1145 but DH_generate_key works around that by clearing bit 0 of the
1146 private key for those. This avoids leaking bit 0 of the private key.
f8d6be3f 1147
5f8e6c50 1148 *Bernd Edlinger*
f8d6be3f 1149
5f8e6c50 1150 * Significantly reduce secure memory usage by the randomness pools.
f8d6be3f 1151
5f8e6c50 1152 *Paul Dale*
f8d6be3f 1153
257e9d03 1154 * `{CRYPTO,OPENSSL}_mem_debug_{push,pop}` are now no-ops and have been
5f8e6c50 1155 deprecated.
1a489c9a 1156
5f8e6c50 1157 *Rich Salz*
8528128b 1158
5f8e6c50
DMSP
1159 * A new type, EVP_KEYEXCH, has been introduced to represent key exchange
1160 algorithms. An implementation of a key exchange algorithm can be obtained
1161 by using the function EVP_KEYEXCH_fetch(). An EVP_KEYEXCH algorithm can be
1162 used in a call to EVP_PKEY_derive_init_ex() which works in a similar way to
1163 the older EVP_PKEY_derive_init() function. See the man pages for the new
1164 functions for further details.
8228fd89 1165
5f8e6c50 1166 *Matt Caswell*
adb92d56 1167
5f8e6c50 1168 * The EVP_PKEY_CTX_set_dh_pad() macro has now been converted to a function.
6bf79e30 1169
5f8e6c50 1170 *Matt Caswell*
adb92d56 1171
5f8e6c50
DMSP
1172 * Removed the function names from error messages and deprecated the
1173 xxx_F_xxx define's.
6bf79e30 1174
0f71b1eb
P
1175 *Richard Levitte*
1176
5f8e6c50 1177 * Removed NextStep support and the macro OPENSSL_UNISTD
db99c525 1178
5f8e6c50 1179 *Rich Salz*
94fd382f 1180
5f8e6c50
DMSP
1181 * Removed DES_check_key. Also removed OPENSSL_IMPLEMENT_GLOBAL,
1182 OPENSSL_GLOBAL_REF, OPENSSL_DECLARE_GLOBAL.
1183 Also removed "export var as function" capability; we do not export
1184 variables, only functions.
e194fe8f 1185
5f8e6c50 1186 *Rich Salz*
40a70628 1187
5f8e6c50
DMSP
1188 * RC5_32_set_key has been changed to return an int type, with 0 indicating
1189 an error and 1 indicating success. In previous versions of OpenSSL this
1190 was a void type. If a key was set longer than the maximum possible this
1191 would crash.
c2c2e7a4 1192
5f8e6c50 1193 *Matt Caswell*
c2c2e7a4 1194
5f8e6c50 1195 * Support SM2 signing and verification schemes with X509 certificate.
d18ef847 1196
5f8e6c50 1197 *Paul Yang*
d357be38 1198
ec2bfb7d 1199 * Use SHA256 as the default digest for TS query in the `ts` app.
b615ad90 1200
66194839 1201 *Tomáš Mráz*
0ebfcc8f 1202
5f8e6c50 1203 * Change PBKDF2 to conform to SP800-132 instead of the older PKCS5 RFC2898.
62bad771 1204
5f8e6c50 1205 *Shane Lontis*
1ad2ecb6 1206
5f8e6c50
DMSP
1207 * Default cipher lists/suites are now available via a function, the
1208 #defines are deprecated.
bd3576d2 1209
5f8e6c50 1210 *Todd Short*
b64f8256 1211
5f8e6c50
DMSP
1212 * Add target VC-WIN32-UWP, VC-WIN64A-UWP, VC-WIN32-ARM-UWP and
1213 VC-WIN64-ARM-UWP in Windows OneCore target for making building libraries
1214 for Windows Store apps easier. Also, the "no-uplink" option has been added.
a9be3af5 1215
5f8e6c50 1216 *Kenji Mouri*
47339f61 1217
5f8e6c50 1218 * Join the directories crypto/x509 and crypto/x509v3
b0b7b1c5 1219
5f8e6c50 1220 *Richard Levitte*
6d311938 1221
5f8e6c50 1222 * Added command 'openssl kdf' that uses the EVP_KDF API.
90b8bbb8 1223
5f8e6c50 1224 *Shane Lontis*
22a4f969 1225
5f8e6c50 1226 * Added command 'openssl mac' that uses the EVP_MAC API.
41b731f2 1227
5f8e6c50 1228 *Shane Lontis*
e778802f 1229
5f8e6c50
DMSP
1230 * Added OPENSSL_info() to get diverse built-in OpenSSL data, such
1231 as default directories. Also added the command 'openssl info'
1232 for scripting purposes.
1d48dd00 1233
5f8e6c50 1234 *Richard Levitte*
28a98809 1235
5f8e6c50 1236 * The functions AES_ige_encrypt() and AES_bi_ige_encrypt() have been
b7140b06 1237 deprecated.
8f7de4f0 1238
5f8e6c50 1239 *Matt Caswell*
5fbe91d8 1240
5f8e6c50 1241 * Add prediction resistance to the DRBG reseeding process.
9263e882 1242
5f8e6c50 1243 *Paul Dale*
f73e07cf 1244
5f8e6c50
DMSP
1245 * Limit the number of blocks in a data unit for AES-XTS to 2^20 as
1246 mandated by IEEE Std 1619-2018.
f9a25931 1247
5f8e6c50 1248 *Paul Dale*
2f0cd195 1249
5f8e6c50 1250 * Added newline escaping functionality to a filename when using openssl dgst.
257e9d03 1251 This output format is to replicate the output format found in the `*sum`
5f8e6c50 1252 checksum programs. This aims to preserve backward compatibility.
268c2102 1253
5f8e6c50 1254 *Matt Eaton, Richard Levitte, and Paul Dale*
fc8ee06b 1255
5f8e6c50
DMSP
1256 * Removed the heartbeat message in DTLS feature, as it has very
1257 little usage and doesn't seem to fulfill a valuable purpose.
1258 The configuration option is now deprecated.
c7ac31e2 1259
5f8e6c50 1260 *Richard Levitte*
9d892e28 1261
5f8e6c50
DMSP
1262 * Changed the output of 'openssl {digestname} < file' to display the
1263 digest name in its output.
9d892e28 1264
5f8e6c50 1265 *Richard Levitte*
ee13f9b1 1266
5f8e6c50 1267 * Added a new generic trace API which provides support for enabling
b7140b06 1268 instrumentation through trace output.
cb0f35d7 1269
5f8e6c50 1270 *Richard Levitte & Matthias St. Pierre*
cfcf6453 1271
5f8e6c50
DMSP
1272 * Added build tests for C++. These are generated files that only do one
1273 thing, to include one public OpenSSL head file each. This tests that
1274 the public header files can be usefully included in a C++ application.
cdbb8c2f 1275
5f8e6c50
DMSP
1276 This test isn't enabled by default. It can be enabled with the option
1277 'enable-buildtest-c++'.
06d5b162 1278
5f8e6c50 1279 *Richard Levitte*
c35f549e 1280
95a444c9
TM
1281 * Added KB KDF (EVP_KDF_KB) to EVP_KDF.
1282
1283 *Robbie Harwood*
1284
1285 * Added SSH KDF (EVP_KDF_SSHKDF) and KRB5 KDF (EVP_KDF_KRB5KDF) to EVP_KDF.
1286
1287 *Simo Sorce*
1288
1289 * Added Single Step KDF (EVP_KDF_SS), X963 KDF, and X942 KDF to EVP_KDF.
ebc828ca 1290
5f8e6c50 1291 *Shane Lontis*
79e259e3 1292
95a444c9 1293 * Added KMAC to EVP_MAC.
56ee3117 1294
5f8e6c50 1295 *Shane Lontis*
6063b27b 1296
5f8e6c50
DMSP
1297 * Added property based algorithm implementation selection framework to
1298 the core.
6063b27b 1299
5f8e6c50 1300 *Paul Dale*
6063b27b 1301
5f8e6c50
DMSP
1302 * Added SCA hardening for modular field inversion in EC_GROUP through
1303 a new dedicated field_inv() pointer in EC_METHOD.
1304 This also addresses a leakage affecting conversions from projective
1305 to affine coordinates.
792a9002 1306
5f8e6c50 1307 *Billy Bob Brumley, Nicola Tuveri*
792a9002 1308
5f8e6c50
DMSP
1309 * Added EVP_KDF, an EVP layer KDF API, to simplify adding KDF and PRF
1310 implementations. This includes an EVP_PKEY to EVP_KDF bridge for
1311 those algorithms that were already supported through the EVP_PKEY API
1312 (scrypt, TLS1 PRF and HKDF). The low-level KDF functions for PBKDF2
1313 and scrypt are now wrappers that call EVP_KDF.
792a9002 1314
5f8e6c50 1315 *David Makepeace*
ce72df1c 1316
5f8e6c50 1317 * Build devcrypto engine as a dynamic engine.
4098e89c 1318
5f8e6c50 1319 *Eneas U de Queiroz*
4098e89c 1320
5f8e6c50 1321 * Add keyed BLAKE2 to EVP_MAC.
03f8b042 1322
5f8e6c50 1323 *Antoine Salon*
5dcdcd47 1324
5f8e6c50
DMSP
1325 * Fix a bug in the computation of the endpoint-pair shared secret used
1326 by DTLS over SCTP. This breaks interoperability with older versions
1327 of OpenSSL like OpenSSL 1.1.0 and OpenSSL 1.0.2. There is a runtime
1328 switch SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG (off by default) enabling
1329 interoperability with such broken implementations. However, enabling
1330 this switch breaks interoperability with correct implementations.
ae82b46f 1331
5f8e6c50
DMSP
1332 * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a
1333 re-used X509_PUBKEY object if the second PUBKEY is malformed.
8d7ed6ff 1334
5f8e6c50 1335 *Bernd Edlinger*
8d7ed6ff 1336
5f8e6c50 1337 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
1b24cca9 1338
5f8e6c50 1339 *Richard Levitte*
9ce5db45 1340
18fdebf1 1341 * Changed the license to the Apache License v2.0.
7f111b8b 1342
5f8e6c50 1343 *Richard Levitte*
651d0aff 1344
5f8e6c50 1345 * Switch to a new version scheme using three numbers MAJOR.MINOR.PATCH.
13e91dd3 1346
5f8e6c50
DMSP
1347 - Major releases (indicated by incrementing the MAJOR release number)
1348 may introduce incompatible API/ABI changes.
1349 - Minor releases (indicated by incrementing the MINOR release number)
1350 may introduce new features but retain API/ABI compatibility.
1351 - Patch releases (indicated by incrementing the PATCH number)
1352 are intended for bug fixes and other improvements of existing
1353 features only (like improving performance or adding documentation)
1354 and retain API/ABI compatibility.
13e91dd3 1355
5f8e6c50 1356 *Richard Levitte*
13e91dd3 1357
5f8e6c50 1358 * Add support for RFC5297 SIV mode (siv128), including AES-SIV.
13e91dd3 1359
5f8e6c50 1360 *Todd Short*
651d0aff 1361
5f8e6c50
DMSP
1362 * Remove the 'dist' target and add a tarball building script. The
1363 'dist' target has fallen out of use, and it shouldn't be
1364 necessary to configure just to create a source distribution.
651d0aff 1365
5f8e6c50 1366 *Richard Levitte*
651d0aff 1367
5f8e6c50
DMSP
1368 * Recreate the OS390-Unix config target. It no longer relies on a
1369 special script like it did for OpenSSL pre-1.1.0.
651d0aff 1370
5f8e6c50 1371 *Richard Levitte*
651d0aff 1372
5f8e6c50
DMSP
1373 * Instead of having the source directories listed in Configure, add
1374 a 'build.info' keyword SUBDIRS to indicate what sub-directories to
1375 look into.
651d0aff 1376
5f8e6c50 1377 *Richard Levitte*
7f111b8b 1378
5f8e6c50 1379 * Add GMAC to EVP_MAC.
1b24cca9 1380
5f8e6c50 1381 *Paul Dale*
651d0aff 1382
5f8e6c50 1383 * Ported the HMAC, CMAC and SipHash EVP_PKEY_METHODs to EVP_MAC.
651d0aff 1384
5f8e6c50 1385 *Richard Levitte*
651d0aff 1386
5f8e6c50
DMSP
1387 * Added EVP_MAC, an EVP layer MAC API, to simplify adding MAC
1388 implementations. This includes a generic EVP_PKEY to EVP_MAC bridge,
1389 to facilitate the continued use of MACs through raw private keys in
1dc1ea18 1390 functionality such as `EVP_DigestSign*` and `EVP_DigestVerify*`.
651d0aff 1391
5f8e6c50 1392 *Richard Levitte*
651d0aff 1393
b7140b06 1394 * Deprecate ECDH_KDF_X9_62().
651d0aff 1395
5f8e6c50 1396 *Antoine Salon*
651d0aff 1397
5f8e6c50
DMSP
1398 * Added EVP_PKEY_ECDH_KDF_X9_63 and ecdh_KDF_X9_63() as replacements for
1399 the EVP_PKEY_ECDH_KDF_X9_62 KDF type and ECDH_KDF_X9_62(). The old names
1400 are retained for backwards compatibility.
651d0aff 1401
5f8e6c50 1402 *Antoine Salon*
651d0aff 1403
5f8e6c50
DMSP
1404 * AES-XTS mode now enforces that its two keys are different to mitigate
1405 the attacked described in "Efficient Instantiations of Tweakable
1406 Blockciphers and Refinements to Modes OCB and PMAC" by Phillip Rogaway.
1407 Details of this attack can be obtained from:
257e9d03 1408 <http://web.cs.ucdavis.edu/%7Erogaway/papers/offsets.pdf>
651d0aff 1409
5f8e6c50 1410 *Paul Dale*
651d0aff 1411
5f8e6c50
DMSP
1412 * Rename the object files, i.e. give them other names than in previous
1413 versions. Their names now include the name of the final product, as
1414 well as its type mnemonic (bin, lib, shlib).
651d0aff 1415
5f8e6c50 1416 *Richard Levitte*
651d0aff 1417
5f8e6c50
DMSP
1418 * Added new option for 'openssl list', '-objects', which will display the
1419 list of built in objects, i.e. OIDs with names.
651d0aff 1420
5f8e6c50 1421 *Richard Levitte*
651d0aff 1422
64713cb1
CN
1423 * Added the options `-crl_lastupdate` and `-crl_nextupdate` to `openssl ca`,
1424 allowing the `lastUpdate` and `nextUpdate` fields in the generated CRL to
1425 be set explicitly.
1426
1427 *Chris Novakovic*
1428
5f8e6c50
DMSP
1429 * Added support for Linux Kernel TLS data-path. The Linux Kernel data-path
1430 improves application performance by removing data copies and providing
1431 applications with zero-copy system calls such as sendfile and splice.
651d0aff 1432
5f8e6c50 1433 *Boris Pismenny*
651d0aff 1434
b7140b06 1435 * The SSL option SSL_OP_CLEANSE_PLAINTEXT is introduced.
163b8016
ME
1436
1437 *Martin Elshuber*
1438
fc0aae73
DDO
1439 * `PKCS12_parse` now maintains the order of the parsed certificates
1440 when outputting them via `*ca` (rather than reversing it).
1441
1442 *David von Oheimb*
1443
b7140b06 1444 * Deprecated pthread fork support methods.
9750b4d3
RB
1445
1446 *Randall S. Becker*
1447
fc5245a9
HK
1448 * Added support for FFDHE key exchange in TLS 1.3.
1449
1450 *Raja Ashok*
1451
8e7d941a
RL
1452 * Added a new concept for OpenSSL plugability: providers. This
1453 functionality is designed to replace the ENGINE API and ENGINE
1454 implementations, and to be much more dynamic, allowing provider
1455 authors to introduce new algorithms among other things, as long as
1456 there's an API that supports the algorithm type.
1457
1458 With this concept comes a new core API for interaction between
1459 libcrypto and provider implementations. Public libcrypto functions
1460 that want to use providers do so through this core API.
1461
1462 The main documentation for this core API is found in
1463 doc/man7/provider.pod, doc/man7/provider-base.pod, and they in turn
1464 refer to other manuals describing the API specific for supported
1465 algorithm types (also called operations).
1466
1467 *The OpenSSL team*
1468
44652c16
DMSP
1469OpenSSL 1.1.1
1470-------------
1471
796f4f70
MC
1472### Changes between 1.1.1k and 1.1.1l [24 Aug 2021]
1473
1474 * Fixed an SM2 Decryption Buffer Overflow.
1475
fdd43643
P
1476 In order to decrypt SM2 encrypted data an application is expected to
1477 call the API function EVP_PKEY_decrypt(). Typically an application will
1478 call this function twice. The first time, on entry, the "out" parameter
1479 can be NULL and, on exit, the "outlen" parameter is populated with the
1480 buffer size required to hold the decrypted plaintext. The application
1481 can then allocate a sufficiently sized buffer and call EVP_PKEY_decrypt()
1482 again, but this time passing a non-NULL value for the "out" parameter.
796f4f70
MC
1483
1484 A bug in the implementation of the SM2 decryption code means that the
fdd43643
P
1485 calculation of the buffer size required to hold the plaintext returned
1486 by the first call to EVP_PKEY_decrypt() can be smaller than the actual
1487 size required by the second call. This can lead to a buffer overflow
1488 when EVP_PKEY_decrypt() is called by the application a second time with
1489 a buffer that is too small.
1490
1491 A malicious attacker who is able present SM2 content for decryption to
1492 an application could cause attacker chosen data to overflow the buffer
1493 by up to a maximum of 62 bytes altering the contents of other data held
1494 after the buffer, possibly changing application behaviour or causing
1495 the application to crash. The location of the buffer is application
1496 dependent but is typically heap allocated.
796f4f70
MC
1497 ([CVE-2021-3711])
1498
1499 *Matt Caswell*
1500
fdd43643
P
1501 * Fixed various read buffer overruns processing ASN.1 strings
1502
1503 ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING
1504 structure which contains a buffer holding the string data and a field
1505 holding the buffer length. This contrasts with normal C strings which
1506 are repesented as a buffer for the string data which is terminated
1507 with a NUL (0) byte.
1508
1509 Although not a strict requirement, ASN.1 strings that are parsed using
1510 OpenSSL's own "d2i" functions (and other similar parsing functions) as
1511 well as any string whose value has been set with the ASN1_STRING_set()
1512 function will additionally NUL terminate the byte array in the
1513 ASN1_STRING structure.
1514
1515 However, it is possible for applications to directly construct valid
1516 ASN1_STRING structures which do not NUL terminate the byte array by
1517 directly setting the "data" and "length" fields in the ASN1_STRING
1518 array. This can also happen by using the ASN1_STRING_set0() function.
1519
1520 Numerous OpenSSL functions that print ASN.1 data have been found to
1521 assume that the ASN1_STRING byte array will be NUL terminated, even
1522 though this is not guaranteed for strings that have been directly
1523 constructed. Where an application requests an ASN.1 structure to be
1524 printed, and where that ASN.1 structure contains ASN1_STRINGs that have
1525 been directly constructed by the application without NUL terminating
1526 the "data" field, then a read buffer overrun can occur.
1527
1528 The same thing can also occur during name constraints processing
1529 of certificates (for example if a certificate has been directly
1530 constructed by the application instead of loading it via the OpenSSL
1531 parsing functions, and the certificate contains non NUL terminated
1532 ASN1_STRING structures). It can also occur in the X509_get1_email(),
1533 X509_REQ_get1_email() and X509_get1_ocsp() functions.
1534
1535 If a malicious actor can cause an application to directly construct an
1536 ASN1_STRING and then process it through one of the affected OpenSSL
1537 functions then this issue could be hit. This might result in a crash
1538 (causing a Denial of Service attack). It could also result in the
1539 disclosure of private memory contents (such as private keys, or
1540 sensitive plaintext).
1541 ([CVE-2021-3712])
796f4f70
MC
1542
1543 *Matt Caswell*
1544
1545### Changes between 1.1.1j and 1.1.1k [25 Mar 2021]
5b57aa24 1546
468d9d55
MC
1547 * Fixed a problem with verifying a certificate chain when using the
1548 X509_V_FLAG_X509_STRICT flag. This flag enables additional security checks of
1549 the certificates present in a certificate chain. It is not set by default.
1550
1551 Starting from OpenSSL version 1.1.1h a check to disallow certificates in
1552 the chain that have explicitly encoded elliptic curve parameters was added
1553 as an additional strict check.
1554
1555 An error in the implementation of this check meant that the result of a
1556 previous check to confirm that certificates in the chain are valid CA
1557 certificates was overwritten. This effectively bypasses the check
1558 that non-CA certificates must not be able to issue other certificates.
1559
1560 If a "purpose" has been configured then there is a subsequent opportunity
1561 for checks that the certificate is a valid CA. All of the named "purpose"
1562 values implemented in libcrypto perform this check. Therefore, where
1563 a purpose is set the certificate chain will still be rejected even when the
1564 strict flag has been used. A purpose is set by default in libssl client and
1565 server certificate verification routines, but it can be overridden or
1566 removed by an application.
1567
1568 In order to be affected, an application must explicitly set the
1569 X509_V_FLAG_X509_STRICT verification flag and either not set a purpose
1570 for the certificate verification or, in the case of TLS client or server
1571 applications, override the default purpose.
1572 ([CVE-2021-3450])
1573
1574 *Tomáš Mráz*
1575
1576 * Fixed an issue where an OpenSSL TLS server may crash if sent a maliciously
1577 crafted renegotiation ClientHello message from a client. If a TLSv1.2
1578 renegotiation ClientHello omits the signature_algorithms extension (where it
1579 was present in the initial ClientHello), but includes a
1580 signature_algorithms_cert extension then a NULL pointer dereference will
1581 result, leading to a crash and a denial of service attack.
1582
1583 A server is only vulnerable if it has TLSv1.2 and renegotiation enabled
1584 (which is the default configuration). OpenSSL TLS clients are not impacted by
1585 this issue.
1586 ([CVE-2021-3449])
1587
1588 *Peter Kästle and Samuel Sapalski*
1589
c913dbd7
MC
1590### Changes between 1.1.1i and 1.1.1j [16 Feb 2021]
1591
1592 * Fixed the X509_issuer_and_serial_hash() function. It attempts to
1593 create a unique hash value based on the issuer and serial number data
1594 contained within an X509 certificate. However it was failing to correctly
1595 handle any errors that may occur while parsing the issuer field (which might
1596 occur if the issuer field is maliciously constructed). This may subsequently
1597 result in a NULL pointer deref and a crash leading to a potential denial of
1598 service attack.
1599 ([CVE-2021-23841])
1600
1601 *Matt Caswell*
1602
1603 * Fixed the RSA_padding_check_SSLv23() function and the RSA_SSLV23_PADDING
1604 padding mode to correctly check for rollback attacks. This is considered a
1605 bug in OpenSSL 1.1.1 because it does not support SSLv2. In 1.0.2 this is
1606 CVE-2021-23839.
1607
1608 *Matt Caswell*
1609
1610 Fixed the EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate
1611 functions. Previously they could overflow the output length argument in some
1612 cases where the input length is close to the maximum permissable length for
1613 an integer on the platform. In such cases the return value from the function
1614 call would be 1 (indicating success), but the output length value would be
1615 negative. This could cause applications to behave incorrectly or crash.
1616 ([CVE-2021-23840])
1617
1618 *Matt Caswell*
1619
1620 * Fixed SRP_Calc_client_key so that it runs in constant time. The previous
5b57aa24
MC
1621 implementation called BN_mod_exp without setting BN_FLG_CONSTTIME. This
1622 could be exploited in a side channel attack to recover the password. Since
1623 the attack is local host only this is outside of the current OpenSSL
1624 threat model and therefore no CVE is assigned.
1625
1626 Thanks to Mohammed Sabt and Daniel De Almeida Braga for reporting this
1627 issue.
1628
1629 *Matt Caswell*
1630
1631### Changes between 1.1.1h and 1.1.1i [8 Dec 2020]
6ffc3127 1632
1e13198f
MC
1633 * Fixed NULL pointer deref in the GENERAL_NAME_cmp function
1634 This function could crash if both GENERAL_NAMEs contain an EDIPARTYNAME.
1635 If an attacker can control both items being compared then this could lead
1636 to a possible denial of service attack. OpenSSL itself uses the
1637 GENERAL_NAME_cmp function for two purposes:
1638 1) Comparing CRL distribution point names between an available CRL and a
1639 CRL distribution point embedded in an X509 certificate
1640 2) When verifying that a timestamp response token signer matches the
1641 timestamp authority name (exposed via the API functions
1642 TS_RESP_verify_response and TS_RESP_verify_token)
1643 ([CVE-2020-1971])
1644
1645 *Matt Caswell*
6ffc3127
DMSP
1646
1647### Changes between 1.1.1g and 1.1.1h [22 Sep 2020]
1648
1649 * Certificates with explicit curve parameters are now disallowed in
1650 verification chains if the X509_V_FLAG_X509_STRICT flag is used.
1651
66194839 1652 *Tomáš Mráz*
6ffc3127
DMSP
1653
1654 * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently
1655 ignore TLS protocol version bounds when configuring DTLS-based contexts, and
1656 conversely, silently ignore DTLS protocol version bounds when configuring
1657 TLS-based contexts. The commands can be repeated to set bounds of both
1658 types. The same applies with the corresponding "min_protocol" and
1659 "max_protocol" command-line switches, in case some application uses both TLS
1660 and DTLS.
1661
1662 SSL_CTX instances that are created for a fixed protocol version (e.g.
1663 TLSv1_server_method()) also silently ignore version bounds. Previously
1664 attempts to apply bounds to these protocol versions would result in an
1665 error. Now only the "version-flexible" SSL_CTX instances are subject to
1666 limits in configuration files in command-line options.
1667
1668 *Viktor Dukhovni*
1669
1670 * Handshake now fails if Extended Master Secret extension is dropped
1671 on renegotiation.
1672
66194839 1673 *Tomáš Mráz*
6ffc3127
DMSP
1674
1675 * The Oracle Developer Studio compiler will start reporting deprecated APIs
1676
1677### Changes between 1.1.1f and 1.1.1g [21 Apr 2020]
1678
1679 * Fixed segmentation fault in SSL_check_chain()
1680 Server or client applications that call the SSL_check_chain() function
1681 during or after a TLS 1.3 handshake may crash due to a NULL pointer
1682 dereference as a result of incorrect handling of the
1683 "signature_algorithms_cert" TLS extension. The crash occurs if an invalid
1684 or unrecognised signature algorithm is received from the peer. This could
1685 be exploited by a malicious peer in a Denial of Service attack.
d8dc8538 1686 ([CVE-2020-1967])
6ffc3127
DMSP
1687
1688 *Benjamin Kaduk*
1689
1690 * Added AES consttime code for no-asm configurations
1691 an optional constant time support for AES was added
1692 when building openssl for no-asm.
1693 Enable with: ./config no-asm -DOPENSSL_AES_CONST_TIME
1694 Disable with: ./config no-asm -DOPENSSL_NO_AES_CONST_TIME
1695 At this time this feature is by default disabled.
1696 It will be enabled by default in 3.0.
1697
1698 *Bernd Edlinger*
1699
1700### Changes between 1.1.1e and 1.1.1f [31 Mar 2020]
1701
1702 * Revert the change of EOF detection while reading in libssl to avoid
1703 regressions in applications depending on the current way of reporting
1704 the EOF. As the existing method is not fully accurate the change to
1705 reporting the EOF via SSL_ERROR_SSL is kept on the current development
1706 branch and will be present in the 3.0 release.
1707
66194839 1708 *Tomáš Mráz*
6ffc3127
DMSP
1709
1710 * Revised BN_generate_prime_ex to not avoid factors 3..17863 in p-1
1711 when primes for RSA keys are computed.
1712 Since we previously always generated primes == 2 (mod 3) for RSA keys,
1713 the 2-prime and 3-prime RSA modules were easy to distinguish, since
1714 N = p*q = 1 (mod 3), but N = p*q*r = 2 (mod 3). Therefore fingerprinting
1715 2-prime vs. 3-prime RSA keys was possible by computing N mod 3.
1716 This avoids possible fingerprinting of newly generated RSA modules.
1717
1718 *Bernd Edlinger*
8658fedd 1719
257e9d03 1720### Changes between 1.1.1d and 1.1.1e [17 Mar 2020]
8658fedd
DMSP
1721
1722 * Properly detect EOF while reading in libssl. Previously if we hit an EOF
1723 while reading in libssl then we would report an error back to the
1724 application (SSL_ERROR_SYSCALL) but errno would be 0. We now add
1725 an error to the stack (which means we instead return SSL_ERROR_SSL) and
1726 therefore give a hint as to what went wrong.
1727
1728 *Matt Caswell*
1729
1730 * Check that ed25519 and ed448 are allowed by the security level. Previously
1731 signature algorithms not using an MD were not being checked that they were
1732 allowed by the security level.
1733
1734 *Kurt Roeckx*
1735
1736 * Fixed SSL_get_servername() behaviour. The behaviour of SSL_get_servername()
1737 was not quite right. The behaviour was not consistent between resumption
1738 and normal handshakes, and also not quite consistent with historical
1739 behaviour. The behaviour in various scenarios has been clarified and
1740 it has been updated to make it match historical behaviour as closely as
1741 possible.
1742
1743 *Matt Caswell*
44652c16 1744
f33ca114
RL
1745 * *[VMS only]* The header files that the VMS compilers include automatically,
1746 `__DECC_INCLUDE_PROLOGUE.H` and `__DECC_INCLUDE_EPILOGUE.H`, use pragmas
1747 that the C++ compiler doesn't understand. This is a shortcoming in the
1748 compiler, but can be worked around with `__cplusplus` guards.
1749
1750 C++ applications that use OpenSSL libraries must be compiled using the
1751 qualifier `/NAMES=(AS_IS,SHORTENED)` to be able to use all the OpenSSL
1752 functions. Otherwise, only functions with symbols of less than 31
1753 characters can be used, as the linker will not be able to successfully
1754 resolve symbols with longer names.
1755
1756 *Richard Levitte*
1757
44652c16
DMSP
1758 * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY.
1759 The presence of this system service is determined at run-time.
1760
1761 *Richard Levitte*
1762
44652c16
DMSP
1763 * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just
1764 the first value.
1765
1766 *Jon Spillett*
1767
257e9d03 1768### Changes between 1.1.1c and 1.1.1d [10 Sep 2019]
44652c16
DMSP
1769
1770 * Fixed a fork protection issue. OpenSSL 1.1.1 introduced a rewritten random
1771 number generator (RNG). This was intended to include protection in the
1772 event of a fork() system call in order to ensure that the parent and child
1773 processes did not share the same RNG state. However this protection was not
1774 being used in the default case.
1775
1776 A partial mitigation for this issue is that the output from a high
1777 precision timer is mixed into the RNG state so the likelihood of a parent
1778 and child process sharing state is significantly reduced.
1779
1780 If an application already calls OPENSSL_init_crypto() explicitly using
1781 OPENSSL_INIT_ATFORK then this problem does not occur at all.
d8dc8538 1782 ([CVE-2019-1549])
44652c16
DMSP
1783
1784 *Matthias St. Pierre*
1785
1786 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 1787 used even when parsing explicit parameters, when loading a encoded key
44652c16
DMSP
1788 or calling `EC_GROUP_new_from_ecpkparameters()`/
1789 `EC_GROUP_new_from_ecparameters()`.
1790 This prevents bypass of security hardening and performance gains,
1791 especially for curves with specialized EC_METHODs.
1792 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 1793 encoded, the output is still encoded with explicit parameters, even if
44652c16
DMSP
1794 internally a "named" EC_GROUP is used for computation.
1795
1796 *Nicola Tuveri*
1797
1798 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
1799 this change, EC_GROUP_set_generator would accept order and/or cofactor as
1800 NULL. After this change, only the cofactor parameter can be NULL. It also
1801 does some minimal sanity checks on the passed order.
d8dc8538 1802 ([CVE-2019-1547])
44652c16
DMSP
1803
1804 *Billy Bob Brumley*
1805
1806 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
1807 An attack is simple, if the first CMS_recipientInfo is valid but the
1808 second CMS_recipientInfo is chosen ciphertext. If the second
1809 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
1810 encryption key will be replaced by garbage, and the message cannot be
1811 decoded, but if the RSA decryption fails, the correct encryption key is
1812 used and the recipient will not notice the attack.
1813 As a work around for this potential attack the length of the decrypted
1814 key must be equal to the cipher default key length, in case the
1815 certifiate is not given and all recipientInfo are tried out.
1816 The old behaviour can be re-enabled in the CMS code by setting the
1817 CMS_DEBUG_DECRYPT flag.
d8dc8538 1818 ([CVE-2019-1563])
44652c16
DMSP
1819
1820 *Bernd Edlinger*
1821
1822 * Early start up entropy quality from the DEVRANDOM seed source has been
1823 improved for older Linux systems. The RAND subsystem will wait for
1824 /dev/random to be producing output before seeding from /dev/urandom.
1825 The seeded state is stored for future library initialisations using
1826 a system global shared memory segment. The shared memory identifier
1827 can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to
1828 the desired value. The default identifier is 114.
1829
1830 *Paul Dale*
1831
1832 * Correct the extended master secret constant on EBCDIC systems. Without this
1833 fix TLS connections between an EBCDIC system and a non-EBCDIC system that
1834 negotiate EMS will fail. Unfortunately this also means that TLS connections
1835 between EBCDIC systems with this fix, and EBCDIC systems without this
1836 fix will fail if they negotiate EMS.
1837
1838 *Matt Caswell*
1839
1840 * Use Windows installation paths in the mingw builds
1841
1842 Mingw isn't a POSIX environment per se, which means that Windows
1843 paths should be used for installation.
d8dc8538 1844 ([CVE-2019-1552])
44652c16
DMSP
1845
1846 *Richard Levitte*
1847
1848 * Changed DH_check to accept parameters with order q and 2q subgroups.
1849 With order 2q subgroups the bit 0 of the private key is not secret
1850 but DH_generate_key works around that by clearing bit 0 of the
1851 private key for those. This avoids leaking bit 0 of the private key.
1852
1853 *Bernd Edlinger*
1854
1855 * Significantly reduce secure memory usage by the randomness pools.
1856
1857 *Paul Dale*
1858
1859 * Revert the DEVRANDOM_WAIT feature for Linux systems
1860
1861 The DEVRANDOM_WAIT feature added a select() call to wait for the
1862 /dev/random device to become readable before reading from the
1863 /dev/urandom device.
1864
1865 It turned out that this change had negative side effects on
1866 performance which were not acceptable. After some discussion it
1867 was decided to revert this feature and leave it up to the OS
1868 resp. the platform maintainer to ensure a proper initialization
1869 during early boot time.
1870
1871 *Matthias St. Pierre*
1872
257e9d03 1873### Changes between 1.1.1b and 1.1.1c [28 May 2019]
44652c16
DMSP
1874
1875 * Add build tests for C++. These are generated files that only do one
1876 thing, to include one public OpenSSL head file each. This tests that
1877 the public header files can be usefully included in a C++ application.
1878
1879 This test isn't enabled by default. It can be enabled with the option
1880 'enable-buildtest-c++'.
1881
1882 *Richard Levitte*
1883
1884 * Enable SHA3 pre-hashing for ECDSA and DSA.
1885
1886 *Patrick Steuer*
1887
1888 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
ec2bfb7d
DDO
1889 This changes the size when using the `genpkey` command when no size is given.
1890 It fixes an omission in earlier changes that changed all RSA, DSA and DH
1891 generation commands to use 2048 bits by default.
44652c16
DMSP
1892
1893 *Kurt Roeckx*
1894
1895 * Reorganize the manual pages to consistently have RETURN VALUES,
1896 EXAMPLES, SEE ALSO and HISTORY come in that order, and adjust
1897 util/fix-doc-nits accordingly.
1898
1899 *Paul Yang, Joshua Lock*
1900
1901 * Add the missing accessor EVP_PKEY_get0_engine()
1902
1903 *Matt Caswell*
1904
ec2bfb7d 1905 * Have commands like `s_client` and `s_server` output the signature scheme
44652c16
DMSP
1906 along with other cipher suite parameters when debugging.
1907
1908 *Lorinczy Zsigmond*
1909
1910 * Make OPENSSL_config() error agnostic again.
1911
1912 *Richard Levitte*
1913
1914 * Do the error handling in RSA decryption constant time.
1915
1916 *Bernd Edlinger*
1917
1918 * Prevent over long nonces in ChaCha20-Poly1305.
1919
1920 ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input
1921 for every encryption operation. RFC 7539 specifies that the nonce value
1922 (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length
1923 and front pads the nonce with 0 bytes if it is less than 12
1924 bytes. However it also incorrectly allows a nonce to be set of up to 16
1925 bytes. In this case only the last 12 bytes are significant and any
1926 additional leading bytes are ignored.
1927
1928 It is a requirement of using this cipher that nonce values are
1929 unique. Messages encrypted using a reused nonce value are susceptible to
1930 serious confidentiality and integrity attacks. If an application changes
1931 the default nonce length to be longer than 12 bytes and then makes a
1932 change to the leading bytes of the nonce expecting the new value to be a
1933 new unique nonce then such an application could inadvertently encrypt
1934 messages with a reused nonce.
1935
1936 Additionally the ignored bytes in a long nonce are not covered by the
1937 integrity guarantee of this cipher. Any application that relies on the
1938 integrity of these ignored leading bytes of a long nonce may be further
1939 affected. Any OpenSSL internal use of this cipher, including in SSL/TLS,
1940 is safe because no such use sets such a long nonce value. However user
1941 applications that use this cipher directly and set a non-default nonce
1942 length to be longer than 12 bytes may be vulnerable.
1943
1944 This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk
1945 Greef of Ronomon.
d8dc8538 1946 ([CVE-2019-1543])
44652c16
DMSP
1947
1948 *Matt Caswell*
1949
1950 * Add DEVRANDOM_WAIT feature for Linux systems
1951
1952 On older Linux systems where the getrandom() system call is not available,
1953 OpenSSL normally uses the /dev/urandom device for seeding its CSPRNG.
1954 Contrary to getrandom(), the /dev/urandom device will not block during
1955 early boot when the kernel CSPRNG has not been seeded yet.
1956
1957 To mitigate this known weakness, use select() to wait for /dev/random to
1958 become readable before reading from /dev/urandom.
1959
1960 * Ensure that SM2 only uses SM3 as digest algorithm
1961
1962 *Paul Yang*
1963
257e9d03 1964### Changes between 1.1.1a and 1.1.1b [26 Feb 2019]
651d0aff 1965
5f8e6c50
DMSP
1966 * Change the info callback signals for the start and end of a post-handshake
1967 message exchange in TLSv1.3. In 1.1.1/1.1.1a we used SSL_CB_HANDSHAKE_START
1968 and SSL_CB_HANDSHAKE_DONE. Experience has shown that many applications get
1969 confused by this and assume that a TLSv1.2 renegotiation has started. This
1970 can break KeyUpdate handling. Instead we no longer signal the start and end
1971 of a post handshake message exchange (although the messages themselves are
1972 still signalled). This could break some applications that were expecting
1973 the old signals. However without this KeyUpdate is not usable for many
1974 applications.
651d0aff 1975
5f8e6c50 1976 *Matt Caswell*
651d0aff 1977
257e9d03 1978### Changes between 1.1.1 and 1.1.1a [20 Nov 2018]
651d0aff 1979
5f8e6c50 1980 * Timing vulnerability in DSA signature generation
651d0aff 1981
5f8e6c50
DMSP
1982 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
1983 timing side channel attack. An attacker could use variations in the signing
1984 algorithm to recover the private key.
651d0aff 1985
5f8e6c50 1986 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
d8dc8538 1987 ([CVE-2018-0734])
651d0aff 1988
5f8e6c50 1989 *Paul Dale*
651d0aff 1990
5f8e6c50 1991 * Timing vulnerability in ECDSA signature generation
651d0aff 1992
5f8e6c50
DMSP
1993 The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a
1994 timing side channel attack. An attacker could use variations in the signing
1995 algorithm to recover the private key.
651d0aff 1996
5f8e6c50 1997 This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser.
d8dc8538 1998 ([CVE-2018-0735])
651d0aff 1999
5f8e6c50 2000 *Paul Dale*
651d0aff 2001
5f8e6c50
DMSP
2002 * Fixed the issue that RAND_add()/RAND_seed() silently discards random input
2003 if its length exceeds 4096 bytes. The limit has been raised to a buffer size
2004 of two gigabytes and the error handling improved.
651d0aff 2005
5f8e6c50
DMSP
2006 This issue was reported to OpenSSL by Dr. Falko Strenzke. It has been
2007 categorized as a normal bug, not a security issue, because the DRBG reseeds
2008 automatically and is fully functional even without additional randomness
2009 provided by the application.
2010
257e9d03 2011### Changes between 1.1.0i and 1.1.1 [11 Sep 2018]
5f8e6c50
DMSP
2012
2013 * Add a new ClientHello callback. Provides a callback interface that gives
2014 the application the ability to adjust the nascent SSL object at the
2015 earliest stage of ClientHello processing, immediately after extensions have
2016 been collected but before they have been processed. In particular, this
2017 callback can adjust the supported TLS versions in response to the contents
2018 of the ClientHello
2019
2020 *Benjamin Kaduk*
2021
2022 * Add SM2 base algorithm support.
2023
2024 *Jack Lloyd*
2025
2026 * s390x assembly pack: add (improved) hardware-support for the following
2027 cryptographic primitives: sha3, shake, aes-gcm, aes-ccm, aes-ctr, aes-ofb,
2028 aes-cfb/cfb8, aes-ecb.
2029
2030 *Patrick Steuer*
2031
2032 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
2033 parameter is no longer accepted, as it leads to a corrupt table. NULL
2034 pem_str is reserved for alias entries only.
2035
2036 *Richard Levitte*
2037
2038 * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder
2039 step for prime curves. The new implementation is based on formulae from
2040 differential addition-and-doubling in homogeneous projective coordinates
2041 from Izu-Takagi "A fast parallel elliptic curve multiplication resistant
2042 against side channel attacks" and Brier-Joye "Weierstrass Elliptic Curves
2043 and Side-Channel Attacks" Eq. (8) for y-coordinate recovery, modified
2044 to work in projective coordinates.
2045
2046 *Billy Bob Brumley, Nicola Tuveri*
2047
2048 * Change generating and checking of primes so that the error rate of not
2049 being prime depends on the intended use based on the size of the input.
2050 For larger primes this will result in more rounds of Miller-Rabin.
2051 The maximal error rate for primes with more than 1080 bits is lowered
2052 to 2^-128.
2053
2054 *Kurt Roeckx, Annie Yousar*
2055
2056 * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
2057
2058 *Kurt Roeckx*
2059
2060 * The 'tsget' script is renamed to 'tsget.pl', to avoid confusion when
2061 moving between systems, and to avoid confusion when a Windows build is
2062 done with mingw vs with MSVC. For POSIX installs, there's still a
2063 symlink or copy named 'tsget' to avoid that confusion as well.
2064
2065 *Richard Levitte*
2066
2067 * Revert blinding in ECDSA sign and instead make problematic addition
2068 length-invariant. Switch even to fixed-length Montgomery multiplication.
2069
2070 *Andy Polyakov*
2071
2072 * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder
2073 step for binary curves. The new implementation is based on formulae from
2074 differential addition-and-doubling in mixed Lopez-Dahab projective
2075 coordinates, modified to independently blind the operands.
2076
2077 *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri*
2078
2079 * Add a scaffold to optionally enhance the Montgomery ladder implementation
2080 for `ec_scalar_mul_ladder` (formerly `ec_mul_consttime`) allowing
2081 EC_METHODs to implement their own specialized "ladder step", to take
2082 advantage of more favorable coordinate systems or more efficient
2083 differential addition-and-doubling algorithms.
2084
2085 *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri*
2086
2087 * Modified the random device based seed sources to keep the relevant
2088 file descriptors open rather than reopening them on each access.
2089 This allows such sources to operate in a chroot() jail without
2090 the associated device nodes being available. This behaviour can be
2091 controlled using RAND_keep_random_devices_open().
2092
2093 *Paul Dale*
2094
2095 * Numerous side-channel attack mitigations have been applied. This may have
2096 performance impacts for some algorithms for the benefit of improved
2097 security. Specific changes are noted in this change log by their respective
2098 authors.
2099
2100 *Matt Caswell*
2101
2102 * AIX shared library support overhaul. Switch to AIX "natural" way of
2103 handling shared libraries, which means collecting shared objects of
2104 different versions and bitnesses in one common archive. This allows to
2105 mitigate conflict between 1.0 and 1.1 side-by-side installations. It
2106 doesn't affect the way 3rd party applications are linked, only how
2107 multi-version installation is managed.
2108
2109 *Andy Polyakov*
2110
2111 * Make ec_group_do_inverse_ord() more robust and available to other
2112 EC cryptosystems, so that irrespective of BN_FLG_CONSTTIME, SCA
2113 mitigations are applied to the fallback BN_mod_inverse().
2114 When using this function rather than BN_mod_inverse() directly, new
2115 EC cryptosystem implementations are then safer-by-default.
2116
2117 *Billy Bob Brumley*
2118
2119 * Add coordinate blinding for EC_POINT and implement projective
2120 coordinate blinding for generic prime curves as a countermeasure to
2121 chosen point SCA attacks.
2122
2123 *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley*
2124
2125 * Add blinding to ECDSA and DSA signatures to protect against side channel
2126 attacks discovered by Keegan Ryan (NCC Group).
2127
2128 *Matt Caswell*
2129
ec2bfb7d 2130 * Enforce checking in the `pkeyutl` command to ensure that the input
5f8e6c50
DMSP
2131 length does not exceed the maximum supported digest length when performing
2132 a sign, verify or verifyrecover operation.
2133
2134 *Matt Caswell*
2135
2136 * SSL_MODE_AUTO_RETRY is enabled by default. Applications that use blocking
2137 I/O in combination with something like select() or poll() will hang. This
2138 can be turned off again using SSL_CTX_clear_mode().
2139 Many applications do not properly handle non-application data records, and
2140 TLS 1.3 sends more of such records. Setting SSL_MODE_AUTO_RETRY works
2141 around the problems in those applications, but can also break some.
2142 It's recommended to read the manpages about SSL_read(), SSL_write(),
2143 SSL_get_error(), SSL_shutdown(), SSL_CTX_set_mode() and
2144 SSL_CTX_set_read_ahead() again.
2145
2146 *Kurt Roeckx*
2147
2148 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
2149 now allow empty (zero character) pass phrases.
2150
2151 *Richard Levitte*
2152
2153 * Apply blinding to binary field modular inversion and remove patent
2154 pending (OPENSSL_SUN_GF2M_DIV) BN_GF2m_mod_div implementation.
2155
2156 *Billy Bob Brumley*
2157
2158 * Deprecate ec2_mult.c and unify scalar multiplication code paths for
2159 binary and prime elliptic curves.
2160
2161 *Billy Bob Brumley*
2162
2163 * Remove ECDSA nonce padding: EC_POINT_mul is now responsible for
2164 constant time fixed point multiplication.
2165
2166 *Billy Bob Brumley*
2167
2168 * Revise elliptic curve scalar multiplication with timing attack
2169 defenses: ec_wNAF_mul redirects to a constant time implementation
2170 when computing fixed point and variable point multiplication (which
2171 in OpenSSL are mostly used with secret scalars in keygen, sign,
2172 ECDH derive operations).
2173 *Billy Bob Brumley, Nicola Tuveri, Cesar Pereida García,
2174 Sohaib ul Hassan*
2175
2176 * Updated CONTRIBUTING
2177
2178 *Rich Salz*
2179
2180 * Updated DRBG / RAND to request nonce and additional low entropy
2181 randomness from the system.
2182
2183 *Matthias St. Pierre*
2184
2185 * Updated 'openssl rehash' to use OpenSSL consistent default.
2186
2187 *Richard Levitte*
2188
2189 * Moved the load of the ssl_conf module to libcrypto, which helps
2190 loading engines that libssl uses before libssl is initialised.
2191
2192 *Matt Caswell*
2193
2194 * Added EVP_PKEY_sign() and EVP_PKEY_verify() for EdDSA
2195
2196 *Matt Caswell*
2197
2198 * Fixed X509_NAME_ENTRY_set to get multi-valued RDNs right in all cases.
2199
2200 *Ingo Schwarze, Rich Salz*
2201
2202 * Added output of accepting IP address and port for 'openssl s_server'
2203
2204 *Richard Levitte*
2205
2206 * Added a new API for TLSv1.3 ciphersuites:
2207 SSL_CTX_set_ciphersuites()
2208 SSL_set_ciphersuites()
2209
2210 *Matt Caswell*
2211
2212 * Memory allocation failures consistently add an error to the error
2213 stack.
2214
2215 *Rich Salz*
2216
2217 * Don't use OPENSSL_ENGINES and OPENSSL_CONF environment values
2218 in libcrypto when run as setuid/setgid.
2219
2220 *Bernd Edlinger*
2221
2222 * Load any config file by default when libssl is used.
2223
2224 *Matt Caswell*
2225
2226 * Added new public header file <openssl/rand_drbg.h> and documentation
2227 for the RAND_DRBG API. See manual page RAND_DRBG(7) for an overview.
2228
2229 *Matthias St. Pierre*
2230
2231 * QNX support removed (cannot find contributors to get their approval
2232 for the license change).
2233
2234 *Rich Salz*
2235
2236 * TLSv1.3 replay protection for early data has been implemented. See the
2237 SSL_read_early_data() man page for further details.
2238
2239 *Matt Caswell*
2240
2241 * Separated TLSv1.3 ciphersuite configuration out from TLSv1.2 ciphersuite
2242 configuration. TLSv1.3 ciphersuites are not compatible with TLSv1.2 and
2243 below. Similarly TLSv1.2 ciphersuites are not compatible with TLSv1.3.
2244 In order to avoid issues where legacy TLSv1.2 ciphersuite configuration
2245 would otherwise inadvertently disable all TLSv1.3 ciphersuites the
2246 configuration has been separated out. See the ciphers man page or the
2247 SSL_CTX_set_ciphersuites() man page for more information.
2248
2249 *Matt Caswell*
2250
2251 * On POSIX (BSD, Linux, ...) systems the ocsp(1) command running
2252 in responder mode now supports the new "-multi" option, which
2253 spawns the specified number of child processes to handle OCSP
2254 requests. The "-timeout" option now also limits the OCSP
2255 responder's patience to wait to receive the full client request
2256 on a newly accepted connection. Child processes are respawned
2257 as needed, and the CA index file is automatically reloaded
2258 when changed. This makes it possible to run the "ocsp" responder
2259 as a long-running service, making the OpenSSL CA somewhat more
2260 feature-complete. In this mode, most diagnostic messages logged
2261 after entering the event loop are logged via syslog(3) rather than
2262 written to stderr.
2263
2264 *Viktor Dukhovni*
2265
2266 * Added support for X448 and Ed448. Heavily based on original work by
2267 Mike Hamburg.
2268
2269 *Matt Caswell*
2270
2271 * Extend OSSL_STORE with capabilities to search and to narrow the set of
2272 objects loaded. This adds the functions OSSL_STORE_expect() and
2273 OSSL_STORE_find() as well as needed tools to construct searches and
2274 get the search data out of them.
2275
2276 *Richard Levitte*
2277
2278 * Support for TLSv1.3 added. Note that users upgrading from an earlier
2279 version of OpenSSL should review their configuration settings to ensure
2280 that they are still appropriate for TLSv1.3. For further information see:
257e9d03 2281 <https://wiki.openssl.org/index.php/TLS1.3>
5f8e6c50
DMSP
2282
2283 *Matt Caswell*
2284
2285 * Grand redesign of the OpenSSL random generator
2286
2287 The default RAND method now utilizes an AES-CTR DRBG according to
2288 NIST standard SP 800-90Ar1. The new random generator is essentially
2289 a port of the default random generator from the OpenSSL FIPS 2.0
2290 object module. It is a hybrid deterministic random bit generator
2291 using an AES-CTR bit stream and which seeds and reseeds itself
2292 automatically using trusted system entropy sources.
2293
2294 Some of its new features are:
2295 - Support for multiple DRBG instances with seed chaining.
2296 - The default RAND method makes use of a DRBG.
2297 - There is a public and private DRBG instance.
2298 - The DRBG instances are fork-safe.
2299 - Keep all global DRBG instances on the secure heap if it is enabled.
2300 - The public and private DRBG instance are per thread for lock free
2301 operation
2302
2303 *Paul Dale, Benjamin Kaduk, Kurt Roeckx, Rich Salz, Matthias St. Pierre*
2304
2305 * Changed Configure so it only says what it does and doesn't dump
2306 so much data. Instead, ./configdata.pm should be used as a script
2307 to display all sorts of configuration data.
2308
2309 *Richard Levitte*
2310
2311 * Added processing of "make variables" to Configure.
2312
2313 *Richard Levitte*
2314
2315 * Added SHA512/224 and SHA512/256 algorithm support.
2316
2317 *Paul Dale*
2318
2319 * The last traces of Netware support, first removed in 1.1.0, have
2320 now been removed.
2321
2322 *Rich Salz*
2323
2324 * Get rid of Makefile.shared, and in the process, make the processing
2325 of certain files (rc.obj, or the .def/.map/.opt files produced from
2326 the ordinal files) more visible and hopefully easier to trace and
2327 debug (or make silent).
2328
2329 *Richard Levitte*
2330
2331 * Make it possible to have environment variable assignments as
2332 arguments to config / Configure.
2333
2334 *Richard Levitte*
2335
2336 * Add multi-prime RSA (RFC 8017) support.
2337
2338 *Paul Yang*
2339
2340 * Add SM3 implemented according to GB/T 32905-2016
1dc1ea18
DDO
2341 *Jack Lloyd <jack.lloyd@ribose.com>,*
2342 *Ronald Tse <ronald.tse@ribose.com>,*
2343 *Erick Borsboom <erick.borsboom@ribose.com>*
5f8e6c50
DMSP
2344
2345 * Add 'Maximum Fragment Length' TLS extension negotiation and support
2346 as documented in RFC6066.
2347 Based on a patch from Tomasz Moń
2348
2349 *Filipe Raimundo da Silva*
2350
2351 * Add SM4 implemented according to GB/T 32907-2016.
1dc1ea18
DDO
2352 *Jack Lloyd <jack.lloyd@ribose.com>,*
2353 *Ronald Tse <ronald.tse@ribose.com>,*
2354 *Erick Borsboom <erick.borsboom@ribose.com>*
5f8e6c50
DMSP
2355
2356 * Reimplement -newreq-nodes and ERR_error_string_n; the
2357 original author does not agree with the license change.
2358
2359 *Rich Salz*
2360
2361 * Add ARIA AEAD TLS support.
2362
2363 *Jon Spillett*
2364
2365 * Some macro definitions to support VS6 have been removed. Visual
2366 Studio 6 has not worked since 1.1.0
2367
2368 *Rich Salz*
2369
2370 * Add ERR_clear_last_mark(), to allow callers to clear the last mark
2371 without clearing the errors.
2372
2373 *Richard Levitte*
2374
2375 * Add "atfork" functions. If building on a system that without
2376 pthreads, see doc/man3/OPENSSL_fork_prepare.pod for application
2377 requirements. The RAND facility now uses/requires this.
2378
2379 *Rich Salz*
2380
2381 * Add SHA3.
2382
2383 *Andy Polyakov*
2384
2385 * The UI API becomes a permanent and integral part of libcrypto, i.e.
2386 not possible to disable entirely. However, it's still possible to
2387 disable the console reading UI method, UI_OpenSSL() (use UI_null()
2388 as a fallback).
2389
2390 To disable, configure with 'no-ui-console'. 'no-ui' is still
2391 possible to use as an alias. Check at compile time with the
2392 macro OPENSSL_NO_UI_CONSOLE. The macro OPENSSL_NO_UI is still
2393 possible to check and is an alias for OPENSSL_NO_UI_CONSOLE.
2394
2395 *Richard Levitte*
2396
2397 * Add a STORE module, which implements a uniform and URI based reader of
2398 stores that can contain keys, certificates, CRLs and numerous other
2399 objects. The main API is loosely based on a few stdio functions,
2400 and includes OSSL_STORE_open, OSSL_STORE_load, OSSL_STORE_eof,
2401 OSSL_STORE_error and OSSL_STORE_close.
2402 The implementation uses backends called "loaders" to implement arbitrary
2403 URI schemes. There is one built in "loader" for the 'file' scheme.
2404
2405 *Richard Levitte*
2406
2407 * Add devcrypto engine. This has been implemented against cryptodev-linux,
2408 then adjusted to work on FreeBSD 8.4 as well.
2409 Enable by configuring with 'enable-devcryptoeng'. This is done by default
2410 on BSD implementations, as cryptodev.h is assumed to exist on all of them.
2411
2412 *Richard Levitte*
2413
2414 * Module names can prefixed with OSSL_ or OPENSSL_. This affects
2415 util/mkerr.pl, which is adapted to allow those prefixes, leading to
2416 error code calls like this:
2417
2418 OSSL_FOOerr(OSSL_FOO_F_SOMETHING, OSSL_FOO_R_WHATEVER);
2419
2420 With this change, we claim the namespaces OSSL and OPENSSL in a manner
2421 that can be encoded in C. For the foreseeable future, this will only
2422 affect new modules.
2423
2424 *Richard Levitte and Tim Hudson*
2425
2426 * Removed BSD cryptodev engine.
2427
2428 *Rich Salz*
2429
2430 * Add a build target 'build_all_generated', to build all generated files
2431 and only that. This can be used to prepare everything that requires
2432 things like perl for a system that lacks perl and then move everything
2433 to that system and do the rest of the build there.
2434
2435 *Richard Levitte*
2436
2437 * In the UI interface, make it possible to duplicate the user data. This
2438 can be used by engines that need to retain the data for a longer time
2439 than just the call where this user data is passed.
2440
2441 *Richard Levitte*
2442
2443 * Ignore the '-named_curve auto' value for compatibility of applications
2444 with OpenSSL 1.0.2.
2445
66194839 2446 *Tomáš Mráz <tmraz@fedoraproject.org>*
5f8e6c50
DMSP
2447
2448 * Fragmented SSL/TLS alerts are no longer accepted. An alert message is 2
2449 bytes long. In theory it is permissible in SSLv3 - TLSv1.2 to fragment such
2450 alerts across multiple records (some of which could be empty). In practice
2451 it make no sense to send an empty alert record, or to fragment one. TLSv1.3
44652c16 2452 prohibits this altogether and other libraries (BoringSSL, NSS) do not
5f8e6c50 2453 support this at all. Supporting it adds significant complexity to the
44652c16 2454 record layer, and its removal is unlikely to cause interoperability
5f8e6c50
DMSP
2455 issues.
2456
2457 *Matt Caswell*
2458
2459 * Add the ASN.1 types INT32, UINT32, INT64, UINT64 and variants prefixed
2460 with Z. These are meant to replace LONG and ZLONG and to be size safe.
2461 The use of LONG and ZLONG is discouraged and scheduled for deprecation
2462 in OpenSSL 1.2.0.
2463
2464 *Richard Levitte*
2465
2466 * Add the 'z' and 'j' modifiers to BIO_printf() et al formatting string,
2467 'z' is to be used for [s]size_t, and 'j' - with [u]int64_t.
2468
2469 *Richard Levitte, Andy Polyakov*
2470
2471 * Add EC_KEY_get0_engine(), which does for EC_KEY what RSA_get0_engine()
2472 does for RSA, etc.
2473
2474 *Richard Levitte*
2475
2476 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
2477 platform rather than 'mingw'.
2478
2479 *Richard Levitte*
2480
2481 * The functions X509_STORE_add_cert and X509_STORE_add_crl return
2482 success if they are asked to add an object which already exists
2483 in the store. This change cascades to other functions which load
2484 certificates and CRLs.
2485
2486 *Paul Dale*
2487
2488 * x86_64 assembly pack: annotate code with DWARF CFI directives to
2489 facilitate stack unwinding even from assembly subroutines.
2490
2491 *Andy Polyakov*
2492
2493 * Remove VAX C specific definitions of OPENSSL_EXPORT, OPENSSL_EXTERN.
2494 Also remove OPENSSL_GLOBAL entirely, as it became a no-op.
2495
2496 *Richard Levitte*
2497
2498 * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c.
2499 VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1,
2500 which is the minimum version we support.
2501
2502 *Richard Levitte*
2503
2504 * Certificate time validation (X509_cmp_time) enforces stricter
2505 compliance with RFC 5280. Fractional seconds and timezone offsets
2506 are no longer allowed.
2507
2508 *Emilia Käsper*
2509
2510 * Add support for ARIA
2511
2512 *Paul Dale*
2513
2514 * s_client will now send the Server Name Indication (SNI) extension by
2515 default unless the new "-noservername" option is used. The server name is
2516 based on the host provided to the "-connect" option unless overridden by
2517 using "-servername".
2518
2519 *Matt Caswell*
2520
2521 * Add support for SipHash
2522
2523 *Todd Short*
2524
2525 * OpenSSL now fails if it receives an unrecognised record type in TLS1.0
2526 or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to
2527 prevent issues where no progress is being made and the peer continually
2528 sends unrecognised record types, using up resources processing them.
2529
2530 *Matt Caswell*
2531
2532 * 'openssl passwd' can now produce SHA256 and SHA512 based output,
2533 using the algorithm defined in
257e9d03 2534 <https://www.akkadia.org/drepper/SHA-crypt.txt>
5f8e6c50
DMSP
2535
2536 *Richard Levitte*
2537
2538 * Heartbeat support has been removed; the ABI is changed for now.
2539
2540 *Richard Levitte, Rich Salz*
2541
2542 * Support for SSL_OP_NO_ENCRYPT_THEN_MAC in SSL_CONF_cmd.
2543
2544 *Emilia Käsper*
2545
2546 * The RSA "null" method, which was partially supported to avoid patent
2547 issues, has been replaced to always returns NULL.
2548
2549 *Rich Salz*
2550
44652c16
DMSP
2551OpenSSL 1.1.0
2552-------------
5f8e6c50 2553
257e9d03 2554### Changes between 1.1.0k and 1.1.0l [10 Sep 2019]
5f8e6c50 2555
44652c16 2556 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 2557 used even when parsing explicit parameters, when loading a encoded key
44652c16
DMSP
2558 or calling `EC_GROUP_new_from_ecpkparameters()`/
2559 `EC_GROUP_new_from_ecparameters()`.
2560 This prevents bypass of security hardening and performance gains,
2561 especially for curves with specialized EC_METHODs.
2562 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 2563 encoded, the output is still encoded with explicit parameters, even if
44652c16 2564 internally a "named" EC_GROUP is used for computation.
5f8e6c50 2565
44652c16 2566 *Nicola Tuveri*
5f8e6c50 2567
44652c16
DMSP
2568 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
2569 this change, EC_GROUP_set_generator would accept order and/or cofactor as
2570 NULL. After this change, only the cofactor parameter can be NULL. It also
2571 does some minimal sanity checks on the passed order.
d8dc8538 2572 ([CVE-2019-1547])
5f8e6c50 2573
44652c16 2574 *Billy Bob Brumley*
5f8e6c50 2575
44652c16
DMSP
2576 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
2577 An attack is simple, if the first CMS_recipientInfo is valid but the
2578 second CMS_recipientInfo is chosen ciphertext. If the second
2579 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
2580 encryption key will be replaced by garbage, and the message cannot be
2581 decoded, but if the RSA decryption fails, the correct encryption key is
2582 used and the recipient will not notice the attack.
2583 As a work around for this potential attack the length of the decrypted
2584 key must be equal to the cipher default key length, in case the
2585 certifiate is not given and all recipientInfo are tried out.
2586 The old behaviour can be re-enabled in the CMS code by setting the
2587 CMS_DEBUG_DECRYPT flag.
d8dc8538 2588 ([CVE-2019-1563])
44652c16
DMSP
2589
2590 *Bernd Edlinger*
2591
2592 * Use Windows installation paths in the mingw builds
2593
2594 Mingw isn't a POSIX environment per se, which means that Windows
2595 paths should be used for installation.
d8dc8538 2596 ([CVE-2019-1552])
44652c16
DMSP
2597
2598 *Richard Levitte*
2599
257e9d03 2600### Changes between 1.1.0j and 1.1.0k [28 May 2019]
44652c16
DMSP
2601
2602 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
ec2bfb7d
DDO
2603 This changes the size when using the `genpkey` command when no size is given.
2604 It fixes an omission in earlier changes that changed all RSA, DSA and DH
2605 generation commands to use 2048 bits by default.
44652c16
DMSP
2606
2607 *Kurt Roeckx*
2608
2609 * Prevent over long nonces in ChaCha20-Poly1305.
2610
2611 ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input
2612 for every encryption operation. RFC 7539 specifies that the nonce value
2613 (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length
2614 and front pads the nonce with 0 bytes if it is less than 12
2615 bytes. However it also incorrectly allows a nonce to be set of up to 16
2616 bytes. In this case only the last 12 bytes are significant and any
2617 additional leading bytes are ignored.
2618
2619 It is a requirement of using this cipher that nonce values are
2620 unique. Messages encrypted using a reused nonce value are susceptible to
2621 serious confidentiality and integrity attacks. If an application changes
2622 the default nonce length to be longer than 12 bytes and then makes a
2623 change to the leading bytes of the nonce expecting the new value to be a
2624 new unique nonce then such an application could inadvertently encrypt
2625 messages with a reused nonce.
2626
2627 Additionally the ignored bytes in a long nonce are not covered by the
2628 integrity guarantee of this cipher. Any application that relies on the
2629 integrity of these ignored leading bytes of a long nonce may be further
2630 affected. Any OpenSSL internal use of this cipher, including in SSL/TLS,
2631 is safe because no such use sets such a long nonce value. However user
2632 applications that use this cipher directly and set a non-default nonce
2633 length to be longer than 12 bytes may be vulnerable.
2634
2635 This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk
2636 Greef of Ronomon.
d8dc8538 2637 ([CVE-2019-1543])
44652c16
DMSP
2638
2639 *Matt Caswell*
2640
2641 * Added SCA hardening for modular field inversion in EC_GROUP through
2642 a new dedicated field_inv() pointer in EC_METHOD.
2643 This also addresses a leakage affecting conversions from projective
2644 to affine coordinates.
2645
2646 *Billy Bob Brumley, Nicola Tuveri*
2647
2648 * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a
2649 re-used X509_PUBKEY object if the second PUBKEY is malformed.
2650
2651 *Bernd Edlinger*
2652
2653 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
2654
2655 *Richard Levitte*
2656
2657 * Remove the 'dist' target and add a tarball building script. The
2658 'dist' target has fallen out of use, and it shouldn't be
2659 necessary to configure just to create a source distribution.
2660
2661 *Richard Levitte*
2662
257e9d03 2663### Changes between 1.1.0i and 1.1.0j [20 Nov 2018]
44652c16
DMSP
2664
2665 * Timing vulnerability in DSA signature generation
2666
2667 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
2668 timing side channel attack. An attacker could use variations in the signing
2669 algorithm to recover the private key.
2670
2671 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
d8dc8538 2672 ([CVE-2018-0734])
44652c16
DMSP
2673
2674 *Paul Dale*
2675
2676 * Timing vulnerability in ECDSA signature generation
2677
2678 The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a
2679 timing side channel attack. An attacker could use variations in the signing
2680 algorithm to recover the private key.
2681
2682 This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser.
d8dc8538 2683 ([CVE-2018-0735])
44652c16
DMSP
2684
2685 *Paul Dale*
2686
2687 * Add coordinate blinding for EC_POINT and implement projective
2688 coordinate blinding for generic prime curves as a countermeasure to
2689 chosen point SCA attacks.
2690
2691 *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley*
2692
257e9d03 2693### Changes between 1.1.0h and 1.1.0i [14 Aug 2018]
44652c16
DMSP
2694
2695 * Client DoS due to large DH parameter
2696
2697 During key agreement in a TLS handshake using a DH(E) based ciphersuite a
2698 malicious server can send a very large prime value to the client. This will
2699 cause the client to spend an unreasonably long period of time generating a
2700 key for this prime resulting in a hang until the client has finished. This
2701 could be exploited in a Denial Of Service attack.
2702
2703 This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken
d8dc8538 2704 ([CVE-2018-0732])
44652c16
DMSP
2705
2706 *Guido Vranken*
2707
2708 * Cache timing vulnerability in RSA Key Generation
2709
2710 The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to
2711 a cache timing side channel attack. An attacker with sufficient access to
2712 mount cache timing attacks during the RSA key generation process could
2713 recover the private key.
5f8e6c50
DMSP
2714
2715 This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera
2716 Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia.
d8dc8538 2717 ([CVE-2018-0737])
5f8e6c50
DMSP
2718
2719 *Billy Brumley*
2720
2721 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
2722 parameter is no longer accepted, as it leads to a corrupt table. NULL
2723 pem_str is reserved for alias entries only.
2724
2725 *Richard Levitte*
2726
2727 * Revert blinding in ECDSA sign and instead make problematic addition
2728 length-invariant. Switch even to fixed-length Montgomery multiplication.
2729
2730 *Andy Polyakov*
2731
2732 * Change generating and checking of primes so that the error rate of not
2733 being prime depends on the intended use based on the size of the input.
2734 For larger primes this will result in more rounds of Miller-Rabin.
2735 The maximal error rate for primes with more than 1080 bits is lowered
2736 to 2^-128.
2737
2738 *Kurt Roeckx, Annie Yousar*
2739
2740 * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
2741
2742 *Kurt Roeckx*
2743
2744 * Add blinding to ECDSA and DSA signatures to protect against side channel
2745 attacks discovered by Keegan Ryan (NCC Group).
2746
2747 *Matt Caswell*
2748
2749 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
2750 now allow empty (zero character) pass phrases.
2751
2752 *Richard Levitte*
2753
2754 * Certificate time validation (X509_cmp_time) enforces stricter
2755 compliance with RFC 5280. Fractional seconds and timezone offsets
2756 are no longer allowed.
2757
2758 *Emilia Käsper*
2759
2760 * Fixed a text canonicalisation bug in CMS
2761
2762 Where a CMS detached signature is used with text content the text goes
2763 through a canonicalisation process first prior to signing or verifying a
2764 signature. This process strips trailing space at the end of lines, converts
2765 line terminators to CRLF and removes additional trailing line terminators
2766 at the end of a file. A bug in the canonicalisation process meant that
2767 some characters, such as form-feed, were incorrectly treated as whitespace
2768 and removed. This is contrary to the specification (RFC5485). This fix
2769 could mean that detached text data signed with an earlier version of
2770 OpenSSL 1.1.0 may fail to verify using the fixed version, or text data
2771 signed with a fixed OpenSSL may fail to verify with an earlier version of
2772 OpenSSL 1.1.0. A workaround is to only verify the canonicalised text data
2773 and use the "-binary" flag (for the "cms" command line application) or set
2774 the SMIME_BINARY/PKCS7_BINARY/CMS_BINARY flags (if using CMS_verify()).
2775
2776 *Matt Caswell*
2777
257e9d03 2778### Changes between 1.1.0g and 1.1.0h [27 Mar 2018]
5f8e6c50
DMSP
2779
2780 * Constructed ASN.1 types with a recursive definition could exceed the stack
2781
2782 Constructed ASN.1 types with a recursive definition (such as can be found
2783 in PKCS7) could eventually exceed the stack given malicious input with
2784 excessive recursion. This could result in a Denial Of Service attack. There
2785 are no such structures used within SSL/TLS that come from untrusted sources
2786 so this is considered safe.
2787
2788 This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz
2789 project.
d8dc8538 2790 ([CVE-2018-0739])
5f8e6c50
DMSP
2791
2792 *Matt Caswell*
2793
2794 * Incorrect CRYPTO_memcmp on HP-UX PA-RISC
2795
2796 Because of an implementation bug the PA-RISC CRYPTO_memcmp function is
2797 effectively reduced to only comparing the least significant bit of each
2798 byte. This allows an attacker to forge messages that would be considered as
2799 authenticated in an amount of tries lower than that guaranteed by the
2800 security claims of the scheme. The module can only be compiled by the
2801 HP-UX assembler, so that only HP-UX PA-RISC targets are affected.
2802
2803 This issue was reported to OpenSSL on 2nd March 2018 by Peter Waltenberg
2804 (IBM).
d8dc8538 2805 ([CVE-2018-0733])
5f8e6c50
DMSP
2806
2807 *Andy Polyakov*
2808
2809 * Add a build target 'build_all_generated', to build all generated files
2810 and only that. This can be used to prepare everything that requires
2811 things like perl for a system that lacks perl and then move everything
2812 to that system and do the rest of the build there.
2813
2814 *Richard Levitte*
2815
2816 * Backport SSL_OP_NO_RENGOTIATION
2817
2818 OpenSSL 1.0.2 and below had the ability to disable renegotiation using the
2819 (undocumented) SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS flag. Due to the opacity
2820 changes this is no longer possible in 1.1.0. Therefore the new
2821 SSL_OP_NO_RENEGOTIATION option from 1.1.1-dev has been backported to
2822 1.1.0 to provide equivalent functionality.
2823
2824 Note that if an application built against 1.1.0h headers (or above) is run
2825 using an older version of 1.1.0 (prior to 1.1.0h) then the option will be
2826 accepted but nothing will happen, i.e. renegotiation will not be prevented.
2827
2828 *Matt Caswell*
2829
2830 * Removed the OS390-Unix config target. It relied on a script that doesn't
2831 exist.
2832
2833 *Rich Salz*
2834
2835 * rsaz_1024_mul_avx2 overflow bug on x86_64
2836
2837 There is an overflow bug in the AVX2 Montgomery multiplication procedure
2838 used in exponentiation with 1024-bit moduli. No EC algorithms are affected.
2839 Analysis suggests that attacks against RSA and DSA as a result of this
2840 defect would be very difficult to perform and are not believed likely.
2841 Attacks against DH1024 are considered just feasible, because most of the
2842 work necessary to deduce information about a private key may be performed
2843 offline. The amount of resources required for such an attack would be
2844 significant. However, for an attack on TLS to be meaningful, the server
2845 would have to share the DH1024 private key among multiple clients, which is
2846 no longer an option since CVE-2016-0701.
2847
2848 This only affects processors that support the AVX2 but not ADX extensions
2849 like Intel Haswell (4th generation).
2850
2851 This issue was reported to OpenSSL by David Benjamin (Google). The issue
2852 was originally found via the OSS-Fuzz project.
d8dc8538 2853 ([CVE-2017-3738])
5f8e6c50
DMSP
2854
2855 *Andy Polyakov*
2856
257e9d03 2857### Changes between 1.1.0f and 1.1.0g [2 Nov 2017]
5f8e6c50
DMSP
2858
2859 * bn_sqrx8x_internal carry bug on x86_64
2860
2861 There is a carry propagating bug in the x86_64 Montgomery squaring
2862 procedure. No EC algorithms are affected. Analysis suggests that attacks
2863 against RSA and DSA as a result of this defect would be very difficult to
2864 perform and are not believed likely. Attacks against DH are considered just
2865 feasible (although very difficult) because most of the work necessary to
2866 deduce information about a private key may be performed offline. The amount
2867 of resources required for such an attack would be very significant and
2868 likely only accessible to a limited number of attackers. An attacker would
2869 additionally need online access to an unpatched system using the target
2870 private key in a scenario with persistent DH parameters and a private
2871 key that is shared between multiple clients.
2872
2873 This only affects processors that support the BMI1, BMI2 and ADX extensions
2874 like Intel Broadwell (5th generation) and later or AMD Ryzen.
2875
2876 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 2877 ([CVE-2017-3736])
5f8e6c50
DMSP
2878
2879 *Andy Polyakov*
2880
2881 * Malformed X.509 IPAddressFamily could cause OOB read
2882
2883 If an X.509 certificate has a malformed IPAddressFamily extension,
2884 OpenSSL could do a one-byte buffer overread. The most likely result
2885 would be an erroneous display of the certificate in text format.
2886
2887 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 2888 ([CVE-2017-3735])
5f8e6c50
DMSP
2889
2890 *Rich Salz*
2891
257e9d03 2892### Changes between 1.1.0e and 1.1.0f [25 May 2017]
5f8e6c50
DMSP
2893
2894 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
2895 platform rather than 'mingw'.
2896
2897 *Richard Levitte*
2898
2899 * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c.
2900 VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1,
2901 which is the minimum version we support.
2902
2903 *Richard Levitte*
2904
257e9d03 2905### Changes between 1.1.0d and 1.1.0e [16 Feb 2017]
5f8e6c50
DMSP
2906
2907 * Encrypt-Then-Mac renegotiation crash
2908
2909 During a renegotiation handshake if the Encrypt-Then-Mac extension is
2910 negotiated where it was not in the original handshake (or vice-versa) then
2911 this can cause OpenSSL to crash (dependant on ciphersuite). Both clients
2912 and servers are affected.
2913
2914 This issue was reported to OpenSSL by Joe Orton (Red Hat).
d8dc8538 2915 ([CVE-2017-3733])
5f8e6c50
DMSP
2916
2917 *Matt Caswell*
2918
257e9d03 2919### Changes between 1.1.0c and 1.1.0d [26 Jan 2017]
5f8e6c50
DMSP
2920
2921 * Truncated packet could crash via OOB read
2922
2923 If one side of an SSL/TLS path is running on a 32-bit host and a specific
2924 cipher is being used, then a truncated packet can cause that host to
2925 perform an out-of-bounds read, usually resulting in a crash.
2926
2927 This issue was reported to OpenSSL by Robert Święcki of Google.
d8dc8538 2928 ([CVE-2017-3731])
5f8e6c50
DMSP
2929
2930 *Andy Polyakov*
2931
2932 * Bad (EC)DHE parameters cause a client crash
2933
2934 If a malicious server supplies bad parameters for a DHE or ECDHE key
2935 exchange then this can result in the client attempting to dereference a
2936 NULL pointer leading to a client crash. This could be exploited in a Denial
2937 of Service attack.
2938
2939 This issue was reported to OpenSSL by Guido Vranken.
d8dc8538 2940 ([CVE-2017-3730])
5f8e6c50
DMSP
2941
2942 *Matt Caswell*
2943
2944 * BN_mod_exp may produce incorrect results on x86_64
2945
2946 There is a carry propagating bug in the x86_64 Montgomery squaring
2947 procedure. No EC algorithms are affected. Analysis suggests that attacks
2948 against RSA and DSA as a result of this defect would be very difficult to
2949 perform and are not believed likely. Attacks against DH are considered just
2950 feasible (although very difficult) because most of the work necessary to
2951 deduce information about a private key may be performed offline. The amount
2952 of resources required for such an attack would be very significant and
2953 likely only accessible to a limited number of attackers. An attacker would
2954 additionally need online access to an unpatched system using the target
2955 private key in a scenario with persistent DH parameters and a private
2956 key that is shared between multiple clients. For example this can occur by
2957 default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very
2958 similar to CVE-2015-3193 but must be treated as a separate problem.
2959
2960 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 2961 ([CVE-2017-3732])
5f8e6c50
DMSP
2962
2963 *Andy Polyakov*
2964
257e9d03 2965### Changes between 1.1.0b and 1.1.0c [10 Nov 2016]
5f8e6c50
DMSP
2966
2967 * ChaCha20/Poly1305 heap-buffer-overflow
2968
257e9d03 2969 TLS connections using `*-CHACHA20-POLY1305` ciphersuites are susceptible to
5f8e6c50
DMSP
2970 a DoS attack by corrupting larger payloads. This can result in an OpenSSL
2971 crash. This issue is not considered to be exploitable beyond a DoS.
2972
2973 This issue was reported to OpenSSL by Robert Święcki (Google Security Team)
d8dc8538 2974 ([CVE-2016-7054])
5f8e6c50
DMSP
2975
2976 *Richard Levitte*
2977
2978 * CMS Null dereference
2979
2980 Applications parsing invalid CMS structures can crash with a NULL pointer
2981 dereference. This is caused by a bug in the handling of the ASN.1 CHOICE
2982 type in OpenSSL 1.1.0 which can result in a NULL value being passed to the
2983 structure callback if an attempt is made to free certain invalid encodings.
2984 Only CHOICE structures using a callback which do not handle NULL value are
2985 affected.
2986
2987 This issue was reported to OpenSSL by Tyler Nighswander of ForAllSecure.
d8dc8538 2988 ([CVE-2016-7053])
5f8e6c50
DMSP
2989
2990 *Stephen Henson*
2991
2992 * Montgomery multiplication may produce incorrect results
2993
2994 There is a carry propagating bug in the Broadwell-specific Montgomery
2995 multiplication procedure that handles input lengths divisible by, but
2996 longer than 256 bits. Analysis suggests that attacks against RSA, DSA
2997 and DH private keys are impossible. This is because the subroutine in
2998 question is not used in operations with the private key itself and an input
2999 of the attacker's direct choice. Otherwise the bug can manifest itself as
3000 transient authentication and key negotiation failures or reproducible
3001 erroneous outcome of public-key operations with specially crafted input.
3002 Among EC algorithms only Brainpool P-512 curves are affected and one
3003 presumably can attack ECDH key negotiation. Impact was not analyzed in
3004 detail, because pre-requisites for attack are considered unlikely. Namely
3005 multiple clients have to choose the curve in question and the server has to
3006 share the private key among them, neither of which is default behaviour.
3007 Even then only clients that chose the curve will be affected.
3008
3009 This issue was publicly reported as transient failures and was not
3010 initially recognized as a security issue. Thanks to Richard Morgan for
3011 providing reproducible case.
d8dc8538 3012 ([CVE-2016-7055])
5f8e6c50
DMSP
3013
3014 *Andy Polyakov*
3015
3016 * Removed automatic addition of RPATH in shared libraries and executables,
3017 as this was a remainder from OpenSSL 1.0.x and isn't needed any more.
3018
3019 *Richard Levitte*
3020
257e9d03 3021### Changes between 1.1.0a and 1.1.0b [26 Sep 2016]
5f8e6c50
DMSP
3022
3023 * Fix Use After Free for large message sizes
3024
3025 The patch applied to address CVE-2016-6307 resulted in an issue where if a
3026 message larger than approx 16k is received then the underlying buffer to
3027 store the incoming message is reallocated and moved. Unfortunately a
3028 dangling pointer to the old location is left which results in an attempt to
3029 write to the previously freed location. This is likely to result in a
3030 crash, however it could potentially lead to execution of arbitrary code.
3031
3032 This issue only affects OpenSSL 1.1.0a.
3033
3034 This issue was reported to OpenSSL by Robert Święcki.
d8dc8538 3035 ([CVE-2016-6309])
5f8e6c50
DMSP
3036
3037 *Matt Caswell*
3038
257e9d03 3039### Changes between 1.1.0 and 1.1.0a [22 Sep 2016]
5f8e6c50
DMSP
3040
3041 * OCSP Status Request extension unbounded memory growth
3042
3043 A malicious client can send an excessively large OCSP Status Request
3044 extension. If that client continually requests renegotiation, sending a
3045 large OCSP Status Request extension each time, then there will be unbounded
3046 memory growth on the server. This will eventually lead to a Denial Of
3047 Service attack through memory exhaustion. Servers with a default
3048 configuration are vulnerable even if they do not support OCSP. Builds using
3049 the "no-ocsp" build time option are not affected.
3050
3051 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 3052 ([CVE-2016-6304])
5f8e6c50
DMSP
3053
3054 *Matt Caswell*
3055
3056 * SSL_peek() hang on empty record
3057
3058 OpenSSL 1.1.0 SSL/TLS will hang during a call to SSL_peek() if the peer
3059 sends an empty record. This could be exploited by a malicious peer in a
3060 Denial Of Service attack.
3061
3062 This issue was reported to OpenSSL by Alex Gaynor.
d8dc8538 3063 ([CVE-2016-6305])
5f8e6c50
DMSP
3064
3065 *Matt Caswell*
3066
3067 * Excessive allocation of memory in tls_get_message_header() and
3068 dtls1_preprocess_fragment()
3069
3070 A (D)TLS message includes 3 bytes for its length in the header for the
3071 message. This would allow for messages up to 16Mb in length. Messages of
3072 this length are excessive and OpenSSL includes a check to ensure that a
3073 peer is sending reasonably sized messages in order to avoid too much memory
3074 being consumed to service a connection. A flaw in the logic of version
3075 1.1.0 means that memory for the message is allocated too early, prior to
3076 the excessive message length check. Due to way memory is allocated in
3077 OpenSSL this could mean an attacker could force up to 21Mb to be allocated
3078 to service a connection. This could lead to a Denial of Service through
3079 memory exhaustion. However, the excessive message length check still takes
3080 place, and this would cause the connection to immediately fail. Assuming
3081 that the application calls SSL_free() on the failed connection in a timely
3082 manner then the 21Mb of allocated memory will then be immediately freed
3083 again. Therefore the excessive memory allocation will be transitory in
3084 nature. This then means that there is only a security impact if:
3085
3086 1) The application does not call SSL_free() in a timely manner in the event
3087 that the connection fails
3088 or
3089 2) The application is working in a constrained environment where there is
3090 very little free memory
3091 or
3092 3) The attacker initiates multiple connection attempts such that there are
3093 multiple connections in a state where memory has been allocated for the
3094 connection; SSL_free() has not yet been called; and there is insufficient
3095 memory to service the multiple requests.
3096
3097 Except in the instance of (1) above any Denial Of Service is likely to be
3098 transitory because as soon as the connection fails the memory is
3099 subsequently freed again in the SSL_free() call. However there is an
3100 increased risk during this period of application crashes due to the lack of
3101 memory - which would then mean a more serious Denial of Service.
3102
3103 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
3104 (CVE-2016-6307 and CVE-2016-6308)
3105
3106 *Matt Caswell*
3107
3108 * solaris-x86-cc, i.e. 32-bit configuration with vendor compiler,
3109 had to be removed. Primary reason is that vendor assembler can't
3110 assemble our modules with -KPIC flag. As result it, assembly
3111 support, was not even available as option. But its lack means
3112 lack of side-channel resistant code, which is incompatible with
3113 security by todays standards. Fortunately gcc is readily available
3114 prepackaged option, which we firmly point at...
3115
3116 *Andy Polyakov*
3117
257e9d03 3118### Changes between 1.0.2h and 1.1.0 [25 Aug 2016]
5f8e6c50
DMSP
3119
3120 * Windows command-line tool supports UTF-8 opt-in option for arguments
3121 and console input. Setting OPENSSL_WIN32_UTF8 environment variable
3122 (to any value) allows Windows user to access PKCS#12 file generated
3123 with Windows CryptoAPI and protected with non-ASCII password, as well
3124 as files generated under UTF-8 locale on Linux also protected with
3125 non-ASCII password.
3126
3127 *Andy Polyakov*
3128
d8dc8538 3129 * To mitigate the SWEET32 attack ([CVE-2016-2183]), 3DES cipher suites
5f8e6c50
DMSP
3130 have been disabled by default and removed from DEFAULT, just like RC4.
3131 See the RC4 item below to re-enable both.
3132
3133 *Rich Salz*
3134
3135 * The method for finding the storage location for the Windows RAND seed file
3136 has changed. First we check %RANDFILE%. If that is not set then we check
3137 the directories %HOME%, %USERPROFILE% and %SYSTEMROOT% in that order. If
3138 all else fails we fall back to C:\.
3139
3140 *Matt Caswell*
3141
3142 * The EVP_EncryptUpdate() function has had its return type changed from void
3143 to int. A return of 0 indicates and error while a return of 1 indicates
3144 success.
3145
3146 *Matt Caswell*
3147
3148 * The flags RSA_FLAG_NO_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME and
3149 DH_FLAG_NO_EXP_CONSTTIME which previously provided the ability to switch
3150 off the constant time implementation for RSA, DSA and DH have been made
3151 no-ops and deprecated.
3152
3153 *Matt Caswell*
3154
3155 * Windows RAND implementation was simplified to only get entropy by
3156 calling CryptGenRandom(). Various other RAND-related tickets
3157 were also closed.
3158
3159 *Joseph Wylie Yandle, Rich Salz*
3160
257e9d03
RS
3161 * The stack and lhash API's were renamed to start with `OPENSSL_SK_`
3162 and `OPENSSL_LH_`, respectively. The old names are available
5f8e6c50
DMSP
3163 with API compatibility. They new names are now completely documented.
3164
3165 *Rich Salz*
3166
3167 * Unify TYPE_up_ref(obj) methods signature.
3168 SSL_CTX_up_ref(), SSL_up_ref(), X509_up_ref(), EVP_PKEY_up_ref(),
3169 X509_CRL_up_ref(), X509_OBJECT_up_ref_count() methods are now returning an
3170 int (instead of void) like all others TYPE_up_ref() methods.
3171 So now these methods also check the return value of CRYPTO_atomic_add(),
3172 and the validity of object reference counter.
3173
3174 *fdasilvayy@gmail.com*
3175
3176 * With Windows Visual Studio builds, the .pdb files are installed
3177 alongside the installed libraries and executables. For a static
3178 library installation, ossl_static.pdb is the associate compiler
3179 generated .pdb file to be used when linking programs.
3180
3181 *Richard Levitte*
3182
3183 * Remove openssl.spec. Packaging files belong with the packagers.
3184
3185 *Richard Levitte*
3186
3187 * Automatic Darwin/OSX configuration has had a refresh, it will now
3188 recognise x86_64 architectures automatically. You can still decide
3189 to build for a different bitness with the environment variable
3190 KERNEL_BITS (can be 32 or 64), for example:
3191
3192 KERNEL_BITS=32 ./config
3193
3194 *Richard Levitte*
3195
3196 * Change default algorithms in pkcs8 utility to use PKCS#5 v2.0,
3197 256 bit AES and HMAC with SHA256.
3198
3199 *Steve Henson*
3200
3201 * Remove support for MIPS o32 ABI on IRIX (and IRIX only).
3202
3203 *Andy Polyakov*
3204
3205 * Triple-DES ciphers have been moved from HIGH to MEDIUM.
3206
3207 *Rich Salz*
3208
3209 * To enable users to have their own config files and build file templates,
3210 Configure looks in the directory indicated by the environment variable
3211 OPENSSL_LOCAL_CONFIG_DIR as well as the in-source Configurations/
3212 directory. On VMS, OPENSSL_LOCAL_CONFIG_DIR is expected to be a logical
3213 name and is used as is.
3214
3215 *Richard Levitte*
3216
3217 * The following datatypes were made opaque: X509_OBJECT, X509_STORE_CTX,
3218 X509_STORE, X509_LOOKUP, and X509_LOOKUP_METHOD. The unused type
3219 X509_CERT_FILE_CTX was removed.
3220
3221 *Rich Salz*
3222
3223 * "shared" builds are now the default. To create only static libraries use
3224 the "no-shared" Configure option.
3225
3226 *Matt Caswell*
3227
3228 * Remove the no-aes, no-hmac, no-rsa, no-sha and no-md5 Configure options.
3229 All of these option have not worked for some while and are fundamental
3230 algorithms.
3231
3232 *Matt Caswell*
3233
3234 * Make various cleanup routines no-ops and mark them as deprecated. Most
3235 global cleanup functions are no longer required because they are handled
3236 via auto-deinit (see OPENSSL_init_crypto and OPENSSL_init_ssl man pages).
3237 Explicitly de-initing can cause problems (e.g. where a library that uses
3238 OpenSSL de-inits, but an application is still using it). The affected
3239 functions are CONF_modules_free(), ENGINE_cleanup(), OBJ_cleanup(),
3240 EVP_cleanup(), BIO_sock_cleanup(), CRYPTO_cleanup_all_ex_data(),
3241 RAND_cleanup(), SSL_COMP_free_compression_methods(), ERR_free_strings() and
3242 COMP_zlib_cleanup().
3243
3244 *Matt Caswell*
3245
3246 * --strict-warnings no longer enables runtime debugging options
3247 such as REF_DEBUG. Instead, debug options are automatically
3248 enabled with '--debug' builds.
3249
3250 *Andy Polyakov, Emilia Käsper*
3251
3252 * Made DH and DH_METHOD opaque. The structures for managing DH objects
3253 have been moved out of the public header files. New functions for managing
3254 these have been added.
3255
3256 *Matt Caswell*
3257
3258 * Made RSA and RSA_METHOD opaque. The structures for managing RSA
3259 objects have been moved out of the public header files. New
3260 functions for managing these have been added.
3261
3262 *Richard Levitte*
3263
3264 * Made DSA and DSA_METHOD opaque. The structures for managing DSA objects
3265 have been moved out of the public header files. New functions for managing
3266 these have been added.
3267
3268 *Matt Caswell*
3269
3270 * Made BIO and BIO_METHOD opaque. The structures for managing BIOs have been
3271 moved out of the public header files. New functions for managing these
3272 have been added.
3273
3274 *Matt Caswell*
3275
3276 * Removed no-rijndael as a config option. Rijndael is an old name for AES.
3277
3278 *Matt Caswell*
3279
3280 * Removed the mk1mf build scripts.
3281
3282 *Richard Levitte*
3283
3284 * Headers are now wrapped, if necessary, with OPENSSL_NO_xxx, so
3285 it is always safe to #include a header now.
3286
3287 *Rich Salz*
3288
3289 * Removed the aged BC-32 config and all its supporting scripts
3290
3291 *Richard Levitte*
3292
3293 * Removed support for Ultrix, Netware, and OS/2.
3294
3295 *Rich Salz*
3296
3297 * Add support for HKDF.
3298
3299 *Alessandro Ghedini*
3300
3301 * Add support for blake2b and blake2s
3302
3303 *Bill Cox*
3304
3305 * Added support for "pipelining". Ciphers that have the
3306 EVP_CIPH_FLAG_PIPELINE flag set have a capability to process multiple
3307 encryptions/decryptions simultaneously. There are currently no built-in
3308 ciphers with this property but the expectation is that engines will be able
3309 to offer it to significantly improve throughput. Support has been extended
3310 into libssl so that multiple records for a single connection can be
3311 processed in one go (for >=TLS 1.1).
3312
3313 *Matt Caswell*
3314
3315 * Added the AFALG engine. This is an async capable engine which is able to
3316 offload work to the Linux kernel. In this initial version it only supports
3317 AES128-CBC. The kernel must be version 4.1.0 or greater.
3318
3319 *Catriona Lucey*
3320
3321 * OpenSSL now uses a new threading API. It is no longer necessary to
3322 set locking callbacks to use OpenSSL in a multi-threaded environment. There
3323 are two supported threading models: pthreads and windows threads. It is
3324 also possible to configure OpenSSL at compile time for "no-threads". The
3325 old threading API should no longer be used. The functions have been
3326 replaced with "no-op" compatibility macros.
3327
3328 *Alessandro Ghedini, Matt Caswell*
3329
3330 * Modify behavior of ALPN to invoke callback after SNI/servername
3331 callback, such that updates to the SSL_CTX affect ALPN.
3332
3333 *Todd Short*
3334
3335 * Add SSL_CIPHER queries for authentication and key-exchange.
3336
3337 *Todd Short*
3338
3339 * Changes to the DEFAULT cipherlist:
257e9d03
RS
3340 - Prefer (EC)DHE handshakes over plain RSA.
3341 - Prefer AEAD ciphers over legacy ciphers.
3342 - Prefer ECDSA over RSA when both certificates are available.
3343 - Prefer TLSv1.2 ciphers/PRF.
3344 - Remove DSS, SEED, IDEA, CAMELLIA, and AES-CCM from the
3345 default cipherlist.
5f8e6c50
DMSP
3346
3347 *Emilia Käsper*
3348
3349 * Change the ECC default curve list to be this, in order: x25519,
3350 secp256r1, secp521r1, secp384r1.
3351
3352 *Rich Salz*
3353
3354 * RC4 based libssl ciphersuites are now classed as "weak" ciphers and are
3355 disabled by default. They can be re-enabled using the
3356 enable-weak-ssl-ciphers option to Configure.
3357
3358 *Matt Caswell*
3359
3360 * If the server has ALPN configured, but supports no protocols that the
3361 client advertises, send a fatal "no_application_protocol" alert.
3362 This behaviour is SHALL in RFC 7301, though it isn't universally
3363 implemented by other servers.
3364
3365 *Emilia Käsper*
3366
3367 * Add X25519 support.
3368 Add ASN.1 and EVP_PKEY methods for X25519. This includes support
3369 for public and private key encoding using the format documented in
3370 draft-ietf-curdle-pkix-02. The corresponding EVP_PKEY method supports
3371 key generation and key derivation.
3372
3373 TLS support complies with draft-ietf-tls-rfc4492bis-08 and uses
3374 X25519(29).
3375
3376 *Steve Henson*
3377
3378 * Deprecate SRP_VBASE_get_by_user.
3379 SRP_VBASE_get_by_user had inconsistent memory management behaviour.
d8dc8538 3380 In order to fix an unavoidable memory leak ([CVE-2016-0798]),
5f8e6c50
DMSP
3381 SRP_VBASE_get_by_user was changed to ignore the "fake user" SRP
3382 seed, even if the seed is configured.
3383
3384 Users should use SRP_VBASE_get1_by_user instead. Note that in
3385 SRP_VBASE_get1_by_user, caller must free the returned value. Note
3386 also that even though configuring the SRP seed attempts to hide
3387 invalid usernames by continuing the handshake with fake
3388 credentials, this behaviour is not constant time and no strong
3389 guarantees are made that the handshake is indistinguishable from
3390 that of a valid user.
3391
3392 *Emilia Käsper*
3393
3394 * Configuration change; it's now possible to build dynamic engines
3395 without having to build shared libraries and vice versa. This
ec2bfb7d 3396 only applies to the engines in `engines/`, those in `crypto/engine/`
5f8e6c50
DMSP
3397 will always be built into libcrypto (i.e. "static").
3398
3399 Building dynamic engines is enabled by default; to disable, use
3400 the configuration option "disable-dynamic-engine".
3401
3402 The only requirements for building dynamic engines are the
3403 presence of the DSO module and building with position independent
3404 code, so they will also automatically be disabled if configuring
3405 with "disable-dso" or "disable-pic".
3406
3407 The macros OPENSSL_NO_STATIC_ENGINE and OPENSSL_NO_DYNAMIC_ENGINE
3408 are also taken away from openssl/opensslconf.h, as they are
3409 irrelevant.
3410
3411 *Richard Levitte*
3412
3413 * Configuration change; if there is a known flag to compile
3414 position independent code, it will always be applied on the
3415 libcrypto and libssl object files, and never on the application
3416 object files. This means other libraries that use routines from
3417 libcrypto / libssl can be made into shared libraries regardless
3418 of how OpenSSL was configured.
3419
3420 If this isn't desirable, the configuration options "disable-pic"
3421 or "no-pic" can be used to disable the use of PIC. This will
3422 also disable building shared libraries and dynamic engines.
3423
3424 *Richard Levitte*
3425
3426 * Removed JPAKE code. It was experimental and has no wide use.
3427
3428 *Rich Salz*
3429
3430 * The INSTALL_PREFIX Makefile variable has been renamed to
3431 DESTDIR. That makes for less confusion on what this variable
3432 is for. Also, the configuration option --install_prefix is
3433 removed.
3434
3435 *Richard Levitte*
3436
3437 * Heartbeat for TLS has been removed and is disabled by default
3438 for DTLS; configure with enable-heartbeats. Code that uses the
3439 old #define's might need to be updated.
3440
3441 *Emilia Käsper, Rich Salz*
3442
3443 * Rename REF_CHECK to REF_DEBUG.
3444
3445 *Rich Salz*
3446
3447 * New "unified" build system
3448
3449 The "unified" build system is aimed to be a common system for all
3450 platforms we support. With it comes new support for VMS.
3451
3452 This system builds supports building in a different directory tree
3453 than the source tree. It produces one Makefile (for unix family
3454 or lookalikes), or one descrip.mms (for VMS).
3455
3456 The source of information to make the Makefile / descrip.mms is
3457 small files called 'build.info', holding the necessary
3458 information for each directory with source to compile, and a
3459 template in Configurations, like unix-Makefile.tmpl or
3460 descrip.mms.tmpl.
3461
3462 With this change, the library names were also renamed on Windows
3463 and on VMS. They now have names that are closer to the standard
3464 on Unix, and include the major version number, and in certain
3465 cases, the architecture they are built for. See "Notes on shared
3466 libraries" in INSTALL.
3467
3468 We rely heavily on the perl module Text::Template.
3469
3470 *Richard Levitte*
3471
3472 * Added support for auto-initialisation and de-initialisation of the library.
3473 OpenSSL no longer requires explicit init or deinit routines to be called,
3474 except in certain circumstances. See the OPENSSL_init_crypto() and
3475 OPENSSL_init_ssl() man pages for further information.
3476
3477 *Matt Caswell*
3478
3479 * The arguments to the DTLSv1_listen function have changed. Specifically the
3480 "peer" argument is now expected to be a BIO_ADDR object.
3481
3482 * Rewrite of BIO networking library. The BIO library lacked consistent
3483 support of IPv6, and adding it required some more extensive
3484 modifications. This introduces the BIO_ADDR and BIO_ADDRINFO types,
3485 which hold all types of addresses and chains of address information.
3486 It also introduces a new API, with functions like BIO_socket,
3487 BIO_connect, BIO_listen, BIO_lookup and a rewrite of BIO_accept.
3488 The source/sink BIOs BIO_s_connect, BIO_s_accept and BIO_s_datagram
3489 have been adapted accordingly.
3490
3491 *Richard Levitte*
3492
3493 * RSA_padding_check_PKCS1_type_1 now accepts inputs with and without
3494 the leading 0-byte.
3495
3496 *Emilia Käsper*
3497
3498 * CRIME protection: disable compression by default, even if OpenSSL is
3499 compiled with zlib enabled. Applications can still enable compression
3500 by calling SSL_CTX_clear_options(ctx, SSL_OP_NO_COMPRESSION), or by
3501 using the SSL_CONF library to configure compression.
3502
3503 *Emilia Käsper*
3504
3505 * The signature of the session callback configured with
3506 SSL_CTX_sess_set_get_cb was changed. The read-only input buffer
257e9d03
RS
3507 was explicitly marked as `const unsigned char*` instead of
3508 `unsigned char*`.
5f8e6c50
DMSP
3509
3510 *Emilia Käsper*
3511
3512 * Always DPURIFY. Remove the use of uninitialized memory in the
3513 RNG, and other conditional uses of DPURIFY. This makes -DPURIFY a no-op.
3514
3515 *Emilia Käsper*
3516
3517 * Removed many obsolete configuration items, including
3518 DES_PTR, DES_RISC1, DES_RISC2, DES_INT
3519 MD2_CHAR, MD2_INT, MD2_LONG
3520 BF_PTR, BF_PTR2
3521 IDEA_SHORT, IDEA_LONG
3522 RC2_SHORT, RC2_LONG, RC4_LONG, RC4_CHUNK, RC4_INDEX
3523
3524 *Rich Salz, with advice from Andy Polyakov*
3525
3526 * Many BN internals have been moved to an internal header file.
3527
3528 *Rich Salz with help from Andy Polyakov*
3529
3530 * Configuration and writing out the results from it has changed.
3531 Files such as Makefile include/openssl/opensslconf.h and are now
3532 produced through general templates, such as Makefile.in and
3533 crypto/opensslconf.h.in and some help from the perl module
3534 Text::Template.
3535
3536 Also, the center of configuration information is no longer
3537 Makefile. Instead, Configure produces a perl module in
3538 configdata.pm which holds most of the config data (in the hash
3539 table %config), the target data that comes from the target
1dc1ea18 3540 configuration in one of the `Configurations/*.conf` files (in
5f8e6c50
DMSP
3541 %target).
3542
3543 *Richard Levitte*
3544
3545 * To clarify their intended purposes, the Configure options
3546 --prefix and --openssldir change their semantics, and become more
3547 straightforward and less interdependent.
3548
3549 --prefix shall be used exclusively to give the location INSTALLTOP
3550 where programs, scripts, libraries, include files and manuals are
3551 going to be installed. The default is now /usr/local.
3552
3553 --openssldir shall be used exclusively to give the default
3554 location OPENSSLDIR where certificates, private keys, CRLs are
3555 managed. This is also where the default openssl.cnf gets
3556 installed.
3557 If the directory given with this option is a relative path, the
3558 values of both the --prefix value and the --openssldir value will
3559 be combined to become OPENSSLDIR.
3560 The default for --openssldir is INSTALLTOP/ssl.
3561
3562 Anyone who uses --openssldir to specify where OpenSSL is to be
3563 installed MUST change to use --prefix instead.
3564
3565 *Richard Levitte*
3566
3567 * The GOST engine was out of date and therefore it has been removed. An up
3568 to date GOST engine is now being maintained in an external repository.
257e9d03 3569 See: <https://wiki.openssl.org/index.php/Binaries>. Libssl still retains
5f8e6c50
DMSP
3570 support for GOST ciphersuites (these are only activated if a GOST engine
3571 is present).
3572
3573 *Matt Caswell*
3574
3575 * EGD is no longer supported by default; use enable-egd when
3576 configuring.
3577
3578 *Ben Kaduk and Rich Salz*
3579
3580 * The distribution now has Makefile.in files, which are used to
3581 create Makefile's when Configure is run. *Configure must be run
3582 before trying to build now.*
3583
3584 *Rich Salz*
3585
3586 * The return value for SSL_CIPHER_description() for error conditions
3587 has changed.
3588
3589 *Rich Salz*
3590
3591 * Support for RFC6698/RFC7671 DANE TLSA peer authentication.
3592
3593 Obtaining and performing DNSSEC validation of TLSA records is
3594 the application's responsibility. The application provides
3595 the TLSA records of its choice to OpenSSL, and these are then
3596 used to authenticate the peer.
3597
3598 The TLSA records need not even come from DNS. They can, for
3599 example, be used to implement local end-entity certificate or
3600 trust-anchor "pinning", where the "pin" data takes the form
3601 of TLSA records, which can augment or replace verification
3602 based on the usual WebPKI public certification authorities.
3603
3604 *Viktor Dukhovni*
3605
3606 * Revert default OPENSSL_NO_DEPRECATED setting. Instead OpenSSL
3607 continues to support deprecated interfaces in default builds.
3608 However, applications are strongly advised to compile their
3609 source files with -DOPENSSL_API_COMPAT=0x10100000L, which hides
3610 the declarations of all interfaces deprecated in 0.9.8, 1.0.0
3611 or the 1.1.0 releases.
3612
3613 In environments in which all applications have been ported to
3614 not use any deprecated interfaces OpenSSL's Configure script
3615 should be used with the --api=1.1.0 option to entirely remove
3616 support for the deprecated features from the library and
3617 unconditionally disable them in the installed headers.
3618 Essentially the same effect can be achieved with the "no-deprecated"
3619 argument to Configure, except that this will always restrict
3620 the build to just the latest API, rather than a fixed API
3621 version.
3622
3623 As applications are ported to future revisions of the API,
3624 they should update their compile-time OPENSSL_API_COMPAT define
3625 accordingly, but in most cases should be able to continue to
3626 compile with later releases.
3627
3628 The OPENSSL_API_COMPAT versions for 1.0.0, and 0.9.8 are
3629 0x10000000L and 0x00908000L, respectively. However those
3630 versions did not support the OPENSSL_API_COMPAT feature, and
3631 so applications are not typically tested for explicit support
3632 of just the undeprecated features of either release.
3633
3634 *Viktor Dukhovni*
3635
3636 * Add support for setting the minimum and maximum supported protocol.
3637 It can bet set via the SSL_set_min_proto_version() and
3638 SSL_set_max_proto_version(), or via the SSL_CONF's MinProtocol and
3639 MaxProtocol. It's recommended to use the new APIs to disable
3640 protocols instead of disabling individual protocols using
3641 SSL_set_options() or SSL_CONF's Protocol. This change also
3642 removes support for disabling TLS 1.2 in the OpenSSL TLS
3643 client at compile time by defining OPENSSL_NO_TLS1_2_CLIENT.
3644
3645 *Kurt Roeckx*
3646
3647 * Support for ChaCha20 and Poly1305 added to libcrypto and libssl.
3648
3649 *Andy Polyakov*
3650
3651 * New EC_KEY_METHOD, this replaces the older ECDSA_METHOD and ECDH_METHOD
3652 and integrates ECDSA and ECDH functionality into EC. Implementations can
3653 now redirect key generation and no longer need to convert to or from
3654 ECDSA_SIG format.
3655
3656 Note: the ecdsa.h and ecdh.h headers are now no longer needed and just
3657 include the ec.h header file instead.
3658
3659 *Steve Henson*
3660
3661 * Remove support for all 40 and 56 bit ciphers. This includes all the export
3662 ciphers who are no longer supported and drops support the ephemeral RSA key
3663 exchange. The LOW ciphers currently doesn't have any ciphers in it.
3664
3665 *Kurt Roeckx*
3666
3667 * Made EVP_MD_CTX, EVP_MD, EVP_CIPHER_CTX, EVP_CIPHER and HMAC_CTX
3668 opaque. For HMAC_CTX, the following constructors and destructors
3669 were added:
3670
1dc1ea18
DDO
3671 HMAC_CTX *HMAC_CTX_new(void);
3672 void HMAC_CTX_free(HMAC_CTX *ctx);
5f8e6c50
DMSP
3673
3674 For EVP_MD and EVP_CIPHER, complete APIs to create, fill and
3675 destroy such methods has been added. See EVP_MD_meth_new(3) and
3676 EVP_CIPHER_meth_new(3) for documentation.
3677
3678 Additional changes:
1dc1ea18
DDO
3679 1) `EVP_MD_CTX_cleanup()`, `EVP_CIPHER_CTX_cleanup()` and
3680 `HMAC_CTX_cleanup()` were removed. `HMAC_CTX_reset()` and
3681 `EVP_MD_CTX_reset()` should be called instead to reinitialise
5f8e6c50
DMSP
3682 an already created structure.
3683 2) For consistency with the majority of our object creators and
1dc1ea18
DDO
3684 destructors, `EVP_MD_CTX_(create|destroy)` were renamed to
3685 `EVP_MD_CTX_(new|free)`. The old names are retained as macros
5f8e6c50
DMSP
3686 for deprecated builds.
3687
3688 *Richard Levitte*
3689
3690 * Added ASYNC support. Libcrypto now includes the async sub-library to enable
3691 cryptographic operations to be performed asynchronously as long as an
3692 asynchronous capable engine is used. See the ASYNC_start_job() man page for
3693 further details. Libssl has also had this capability integrated with the
3694 introduction of the new mode SSL_MODE_ASYNC and associated error
3695 SSL_ERROR_WANT_ASYNC. See the SSL_CTX_set_mode() and SSL_get_error() man
3696 pages. This work was developed in partnership with Intel Corp.
3697
3698 *Matt Caswell*
3699
3700 * SSL_{CTX_}set_ecdh_auto() has been removed and ECDH is support is
3701 always enabled now. If you want to disable the support you should
3702 exclude it using the list of supported ciphers. This also means that the
3703 "-no_ecdhe" option has been removed from s_server.
3704
3705 *Kurt Roeckx*
3706
3707 * SSL_{CTX}_set_tmp_ecdh() which can set 1 EC curve now internally calls
3708 SSL_{CTX_}set1_curves() which can set a list.
3709
3710 *Kurt Roeckx*
3711
3712 * Remove support for SSL_{CTX_}set_tmp_ecdh_callback(). You should set the
3713 curve you want to support using SSL_{CTX_}set1_curves().
3714
3715 *Kurt Roeckx*
3716
3717 * State machine rewrite. The state machine code has been significantly
3718 refactored in order to remove much duplication of code and solve issues
036cbb6b
DDO
3719 with the old code (see [ssl/statem/README.md](ssl/statem/README.md) for
3720 further details). This change does have some associated API changes.
3721 Notably the SSL_state() function has been removed and replaced by
3722 SSL_get_state which now returns an "OSSL_HANDSHAKE_STATE" instead of an int.
3723 SSL_set_state() has been removed altogether. The previous handshake states
3724 defined in ssl.h and ssl3.h have also been removed.
5f8e6c50
DMSP
3725
3726 *Matt Caswell*
3727
3728 * All instances of the string "ssleay" in the public API were replaced
3729 with OpenSSL (case-matching; e.g., OPENSSL_VERSION for #define's)
3730 Some error codes related to internal RSA_eay API's were renamed.
3731
3732 *Rich Salz*
3733
3734 * The demo files in crypto/threads were moved to demo/threads.
3735
3736 *Rich Salz*
3737
3738 * Removed obsolete engines: 4758cca, aep, atalla, cswift, nuron, gmp,
3739 sureware and ubsec.
3740
3741 *Matt Caswell, Rich Salz*
3742
3743 * New ASN.1 embed macro.
3744
3745 New ASN.1 macro ASN1_EMBED. This is the same as ASN1_SIMPLE except the
3746 structure is not allocated: it is part of the parent. That is instead of
3747
3748 FOO *x;
3749
3750 it must be:
3751
3752 FOO x;
3753
3754 This reduces memory fragmentation and make it impossible to accidentally
3755 set a mandatory field to NULL.
3756
3757 This currently only works for some fields specifically a SEQUENCE, CHOICE,
3758 or ASN1_STRING type which is part of a parent SEQUENCE. Since it is
3759 equivalent to ASN1_SIMPLE it cannot be tagged, OPTIONAL, SET OF or
3760 SEQUENCE OF.
3761
3762 *Steve Henson*
3763
3764 * Remove EVP_CHECK_DES_KEY, a compile-time option that never compiled.
3765
3766 *Emilia Käsper*
3767
3768 * Removed DES and RC4 ciphersuites from DEFAULT. Also removed RC2 although
3769 in 1.0.2 EXPORT was already removed and the only RC2 ciphersuite is also
3770 an EXPORT one. COMPLEMENTOFDEFAULT has been updated accordingly to add
3771 DES and RC4 ciphersuites.
3772
3773 *Matt Caswell*
3774
3775 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
3776 This changes the decoding behaviour for some invalid messages,
3777 though the change is mostly in the more lenient direction, and
3778 legacy behaviour is preserved as much as possible.
3779
3780 *Emilia Käsper*
3781
3782 * Fix no-stdio build.
1dc1ea18
DDO
3783 *David Woodhouse <David.Woodhouse@intel.com> and also*
3784 *Ivan Nestlerode <ivan.nestlerode@sonos.com>*
5f8e6c50
DMSP
3785
3786 * New testing framework
3787 The testing framework has been largely rewritten and is now using
3788 perl and the perl modules Test::Harness and an extended variant of
3789 Test::More called OpenSSL::Test to do its work. All test scripts in
3790 test/ have been rewritten into test recipes, and all direct calls to
3791 executables in test/Makefile have become individual recipes using the
3792 simplified testing OpenSSL::Test::Simple.
3793
3794 For documentation on our testing modules, do:
3795
3796 perldoc test/testlib/OpenSSL/Test/Simple.pm
3797 perldoc test/testlib/OpenSSL/Test.pm
3798
3799 *Richard Levitte*
3800
3801 * Revamped memory debug; only -DCRYPTO_MDEBUG and -DCRYPTO_MDEBUG_ABORT
3802 are used; the latter aborts on memory leaks (usually checked on exit).
3803 Some undocumented "set malloc, etc., hooks" functions were removed
3804 and others were changed. All are now documented.
3805
3806 *Rich Salz*
3807
3808 * In DSA_generate_parameters_ex, if the provided seed is too short,
3809 return an error
3810
3811 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
3812
3813 * Rewrite PSK to support ECDHE_PSK, DHE_PSK and RSA_PSK. Add ciphersuites
3814 from RFC4279, RFC4785, RFC5487, RFC5489.
3815
3816 Thanks to Christian J. Dietrich and Giuseppe D'Angelo for the
3817 original RSA_PSK patch.
3818
3819 *Steve Henson*
3820
3821 * Dropped support for the SSL3_FLAGS_DELAY_CLIENT_FINISHED flag. This SSLeay
3822 era flag was never set throughout the codebase (only read). Also removed
3823 SSL3_FLAGS_POP_BUFFER which was only used if
3824 SSL3_FLAGS_DELAY_CLIENT_FINISHED was also set.
3825
3826 *Matt Caswell*
3827
3828 * Changed the default name options in the "ca", "crl", "req" and "x509"
3829 to be "oneline" instead of "compat".
3830
3831 *Richard Levitte*
3832
3833 * Remove SSL_OP_TLS_BLOCK_PADDING_BUG. This is SSLeay legacy, we're
3834 not aware of clients that still exhibit this bug, and the workaround
3835 hasn't been working properly for a while.
3836
3837 *Emilia Käsper*
3838
3839 * The return type of BIO_number_read() and BIO_number_written() as well as
3840 the corresponding num_read and num_write members in the BIO structure has
3841 changed from unsigned long to uint64_t. On platforms where an unsigned
3842 long is 32 bits (e.g. Windows) these counters could overflow if >4Gb is
3843 transferred.
3844
3845 *Matt Caswell*
3846
3847 * Given the pervasive nature of TLS extensions it is inadvisable to run
3848 OpenSSL without support for them. It also means that maintaining
3849 the OPENSSL_NO_TLSEXT option within the code is very invasive (and probably
3850 not well tested). Therefore the OPENSSL_NO_TLSEXT option has been removed.
3851
3852 *Matt Caswell*
3853
3854 * Removed support for the two export grade static DH ciphersuites
3855 EXP-DH-RSA-DES-CBC-SHA and EXP-DH-DSS-DES-CBC-SHA. These two ciphersuites
3856 were newly added (along with a number of other static DH ciphersuites) to
3857 1.0.2. However the two export ones have *never* worked since they were
3858 introduced. It seems strange in any case to be adding new export
3859 ciphersuites, and given "logjam" it also does not seem correct to fix them.
3860
3861 *Matt Caswell*
3862
3863 * Version negotiation has been rewritten. In particular SSLv23_method(),
3864 SSLv23_client_method() and SSLv23_server_method() have been deprecated,
3865 and turned into macros which simply call the new preferred function names
3866 TLS_method(), TLS_client_method() and TLS_server_method(). All new code
3867 should use the new names instead. Also as part of this change the ssl23.h
3868 header file has been removed.
3869
3870 *Matt Caswell*
3871
3872 * Support for Kerberos ciphersuites in TLS (RFC2712) has been removed. This
3873 code and the associated standard is no longer considered fit-for-purpose.
3874
3875 *Matt Caswell*
3876
3877 * RT2547 was closed. When generating a private key, try to make the
3878 output file readable only by the owner. This behavior change might
3879 be noticeable when interacting with other software.
3880
3881 * Documented all exdata functions. Added CRYPTO_free_ex_index.
3882 Added a test.
3883
3884 *Rich Salz*
3885
3886 * Added HTTP GET support to the ocsp command.
3887
3888 *Rich Salz*
3889
3890 * Changed default digest for the dgst and enc commands from MD5 to
3891 sha256
3892
3893 *Rich Salz*
3894
3895 * RAND_pseudo_bytes has been deprecated. Users should use RAND_bytes instead.
3896
3897 *Matt Caswell*
3898
3899 * Added support for TLS extended master secret from
3900 draft-ietf-tls-session-hash-03.txt. Thanks for Alfredo Pironti for an
3901 initial patch which was a great help during development.
3902
3903 *Steve Henson*
3904
3905 * All libssl internal structures have been removed from the public header
3906 files, and the OPENSSL_NO_SSL_INTERN option has been removed (since it is
3907 now redundant). Users should not attempt to access internal structures
3908 directly. Instead they should use the provided API functions.
3909
3910 *Matt Caswell*
3911
3912 * config has been changed so that by default OPENSSL_NO_DEPRECATED is used.
3913 Access to deprecated functions can be re-enabled by running config with
3914 "enable-deprecated". In addition applications wishing to use deprecated
3915 functions must define OPENSSL_USE_DEPRECATED. Note that this new behaviour
3916 will, by default, disable some transitive includes that previously existed
3917 in the header files (e.g. ec.h will no longer, by default, include bn.h)
3918
3919 *Matt Caswell*
3920
3921 * Added support for OCB mode. OpenSSL has been granted a patent license
3922 compatible with the OpenSSL license for use of OCB. Details are available
257e9d03 3923 at <https://www.openssl.org/source/OCB-patent-grant-OpenSSL.pdf>. Support
5f8e6c50
DMSP
3924 for OCB can be removed by calling config with no-ocb.
3925
3926 *Matt Caswell*
3927
3928 * SSLv2 support has been removed. It still supports receiving a SSLv2
3929 compatible client hello.
3930
3931 *Kurt Roeckx*
3932
3933 * Increased the minimal RSA keysize from 256 to 512 bits [Rich Salz],
3934 done while fixing the error code for the key-too-small case.
3935
3936 *Annie Yousar <a.yousar@informatik.hu-berlin.de>*
3937
3938 * CA.sh has been removed; use CA.pl instead.
3939
3940 *Rich Salz*
3941
3942 * Removed old DES API.
3943
3944 *Rich Salz*
3945
3946 * Remove various unsupported platforms:
3947 Sony NEWS4
3948 BEOS and BEOS_R5
3949 NeXT
3950 SUNOS
3951 MPE/iX
3952 Sinix/ReliantUNIX RM400
3953 DGUX
3954 NCR
3955 Tandem
3956 Cray
3957 16-bit platforms such as WIN16
3958
3959 *Rich Salz*
3960
3961 * Clean up OPENSSL_NO_xxx #define's
257e9d03
RS
3962 - Use setbuf() and remove OPENSSL_NO_SETVBUF_IONBF
3963 - Rename OPENSSL_SYSNAME_xxx to OPENSSL_SYS_xxx
3964 - OPENSSL_NO_EC{DH,DSA} merged into OPENSSL_NO_EC
3965 - OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160
3966 - OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO
3967 - Remove OPENSSL_NO_BIO OPENSSL_NO_BUFFER OPENSSL_NO_CHAIN_VERIFY
3968 OPENSSL_NO_EVP OPENSSL_NO_FIPS_ERR OPENSSL_NO_HASH_COMP
3969 OPENSSL_NO_LHASH OPENSSL_NO_OBJECT OPENSSL_NO_SPEED OPENSSL_NO_STACK
3970 OPENSSL_NO_X509 OPENSSL_NO_X509_VERIFY
3971 - Remove MS_STATIC; it's a relic from platforms <32 bits.
5f8e6c50
DMSP
3972
3973 *Rich Salz*
3974
3975 * Cleaned up dead code
3976 Remove all but one '#ifdef undef' which is to be looked at.
3977
3978 *Rich Salz*
3979
3980 * Clean up calling of xxx_free routines.
3981 Just like free(), fix most of the xxx_free routines to accept
3982 NULL. Remove the non-null checks from callers. Save much code.
3983
3984 *Rich Salz*
3985
3986 * Add secure heap for storage of private keys (when possible).
3987 Add BIO_s_secmem(), CBIGNUM, etc.
3988 Contributed by Akamai Technologies under our Corporate CLA.
3989
3990 *Rich Salz*
3991
3992 * Experimental support for a new, fast, unbiased prime candidate generator,
3993 bn_probable_prime_dh_coprime(). Not currently used by any prime generator.
3994
3995 *Felix Laurie von Massenbach <felix@erbridge.co.uk>*
3996
3997 * New output format NSS in the sess_id command line tool. This allows
3998 exporting the session id and the master key in NSS keylog format.
3999
4000 *Martin Kaiser <martin@kaiser.cx>*
4001
4002 * Harmonize version and its documentation. -f flag is used to display
4003 compilation flags.
4004
4005 *mancha <mancha1@zoho.com>*
4006
4007 * Fix eckey_priv_encode so it immediately returns an error upon a failure
4008 in i2d_ECPrivateKey. Thanks to Ted Unangst for feedback on this issue.
4009
4010 *mancha <mancha1@zoho.com>*
4011
4012 * Fix some double frees. These are not thought to be exploitable.
4013
4014 *mancha <mancha1@zoho.com>*
4015
4016 * A missing bounds check in the handling of the TLS heartbeat extension
4017 can be used to reveal up to 64k of memory to a connected client or
4018 server.
4019
4020 Thanks for Neel Mehta of Google Security for discovering this bug and to
4021 Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
d8dc8538 4022 preparing the fix ([CVE-2014-0160])
5f8e6c50
DMSP
4023
4024 *Adam Langley, Bodo Moeller*
4025
4026 * Fix for the attack described in the paper "Recovering OpenSSL
4027 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
4028 by Yuval Yarom and Naomi Benger. Details can be obtained from:
257e9d03 4029 <http://eprint.iacr.org/2014/140>
5f8e6c50
DMSP
4030
4031 Thanks to Yuval Yarom and Naomi Benger for discovering this
d8dc8538 4032 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
5f8e6c50
DMSP
4033
4034 *Yuval Yarom and Naomi Benger*
4035
4036 * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
4037 this fixes a limitation in previous versions of OpenSSL.
4038
4039 *Steve Henson*
4040
4041 * Experimental encrypt-then-mac support.
4042
4043 Experimental support for encrypt then mac from
4044 draft-gutmann-tls-encrypt-then-mac-02.txt
4045
4046 To enable it set the appropriate extension number (0x42 for the test
4047 server) using e.g. -DTLSEXT_TYPE_encrypt_then_mac=0x42
4048
4049 For non-compliant peers (i.e. just about everything) this should have no
4050 effect.
4051
4052 WARNING: EXPERIMENTAL, SUBJECT TO CHANGE.
4053
5f8e6c50
DMSP
4054 *Steve Henson*
4055
4056 * Add EVP support for key wrapping algorithms, to avoid problems with
4057 existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
4058 the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
4059 algorithms and include tests cases.
4060
4061 *Steve Henson*
4062
4063 * Extend CMS code to support RSA-PSS signatures and RSA-OAEP for
4064 enveloped data.
4065
4066 *Steve Henson*
4067
4068 * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
4069 MGF1 digest and OAEP label.
4070
4071 *Steve Henson*
4072
4073 * Make openssl verify return errors.
4074
4075 *Chris Palmer <palmer@google.com> and Ben Laurie*
4076
4077 * New function ASN1_TIME_diff to calculate the difference between two
4078 ASN1_TIME structures or one structure and the current time.
4079
4080 *Steve Henson*
4081
4082 * Update fips_test_suite to support multiple command line options. New
4083 test to induce all self test errors in sequence and check expected
4084 failures.
4085
4086 *Steve Henson*
4087
4088 * Add FIPS_{rsa,dsa,ecdsa}_{sign,verify} functions which digest and
4089 sign or verify all in one operation.
4090
4091 *Steve Henson*
4092
4093 * Add fips_algvs: a multicall fips utility incorporating all the algorithm
4094 test programs and fips_test_suite. Includes functionality to parse
4095 the minimal script output of fipsalgest.pl directly.
4096
4097 *Steve Henson*
4098
4099 * Add authorisation parameter to FIPS_module_mode_set().
4100
4101 *Steve Henson*
4102
4103 * Add FIPS selftest for ECDH algorithm using P-224 and B-233 curves.
4104
4105 *Steve Henson*
4106
4107 * Use separate DRBG fields for internal and external flags. New function
4108 FIPS_drbg_health_check() to perform on demand health checking. Add
4109 generation tests to fips_test_suite with reduced health check interval to
4110 demonstrate periodic health checking. Add "nodh" option to
4111 fips_test_suite to skip very slow DH test.
4112
4113 *Steve Henson*
4114
4115 * New function FIPS_get_cipherbynid() to lookup FIPS supported ciphers
4116 based on NID.
4117
4118 *Steve Henson*
4119
4120 * More extensive health check for DRBG checking many more failure modes.
4121 New function FIPS_selftest_drbg_all() to handle every possible DRBG
4122 combination: call this in fips_test_suite.
4123
4124 *Steve Henson*
4125
4126 * Add support for canonical generation of DSA parameter 'g'. See
4127 FIPS 186-3 A.2.3.
4128
4129 * Add support for HMAC DRBG from SP800-90. Update DRBG algorithm test and
4130 POST to handle HMAC cases.
4131
4132 *Steve Henson*
4133
4134 * Add functions FIPS_module_version() and FIPS_module_version_text()
4135 to return numerical and string versions of the FIPS module number.
4136
4137 *Steve Henson*
4138
4139 * Rename FIPS_mode_set and FIPS_mode to FIPS_module_mode_set and
4140 FIPS_module_mode. FIPS_mode and FIPS_mode_set will be implemented
4141 outside the validated module in the FIPS capable OpenSSL.
4142
4143 *Steve Henson*
4144
4145 * Minor change to DRBG entropy callback semantics. In some cases
4146 there is no multiple of the block length between min_len and
4147 max_len. Allow the callback to return more than max_len bytes
4148 of entropy but discard any extra: it is the callback's responsibility
4149 to ensure that the extra data discarded does not impact the
4150 requested amount of entropy.
4151
4152 *Steve Henson*
4153
4154 * Add PRNG security strength checks to RSA, DSA and ECDSA using
4155 information in FIPS186-3, SP800-57 and SP800-131A.
4156
4157 *Steve Henson*
4158
4159 * CCM support via EVP. Interface is very similar to GCM case except we
4160 must supply all data in one chunk (i.e. no update, final) and the
4161 message length must be supplied if AAD is used. Add algorithm test
4162 support.
4163
4164 *Steve Henson*
4165
4166 * Initial version of POST overhaul. Add POST callback to allow the status
4167 of POST to be monitored and/or failures induced. Modify fips_test_suite
4168 to use callback. Always run all selftests even if one fails.
4169
4170 *Steve Henson*
4171
4172 * XTS support including algorithm test driver in the fips_gcmtest program.
4173 Note: this does increase the maximum key length from 32 to 64 bytes but
4174 there should be no binary compatibility issues as existing applications
4175 will never use XTS mode.
4176
4177 *Steve Henson*
4178
4179 * Extensive reorganisation of FIPS PRNG behaviour. Remove all dependencies
4180 to OpenSSL RAND code and replace with a tiny FIPS RAND API which also
4181 performs algorithm blocking for unapproved PRNG types. Also do not
4182 set PRNG type in FIPS_mode_set(): leave this to the application.
4183 Add default OpenSSL DRBG handling: sets up FIPS PRNG and seeds with
4184 the standard OpenSSL PRNG: set additional data to a date time vector.
4185
4186 *Steve Henson*
4187
1dc1ea18 4188 * Rename old X9.31 PRNG functions of the form `FIPS_rand*` to `FIPS_x931*`.
5f8e6c50
DMSP
4189 This shouldn't present any incompatibility problems because applications
4190 shouldn't be using these directly and any that are will need to rethink
4191 anyway as the X9.31 PRNG is now deprecated by FIPS 140-2
4192
4193 *Steve Henson*
4194
4195 * Extensive self tests and health checking required by SP800-90 DRBG.
4196 Remove strength parameter from FIPS_drbg_instantiate and always
4197 instantiate at maximum supported strength.
4198
4199 *Steve Henson*
4200
4201 * Add ECDH code to fips module and fips_ecdhvs for primitives only testing.
4202
4203 *Steve Henson*
4204
4205 * New algorithm test program fips_dhvs to handle DH primitives only testing.
4206
4207 *Steve Henson*
4208
4209 * New function DH_compute_key_padded() to compute a DH key and pad with
4210 leading zeroes if needed: this complies with SP800-56A et al.
4211
4212 *Steve Henson*
4213
4214 * Initial implementation of SP800-90 DRBGs for Hash and CTR. Not used by
4215 anything, incomplete, subject to change and largely untested at present.
4216
4217 *Steve Henson*
4218
4219 * Modify fipscanisteronly build option to only build the necessary object
4220 files by filtering FIPS_EX_OBJ through a perl script in crypto/Makefile.
4221
4222 *Steve Henson*
4223
4224 * Add experimental option FIPSSYMS to give all symbols in
4225 fipscanister.o and FIPS or fips prefix. This will avoid
4226 conflicts with future versions of OpenSSL. Add perl script
4227 util/fipsas.pl to preprocess assembly language source files
4228 and rename any affected symbols.
4229
4230 *Steve Henson*
4231
4232 * Add selftest checks and algorithm block of non-fips algorithms in
4233 FIPS mode. Remove DES2 from selftests.
4234
4235 *Steve Henson*
4236
4237 * Add ECDSA code to fips module. Add tiny fips_ecdsa_check to just
4238 return internal method without any ENGINE dependencies. Add new
4239 tiny fips sign and verify functions.
4240
4241 *Steve Henson*
4242
4243 * New build option no-ec2m to disable characteristic 2 code.
4244
4245 *Steve Henson*
4246
4247 * New build option "fipscanisteronly". This only builds fipscanister.o
4248 and (currently) associated fips utilities. Uses the file Makefile.fips
4249 instead of Makefile.org as the prototype.
4250
4251 *Steve Henson*
4252
4253 * Add some FIPS mode restrictions to GCM. Add internal IV generator.
4254 Update fips_gcmtest to use IV generator.
4255
4256 *Steve Henson*
4257
4258 * Initial, experimental EVP support for AES-GCM. AAD can be input by
257e9d03 4259 setting output buffer to NULL. The `*Final` function must be
5f8e6c50
DMSP
4260 called although it will not retrieve any additional data. The tag
4261 can be set or retrieved with a ctrl. The IV length is by default 12
4262 bytes (96 bits) but can be set to an alternative value. If the IV
4263 length exceeds the maximum IV length (currently 16 bytes) it cannot be
4264 set before the key.
4265
4266 *Steve Henson*
4267
4268 * New flag in ciphers: EVP_CIPH_FLAG_CUSTOM_CIPHER. This means the
4269 underlying do_cipher function handles all cipher semantics itself
4270 including padding and finalisation. This is useful if (for example)
4271 an ENGINE cipher handles block padding itself. The behaviour of
4272 do_cipher is subtly changed if this flag is set: the return value
4273 is the number of characters written to the output buffer (zero is
4274 no longer an error code) or a negative error code. Also if the
4275 input buffer is NULL and length 0 finalisation should be performed.
4276
4277 *Steve Henson*
4278
4279 * If a candidate issuer certificate is already part of the constructed
4280 path ignore it: new debug notification X509_V_ERR_PATH_LOOP for this case.
4281
4282 *Steve Henson*
4283
4284 * Improve forward-security support: add functions
4285
4286 void SSL_CTX_set_not_resumable_session_callback(
4287 SSL_CTX *ctx, int (*cb)(SSL *ssl, int is_forward_secure))
4288 void SSL_set_not_resumable_session_callback(
4289 SSL *ssl, int (*cb)(SSL *ssl, int is_forward_secure))
4290
4291 for use by SSL/TLS servers; the callback function will be called whenever a
4292 new session is created, and gets to decide whether the session may be
4293 cached to make it resumable (return 0) or not (return 1). (As by the
4294 SSL/TLS protocol specifications, the session_id sent by the server will be
4295 empty to indicate that the session is not resumable; also, the server will
4296 not generate RFC 4507 (RFC 5077) session tickets.)
4297
4298 A simple reasonable callback implementation is to return is_forward_secure.
4299 This parameter will be set to 1 or 0 depending on the ciphersuite selected
4300 by the SSL/TLS server library, indicating whether it can provide forward
4301 security.
4302
4303 *Emilia Käsper <emilia.kasper@esat.kuleuven.be> (Google)*
4304
4305 * New -verify_name option in command line utilities to set verification
4306 parameters by name.
4307
4308 *Steve Henson*
4309
4310 * Initial CMAC implementation. WARNING: EXPERIMENTAL, API MAY CHANGE.
4311 Add CMAC pkey methods.
4312
4313 *Steve Henson*
4314
4315 * Experimental renegotiation in s_server -www mode. If the client
4316 browses /reneg connection is renegotiated. If /renegcert it is
4317 renegotiated requesting a certificate.
4318
4319 *Steve Henson*
4320
4321 * Add an "external" session cache for debugging purposes to s_server. This
4322 should help trace issues which normally are only apparent in deployed
4323 multi-process servers.
4324
4325 *Steve Henson*
4326
4327 * Extensive audit of libcrypto with DEBUG_UNUSED. Fix many cases where
4328 return value is ignored. NB. The functions RAND_add(), RAND_seed(),
4329 BIO_set_cipher() and some obscure PEM functions were changed so they
4330 can now return an error. The RAND changes required a change to the
4331 RAND_METHOD structure.
4332
4333 *Steve Henson*
4334
44652c16 4335 * New macro `__owur` for "OpenSSL Warn Unused Result". This makes use of
5f8e6c50
DMSP
4336 a gcc attribute to warn if the result of a function is ignored. This
4337 is enable if DEBUG_UNUSED is set. Add to several functions in evp.h
4338 whose return value is often ignored.
4339
4340 *Steve Henson*
4341
4342 * New -noct, -requestct, -requirect and -ctlogfile options for s_client.
4343 These allow SCTs (signed certificate timestamps) to be requested and
4344 validated when establishing a connection.
4345
4346 *Rob Percival <robpercival@google.com>*
4347
44652c16
DMSP
4348OpenSSL 1.0.2
4349-------------
5f8e6c50 4350
257e9d03 4351### Changes between 1.0.2s and 1.0.2t [10 Sep 2019]
5f8e6c50 4352
44652c16 4353 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 4354 used even when parsing explicit parameters, when loading a encoded key
44652c16
DMSP
4355 or calling `EC_GROUP_new_from_ecpkparameters()`/
4356 `EC_GROUP_new_from_ecparameters()`.
4357 This prevents bypass of security hardening and performance gains,
4358 especially for curves with specialized EC_METHODs.
4359 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 4360 encoded, the output is still encoded with explicit parameters, even if
44652c16 4361 internally a "named" EC_GROUP is used for computation.
5f8e6c50 4362
44652c16 4363 *Nicola Tuveri*
5f8e6c50 4364
44652c16
DMSP
4365 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
4366 this change, EC_GROUP_set_generator would accept order and/or cofactor as
4367 NULL. After this change, only the cofactor parameter can be NULL. It also
4368 does some minimal sanity checks on the passed order.
d8dc8538 4369 ([CVE-2019-1547])
5f8e6c50 4370
44652c16 4371 *Billy Bob Brumley*
5f8e6c50 4372
44652c16
DMSP
4373 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
4374 An attack is simple, if the first CMS_recipientInfo is valid but the
4375 second CMS_recipientInfo is chosen ciphertext. If the second
4376 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
4377 encryption key will be replaced by garbage, and the message cannot be
4378 decoded, but if the RSA decryption fails, the correct encryption key is
4379 used and the recipient will not notice the attack.
4380 As a work around for this potential attack the length of the decrypted
4381 key must be equal to the cipher default key length, in case the
4382 certifiate is not given and all recipientInfo are tried out.
4383 The old behaviour can be re-enabled in the CMS code by setting the
4384 CMS_DEBUG_DECRYPT flag.
d8dc8538 4385 ([CVE-2019-1563])
5f8e6c50 4386
44652c16 4387 *Bernd Edlinger*
5f8e6c50 4388
44652c16 4389 * Document issue with installation paths in diverse Windows builds
5f8e6c50 4390
44652c16
DMSP
4391 '/usr/local/ssl' is an unsafe prefix for location to install OpenSSL
4392 binaries and run-time config file.
d8dc8538 4393 ([CVE-2019-1552])
5f8e6c50 4394
44652c16 4395 *Richard Levitte*
5f8e6c50 4396
257e9d03 4397### Changes between 1.0.2r and 1.0.2s [28 May 2019]
5f8e6c50 4398
44652c16 4399 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
ec2bfb7d
DDO
4400 This changes the size when using the `genpkey` command when no size is given.
4401 It fixes an omission in earlier changes that changed all RSA, DSA and DH
4402 generation commands to use 2048 bits by default.
5f8e6c50 4403
44652c16 4404 *Kurt Roeckx*
5f8e6c50 4405
44652c16 4406 * Add FIPS support for Android Arm 64-bit
5f8e6c50 4407
44652c16
DMSP
4408 Support for Android Arm 64-bit was added to the OpenSSL FIPS Object
4409 Module in Version 2.0.10. For some reason, the corresponding target
4410 'android64-aarch64' was missing OpenSSL 1.0.2, whence it could not be
4411 built with FIPS support on Android Arm 64-bit. This omission has been
4412 fixed.
5f8e6c50 4413
44652c16 4414 *Matthias St. Pierre*
5f8e6c50 4415
257e9d03 4416### Changes between 1.0.2q and 1.0.2r [26 Feb 2019]
5f8e6c50 4417
44652c16 4418 * 0-byte record padding oracle
5f8e6c50 4419
44652c16
DMSP
4420 If an application encounters a fatal protocol error and then calls
4421 SSL_shutdown() twice (once to send a close_notify, and once to receive one)
4422 then OpenSSL can respond differently to the calling application if a 0 byte
4423 record is received with invalid padding compared to if a 0 byte record is
4424 received with an invalid MAC. If the application then behaves differently
4425 based on that in a way that is detectable to the remote peer, then this
4426 amounts to a padding oracle that could be used to decrypt data.
5f8e6c50 4427
44652c16
DMSP
4428 In order for this to be exploitable "non-stitched" ciphersuites must be in
4429 use. Stitched ciphersuites are optimised implementations of certain
4430 commonly used ciphersuites. Also the application must call SSL_shutdown()
4431 twice even if a protocol error has occurred (applications should not do
4432 this but some do anyway).
5f8e6c50 4433
44652c16
DMSP
4434 This issue was discovered by Juraj Somorovsky, Robert Merget and Nimrod
4435 Aviram, with additional investigation by Steven Collison and Andrew
4436 Hourselt. It was reported to OpenSSL on 10th December 2018.
d8dc8538 4437 ([CVE-2019-1559])
5f8e6c50
DMSP
4438
4439 *Matt Caswell*
4440
44652c16 4441 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
5f8e6c50 4442
44652c16 4443 *Richard Levitte*
5f8e6c50 4444
257e9d03 4445### Changes between 1.0.2p and 1.0.2q [20 Nov 2018]
5f8e6c50 4446
44652c16 4447 * Microarchitecture timing vulnerability in ECC scalar multiplication
5f8e6c50 4448
44652c16
DMSP
4449 OpenSSL ECC scalar multiplication, used in e.g. ECDSA and ECDH, has been
4450 shown to be vulnerable to a microarchitecture timing side channel attack.
4451 An attacker with sufficient access to mount local timing attacks during
4452 ECDSA signature generation could recover the private key.
5f8e6c50 4453
44652c16
DMSP
4454 This issue was reported to OpenSSL on 26th October 2018 by Alejandro
4455 Cabrera Aldaya, Billy Brumley, Sohaib ul Hassan, Cesar Pereida Garcia and
4456 Nicola Tuveri.
d8dc8538 4457 ([CVE-2018-5407])
5f8e6c50 4458
44652c16 4459 *Billy Brumley*
5f8e6c50 4460
44652c16 4461 * Timing vulnerability in DSA signature generation
5f8e6c50 4462
44652c16
DMSP
4463 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
4464 timing side channel attack. An attacker could use variations in the signing
4465 algorithm to recover the private key.
5f8e6c50 4466
44652c16 4467 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
d8dc8538 4468 ([CVE-2018-0734])
5f8e6c50 4469
44652c16 4470 *Paul Dale*
5f8e6c50 4471
44652c16
DMSP
4472 * Resolve a compatibility issue in EC_GROUP handling with the FIPS Object
4473 Module, accidentally introduced while backporting security fixes from the
4474 development branch and hindering the use of ECC in FIPS mode.
5f8e6c50 4475
44652c16 4476 *Nicola Tuveri*
5f8e6c50 4477
257e9d03 4478### Changes between 1.0.2o and 1.0.2p [14 Aug 2018]
5f8e6c50 4479
44652c16 4480 * Client DoS due to large DH parameter
5f8e6c50 4481
44652c16
DMSP
4482 During key agreement in a TLS handshake using a DH(E) based ciphersuite a
4483 malicious server can send a very large prime value to the client. This will
4484 cause the client to spend an unreasonably long period of time generating a
4485 key for this prime resulting in a hang until the client has finished. This
4486 could be exploited in a Denial Of Service attack.
5f8e6c50 4487
44652c16 4488 This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken
d8dc8538 4489 ([CVE-2018-0732])
5f8e6c50 4490
44652c16 4491 *Guido Vranken*
5f8e6c50 4492
44652c16 4493 * Cache timing vulnerability in RSA Key Generation
5f8e6c50 4494
44652c16
DMSP
4495 The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to
4496 a cache timing side channel attack. An attacker with sufficient access to
4497 mount cache timing attacks during the RSA key generation process could
4498 recover the private key.
5f8e6c50 4499
44652c16
DMSP
4500 This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera
4501 Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia.
d8dc8538 4502 ([CVE-2018-0737])
5f8e6c50 4503
44652c16 4504 *Billy Brumley*
5f8e6c50 4505
44652c16
DMSP
4506 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
4507 parameter is no longer accepted, as it leads to a corrupt table. NULL
4508 pem_str is reserved for alias entries only.
5f8e6c50 4509
44652c16 4510 *Richard Levitte*
5f8e6c50 4511
44652c16
DMSP
4512 * Revert blinding in ECDSA sign and instead make problematic addition
4513 length-invariant. Switch even to fixed-length Montgomery multiplication.
5f8e6c50 4514
44652c16 4515 *Andy Polyakov*
5f8e6c50 4516
44652c16
DMSP
4517 * Change generating and checking of primes so that the error rate of not
4518 being prime depends on the intended use based on the size of the input.
4519 For larger primes this will result in more rounds of Miller-Rabin.
4520 The maximal error rate for primes with more than 1080 bits is lowered
4521 to 2^-128.
5f8e6c50 4522
44652c16 4523 *Kurt Roeckx, Annie Yousar*
5f8e6c50 4524
44652c16 4525 * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
5f8e6c50 4526
44652c16 4527 *Kurt Roeckx*
5f8e6c50 4528
44652c16
DMSP
4529 * Add blinding to ECDSA and DSA signatures to protect against side channel
4530 attacks discovered by Keegan Ryan (NCC Group).
5f8e6c50 4531
44652c16 4532 *Matt Caswell*
5f8e6c50 4533
44652c16
DMSP
4534 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
4535 now allow empty (zero character) pass phrases.
5f8e6c50 4536
44652c16 4537 *Richard Levitte*
5f8e6c50 4538
44652c16
DMSP
4539 * Certificate time validation (X509_cmp_time) enforces stricter
4540 compliance with RFC 5280. Fractional seconds and timezone offsets
4541 are no longer allowed.
5f8e6c50 4542
44652c16 4543 *Emilia Käsper*
5f8e6c50 4544
257e9d03 4545### Changes between 1.0.2n and 1.0.2o [27 Mar 2018]
5f8e6c50 4546
44652c16 4547 * Constructed ASN.1 types with a recursive definition could exceed the stack
5f8e6c50 4548
44652c16
DMSP
4549 Constructed ASN.1 types with a recursive definition (such as can be found
4550 in PKCS7) could eventually exceed the stack given malicious input with
4551 excessive recursion. This could result in a Denial Of Service attack. There
4552 are no such structures used within SSL/TLS that come from untrusted sources
4553 so this is considered safe.
5f8e6c50 4554
44652c16
DMSP
4555 This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz
4556 project.
d8dc8538 4557 ([CVE-2018-0739])
5f8e6c50 4558
44652c16 4559 *Matt Caswell*
5f8e6c50 4560
257e9d03 4561### Changes between 1.0.2m and 1.0.2n [7 Dec 2017]
5f8e6c50 4562
44652c16 4563 * Read/write after SSL object in error state
5f8e6c50 4564
44652c16
DMSP
4565 OpenSSL 1.0.2 (starting from version 1.0.2b) introduced an "error state"
4566 mechanism. The intent was that if a fatal error occurred during a handshake
4567 then OpenSSL would move into the error state and would immediately fail if
4568 you attempted to continue the handshake. This works as designed for the
4569 explicit handshake functions (SSL_do_handshake(), SSL_accept() and
4570 SSL_connect()), however due to a bug it does not work correctly if
4571 SSL_read() or SSL_write() is called directly. In that scenario, if the
4572 handshake fails then a fatal error will be returned in the initial function
4573 call. If SSL_read()/SSL_write() is subsequently called by the application
4574 for the same SSL object then it will succeed and the data is passed without
4575 being decrypted/encrypted directly from the SSL/TLS record layer.
5f8e6c50 4576
44652c16
DMSP
4577 In order to exploit this issue an application bug would have to be present
4578 that resulted in a call to SSL_read()/SSL_write() being issued after having
4579 already received a fatal error.
5f8e6c50 4580
44652c16 4581 This issue was reported to OpenSSL by David Benjamin (Google).
d8dc8538 4582 ([CVE-2017-3737])
5f8e6c50
DMSP
4583
4584 *Matt Caswell*
4585
44652c16 4586 * rsaz_1024_mul_avx2 overflow bug on x86_64
5f8e6c50 4587
44652c16
DMSP
4588 There is an overflow bug in the AVX2 Montgomery multiplication procedure
4589 used in exponentiation with 1024-bit moduli. No EC algorithms are affected.
4590 Analysis suggests that attacks against RSA and DSA as a result of this
4591 defect would be very difficult to perform and are not believed likely.
4592 Attacks against DH1024 are considered just feasible, because most of the
4593 work necessary to deduce information about a private key may be performed
4594 offline. The amount of resources required for such an attack would be
4595 significant. However, for an attack on TLS to be meaningful, the server
4596 would have to share the DH1024 private key among multiple clients, which is
4597 no longer an option since CVE-2016-0701.
5f8e6c50 4598
44652c16
DMSP
4599 This only affects processors that support the AVX2 but not ADX extensions
4600 like Intel Haswell (4th generation).
5f8e6c50 4601
44652c16
DMSP
4602 This issue was reported to OpenSSL by David Benjamin (Google). The issue
4603 was originally found via the OSS-Fuzz project.
d8dc8538 4604 ([CVE-2017-3738])
5f8e6c50 4605
44652c16 4606 *Andy Polyakov*
5f8e6c50 4607
257e9d03 4608### Changes between 1.0.2l and 1.0.2m [2 Nov 2017]
44652c16
DMSP
4609
4610 * bn_sqrx8x_internal carry bug on x86_64
5f8e6c50
DMSP
4611
4612 There is a carry propagating bug in the x86_64 Montgomery squaring
4613 procedure. No EC algorithms are affected. Analysis suggests that attacks
4614 against RSA and DSA as a result of this defect would be very difficult to
4615 perform and are not believed likely. Attacks against DH are considered just
4616 feasible (although very difficult) because most of the work necessary to
4617 deduce information about a private key may be performed offline. The amount
4618 of resources required for such an attack would be very significant and
4619 likely only accessible to a limited number of attackers. An attacker would
4620 additionally need online access to an unpatched system using the target
4621 private key in a scenario with persistent DH parameters and a private
44652c16 4622 key that is shared between multiple clients.
5f8e6c50 4623
44652c16
DMSP
4624 This only affects processors that support the BMI1, BMI2 and ADX extensions
4625 like Intel Broadwell (5th generation) and later or AMD Ryzen.
4626
4627 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 4628 ([CVE-2017-3736])
5f8e6c50
DMSP
4629
4630 *Andy Polyakov*
4631
44652c16 4632 * Malformed X.509 IPAddressFamily could cause OOB read
5f8e6c50 4633
44652c16
DMSP
4634 If an X.509 certificate has a malformed IPAddressFamily extension,
4635 OpenSSL could do a one-byte buffer overread. The most likely result
4636 would be an erroneous display of the certificate in text format.
5f8e6c50 4637
44652c16 4638 This issue was reported to OpenSSL by the OSS-Fuzz project.
5f8e6c50 4639
44652c16 4640 *Rich Salz*
5f8e6c50 4641
257e9d03 4642### Changes between 1.0.2k and 1.0.2l [25 May 2017]
5f8e6c50 4643
44652c16
DMSP
4644 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
4645 platform rather than 'mingw'.
5f8e6c50 4646
44652c16 4647 *Richard Levitte*
5f8e6c50 4648
257e9d03 4649### Changes between 1.0.2j and 1.0.2k [26 Jan 2017]
5f8e6c50 4650
44652c16 4651 * Truncated packet could crash via OOB read
5f8e6c50 4652
44652c16
DMSP
4653 If one side of an SSL/TLS path is running on a 32-bit host and a specific
4654 cipher is being used, then a truncated packet can cause that host to
4655 perform an out-of-bounds read, usually resulting in a crash.
5f8e6c50 4656
44652c16 4657 This issue was reported to OpenSSL by Robert Święcki of Google.
d8dc8538 4658 ([CVE-2017-3731])
5f8e6c50 4659
44652c16 4660 *Andy Polyakov*
5f8e6c50 4661
44652c16 4662 * BN_mod_exp may produce incorrect results on x86_64
5f8e6c50 4663
44652c16
DMSP
4664 There is a carry propagating bug in the x86_64 Montgomery squaring
4665 procedure. No EC algorithms are affected. Analysis suggests that attacks
4666 against RSA and DSA as a result of this defect would be very difficult to
4667 perform and are not believed likely. Attacks against DH are considered just
4668 feasible (although very difficult) because most of the work necessary to
4669 deduce information about a private key may be performed offline. The amount
4670 of resources required for such an attack would be very significant and
4671 likely only accessible to a limited number of attackers. An attacker would
4672 additionally need online access to an unpatched system using the target
4673 private key in a scenario with persistent DH parameters and a private
4674 key that is shared between multiple clients. For example this can occur by
4675 default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very
4676 similar to CVE-2015-3193 but must be treated as a separate problem.
5f8e6c50 4677
44652c16 4678 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 4679 ([CVE-2017-3732])
5f8e6c50 4680
44652c16 4681 *Andy Polyakov*
5f8e6c50 4682
44652c16 4683 * Montgomery multiplication may produce incorrect results
5f8e6c50 4684
44652c16
DMSP
4685 There is a carry propagating bug in the Broadwell-specific Montgomery
4686 multiplication procedure that handles input lengths divisible by, but
4687 longer than 256 bits. Analysis suggests that attacks against RSA, DSA
4688 and DH private keys are impossible. This is because the subroutine in
4689 question is not used in operations with the private key itself and an input
4690 of the attacker's direct choice. Otherwise the bug can manifest itself as
4691 transient authentication and key negotiation failures or reproducible
4692 erroneous outcome of public-key operations with specially crafted input.
4693 Among EC algorithms only Brainpool P-512 curves are affected and one
4694 presumably can attack ECDH key negotiation. Impact was not analyzed in
4695 detail, because pre-requisites for attack are considered unlikely. Namely
4696 multiple clients have to choose the curve in question and the server has to
4697 share the private key among them, neither of which is default behaviour.
4698 Even then only clients that chose the curve will be affected.
5f8e6c50 4699
44652c16
DMSP
4700 This issue was publicly reported as transient failures and was not
4701 initially recognized as a security issue. Thanks to Richard Morgan for
4702 providing reproducible case.
d8dc8538 4703 ([CVE-2016-7055])
44652c16
DMSP
4704
4705 *Andy Polyakov*
4706
4707 * OpenSSL now fails if it receives an unrecognised record type in TLS1.0
4708 or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to
4709 prevent issues where no progress is being made and the peer continually
4710 sends unrecognised record types, using up resources processing them.
5f8e6c50
DMSP
4711
4712 *Matt Caswell*
4713
257e9d03 4714### Changes between 1.0.2i and 1.0.2j [26 Sep 2016]
5f8e6c50 4715
44652c16 4716 * Missing CRL sanity check
5f8e6c50 4717
44652c16
DMSP
4718 A bug fix which included a CRL sanity check was added to OpenSSL 1.1.0
4719 but was omitted from OpenSSL 1.0.2i. As a result any attempt to use
4720 CRLs in OpenSSL 1.0.2i will crash with a null pointer exception.
5f8e6c50 4721
44652c16 4722 This issue only affects the OpenSSL 1.0.2i
d8dc8538 4723 ([CVE-2016-7052])
5f8e6c50 4724
44652c16 4725 *Matt Caswell*
5f8e6c50 4726
257e9d03 4727### Changes between 1.0.2h and 1.0.2i [22 Sep 2016]
5f8e6c50 4728
44652c16 4729 * OCSP Status Request extension unbounded memory growth
5f8e6c50 4730
44652c16
DMSP
4731 A malicious client can send an excessively large OCSP Status Request
4732 extension. If that client continually requests renegotiation, sending a
4733 large OCSP Status Request extension each time, then there will be unbounded
4734 memory growth on the server. This will eventually lead to a Denial Of
4735 Service attack through memory exhaustion. Servers with a default
4736 configuration are vulnerable even if they do not support OCSP. Builds using
4737 the "no-ocsp" build time option are not affected.
5f8e6c50 4738
44652c16 4739 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4740 ([CVE-2016-6304])
5f8e6c50 4741
44652c16 4742 *Matt Caswell*
5f8e6c50 4743
44652c16
DMSP
4744 * In order to mitigate the SWEET32 attack, the DES ciphers were moved from
4745 HIGH to MEDIUM.
5f8e6c50 4746
44652c16
DMSP
4747 This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan
4748 Leurent (INRIA)
d8dc8538 4749 ([CVE-2016-2183])
5f8e6c50 4750
44652c16 4751 *Rich Salz*
5f8e6c50 4752
44652c16 4753 * OOB write in MDC2_Update()
5f8e6c50 4754
44652c16
DMSP
4755 An overflow can occur in MDC2_Update() either if called directly or
4756 through the EVP_DigestUpdate() function using MDC2. If an attacker
4757 is able to supply very large amounts of input data after a previous
4758 call to EVP_EncryptUpdate() with a partial block then a length check
4759 can overflow resulting in a heap corruption.
5f8e6c50 4760
44652c16
DMSP
4761 The amount of data needed is comparable to SIZE_MAX which is impractical
4762 on most platforms.
5f8e6c50 4763
44652c16 4764 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4765 ([CVE-2016-6303])
5f8e6c50
DMSP
4766
4767 *Stephen Henson*
4768
44652c16 4769 * Malformed SHA512 ticket DoS
5f8e6c50 4770
44652c16
DMSP
4771 If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a
4772 DoS attack where a malformed ticket will result in an OOB read which will
4773 ultimately crash.
5f8e6c50 4774
44652c16
DMSP
4775 The use of SHA512 in TLS session tickets is comparatively rare as it requires
4776 a custom server callback and ticket lookup mechanism.
5f8e6c50 4777
44652c16 4778 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4779 ([CVE-2016-6302])
5f8e6c50 4780
44652c16 4781 *Stephen Henson*
5f8e6c50 4782
44652c16 4783 * OOB write in BN_bn2dec()
5f8e6c50 4784
44652c16
DMSP
4785 The function BN_bn2dec() does not check the return value of BN_div_word().
4786 This can cause an OOB write if an application uses this function with an
4787 overly large BIGNUM. This could be a problem if an overly large certificate
4788 or CRL is printed out from an untrusted source. TLS is not affected because
4789 record limits will reject an oversized certificate before it is parsed.
5f8e6c50 4790
44652c16 4791 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4792 ([CVE-2016-2182])
5f8e6c50 4793
44652c16 4794 *Stephen Henson*
5f8e6c50 4795
44652c16 4796 * OOB read in TS_OBJ_print_bio()
5f8e6c50 4797
44652c16
DMSP
4798 The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is
4799 the total length the OID text representation would use and not the amount
4800 of data written. This will result in OOB reads when large OIDs are
4801 presented.
5f8e6c50 4802
44652c16 4803 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4804 ([CVE-2016-2180])
5f8e6c50 4805
44652c16 4806 *Stephen Henson*
5f8e6c50 4807
44652c16 4808 * Pointer arithmetic undefined behaviour
5f8e6c50 4809
44652c16 4810 Avoid some undefined pointer arithmetic
5f8e6c50 4811
44652c16
DMSP
4812 A common idiom in the codebase is to check limits in the following manner:
4813 "p + len > limit"
5f8e6c50 4814
44652c16
DMSP
4815 Where "p" points to some malloc'd data of SIZE bytes and
4816 limit == p + SIZE
5f8e6c50 4817
44652c16
DMSP
4818 "len" here could be from some externally supplied data (e.g. from a TLS
4819 message).
5f8e6c50 4820
44652c16
DMSP
4821 The rules of C pointer arithmetic are such that "p + len" is only well
4822 defined where len <= SIZE. Therefore the above idiom is actually
4823 undefined behaviour.
5f8e6c50 4824
44652c16
DMSP
4825 For example this could cause problems if some malloc implementation
4826 provides an address for "p" such that "p + len" actually overflows for
4827 values of len that are too big and therefore p + len < limit.
5f8e6c50 4828
44652c16 4829 This issue was reported to OpenSSL by Guido Vranken
d8dc8538 4830 ([CVE-2016-2177])
5f8e6c50 4831
44652c16 4832 *Matt Caswell*
5f8e6c50 4833
44652c16 4834 * Constant time flag not preserved in DSA signing
5f8e6c50 4835
44652c16
DMSP
4836 Operations in the DSA signing algorithm should run in constant time in
4837 order to avoid side channel attacks. A flaw in the OpenSSL DSA
4838 implementation means that a non-constant time codepath is followed for
4839 certain operations. This has been demonstrated through a cache-timing
4840 attack to be sufficient for an attacker to recover the private DSA key.
5f8e6c50 4841
44652c16
DMSP
4842 This issue was reported by César Pereida (Aalto University), Billy Brumley
4843 (Tampere University of Technology), and Yuval Yarom (The University of
4844 Adelaide and NICTA).
d8dc8538 4845 ([CVE-2016-2178])
5f8e6c50 4846
44652c16 4847 *César Pereida*
5f8e6c50 4848
44652c16 4849 * DTLS buffered message DoS
5f8e6c50 4850
44652c16
DMSP
4851 In a DTLS connection where handshake messages are delivered out-of-order
4852 those messages that OpenSSL is not yet ready to process will be buffered
4853 for later use. Under certain circumstances, a flaw in the logic means that
4854 those messages do not get removed from the buffer even though the handshake
4855 has been completed. An attacker could force up to approx. 15 messages to
4856 remain in the buffer when they are no longer required. These messages will
4857 be cleared when the DTLS connection is closed. The default maximum size for
4858 a message is 100k. Therefore the attacker could force an additional 1500k
4859 to be consumed per connection. By opening many simulataneous connections an
4860 attacker could cause a DoS attack through memory exhaustion.
5f8e6c50 4861
44652c16 4862 This issue was reported to OpenSSL by Quan Luo.
d8dc8538 4863 ([CVE-2016-2179])
5f8e6c50 4864
44652c16 4865 *Matt Caswell*
5f8e6c50 4866
44652c16 4867 * DTLS replay protection DoS
5f8e6c50 4868
44652c16
DMSP
4869 A flaw in the DTLS replay attack protection mechanism means that records
4870 that arrive for future epochs update the replay protection "window" before
4871 the MAC for the record has been validated. This could be exploited by an
4872 attacker by sending a record for the next epoch (which does not have to
4873 decrypt or have a valid MAC), with a very large sequence number. This means
4874 that all subsequent legitimate packets are dropped causing a denial of
4875 service for a specific DTLS connection.
5f8e6c50 4876
44652c16 4877 This issue was reported to OpenSSL by the OCAP audit team.
d8dc8538 4878 ([CVE-2016-2181])
5f8e6c50 4879
44652c16 4880 *Matt Caswell*
5f8e6c50 4881
44652c16 4882 * Certificate message OOB reads
5f8e6c50 4883
44652c16
DMSP
4884 In OpenSSL 1.0.2 and earlier some missing message length checks can result
4885 in OOB reads of up to 2 bytes beyond an allocated buffer. There is a
4886 theoretical DoS risk but this has not been observed in practice on common
4887 platforms.
5f8e6c50 4888
44652c16
DMSP
4889 The messages affected are client certificate, client certificate request
4890 and server certificate. As a result the attack can only be performed
4891 against a client or a server which enables client authentication.
5f8e6c50 4892
44652c16 4893 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4894 ([CVE-2016-6306])
5f8e6c50 4895
44652c16 4896 *Stephen Henson*
5f8e6c50 4897
257e9d03 4898### Changes between 1.0.2g and 1.0.2h [3 May 2016]
5f8e6c50 4899
44652c16 4900 * Prevent padding oracle in AES-NI CBC MAC check
5f8e6c50 4901
44652c16
DMSP
4902 A MITM attacker can use a padding oracle attack to decrypt traffic
4903 when the connection uses an AES CBC cipher and the server support
4904 AES-NI.
5f8e6c50 4905
44652c16 4906 This issue was introduced as part of the fix for Lucky 13 padding
d8dc8538 4907 attack ([CVE-2013-0169]). The padding check was rewritten to be in
44652c16
DMSP
4908 constant time by making sure that always the same bytes are read and
4909 compared against either the MAC or padding bytes. But it no longer
4910 checked that there was enough data to have both the MAC and padding
4911 bytes.
5f8e6c50 4912
44652c16 4913 This issue was reported by Juraj Somorovsky using TLS-Attacker.
5f8e6c50 4914
44652c16 4915 *Kurt Roeckx*
5f8e6c50 4916
44652c16
DMSP
4917 * Fix EVP_EncodeUpdate overflow
4918
4919 An overflow can occur in the EVP_EncodeUpdate() function which is used for
4920 Base64 encoding of binary data. If an attacker is able to supply very large
4921 amounts of input data then a length check can overflow resulting in a heap
4922 corruption.
4923
4924 Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by
257e9d03 4925 the `PEM_write_bio*` family of functions. These are mainly used within the
44652c16
DMSP
4926 OpenSSL command line applications, so any application which processes data
4927 from an untrusted source and outputs it as a PEM file should be considered
4928 vulnerable to this issue. User applications that call these APIs directly
4929 with large amounts of untrusted data may also be vulnerable.
4930
4931 This issue was reported by Guido Vranken.
d8dc8538 4932 ([CVE-2016-2105])
5f8e6c50
DMSP
4933
4934 *Matt Caswell*
4935
44652c16 4936 * Fix EVP_EncryptUpdate overflow
5f8e6c50 4937
44652c16
DMSP
4938 An overflow can occur in the EVP_EncryptUpdate() function. If an attacker
4939 is able to supply very large amounts of input data after a previous call to
4940 EVP_EncryptUpdate() with a partial block then a length check can overflow
4941 resulting in a heap corruption. Following an analysis of all OpenSSL
4942 internal usage of the EVP_EncryptUpdate() function all usage is one of two
4943 forms. The first form is where the EVP_EncryptUpdate() call is known to be
4944 the first called function after an EVP_EncryptInit(), and therefore that
4945 specific call must be safe. The second form is where the length passed to
4946 EVP_EncryptUpdate() can be seen from the code to be some small value and
4947 therefore there is no possibility of an overflow. Since all instances are
4948 one of these two forms, it is believed that there can be no overflows in
4949 internal code due to this problem. It should be noted that
4950 EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths.
4951 Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances
4952 of these calls have also been analysed too and it is believed there are no
4953 instances in internal usage where an overflow could occur.
5f8e6c50 4954
44652c16 4955 This issue was reported by Guido Vranken.
d8dc8538 4956 ([CVE-2016-2106])
5f8e6c50
DMSP
4957
4958 *Matt Caswell*
4959
44652c16 4960 * Prevent ASN.1 BIO excessive memory allocation
5f8e6c50 4961
44652c16
DMSP
4962 When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio()
4963 a short invalid encoding can cause allocation of large amounts of memory
4964 potentially consuming excessive resources or exhausting memory.
5f8e6c50 4965
44652c16
DMSP
4966 Any application parsing untrusted data through d2i BIO functions is
4967 affected. The memory based functions such as d2i_X509() are *not* affected.
4968 Since the memory based functions are used by the TLS library, TLS
4969 applications are not affected.
4970
4971 This issue was reported by Brian Carpenter.
d8dc8538 4972 ([CVE-2016-2109])
5f8e6c50
DMSP
4973
4974 *Stephen Henson*
4975
44652c16 4976 * EBCDIC overread
5f8e6c50 4977
44652c16
DMSP
4978 ASN1 Strings that are over 1024 bytes can cause an overread in applications
4979 using the X509_NAME_oneline() function on EBCDIC systems. This could result
4980 in arbitrary stack data being returned in the buffer.
5f8e6c50 4981
44652c16 4982 This issue was reported by Guido Vranken.
d8dc8538 4983 ([CVE-2016-2176])
5f8e6c50 4984
44652c16 4985 *Matt Caswell*
5f8e6c50 4986
44652c16
DMSP
4987 * Modify behavior of ALPN to invoke callback after SNI/servername
4988 callback, such that updates to the SSL_CTX affect ALPN.
5f8e6c50 4989
44652c16 4990 *Todd Short*
5f8e6c50 4991
44652c16
DMSP
4992 * Remove LOW from the DEFAULT cipher list. This removes singles DES from the
4993 default.
4994
4995 *Kurt Roeckx*
4996
4997 * Only remove the SSLv2 methods with the no-ssl2-method option. When the
4998 methods are enabled and ssl2 is disabled the methods return NULL.
4999
5000 *Kurt Roeckx*
5001
257e9d03 5002### Changes between 1.0.2f and 1.0.2g [1 Mar 2016]
44652c16
DMSP
5003
5004* Disable weak ciphers in SSLv3 and up in default builds of OpenSSL.
5005 Builds that are not configured with "enable-weak-ssl-ciphers" will not
5006 provide any "EXPORT" or "LOW" strength ciphers.
5007
5008 *Viktor Dukhovni*
5009
5010* Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2
5011 is by default disabled at build-time. Builds that are not configured with
5012 "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used,
5013 users who want to negotiate SSLv2 via the version-flexible SSLv23_method()
5014 will need to explicitly call either of:
5015
5016 SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
5017 or
5018 SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
5019
5020 as appropriate. Even if either of those is used, or the application
5021 explicitly uses the version-specific SSLv2_method() or its client and
5022 server variants, SSLv2 ciphers vulnerable to exhaustive search key
5023 recovery have been removed. Specifically, the SSLv2 40-bit EXPORT
5024 ciphers, and SSLv2 56-bit DES are no longer available.
d8dc8538 5025 ([CVE-2016-0800])
44652c16
DMSP
5026
5027 *Viktor Dukhovni*
5028
5029 * Fix a double-free in DSA code
5030
5031 A double free bug was discovered when OpenSSL parses malformed DSA private
5032 keys and could lead to a DoS attack or memory corruption for applications
5033 that receive DSA private keys from untrusted sources. This scenario is
5034 considered rare.
5035
5036 This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using
5037 libFuzzer.
d8dc8538 5038 ([CVE-2016-0705])
44652c16
DMSP
5039
5040 *Stephen Henson*
5041
5042 * Disable SRP fake user seed to address a server memory leak.
5043
5044 Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
5045
5046 SRP_VBASE_get_by_user had inconsistent memory management behaviour.
5047 In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user
5048 was changed to ignore the "fake user" SRP seed, even if the seed
5049 is configured.
5050
5051 Users should use SRP_VBASE_get1_by_user instead. Note that in
5052 SRP_VBASE_get1_by_user, caller must free the returned value. Note
5053 also that even though configuring the SRP seed attempts to hide
5054 invalid usernames by continuing the handshake with fake
5055 credentials, this behaviour is not constant time and no strong
5056 guarantees are made that the handshake is indistinguishable from
5057 that of a valid user.
d8dc8538 5058 ([CVE-2016-0798])
44652c16
DMSP
5059
5060 *Emilia Käsper*
5061
5062 * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption
5063
5064 In the BN_hex2bn function the number of hex digits is calculated using an
1dc1ea18
DDO
5065 int value `i`. Later `bn_expand` is called with a value of `i * 4`. For
5066 large values of `i` this can result in `bn_expand` not allocating any
5067 memory because `i * 4` is negative. This can leave the internal BIGNUM data
44652c16 5068 field as NULL leading to a subsequent NULL ptr deref. For very large values
1dc1ea18 5069 of `i`, the calculation `i * 4` could be a positive value smaller than `i`.
44652c16
DMSP
5070 In this case memory is allocated to the internal BIGNUM data field, but it
5071 is insufficiently sized leading to heap corruption. A similar issue exists
5072 in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn
5073 is ever called by user applications with very large untrusted hex/dec data.
5074 This is anticipated to be a rare occurrence.
5075
5076 All OpenSSL internal usage of these functions use data that is not expected
5077 to be untrusted, e.g. config file data or application command line
5078 arguments. If user developed applications generate config file data based
5079 on untrusted data then it is possible that this could also lead to security
5080 consequences. This is also anticipated to be rare.
5081
5082 This issue was reported to OpenSSL by Guido Vranken.
d8dc8538 5083 ([CVE-2016-0797])
44652c16
DMSP
5084
5085 *Matt Caswell*
5086
257e9d03 5087 * Fix memory issues in `BIO_*printf` functions
44652c16 5088
1dc1ea18 5089 The internal `fmtstr` function used in processing a "%s" format string in
257e9d03 5090 the `BIO_*printf` functions could overflow while calculating the length of a
44652c16
DMSP
5091 string and cause an OOB read when printing very long strings.
5092
1dc1ea18 5093 Additionally the internal `doapr_outch` function can attempt to write to an
44652c16
DMSP
5094 OOB memory location (at an offset from the NULL pointer) in the event of a
5095 memory allocation failure. In 1.0.2 and below this could be caused where
5096 the size of a buffer to be allocated is greater than INT_MAX. E.g. this
5097 could be in processing a very long "%s" format string. Memory leaks can
5098 also occur.
5099
5100 The first issue may mask the second issue dependent on compiler behaviour.
5101 These problems could enable attacks where large amounts of untrusted data
257e9d03 5102 is passed to the `BIO_*printf` functions. If applications use these functions
44652c16
DMSP
5103 in this way then they could be vulnerable. OpenSSL itself uses these
5104 functions when printing out human-readable dumps of ASN.1 data. Therefore
5105 applications that print this data could be vulnerable if the data is from
5106 untrusted sources. OpenSSL command line applications could also be
5107 vulnerable where they print out ASN.1 data, or if untrusted data is passed
5108 as command line arguments.
5109
5110 Libssl is not considered directly vulnerable. Additionally certificates etc
5111 received via remote connections via libssl are also unlikely to be able to
5112 trigger these issues because of message size limits enforced within libssl.
5113
5114 This issue was reported to OpenSSL Guido Vranken.
d8dc8538 5115 ([CVE-2016-0799])
44652c16
DMSP
5116
5117 *Matt Caswell*
5118
5119 * Side channel attack on modular exponentiation
5120
5121 A side-channel attack was found which makes use of cache-bank conflicts on
5122 the Intel Sandy-Bridge microarchitecture which could lead to the recovery
5123 of RSA keys. The ability to exploit this issue is limited as it relies on
5124 an attacker who has control of code in a thread running on the same
5125 hyper-threaded core as the victim thread which is performing decryptions.
5126
5127 This issue was reported to OpenSSL by Yuval Yarom, The University of
5128 Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and
5129 Nadia Heninger, University of Pennsylvania with more information at
257e9d03 5130 <http://cachebleed.info>.
d8dc8538 5131 ([CVE-2016-0702])
44652c16
DMSP
5132
5133 *Andy Polyakov*
5134
ec2bfb7d 5135 * Change the `req` command to generate a 2048-bit RSA/DSA key by default,
44652c16
DMSP
5136 if no keysize is specified with default_bits. This fixes an
5137 omission in an earlier change that changed all RSA/DSA key generation
ec2bfb7d 5138 commands to use 2048 bits by default.
44652c16
DMSP
5139
5140 *Emilia Käsper*
5141
257e9d03
RS
5142### Changes between 1.0.2e and 1.0.2f [28 Jan 2016]
5143
44652c16
DMSP
5144 * DH small subgroups
5145
5146 Historically OpenSSL only ever generated DH parameters based on "safe"
5147 primes. More recently (in version 1.0.2) support was provided for
5148 generating X9.42 style parameter files such as those required for RFC 5114
5149 support. The primes used in such files may not be "safe". Where an
5150 application is using DH configured with parameters based on primes that are
5151 not "safe" then an attacker could use this fact to find a peer's private
5152 DH exponent. This attack requires that the attacker complete multiple
5153 handshakes in which the peer uses the same private DH exponent. For example
5154 this could be used to discover a TLS server's private DH exponent if it's
5155 reusing the private DH exponent or it's using a static DH ciphersuite.
5156
5157 OpenSSL provides the option SSL_OP_SINGLE_DH_USE for ephemeral DH (DHE) in
5158 TLS. It is not on by default. If the option is not set then the server
5159 reuses the same private DH exponent for the life of the server process and
5160 would be vulnerable to this attack. It is believed that many popular
5161 applications do set this option and would therefore not be at risk.
5162
5163 The fix for this issue adds an additional check where a "q" parameter is
5164 available (as is the case in X9.42 based parameters). This detects the
5165 only known attack, and is the only possible defense for static DH
5166 ciphersuites. This could have some performance impact.
5167
5168 Additionally the SSL_OP_SINGLE_DH_USE option has been switched on by
5169 default and cannot be disabled. This could have some performance impact.
5170
5171 This issue was reported to OpenSSL by Antonio Sanso (Adobe).
d8dc8538 5172 ([CVE-2016-0701])
44652c16
DMSP
5173
5174 *Matt Caswell*
5175
5176 * SSLv2 doesn't block disabled ciphers
5177
5178 A malicious client can negotiate SSLv2 ciphers that have been disabled on
5179 the server and complete SSLv2 handshakes even if all SSLv2 ciphers have
5180 been disabled, provided that the SSLv2 protocol was not also disabled via
5181 SSL_OP_NO_SSLv2.
5182
5183 This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram
5184 and Sebastian Schinzel.
d8dc8538 5185 ([CVE-2015-3197])
44652c16
DMSP
5186
5187 *Viktor Dukhovni*
5188
257e9d03 5189### Changes between 1.0.2d and 1.0.2e [3 Dec 2015]
44652c16
DMSP
5190
5191 * BN_mod_exp may produce incorrect results on x86_64
5192
5193 There is a carry propagating bug in the x86_64 Montgomery squaring
5194 procedure. No EC algorithms are affected. Analysis suggests that attacks
5195 against RSA and DSA as a result of this defect would be very difficult to
5196 perform and are not believed likely. Attacks against DH are considered just
5197 feasible (although very difficult) because most of the work necessary to
5198 deduce information about a private key may be performed offline. The amount
5199 of resources required for such an attack would be very significant and
5200 likely only accessible to a limited number of attackers. An attacker would
5201 additionally need online access to an unpatched system using the target
5202 private key in a scenario with persistent DH parameters and a private
5203 key that is shared between multiple clients. For example this can occur by
5204 default in OpenSSL DHE based SSL/TLS ciphersuites.
5205
5206 This issue was reported to OpenSSL by Hanno Böck.
d8dc8538 5207 ([CVE-2015-3193])
44652c16
DMSP
5208
5209 *Andy Polyakov*
5210
5211 * Certificate verify crash with missing PSS parameter
5212
5213 The signature verification routines will crash with a NULL pointer
5214 dereference if presented with an ASN.1 signature using the RSA PSS
5215 algorithm and absent mask generation function parameter. Since these
5216 routines are used to verify certificate signature algorithms this can be
5217 used to crash any certificate verification operation and exploited in a
5218 DoS attack. Any application which performs certificate verification is
5219 vulnerable including OpenSSL clients and servers which enable client
5220 authentication.
5221
5222 This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG).
d8dc8538 5223 ([CVE-2015-3194])
44652c16
DMSP
5224
5225 *Stephen Henson*
5226
5227 * X509_ATTRIBUTE memory leak
5228
5229 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
5230 memory. This structure is used by the PKCS#7 and CMS routines so any
5231 application which reads PKCS#7 or CMS data from untrusted sources is
5232 affected. SSL/TLS is not affected.
5233
5234 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
5235 libFuzzer.
d8dc8538 5236 ([CVE-2015-3195])
44652c16
DMSP
5237
5238 *Stephen Henson*
5239
5240 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
5241 This changes the decoding behaviour for some invalid messages,
5242 though the change is mostly in the more lenient direction, and
5243 legacy behaviour is preserved as much as possible.
5244
5245 *Emilia Käsper*
5246
5247 * In DSA_generate_parameters_ex, if the provided seed is too short,
5248 return an error
5249
5250 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
5251
257e9d03 5252### Changes between 1.0.2c and 1.0.2d [9 Jul 2015]
44652c16
DMSP
5253
5254 * Alternate chains certificate forgery
5255
5256 During certificate verification, OpenSSL will attempt to find an
5257 alternative certificate chain if the first attempt to build such a chain
5258 fails. An error in the implementation of this logic can mean that an
5259 attacker could cause certain checks on untrusted certificates to be
5260 bypassed, such as the CA flag, enabling them to use a valid leaf
5261 certificate to act as a CA and "issue" an invalid certificate.
5262
5263 This issue was reported to OpenSSL by Adam Langley/David Benjamin
5264 (Google/BoringSSL).
5265
5266 *Matt Caswell*
5267
257e9d03 5268### Changes between 1.0.2b and 1.0.2c [12 Jun 2015]
44652c16
DMSP
5269
5270 * Fix HMAC ABI incompatibility. The previous version introduced an ABI
5271 incompatibility in the handling of HMAC. The previous ABI has now been
5272 restored.
5273
5274 *Matt Caswell*
5275
257e9d03 5276### Changes between 1.0.2a and 1.0.2b [11 Jun 2015]
44652c16
DMSP
5277
5278 * Malformed ECParameters causes infinite loop
5279
5280 When processing an ECParameters structure OpenSSL enters an infinite loop
5281 if the curve specified is over a specially malformed binary polynomial
5282 field.
5283
5284 This can be used to perform denial of service against any
5285 system which processes public keys, certificate requests or
5286 certificates. This includes TLS clients and TLS servers with
5287 client authentication enabled.
5288
5289 This issue was reported to OpenSSL by Joseph Barr-Pixton.
d8dc8538 5290 ([CVE-2015-1788])
44652c16
DMSP
5291
5292 *Andy Polyakov*
5293
5294 * Exploitable out-of-bounds read in X509_cmp_time
5295
5296 X509_cmp_time does not properly check the length of the ASN1_TIME
5297 string and can read a few bytes out of bounds. In addition,
5298 X509_cmp_time accepts an arbitrary number of fractional seconds in the
5299 time string.
5300
5301 An attacker can use this to craft malformed certificates and CRLs of
5302 various sizes and potentially cause a segmentation fault, resulting in
5303 a DoS on applications that verify certificates or CRLs. TLS clients
5304 that verify CRLs are affected. TLS clients and servers with client
5305 authentication enabled may be affected if they use custom verification
5306 callbacks.
5307
5308 This issue was reported to OpenSSL by Robert Swiecki (Google), and
5309 independently by Hanno Böck.
d8dc8538 5310 ([CVE-2015-1789])
44652c16
DMSP
5311
5312 *Emilia Käsper*
5313
5314 * PKCS7 crash with missing EnvelopedContent
5315
5316 The PKCS#7 parsing code does not handle missing inner EncryptedContent
5317 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
5318 with missing content and trigger a NULL pointer dereference on parsing.
5319
5320 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
5321 structures from untrusted sources are affected. OpenSSL clients and
5322 servers are not affected.
5323
5324 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 5325 ([CVE-2015-1790])
44652c16
DMSP
5326
5327 *Emilia Käsper*
5328
5329 * CMS verify infinite loop with unknown hash function
5330
5331 When verifying a signedData message the CMS code can enter an infinite loop
5332 if presented with an unknown hash function OID. This can be used to perform
5333 denial of service against any system which verifies signedData messages using
5334 the CMS code.
5335 This issue was reported to OpenSSL by Johannes Bauer.
d8dc8538 5336 ([CVE-2015-1792])
44652c16
DMSP
5337
5338 *Stephen Henson*
5339
5340 * Race condition handling NewSessionTicket
5341
5342 If a NewSessionTicket is received by a multi-threaded client when attempting to
5343 reuse a previous ticket then a race condition can occur potentially leading to
5344 a double free of the ticket data.
d8dc8538 5345 ([CVE-2015-1791])
44652c16
DMSP
5346
5347 *Matt Caswell*
5348
5349 * Only support 256-bit or stronger elliptic curves with the
5350 'ecdh_auto' setting (server) or by default (client). Of supported
5351 curves, prefer P-256 (both).
5352
5353 *Emilia Kasper*
5354
257e9d03 5355### Changes between 1.0.2 and 1.0.2a [19 Mar 2015]
44652c16
DMSP
5356
5357 * ClientHello sigalgs DoS fix
5358
5359 If a client connects to an OpenSSL 1.0.2 server and renegotiates with an
5360 invalid signature algorithms extension a NULL pointer dereference will
5361 occur. This can be exploited in a DoS attack against the server.
5362
5363 This issue was was reported to OpenSSL by David Ramos of Stanford
5364 University.
d8dc8538 5365 ([CVE-2015-0291])
44652c16
DMSP
5366
5367 *Stephen Henson and Matt Caswell*
5368
5369 * Multiblock corrupted pointer fix
5370
5371 OpenSSL 1.0.2 introduced the "multiblock" performance improvement. This
5372 feature only applies on 64 bit x86 architecture platforms that support AES
5373 NI instructions. A defect in the implementation of "multiblock" can cause
5374 OpenSSL's internal write buffer to become incorrectly set to NULL when
5375 using non-blocking IO. Typically, when the user application is using a
5376 socket BIO for writing, this will only result in a failed connection.
5377 However if some other BIO is used then it is likely that a segmentation
5378 fault will be triggered, thus enabling a potential DoS attack.
5379
5380 This issue was reported to OpenSSL by Daniel Danner and Rainer Mueller.
d8dc8538 5381 ([CVE-2015-0290])
44652c16
DMSP
5382
5383 *Matt Caswell*
5384
5385 * Segmentation fault in DTLSv1_listen fix
5386
5387 The DTLSv1_listen function is intended to be stateless and processes the
5388 initial ClientHello from many peers. It is common for user code to loop
5389 over the call to DTLSv1_listen until a valid ClientHello is received with
5390 an associated cookie. A defect in the implementation of DTLSv1_listen means
5391 that state is preserved in the SSL object from one invocation to the next
5392 that can lead to a segmentation fault. Errors processing the initial
5393 ClientHello can trigger this scenario. An example of such an error could be
5394 that a DTLS1.0 only client is attempting to connect to a DTLS1.2 only
5395 server.
5396
5397 This issue was reported to OpenSSL by Per Allansson.
d8dc8538 5398 ([CVE-2015-0207])
44652c16
DMSP
5399
5400 *Matt Caswell*
5401
5402 * Segmentation fault in ASN1_TYPE_cmp fix
5403
5404 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
5405 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
5406 certificate signature algorithm consistency this can be used to crash any
5407 certificate verification operation and exploited in a DoS attack. Any
5408 application which performs certificate verification is vulnerable including
5409 OpenSSL clients and servers which enable client authentication.
d8dc8538 5410 ([CVE-2015-0286])
44652c16
DMSP
5411
5412 *Stephen Henson*
5413
5414 * Segmentation fault for invalid PSS parameters fix
5415
5416 The signature verification routines will crash with a NULL pointer
5417 dereference if presented with an ASN.1 signature using the RSA PSS
5418 algorithm and invalid parameters. Since these routines are used to verify
5419 certificate signature algorithms this can be used to crash any
5420 certificate verification operation and exploited in a DoS attack. Any
5421 application which performs certificate verification is vulnerable including
5422 OpenSSL clients and servers which enable client authentication.
5423
5424 This issue was was reported to OpenSSL by Brian Carpenter.
d8dc8538 5425 ([CVE-2015-0208])
44652c16
DMSP
5426
5427 *Stephen Henson*
5428
5429 * ASN.1 structure reuse memory corruption fix
5430
5431 Reusing a structure in ASN.1 parsing may allow an attacker to cause
5432 memory corruption via an invalid write. Such reuse is and has been
5433 strongly discouraged and is believed to be rare.
5434
5435 Applications that parse structures containing CHOICE or ANY DEFINED BY
5436 components may be affected. Certificate parsing (d2i_X509 and related
5437 functions) are however not affected. OpenSSL clients and servers are
5438 not affected.
d8dc8538 5439 ([CVE-2015-0287])
44652c16
DMSP
5440
5441 *Stephen Henson*
5442
5443 * PKCS7 NULL pointer dereferences fix
5444
5445 The PKCS#7 parsing code does not handle missing outer ContentInfo
5446 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
5447 missing content and trigger a NULL pointer dereference on parsing.
5448
5449 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
5450 otherwise parse PKCS#7 structures from untrusted sources are
5451 affected. OpenSSL clients and servers are not affected.
5452
5453 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 5454 ([CVE-2015-0289])
44652c16
DMSP
5455
5456 *Emilia Käsper*
5457
5458 * DoS via reachable assert in SSLv2 servers fix
5459
5460 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
5461 servers that both support SSLv2 and enable export cipher suites by sending
5462 a specially crafted SSLv2 CLIENT-MASTER-KEY message.
5463
5464 This issue was discovered by Sean Burford (Google) and Emilia Käsper
5465 (OpenSSL development team).
d8dc8538 5466 ([CVE-2015-0293])
44652c16
DMSP
5467
5468 *Emilia Käsper*
5469
5470 * Empty CKE with client auth and DHE fix
5471
5472 If client auth is used then a server can seg fault in the event of a DHE
5473 ciphersuite being selected and a zero length ClientKeyExchange message
5474 being sent by the client. This could be exploited in a DoS attack.
d8dc8538 5475 ([CVE-2015-1787])
44652c16
DMSP
5476
5477 *Matt Caswell*
5478
5479 * Handshake with unseeded PRNG fix
5480
5481 Under certain conditions an OpenSSL 1.0.2 client can complete a handshake
5482 with an unseeded PRNG. The conditions are:
5483 - The client is on a platform where the PRNG has not been seeded
5484 automatically, and the user has not seeded manually
5485 - A protocol specific client method version has been used (i.e. not
5486 SSL_client_methodv23)
5487 - A ciphersuite is used that does not require additional random data from
5488 the PRNG beyond the initial ClientHello client random (e.g. PSK-RC4-SHA).
5489
5490 If the handshake succeeds then the client random that has been used will
5491 have been generated from a PRNG with insufficient entropy and therefore the
5492 output may be predictable.
5493
5494 For example using the following command with an unseeded openssl will
5495 succeed on an unpatched platform:
5496
5497 openssl s_client -psk 1a2b3c4d -tls1_2 -cipher PSK-RC4-SHA
d8dc8538 5498 ([CVE-2015-0285])
44652c16
DMSP
5499
5500 *Matt Caswell*
5501
5502 * Use After Free following d2i_ECPrivatekey error fix
5503
5504 A malformed EC private key file consumed via the d2i_ECPrivateKey function
5505 could cause a use after free condition. This, in turn, could cause a double
5506 free in several private key parsing functions (such as d2i_PrivateKey
5507 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
5508 for applications that receive EC private keys from untrusted
5509 sources. This scenario is considered rare.
5510
5511 This issue was discovered by the BoringSSL project and fixed in their
5512 commit 517073cd4b.
d8dc8538 5513 ([CVE-2015-0209])
44652c16
DMSP
5514
5515 *Matt Caswell*
5516
5517 * X509_to_X509_REQ NULL pointer deref fix
5518
5519 The function X509_to_X509_REQ will crash with a NULL pointer dereference if
5520 the certificate key is invalid. This function is rarely used in practice.
5521
5522 This issue was discovered by Brian Carpenter.
d8dc8538 5523 ([CVE-2015-0288])
44652c16
DMSP
5524
5525 *Stephen Henson*
5526
5527 * Removed the export ciphers from the DEFAULT ciphers
5528
5529 *Kurt Roeckx*
5530
257e9d03 5531### Changes between 1.0.1l and 1.0.2 [22 Jan 2015]
44652c16
DMSP
5532
5533 * Facilitate "universal" ARM builds targeting range of ARM ISAs, e.g.
5534 ARMv5 through ARMv8, as opposite to "locking" it to single one.
5535 So far those who have to target multiple platforms would compromise
5536 and argue that binary targeting say ARMv5 would still execute on
5537 ARMv8. "Universal" build resolves this compromise by providing
5538 near-optimal performance even on newer platforms.
5539
5540 *Andy Polyakov*
5541
5542 * Accelerated NIST P-256 elliptic curve implementation for x86_64
5543 (other platforms pending).
5544
5545 *Shay Gueron & Vlad Krasnov (Intel Corp), Andy Polyakov*
5f8e6c50
DMSP
5546
5547 * Add support for the SignedCertificateTimestampList certificate and
5548 OCSP response extensions from RFC6962.
5549
44652c16
DMSP
5550 *Rob Stradling*
5551
5552 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
5553 for corner cases. (Certain input points at infinity could lead to
5554 bogus results, with non-infinity inputs mapped to infinity too.)
5555
5556 *Bodo Moeller*
5557
5558 * Initial support for PowerISA 2.0.7, first implemented in POWER8.
5559 This covers AES, SHA256/512 and GHASH. "Initial" means that most
5560 common cases are optimized and there still is room for further
5561 improvements. Vector Permutation AES for Altivec is also added.
5562
5563 *Andy Polyakov*
5564
5565 * Add support for little-endian ppc64 Linux target.
5566
5567 *Marcelo Cerri (IBM)*
5568
5569 * Initial support for AMRv8 ISA crypto extensions. This covers AES,
5570 SHA1, SHA256 and GHASH. "Initial" means that most common cases
5571 are optimized and there still is room for further improvements.
5572 Both 32- and 64-bit modes are supported.
5573
5574 *Andy Polyakov, Ard Biesheuvel (Linaro)*
5575
5576 * Improved ARMv7 NEON support.
5577
5578 *Andy Polyakov*
5579
5580 * Support for SPARC Architecture 2011 crypto extensions, first
5581 implemented in SPARC T4. This covers AES, DES, Camellia, SHA1,
5582 SHA256/512, MD5, GHASH and modular exponentiation.
5583
5584 *Andy Polyakov, David Miller*
5585
5586 * Accelerated modular exponentiation for Intel processors, a.k.a.
5587 RSAZ.
5588
5589 *Shay Gueron & Vlad Krasnov (Intel Corp)*
5590
5591 * Support for new and upcoming Intel processors, including AVX2,
5592 BMI and SHA ISA extensions. This includes additional "stitched"
5593 implementations, AESNI-SHA256 and GCM, and multi-buffer support
5594 for TLS encrypt.
5595
5596 This work was sponsored by Intel Corp.
5597
5598 *Andy Polyakov*
5599
5600 * Support for DTLS 1.2. This adds two sets of DTLS methods: DTLS_*_method()
5601 supports both DTLS 1.2 and 1.0 and should use whatever version the peer
5602 supports and DTLSv1_2_*_method() which supports DTLS 1.2 only.
5603
5604 *Steve Henson*
5605
5606 * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
5607 this fixes a limitation in previous versions of OpenSSL.
5608
5609 *Steve Henson*
5610
5611 * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
5612 MGF1 digest and OAEP label.
5613
5614 *Steve Henson*
5615
5616 * Add EVP support for key wrapping algorithms, to avoid problems with
5617 existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
5618 the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
5619 algorithms and include tests cases.
5620
5621 *Steve Henson*
5622
5623 * Add functions to allocate and set the fields of an ECDSA_METHOD
5624 structure.
5625
5626 *Douglas E. Engert, Steve Henson*
5627
5628 * New functions OPENSSL_gmtime_diff and ASN1_TIME_diff to find the
5629 difference in days and seconds between two tm or ASN1_TIME structures.
5630
5631 *Steve Henson*
5632
5633 * Add -rev test option to s_server to just reverse order of characters
5634 received by client and send back to server. Also prints an abbreviated
5635 summary of the connection parameters.
5636
5637 *Steve Henson*
5638
5639 * New option -brief for s_client and s_server to print out a brief summary
5640 of connection parameters.
5641
5642 *Steve Henson*
5643
5644 * Add callbacks for arbitrary TLS extensions.
5645
5646 *Trevor Perrin <trevp@trevp.net> and Ben Laurie*
5647
5648 * New option -crl_download in several openssl utilities to download CRLs
5649 from CRLDP extension in certificates.
5650
5651 *Steve Henson*
5652
5653 * New options -CRL and -CRLform for s_client and s_server for CRLs.
5654
5655 *Steve Henson*
5656
5657 * New function X509_CRL_diff to generate a delta CRL from the difference
5658 of two full CRLs. Add support to "crl" utility.
5659
5660 *Steve Henson*
5661
5662 * New functions to set lookup_crls function and to retrieve
5663 X509_STORE from X509_STORE_CTX.
5664
5665 *Steve Henson*
5666
5667 * Print out deprecated issuer and subject unique ID fields in
5668 certificates.
5669
5670 *Steve Henson*
5671
5672 * Extend OCSP I/O functions so they can be used for simple general purpose
5673 HTTP as well as OCSP. New wrapper function which can be used to download
5674 CRLs using the OCSP API.
5675
5676 *Steve Henson*
5677
5678 * Delegate command line handling in s_client/s_server to SSL_CONF APIs.
5679
5680 *Steve Henson*
5681
257e9d03 5682 * `SSL_CONF*` functions. These provide a common framework for application
44652c16
DMSP
5683 configuration using configuration files or command lines.
5684
5685 *Steve Henson*
5686
5687 * SSL/TLS tracing code. This parses out SSL/TLS records using the
5688 message callback and prints the results. Needs compile time option
5689 "enable-ssl-trace". New options to s_client and s_server to enable
5690 tracing.
5691
5692 *Steve Henson*
5693
5694 * New ctrl and macro to retrieve supported points extensions.
5695 Print out extension in s_server and s_client.
5696
5697 *Steve Henson*
5698
5699 * New functions to retrieve certificate signature and signature
5700 OID NID.
5701
5702 *Steve Henson*
5703
5704 * Add functions to retrieve and manipulate the raw cipherlist sent by a
5705 client to OpenSSL.
5706
5707 *Steve Henson*
5708
5709 * New Suite B modes for TLS code. These use and enforce the requirements
5710 of RFC6460: restrict ciphersuites, only permit Suite B algorithms and
5711 only use Suite B curves. The Suite B modes can be set by using the
5712 strings "SUITEB128", "SUITEB192" or "SUITEB128ONLY" for the cipherstring.
5713
5714 *Steve Henson*
5715
5716 * New chain verification flags for Suite B levels of security. Check
5717 algorithms are acceptable when flags are set in X509_verify_cert.
5718
5719 *Steve Henson*
5720
5721 * Make tls1_check_chain return a set of flags indicating checks passed
5722 by a certificate chain. Add additional tests to handle client
5723 certificates: checks for matching certificate type and issuer name
5724 comparison.
5725
5726 *Steve Henson*
5727
5728 * If an attempt is made to use a signature algorithm not in the peer
5729 preference list abort the handshake. If client has no suitable
5730 signature algorithms in response to a certificate request do not
5731 use the certificate.
5732
5733 *Steve Henson*
5734
5735 * If server EC tmp key is not in client preference list abort handshake.
5736
5737 *Steve Henson*
5738
5739 * Add support for certificate stores in CERT structure. This makes it
5740 possible to have different stores per SSL structure or one store in
5741 the parent SSL_CTX. Include distinct stores for certificate chain
5742 verification and chain building. New ctrl SSL_CTRL_BUILD_CERT_CHAIN
5743 to build and store a certificate chain in CERT structure: returning
5744 an error if the chain cannot be built: this will allow applications
5745 to test if a chain is correctly configured.
5746
5747 Note: if the CERT based stores are not set then the parent SSL_CTX
5748 store is used to retain compatibility with existing behaviour.
5749
44652c16
DMSP
5750 *Steve Henson*
5751
5752 * New function ssl_set_client_disabled to set a ciphersuite disabled
5753 mask based on the current session, check mask when sending client
5754 hello and checking the requested ciphersuite.
5755
5756 *Steve Henson*
5757
5758 * New ctrls to retrieve and set certificate types in a certificate
5759 request message. Print out received values in s_client. If certificate
5760 types is not set with custom values set sensible values based on
5761 supported signature algorithms.
5762
5763 *Steve Henson*
5764
5765 * Support for distinct client and server supported signature algorithms.
5766
5767 *Steve Henson*
5768
5769 * Add certificate callback. If set this is called whenever a certificate
5770 is required by client or server. An application can decide which
5771 certificate chain to present based on arbitrary criteria: for example
5772 supported signature algorithms. Add very simple example to s_server.
5773 This fixes many of the problems and restrictions of the existing client
5774 certificate callback: for example you can now clear an existing
5775 certificate and specify the whole chain.
5776
5777 *Steve Henson*
5778
5779 * Add new "valid_flags" field to CERT_PKEY structure which determines what
5780 the certificate can be used for (if anything). Set valid_flags field
5781 in new tls1_check_chain function. Simplify ssl_set_cert_masks which used
5782 to have similar checks in it.
5783
5784 Add new "cert_flags" field to CERT structure and include a "strict mode".
5785 This enforces some TLS certificate requirements (such as only permitting
5786 certificate signature algorithms contained in the supported algorithms
5787 extension) which some implementations ignore: this option should be used
5788 with caution as it could cause interoperability issues.
5789
5790 *Steve Henson*
5791
5792 * Update and tidy signature algorithm extension processing. Work out
5793 shared signature algorithms based on preferences and peer algorithms
5794 and print them out in s_client and s_server. Abort handshake if no
5795 shared signature algorithms.
5796
5797 *Steve Henson*
5798
5799 * Add new functions to allow customised supported signature algorithms
5800 for SSL and SSL_CTX structures. Add options to s_client and s_server
5801 to support them.
5802
5803 *Steve Henson*
5804
5805 * New function SSL_certs_clear() to delete all references to certificates
5806 from an SSL structure. Before this once a certificate had been added
5807 it couldn't be removed.
5808
5809 *Steve Henson*
5810
5811 * Integrate hostname, email address and IP address checking with certificate
5812 verification. New verify options supporting checking in openssl utility.
5813
5814 *Steve Henson*
5815
5816 * Fixes and wildcard matching support to hostname and email checking
5817 functions. Add manual page.
5818
5819 *Florian Weimer (Red Hat Product Security Team)*
5820
5821 * New functions to check a hostname email or IP address against a
5822 certificate. Add options x509 utility to print results of checks against
5823 a certificate.
5824
5825 *Steve Henson*
5826
5827 * Fix OCSP checking.
5828
5829 *Rob Stradling <rob.stradling@comodo.com> and Ben Laurie*
5830
5831 * Initial experimental support for explicitly trusted non-root CAs.
5832 OpenSSL still tries to build a complete chain to a root but if an
5833 intermediate CA has a trust setting included that is used. The first
5834 setting is used: whether to trust (e.g., -addtrust option to the x509
5835 utility) or reject.
5836
5837 *Steve Henson*
5838
5839 * Add -trusted_first option which attempts to find certificates in the
5840 trusted store even if an untrusted chain is also supplied.
5841
5842 *Steve Henson*
5843
5844 * MIPS assembly pack updates: support for MIPS32r2 and SmartMIPS ASE,
5845 platform support for Linux and Android.
5846
5847 *Andy Polyakov*
5848
5849 * Support for linux-x32, ILP32 environment in x86_64 framework.
5850
5851 *Andy Polyakov*
5852
5853 * Experimental multi-implementation support for FIPS capable OpenSSL.
5854 When in FIPS mode the approved implementations are used as normal,
5855 when not in FIPS mode the internal unapproved versions are used instead.
5856 This means that the FIPS capable OpenSSL isn't forced to use the
5857 (often lower performance) FIPS implementations outside FIPS mode.
5858
5859 *Steve Henson*
5860
5861 * Transparently support X9.42 DH parameters when calling
5862 PEM_read_bio_DHparameters. This means existing applications can handle
5863 the new parameter format automatically.
5864
5865 *Steve Henson*
5866
5867 * Initial experimental support for X9.42 DH parameter format: mainly
5868 to support use of 'q' parameter for RFC5114 parameters.
5869
5870 *Steve Henson*
5871
5872 * Add DH parameters from RFC5114 including test data to dhtest.
5873
5874 *Steve Henson*
5875
5876 * Support for automatic EC temporary key parameter selection. If enabled
5877 the most preferred EC parameters are automatically used instead of
5878 hardcoded fixed parameters. Now a server just has to call:
5879 SSL_CTX_set_ecdh_auto(ctx, 1) and the server will automatically
5880 support ECDH and use the most appropriate parameters.
5881
5882 *Steve Henson*
5883
5884 * Enhance and tidy EC curve and point format TLS extension code. Use
5885 static structures instead of allocation if default values are used.
5886 New ctrls to set curves we wish to support and to retrieve shared curves.
5887 Print out shared curves in s_server. New options to s_server and s_client
5888 to set list of supported curves.
5889
5890 *Steve Henson*
5891
5892 * New ctrls to retrieve supported signature algorithms and
5893 supported curve values as an array of NIDs. Extend openssl utility
5894 to print out received values.
5895
5896 *Steve Henson*
5897
5898 * Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert
5899 between NIDs and the more common NIST names such as "P-256". Enhance
5900 ecparam utility and ECC method to recognise the NIST names for curves.
5901
5902 *Steve Henson*
5903
5904 * Enhance SSL/TLS certificate chain handling to support different
5905 chains for each certificate instead of one chain in the parent SSL_CTX.
5906
5907 *Steve Henson*
5908
5909 * Support for fixed DH ciphersuite client authentication: where both
5910 server and client use DH certificates with common parameters.
5911
5912 *Steve Henson*
5913
5914 * Support for fixed DH ciphersuites: those requiring DH server
5915 certificates.
5916
5917 *Steve Henson*
5918
5919 * New function i2d_re_X509_tbs for re-encoding the TBS portion of
5920 the certificate.
5921 Note: Related 1.0.2-beta specific macros X509_get_cert_info,
5922 X509_CINF_set_modified, X509_CINF_get_issuer, X509_CINF_get_extensions and
5923 X509_CINF_get_signature were reverted post internal team review.
5924
44652c16
DMSP
5925OpenSSL 1.0.1
5926-------------
5927
257e9d03 5928### Changes between 1.0.1t and 1.0.1u [22 Sep 2016]
44652c16
DMSP
5929
5930 * OCSP Status Request extension unbounded memory growth
5931
5932 A malicious client can send an excessively large OCSP Status Request
5933 extension. If that client continually requests renegotiation, sending a
5934 large OCSP Status Request extension each time, then there will be unbounded
5935 memory growth on the server. This will eventually lead to a Denial Of
5936 Service attack through memory exhaustion. Servers with a default
5937 configuration are vulnerable even if they do not support OCSP. Builds using
5938 the "no-ocsp" build time option are not affected.
5939
5940 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5941 ([CVE-2016-6304])
44652c16
DMSP
5942
5943 *Matt Caswell*
5944
5945 * In order to mitigate the SWEET32 attack, the DES ciphers were moved from
5946 HIGH to MEDIUM.
5947
5948 This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan
5949 Leurent (INRIA)
d8dc8538 5950 ([CVE-2016-2183])
44652c16
DMSP
5951
5952 *Rich Salz*
5953
5954 * OOB write in MDC2_Update()
5955
5956 An overflow can occur in MDC2_Update() either if called directly or
5957 through the EVP_DigestUpdate() function using MDC2. If an attacker
5958 is able to supply very large amounts of input data after a previous
5959 call to EVP_EncryptUpdate() with a partial block then a length check
5960 can overflow resulting in a heap corruption.
5961
5962 The amount of data needed is comparable to SIZE_MAX which is impractical
5963 on most platforms.
5964
5965 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5966 ([CVE-2016-6303])
44652c16
DMSP
5967
5968 *Stephen Henson*
5969
5970 * Malformed SHA512 ticket DoS
5971
5972 If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a
5973 DoS attack where a malformed ticket will result in an OOB read which will
5974 ultimately crash.
5975
5976 The use of SHA512 in TLS session tickets is comparatively rare as it requires
5977 a custom server callback and ticket lookup mechanism.
5978
5979 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5980 ([CVE-2016-6302])
44652c16
DMSP
5981
5982 *Stephen Henson*
5983
5984 * OOB write in BN_bn2dec()
5985
5986 The function BN_bn2dec() does not check the return value of BN_div_word().
5987 This can cause an OOB write if an application uses this function with an
5988 overly large BIGNUM. This could be a problem if an overly large certificate
5989 or CRL is printed out from an untrusted source. TLS is not affected because
5990 record limits will reject an oversized certificate before it is parsed.
5991
5992 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5993 ([CVE-2016-2182])
44652c16
DMSP
5994
5995 *Stephen Henson*
5996
5997 * OOB read in TS_OBJ_print_bio()
5998
5999 The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is
6000 the total length the OID text representation would use and not the amount
6001 of data written. This will result in OOB reads when large OIDs are
6002 presented.
6003
6004 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 6005 ([CVE-2016-2180])
44652c16
DMSP
6006
6007 *Stephen Henson*
6008
6009 * Pointer arithmetic undefined behaviour
6010
6011 Avoid some undefined pointer arithmetic
6012
6013 A common idiom in the codebase is to check limits in the following manner:
6014 "p + len > limit"
6015
6016 Where "p" points to some malloc'd data of SIZE bytes and
6017 limit == p + SIZE
6018
6019 "len" here could be from some externally supplied data (e.g. from a TLS
6020 message).
6021
6022 The rules of C pointer arithmetic are such that "p + len" is only well
6023 defined where len <= SIZE. Therefore the above idiom is actually
6024 undefined behaviour.
6025
6026 For example this could cause problems if some malloc implementation
6027 provides an address for "p" such that "p + len" actually overflows for
6028 values of len that are too big and therefore p + len < limit.
6029
6030 This issue was reported to OpenSSL by Guido Vranken
d8dc8538 6031 ([CVE-2016-2177])
44652c16
DMSP
6032
6033 *Matt Caswell*
6034
6035 * Constant time flag not preserved in DSA signing
6036
6037 Operations in the DSA signing algorithm should run in constant time in
6038 order to avoid side channel attacks. A flaw in the OpenSSL DSA
6039 implementation means that a non-constant time codepath is followed for
6040 certain operations. This has been demonstrated through a cache-timing
6041 attack to be sufficient for an attacker to recover the private DSA key.
6042
6043 This issue was reported by César Pereida (Aalto University), Billy Brumley
6044 (Tampere University of Technology), and Yuval Yarom (The University of
6045 Adelaide and NICTA).
d8dc8538 6046 ([CVE-2016-2178])
44652c16
DMSP
6047
6048 *César Pereida*
6049
6050 * DTLS buffered message DoS
6051
6052 In a DTLS connection where handshake messages are delivered out-of-order
6053 those messages that OpenSSL is not yet ready to process will be buffered
6054 for later use. Under certain circumstances, a flaw in the logic means that
6055 those messages do not get removed from the buffer even though the handshake
6056 has been completed. An attacker could force up to approx. 15 messages to
6057 remain in the buffer when they are no longer required. These messages will
6058 be cleared when the DTLS connection is closed. The default maximum size for
6059 a message is 100k. Therefore the attacker could force an additional 1500k
6060 to be consumed per connection. By opening many simulataneous connections an
6061 attacker could cause a DoS attack through memory exhaustion.
6062
6063 This issue was reported to OpenSSL by Quan Luo.
d8dc8538 6064 ([CVE-2016-2179])
44652c16
DMSP
6065
6066 *Matt Caswell*
6067
6068 * DTLS replay protection DoS
6069
6070 A flaw in the DTLS replay attack protection mechanism means that records
6071 that arrive for future epochs update the replay protection "window" before
6072 the MAC for the record has been validated. This could be exploited by an
6073 attacker by sending a record for the next epoch (which does not have to
6074 decrypt or have a valid MAC), with a very large sequence number. This means
6075 that all subsequent legitimate packets are dropped causing a denial of
6076 service for a specific DTLS connection.
6077
6078 This issue was reported to OpenSSL by the OCAP audit team.
d8dc8538 6079 ([CVE-2016-2181])
44652c16
DMSP
6080
6081 *Matt Caswell*
6082
6083 * Certificate message OOB reads
6084
6085 In OpenSSL 1.0.2 and earlier some missing message length checks can result
6086 in OOB reads of up to 2 bytes beyond an allocated buffer. There is a
6087 theoretical DoS risk but this has not been observed in practice on common
6088 platforms.
6089
6090 The messages affected are client certificate, client certificate request
6091 and server certificate. As a result the attack can only be performed
6092 against a client or a server which enables client authentication.
6093
6094 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 6095 ([CVE-2016-6306])
44652c16
DMSP
6096
6097 *Stephen Henson*
6098
257e9d03 6099### Changes between 1.0.1s and 1.0.1t [3 May 2016]
44652c16
DMSP
6100
6101 * Prevent padding oracle in AES-NI CBC MAC check
6102
6103 A MITM attacker can use a padding oracle attack to decrypt traffic
6104 when the connection uses an AES CBC cipher and the server support
6105 AES-NI.
6106
6107 This issue was introduced as part of the fix for Lucky 13 padding
d8dc8538 6108 attack ([CVE-2013-0169]). The padding check was rewritten to be in
44652c16
DMSP
6109 constant time by making sure that always the same bytes are read and
6110 compared against either the MAC or padding bytes. But it no longer
6111 checked that there was enough data to have both the MAC and padding
6112 bytes.
6113
6114 This issue was reported by Juraj Somorovsky using TLS-Attacker.
d8dc8538 6115 ([CVE-2016-2107])
44652c16
DMSP
6116
6117 *Kurt Roeckx*
6118
6119 * Fix EVP_EncodeUpdate overflow
6120
6121 An overflow can occur in the EVP_EncodeUpdate() function which is used for
6122 Base64 encoding of binary data. If an attacker is able to supply very large
6123 amounts of input data then a length check can overflow resulting in a heap
6124 corruption.
6125
6126 Internally to OpenSSL the EVP_EncodeUpdate() function is primarly used by
257e9d03 6127 the `PEM_write_bio*` family of functions. These are mainly used within the
44652c16
DMSP
6128 OpenSSL command line applications, so any application which processes data
6129 from an untrusted source and outputs it as a PEM file should be considered
6130 vulnerable to this issue. User applications that call these APIs directly
6131 with large amounts of untrusted data may also be vulnerable.
6132
6133 This issue was reported by Guido Vranken.
d8dc8538 6134 ([CVE-2016-2105])
44652c16
DMSP
6135
6136 *Matt Caswell*
6137
6138 * Fix EVP_EncryptUpdate overflow
6139
6140 An overflow can occur in the EVP_EncryptUpdate() function. If an attacker
6141 is able to supply very large amounts of input data after a previous call to
6142 EVP_EncryptUpdate() with a partial block then a length check can overflow
6143 resulting in a heap corruption. Following an analysis of all OpenSSL
6144 internal usage of the EVP_EncryptUpdate() function all usage is one of two
6145 forms. The first form is where the EVP_EncryptUpdate() call is known to be
6146 the first called function after an EVP_EncryptInit(), and therefore that
6147 specific call must be safe. The second form is where the length passed to
6148 EVP_EncryptUpdate() can be seen from the code to be some small value and
6149 therefore there is no possibility of an overflow. Since all instances are
6150 one of these two forms, it is believed that there can be no overflows in
6151 internal code due to this problem. It should be noted that
6152 EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths.
6153 Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances
6154 of these calls have also been analysed too and it is believed there are no
6155 instances in internal usage where an overflow could occur.
6156
6157 This issue was reported by Guido Vranken.
d8dc8538 6158 ([CVE-2016-2106])
44652c16
DMSP
6159
6160 *Matt Caswell*
6161
6162 * Prevent ASN.1 BIO excessive memory allocation
6163
6164 When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio()
6165 a short invalid encoding can casuse allocation of large amounts of memory
6166 potentially consuming excessive resources or exhausting memory.
6167
6168 Any application parsing untrusted data through d2i BIO functions is
6169 affected. The memory based functions such as d2i_X509() are *not* affected.
6170 Since the memory based functions are used by the TLS library, TLS
6171 applications are not affected.
6172
6173 This issue was reported by Brian Carpenter.
d8dc8538 6174 ([CVE-2016-2109])
44652c16
DMSP
6175
6176 *Stephen Henson*
6177
6178 * EBCDIC overread
6179
6180 ASN1 Strings that are over 1024 bytes can cause an overread in applications
6181 using the X509_NAME_oneline() function on EBCDIC systems. This could result
6182 in arbitrary stack data being returned in the buffer.
6183
6184 This issue was reported by Guido Vranken.
d8dc8538 6185 ([CVE-2016-2176])
44652c16
DMSP
6186
6187 *Matt Caswell*
6188
6189 * Modify behavior of ALPN to invoke callback after SNI/servername
6190 callback, such that updates to the SSL_CTX affect ALPN.
6191
6192 *Todd Short*
6193
6194 * Remove LOW from the DEFAULT cipher list. This removes singles DES from the
6195 default.
6196
6197 *Kurt Roeckx*
6198
6199 * Only remove the SSLv2 methods with the no-ssl2-method option. When the
6200 methods are enabled and ssl2 is disabled the methods return NULL.
6201
6202 *Kurt Roeckx*
6203
257e9d03 6204### Changes between 1.0.1r and 1.0.1s [1 Mar 2016]
44652c16
DMSP
6205
6206* Disable weak ciphers in SSLv3 and up in default builds of OpenSSL.
6207 Builds that are not configured with "enable-weak-ssl-ciphers" will not
6208 provide any "EXPORT" or "LOW" strength ciphers.
6209
6210 *Viktor Dukhovni*
6211
6212* Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2
6213 is by default disabled at build-time. Builds that are not configured with
6214 "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used,
6215 users who want to negotiate SSLv2 via the version-flexible SSLv23_method()
6216 will need to explicitly call either of:
6217
6218 SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
6219 or
6220 SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
6221
6222 as appropriate. Even if either of those is used, or the application
6223 explicitly uses the version-specific SSLv2_method() or its client and
6224 server variants, SSLv2 ciphers vulnerable to exhaustive search key
6225 recovery have been removed. Specifically, the SSLv2 40-bit EXPORT
6226 ciphers, and SSLv2 56-bit DES are no longer available.
d8dc8538 6227 ([CVE-2016-0800])
44652c16
DMSP
6228
6229 *Viktor Dukhovni*
6230
6231 * Fix a double-free in DSA code
6232
6233 A double free bug was discovered when OpenSSL parses malformed DSA private
6234 keys and could lead to a DoS attack or memory corruption for applications
6235 that receive DSA private keys from untrusted sources. This scenario is
6236 considered rare.
6237
6238 This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using
6239 libFuzzer.
d8dc8538 6240 ([CVE-2016-0705])
44652c16
DMSP
6241
6242 *Stephen Henson*
6243
6244 * Disable SRP fake user seed to address a server memory leak.
6245
6246 Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
6247
6248 SRP_VBASE_get_by_user had inconsistent memory management behaviour.
6249 In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user
6250 was changed to ignore the "fake user" SRP seed, even if the seed
6251 is configured.
6252
6253 Users should use SRP_VBASE_get1_by_user instead. Note that in
6254 SRP_VBASE_get1_by_user, caller must free the returned value. Note
6255 also that even though configuring the SRP seed attempts to hide
6256 invalid usernames by continuing the handshake with fake
6257 credentials, this behaviour is not constant time and no strong
6258 guarantees are made that the handshake is indistinguishable from
6259 that of a valid user.
d8dc8538 6260 ([CVE-2016-0798])
44652c16
DMSP
6261
6262 *Emilia Käsper*
6263
6264 * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption
6265
6266 In the BN_hex2bn function the number of hex digits is calculated using an
1dc1ea18
DDO
6267 int value `i`. Later `bn_expand` is called with a value of `i * 4`. For
6268 large values of `i` this can result in `bn_expand` not allocating any
6269 memory because `i * 4` is negative. This can leave the internal BIGNUM data
44652c16 6270 field as NULL leading to a subsequent NULL ptr deref. For very large values
1dc1ea18 6271 of `i`, the calculation `i * 4` could be a positive value smaller than `i`.
44652c16
DMSP
6272 In this case memory is allocated to the internal BIGNUM data field, but it
6273 is insufficiently sized leading to heap corruption. A similar issue exists
6274 in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn
6275 is ever called by user applications with very large untrusted hex/dec data.
6276 This is anticipated to be a rare occurrence.
6277
6278 All OpenSSL internal usage of these functions use data that is not expected
6279 to be untrusted, e.g. config file data or application command line
6280 arguments. If user developed applications generate config file data based
6281 on untrusted data then it is possible that this could also lead to security
6282 consequences. This is also anticipated to be rare.
6283
6284 This issue was reported to OpenSSL by Guido Vranken.
d8dc8538 6285 ([CVE-2016-0797])
44652c16
DMSP
6286
6287 *Matt Caswell*
6288
257e9d03 6289 * Fix memory issues in `BIO_*printf` functions
44652c16 6290
1dc1ea18 6291 The internal `fmtstr` function used in processing a "%s" format string in
257e9d03 6292 the `BIO_*printf` functions could overflow while calculating the length of a
44652c16
DMSP
6293 string and cause an OOB read when printing very long strings.
6294
1dc1ea18 6295 Additionally the internal `doapr_outch` function can attempt to write to an
44652c16
DMSP
6296 OOB memory location (at an offset from the NULL pointer) in the event of a
6297 memory allocation failure. In 1.0.2 and below this could be caused where
6298 the size of a buffer to be allocated is greater than INT_MAX. E.g. this
6299 could be in processing a very long "%s" format string. Memory leaks can
6300 also occur.
6301
6302 The first issue may mask the second issue dependent on compiler behaviour.
6303 These problems could enable attacks where large amounts of untrusted data
257e9d03 6304 is passed to the `BIO_*printf` functions. If applications use these functions
44652c16
DMSP
6305 in this way then they could be vulnerable. OpenSSL itself uses these
6306 functions when printing out human-readable dumps of ASN.1 data. Therefore
6307 applications that print this data could be vulnerable if the data is from
6308 untrusted sources. OpenSSL command line applications could also be
6309 vulnerable where they print out ASN.1 data, or if untrusted data is passed
6310 as command line arguments.
6311
6312 Libssl is not considered directly vulnerable. Additionally certificates etc
6313 received via remote connections via libssl are also unlikely to be able to
6314 trigger these issues because of message size limits enforced within libssl.
6315
6316 This issue was reported to OpenSSL Guido Vranken.
d8dc8538 6317 ([CVE-2016-0799])
44652c16
DMSP
6318
6319 *Matt Caswell*
6320
6321 * Side channel attack on modular exponentiation
6322
6323 A side-channel attack was found which makes use of cache-bank conflicts on
6324 the Intel Sandy-Bridge microarchitecture which could lead to the recovery
6325 of RSA keys. The ability to exploit this issue is limited as it relies on
6326 an attacker who has control of code in a thread running on the same
6327 hyper-threaded core as the victim thread which is performing decryptions.
6328
6329 This issue was reported to OpenSSL by Yuval Yarom, The University of
6330 Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and
6331 Nadia Heninger, University of Pennsylvania with more information at
257e9d03 6332 <http://cachebleed.info>.
d8dc8538 6333 ([CVE-2016-0702])
44652c16
DMSP
6334
6335 *Andy Polyakov*
6336
ec2bfb7d 6337 * Change the req command to generate a 2048-bit RSA/DSA key by default,
44652c16
DMSP
6338 if no keysize is specified with default_bits. This fixes an
6339 omission in an earlier change that changed all RSA/DSA key generation
ec2bfb7d 6340 commands to use 2048 bits by default.
44652c16
DMSP
6341
6342 *Emilia Käsper*
6343
257e9d03 6344### Changes between 1.0.1q and 1.0.1r [28 Jan 2016]
44652c16
DMSP
6345
6346 * Protection for DH small subgroup attacks
6347
6348 As a precautionary measure the SSL_OP_SINGLE_DH_USE option has been
6349 switched on by default and cannot be disabled. This could have some
6350 performance impact.
6351
6352 *Matt Caswell*
6353
6354 * SSLv2 doesn't block disabled ciphers
6355
6356 A malicious client can negotiate SSLv2 ciphers that have been disabled on
6357 the server and complete SSLv2 handshakes even if all SSLv2 ciphers have
6358 been disabled, provided that the SSLv2 protocol was not also disabled via
6359 SSL_OP_NO_SSLv2.
6360
6361 This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram
6362 and Sebastian Schinzel.
d8dc8538 6363 ([CVE-2015-3197])
44652c16
DMSP
6364
6365 *Viktor Dukhovni*
6366
6367 * Reject DH handshakes with parameters shorter than 1024 bits.
6368
6369 *Kurt Roeckx*
6370
257e9d03 6371### Changes between 1.0.1p and 1.0.1q [3 Dec 2015]
44652c16
DMSP
6372
6373 * Certificate verify crash with missing PSS parameter
6374
6375 The signature verification routines will crash with a NULL pointer
6376 dereference if presented with an ASN.1 signature using the RSA PSS
6377 algorithm and absent mask generation function parameter. Since these
6378 routines are used to verify certificate signature algorithms this can be
6379 used to crash any certificate verification operation and exploited in a
6380 DoS attack. Any application which performs certificate verification is
6381 vulnerable including OpenSSL clients and servers which enable client
6382 authentication.
6383
6384 This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG).
d8dc8538 6385 ([CVE-2015-3194])
44652c16
DMSP
6386
6387 *Stephen Henson*
6388
6389 * X509_ATTRIBUTE memory leak
6390
6391 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
6392 memory. This structure is used by the PKCS#7 and CMS routines so any
6393 application which reads PKCS#7 or CMS data from untrusted sources is
6394 affected. SSL/TLS is not affected.
6395
6396 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
6397 libFuzzer.
d8dc8538 6398 ([CVE-2015-3195])
44652c16
DMSP
6399
6400 *Stephen Henson*
6401
6402 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
6403 This changes the decoding behaviour for some invalid messages,
6404 though the change is mostly in the more lenient direction, and
6405 legacy behaviour is preserved as much as possible.
6406
6407 *Emilia Käsper*
6408
6409 * In DSA_generate_parameters_ex, if the provided seed is too short,
6410 use a random seed, as already documented.
6411
6412 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
6413
257e9d03 6414### Changes between 1.0.1o and 1.0.1p [9 Jul 2015]
44652c16
DMSP
6415
6416 * Alternate chains certificate forgery
6417
6418 During certificate verfification, OpenSSL will attempt to find an
6419 alternative certificate chain if the first attempt to build such a chain
6420 fails. An error in the implementation of this logic can mean that an
6421 attacker could cause certain checks on untrusted certificates to be
6422 bypassed, such as the CA flag, enabling them to use a valid leaf
6423 certificate to act as a CA and "issue" an invalid certificate.
6424
6425 This issue was reported to OpenSSL by Adam Langley/David Benjamin
6426 (Google/BoringSSL).
d8dc8538 6427 ([CVE-2015-1793])
44652c16
DMSP
6428
6429 *Matt Caswell*
6430
6431 * Race condition handling PSK identify hint
6432
6433 If PSK identity hints are received by a multi-threaded client then
6434 the values are wrongly updated in the parent SSL_CTX structure. This can
6435 result in a race condition potentially leading to a double free of the
6436 identify hint data.
d8dc8538 6437 ([CVE-2015-3196])
44652c16
DMSP
6438
6439 *Stephen Henson*
6440
257e9d03
RS
6441### Changes between 1.0.1n and 1.0.1o [12 Jun 2015]
6442
44652c16
DMSP
6443 * Fix HMAC ABI incompatibility. The previous version introduced an ABI
6444 incompatibility in the handling of HMAC. The previous ABI has now been
6445 restored.
6446
257e9d03 6447### Changes between 1.0.1m and 1.0.1n [11 Jun 2015]
44652c16
DMSP
6448
6449 * Malformed ECParameters causes infinite loop
6450
6451 When processing an ECParameters structure OpenSSL enters an infinite loop
6452 if the curve specified is over a specially malformed binary polynomial
6453 field.
6454
6455 This can be used to perform denial of service against any
6456 system which processes public keys, certificate requests or
6457 certificates. This includes TLS clients and TLS servers with
6458 client authentication enabled.
6459
6460 This issue was reported to OpenSSL by Joseph Barr-Pixton.
d8dc8538 6461 ([CVE-2015-1788])
44652c16
DMSP
6462
6463 *Andy Polyakov*
6464
6465 * Exploitable out-of-bounds read in X509_cmp_time
6466
6467 X509_cmp_time does not properly check the length of the ASN1_TIME
6468 string and can read a few bytes out of bounds. In addition,
6469 X509_cmp_time accepts an arbitrary number of fractional seconds in the
6470 time string.
6471
6472 An attacker can use this to craft malformed certificates and CRLs of
6473 various sizes and potentially cause a segmentation fault, resulting in
6474 a DoS on applications that verify certificates or CRLs. TLS clients
6475 that verify CRLs are affected. TLS clients and servers with client
6476 authentication enabled may be affected if they use custom verification
6477 callbacks.
6478
6479 This issue was reported to OpenSSL by Robert Swiecki (Google), and
6480 independently by Hanno Böck.
d8dc8538 6481 ([CVE-2015-1789])
44652c16
DMSP
6482
6483 *Emilia Käsper*
6484
6485 * PKCS7 crash with missing EnvelopedContent
6486
6487 The PKCS#7 parsing code does not handle missing inner EncryptedContent
6488 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
6489 with missing content and trigger a NULL pointer dereference on parsing.
6490
6491 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
6492 structures from untrusted sources are affected. OpenSSL clients and
6493 servers are not affected.
5f8e6c50 6494
44652c16 6495 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 6496 ([CVE-2015-1790])
5f8e6c50 6497
44652c16 6498 *Emilia Käsper*
5f8e6c50 6499
44652c16
DMSP
6500 * CMS verify infinite loop with unknown hash function
6501
6502 When verifying a signedData message the CMS code can enter an infinite loop
6503 if presented with an unknown hash function OID. This can be used to perform
6504 denial of service against any system which verifies signedData messages using
6505 the CMS code.
6506 This issue was reported to OpenSSL by Johannes Bauer.
d8dc8538 6507 ([CVE-2015-1792])
44652c16
DMSP
6508
6509 *Stephen Henson*
6510
6511 * Race condition handling NewSessionTicket
6512
6513 If a NewSessionTicket is received by a multi-threaded client when attempting to
6514 reuse a previous ticket then a race condition can occur potentially leading to
6515 a double free of the ticket data.
d8dc8538 6516 ([CVE-2015-1791])
44652c16
DMSP
6517
6518 *Matt Caswell*
6519
6520 * Reject DH handshakes with parameters shorter than 768 bits.
6521
6522 *Kurt Roeckx and Emilia Kasper*
6523
6524 * dhparam: generate 2048-bit parameters by default.
6525
6526 *Kurt Roeckx and Emilia Kasper*
6527
257e9d03 6528### Changes between 1.0.1l and 1.0.1m [19 Mar 2015]
44652c16
DMSP
6529
6530 * Segmentation fault in ASN1_TYPE_cmp fix
6531
6532 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
6533 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
6534 certificate signature algorithm consistency this can be used to crash any
6535 certificate verification operation and exploited in a DoS attack. Any
6536 application which performs certificate verification is vulnerable including
6537 OpenSSL clients and servers which enable client authentication.
d8dc8538 6538 ([CVE-2015-0286])
44652c16
DMSP
6539
6540 *Stephen Henson*
6541
6542 * ASN.1 structure reuse memory corruption fix
6543
6544 Reusing a structure in ASN.1 parsing may allow an attacker to cause
6545 memory corruption via an invalid write. Such reuse is and has been
6546 strongly discouraged and is believed to be rare.
6547
6548 Applications that parse structures containing CHOICE or ANY DEFINED BY
6549 components may be affected. Certificate parsing (d2i_X509 and related
6550 functions) are however not affected. OpenSSL clients and servers are
6551 not affected.
d8dc8538 6552 ([CVE-2015-0287])
44652c16
DMSP
6553
6554 *Stephen Henson*
6555
6556 * PKCS7 NULL pointer dereferences fix
6557
6558 The PKCS#7 parsing code does not handle missing outer ContentInfo
6559 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
6560 missing content and trigger a NULL pointer dereference on parsing.
6561
6562 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
6563 otherwise parse PKCS#7 structures from untrusted sources are
6564 affected. OpenSSL clients and servers are not affected.
6565
6566 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 6567 ([CVE-2015-0289])
44652c16
DMSP
6568
6569 *Emilia Käsper*
6570
6571 * DoS via reachable assert in SSLv2 servers fix
6572
6573 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
6574 servers that both support SSLv2 and enable export cipher suites by sending
6575 a specially crafted SSLv2 CLIENT-MASTER-KEY message.
6576
6577 This issue was discovered by Sean Burford (Google) and Emilia Käsper
6578 (OpenSSL development team).
d8dc8538 6579 ([CVE-2015-0293])
44652c16
DMSP
6580
6581 *Emilia Käsper*
6582
6583 * Use After Free following d2i_ECPrivatekey error fix
6584
6585 A malformed EC private key file consumed via the d2i_ECPrivateKey function
6586 could cause a use after free condition. This, in turn, could cause a double
6587 free in several private key parsing functions (such as d2i_PrivateKey
6588 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
6589 for applications that receive EC private keys from untrusted
6590 sources. This scenario is considered rare.
6591
6592 This issue was discovered by the BoringSSL project and fixed in their
6593 commit 517073cd4b.
d8dc8538 6594 ([CVE-2015-0209])
44652c16
DMSP
6595
6596 *Matt Caswell*
6597
6598 * X509_to_X509_REQ NULL pointer deref fix
6599
6600 The function X509_to_X509_REQ will crash with a NULL pointer dereference if
6601 the certificate key is invalid. This function is rarely used in practice.
6602
6603 This issue was discovered by Brian Carpenter.
d8dc8538 6604 ([CVE-2015-0288])
44652c16
DMSP
6605
6606 *Stephen Henson*
6607
6608 * Removed the export ciphers from the DEFAULT ciphers
6609
6610 *Kurt Roeckx*
6611
257e9d03 6612### Changes between 1.0.1k and 1.0.1l [15 Jan 2015]
44652c16
DMSP
6613
6614 * Build fixes for the Windows and OpenVMS platforms
6615
6616 *Matt Caswell and Richard Levitte*
6617
257e9d03 6618### Changes between 1.0.1j and 1.0.1k [8 Jan 2015]
44652c16
DMSP
6619
6620 * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS
6621 message can cause a segmentation fault in OpenSSL due to a NULL pointer
6622 dereference. This could lead to a Denial Of Service attack. Thanks to
6623 Markus Stenberg of Cisco Systems, Inc. for reporting this issue.
d8dc8538 6624 ([CVE-2014-3571])
44652c16
DMSP
6625
6626 *Steve Henson*
6627
6628 * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the
6629 dtls1_buffer_record function under certain conditions. In particular this
6630 could occur if an attacker sent repeated DTLS records with the same
6631 sequence number but for the next epoch. The memory leak could be exploited
6632 by an attacker in a Denial of Service attack through memory exhaustion.
6633 Thanks to Chris Mueller for reporting this issue.
d8dc8538 6634 ([CVE-2015-0206])
44652c16
DMSP
6635
6636 *Matt Caswell*
6637
6638 * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is
6639 built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl
6640 method would be set to NULL which could later result in a NULL pointer
6641 dereference. Thanks to Frank Schmirler for reporting this issue.
d8dc8538 6642 ([CVE-2014-3569])
44652c16
DMSP
6643
6644 *Kurt Roeckx*
6645
6646 * Abort handshake if server key exchange message is omitted for ephemeral
6647 ECDH ciphersuites.
6648
6649 Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for
6650 reporting this issue.
d8dc8538 6651 ([CVE-2014-3572])
44652c16
DMSP
6652
6653 *Steve Henson*
6654
6655 * Remove non-export ephemeral RSA code on client and server. This code
6656 violated the TLS standard by allowing the use of temporary RSA keys in
6657 non-export ciphersuites and could be used by a server to effectively
6658 downgrade the RSA key length used to a value smaller than the server
6659 certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at
6660 INRIA or reporting this issue.
d8dc8538 6661 ([CVE-2015-0204])
44652c16
DMSP
6662
6663 *Steve Henson*
6664
6665 * Fixed issue where DH client certificates are accepted without verification.
6666 An OpenSSL server will accept a DH certificate for client authentication
6667 without the certificate verify message. This effectively allows a client to
6668 authenticate without the use of a private key. This only affects servers
6669 which trust a client certificate authority which issues certificates
6670 containing DH keys: these are extremely rare and hardly ever encountered.
6671 Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting
6672 this issue.
d8dc8538 6673 ([CVE-2015-0205])
44652c16
DMSP
6674
6675 *Steve Henson*
6676
6677 * Ensure that the session ID context of an SSL is updated when its
6678 SSL_CTX is updated via SSL_set_SSL_CTX.
6679
6680 The session ID context is typically set from the parent SSL_CTX,
6681 and can vary with the CTX.
6682
6683 *Adam Langley*
6684
6685 * Fix various certificate fingerprint issues.
6686
6687 By using non-DER or invalid encodings outside the signed portion of a
6688 certificate the fingerprint can be changed without breaking the signature.
6689 Although no details of the signed portion of the certificate can be changed
6690 this can cause problems with some applications: e.g. those using the
6691 certificate fingerprint for blacklists.
6692
6693 1. Reject signatures with non zero unused bits.
6694
6695 If the BIT STRING containing the signature has non zero unused bits reject
6696 the signature. All current signature algorithms require zero unused bits.
6697
6698 2. Check certificate algorithm consistency.
6699
6700 Check the AlgorithmIdentifier inside TBS matches the one in the
6701 certificate signature. NB: this will result in signature failure
6702 errors for some broken certificates.
6703
6704 Thanks to Konrad Kraszewski from Google for reporting this issue.
6705
6706 3. Check DSA/ECDSA signatures use DER.
6707
6708 Re-encode DSA/ECDSA signatures and compare with the original received
6709 signature. Return an error if there is a mismatch.
6710
6711 This will reject various cases including garbage after signature
6712 (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS
6713 program for discovering this case) and use of BER or invalid ASN.1 INTEGERs
6714 (negative or with leading zeroes).
6715
6716 Further analysis was conducted and fixes were developed by Stephen Henson
6717 of the OpenSSL core team.
6718
d8dc8538 6719 ([CVE-2014-8275])
44652c16
DMSP
6720
6721 *Steve Henson*
6722
43a70f02
RS
6723 * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect
6724 results on some platforms, including x86_64. This bug occurs at random
6725 with a very low probability, and is not known to be exploitable in any
6726 way, though its exact impact is difficult to determine. Thanks to Pieter
6727 Wuille (Blockstream) who reported this issue and also suggested an initial
6728 fix. Further analysis was conducted by the OpenSSL development team and
6729 Adam Langley of Google. The final fix was developed by Andy Polyakov of
6730 the OpenSSL core team.
d8dc8538 6731 ([CVE-2014-3570])
5f8e6c50
DMSP
6732
6733 *Andy Polyakov*
6734
43a70f02
RS
6735 * Do not resume sessions on the server if the negotiated protocol
6736 version does not match the session's version. Resuming with a different
6737 version, while not strictly forbidden by the RFC, is of questionable
6738 sanity and breaks all known clients.
5f8e6c50 6739
44652c16
DMSP
6740 *David Benjamin, Emilia Käsper*
6741
43a70f02
RS
6742 * Tighten handling of the ChangeCipherSpec (CCS) message: reject
6743 early CCS messages during renegotiation. (Note that because
6744 renegotiation is encrypted, this early CCS was not exploitable.)
44652c16
DMSP
6745
6746 *Emilia Käsper*
6747
43a70f02
RS
6748 * Tighten client-side session ticket handling during renegotiation:
6749 ensure that the client only accepts a session ticket if the server sends
6750 the extension anew in the ServerHello. Previously, a TLS client would
6751 reuse the old extension state and thus accept a session ticket if one was
6752 announced in the initial ServerHello.
44652c16 6753
43a70f02
RS
6754 Similarly, ensure that the client requires a session ticket if one
6755 was advertised in the ServerHello. Previously, a TLS client would
6756 ignore a missing NewSessionTicket message.
44652c16
DMSP
6757
6758 *Emilia Käsper*
6759
257e9d03 6760### Changes between 1.0.1i and 1.0.1j [15 Oct 2014]
44652c16
DMSP
6761
6762 * SRTP Memory Leak.
6763
6764 A flaw in the DTLS SRTP extension parsing code allows an attacker, who
6765 sends a carefully crafted handshake message, to cause OpenSSL to fail
6766 to free up to 64k of memory causing a memory leak. This could be
6767 exploited in a Denial Of Service attack. This issue affects OpenSSL
6768 1.0.1 server implementations for both SSL/TLS and DTLS regardless of
6769 whether SRTP is used or configured. Implementations of OpenSSL that
6770 have been compiled with OPENSSL_NO_SRTP defined are not affected.
5f8e6c50 6771
44652c16 6772 The fix was developed by the OpenSSL team.
d8dc8538 6773 ([CVE-2014-3513])
5f8e6c50 6774
44652c16 6775 *OpenSSL team*
5f8e6c50 6776
44652c16 6777 * Session Ticket Memory Leak.
5f8e6c50 6778
44652c16
DMSP
6779 When an OpenSSL SSL/TLS/DTLS server receives a session ticket the
6780 integrity of that ticket is first verified. In the event of a session
6781 ticket integrity check failing, OpenSSL will fail to free memory
6782 causing a memory leak. By sending a large number of invalid session
6783 tickets an attacker could exploit this issue in a Denial Of Service
6784 attack.
d8dc8538 6785 ([CVE-2014-3567])
5f8e6c50 6786
44652c16 6787 *Steve Henson*
5f8e6c50 6788
44652c16 6789 * Build option no-ssl3 is incomplete.
5f8e6c50 6790
44652c16
DMSP
6791 When OpenSSL is configured with "no-ssl3" as a build option, servers
6792 could accept and complete a SSL 3.0 handshake, and clients could be
6793 configured to send them.
d8dc8538 6794 ([CVE-2014-3568])
5f8e6c50 6795
44652c16 6796 *Akamai and the OpenSSL team*
5f8e6c50 6797
44652c16
DMSP
6798 * Add support for TLS_FALLBACK_SCSV.
6799 Client applications doing fallback retries should call
6800 SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV).
d8dc8538 6801 ([CVE-2014-3566])
5f8e6c50 6802
44652c16 6803 *Adam Langley, Bodo Moeller*
5f8e6c50 6804
44652c16 6805 * Add additional DigestInfo checks.
5f8e6c50 6806
44652c16
DMSP
6807 Re-encode DigestInto in DER and check against the original when
6808 verifying RSA signature: this will reject any improperly encoded
6809 DigestInfo structures.
5f8e6c50 6810
44652c16 6811 Note: this is a precautionary measure and no attacks are currently known.
5f8e6c50 6812
5f8e6c50
DMSP
6813 *Steve Henson*
6814
257e9d03 6815### Changes between 1.0.1h and 1.0.1i [6 Aug 2014]
5f8e6c50 6816
44652c16
DMSP
6817 * Fix SRP buffer overrun vulnerability. Invalid parameters passed to the
6818 SRP code can be overrun an internal buffer. Add sanity check that
6819 g, A, B < N to SRP code.
5f8e6c50 6820
44652c16
DMSP
6821 Thanks to Sean Devlin and Watson Ladd of Cryptography Services, NCC
6822 Group for discovering this issue.
d8dc8538 6823 ([CVE-2014-3512])
5f8e6c50
DMSP
6824
6825 *Steve Henson*
6826
44652c16
DMSP
6827 * A flaw in the OpenSSL SSL/TLS server code causes the server to negotiate
6828 TLS 1.0 instead of higher protocol versions when the ClientHello message
6829 is badly fragmented. This allows a man-in-the-middle attacker to force a
6830 downgrade to TLS 1.0 even if both the server and the client support a
6831 higher protocol version, by modifying the client's TLS records.
5f8e6c50 6832
44652c16
DMSP
6833 Thanks to David Benjamin and Adam Langley (Google) for discovering and
6834 researching this issue.
d8dc8538 6835 ([CVE-2014-3511])
5f8e6c50 6836
44652c16 6837 *David Benjamin*
5f8e6c50 6838
44652c16
DMSP
6839 * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject
6840 to a denial of service attack. A malicious server can crash the client
6841 with a null pointer dereference (read) by specifying an anonymous (EC)DH
6842 ciphersuite and sending carefully crafted handshake messages.
5f8e6c50 6843
44652c16
DMSP
6844 Thanks to Felix Gröbert (Google) for discovering and researching this
6845 issue.
d8dc8538 6846 ([CVE-2014-3510])
5f8e6c50 6847
44652c16 6848 *Emilia Käsper*
5f8e6c50 6849
44652c16
DMSP
6850 * By sending carefully crafted DTLS packets an attacker could cause openssl
6851 to leak memory. This can be exploited through a Denial of Service attack.
6852 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 6853 ([CVE-2014-3507])
5f8e6c50 6854
44652c16 6855 *Adam Langley*
5f8e6c50 6856
44652c16
DMSP
6857 * An attacker can force openssl to consume large amounts of memory whilst
6858 processing DTLS handshake messages. This can be exploited through a
6859 Denial of Service attack.
6860 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 6861 ([CVE-2014-3506])
5f8e6c50 6862
44652c16 6863 *Adam Langley*
5f8e6c50 6864
44652c16
DMSP
6865 * An attacker can force an error condition which causes openssl to crash
6866 whilst processing DTLS packets due to memory being freed twice. This
6867 can be exploited through a Denial of Service attack.
6868 Thanks to Adam Langley and Wan-Teh Chang for discovering and researching
6869 this issue.
d8dc8538 6870 ([CVE-2014-3505])
5f8e6c50 6871
44652c16 6872 *Adam Langley*
5f8e6c50 6873
44652c16
DMSP
6874 * If a multithreaded client connects to a malicious server using a resumed
6875 session and the server sends an ec point format extension it could write
6876 up to 255 bytes to freed memory.
5f8e6c50 6877
44652c16
DMSP
6878 Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this
6879 issue.
d8dc8538 6880 ([CVE-2014-3509])
5f8e6c50 6881
44652c16 6882 *Gabor Tyukasz*
5f8e6c50 6883
44652c16
DMSP
6884 * A malicious server can crash an OpenSSL client with a null pointer
6885 dereference (read) by specifying an SRP ciphersuite even though it was not
6886 properly negotiated with the client. This can be exploited through a
6887 Denial of Service attack.
5f8e6c50 6888
44652c16
DMSP
6889 Thanks to Joonas Kuorilehto and Riku Hietamäki (Codenomicon) for
6890 discovering and researching this issue.
d8dc8538 6891 ([CVE-2014-5139])
5f8e6c50
DMSP
6892
6893 *Steve Henson*
6894
44652c16
DMSP
6895 * A flaw in OBJ_obj2txt may cause pretty printing functions such as
6896 X509_name_oneline, X509_name_print_ex et al. to leak some information
6897 from the stack. Applications may be affected if they echo pretty printing
6898 output to the attacker.
5f8e6c50 6899
44652c16 6900 Thanks to Ivan Fratric (Google) for discovering this issue.
d8dc8538 6901 ([CVE-2014-3508])
5f8e6c50 6902
44652c16 6903 *Emilia Käsper, and Steve Henson*
5f8e6c50 6904
44652c16
DMSP
6905 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
6906 for corner cases. (Certain input points at infinity could lead to
6907 bogus results, with non-infinity inputs mapped to infinity too.)
5f8e6c50 6908
44652c16 6909 *Bodo Moeller*
5f8e6c50 6910
257e9d03 6911### Changes between 1.0.1g and 1.0.1h [5 Jun 2014]
5f8e6c50 6912
44652c16
DMSP
6913 * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted
6914 handshake can force the use of weak keying material in OpenSSL
6915 SSL/TLS clients and servers.
5f8e6c50 6916
44652c16 6917 Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
d8dc8538 6918 researching this issue. ([CVE-2014-0224])
5f8e6c50 6919
44652c16 6920 *KIKUCHI Masashi, Steve Henson*
5f8e6c50 6921
44652c16
DMSP
6922 * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an
6923 OpenSSL DTLS client the code can be made to recurse eventually crashing
6924 in a DoS attack.
5f8e6c50 6925
44652c16 6926 Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.
d8dc8538 6927 ([CVE-2014-0221])
5f8e6c50 6928
44652c16 6929 *Imre Rad, Steve Henson*
5f8e6c50 6930
44652c16
DMSP
6931 * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can
6932 be triggered by sending invalid DTLS fragments to an OpenSSL DTLS
6933 client or server. This is potentially exploitable to run arbitrary
6934 code on a vulnerable client or server.
5f8e6c50 6935
d8dc8538 6936 Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195])
5f8e6c50 6937
44652c16 6938 *Jüri Aedla, Steve Henson*
5f8e6c50 6939
44652c16
DMSP
6940 * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites
6941 are subject to a denial of service attack.
5f8e6c50 6942
44652c16 6943 Thanks to Felix Gröbert and Ivan Fratric at Google for discovering
d8dc8538 6944 this issue. ([CVE-2014-3470])
5f8e6c50 6945
44652c16 6946 *Felix Gröbert, Ivan Fratric, Steve Henson*
5f8e6c50 6947
44652c16
DMSP
6948 * Harmonize version and its documentation. -f flag is used to display
6949 compilation flags.
5f8e6c50 6950
44652c16 6951 *mancha <mancha1@zoho.com>*
5f8e6c50 6952
44652c16
DMSP
6953 * Fix eckey_priv_encode so it immediately returns an error upon a failure
6954 in i2d_ECPrivateKey.
5f8e6c50 6955
44652c16 6956 *mancha <mancha1@zoho.com>*
5f8e6c50 6957
44652c16 6958 * Fix some double frees. These are not thought to be exploitable.
5f8e6c50 6959
44652c16 6960 *mancha <mancha1@zoho.com>*
5f8e6c50 6961
257e9d03 6962### Changes between 1.0.1f and 1.0.1g [7 Apr 2014]
5f8e6c50 6963
44652c16
DMSP
6964 * A missing bounds check in the handling of the TLS heartbeat extension
6965 can be used to reveal up to 64k of memory to a connected client or
6966 server.
5f8e6c50 6967
44652c16
DMSP
6968 Thanks for Neel Mehta of Google Security for discovering this bug and to
6969 Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
d8dc8538 6970 preparing the fix ([CVE-2014-0160])
5f8e6c50 6971
44652c16 6972 *Adam Langley, Bodo Moeller*
5f8e6c50 6973
44652c16
DMSP
6974 * Fix for the attack described in the paper "Recovering OpenSSL
6975 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
6976 by Yuval Yarom and Naomi Benger. Details can be obtained from:
257e9d03 6977 <http://eprint.iacr.org/2014/140>
5f8e6c50 6978
44652c16 6979 Thanks to Yuval Yarom and Naomi Benger for discovering this
d8dc8538 6980 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
5f8e6c50 6981
44652c16 6982 *Yuval Yarom and Naomi Benger*
5f8e6c50 6983
44652c16 6984 * TLS pad extension: draft-agl-tls-padding-03
5f8e6c50 6985
44652c16
DMSP
6986 Workaround for the "TLS hang bug" (see FAQ and PR#2771): if the
6987 TLS client Hello record length value would otherwise be > 255 and
6988 less that 512 pad with a dummy extension containing zeroes so it
6989 is at least 512 bytes long.
5f8e6c50 6990
44652c16 6991 *Adam Langley, Steve Henson*
5f8e6c50 6992
257e9d03 6993### Changes between 1.0.1e and 1.0.1f [6 Jan 2014]
5f8e6c50 6994
44652c16
DMSP
6995 * Fix for TLS record tampering bug. A carefully crafted invalid
6996 handshake could crash OpenSSL with a NULL pointer exception.
6997 Thanks to Anton Johansson for reporting this issues.
d8dc8538 6998 ([CVE-2013-4353])
5f8e6c50 6999
44652c16
DMSP
7000 * Keep original DTLS digest and encryption contexts in retransmission
7001 structures so we can use the previous session parameters if they need
d8dc8538 7002 to be resent. ([CVE-2013-6450])
5f8e6c50 7003
44652c16 7004 *Steve Henson*
5f8e6c50 7005
44652c16
DMSP
7006 * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which
7007 avoids preferring ECDHE-ECDSA ciphers when the client appears to be
7008 Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for
7009 several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug
7010 is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing
7011 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer.
5f8e6c50 7012
44652c16 7013 *Rob Stradling, Adam Langley*
5f8e6c50 7014
257e9d03 7015### Changes between 1.0.1d and 1.0.1e [11 Feb 2013]
5f8e6c50 7016
44652c16
DMSP
7017 * Correct fix for CVE-2013-0169. The original didn't work on AES-NI
7018 supporting platforms or when small records were transferred.
5f8e6c50 7019
44652c16 7020 *Andy Polyakov, Steve Henson*
5f8e6c50 7021
257e9d03 7022### Changes between 1.0.1c and 1.0.1d [5 Feb 2013]
5f8e6c50 7023
44652c16 7024 * Make the decoding of SSLv3, TLS and DTLS CBC records constant time.
5f8e6c50 7025
44652c16
DMSP
7026 This addresses the flaw in CBC record processing discovered by
7027 Nadhem Alfardan and Kenny Paterson. Details of this attack can be found
257e9d03 7028 at: <http://www.isg.rhul.ac.uk/tls/>
5f8e6c50 7029
44652c16
DMSP
7030 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
7031 Security Group at Royal Holloway, University of London
7032 (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and
7033 Emilia Käsper for the initial patch.
d8dc8538 7034 ([CVE-2013-0169])
5f8e6c50 7035
44652c16 7036 *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson*
5f8e6c50 7037
44652c16
DMSP
7038 * Fix flaw in AESNI handling of TLS 1.2 and 1.1 records for CBC mode
7039 ciphersuites which can be exploited in a denial of service attack.
7040 Thanks go to and to Adam Langley <agl@chromium.org> for discovering
7041 and detecting this bug and to Wolfgang Ettlinger
7042 <wolfgang.ettlinger@gmail.com> for independently discovering this issue.
d8dc8538 7043 ([CVE-2012-2686])
5f8e6c50 7044
44652c16 7045 *Adam Langley*
5f8e6c50 7046
44652c16 7047 * Return an error when checking OCSP signatures when key is NULL.
d8dc8538 7048 This fixes a DoS attack. ([CVE-2013-0166])
5f8e6c50
DMSP
7049
7050 *Steve Henson*
7051
44652c16 7052 * Make openssl verify return errors.
5f8e6c50 7053
44652c16 7054 *Chris Palmer <palmer@google.com> and Ben Laurie*
5f8e6c50 7055
44652c16
DMSP
7056 * Call OCSP Stapling callback after ciphersuite has been chosen, so
7057 the right response is stapled. Also change SSL_get_certificate()
7058 so it returns the certificate actually sent.
257e9d03 7059 See <http://rt.openssl.org/Ticket/Display.html?id=2836>.
5f8e6c50 7060
44652c16 7061 *Rob Stradling <rob.stradling@comodo.com>*
5f8e6c50 7062
44652c16 7063 * Fix possible deadlock when decoding public keys.
5f8e6c50
DMSP
7064
7065 *Steve Henson*
7066
44652c16
DMSP
7067 * Don't use TLS 1.0 record version number in initial client hello
7068 if renegotiating.
5f8e6c50 7069
44652c16 7070 *Steve Henson*
5f8e6c50 7071
257e9d03 7072### Changes between 1.0.1b and 1.0.1c [10 May 2012]
5f8e6c50 7073
44652c16
DMSP
7074 * Sanity check record length before skipping explicit IV in TLS
7075 1.2, 1.1 and DTLS to fix DoS attack.
5f8e6c50 7076
44652c16
DMSP
7077 Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic
7078 fuzzing as a service testing platform.
d8dc8538 7079 ([CVE-2012-2333])
5f8e6c50
DMSP
7080
7081 *Steve Henson*
7082
44652c16
DMSP
7083 * Initialise tkeylen properly when encrypting CMS messages.
7084 Thanks to Solar Designer of Openwall for reporting this issue.
5f8e6c50
DMSP
7085
7086 *Steve Henson*
7087
44652c16
DMSP
7088 * In FIPS mode don't try to use composite ciphers as they are not
7089 approved.
5f8e6c50
DMSP
7090
7091 *Steve Henson*
7092
257e9d03 7093### Changes between 1.0.1a and 1.0.1b [26 Apr 2012]
44652c16
DMSP
7094
7095 * OpenSSL 1.0.0 sets SSL_OP_ALL to 0x80000FFFL and OpenSSL 1.0.1 and
7096 1.0.1a set SSL_OP_NO_TLSv1_1 to 0x00000400L which would unfortunately
7097 mean any application compiled against OpenSSL 1.0.0 headers setting
7098 SSL_OP_ALL would also set SSL_OP_NO_TLSv1_1, unintentionally disabling
7099 TLS 1.1 also. Fix this by changing the value of SSL_OP_NO_TLSv1_1 to
7100 0x10000000L Any application which was previously compiled against
7101 OpenSSL 1.0.1 or 1.0.1a headers and which cares about SSL_OP_NO_TLSv1_1
7102 will need to be recompiled as a result. Letting be results in
7103 inability to disable specifically TLS 1.1 and in client context,
7104 in unlike event, limit maximum offered version to TLS 1.0 [see below].
5f8e6c50
DMSP
7105
7106 *Steve Henson*
7107
44652c16
DMSP
7108 * In order to ensure interoperability SSL_OP_NO_protocolX does not
7109 disable just protocol X, but all protocols above X *if* there are
7110 protocols *below* X still enabled. In more practical terms it means
7111 that if application wants to disable TLS1.0 in favor of TLS1.1 and
1dc1ea18
DDO
7112 above, it's not sufficient to pass `SSL_OP_NO_TLSv1`, one has to pass
7113 `SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv3|SSL_OP_NO_SSLv2`. This applies to
44652c16 7114 client side.
5f8e6c50 7115
44652c16 7116 *Andy Polyakov*
5f8e6c50 7117
257e9d03 7118### Changes between 1.0.1 and 1.0.1a [19 Apr 2012]
5f8e6c50 7119
44652c16
DMSP
7120 * Check for potentially exploitable overflows in asn1_d2i_read_bio
7121 BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
7122 in CRYPTO_realloc_clean.
5f8e6c50 7123
44652c16
DMSP
7124 Thanks to Tavis Ormandy, Google Security Team, for discovering this
7125 issue and to Adam Langley <agl@chromium.org> for fixing it.
d8dc8538 7126 ([CVE-2012-2110])
5f8e6c50 7127
44652c16 7128 *Adam Langley (Google), Tavis Ormandy, Google Security Team*
5f8e6c50 7129
44652c16 7130 * Don't allow TLS 1.2 SHA-256 ciphersuites in TLS 1.0, 1.1 connections.
5f8e6c50 7131
44652c16 7132 *Adam Langley*
5f8e6c50 7133
44652c16
DMSP
7134 * Workarounds for some broken servers that "hang" if a client hello
7135 record length exceeds 255 bytes.
7136
7137 1. Do not use record version number > TLS 1.0 in initial client
7138 hello: some (but not all) hanging servers will now work.
7139 2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate
7140 the number of ciphers sent in the client hello. This should be
7141 set to an even number, such as 50, for example by passing:
7142 -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 to config or Configure.
7143 Most broken servers should now work.
7144 3. If all else fails setting OPENSSL_NO_TLS1_2_CLIENT will disable
7145 TLS 1.2 client support entirely.
5f8e6c50
DMSP
7146
7147 *Steve Henson*
7148
44652c16 7149 * Fix SEGV in Vector Permutation AES module observed in OpenSSH.
5f8e6c50 7150
44652c16 7151 *Andy Polyakov*
5f8e6c50 7152
257e9d03 7153### Changes between 1.0.0h and 1.0.1 [14 Mar 2012]
44652c16
DMSP
7154
7155 * Add compatibility with old MDC2 signatures which use an ASN1 OCTET
7156 STRING form instead of a DigestInfo.
5f8e6c50
DMSP
7157
7158 *Steve Henson*
7159
44652c16
DMSP
7160 * The format used for MDC2 RSA signatures is inconsistent between EVP
7161 and the RSA_sign/RSA_verify functions. This was made more apparent when
7162 OpenSSL used RSA_sign/RSA_verify for some RSA signatures in particular
7163 those which went through EVP_PKEY_METHOD in 1.0.0 and later. Detect
7164 the correct format in RSA_verify so both forms transparently work.
5f8e6c50 7165
44652c16 7166 *Steve Henson*
5f8e6c50 7167
44652c16
DMSP
7168 * Some servers which support TLS 1.0 can choke if we initially indicate
7169 support for TLS 1.2 and later renegotiate using TLS 1.0 in the RSA
7170 encrypted premaster secret. As a workaround use the maximum permitted
7171 client version in client hello, this should keep such servers happy
7172 and still work with previous versions of OpenSSL.
5f8e6c50 7173
44652c16 7174 *Steve Henson*
5f8e6c50 7175
44652c16 7176 * Add support for TLS/DTLS heartbeats.
5f8e6c50 7177
44652c16 7178 *Robin Seggelmann <seggelmann@fh-muenster.de>*
5f8e6c50 7179
44652c16 7180 * Add support for SCTP.
5f8e6c50 7181
44652c16 7182 *Robin Seggelmann <seggelmann@fh-muenster.de>*
5f8e6c50 7183
44652c16 7184 * Improved PRNG seeding for VOS.
5f8e6c50 7185
44652c16 7186 *Paul Green <Paul.Green@stratus.com>*
5f8e6c50 7187
44652c16 7188 * Extensive assembler packs updates, most notably:
5f8e6c50 7189
257e9d03
RS
7190 - x86[_64]: AES-NI, PCLMULQDQ, RDRAND support;
7191 - x86[_64]: SSSE3 support (SHA1, vector-permutation AES);
7192 - x86_64: bit-sliced AES implementation;
7193 - ARM: NEON support, contemporary platforms optimizations;
7194 - s390x: z196 support;
7195 - `*`: GHASH and GF(2^m) multiplication implementations;
5f8e6c50 7196
44652c16 7197 *Andy Polyakov*
5f8e6c50 7198
44652c16
DMSP
7199 * Make TLS-SRP code conformant with RFC 5054 API cleanup
7200 (removal of unnecessary code)
5f8e6c50 7201
44652c16 7202 *Peter Sylvester <peter.sylvester@edelweb.fr>*
5f8e6c50 7203
44652c16 7204 * Add TLS key material exporter from RFC 5705.
5f8e6c50 7205
44652c16 7206 *Eric Rescorla*
5f8e6c50 7207
44652c16 7208 * Add DTLS-SRTP negotiation from RFC 5764.
5f8e6c50 7209
44652c16 7210 *Eric Rescorla*
5f8e6c50 7211
44652c16 7212 * Add Next Protocol Negotiation,
257e9d03 7213 <http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00>. Can be
44652c16
DMSP
7214 disabled with a no-npn flag to config or Configure. Code donated
7215 by Google.
5f8e6c50 7216
44652c16 7217 *Adam Langley <agl@google.com> and Ben Laurie*
5f8e6c50 7218
44652c16
DMSP
7219 * Add optional 64-bit optimized implementations of elliptic curves NIST-P224,
7220 NIST-P256, NIST-P521, with constant-time single point multiplication on
7221 typical inputs. Compiler support for the nonstandard type `__uint128_t` is
7222 required to use this (present in gcc 4.4 and later, for 64-bit builds).
7223 Code made available under Apache License version 2.0.
5f8e6c50 7224
44652c16
DMSP
7225 Specify "enable-ec_nistp_64_gcc_128" on the Configure (or config) command
7226 line to include this in your build of OpenSSL, and run "make depend" (or
7227 "make update"). This enables the following EC_METHODs:
5f8e6c50 7228
44652c16
DMSP
7229 EC_GFp_nistp224_method()
7230 EC_GFp_nistp256_method()
7231 EC_GFp_nistp521_method()
5f8e6c50 7232
44652c16
DMSP
7233 EC_GROUP_new_by_curve_name() will automatically use these (while
7234 EC_GROUP_new_curve_GFp() currently prefers the more flexible
7235 implementations).
5f8e6c50 7236
44652c16 7237 *Emilia Käsper, Adam Langley, Bodo Moeller (Google)*
5f8e6c50 7238
44652c16
DMSP
7239 * Use type ossl_ssize_t instead of ssize_t which isn't available on
7240 all platforms. Move ssize_t definition from e_os.h to the public
7241 header file e_os2.h as it now appears in public header file cms.h
5f8e6c50 7242
44652c16 7243 *Steve Henson*
5f8e6c50 7244
44652c16
DMSP
7245 * New -sigopt option to the ca, req and x509 utilities. Additional
7246 signature parameters can be passed using this option and in
7247 particular PSS.
5f8e6c50 7248
44652c16 7249 *Steve Henson*
5f8e6c50 7250
44652c16
DMSP
7251 * Add RSA PSS signing function. This will generate and set the
7252 appropriate AlgorithmIdentifiers for PSS based on those in the
7253 corresponding EVP_MD_CTX structure. No application support yet.
5f8e6c50 7254
44652c16 7255 *Steve Henson*
5f8e6c50 7256
44652c16
DMSP
7257 * Support for companion algorithm specific ASN1 signing routines.
7258 New function ASN1_item_sign_ctx() signs a pre-initialised
7259 EVP_MD_CTX structure and sets AlgorithmIdentifiers based on
7260 the appropriate parameters.
5f8e6c50
DMSP
7261
7262 *Steve Henson*
7263
44652c16
DMSP
7264 * Add new algorithm specific ASN1 verification initialisation function
7265 to EVP_PKEY_ASN1_METHOD: this is not in EVP_PKEY_METHOD since the ASN1
7266 handling will be the same no matter what EVP_PKEY_METHOD is used.
7267 Add a PSS handler to support verification of PSS signatures: checked
7268 against a number of sample certificates.
5f8e6c50 7269
44652c16 7270 *Steve Henson*
5f8e6c50 7271
44652c16 7272 * Add signature printing for PSS. Add PSS OIDs.
5f8e6c50 7273
44652c16 7274 *Steve Henson, Martin Kaiser <lists@kaiser.cx>*
5f8e6c50 7275
44652c16
DMSP
7276 * Add algorithm specific signature printing. An individual ASN1 method
7277 can now print out signatures instead of the standard hex dump.
5f8e6c50 7278
44652c16
DMSP
7279 More complex signatures (e.g. PSS) can print out more meaningful
7280 information. Include DSA version that prints out the signature
7281 parameters r, s.
5f8e6c50 7282
44652c16 7283 *Steve Henson*
5f8e6c50 7284
44652c16
DMSP
7285 * Password based recipient info support for CMS library: implementing
7286 RFC3211.
5f8e6c50 7287
44652c16 7288 *Steve Henson*
5f8e6c50 7289
44652c16
DMSP
7290 * Split password based encryption into PBES2 and PBKDF2 functions. This
7291 neatly separates the code into cipher and PBE sections and is required
7292 for some algorithms that split PBES2 into separate pieces (such as
7293 password based CMS).
5f8e6c50 7294
44652c16 7295 *Steve Henson*
5f8e6c50 7296
44652c16
DMSP
7297 * Session-handling fixes:
7298 - Fix handling of connections that are resuming with a session ID,
7299 but also support Session Tickets.
7300 - Fix a bug that suppressed issuing of a new ticket if the client
7301 presented a ticket with an expired session.
7302 - Try to set the ticket lifetime hint to something reasonable.
7303 - Make tickets shorter by excluding irrelevant information.
7304 - On the client side, don't ignore renewed tickets.
5f8e6c50 7305
44652c16 7306 *Adam Langley, Bodo Moeller (Google)*
5f8e6c50 7307
44652c16 7308 * Fix PSK session representation.
5f8e6c50 7309
44652c16 7310 *Bodo Moeller*
5f8e6c50 7311
44652c16 7312 * Add RC4-MD5 and AESNI-SHA1 "stitched" implementations.
5f8e6c50 7313
44652c16 7314 This work was sponsored by Intel.
5f8e6c50 7315
44652c16 7316 *Andy Polyakov*
5f8e6c50 7317
44652c16
DMSP
7318 * Add GCM support to TLS library. Some custom code is needed to split
7319 the IV between the fixed (from PRF) and explicit (from TLS record)
7320 portions. This adds all GCM ciphersuites supported by RFC5288 and
257e9d03 7321 RFC5289. Generalise some `AES*` cipherstrings to include GCM and
44652c16 7322 add a special AESGCM string for GCM only.
5f8e6c50 7323
44652c16 7324 *Steve Henson*
5f8e6c50 7325
44652c16
DMSP
7326 * Expand range of ctrls for AES GCM. Permit setting invocation
7327 field on decrypt and retrieval of invocation field only on encrypt.
5f8e6c50 7328
44652c16 7329 *Steve Henson*
5f8e6c50 7330
44652c16
DMSP
7331 * Add HMAC ECC ciphersuites from RFC5289. Include SHA384 PRF support.
7332 As required by RFC5289 these ciphersuites cannot be used if for
7333 versions of TLS earlier than 1.2.
5f8e6c50 7334
44652c16 7335 *Steve Henson*
5f8e6c50 7336
44652c16
DMSP
7337 * For FIPS capable OpenSSL interpret a NULL default public key method
7338 as unset and return the appropriate default but do *not* set the default.
7339 This means we can return the appropriate method in applications that
7340 switch between FIPS and non-FIPS modes.
7341
7342 *Steve Henson*
5f8e6c50 7343
44652c16
DMSP
7344 * Redirect HMAC and CMAC operations to FIPS module in FIPS mode. If an
7345 ENGINE is used then we cannot handle that in the FIPS module so we
7346 keep original code iff non-FIPS operations are allowed.
5f8e6c50
DMSP
7347
7348 *Steve Henson*
7349
44652c16 7350 * Add -attime option to openssl utilities.
5f8e6c50 7351
44652c16 7352 *Peter Eckersley <pde@eff.org>, Ben Laurie and Steve Henson*
5f8e6c50 7353
44652c16 7354 * Redirect DSA and DH operations to FIPS module in FIPS mode.
5f8e6c50
DMSP
7355
7356 *Steve Henson*
7357
44652c16
DMSP
7358 * Redirect ECDSA and ECDH operations to FIPS module in FIPS mode. Also use
7359 FIPS EC methods unconditionally for now.
5f8e6c50 7360
44652c16 7361 *Steve Henson*
5f8e6c50 7362
44652c16 7363 * New build option no-ec2m to disable characteristic 2 code.
5f8e6c50 7364
44652c16 7365 *Steve Henson*
5f8e6c50 7366
44652c16
DMSP
7367 * Backport libcrypto audit of return value checking from 1.1.0-dev; not
7368 all cases can be covered as some introduce binary incompatibilities.
5f8e6c50 7369
44652c16 7370 *Steve Henson*
5f8e6c50 7371
44652c16
DMSP
7372 * Redirect RSA operations to FIPS module including keygen,
7373 encrypt, decrypt, sign and verify. Block use of non FIPS RSA methods.
5f8e6c50 7374
44652c16 7375 *Steve Henson*
5f8e6c50 7376
4d49b685 7377 * Add similar low-level API blocking to ciphers.
5f8e6c50 7378
44652c16 7379 *Steve Henson*
5f8e6c50 7380
4d49b685 7381 * low-level digest APIs are not approved in FIPS mode: any attempt
44652c16 7382 to use these will cause a fatal error. Applications that *really* want
257e9d03 7383 to use them can use the `private_*` version instead.
5f8e6c50 7384
44652c16 7385 *Steve Henson*
5f8e6c50 7386
44652c16 7387 * Redirect cipher operations to FIPS module for FIPS builds.
5f8e6c50 7388
44652c16 7389 *Steve Henson*
5f8e6c50 7390
44652c16 7391 * Redirect digest operations to FIPS module for FIPS builds.
5f8e6c50 7392
44652c16
DMSP
7393 *Steve Henson*
7394
7395 * Update build system to add "fips" flag which will link in fipscanister.o
7396 for static and shared library builds embedding a signature if needed.
5f8e6c50
DMSP
7397
7398 *Steve Henson*
7399
44652c16
DMSP
7400 * Output TLS supported curves in preference order instead of numerical
7401 order. This is currently hardcoded for the highest order curves first.
7402 This should be configurable so applications can judge speed vs strength.
5f8e6c50 7403
44652c16 7404 *Steve Henson*
5f8e6c50 7405
44652c16 7406 * Add TLS v1.2 server support for client authentication.
5f8e6c50 7407
44652c16 7408 *Steve Henson*
5f8e6c50 7409
44652c16
DMSP
7410 * Add support for FIPS mode in ssl library: disable SSLv3, non-FIPS ciphers
7411 and enable MD5.
5f8e6c50 7412
44652c16 7413 *Steve Henson*
5f8e6c50 7414
44652c16
DMSP
7415 * Functions FIPS_mode_set() and FIPS_mode() which call the underlying
7416 FIPS modules versions.
5f8e6c50 7417
44652c16 7418 *Steve Henson*
5f8e6c50 7419
44652c16
DMSP
7420 * Add TLS v1.2 client side support for client authentication. Keep cache
7421 of handshake records longer as we don't know the hash algorithm to use
7422 until after the certificate request message is received.
5f8e6c50 7423
44652c16 7424 *Steve Henson*
5f8e6c50 7425
44652c16
DMSP
7426 * Initial TLS v1.2 client support. Add a default signature algorithms
7427 extension including all the algorithms we support. Parse new signature
7428 format in client key exchange. Relax some ECC signing restrictions for
7429 TLS v1.2 as indicated in RFC5246.
5f8e6c50 7430
44652c16 7431 *Steve Henson*
5f8e6c50 7432
44652c16
DMSP
7433 * Add server support for TLS v1.2 signature algorithms extension. Switch
7434 to new signature format when needed using client digest preference.
7435 All server ciphersuites should now work correctly in TLS v1.2. No client
7436 support yet and no support for client certificates.
5f8e6c50 7437
44652c16 7438 *Steve Henson*
5f8e6c50 7439
44652c16
DMSP
7440 * Initial TLS v1.2 support. Add new SHA256 digest to ssl code, switch
7441 to SHA256 for PRF when using TLS v1.2 and later. Add new SHA256 based
7442 ciphersuites. At present only RSA key exchange ciphersuites work with
7443 TLS v1.2. Add new option for TLS v1.2 replacing the old and obsolete
7444 SSL_OP_PKCS1_CHECK flags with SSL_OP_NO_TLSv1_2. New TLSv1.2 methods
7445 and version checking.
5f8e6c50 7446
44652c16 7447 *Steve Henson*
5f8e6c50 7448
44652c16
DMSP
7449 * New option OPENSSL_NO_SSL_INTERN. If an application can be compiled
7450 with this defined it will not be affected by any changes to ssl internal
7451 structures. Add several utility functions to allow openssl application
7452 to work with OPENSSL_NO_SSL_INTERN defined.
5f8e6c50 7453
44652c16 7454 *Steve Henson*
5f8e6c50 7455
44652c16
DMSP
7456 * A long standing patch to add support for SRP from EdelWeb (Peter
7457 Sylvester and Christophe Renou) was integrated.
7458 *Christophe Renou <christophe.renou@edelweb.fr>, Peter Sylvester
7459 <peter.sylvester@edelweb.fr>, Tom Wu <tjw@cs.stanford.edu>, and
7460 Ben Laurie*
5f8e6c50 7461
44652c16 7462 * Add functions to copy EVP_PKEY_METHOD and retrieve flags and id.
5f8e6c50 7463
44652c16 7464 *Steve Henson*
5f8e6c50 7465
44652c16
DMSP
7466 * Permit abbreviated handshakes when renegotiating using the function
7467 SSL_renegotiate_abbreviated().
5f8e6c50 7468
44652c16 7469 *Robin Seggelmann <seggelmann@fh-muenster.de>*
5f8e6c50 7470
44652c16
DMSP
7471 * Add call to ENGINE_register_all_complete() to
7472 ENGINE_load_builtin_engines(), so some implementations get used
7473 automatically instead of needing explicit application support.
5f8e6c50 7474
44652c16 7475 *Steve Henson*
5f8e6c50 7476
44652c16 7477 * Add support for TLS key exporter as described in RFC5705.
5f8e6c50 7478
44652c16 7479 *Robin Seggelmann <seggelmann@fh-muenster.de>, Steve Henson*
5f8e6c50 7480
44652c16
DMSP
7481 * Initial TLSv1.1 support. Since TLSv1.1 is very similar to TLS v1.0 only
7482 a few changes are required:
5f8e6c50 7483
44652c16
DMSP
7484 Add SSL_OP_NO_TLSv1_1 flag.
7485 Add TLSv1_1 methods.
7486 Update version checking logic to handle version 1.1.
7487 Add explicit IV handling (ported from DTLS code).
7488 Add command line options to s_client/s_server.
5f8e6c50 7489
44652c16 7490 *Steve Henson*
5f8e6c50 7491
44652c16
DMSP
7492OpenSSL 1.0.0
7493-------------
5f8e6c50 7494
257e9d03 7495### Changes between 1.0.0s and 1.0.0t [3 Dec 2015]
5f8e6c50 7496
44652c16 7497 * X509_ATTRIBUTE memory leak
5f8e6c50 7498
44652c16
DMSP
7499 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
7500 memory. This structure is used by the PKCS#7 and CMS routines so any
7501 application which reads PKCS#7 or CMS data from untrusted sources is
7502 affected. SSL/TLS is not affected.
5f8e6c50 7503
44652c16
DMSP
7504 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
7505 libFuzzer.
d8dc8538 7506 ([CVE-2015-3195])
5f8e6c50 7507
44652c16 7508 *Stephen Henson*
5f8e6c50 7509
44652c16 7510 * Race condition handling PSK identify hint
5f8e6c50 7511
44652c16
DMSP
7512 If PSK identity hints are received by a multi-threaded client then
7513 the values are wrongly updated in the parent SSL_CTX structure. This can
7514 result in a race condition potentially leading to a double free of the
7515 identify hint data.
d8dc8538 7516 ([CVE-2015-3196])
5f8e6c50 7517
44652c16 7518 *Stephen Henson*
5f8e6c50 7519
257e9d03 7520### Changes between 1.0.0r and 1.0.0s [11 Jun 2015]
5f8e6c50 7521
44652c16 7522 * Malformed ECParameters causes infinite loop
5f8e6c50 7523
44652c16
DMSP
7524 When processing an ECParameters structure OpenSSL enters an infinite loop
7525 if the curve specified is over a specially malformed binary polynomial
7526 field.
5f8e6c50 7527
44652c16
DMSP
7528 This can be used to perform denial of service against any
7529 system which processes public keys, certificate requests or
7530 certificates. This includes TLS clients and TLS servers with
7531 client authentication enabled.
5f8e6c50 7532
44652c16 7533 This issue was reported to OpenSSL by Joseph Barr-Pixton.
d8dc8538 7534 ([CVE-2015-1788])
5f8e6c50 7535
44652c16 7536 *Andy Polyakov*
5f8e6c50 7537
44652c16 7538 * Exploitable out-of-bounds read in X509_cmp_time
5f8e6c50 7539
44652c16
DMSP
7540 X509_cmp_time does not properly check the length of the ASN1_TIME
7541 string and can read a few bytes out of bounds. In addition,
7542 X509_cmp_time accepts an arbitrary number of fractional seconds in the
7543 time string.
5f8e6c50 7544
44652c16
DMSP
7545 An attacker can use this to craft malformed certificates and CRLs of
7546 various sizes and potentially cause a segmentation fault, resulting in
7547 a DoS on applications that verify certificates or CRLs. TLS clients
7548 that verify CRLs are affected. TLS clients and servers with client
7549 authentication enabled may be affected if they use custom verification
7550 callbacks.
5f8e6c50 7551
44652c16
DMSP
7552 This issue was reported to OpenSSL by Robert Swiecki (Google), and
7553 independently by Hanno Böck.
d8dc8538 7554 ([CVE-2015-1789])
5f8e6c50 7555
44652c16 7556 *Emilia Käsper*
5f8e6c50 7557
44652c16 7558 * PKCS7 crash with missing EnvelopedContent
5f8e6c50 7559
44652c16
DMSP
7560 The PKCS#7 parsing code does not handle missing inner EncryptedContent
7561 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
7562 with missing content and trigger a NULL pointer dereference on parsing.
5f8e6c50 7563
44652c16
DMSP
7564 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
7565 structures from untrusted sources are affected. OpenSSL clients and
7566 servers are not affected.
5f8e6c50 7567
44652c16 7568 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 7569 ([CVE-2015-1790])
5f8e6c50 7570
44652c16 7571 *Emilia Käsper*
5f8e6c50 7572
44652c16 7573 * CMS verify infinite loop with unknown hash function
5f8e6c50 7574
44652c16
DMSP
7575 When verifying a signedData message the CMS code can enter an infinite loop
7576 if presented with an unknown hash function OID. This can be used to perform
7577 denial of service against any system which verifies signedData messages using
7578 the CMS code.
7579 This issue was reported to OpenSSL by Johannes Bauer.
d8dc8538 7580 ([CVE-2015-1792])
5f8e6c50 7581
44652c16 7582 *Stephen Henson*
5f8e6c50 7583
44652c16 7584 * Race condition handling NewSessionTicket
5f8e6c50 7585
44652c16
DMSP
7586 If a NewSessionTicket is received by a multi-threaded client when attempting to
7587 reuse a previous ticket then a race condition can occur potentially leading to
7588 a double free of the ticket data.
d8dc8538 7589 ([CVE-2015-1791])
5f8e6c50 7590
44652c16 7591 *Matt Caswell*
5f8e6c50 7592
257e9d03 7593### Changes between 1.0.0q and 1.0.0r [19 Mar 2015]
5f8e6c50 7594
44652c16
DMSP
7595 * Segmentation fault in ASN1_TYPE_cmp fix
7596
7597 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
7598 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
7599 certificate signature algorithm consistency this can be used to crash any
7600 certificate verification operation and exploited in a DoS attack. Any
7601 application which performs certificate verification is vulnerable including
7602 OpenSSL clients and servers which enable client authentication.
d8dc8538 7603 ([CVE-2015-0286])
5f8e6c50 7604
44652c16 7605 *Stephen Henson*
5f8e6c50 7606
44652c16 7607 * ASN.1 structure reuse memory corruption fix
5f8e6c50 7608
44652c16
DMSP
7609 Reusing a structure in ASN.1 parsing may allow an attacker to cause
7610 memory corruption via an invalid write. Such reuse is and has been
7611 strongly discouraged and is believed to be rare.
5f8e6c50 7612
44652c16
DMSP
7613 Applications that parse structures containing CHOICE or ANY DEFINED BY
7614 components may be affected. Certificate parsing (d2i_X509 and related
7615 functions) are however not affected. OpenSSL clients and servers are
7616 not affected.
d8dc8538 7617 ([CVE-2015-0287])
5f8e6c50 7618
44652c16 7619 *Stephen Henson*
5f8e6c50 7620
44652c16 7621 * PKCS7 NULL pointer dereferences fix
5f8e6c50 7622
44652c16
DMSP
7623 The PKCS#7 parsing code does not handle missing outer ContentInfo
7624 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
7625 missing content and trigger a NULL pointer dereference on parsing.
5f8e6c50 7626
44652c16
DMSP
7627 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
7628 otherwise parse PKCS#7 structures from untrusted sources are
7629 affected. OpenSSL clients and servers are not affected.
5f8e6c50 7630
44652c16 7631 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 7632 ([CVE-2015-0289])
5f8e6c50 7633
44652c16 7634 *Emilia Käsper*
5f8e6c50 7635
44652c16 7636 * DoS via reachable assert in SSLv2 servers fix
5f8e6c50 7637
44652c16
DMSP
7638 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
7639 servers that both support SSLv2 and enable export cipher suites by sending
7640 a specially crafted SSLv2 CLIENT-MASTER-KEY message.
5f8e6c50 7641
44652c16
DMSP
7642 This issue was discovered by Sean Burford (Google) and Emilia Käsper
7643 (OpenSSL development team).
d8dc8538 7644 ([CVE-2015-0293])
5f8e6c50 7645
44652c16 7646 *Emilia Käsper*
5f8e6c50 7647
44652c16 7648 * Use After Free following d2i_ECPrivatekey error fix
5f8e6c50 7649
44652c16
DMSP
7650 A malformed EC private key file consumed via the d2i_ECPrivateKey function
7651 could cause a use after free condition. This, in turn, could cause a double
7652 free in several private key parsing functions (such as d2i_PrivateKey
7653 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
7654 for applications that receive EC private keys from untrusted
7655 sources. This scenario is considered rare.
5f8e6c50 7656
44652c16
DMSP
7657 This issue was discovered by the BoringSSL project and fixed in their
7658 commit 517073cd4b.
d8dc8538 7659 ([CVE-2015-0209])
5f8e6c50 7660
44652c16 7661 *Matt Caswell*
5f8e6c50 7662
44652c16 7663 * X509_to_X509_REQ NULL pointer deref fix
5f8e6c50 7664
44652c16
DMSP
7665 The function X509_to_X509_REQ will crash with a NULL pointer dereference if
7666 the certificate key is invalid. This function is rarely used in practice.
5f8e6c50 7667
44652c16 7668 This issue was discovered by Brian Carpenter.
d8dc8538 7669 ([CVE-2015-0288])
5f8e6c50 7670
44652c16 7671 *Stephen Henson*
5f8e6c50 7672
44652c16 7673 * Removed the export ciphers from the DEFAULT ciphers
5f8e6c50 7674
44652c16 7675 *Kurt Roeckx*
5f8e6c50 7676
257e9d03 7677### Changes between 1.0.0p and 1.0.0q [15 Jan 2015]
5f8e6c50 7678
44652c16 7679 * Build fixes for the Windows and OpenVMS platforms
5f8e6c50 7680
44652c16 7681 *Matt Caswell and Richard Levitte*
5f8e6c50 7682
257e9d03 7683### Changes between 1.0.0o and 1.0.0p [8 Jan 2015]
44652c16
DMSP
7684
7685 * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS
7686 message can cause a segmentation fault in OpenSSL due to a NULL pointer
7687 dereference. This could lead to a Denial Of Service attack. Thanks to
7688 Markus Stenberg of Cisco Systems, Inc. for reporting this issue.
d8dc8538 7689 ([CVE-2014-3571])
5f8e6c50
DMSP
7690
7691 *Steve Henson*
7692
44652c16
DMSP
7693 * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the
7694 dtls1_buffer_record function under certain conditions. In particular this
7695 could occur if an attacker sent repeated DTLS records with the same
7696 sequence number but for the next epoch. The memory leak could be exploited
7697 by an attacker in a Denial of Service attack through memory exhaustion.
7698 Thanks to Chris Mueller for reporting this issue.
d8dc8538 7699 ([CVE-2015-0206])
5f8e6c50 7700
44652c16 7701 *Matt Caswell*
5f8e6c50 7702
44652c16
DMSP
7703 * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is
7704 built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl
7705 method would be set to NULL which could later result in a NULL pointer
7706 dereference. Thanks to Frank Schmirler for reporting this issue.
d8dc8538 7707 ([CVE-2014-3569])
5f8e6c50 7708
44652c16 7709 *Kurt Roeckx*
5f8e6c50 7710
44652c16
DMSP
7711 * Abort handshake if server key exchange message is omitted for ephemeral
7712 ECDH ciphersuites.
5f8e6c50 7713
44652c16
DMSP
7714 Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for
7715 reporting this issue.
d8dc8538 7716 ([CVE-2014-3572])
5f8e6c50 7717
44652c16 7718 *Steve Henson*
5f8e6c50 7719
44652c16
DMSP
7720 * Remove non-export ephemeral RSA code on client and server. This code
7721 violated the TLS standard by allowing the use of temporary RSA keys in
7722 non-export ciphersuites and could be used by a server to effectively
7723 downgrade the RSA key length used to a value smaller than the server
7724 certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at
7725 INRIA or reporting this issue.
d8dc8538 7726 ([CVE-2015-0204])
5f8e6c50 7727
44652c16 7728 *Steve Henson*
5f8e6c50 7729
44652c16
DMSP
7730 * Fixed issue where DH client certificates are accepted without verification.
7731 An OpenSSL server will accept a DH certificate for client authentication
7732 without the certificate verify message. This effectively allows a client to
7733 authenticate without the use of a private key. This only affects servers
7734 which trust a client certificate authority which issues certificates
7735 containing DH keys: these are extremely rare and hardly ever encountered.
7736 Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting
7737 this issue.
d8dc8538 7738 ([CVE-2015-0205])
5f8e6c50 7739
44652c16 7740 *Steve Henson*
5f8e6c50 7741
43a70f02
RS
7742 * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect
7743 results on some platforms, including x86_64. This bug occurs at random
7744 with a very low probability, and is not known to be exploitable in any
7745 way, though its exact impact is difficult to determine. Thanks to Pieter
7746 Wuille (Blockstream) who reported this issue and also suggested an initial
7747 fix. Further analysis was conducted by the OpenSSL development team and
7748 Adam Langley of Google. The final fix was developed by Andy Polyakov of
7749 the OpenSSL core team.
d8dc8538 7750 ([CVE-2014-3570])
5f8e6c50 7751
43a70f02 7752 *Andy Polyakov*
5f8e6c50 7753
43a70f02 7754 * Fix various certificate fingerprint issues.
5f8e6c50 7755
44652c16
DMSP
7756 By using non-DER or invalid encodings outside the signed portion of a
7757 certificate the fingerprint can be changed without breaking the signature.
7758 Although no details of the signed portion of the certificate can be changed
7759 this can cause problems with some applications: e.g. those using the
7760 certificate fingerprint for blacklists.
5f8e6c50 7761
44652c16 7762 1. Reject signatures with non zero unused bits.
5f8e6c50 7763
44652c16
DMSP
7764 If the BIT STRING containing the signature has non zero unused bits reject
7765 the signature. All current signature algorithms require zero unused bits.
5f8e6c50 7766
44652c16 7767 2. Check certificate algorithm consistency.
5f8e6c50 7768
44652c16
DMSP
7769 Check the AlgorithmIdentifier inside TBS matches the one in the
7770 certificate signature. NB: this will result in signature failure
7771 errors for some broken certificates.
5f8e6c50 7772
44652c16 7773 Thanks to Konrad Kraszewski from Google for reporting this issue.
5f8e6c50 7774
44652c16 7775 3. Check DSA/ECDSA signatures use DER.
5f8e6c50 7776
44652c16
DMSP
7777 Reencode DSA/ECDSA signatures and compare with the original received
7778 signature. Return an error if there is a mismatch.
5f8e6c50 7779
44652c16
DMSP
7780 This will reject various cases including garbage after signature
7781 (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS
7782 program for discovering this case) and use of BER or invalid ASN.1 INTEGERs
7783 (negative or with leading zeroes).
5f8e6c50 7784
44652c16
DMSP
7785 Further analysis was conducted and fixes were developed by Stephen Henson
7786 of the OpenSSL core team.
5f8e6c50 7787
d8dc8538 7788 ([CVE-2014-8275])
5f8e6c50
DMSP
7789
7790 *Steve Henson*
7791
257e9d03 7792### Changes between 1.0.0n and 1.0.0o [15 Oct 2014]
5f8e6c50 7793
44652c16 7794 * Session Ticket Memory Leak.
5f8e6c50 7795
44652c16
DMSP
7796 When an OpenSSL SSL/TLS/DTLS server receives a session ticket the
7797 integrity of that ticket is first verified. In the event of a session
7798 ticket integrity check failing, OpenSSL will fail to free memory
7799 causing a memory leak. By sending a large number of invalid session
7800 tickets an attacker could exploit this issue in a Denial Of Service
7801 attack.
d8dc8538 7802 ([CVE-2014-3567])
5f8e6c50
DMSP
7803
7804 *Steve Henson*
7805
44652c16 7806 * Build option no-ssl3 is incomplete.
5f8e6c50 7807
44652c16
DMSP
7808 When OpenSSL is configured with "no-ssl3" as a build option, servers
7809 could accept and complete a SSL 3.0 handshake, and clients could be
7810 configured to send them.
d8dc8538 7811 ([CVE-2014-3568])
5f8e6c50 7812
44652c16
DMSP
7813 *Akamai and the OpenSSL team*
7814
7815 * Add support for TLS_FALLBACK_SCSV.
7816 Client applications doing fallback retries should call
7817 SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV).
d8dc8538 7818 ([CVE-2014-3566])
5f8e6c50 7819
44652c16 7820 *Adam Langley, Bodo Moeller*
5f8e6c50 7821
44652c16 7822 * Add additional DigestInfo checks.
5f8e6c50 7823
44652c16
DMSP
7824 Reencode DigestInto in DER and check against the original when
7825 verifying RSA signature: this will reject any improperly encoded
7826 DigestInfo structures.
5f8e6c50 7827
44652c16 7828 Note: this is a precautionary measure and no attacks are currently known.
5f8e6c50 7829
5f8e6c50
DMSP
7830 *Steve Henson*
7831
257e9d03 7832### Changes between 1.0.0m and 1.0.0n [6 Aug 2014]
5f8e6c50 7833
44652c16
DMSP
7834 * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject
7835 to a denial of service attack. A malicious server can crash the client
7836 with a null pointer dereference (read) by specifying an anonymous (EC)DH
7837 ciphersuite and sending carefully crafted handshake messages.
5f8e6c50 7838
44652c16
DMSP
7839 Thanks to Felix Gröbert (Google) for discovering and researching this
7840 issue.
d8dc8538 7841 ([CVE-2014-3510])
5f8e6c50 7842
44652c16 7843 *Emilia Käsper*
5f8e6c50 7844
44652c16
DMSP
7845 * By sending carefully crafted DTLS packets an attacker could cause openssl
7846 to leak memory. This can be exploited through a Denial of Service attack.
7847 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 7848 ([CVE-2014-3507])
5f8e6c50 7849
44652c16 7850 *Adam Langley*
5f8e6c50 7851
44652c16
DMSP
7852 * An attacker can force openssl to consume large amounts of memory whilst
7853 processing DTLS handshake messages. This can be exploited through a
7854 Denial of Service attack.
7855 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 7856 ([CVE-2014-3506])
5f8e6c50 7857
44652c16 7858 *Adam Langley*
5f8e6c50 7859
44652c16
DMSP
7860 * An attacker can force an error condition which causes openssl to crash
7861 whilst processing DTLS packets due to memory being freed twice. This
7862 can be exploited through a Denial of Service attack.
7863 Thanks to Adam Langley and Wan-Teh Chang for discovering and researching
7864 this issue.
d8dc8538 7865 ([CVE-2014-3505])
5f8e6c50 7866
44652c16 7867 *Adam Langley*
5f8e6c50 7868
44652c16
DMSP
7869 * If a multithreaded client connects to a malicious server using a resumed
7870 session and the server sends an ec point format extension it could write
7871 up to 255 bytes to freed memory.
5f8e6c50 7872
44652c16
DMSP
7873 Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this
7874 issue.
d8dc8538 7875 ([CVE-2014-3509])
5f8e6c50 7876
44652c16 7877 *Gabor Tyukasz*
5f8e6c50 7878
44652c16
DMSP
7879 * A flaw in OBJ_obj2txt may cause pretty printing functions such as
7880 X509_name_oneline, X509_name_print_ex et al. to leak some information
7881 from the stack. Applications may be affected if they echo pretty printing
7882 output to the attacker.
5f8e6c50 7883
44652c16 7884 Thanks to Ivan Fratric (Google) for discovering this issue.
d8dc8538 7885 ([CVE-2014-3508])
5f8e6c50 7886
44652c16 7887 *Emilia Käsper, and Steve Henson*
5f8e6c50 7888
44652c16
DMSP
7889 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
7890 for corner cases. (Certain input points at infinity could lead to
7891 bogus results, with non-infinity inputs mapped to infinity too.)
5f8e6c50 7892
44652c16 7893 *Bodo Moeller*
5f8e6c50 7894
257e9d03 7895### Changes between 1.0.0l and 1.0.0m [5 Jun 2014]
5f8e6c50 7896
44652c16
DMSP
7897 * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted
7898 handshake can force the use of weak keying material in OpenSSL
7899 SSL/TLS clients and servers.
5f8e6c50 7900
44652c16 7901 Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
d8dc8538 7902 researching this issue. ([CVE-2014-0224])
5f8e6c50 7903
44652c16 7904 *KIKUCHI Masashi, Steve Henson*
5f8e6c50 7905
44652c16
DMSP
7906 * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an
7907 OpenSSL DTLS client the code can be made to recurse eventually crashing
7908 in a DoS attack.
5f8e6c50 7909
44652c16 7910 Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.
d8dc8538 7911 ([CVE-2014-0221])
5f8e6c50 7912
44652c16 7913 *Imre Rad, Steve Henson*
5f8e6c50 7914
44652c16
DMSP
7915 * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can
7916 be triggered by sending invalid DTLS fragments to an OpenSSL DTLS
7917 client or server. This is potentially exploitable to run arbitrary
7918 code on a vulnerable client or server.
5f8e6c50 7919
d8dc8538 7920 Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195])
5f8e6c50 7921
44652c16 7922 *Jüri Aedla, Steve Henson*
5f8e6c50 7923
44652c16
DMSP
7924 * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites
7925 are subject to a denial of service attack.
5f8e6c50 7926
44652c16 7927 Thanks to Felix Gröbert and Ivan Fratric at Google for discovering
d8dc8538 7928 this issue. ([CVE-2014-3470])
5f8e6c50 7929
44652c16 7930 *Felix Gröbert, Ivan Fratric, Steve Henson*
5f8e6c50 7931
44652c16
DMSP
7932 * Harmonize version and its documentation. -f flag is used to display
7933 compilation flags.
5f8e6c50 7934
44652c16 7935 *mancha <mancha1@zoho.com>*
5f8e6c50 7936
44652c16
DMSP
7937 * Fix eckey_priv_encode so it immediately returns an error upon a failure
7938 in i2d_ECPrivateKey.
5f8e6c50 7939
44652c16 7940 *mancha <mancha1@zoho.com>*
5f8e6c50 7941
44652c16 7942 * Fix some double frees. These are not thought to be exploitable.
5f8e6c50 7943
44652c16 7944 *mancha <mancha1@zoho.com>*
5f8e6c50 7945
44652c16
DMSP
7946 * Fix for the attack described in the paper "Recovering OpenSSL
7947 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
7948 by Yuval Yarom and Naomi Benger. Details can be obtained from:
257e9d03 7949 <http://eprint.iacr.org/2014/140>
5f8e6c50 7950
44652c16 7951 Thanks to Yuval Yarom and Naomi Benger for discovering this
d8dc8538 7952 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
5f8e6c50 7953
44652c16 7954 *Yuval Yarom and Naomi Benger*
5f8e6c50 7955
257e9d03 7956### Changes between 1.0.0k and 1.0.0l [6 Jan 2014]
5f8e6c50 7957
44652c16
DMSP
7958 * Keep original DTLS digest and encryption contexts in retransmission
7959 structures so we can use the previous session parameters if they need
d8dc8538 7960 to be resent. ([CVE-2013-6450])
5f8e6c50
DMSP
7961
7962 *Steve Henson*
7963
44652c16
DMSP
7964 * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which
7965 avoids preferring ECDHE-ECDSA ciphers when the client appears to be
7966 Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for
7967 several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug
7968 is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing
7969 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer.
5f8e6c50 7970
44652c16 7971 *Rob Stradling, Adam Langley*
5f8e6c50 7972
257e9d03 7973### Changes between 1.0.0j and 1.0.0k [5 Feb 2013]
5f8e6c50 7974
44652c16 7975 * Make the decoding of SSLv3, TLS and DTLS CBC records constant time.
5f8e6c50 7976
44652c16
DMSP
7977 This addresses the flaw in CBC record processing discovered by
7978 Nadhem Alfardan and Kenny Paterson. Details of this attack can be found
257e9d03 7979 at: <http://www.isg.rhul.ac.uk/tls/>
5f8e6c50 7980
44652c16
DMSP
7981 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
7982 Security Group at Royal Holloway, University of London
7983 (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and
7984 Emilia Käsper for the initial patch.
d8dc8538 7985 ([CVE-2013-0169])
5f8e6c50 7986
44652c16 7987 *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson*
5f8e6c50 7988
44652c16 7989 * Return an error when checking OCSP signatures when key is NULL.
d8dc8538 7990 This fixes a DoS attack. ([CVE-2013-0166])
5f8e6c50
DMSP
7991
7992 *Steve Henson*
7993
44652c16
DMSP
7994 * Call OCSP Stapling callback after ciphersuite has been chosen, so
7995 the right response is stapled. Also change SSL_get_certificate()
7996 so it returns the certificate actually sent.
257e9d03 7997 See <http://rt.openssl.org/Ticket/Display.html?id=2836>.
44652c16 7998 (This is a backport)
5f8e6c50 7999
44652c16 8000 *Rob Stradling <rob.stradling@comodo.com>*
5f8e6c50 8001
44652c16 8002 * Fix possible deadlock when decoding public keys.
5f8e6c50
DMSP
8003
8004 *Steve Henson*
8005
257e9d03 8006### Changes between 1.0.0i and 1.0.0j [10 May 2012]
5f8e6c50 8007
44652c16
DMSP
8008[NB: OpenSSL 1.0.0i and later 1.0.0 patch levels were released after
8009OpenSSL 1.0.1.]
5f8e6c50 8010
44652c16
DMSP
8011 * Sanity check record length before skipping explicit IV in DTLS
8012 to fix DoS attack.
5f8e6c50 8013
44652c16
DMSP
8014 Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic
8015 fuzzing as a service testing platform.
d8dc8538 8016 ([CVE-2012-2333])
5f8e6c50
DMSP
8017
8018 *Steve Henson*
8019
44652c16
DMSP
8020 * Initialise tkeylen properly when encrypting CMS messages.
8021 Thanks to Solar Designer of Openwall for reporting this issue.
5f8e6c50
DMSP
8022
8023 *Steve Henson*
8024
257e9d03 8025### Changes between 1.0.0h and 1.0.0i [19 Apr 2012]
5f8e6c50 8026
44652c16
DMSP
8027 * Check for potentially exploitable overflows in asn1_d2i_read_bio
8028 BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
8029 in CRYPTO_realloc_clean.
5f8e6c50 8030
44652c16
DMSP
8031 Thanks to Tavis Ormandy, Google Security Team, for discovering this
8032 issue and to Adam Langley <agl@chromium.org> for fixing it.
d8dc8538 8033 ([CVE-2012-2110])
5f8e6c50 8034
44652c16 8035 *Adam Langley (Google), Tavis Ormandy, Google Security Team*
5f8e6c50 8036
257e9d03 8037### Changes between 1.0.0g and 1.0.0h [12 Mar 2012]
5f8e6c50
DMSP
8038
8039 * Fix MMA (Bleichenbacher's attack on PKCS #1 v1.5 RSA padding) weakness
8040 in CMS and PKCS7 code. When RSA decryption fails use a random key for
8041 content decryption and always return the same error. Note: this attack
8042 needs on average 2^20 messages so it only affects automated senders. The
8043 old behaviour can be re-enabled in the CMS code by setting the
8044 CMS_DEBUG_DECRYPT flag: this is useful for debugging and testing where
8045 an MMA defence is not necessary.
8046 Thanks to Ivan Nestlerode <inestlerode@us.ibm.com> for discovering
d8dc8538 8047 this issue. ([CVE-2012-0884])
5f8e6c50
DMSP
8048
8049 *Steve Henson*
8050
8051 * Fix CVE-2011-4619: make sure we really are receiving a
8052 client hello before rejecting multiple SGC restarts. Thanks to
8053 Ivan Nestlerode <inestlerode@us.ibm.com> for discovering this bug.
8054
8055 *Steve Henson*
8056
257e9d03 8057### Changes between 1.0.0f and 1.0.0g [18 Jan 2012]
5f8e6c50
DMSP
8058
8059 * Fix for DTLS DoS issue introduced by fix for CVE-2011-4109.
8060 Thanks to Antonio Martin, Enterprise Secure Access Research and
8061 Development, Cisco Systems, Inc. for discovering this bug and
d8dc8538 8062 preparing a fix. ([CVE-2012-0050])
5f8e6c50
DMSP
8063
8064 *Antonio Martin*
8065
257e9d03 8066### Changes between 1.0.0e and 1.0.0f [4 Jan 2012]
5f8e6c50
DMSP
8067
8068 * Nadhem Alfardan and Kenny Paterson have discovered an extension
8069 of the Vaudenay padding oracle attack on CBC mode encryption
8070 which enables an efficient plaintext recovery attack against
8071 the OpenSSL implementation of DTLS. Their attack exploits timing
8072 differences arising during decryption processing. A research
8073 paper describing this attack can be found at:
257e9d03 8074 <http://www.isg.rhul.ac.uk/~kp/dtls.pdf>
5f8e6c50
DMSP
8075 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
8076 Security Group at Royal Holloway, University of London
8077 (www.isg.rhul.ac.uk) for discovering this flaw and to Robin Seggelmann
8078 <seggelmann@fh-muenster.de> and Michael Tuexen <tuexen@fh-muenster.de>
d8dc8538 8079 for preparing the fix. ([CVE-2011-4108])
5f8e6c50
DMSP
8080
8081 *Robin Seggelmann, Michael Tuexen*
8082
8083 * Clear bytes used for block padding of SSL 3.0 records.
d8dc8538 8084 ([CVE-2011-4576])
5f8e6c50
DMSP
8085
8086 *Adam Langley (Google)*
8087
8088 * Only allow one SGC handshake restart for SSL/TLS. Thanks to George
8089 Kadianakis <desnacked@gmail.com> for discovering this issue and
d8dc8538 8090 Adam Langley for preparing the fix. ([CVE-2011-4619])
5f8e6c50
DMSP
8091
8092 *Adam Langley (Google)*
8093
d8dc8538 8094 * Check parameters are not NULL in GOST ENGINE. ([CVE-2012-0027])
5f8e6c50
DMSP
8095
8096 *Andrey Kulikov <amdeich@gmail.com>*
8097
8098 * Prevent malformed RFC3779 data triggering an assertion failure.
8099 Thanks to Andrew Chi, BBN Technologies, for discovering the flaw
d8dc8538 8100 and Rob Austein <sra@hactrn.net> for fixing it. ([CVE-2011-4577])
5f8e6c50
DMSP
8101
8102 *Rob Austein <sra@hactrn.net>*
8103
8104 * Improved PRNG seeding for VOS.
8105
8106 *Paul Green <Paul.Green@stratus.com>*
8107
8108 * Fix ssl_ciph.c set-up race.
8109
8110 *Adam Langley (Google)*
8111
8112 * Fix spurious failures in ecdsatest.c.
8113
8114 *Emilia Käsper (Google)*
8115
8116 * Fix the BIO_f_buffer() implementation (which was mixing different
257e9d03 8117 interpretations of the `..._len` fields).
5f8e6c50
DMSP
8118
8119 *Adam Langley (Google)*
8120
8121 * Fix handling of BN_BLINDING: now BN_BLINDING_invert_ex (rather than
8122 BN_BLINDING_invert_ex) calls BN_BLINDING_update, ensuring that concurrent
8123 threads won't reuse the same blinding coefficients.
8124
8125 This also avoids the need to obtain the CRYPTO_LOCK_RSA_BLINDING
8126 lock to call BN_BLINDING_invert_ex, and avoids one use of
8127 BN_BLINDING_update for each BN_BLINDING structure (previously,
8128 the last update always remained unused).
8129
8130 *Emilia Käsper (Google)*
8131
8132 * In ssl3_clear, preserve s3->init_extra along with s3->rbuf.
8133
8134 *Bob Buckholz (Google)*
8135
257e9d03 8136### Changes between 1.0.0d and 1.0.0e [6 Sep 2011]
5f8e6c50
DMSP
8137
8138 * Fix bug where CRLs with nextUpdate in the past are sometimes accepted
d8dc8538 8139 by initialising X509_STORE_CTX properly. ([CVE-2011-3207])
5f8e6c50
DMSP
8140
8141 *Kaspar Brand <ossl@velox.ch>*
8142
8143 * Fix SSL memory handling for (EC)DH ciphersuites, in particular
d8dc8538 8144 for multi-threaded use of ECDH. ([CVE-2011-3210])
5f8e6c50
DMSP
8145
8146 *Adam Langley (Google)*
8147
8148 * Fix x509_name_ex_d2i memory leak on bad inputs.
8149
8150 *Bodo Moeller*
8151
8152 * Remove hard coded ecdsaWithSHA1 signature tests in ssl code and check
8153 signature public key algorithm by using OID xref utilities instead.
8154 Before this you could only use some ECC ciphersuites with SHA1 only.
8155
8156 *Steve Henson*
8157
8158 * Add protection against ECDSA timing attacks as mentioned in the paper
8159 by Billy Bob Brumley and Nicola Tuveri, see:
257e9d03 8160 <http://eprint.iacr.org/2011/232.pdf>
5f8e6c50
DMSP
8161
8162 *Billy Bob Brumley and Nicola Tuveri*
8163
257e9d03 8164### Changes between 1.0.0c and 1.0.0d [8 Feb 2011]
5f8e6c50
DMSP
8165
8166 * Fix parsing of OCSP stapling ClientHello extension. CVE-2011-0014
8167
8168 *Neel Mehta, Adam Langley, Bodo Moeller (Google)*
8169
8170 * Fix bug in string printing code: if *any* escaping is enabled we must
8171 escape the escape character (backslash) or the resulting string is
8172 ambiguous.
8173
8174 *Steve Henson*
8175
257e9d03 8176### Changes between 1.0.0b and 1.0.0c [2 Dec 2010]
5f8e6c50
DMSP
8177
8178 * Disable code workaround for ancient and obsolete Netscape browsers
8179 and servers: an attacker can use it in a ciphersuite downgrade attack.
8180 Thanks to Martin Rex for discovering this bug. CVE-2010-4180
8181
8182 *Steve Henson*
8183
8184 * Fixed J-PAKE implementation error, originally discovered by
8185 Sebastien Martini, further info and confirmation from Stefan
8186 Arentz and Feng Hao. Note that this fix is a security fix. CVE-2010-4252
8187
8188 *Ben Laurie*
8189
257e9d03 8190### Changes between 1.0.0a and 1.0.0b [16 Nov 2010]
5f8e6c50
DMSP
8191
8192 * Fix extension code to avoid race conditions which can result in a buffer
8193 overrun vulnerability: resumed sessions must not be modified as they can
8194 be shared by multiple threads. CVE-2010-3864
8195
8196 *Steve Henson*
8197
8198 * Fix WIN32 build system to correctly link an ENGINE directory into
8199 a DLL.
8200
8201 *Steve Henson*
8202
257e9d03 8203### Changes between 1.0.0 and 1.0.0a [01 Jun 2010]
5f8e6c50
DMSP
8204
8205 * Check return value of int_rsa_verify in pkey_rsa_verifyrecover
d8dc8538 8206 ([CVE-2010-1633])
5f8e6c50
DMSP
8207
8208 *Steve Henson, Peter-Michael Hager <hager@dortmund.net>*
8209
257e9d03 8210### Changes between 0.9.8n and 1.0.0 [29 Mar 2010]
5f8e6c50
DMSP
8211
8212 * Add "missing" function EVP_CIPHER_CTX_copy(). This copies a cipher
8213 context. The operation can be customised via the ctrl mechanism in
8214 case ENGINEs want to include additional functionality.
8215
8216 *Steve Henson*
8217
8218 * Tolerate yet another broken PKCS#8 key format: private key value negative.
8219
8220 *Steve Henson*
8221
8222 * Add new -subject_hash_old and -issuer_hash_old options to x509 utility to
8223 output hashes compatible with older versions of OpenSSL.
8224
8225 *Willy Weisz <weisz@vcpc.univie.ac.at>*
8226
8227 * Fix compression algorithm handling: if resuming a session use the
8228 compression algorithm of the resumed session instead of determining
8229 it from client hello again. Don't allow server to change algorithm.
8230
8231 *Steve Henson*
8232
ec2bfb7d 8233 * Add load_crls() function to commands tidying load_certs() too. Add option
5f8e6c50
DMSP
8234 to verify utility to allow additional CRLs to be included.
8235
8236 *Steve Henson*
8237
8238 * Update OCSP request code to permit adding custom headers to the request:
8239 some responders need this.
8240
8241 *Steve Henson*
8242
8243 * The function EVP_PKEY_sign() returns <=0 on error: check return code
8244 correctly.
8245
8246 *Julia Lawall <julia@diku.dk>*
8247
ec2bfb7d 8248 * Update verify callback code in `apps/s_cb.c` and `apps/verify.c`, it
5f8e6c50
DMSP
8249 needlessly dereferenced structures, used obsolete functions and
8250 didn't handle all updated verify codes correctly.
8251
8252 *Steve Henson*
8253
8254 * Disable MD2 in the default configuration.
8255
8256 *Steve Henson*
8257
8258 * In BIO_pop() and BIO_push() use the ctrl argument (which was NULL) to
8259 indicate the initial BIO being pushed or popped. This makes it possible
8260 to determine whether the BIO is the one explicitly called or as a result
8261 of the ctrl being passed down the chain. Fix BIO_pop() and SSL BIOs so
8262 it handles reference counts correctly and doesn't zero out the I/O bio
8263 when it is not being explicitly popped. WARNING: applications which
8264 included workarounds for the old buggy behaviour will need to be modified
8265 or they could free up already freed BIOs.
8266
8267 *Steve Henson*
8268
8269 * Extend the uni2asc/asc2uni => OPENSSL_uni2asc/OPENSSL_asc2uni
8270 renaming to all platforms (within the 0.9.8 branch, this was
8271 done conditionally on Netware platforms to avoid a name clash).
8272
8273 *Guenter <lists@gknw.net>*
8274
8275 * Add ECDHE and PSK support to DTLS.
8276
8277 *Michael Tuexen <tuexen@fh-muenster.de>*
8278
8279 * Add CHECKED_STACK_OF macro to safestack.h, otherwise safestack can't
8280 be used on C++.
8281
8282 *Steve Henson*
8283
8284 * Add "missing" function EVP_MD_flags() (without this the only way to
8285 retrieve a digest flags is by accessing the structure directly. Update
257e9d03 8286 `EVP_MD_do_all*()` and `EVP_CIPHER_do_all*()` to include the name a digest
5f8e6c50
DMSP
8287 or cipher is registered as in the "from" argument. Print out all
8288 registered digests in the dgst usage message instead of manually
8289 attempting to work them out.
8290
8291 *Steve Henson*
8292
8293 * If no SSLv2 ciphers are used don't use an SSLv2 compatible client hello:
8294 this allows the use of compression and extensions. Change default cipher
8295 string to remove SSLv2 ciphersuites. This effectively avoids ancient SSLv2
8296 by default unless an application cipher string requests it.
8297
8298 *Steve Henson*
8299
8300 * Alter match criteria in PKCS12_parse(). It used to try to use local
8301 key ids to find matching certificates and keys but some PKCS#12 files
8302 don't follow the (somewhat unwritten) rules and this strategy fails.
8303 Now just gather all certificates together and the first private key
8304 then look for the first certificate that matches the key.
8305
8306 *Steve Henson*
8307
8308 * Support use of registered digest and cipher names for dgst and cipher
8309 commands instead of having to add each one as a special case. So now
8310 you can do:
8311
8312 openssl sha256 foo
8313
8314 as well as:
8315
8316 openssl dgst -sha256 foo
8317
8318 and this works for ENGINE based algorithms too.
8319
5f8e6c50
DMSP
8320 *Steve Henson*
8321
8322 * Update Gost ENGINE to support parameter files.
8323
8324 *Victor B. Wagner <vitus@cryptocom.ru>*
8325
8326 * Support GeneralizedTime in ca utility.
8327
8328 *Oliver Martin <oliver@volatilevoid.net>, Steve Henson*
8329
8330 * Enhance the hash format used for certificate directory links. The new
8331 form uses the canonical encoding (meaning equivalent names will work
8332 even if they aren't identical) and uses SHA1 instead of MD5. This form
8333 is incompatible with the older format and as a result c_rehash should
8334 be used to rebuild symbolic links.
8335
8336 *Steve Henson*
8337
8338 * Make PKCS#8 the default write format for private keys, replacing the
8339 traditional format. This form is standardised, more secure and doesn't
8340 include an implicit MD5 dependency.
8341
8342 *Steve Henson*
8343
8344 * Add a $gcc_devteam_warn option to Configure. The idea is that any code
8345 committed to OpenSSL should pass this lot as a minimum.
8346
8347 *Steve Henson*
8348
8349 * Add session ticket override functionality for use by EAP-FAST.
8350
8351 *Jouni Malinen <j@w1.fi>*
8352
8353 * Modify HMAC functions to return a value. Since these can be implemented
8354 in an ENGINE errors can occur.
8355
8356 *Steve Henson*
8357
8358 * Type-checked OBJ_bsearch_ex.
8359
8360 *Ben Laurie*
8361
8362 * Type-checked OBJ_bsearch. Also some constification necessitated
8363 by type-checking. Still to come: TXT_DB, bsearch(?),
8364 OBJ_bsearch_ex, qsort, CRYPTO_EX_DATA, ASN1_VALUE, ASN1_STRING,
8365 CONF_VALUE.
8366
8367 *Ben Laurie*
8368
8369 * New function OPENSSL_gmtime_adj() to add a specific number of days and
8370 seconds to a tm structure directly, instead of going through OS
8371 specific date routines. This avoids any issues with OS routines such
257e9d03 8372 as the year 2038 bug. New `*_adj()` functions for ASN1 time structures
5f8e6c50
DMSP
8373 and X509_time_adj_ex() to cover the extended range. The existing
8374 X509_time_adj() is still usable and will no longer have any date issues.
8375
8376 *Steve Henson*
8377
8378 * Delta CRL support. New use deltas option which will attempt to locate
8379 and search any appropriate delta CRLs available.
8380
8381 This work was sponsored by Google.
8382
8383 *Steve Henson*
8384
8385 * Support for CRLs partitioned by reason code. Reorganise CRL processing
8386 code and add additional score elements. Validate alternate CRL paths
8387 as part of the CRL checking and indicate a new error "CRL path validation
8388 error" in this case. Applications wanting additional details can use
8389 the verify callback and check the new "parent" field. If this is not
8390 NULL CRL path validation is taking place. Existing applications won't
8391 see this because it requires extended CRL support which is off by
8392 default.
8393
8394 This work was sponsored by Google.
8395
8396 *Steve Henson*
8397
8398 * Support for freshest CRL extension.
8399
8400 This work was sponsored by Google.
8401
8402 *Steve Henson*
8403
8404 * Initial indirect CRL support. Currently only supported in the CRLs
8405 passed directly and not via lookup. Process certificate issuer
8406 CRL entry extension and lookup CRL entries by bother issuer name
8407 and serial number. Check and process CRL issuer entry in IDP extension.
8408
8409 This work was sponsored by Google.
8410
8411 *Steve Henson*
8412
8413 * Add support for distinct certificate and CRL paths. The CRL issuer
8414 certificate is validated separately in this case. Only enabled if
8415 an extended CRL support flag is set: this flag will enable additional
8416 CRL functionality in future.
8417
8418 This work was sponsored by Google.
8419
8420 *Steve Henson*
8421
8422 * Add support for policy mappings extension.
8423
8424 This work was sponsored by Google.
8425
8426 *Steve Henson*
8427
8428 * Fixes to pathlength constraint, self issued certificate handling,
8429 policy processing to align with RFC3280 and PKITS tests.
8430
8431 This work was sponsored by Google.
8432
8433 *Steve Henson*
8434
8435 * Support for name constraints certificate extension. DN, email, DNS
8436 and URI types are currently supported.
8437
8438 This work was sponsored by Google.
8439
8440 *Steve Henson*
8441
8442 * To cater for systems that provide a pointer-based thread ID rather
8443 than numeric, deprecate the current numeric thread ID mechanism and
8444 replace it with a structure and associated callback type. This
8445 mechanism allows a numeric "hash" to be extracted from a thread ID in
8446 either case, and on platforms where pointers are larger than 'long',
8447 mixing is done to help ensure the numeric 'hash' is usable even if it
8448 can't be guaranteed unique. The default mechanism is to use "&errno"
8449 as a pointer-based thread ID to distinguish between threads.
8450
8451 Applications that want to provide their own thread IDs should now use
8452 CRYPTO_THREADID_set_callback() to register a callback that will call
8453 either CRYPTO_THREADID_set_numeric() or CRYPTO_THREADID_set_pointer().
8454
8455 Note that ERR_remove_state() is now deprecated, because it is tied
8456 to the assumption that thread IDs are numeric. ERR_remove_state(0)
8457 to free the current thread's error state should be replaced by
8458 ERR_remove_thread_state(NULL).
8459
8460 (This new approach replaces the functions CRYPTO_set_idptr_callback(),
8461 CRYPTO_get_idptr_callback(), and CRYPTO_thread_idptr() that existed in
8462 OpenSSL 0.9.9-dev between June 2006 and August 2008. Also, if an
8463 application was previously providing a numeric thread callback that
8464 was inappropriate for distinguishing threads, then uniqueness might
8465 have been obtained with &errno that happened immediately in the
8466 intermediate development versions of OpenSSL; this is no longer the
8467 case, the numeric thread callback will now override the automatic use
8468 of &errno.)
8469
8470 *Geoff Thorpe, with help from Bodo Moeller*
8471
8472 * Initial support for different CRL issuing certificates. This covers a
8473 simple case where the self issued certificates in the chain exist and
8474 the real CRL issuer is higher in the existing chain.
8475
8476 This work was sponsored by Google.
8477
8478 *Steve Henson*
8479
8480 * Removed effectively defunct crypto/store from the build.
8481
8482 *Ben Laurie*
8483
8484 * Revamp of STACK to provide stronger type-checking. Still to come:
8485 TXT_DB, bsearch(?), OBJ_bsearch, qsort, CRYPTO_EX_DATA, ASN1_VALUE,
8486 ASN1_STRING, CONF_VALUE.
8487
8488 *Ben Laurie*
8489
8490 * Add a new SSL_MODE_RELEASE_BUFFERS mode flag to release unused buffer
8491 RAM on SSL connections. This option can save about 34k per idle SSL.
8492
8493 *Nick Mathewson*
8494
8495 * Revamp of LHASH to provide stronger type-checking. Still to come:
8496 STACK, TXT_DB, bsearch, qsort.
8497
8498 *Ben Laurie*
8499
8500 * Initial support for Cryptographic Message Syntax (aka CMS) based
8501 on RFC3850, RFC3851 and RFC3852. New cms directory and cms utility,
8502 support for data, signedData, compressedData, digestedData and
8503 encryptedData, envelopedData types included. Scripts to check against
8504 RFC4134 examples draft and interop and consistency checks of many
8505 content types and variants.
8506
8507 *Steve Henson*
8508
8509 * Add options to enc utility to support use of zlib compression BIO.
8510
8511 *Steve Henson*
8512
8513 * Extend mk1mf to support importing of options and assembly language
8514 files from Configure script, currently only included in VC-WIN32.
8515 The assembly language rules can now optionally generate the source
8516 files from the associated perl scripts.
8517
8518 *Steve Henson*
8519
8520 * Implement remaining functionality needed to support GOST ciphersuites.
8521 Interop testing has been performed using CryptoPro implementations.
8522
8523 *Victor B. Wagner <vitus@cryptocom.ru>*
8524
8525 * s390x assembler pack.
8526
8527 *Andy Polyakov*
8528
8529 * ARMv4 assembler pack. ARMv4 refers to v4 and later ISA, not CPU
8530 "family."
8531
8532 *Andy Polyakov*
8533
8534 * Implement Opaque PRF Input TLS extension as specified in
8535 draft-rescorla-tls-opaque-prf-input-00.txt. Since this is not an
8536 official specification yet and no extension type assignment by
8537 IANA exists, this extension (for now) will have to be explicitly
8538 enabled when building OpenSSL by providing the extension number
8539 to use. For example, specify an option
8540
8541 -DTLSEXT_TYPE_opaque_prf_input=0x9527
8542
8543 to the "config" or "Configure" script to enable the extension,
8544 assuming extension number 0x9527 (which is a completely arbitrary
8545 and unofficial assignment based on the MD5 hash of the Internet
8546 Draft). Note that by doing so, you potentially lose
8547 interoperability with other TLS implementations since these might
8548 be using the same extension number for other purposes.
8549
8550 SSL_set_tlsext_opaque_prf_input(ssl, src, len) is used to set the
8551 opaque PRF input value to use in the handshake. This will create
8552 an internal copy of the length-'len' string at 'src', and will
8553 return non-zero for success.
8554
8555 To get more control and flexibility, provide a callback function
8556 by using
8557
8558 SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx, cb)
8559 SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx, arg)
8560
8561 where
8562
8563 int (*cb)(SSL *, void *peerinput, size_t len, void *arg);
8564 void *arg;
8565
8566 Callback function 'cb' will be called in handshakes, and is
8567 expected to use SSL_set_tlsext_opaque_prf_input() as appropriate.
8568 Argument 'arg' is for application purposes (the value as given to
8569 SSL_CTX_set_tlsext_opaque_prf_input_callback_arg() will directly
8570 be provided to the callback function). The callback function
8571 has to return non-zero to report success: usually 1 to use opaque
8572 PRF input just if possible, or 2 to enforce use of the opaque PRF
8573 input. In the latter case, the library will abort the handshake
8574 if opaque PRF input is not successfully negotiated.
8575
8576 Arguments 'peerinput' and 'len' given to the callback function
8577 will always be NULL and 0 in the case of a client. A server will
8578 see the client's opaque PRF input through these variables if
8579 available (NULL and 0 otherwise). Note that if the server
8580 provides an opaque PRF input, the length must be the same as the
8581 length of the client's opaque PRF input.
8582
8583 Note that the callback function will only be called when creating
8584 a new session (session resumption can resume whatever was
8585 previously negotiated), and will not be called in SSL 2.0
8586 handshakes; thus, SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) or
8587 SSL_set_options(ssl, SSL_OP_NO_SSLv2) is especially recommended
8588 for applications that need to enforce opaque PRF input.
8589
5f8e6c50
DMSP
8590 *Bodo Moeller*
8591
8592 * Update ssl code to support digests other than SHA1+MD5 for handshake
8593 MAC.
8594
5f8e6c50
DMSP
8595 *Victor B. Wagner <vitus@cryptocom.ru>*
8596
8597 * Add RFC4507 support to OpenSSL. This includes the corrections in
8598 RFC4507bis. The encrypted ticket format is an encrypted encoded
8599 SSL_SESSION structure, that way new session features are automatically
8600 supported.
8601
8602 If a client application caches session in an SSL_SESSION structure
8603 support is transparent because tickets are now stored in the encoded
8604 SSL_SESSION.
8605
8606 The SSL_CTX structure automatically generates keys for ticket
8607 protection in servers so again support should be possible
8608 with no application modification.
8609
8610 If a client or server wishes to disable RFC4507 support then the option
8611 SSL_OP_NO_TICKET can be set.
8612
8613 Add a TLS extension debugging callback to allow the contents of any client
8614 or server extensions to be examined.
8615
8616 This work was sponsored by Google.
8617
8618 *Steve Henson*
8619
8620 * Final changes to avoid use of pointer pointer casts in OpenSSL.
8621 OpenSSL should now compile cleanly on gcc 4.2
8622
8623 *Peter Hartley <pdh@utter.chaos.org.uk>, Steve Henson*
8624
8625 * Update SSL library to use new EVP_PKEY MAC API. Include generic MAC
8626 support including streaming MAC support: this is required for GOST
8627 ciphersuite support.
8628
8629 *Victor B. Wagner <vitus@cryptocom.ru>, Steve Henson*
8630
8631 * Add option -stream to use PKCS#7 streaming in smime utility. New
8632 function i2d_PKCS7_bio_stream() and PEM_write_PKCS7_bio_stream()
8633 to output in BER and PEM format.
8634
8635 *Steve Henson*
8636
8637 * Experimental support for use of HMAC via EVP_PKEY interface. This
257e9d03 8638 allows HMAC to be handled via the `EVP_DigestSign*()` interface. The
5f8e6c50
DMSP
8639 EVP_PKEY "key" in this case is the HMAC key, potentially allowing
8640 ENGINE support for HMAC keys which are unextractable. New -mac and
8641 -macopt options to dgst utility.
8642
8643 *Steve Henson*
8644
8645 * New option -sigopt to dgst utility. Update dgst to use
257e9d03 8646 `EVP_Digest{Sign,Verify}*`. These two changes make it possible to use
5f8e6c50
DMSP
8647 alternative signing parameters such as X9.31 or PSS in the dgst
8648 utility.
8649
8650 *Steve Henson*
8651
8652 * Change ssl_cipher_apply_rule(), the internal function that does
8653 the work each time a ciphersuite string requests enabling
8654 ("foo+bar"), moving ("+foo+bar"), disabling ("-foo+bar", or
8655 removing ("!foo+bar") a class of ciphersuites: Now it maintains
8656 the order of disabled ciphersuites such that those ciphersuites
8657 that most recently went from enabled to disabled not only stay
8658 in order with respect to each other, but also have higher priority
8659 than other disabled ciphersuites the next time ciphersuites are
8660 enabled again.
8661
8662 This means that you can now say, e.g., "PSK:-PSK:HIGH" to enable
8663 the same ciphersuites as with "HIGH" alone, but in a specific
8664 order where the PSK ciphersuites come first (since they are the
8665 most recently disabled ciphersuites when "HIGH" is parsed).
8666
8667 Also, change ssl_create_cipher_list() (using this new
8668 functionality) such that between otherwise identical
8669 ciphersuites, ephemeral ECDH is preferred over ephemeral DH in
8670 the default order.
8671
8672 *Bodo Moeller*
8673
8674 * Change ssl_create_cipher_list() so that it automatically
8675 arranges the ciphersuites in reasonable order before starting
8676 to process the rule string. Thus, the definition for "DEFAULT"
8677 (SSL_DEFAULT_CIPHER_LIST) now is just "ALL:!aNULL:!eNULL", but
ec2bfb7d 8678 remains equivalent to `"AES:ALL:!aNULL:!eNULL:+aECDH:+kRSA:+RC4:@STRENGTH"`.
5f8e6c50
DMSP
8679 This makes it much easier to arrive at a reasonable default order
8680 in applications for which anonymous ciphers are OK (meaning
8681 that you can't actually use DEFAULT).
8682
8683 *Bodo Moeller; suggested by Victor Duchovni*
8684
8685 * Split the SSL/TLS algorithm mask (as used for ciphersuite string
8686 processing) into multiple integers instead of setting
8687 "SSL_MKEY_MASK" bits, "SSL_AUTH_MASK" bits, "SSL_ENC_MASK",
8688 "SSL_MAC_MASK", and "SSL_SSL_MASK" bits all in a single integer.
8689 (These masks as well as the individual bit definitions are hidden
8690 away into the non-exported interface ssl/ssl_locl.h, so this
8691 change to the definition of the SSL_CIPHER structure shouldn't
8692 affect applications.) This give us more bits for each of these
8693 categories, so there is no longer a need to coagulate AES128 and
8694 AES256 into a single algorithm bit, and to coagulate Camellia128
8695 and Camellia256 into a single algorithm bit, which has led to all
8696 kinds of kludges.
8697
8698 Thus, among other things, the kludge introduced in 0.9.7m and
8699 0.9.8e for masking out AES256 independently of AES128 or masking
8700 out Camellia256 independently of AES256 is not needed here in 0.9.9.
8701
8702 With the change, we also introduce new ciphersuite aliases that
8703 so far were missing: "AES128", "AES256", "CAMELLIA128", and
8704 "CAMELLIA256".
8705
8706 *Bodo Moeller*
8707
8708 * Add support for dsa-with-SHA224 and dsa-with-SHA256.
8709 Use the leftmost N bytes of the signature input if the input is
8710 larger than the prime q (with N being the size in bytes of q).
8711
8712 *Nils Larsch*
8713
8714 * Very *very* experimental PKCS#7 streaming encoder support. Nothing uses
8715 it yet and it is largely untested.
8716
8717 *Steve Henson*
8718
8719 * Add support for the ecdsa-with-SHA224/256/384/512 signature types.
8720
8721 *Nils Larsch*
8722
8723 * Initial incomplete changes to avoid need for function casts in OpenSSL
8724 some compilers (gcc 4.2 and later) reject their use. Safestack is
8725 reimplemented. Update ASN1 to avoid use of legacy functions.
8726
8727 *Steve Henson*
8728
8729 * Win32/64 targets are linked with Winsock2.
8730
8731 *Andy Polyakov*
8732
8733 * Add an X509_CRL_METHOD structure to allow CRL processing to be redirected
8734 to external functions. This can be used to increase CRL handling
8735 efficiency especially when CRLs are very large by (for example) storing
8736 the CRL revoked certificates in a database.
8737
8738 *Steve Henson*
8739
8740 * Overhaul of by_dir code. Add support for dynamic loading of CRLs so
8741 new CRLs added to a directory can be used. New command line option
8742 -verify_return_error to s_client and s_server. This causes real errors
8743 to be returned by the verify callback instead of carrying on no matter
8744 what. This reflects the way a "real world" verify callback would behave.
8745
8746 *Steve Henson*
8747
8748 * GOST engine, supporting several GOST algorithms and public key formats.
8749 Kindly donated by Cryptocom.
8750
8751 *Cryptocom*
8752
8753 * Partial support for Issuing Distribution Point CRL extension. CRLs
8754 partitioned by DP are handled but no indirect CRL or reason partitioning
8755 (yet). Complete overhaul of CRL handling: now the most suitable CRL is
8756 selected via a scoring technique which handles IDP and AKID in CRLs.
8757
8758 *Steve Henson*
8759
8760 * New X509_STORE_CTX callbacks lookup_crls() and lookup_certs() which
8761 will ultimately be used for all verify operations: this will remove the
8762 X509_STORE dependency on certificate verification and allow alternative
8763 lookup methods. X509_STORE based implementations of these two callbacks.
8764
8765 *Steve Henson*
8766
8767 * Allow multiple CRLs to exist in an X509_STORE with matching issuer names.
8768 Modify get_crl() to find a valid (unexpired) CRL if possible.
8769
8770 *Steve Henson*
8771
8772 * New function X509_CRL_match() to check if two CRLs are identical. Normally
8773 this would be called X509_CRL_cmp() but that name is already used by
8774 a function that just compares CRL issuer names. Cache several CRL
8775 extensions in X509_CRL structure and cache CRLDP in X509.
8776
8777 *Steve Henson*
8778
8779 * Store a "canonical" representation of X509_NAME structure (ASN1 Name)
8780 this maps equivalent X509_NAME structures into a consistent structure.
8781 Name comparison can then be performed rapidly using memcmp().
8782
8783 *Steve Henson*
8784
8785 * Non-blocking OCSP request processing. Add -timeout option to ocsp
8786 utility.
8787
8788 *Steve Henson*
8789
8790 * Allow digests to supply their own micalg string for S/MIME type using
8791 the ctrl EVP_MD_CTRL_MICALG.
8792
8793 *Steve Henson*
8794
8795 * During PKCS7 signing pass the PKCS7 SignerInfo structure to the
8796 EVP_PKEY_METHOD before and after signing via the EVP_PKEY_CTRL_PKCS7_SIGN
8797 ctrl. It can then customise the structure before and/or after signing
8798 if necessary.
8799
8800 *Steve Henson*
8801
8802 * New function OBJ_add_sigid() to allow application defined signature OIDs
8803 to be added to OpenSSLs internal tables. New function OBJ_sigid_free()
8804 to free up any added signature OIDs.
8805
8806 *Steve Henson*
8807
8808 * New functions EVP_CIPHER_do_all(), EVP_CIPHER_do_all_sorted(),
8809 EVP_MD_do_all() and EVP_MD_do_all_sorted() to enumerate internal
8810 digest and cipher tables. New options added to openssl utility:
8811 list-message-digest-algorithms and list-cipher-algorithms.
8812
8813 *Steve Henson*
8814
8815 * Change the array representation of binary polynomials: the list
8816 of degrees of non-zero coefficients is now terminated with -1.
8817 Previously it was terminated with 0, which was also part of the
8818 value; thus, the array representation was not applicable to
8819 polynomials where t^0 has coefficient zero. This change makes
8820 the array representation useful in a more general context.
8821
8822 *Douglas Stebila*
8823
8824 * Various modifications and fixes to SSL/TLS cipher string
8825 handling. For ECC, the code now distinguishes between fixed ECDH
8826 with RSA certificates on the one hand and with ECDSA certificates
8827 on the other hand, since these are separate ciphersuites. The
8828 unused code for Fortezza ciphersuites has been removed.
8829
8830 For consistency with EDH, ephemeral ECDH is now called "EECDH"
8831 (not "ECDHE"). For consistency with the code for DH
8832 certificates, use of ECDH certificates is now considered ECDH
8833 authentication, not RSA or ECDSA authentication (the latter is
8834 merely the CA's signing algorithm and not actively used in the
8835 protocol).
8836
8837 The temporary ciphersuite alias "ECCdraft" is no longer
8838 available, and ECC ciphersuites are no longer excluded from "ALL"
8839 and "DEFAULT". The following aliases now exist for RFC 4492
8840 ciphersuites, most of these by analogy with the DH case:
8841
8842 kECDHr - ECDH cert, signed with RSA
8843 kECDHe - ECDH cert, signed with ECDSA
8844 kECDH - ECDH cert (signed with either RSA or ECDSA)
8845 kEECDH - ephemeral ECDH
8846 ECDH - ECDH cert or ephemeral ECDH
8847
8848 aECDH - ECDH cert
8849 aECDSA - ECDSA cert
8850 ECDSA - ECDSA cert
8851
8852 AECDH - anonymous ECDH
8853 EECDH - non-anonymous ephemeral ECDH (equivalent to "kEECDH:-AECDH")
8854
5f8e6c50
DMSP
8855 *Bodo Moeller*
8856
8857 * Add additional S/MIME capabilities for AES and GOST ciphers if supported.
8858 Use correct micalg parameters depending on digest(s) in signed message.
8859
8860 *Steve Henson*
8861
8862 * Add engine support for EVP_PKEY_ASN1_METHOD. Add functions to process
8863 an ENGINE asn1 method. Support ENGINE lookups in the ASN1 code.
8864
8865 *Steve Henson*
8866
8867 * Initial engine support for EVP_PKEY_METHOD. New functions to permit
8868 an engine to register a method. Add ENGINE lookups for methods and
8869 functional reference processing.
8870
8871 *Steve Henson*
8872
257e9d03
RS
8873 * New functions `EVP_Digest{Sign,Verify)*`. These are enhanced versions of
8874 `EVP_{Sign,Verify}*` which allow an application to customise the signature
5f8e6c50
DMSP
8875 process.
8876
8877 *Steve Henson*
8878
8879 * New -resign option to smime utility. This adds one or more signers
8880 to an existing PKCS#7 signedData structure. Also -md option to use an
8881 alternative message digest algorithm for signing.
8882
8883 *Steve Henson*
8884
8885 * Tidy up PKCS#7 routines and add new functions to make it easier to
8886 create PKCS7 structures containing multiple signers. Update smime
8887 application to support multiple signers.
8888
8889 *Steve Henson*
8890
8891 * New -macalg option to pkcs12 utility to allow setting of an alternative
8892 digest MAC.
8893
8894 *Steve Henson*
8895
8896 * Initial support for PKCS#5 v2.0 PRFs other than default SHA1 HMAC.
8897 Reorganize PBE internals to lookup from a static table using NIDs,
8898 add support for HMAC PBE OID translation. Add a EVP_CIPHER ctrl:
8899 EVP_CTRL_PBE_PRF_NID this allows a cipher to specify an alternative
8900 PRF which will be automatically used with PBES2.
8901
8902 *Steve Henson*
8903
8904 * Replace the algorithm specific calls to generate keys in "req" with the
8905 new API.
8906
8907 *Steve Henson*
8908
8909 * Update PKCS#7 enveloped data routines to use new API. This is now
8910 supported by any public key method supporting the encrypt operation. A
8911 ctrl is added to allow the public key algorithm to examine or modify
8912 the PKCS#7 RecipientInfo structure if it needs to: for RSA this is
8913 a no op.
8914
8915 *Steve Henson*
8916
8917 * Add a ctrl to asn1 method to allow a public key algorithm to express
8918 a default digest type to use. In most cases this will be SHA1 but some
8919 algorithms (such as GOST) need to specify an alternative digest. The
8920 return value indicates how strong the preference is 1 means optional and
8921 2 is mandatory (that is it is the only supported type). Modify
8922 ASN1_item_sign() to accept a NULL digest argument to indicate it should
8923 use the default md. Update openssl utilities to use the default digest
8924 type for signing if it is not explicitly indicated.
8925
8926 *Steve Henson*
8927
8928 * Use OID cross reference table in ASN1_sign() and ASN1_verify(). New
8929 EVP_MD flag EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. This uses the relevant
8930 signing method from the key type. This effectively removes the link
8931 between digests and public key types.
8932
8933 *Steve Henson*
8934
8935 * Add an OID cross reference table and utility functions. Its purpose is to
8936 translate between signature OIDs such as SHA1WithrsaEncryption and SHA1,
8937 rsaEncryption. This will allow some of the algorithm specific hackery
8938 needed to use the correct OID to be removed.
8939
8940 *Steve Henson*
8941
8942 * Remove algorithm specific dependencies when setting PKCS7_SIGNER_INFO
8943 structures for PKCS7_sign(). They are now set up by the relevant public
8944 key ASN1 method.
8945
8946 *Steve Henson*
8947
8948 * Add provisional EC pkey method with support for ECDSA and ECDH.
8949
8950 *Steve Henson*
8951
8952 * Add support for key derivation (agreement) in the API, DH method and
8953 pkeyutl.
8954
8955 *Steve Henson*
8956
8957 * Add DSA pkey method and DH pkey methods, extend DH ASN1 method to support
8958 public and private key formats. As a side effect these add additional
8959 command line functionality not previously available: DSA signatures can be
8960 generated and verified using pkeyutl and DH key support and generation in
8961 pkey, genpkey.
8962
8963 *Steve Henson*
8964
8965 * BeOS support.
8966
8967 *Oliver Tappe <zooey@hirschkaefer.de>*
8968
8969 * New make target "install_html_docs" installs HTML renditions of the
8970 manual pages.
8971
8972 *Oliver Tappe <zooey@hirschkaefer.de>*
8973
8974 * New utility "genpkey" this is analogous to "genrsa" etc except it can
8975 generate keys for any algorithm. Extend and update EVP_PKEY_METHOD to
8976 support key and parameter generation and add initial key generation
8977 functionality for RSA.
8978
8979 *Steve Henson*
8980
8981 * Add functions for main EVP_PKEY_method operations. The undocumented
257e9d03
RS
8982 functions `EVP_PKEY_{encrypt,decrypt}` have been renamed to
8983 `EVP_PKEY_{encrypt,decrypt}_old`.
5f8e6c50
DMSP
8984
8985 *Steve Henson*
8986
8987 * Initial definitions for EVP_PKEY_METHOD. This will be a high level public
8988 key API, doesn't do much yet.
8989
8990 *Steve Henson*
8991
8992 * New function EVP_PKEY_asn1_get0_info() to retrieve information about
8993 public key algorithms. New option to openssl utility:
8994 "list-public-key-algorithms" to print out info.
8995
8996 *Steve Henson*
8997
8998 * Implement the Supported Elliptic Curves Extension for
8999 ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
9000
9001 *Douglas Stebila*
9002
9003 * Don't free up OIDs in OBJ_cleanup() if they are in use by EVP_MD or
9004 EVP_CIPHER structures to avoid later problems in EVP_cleanup().
9005
9006 *Steve Henson*
9007
9008 * New utilities pkey and pkeyparam. These are similar to algorithm specific
9009 utilities such as rsa, dsa, dsaparam etc except they process any key
9010 type.
9011
9012 *Steve Henson*
9013
9014 * Transfer public key printing routines to EVP_PKEY_ASN1_METHOD. New
9015 functions EVP_PKEY_print_public(), EVP_PKEY_print_private(),
9016 EVP_PKEY_print_param() to print public key data from an EVP_PKEY
9017 structure.
9018
9019 *Steve Henson*
9020
9021 * Initial support for pluggable public key ASN1.
9022 De-spaghettify the public key ASN1 handling. Move public and private
9023 key ASN1 handling to a new EVP_PKEY_ASN1_METHOD structure. Relocate
9024 algorithm specific handling to a single module within the relevant
9025 algorithm directory. Add functions to allow (near) opaque processing
9026 of public and private key structures.
9027
9028 *Steve Henson*
9029
9030 * Implement the Supported Point Formats Extension for
9031 ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
9032
9033 *Douglas Stebila*
9034
9035 * Add initial support for RFC 4279 PSK TLS ciphersuites. Add members
9036 for the psk identity [hint] and the psk callback functions to the
9037 SSL_SESSION, SSL and SSL_CTX structure.
9038
9039 New ciphersuites:
9040 PSK-RC4-SHA, PSK-3DES-EDE-CBC-SHA, PSK-AES128-CBC-SHA,
9041 PSK-AES256-CBC-SHA
9042
9043 New functions:
9044 SSL_CTX_use_psk_identity_hint
9045 SSL_get_psk_identity_hint
9046 SSL_get_psk_identity
9047 SSL_use_psk_identity_hint
9048
5f8e6c50
DMSP
9049 *Mika Kousa and Pasi Eronen of Nokia Corporation*
9050
9051 * Add RFC 3161 compliant time stamp request creation, response generation
9052 and response verification functionality.
9053
9054 *Zoltán Glózik <zglozik@opentsa.org>, The OpenTSA Project*
9055
9056 * Add initial support for TLS extensions, specifically for the server_name
9057 extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now
9058 have new members for a host name. The SSL data structure has an
257e9d03 9059 additional member `SSL_CTX *initial_ctx` so that new sessions can be
5f8e6c50
DMSP
9060 stored in that context to allow for session resumption, even after the
9061 SSL has been switched to a new SSL_CTX in reaction to a client's
9062 server_name extension.
9063
9064 New functions (subject to change):
9065
9066 SSL_get_servername()
9067 SSL_get_servername_type()
9068 SSL_set_SSL_CTX()
9069
9070 New CTRL codes and macros (subject to change):
9071
9072 SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
9073 - SSL_CTX_set_tlsext_servername_callback()
9074 SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
9075 - SSL_CTX_set_tlsext_servername_arg()
9076 SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name()
9077
9078 openssl s_client has a new '-servername ...' option.
9079
9080 openssl s_server has new options '-servername_host ...', '-cert2 ...',
9081 '-key2 ...', '-servername_fatal' (subject to change). This allows
9082 testing the HostName extension for a specific single host name ('-cert'
9083 and '-key' remain fallbacks for handshakes without HostName
9084 negotiation). If the unrecognized_name alert has to be sent, this by
9085 default is a warning; it becomes fatal with the '-servername_fatal'
9086 option.
9087
5f8e6c50
DMSP
9088 *Peter Sylvester, Remy Allais, Christophe Renou*
9089
9090 * Whirlpool hash implementation is added.
9091
9092 *Andy Polyakov*
9093
9094 * BIGNUM code on 64-bit SPARCv9 targets is switched from bn(64,64) to
9095 bn(64,32). Because of instruction set limitations it doesn't have
9096 any negative impact on performance. This was done mostly in order
9097 to make it possible to share assembler modules, such as bn_mul_mont
9098 implementations, between 32- and 64-bit builds without hassle.
9099
9100 *Andy Polyakov*
9101
9102 * Move code previously exiled into file crypto/ec/ec2_smpt.c
9103 to ec2_smpl.c, and no longer require the OPENSSL_EC_BIN_PT_COMP
9104 macro.
9105
9106 *Bodo Moeller*
9107
9108 * New candidate for BIGNUM assembler implementation, bn_mul_mont,
9109 dedicated Montgomery multiplication procedure, is introduced.
9110 BN_MONT_CTX is modified to allow bn_mul_mont to reach for higher
9111 "64-bit" performance on certain 32-bit targets.
9112
9113 *Andy Polyakov*
9114
9115 * New option SSL_OP_NO_COMP to disable use of compression selectively
9116 in SSL structures. New SSL ctrl to set maximum send fragment size.
9117 Save memory by setting the I/O buffer sizes dynamically instead of
9118 using the maximum available value.
9119
9120 *Steve Henson*
9121
9122 * New option -V for 'openssl ciphers'. This prints the ciphersuite code
9123 in addition to the text details.
9124
9125 *Bodo Moeller*
9126
9127 * Very, very preliminary EXPERIMENTAL support for printing of general
9128 ASN1 structures. This currently produces rather ugly output and doesn't
9129 handle several customised structures at all.
9130
9131 *Steve Henson*
9132
9133 * Integrated support for PVK file format and some related formats such
9134 as MS PUBLICKEYBLOB and PRIVATEKEYBLOB. Command line switches to support
9135 these in the 'rsa' and 'dsa' utilities.
9136
9137 *Steve Henson*
9138
9139 * Support for PKCS#1 RSAPublicKey format on rsa utility command line.
9140
9141 *Steve Henson*
9142
9143 * Remove the ancient ASN1_METHOD code. This was only ever used in one
9144 place for the (very old) "NETSCAPE" format certificates which are now
9145 handled using new ASN1 code equivalents.
9146
9147 *Steve Henson*
9148
9149 * Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD
9150 pointer and make the SSL_METHOD parameter in SSL_CTX_new,
9151 SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'.
9152
9153 *Nils Larsch*
9154
9155 * Modify CRL distribution points extension code to print out previously
9156 unsupported fields. Enhance extension setting code to allow setting of
9157 all fields.
9158
9159 *Steve Henson*
9160
9161 * Add print and set support for Issuing Distribution Point CRL extension.
9162
9163 *Steve Henson*
9164
9165 * Change 'Configure' script to enable Camellia by default.
9166
9167 *NTT*
9168
44652c16
DMSP
9169OpenSSL 0.9.x
9170-------------
9171
257e9d03 9172### Changes between 0.9.8m and 0.9.8n [24 Mar 2010]
5f8e6c50
DMSP
9173
9174 * When rejecting SSL/TLS records due to an incorrect version number, never
9175 update s->server with a new major version number. As of
9176 - OpenSSL 0.9.8m if 'short' is a 16-bit type,
9177 - OpenSSL 0.9.8f if 'short' is longer than 16 bits,
9178 the previous behavior could result in a read attempt at NULL when
9179 receiving specific incorrect SSL/TLS records once record payload
d8dc8538 9180 protection is active. ([CVE-2010-0740])
5f8e6c50
DMSP
9181
9182 *Bodo Moeller, Adam Langley <agl@chromium.org>*
9183
9184 * Fix for CVE-2010-0433 where some kerberos enabled versions of OpenSSL
9185 could be crashed if the relevant tables were not present (e.g. chrooted).
9186
9187 *Tomas Hoger <thoger@redhat.com>*
9188
257e9d03 9189### Changes between 0.9.8l and 0.9.8m [25 Feb 2010]
5f8e6c50 9190
d8dc8538 9191 * Always check bn_wexpand() return values for failure. ([CVE-2009-3245])
5f8e6c50
DMSP
9192
9193 *Martin Olsson, Neel Mehta*
9194
9195 * Fix X509_STORE locking: Every 'objs' access requires a lock (to
9196 accommodate for stack sorting, always a write lock!).
9197
9198 *Bodo Moeller*
9199
9200 * On some versions of WIN32 Heap32Next is very slow. This can cause
9201 excessive delays in the RAND_poll(): over a minute. As a workaround
9202 include a time check in the inner Heap32Next loop too.
9203
9204 *Steve Henson*
9205
9206 * The code that handled flushing of data in SSL/TLS originally used the
9207 BIO_CTRL_INFO ctrl to see if any data was pending first. This caused
9208 the problem outlined in PR#1949. The fix suggested there however can
9209 trigger problems with buggy BIO_CTRL_WPENDING (e.g. some versions
9210 of Apache). So instead simplify the code to flush unconditionally.
9211 This should be fine since flushing with no data to flush is a no op.
9212
9213 *Steve Henson*
9214
9215 * Handle TLS versions 2.0 and later properly and correctly use the
9216 highest version of TLS/SSL supported. Although TLS >= 2.0 is some way
9217 off ancient servers have a habit of sticking around for a while...
9218
9219 *Steve Henson*
9220
9221 * Modify compression code so it frees up structures without using the
9222 ex_data callbacks. This works around a problem where some applications
9223 call CRYPTO_cleanup_all_ex_data() before application exit (e.g. when
9224 restarting) then use compression (e.g. SSL with compression) later.
9225 This results in significant per-connection memory leaks and
9226 has caused some security issues including CVE-2008-1678 and
9227 CVE-2009-4355.
9228
9229 *Steve Henson*
9230
9231 * Constify crypto/cast (i.e., <openssl/cast.h>): a CAST_KEY doesn't
9232 change when encrypting or decrypting.
9233
9234 *Bodo Moeller*
9235
9236 * Add option SSL_OP_LEGACY_SERVER_CONNECT which will allow clients to
9237 connect and renegotiate with servers which do not support RI.
9238 Until RI is more widely deployed this option is enabled by default.
9239
9240 *Steve Henson*
9241
9242 * Add "missing" ssl ctrls to clear options and mode.
9243
9244 *Steve Henson*
9245
9246 * If client attempts to renegotiate and doesn't support RI respond with
9247 a no_renegotiation alert as required by RFC5746. Some renegotiating
9248 TLS clients will continue a connection gracefully when they receive
9249 the alert. Unfortunately OpenSSL mishandled this alert and would hang
9250 waiting for a server hello which it will never receive. Now we treat a
9251 received no_renegotiation alert as a fatal error. This is because
9252 applications requesting a renegotiation might well expect it to succeed
9253 and would have no code in place to handle the server denying it so the
9254 only safe thing to do is to terminate the connection.
9255
9256 *Steve Henson*
9257
9258 * Add ctrl macro SSL_get_secure_renegotiation_support() which returns 1 if
9259 peer supports secure renegotiation and 0 otherwise. Print out peer
9260 renegotiation support in s_client/s_server.
9261
9262 *Steve Henson*
9263
9264 * Replace the highly broken and deprecated SPKAC certification method with
9265 the updated NID creation version. This should correctly handle UTF8.
9266
9267 *Steve Henson*
9268
9269 * Implement RFC5746. Re-enable renegotiation but require the extension
9270 as needed. Unfortunately, SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION
9271 turns out to be a bad idea. It has been replaced by
9272 SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION which can be set with
9273 SSL_CTX_set_options(). This is really not recommended unless you
9274 know what you are doing.
9275
9276 *Eric Rescorla <ekr@networkresonance.com>, Ben Laurie, Steve Henson*
9277
9278 * Fixes to stateless session resumption handling. Use initial_ctx when
9279 issuing and attempting to decrypt tickets in case it has changed during
9280 servername handling. Use a non-zero length session ID when attempting
9281 stateless session resumption: this makes it possible to determine if
9282 a resumption has occurred immediately after receiving server hello
9283 (several places in OpenSSL subtly assume this) instead of later in
9284 the handshake.
9285
9286 *Steve Henson*
9287
9288 * The functions ENGINE_ctrl(), OPENSSL_isservice(),
9289 CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error
9290 fixes for a few places where the return code is not checked
9291 correctly.
9292
9293 *Julia Lawall <julia@diku.dk>*
9294
9295 * Add --strict-warnings option to Configure script to include devteam
9296 warnings in other configurations.
9297
9298 *Steve Henson*
9299
9300 * Add support for --libdir option and LIBDIR variable in makefiles. This
9301 makes it possible to install openssl libraries in locations which
9302 have names other than "lib", for example "/usr/lib64" which some
9303 systems need.
9304
9305 *Steve Henson, based on patch from Jeremy Utley*
9306
9307 * Don't allow the use of leading 0x80 in OIDs. This is a violation of
9308 X690 8.9.12 and can produce some misleading textual output of OIDs.
9309
9310 *Steve Henson, reported by Dan Kaminsky*
9311
9312 * Delete MD2 from algorithm tables. This follows the recommendation in
9313 several standards that it is not used in new applications due to
9314 several cryptographic weaknesses. For binary compatibility reasons
9315 the MD2 API is still compiled in by default.
9316
9317 *Steve Henson*
9318
9319 * Add compression id to {d2i,i2d}_SSL_SESSION so it is correctly saved
9320 and restored.
9321
9322 *Steve Henson*
9323
9324 * Rename uni2asc and asc2uni functions to OPENSSL_uni2asc and
9325 OPENSSL_asc2uni conditionally on Netware platforms to avoid a name
9326 clash.
9327
9328 *Guenter <lists@gknw.net>*
9329
9330 * Fix the server certificate chain building code to use X509_verify_cert(),
9331 it used to have an ad-hoc builder which was unable to cope with anything
9332 other than a simple chain.
9333
9334 *David Woodhouse <dwmw2@infradead.org>, Steve Henson*
9335
9336 * Don't check self signed certificate signatures in X509_verify_cert()
9337 by default (a flag can override this): it just wastes time without
9338 adding any security. As a useful side effect self signed root CAs
9339 with non-FIPS digests are now usable in FIPS mode.
9340
9341 *Steve Henson*
9342
9343 * In dtls1_process_out_of_seq_message() the check if the current message
9344 is already buffered was missing. For every new message was memory
9345 allocated, allowing an attacker to perform an denial of service attack
9346 with sending out of seq handshake messages until there is no memory
9347 left. Additionally every future message was buffered, even if the
9348 sequence number made no sense and would be part of another handshake.
9349 So only messages with sequence numbers less than 10 in advance will be
d8dc8538 9350 buffered. ([CVE-2009-1378])
5f8e6c50
DMSP
9351
9352 *Robin Seggelmann, discovered by Daniel Mentz*
9353
9354 * Records are buffered if they arrive with a future epoch to be
9355 processed after finishing the corresponding handshake. There is
9356 currently no limitation to this buffer allowing an attacker to perform
9357 a DOS attack with sending records with future epochs until there is no
9358 memory left. This patch adds the pqueue_size() function to determine
9359 the size of a buffer and limits the record buffer to 100 entries.
d8dc8538 9360 ([CVE-2009-1377])
5f8e6c50
DMSP
9361
9362 *Robin Seggelmann, discovered by Daniel Mentz*
9363
9364 * Keep a copy of frag->msg_header.frag_len so it can be used after the
d8dc8538 9365 parent structure is freed. ([CVE-2009-1379])
5f8e6c50
DMSP
9366
9367 *Daniel Mentz*
9368
9369 * Handle non-blocking I/O properly in SSL_shutdown() call.
9370
9371 *Darryl Miles <darryl-mailinglists@netbauds.net>*
9372
257e9d03 9373 * Add `2.5.4.*` OIDs
5f8e6c50
DMSP
9374
9375 *Ilya O. <vrghost@gmail.com>*
9376
257e9d03 9377### Changes between 0.9.8k and 0.9.8l [5 Nov 2009]
5f8e6c50
DMSP
9378
9379 * Disable renegotiation completely - this fixes a severe security
d8dc8538 9380 problem ([CVE-2009-3555]) at the cost of breaking all
5f8e6c50
DMSP
9381 renegotiation. Renegotiation can be re-enabled by setting
9382 SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION in s3->flags at
9383 run-time. This is really not recommended unless you know what
9384 you're doing.
9385
9386 *Ben Laurie*
9387
257e9d03 9388### Changes between 0.9.8j and 0.9.8k [25 Mar 2009]
5f8e6c50
DMSP
9389
9390 * Don't set val to NULL when freeing up structures, it is freed up by
257e9d03 9391 underlying code. If `sizeof(void *) > sizeof(long)` this can result in
d8dc8538 9392 zeroing past the valid field. ([CVE-2009-0789])
5f8e6c50
DMSP
9393
9394 *Paolo Ganci <Paolo.Ganci@AdNovum.CH>*
9395
9396 * Fix bug where return value of CMS_SignerInfo_verify_content() was not
9397 checked correctly. This would allow some invalid signed attributes to
d8dc8538 9398 appear to verify correctly. ([CVE-2009-0591])
5f8e6c50
DMSP
9399
9400 *Ivan Nestlerode <inestlerode@us.ibm.com>*
9401
9402 * Reject UniversalString and BMPString types with invalid lengths. This
9403 prevents a crash in ASN1_STRING_print_ex() which assumes the strings have
d8dc8538 9404 a legal length. ([CVE-2009-0590])
5f8e6c50
DMSP
9405
9406 *Steve Henson*
9407
9408 * Set S/MIME signing as the default purpose rather than setting it
9409 unconditionally. This allows applications to override it at the store
9410 level.
9411
9412 *Steve Henson*
9413
9414 * Permit restricted recursion of ASN1 strings. This is needed in practice
9415 to handle some structures.
9416
9417 *Steve Henson*
9418
9419 * Improve efficiency of mem_gets: don't search whole buffer each time
9420 for a '\n'
9421
9422 *Jeremy Shapiro <jnshapir@us.ibm.com>*
9423
9424 * New -hex option for openssl rand.
9425
9426 *Matthieu Herrb*
9427
9428 * Print out UTF8String and NumericString when parsing ASN1.
9429
9430 *Steve Henson*
9431
9432 * Support NumericString type for name components.
9433
9434 *Steve Henson*
9435
9436 * Allow CC in the environment to override the automatically chosen
9437 compiler. Note that nothing is done to ensure flags work with the
9438 chosen compiler.
9439
9440 *Ben Laurie*
9441
257e9d03 9442### Changes between 0.9.8i and 0.9.8j [07 Jan 2009]
5f8e6c50
DMSP
9443
9444 * Properly check EVP_VerifyFinal() and similar return values
d8dc8538 9445 ([CVE-2008-5077]).
5f8e6c50
DMSP
9446
9447 *Ben Laurie, Bodo Moeller, Google Security Team*
9448
9449 * Enable TLS extensions by default.
9450
9451 *Ben Laurie*
9452
9453 * Allow the CHIL engine to be loaded, whether the application is
9454 multithreaded or not. (This does not release the developer from the
9455 obligation to set up the dynamic locking callbacks.)
9456
9457 *Sander Temme <sander@temme.net>*
9458
9459 * Use correct exit code if there is an error in dgst command.
9460
9461 *Steve Henson; problem pointed out by Roland Dirlewanger*
9462
9463 * Tweak Configure so that you need to say "experimental-jpake" to enable
9464 JPAKE, and need to use -DOPENSSL_EXPERIMENTAL_JPAKE in applications.
9465
9466 *Bodo Moeller*
9467
9468 * Add experimental JPAKE support, including demo authentication in
9469 s_client and s_server.
9470
9471 *Ben Laurie*
9472
9473 * Set the comparison function in v3_addr_canonize().
9474
9475 *Rob Austein <sra@hactrn.net>*
9476
9477 * Add support for XMPP STARTTLS in s_client.
9478
9479 *Philip Paeps <philip@freebsd.org>*
9480
9481 * Change the server-side SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG behavior
9482 to ensure that even with this option, only ciphersuites in the
9483 server's preference list will be accepted. (Note that the option
9484 applies only when resuming a session, so the earlier behavior was
9485 just about the algorithm choice for symmetric cryptography.)
9486
9487 *Bodo Moeller*
9488
257e9d03 9489### Changes between 0.9.8h and 0.9.8i [15 Sep 2008]
5f8e6c50
DMSP
9490
9491 * Fix NULL pointer dereference if a DTLS server received
d8dc8538 9492 ChangeCipherSpec as first record ([CVE-2009-1386]).
5f8e6c50
DMSP
9493
9494 *PR #1679*
9495
9496 * Fix a state transition in s3_srvr.c and d1_srvr.c
257e9d03 9497 (was using SSL3_ST_CW_CLNT_HELLO_B, should be `..._ST_SW_SRVR_...`).
5f8e6c50
DMSP
9498
9499 *Nagendra Modadugu*
9500
9501 * The fix in 0.9.8c that supposedly got rid of unsafe
9502 double-checked locking was incomplete for RSA blinding,
9503 addressing just one layer of what turns out to have been
9504 doubly unsafe triple-checked locking.
9505
9506 So now fix this for real by retiring the MONT_HELPER macro
9507 in crypto/rsa/rsa_eay.c.
9508
5f8e6c50
DMSP
9509 *Bodo Moeller; problem pointed out by Marius Schilder*
9510
9511 * Various precautionary measures:
9512
9513 - Avoid size_t integer overflow in HASH_UPDATE (md32_common.h).
9514
9515 - Avoid a buffer overflow in d2i_SSL_SESSION() (ssl_asn1.c).
9516 (NB: This would require knowledge of the secret session ticket key
9517 to exploit, in which case you'd be SOL either way.)
9518
9519 - Change bn_nist.c so that it will properly handle input BIGNUMs
9520 outside the expected range.
9521
9522 - Enforce the 'num' check in BN_div() (bn_div.c) for non-BN_DEBUG
9523 builds.
9524
5f8e6c50
DMSP
9525 *Neel Mehta, Bodo Moeller*
9526
9527 * Allow engines to be "soft loaded" - i.e. optionally don't die if
9528 the load fails. Useful for distros.
9529
9530 *Ben Laurie and the FreeBSD team*
9531
9532 * Add support for Local Machine Keyset attribute in PKCS#12 files.
9533
9534 *Steve Henson*
9535
9536 * Fix BN_GF2m_mod_arr() top-bit cleanup code.
9537
9538 *Huang Ying*
9539
9540 * Expand ENGINE to support engine supplied SSL client certificate functions.
9541
9542 This work was sponsored by Logica.
9543
9544 *Steve Henson*
9545
9546 * Add CryptoAPI ENGINE to support use of RSA and DSA keys held in Windows
9547 keystores. Support for SSL/TLS client authentication too.
9548 Not compiled unless enable-capieng specified to Configure.
9549
9550 This work was sponsored by Logica.
9551
9552 *Steve Henson*
9553
9554 * Fix bug in X509_ATTRIBUTE creation: don't set attribute using
9555 ASN1_TYPE_set1 if MBSTRING flag set. This bug would crash certain
9556 attribute creation routines such as certificate requests and PKCS#12
9557 files.
9558
9559 *Steve Henson*
9560
257e9d03 9561### Changes between 0.9.8g and 0.9.8h [28 May 2008]
5f8e6c50
DMSP
9562
9563 * Fix flaw if 'Server Key exchange message' is omitted from a TLS
9564 handshake which could lead to a client crash as found using the
d8dc8538 9565 Codenomicon TLS test suite ([CVE-2008-1672])
5f8e6c50
DMSP
9566
9567 *Steve Henson, Mark Cox*
9568
9569 * Fix double free in TLS server name extensions which could lead to
d8dc8538 9570 a remote crash found by Codenomicon TLS test suite ([CVE-2008-0891])
5f8e6c50
DMSP
9571
9572 *Joe Orton*
9573
9574 * Clear error queue in SSL_CTX_use_certificate_chain_file()
9575
9576 Clear the error queue to ensure that error entries left from
9577 older function calls do not interfere with the correct operation.
9578
9579 *Lutz Jaenicke, Erik de Castro Lopo*
9580
9581 * Remove root CA certificates of commercial CAs:
9582
9583 The OpenSSL project does not recommend any specific CA and does not
9584 have any policy with respect to including or excluding any CA.
9585 Therefore it does not make any sense to ship an arbitrary selection
9586 of root CA certificates with the OpenSSL software.
9587
9588 *Lutz Jaenicke*
9589
9590 * RSA OAEP patches to fix two separate invalid memory reads.
9591 The first one involves inputs when 'lzero' is greater than
9592 'SHA_DIGEST_LENGTH' (it would read about SHA_DIGEST_LENGTH bytes
9593 before the beginning of from). The second one involves inputs where
9594 the 'db' section contains nothing but zeroes (there is a one-byte
9595 invalid read after the end of 'db').
9596
9597 *Ivan Nestlerode <inestlerode@us.ibm.com>*
9598
9599 * Partial backport from 0.9.9-dev:
9600
9601 Introduce bn_mul_mont (dedicated Montgomery multiplication
9602 procedure) as a candidate for BIGNUM assembler implementation.
9603 While 0.9.9-dev uses assembler for various architectures, only
9604 x86_64 is available by default here in the 0.9.8 branch, and
9605 32-bit x86 is available through a compile-time setting.
9606
9607 To try the 32-bit x86 assembler implementation, use Configure
9608 option "enable-montasm" (which exists only for this backport).
9609
9610 As "enable-montasm" for 32-bit x86 disclaims code stability
9611 anyway, in this constellation we activate additional code
9612 backported from 0.9.9-dev for further performance improvements,
9613 namely BN_from_montgomery_word. (To enable this otherwise,
44652c16 9614 e.g. x86_64, try `-DMONT_FROM_WORD___NON_DEFAULT_0_9_8_BUILD`.)
5f8e6c50 9615
5f8e6c50
DMSP
9616 *Andy Polyakov (backport partially by Bodo Moeller)*
9617
9618 * Add TLS session ticket callback. This allows an application to set
9619 TLS ticket cipher and HMAC keys rather than relying on hardcoded fixed
9620 values. This is useful for key rollover for example where several key
9621 sets may exist with different names.
9622
9623 *Steve Henson*
9624
9625 * Reverse ENGINE-internal logic for caching default ENGINE handles.
9626 This was broken until now in 0.9.8 releases, such that the only way
9627 a registered ENGINE could be used (assuming it initialises
9628 successfully on the host) was to explicitly set it as the default
9629 for the relevant algorithms. This is in contradiction with 0.9.7
9630 behaviour and the documentation. With this fix, when an ENGINE is
9631 registered into a given algorithm's table of implementations, the
9632 'uptodate' flag is reset so that auto-discovery will be used next
9633 time a new context for that algorithm attempts to select an
9634 implementation.
9635
9636 *Ian Lister (tweaked by Geoff Thorpe)*
9637
9638 * Backport of CMS code to OpenSSL 0.9.8. This differs from the 0.9.9
9639 implementation in the following ways:
9640
9641 Lack of EVP_PKEY_ASN1_METHOD means algorithm parameters have to be
9642 hard coded.
9643
9644 Lack of BER streaming support means one pass streaming processing is
9645 only supported if data is detached: setting the streaming flag is
9646 ignored for embedded content.
9647
9648 CMS support is disabled by default and must be explicitly enabled
9649 with the enable-cms configuration option.
9650
9651 *Steve Henson*
9652
9653 * Update the GMP engine glue to do direct copies between BIGNUM and
9654 mpz_t when openssl and GMP use the same limb size. Otherwise the
9655 existing "conversion via a text string export" trick is still used.
9656
9657 *Paul Sheer <paulsheer@gmail.com>*
9658
9659 * Zlib compression BIO. This is a filter BIO which compressed and
9660 uncompresses any data passed through it.
9661
9662 *Steve Henson*
9663
9664 * Add AES_wrap_key() and AES_unwrap_key() functions to implement
9665 RFC3394 compatible AES key wrapping.
9666
9667 *Steve Henson*
9668
9669 * Add utility functions to handle ASN1 structures. ASN1_STRING_set0():
9670 sets string data without copying. X509_ALGOR_set0() and
9671 X509_ALGOR_get0(): set and retrieve X509_ALGOR (AlgorithmIdentifier)
9672 data. Attribute function X509at_get0_data_by_OBJ(): retrieves data
9673 from an X509_ATTRIBUTE structure optionally checking it occurs only
9674 once. ASN1_TYPE_set1(): set and ASN1_TYPE structure copying supplied
9675 data.
9676
9677 *Steve Henson*
9678
9679 * Fix BN flag handling in RSA_eay_mod_exp() and BN_MONT_CTX_set()
9680 to get the expected BN_FLG_CONSTTIME behavior.
9681
9682 *Bodo Moeller (Google)*
9683
9684 * Netware support:
9685
9686 - fixed wrong usage of ioctlsocket() when build for LIBC BSD sockets
9687 - fixed do_tests.pl to run the test suite with CLIB builds too (CLIB_OPT)
9688 - added some more tests to do_tests.pl
9689 - fixed RunningProcess usage so that it works with newer LIBC NDKs too
9690 - removed usage of BN_LLONG for CLIB builds to avoid runtime dependency
9691 - added new Configure targets netware-clib-bsdsock, netware-clib-gcc,
9692 netware-clib-bsdsock-gcc, netware-libc-bsdsock-gcc
9693 - various changes to netware.pl to enable gcc-cross builds on Win32
9694 platform
9695 - changed crypto/bio/b_sock.c to work with macro functions (CLIB BSD)
9696 - various changes to fix missing prototype warnings
9697 - fixed x86nasm.pl to create correct asm files for NASM COFF output
9698 - added AES, WHIRLPOOL and CPUID assembler code to build files
9699 - added missing AES assembler make rules to mk1mf.pl
ec2bfb7d 9700 - fixed order of includes in `apps/ocsp.c` so that `e_os.h` settings apply
5f8e6c50
DMSP
9701
9702 *Guenter Knauf <eflash@gmx.net>*
9703
9704 * Implement certificate status request TLS extension defined in RFC3546.
9705 A client can set the appropriate parameters and receive the encoded
9706 OCSP response via a callback. A server can query the supplied parameters
9707 and set the encoded OCSP response in the callback. Add simplified examples
9708 to s_client and s_server.
9709
9710 *Steve Henson*
9711
257e9d03 9712### Changes between 0.9.8f and 0.9.8g [19 Oct 2007]
5f8e6c50
DMSP
9713
9714 * Fix various bugs:
9715 + Binary incompatibility of ssl_ctx_st structure
9716 + DTLS interoperation with non-compliant servers
9717 + Don't call get_session_cb() without proposed session
9718 + Fix ia64 assembler code
9719
9720 *Andy Polyakov, Steve Henson*
9721
257e9d03 9722### Changes between 0.9.8e and 0.9.8f [11 Oct 2007]
5f8e6c50
DMSP
9723
9724 * DTLS Handshake overhaul. There were longstanding issues with
9725 OpenSSL DTLS implementation, which were making it impossible for
9726 RFC 4347 compliant client to communicate with OpenSSL server.
9727 Unfortunately just fixing these incompatibilities would "cut off"
9728 pre-0.9.8f clients. To allow for hassle free upgrade post-0.9.8e
9729 server keeps tolerating non RFC compliant syntax. The opposite is
9730 not true, 0.9.8f client can not communicate with earlier server.
9731 This update even addresses CVE-2007-4995.
9732
9733 *Andy Polyakov*
9734
9735 * Changes to avoid need for function casts in OpenSSL: some compilers
9736 (gcc 4.2 and later) reject their use.
9737 *Kurt Roeckx <kurt@roeckx.be>, Peter Hartley <pdh@utter.chaos.org.uk>,
9738 Steve Henson*
9739
9740 * Add RFC4507 support to OpenSSL. This includes the corrections in
9741 RFC4507bis. The encrypted ticket format is an encrypted encoded
9742 SSL_SESSION structure, that way new session features are automatically
9743 supported.
9744
9745 If a client application caches session in an SSL_SESSION structure
9746 support is transparent because tickets are now stored in the encoded
9747 SSL_SESSION.
9748
9749 The SSL_CTX structure automatically generates keys for ticket
9750 protection in servers so again support should be possible
9751 with no application modification.
9752
9753 If a client or server wishes to disable RFC4507 support then the option
9754 SSL_OP_NO_TICKET can be set.
9755
9756 Add a TLS extension debugging callback to allow the contents of any client
9757 or server extensions to be examined.
9758
9759 This work was sponsored by Google.
9760
9761 *Steve Henson*
9762
9763 * Add initial support for TLS extensions, specifically for the server_name
9764 extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now
9765 have new members for a host name. The SSL data structure has an
257e9d03 9766 additional member `SSL_CTX *initial_ctx` so that new sessions can be
5f8e6c50
DMSP
9767 stored in that context to allow for session resumption, even after the
9768 SSL has been switched to a new SSL_CTX in reaction to a client's
9769 server_name extension.
9770
9771 New functions (subject to change):
9772
9773 SSL_get_servername()
9774 SSL_get_servername_type()
9775 SSL_set_SSL_CTX()
9776
9777 New CTRL codes and macros (subject to change):
9778
9779 SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
9780 - SSL_CTX_set_tlsext_servername_callback()
9781 SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
9782 - SSL_CTX_set_tlsext_servername_arg()
9783 SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name()
9784
9785 openssl s_client has a new '-servername ...' option.
9786
9787 openssl s_server has new options '-servername_host ...', '-cert2 ...',
9788 '-key2 ...', '-servername_fatal' (subject to change). This allows
9789 testing the HostName extension for a specific single host name ('-cert'
9790 and '-key' remain fallbacks for handshakes without HostName
9791 negotiation). If the unrecognized_name alert has to be sent, this by
9792 default is a warning; it becomes fatal with the '-servername_fatal'
9793 option.
9794
5f8e6c50
DMSP
9795 *Peter Sylvester, Remy Allais, Christophe Renou, Steve Henson*
9796
9797 * Add AES and SSE2 assembly language support to VC++ build.
9798
9799 *Steve Henson*
9800
9801 * Mitigate attack on final subtraction in Montgomery reduction.
9802
9803 *Andy Polyakov*
9804
9805 * Fix crypto/ec/ec_mult.c to work properly with scalars of value 0
9806 (which previously caused an internal error).
9807
9808 *Bodo Moeller*
9809
9810 * Squeeze another 10% out of IGE mode when in != out.
9811
9812 *Ben Laurie*
9813
9814 * AES IGE mode speedup.
9815
9816 *Dean Gaudet (Google)*
9817
9818 * Add the Korean symmetric 128-bit cipher SEED (see
257e9d03 9819 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>) and
5f8e6c50
DMSP
9820 add SEED ciphersuites from RFC 4162:
9821
9822 TLS_RSA_WITH_SEED_CBC_SHA = "SEED-SHA"
9823 TLS_DHE_DSS_WITH_SEED_CBC_SHA = "DHE-DSS-SEED-SHA"
9824 TLS_DHE_RSA_WITH_SEED_CBC_SHA = "DHE-RSA-SEED-SHA"
9825 TLS_DH_anon_WITH_SEED_CBC_SHA = "ADH-SEED-SHA"
9826
9827 To minimize changes between patchlevels in the OpenSSL 0.9.8
9828 series, SEED remains excluded from compilation unless OpenSSL
9829 is configured with 'enable-seed'.
9830
9831 *KISA, Bodo Moeller*
9832
9833 * Mitigate branch prediction attacks, which can be practical if a
9834 single processor is shared, allowing a spy process to extract
9835 information. For detailed background information, see
257e9d03 9836 <http://eprint.iacr.org/2007/039> (O. Aciicmez, S. Gueron,
5f8e6c50
DMSP
9837 J.-P. Seifert, "New Branch Prediction Vulnerabilities in OpenSSL
9838 and Necessary Software Countermeasures"). The core of the change
9839 are new versions BN_div_no_branch() and
9840 BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(),
9841 respectively, which are slower, but avoid the security-relevant
9842 conditional branches. These are automatically called by BN_div()
9843 and BN_mod_inverse() if the flag BN_FLG_CONSTTIME is set for one
9844 of the input BIGNUMs. Also, BN_is_bit_set() has been changed to
9845 remove a conditional branch.
9846
9847 BN_FLG_CONSTTIME is the new name for the previous
9848 BN_FLG_EXP_CONSTTIME flag, since it now affects more than just
9849 modular exponentiation. (Since OpenSSL 0.9.7h, setting this flag
9850 in the exponent causes BN_mod_exp_mont() to use the alternative
9851 implementation in BN_mod_exp_mont_consttime().) The old name
9852 remains as a deprecated alias.
9853
9854 Similarly, RSA_FLAG_NO_EXP_CONSTTIME is replaced by a more general
9855 RSA_FLAG_NO_CONSTTIME flag since the RSA implementation now uses
9856 constant-time implementations for more than just exponentiation.
9857 Here too the old name is kept as a deprecated alias.
9858
9859 BN_BLINDING_new() will now use BN_dup() for the modulus so that
9860 the BN_BLINDING structure gets an independent copy of the
257e9d03 9861 modulus. This means that the previous `BIGNUM *m` argument to
5f8e6c50 9862 BN_BLINDING_new() and to BN_BLINDING_create_param() now
257e9d03 9863 essentially becomes `const BIGNUM *m`, although we can't actually
5f8e6c50
DMSP
9864 change this in the header file before 0.9.9. It allows
9865 RSA_setup_blinding() to use BN_with_flags() on the modulus to
9866 enable BN_FLG_CONSTTIME.
9867
5f8e6c50
DMSP
9868 *Matthew D Wood (Intel Corp)*
9869
9870 * In the SSL/TLS server implementation, be strict about session ID
9871 context matching (which matters if an application uses a single
9872 external cache for different purposes). Previously,
9873 out-of-context reuse was forbidden only if SSL_VERIFY_PEER was
9874 set. This did ensure strict client verification, but meant that,
9875 with applications using a single external cache for quite
9876 different requirements, clients could circumvent ciphersuite
9877 restrictions for a given session ID context by starting a session
9878 in a different context.
9879
9880 *Bodo Moeller*
9881
9882 * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that
9883 a ciphersuite string such as "DEFAULT:RSA" cannot enable
9884 authentication-only ciphersuites.
9885
9886 *Bodo Moeller*
9887
9888 * Update the SSL_get_shared_ciphers() fix CVE-2006-3738 which was
9889 not complete and could lead to a possible single byte overflow
d8dc8538 9890 ([CVE-2007-5135]) [Ben Laurie]
5f8e6c50 9891
257e9d03 9892### Changes between 0.9.8d and 0.9.8e [23 Feb 2007]
5f8e6c50
DMSP
9893
9894 * Since AES128 and AES256 (and similarly Camellia128 and
9895 Camellia256) share a single mask bit in the logic of
9896 ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a
9897 kludge to work properly if AES128 is available and AES256 isn't
9898 (or if Camellia128 is available and Camellia256 isn't).
9899
9900 *Victor Duchovni*
9901
9902 * Fix the BIT STRING encoding generated by crypto/ec/ec_asn1.c
9903 (within i2d_ECPrivateKey, i2d_ECPKParameters, i2d_ECParameters):
9904 When a point or a seed is encoded in a BIT STRING, we need to
9905 prevent the removal of trailing zero bits to get the proper DER
9906 encoding. (By default, crypto/asn1/a_bitstr.c assumes the case
9907 of a NamedBitList, for which trailing 0 bits need to be removed.)
9908
9909 *Bodo Moeller*
9910
9911 * Have SSL/TLS server implementation tolerate "mismatched" record
9912 protocol version while receiving ClientHello even if the
9913 ClientHello is fragmented. (The server can't insist on the
9914 particular protocol version it has chosen before the ServerHello
9915 message has informed the client about his choice.)
9916
9917 *Bodo Moeller*
9918
9919 * Add RFC 3779 support.
9920
9921 *Rob Austein for ARIN, Ben Laurie*
9922
9923 * Load error codes if they are not already present instead of using a
9924 static variable. This allows them to be cleanly unloaded and reloaded.
9925 Improve header file function name parsing.
9926
9927 *Steve Henson*
9928
9929 * extend SMTP and IMAP protocol emulation in s_client to use EHLO
9930 or CAPABILITY handshake as required by RFCs.
9931
9932 *Goetz Babin-Ebell*
9933
257e9d03 9934### Changes between 0.9.8c and 0.9.8d [28 Sep 2006]
5f8e6c50
DMSP
9935
9936 * Introduce limits to prevent malicious keys being able to
d8dc8538 9937 cause a denial of service. ([CVE-2006-2940])
5f8e6c50
DMSP
9938
9939 *Steve Henson, Bodo Moeller*
9940
9941 * Fix ASN.1 parsing of certain invalid structures that can result
d8dc8538 9942 in a denial of service. ([CVE-2006-2937]) [Steve Henson]
5f8e6c50
DMSP
9943
9944 * Fix buffer overflow in SSL_get_shared_ciphers() function.
d8dc8538 9945 ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team]
5f8e6c50
DMSP
9946
9947 * Fix SSL client code which could crash if connecting to a
d8dc8538 9948 malicious SSLv2 server. ([CVE-2006-4343])
5f8e6c50
DMSP
9949
9950 *Tavis Ormandy and Will Drewry, Google Security Team*
9951
9952 * Since 0.9.8b, ciphersuite strings naming explicit ciphersuites
9953 match only those. Before that, "AES256-SHA" would be interpreted
9954 as a pattern and match "AES128-SHA" too (since AES128-SHA got
9955 the same strength classification in 0.9.7h) as we currently only
9956 have a single AES bit in the ciphersuite description bitmap.
9957 That change, however, also applied to ciphersuite strings such as
9958 "RC4-MD5" that intentionally matched multiple ciphersuites --
9959 namely, SSL 2.0 ciphersuites in addition to the more common ones
9960 from SSL 3.0/TLS 1.0.
9961
9962 So we change the selection algorithm again: Naming an explicit
9963 ciphersuite selects this one ciphersuite, and any other similar
9964 ciphersuite (same bitmap) from *other* protocol versions.
9965 Thus, "RC4-MD5" again will properly select both the SSL 2.0
9966 ciphersuite and the SSL 3.0/TLS 1.0 ciphersuite.
9967
9968 Since SSL 2.0 does not have any ciphersuites for which the
9969 128/256 bit distinction would be relevant, this works for now.
9970 The proper fix will be to use different bits for AES128 and
9971 AES256, which would have avoided the problems from the beginning;
9972 however, bits are scarce, so we can only do this in a new release
9973 (not just a patchlevel) when we can change the SSL_CIPHER
9974 definition to split the single 'unsigned long mask' bitmap into
9975 multiple values to extend the available space.
9976
5f8e6c50
DMSP
9977 *Bodo Moeller*
9978
257e9d03 9979### Changes between 0.9.8b and 0.9.8c [05 Sep 2006]
5f8e6c50
DMSP
9980
9981 * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher
d8dc8538 9982 ([CVE-2006-4339]) [Ben Laurie and Google Security Team]
5f8e6c50
DMSP
9983
9984 * Add AES IGE and biIGE modes.
9985
9986 *Ben Laurie*
9987
9988 * Change the Unix randomness entropy gathering to use poll() when
9989 possible instead of select(), since the latter has some
9990 undesirable limitations.
9991
9992 *Darryl Miles via Richard Levitte and Bodo Moeller*
9993
9994 * Disable "ECCdraft" ciphersuites more thoroughly. Now special
9995 treatment in ssl/ssl_ciph.s makes sure that these ciphersuites
9996 cannot be implicitly activated as part of, e.g., the "AES" alias.
9997 However, please upgrade to OpenSSL 0.9.9[-dev] for
9998 non-experimental use of the ECC ciphersuites to get TLS extension
9999 support, which is required for curve and point format negotiation
10000 to avoid potential handshake problems.
10001
10002 *Bodo Moeller*
10003
10004 * Disable rogue ciphersuites:
10005
257e9d03
RS
10006 - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5")
10007 - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5")
10008 - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5")
5f8e6c50
DMSP
10009
10010 The latter two were purportedly from
10011 draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really
10012 appear there.
10013
10014 Also deactivate the remaining ciphersuites from
10015 draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as
10016 unofficial, and the ID has long expired.
10017
10018 *Bodo Moeller*
10019
10020 * Fix RSA blinding Heisenbug (problems sometimes occurred on
10021 dual-core machines) and other potential thread-safety issues.
10022
10023 *Bodo Moeller*
10024
10025 * Add the symmetric cipher Camellia (128-bit, 192-bit, 256-bit key
10026 versions), which is now available for royalty-free use
257e9d03 10027 (see <http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html>).
5f8e6c50
DMSP
10028 Also, add Camellia TLS ciphersuites from RFC 4132.
10029
10030 To minimize changes between patchlevels in the OpenSSL 0.9.8
10031 series, Camellia remains excluded from compilation unless OpenSSL
10032 is configured with 'enable-camellia'.
10033
10034 *NTT*
10035
10036 * Disable the padding bug check when compression is in use. The padding
10037 bug check assumes the first packet is of even length, this is not
10038 necessarily true if compression is enabled and can result in false
10039 positives causing handshake failure. The actual bug test is ancient
10040 code so it is hoped that implementations will either have fixed it by
10041 now or any which still have the bug do not support compression.
10042
10043 *Steve Henson*
10044
257e9d03 10045### Changes between 0.9.8a and 0.9.8b [04 May 2006]
5f8e6c50
DMSP
10046
10047 * When applying a cipher rule check to see if string match is an explicit
10048 cipher suite and only match that one cipher suite if it is.
10049
10050 *Steve Henson*
10051
10052 * Link in manifests for VC++ if needed.
10053
10054 *Austin Ziegler <halostatue@gmail.com>*
10055
10056 * Update support for ECC-based TLS ciphersuites according to
10057 draft-ietf-tls-ecc-12.txt with proposed changes (but without
10058 TLS extensions, which are supported starting with the 0.9.9
10059 branch, not in the OpenSSL 0.9.8 branch).
10060
10061 *Douglas Stebila*
10062
10063 * New functions EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free() to support
10064 opaque EVP_CIPHER_CTX handling.
10065
10066 *Steve Henson*
10067
10068 * Fixes and enhancements to zlib compression code. We now only use
44652c16 10069 "zlib1.dll" and use the default `__cdecl` calling convention on Win32
5f8e6c50 10070 to conform with the standards mentioned here:
257e9d03 10071 <http://www.zlib.net/DLL_FAQ.txt>
5f8e6c50
DMSP
10072 Static zlib linking now works on Windows and the new --with-zlib-include
10073 --with-zlib-lib options to Configure can be used to supply the location
10074 of the headers and library. Gracefully handle case where zlib library
10075 can't be loaded.
10076
10077 *Steve Henson*
10078
10079 * Several fixes and enhancements to the OID generation code. The old code
10080 sometimes allowed invalid OIDs (1.X for X >= 40 for example), couldn't
10081 handle numbers larger than ULONG_MAX, truncated printing and had a
10082 non standard OBJ_obj2txt() behaviour.
10083
10084 *Steve Henson*
10085
10086 * Add support for building of engines under engine/ as shared libraries
10087 under VC++ build system.
10088
10089 *Steve Henson*
10090
10091 * Corrected the numerous bugs in the Win32 path splitter in DSO.
10092 Hopefully, we will not see any false combination of paths any more.
10093
10094 *Richard Levitte*
10095
257e9d03 10096### Changes between 0.9.8 and 0.9.8a [11 Oct 2005]
5f8e6c50
DMSP
10097
10098 * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING
10099 (part of SSL_OP_ALL). This option used to disable the
10100 countermeasure against man-in-the-middle protocol-version
10101 rollback in the SSL 2.0 server implementation, which is a bad
d8dc8538 10102 idea. ([CVE-2005-2969])
5f8e6c50
DMSP
10103
10104 *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center
10105 for Information Security, National Institute of Advanced Industrial
257e9d03 10106 Science and Technology [AIST], Japan)*
5f8e6c50
DMSP
10107
10108 * Add two function to clear and return the verify parameter flags.
10109
10110 *Steve Henson*
10111
10112 * Keep cipherlists sorted in the source instead of sorting them at
10113 runtime, thus removing the need for a lock.
10114
10115 *Nils Larsch*
10116
10117 * Avoid some small subgroup attacks in Diffie-Hellman.
10118
10119 *Nick Mathewson and Ben Laurie*
10120
10121 * Add functions for well-known primes.
10122
10123 *Nick Mathewson*
10124
10125 * Extended Windows CE support.
10126
10127 *Satoshi Nakamura and Andy Polyakov*
10128
10129 * Initialize SSL_METHOD structures at compile time instead of during
10130 runtime, thus removing the need for a lock.
10131
10132 *Steve Henson*
10133
10134 * Make PKCS7_decrypt() work even if no certificate is supplied by
10135 attempting to decrypt each encrypted key in turn. Add support to
10136 smime utility.
10137
10138 *Steve Henson*
10139
257e9d03 10140### Changes between 0.9.7h and 0.9.8 [05 Jul 2005]
5f8e6c50
DMSP
10141
10142[NB: OpenSSL 0.9.7i and later 0.9.7 patch levels were released after
10143OpenSSL 0.9.8.]
10144
10145 * Add libcrypto.pc and libssl.pc for those who feel they need them.
10146
10147 *Richard Levitte*
10148
10149 * Change CA.sh and CA.pl so they don't bundle the CSR and the private
10150 key into the same file any more.
10151
10152 *Richard Levitte*
10153
10154 * Add initial support for Win64, both IA64 and AMD64/x64 flavors.
10155
10156 *Andy Polyakov*
10157
10158 * Add -utf8 command line and config file option to 'ca'.
10159
10160 *Stefan <stf@udoma.org*
10161
10162 * Removed the macro des_crypt(), as it seems to conflict with some
10163 libraries. Use DES_crypt().
10164
10165 *Richard Levitte*
10166
10167 * Correct naming of the 'chil' and '4758cca' ENGINEs. This
10168 involves renaming the source and generated shared-libs for
10169 both. The engines will accept the corrected or legacy ids
10170 ('ncipher' and '4758_cca' respectively) when binding. NB,
10171 this only applies when building 'shared'.
10172
10173 *Corinna Vinschen <vinschen@redhat.com> and Geoff Thorpe*
10174
10175 * Add attribute functions to EVP_PKEY structure. Modify
10176 PKCS12_create() to recognize a CSP name attribute and
10177 use it. Make -CSP option work again in pkcs12 utility.
10178
10179 *Steve Henson*
10180
10181 * Add new functionality to the bn blinding code:
10182 - automatic re-creation of the BN_BLINDING parameters after
10183 a fixed number of uses (currently 32)
10184 - add new function for parameter creation
10185 - introduce flags to control the update behaviour of the
10186 BN_BLINDING parameters
10187 - hide BN_BLINDING structure
10188 Add a second BN_BLINDING slot to the RSA structure to improve
10189 performance when a single RSA object is shared among several
10190 threads.
10191
10192 *Nils Larsch*
10193
10194 * Add support for DTLS.
10195
10196 *Nagendra Modadugu <nagendra@cs.stanford.edu> and Ben Laurie*
10197
10198 * Add support for DER encoded private keys (SSL_FILETYPE_ASN1)
10199 to SSL_CTX_use_PrivateKey_file() and SSL_use_PrivateKey_file()
10200
10201 *Walter Goulet*
10202
10203 * Remove buggy and incomplete DH cert support from
10204 ssl/ssl_rsa.c and ssl/s3_both.c
10205
10206 *Nils Larsch*
10207
10208 * Use SHA-1 instead of MD5 as the default digest algorithm for
ec2bfb7d 10209 the `apps/openssl` commands.
5f8e6c50
DMSP
10210
10211 *Nils Larsch*
10212
10213 * Compile clean with "-Wall -Wmissing-prototypes
10214 -Wstrict-prototypes -Wmissing-declarations -Werror". Currently
10215 DEBUG_SAFESTACK must also be set.
10216
10217 *Ben Laurie*
10218
10219 * Change ./Configure so that certain algorithms can be disabled by default.
10220 The new counterpiece to "no-xxx" is "enable-xxx".
10221
10222 The patented RC5 and MDC2 algorithms will now be disabled unless
10223 "enable-rc5" and "enable-mdc2", respectively, are specified.
10224
10225 (IDEA remains enabled despite being patented. This is because IDEA
10226 is frequently required for interoperability, and there is no license
10227 fee for non-commercial use. As before, "no-idea" can be used to
10228 avoid this algorithm.)
10229
5f8e6c50
DMSP
10230 *Bodo Moeller*
10231
10232 * Add processing of proxy certificates (see RFC 3820). This work was
10233 sponsored by KTH (The Royal Institute of Technology in Stockholm) and
10234 EGEE (Enabling Grids for E-science in Europe).
10235
10236 *Richard Levitte*
10237
10238 * RC4 performance overhaul on modern architectures/implementations, such
10239 as Intel P4, IA-64 and AMD64.
10240
10241 *Andy Polyakov*
10242
10243 * New utility extract-section.pl. This can be used specify an alternative
10244 section number in a pod file instead of having to treat each file as
10245 a separate case in Makefile. This can be done by adding two lines to the
10246 pod file:
10247
10248 =for comment openssl_section:XXX
10249
10250 The blank line is mandatory.
10251
5f8e6c50
DMSP
10252 *Steve Henson*
10253
10254 * New arguments -certform, -keyform and -pass for s_client and s_server
10255 to allow alternative format key and certificate files and passphrase
10256 sources.
10257
10258 *Steve Henson*
10259
10260 * New structure X509_VERIFY_PARAM which combines current verify parameters,
10261 update associated structures and add various utility functions.
10262
10263 Add new policy related verify parameters, include policy checking in
10264 standard verify code. Enhance 'smime' application with extra parameters
10265 to support policy checking and print out.
10266
10267 *Steve Henson*
10268
10269 * Add a new engine to support VIA PadLock ACE extensions in the VIA C3
10270 Nehemiah processors. These extensions support AES encryption in hardware
10271 as well as RNG (though RNG support is currently disabled).
10272
10273 *Michal Ludvig <michal@logix.cz>, with help from Andy Polyakov*
10274
257e9d03 10275 * Deprecate `BN_[get|set]_params()` functions (they were ignored internally).
5f8e6c50
DMSP
10276
10277 *Geoff Thorpe*
10278
10279 * New FIPS 180-2 algorithms, SHA-224/-256/-384/-512 are implemented.
10280
10281 *Andy Polyakov and a number of other people*
10282
10283 * Improved PowerPC platform support. Most notably BIGNUM assembler
10284 implementation contributed by IBM.
10285
10286 *Suresh Chari, Peter Waltenberg, Andy Polyakov*
10287
10288 * The new 'RSA_generate_key_ex' function now takes a BIGNUM for the public
10289 exponent rather than 'unsigned long'. There is a corresponding change to
10290 the new 'rsa_keygen' element of the RSA_METHOD structure.
10291
10292 *Jelte Jansen, Geoff Thorpe*
10293
10294 * Functionality for creating the initial serial number file is now
10295 moved from CA.pl to the 'ca' utility with a new option -create_serial.
10296
10297 (Before OpenSSL 0.9.7e, CA.pl used to initialize the serial
10298 number file to 1, which is bound to cause problems. To avoid
10299 the problems while respecting compatibility between different 0.9.7
10300 patchlevels, 0.9.7e employed 'openssl x509 -next_serial' in
10301 CA.pl for serial number initialization. With the new release 0.9.8,
10302 we can fix the problem directly in the 'ca' utility.)
10303
10304 *Steve Henson*
10305
10306 * Reduced header interdependencies by declaring more opaque objects in
10307 ossl_typ.h. As a consequence, including some headers (eg. engine.h) will
10308 give fewer recursive includes, which could break lazy source code - so
10309 this change is covered by the OPENSSL_NO_DEPRECATED symbol. As always,
10310 developers should define this symbol when building and using openssl to
10311 ensure they track the recommended behaviour, interfaces, [etc], but
10312 backwards-compatible behaviour prevails when this isn't defined.
10313
10314 *Geoff Thorpe*
10315
10316 * New function X509_POLICY_NODE_print() which prints out policy nodes.
10317
10318 *Steve Henson*
10319
10320 * Add new EVP function EVP_CIPHER_CTX_rand_key and associated functionality.
10321 This will generate a random key of the appropriate length based on the
10322 cipher context. The EVP_CIPHER can provide its own random key generation
10323 routine to support keys of a specific form. This is used in the des and
10324 3des routines to generate a key of the correct parity. Update S/MIME
10325 code to use new functions and hence generate correct parity DES keys.
10326 Add EVP_CHECK_DES_KEY #define to return an error if the key is not
10327 valid (weak or incorrect parity).
10328
10329 *Steve Henson*
10330
10331 * Add a local set of CRLs that can be used by X509_verify_cert() as well
10332 as looking them up. This is useful when the verified structure may contain
10333 CRLs, for example PKCS#7 signedData. Modify PKCS7_verify() to use any CRLs
10334 present unless the new PKCS7_NO_CRL flag is asserted.
10335
10336 *Steve Henson*
10337
10338 * Extend ASN1 oid configuration module. It now additionally accepts the
10339 syntax:
10340
10341 shortName = some long name, 1.2.3.4
10342
10343 *Steve Henson*
10344
10345 * Reimplemented the BN_CTX implementation. There is now no more static
10346 limitation on the number of variables it can handle nor the depth of the
10347 "stack" handling for BN_CTX_start()/BN_CTX_end() pairs. The stack
10348 information can now expand as required, and rather than having a single
10349 static array of bignums, BN_CTX now uses a linked-list of such arrays
10350 allowing it to expand on demand whilst maintaining the usefulness of
10351 BN_CTX's "bundling".
10352
10353 *Geoff Thorpe*
10354
10355 * Add a missing BN_CTX parameter to the 'rsa_mod_exp' callback in RSA_METHOD
10356 to allow all RSA operations to function using a single BN_CTX.
10357
10358 *Geoff Thorpe*
10359
10360 * Preliminary support for certificate policy evaluation and checking. This
10361 is initially intended to pass the tests outlined in "Conformance Testing
10362 of Relying Party Client Certificate Path Processing Logic" v1.07.
10363
10364 *Steve Henson*
10365
10366 * bn_dup_expand() has been deprecated, it was introduced in 0.9.7 and
10367 remained unused and not that useful. A variety of other little bignum
10368 tweaks and fixes have also been made continuing on from the audit (see
10369 below).
10370
10371 *Geoff Thorpe*
10372
10373 * Constify all or almost all d2i, c2i, s2i and r2i functions, along with
10374 associated ASN1, EVP and SSL functions and old ASN1 macros.
10375
10376 *Richard Levitte*
10377
10378 * BN_zero() only needs to set 'top' and 'neg' to zero for correct results,
10379 and this should never fail. So the return value from the use of
10380 BN_set_word() (which can fail due to needless expansion) is now deprecated;
10381 if OPENSSL_NO_DEPRECATED is defined, BN_zero() is a void macro.
10382
10383 *Geoff Thorpe*
10384
10385 * BN_CTX_get() should return zero-valued bignums, providing the same
10386 initialised value as BN_new().
10387
10388 *Geoff Thorpe, suggested by Ulf Möller*
10389
10390 * Support for inhibitAnyPolicy certificate extension.
10391
10392 *Steve Henson*
10393
10394 * An audit of the BIGNUM code is underway, for which debugging code is
10395 enabled when BN_DEBUG is defined. This makes stricter enforcements on what
10396 is considered valid when processing BIGNUMs, and causes execution to
10397 assert() when a problem is discovered. If BN_DEBUG_RAND is defined,
10398 further steps are taken to deliberately pollute unused data in BIGNUM
10399 structures to try and expose faulty code further on. For now, openssl will
10400 (in its default mode of operation) continue to tolerate the inconsistent
10401 forms that it has tolerated in the past, but authors and packagers should
10402 consider trying openssl and their own applications when compiled with
10403 these debugging symbols defined. It will help highlight potential bugs in
10404 their own code, and will improve the test coverage for OpenSSL itself. At
10405 some point, these tighter rules will become openssl's default to improve
10406 maintainability, though the assert()s and other overheads will remain only
10407 in debugging configurations. See bn.h for more details.
10408
10409 *Geoff Thorpe, Nils Larsch, Ulf Möller*
10410
10411 * BN_CTX_init() has been deprecated, as BN_CTX is an opaque structure
10412 that can only be obtained through BN_CTX_new() (which implicitly
10413 initialises it). The presence of this function only made it possible
10414 to overwrite an existing structure (and cause memory leaks).
10415
10416 *Geoff Thorpe*
10417
10418 * Because of the callback-based approach for implementing LHASH as a
10419 template type, lh_insert() adds opaque objects to hash-tables and
10420 lh_doall() or lh_doall_arg() are typically used with a destructor callback
10421 to clean up those corresponding objects before destroying the hash table
10422 (and losing the object pointers). So some over-zealous constifications in
10423 LHASH have been relaxed so that lh_insert() does not take (nor store) the
257e9d03 10424 objects as "const" and the `lh_doall[_arg]` callback wrappers are not
5f8e6c50
DMSP
10425 prototyped to have "const" restrictions on the object pointers they are
10426 given (and so aren't required to cast them away any more).
10427
10428 *Geoff Thorpe*
10429
10430 * The tmdiff.h API was so ugly and minimal that our own timing utility
10431 (speed) prefers to use its own implementation. The two implementations
10432 haven't been consolidated as yet (volunteers?) but the tmdiff API has had
257e9d03
RS
10433 its object type properly exposed (MS_TM) instead of casting to/from
10434 `char *`. This may still change yet if someone realises MS_TM and
10435 `ms_time_***`
5f8e6c50
DMSP
10436 aren't necessarily the greatest nomenclatures - but this is what was used
10437 internally to the implementation so I've used that for now.
10438
10439 *Geoff Thorpe*
10440
10441 * Ensure that deprecated functions do not get compiled when
10442 OPENSSL_NO_DEPRECATED is defined. Some "openssl" subcommands and a few of
10443 the self-tests were still using deprecated key-generation functions so
10444 these have been updated also.
10445
10446 *Geoff Thorpe*
10447
10448 * Reorganise PKCS#7 code to separate the digest location functionality
10449 into PKCS7_find_digest(), digest addition into PKCS7_bio_add_digest().
10450 New function PKCS7_set_digest() to set the digest type for PKCS#7
10451 digestedData type. Add additional code to correctly generate the
10452 digestedData type and add support for this type in PKCS7 initialization
10453 functions.
10454
10455 *Steve Henson*
10456
10457 * New function PKCS7_set0_type_other() this initializes a PKCS7
10458 structure of type "other".
10459
10460 *Steve Henson*
10461
10462 * Fix prime generation loop in crypto/bn/bn_prime.pl by making
10463 sure the loop does correctly stop and breaking ("division by zero")
10464 modulus operations are not performed. The (pre-generated) prime
10465 table crypto/bn/bn_prime.h was already correct, but it could not be
10466 re-generated on some platforms because of the "division by zero"
10467 situation in the script.
10468
10469 *Ralf S. Engelschall*
10470
10471 * Update support for ECC-based TLS ciphersuites according to
10472 draft-ietf-tls-ecc-03.txt: the KDF1 key derivation function with
10473 SHA-1 now is only used for "small" curves (where the
10474 representation of a field element takes up to 24 bytes); for
10475 larger curves, the field element resulting from ECDH is directly
10476 used as premaster secret.
10477
10478 *Douglas Stebila (Sun Microsystems Laboratories)*
10479
10480 * Add code for kP+lQ timings to crypto/ec/ectest.c, and add SEC2
10481 curve secp160r1 to the tests.
10482
10483 *Douglas Stebila (Sun Microsystems Laboratories)*
10484
10485 * Add the possibility to load symbols globally with DSO.
10486
10487 *Götz Babin-Ebell <babin-ebell@trustcenter.de> via Richard Levitte*
10488
10489 * Add the functions ERR_set_mark() and ERR_pop_to_mark() for better
10490 control of the error stack.
10491
10492 *Richard Levitte*
10493
10494 * Add support for STORE in ENGINE.
10495
10496 *Richard Levitte*
10497
10498 * Add the STORE type. The intention is to provide a common interface
10499 to certificate and key stores, be they simple file-based stores, or
10500 HSM-type store, or LDAP stores, or...
10501 NOTE: The code is currently UNTESTED and isn't really used anywhere.
10502
10503 *Richard Levitte*
10504
10505 * Add a generic structure called OPENSSL_ITEM. This can be used to
10506 pass a list of arguments to any function as well as provide a way
10507 for a function to pass data back to the caller.
10508
10509 *Richard Levitte*
10510
10511 * Add the functions BUF_strndup() and BUF_memdup(). BUF_strndup()
10512 works like BUF_strdup() but can be used to duplicate a portion of
10513 a string. The copy gets NUL-terminated. BUF_memdup() duplicates
10514 a memory area.
10515
10516 *Richard Levitte*
10517
10518 * Add the function sk_find_ex() which works like sk_find(), but will
10519 return an index to an element even if an exact match couldn't be
10520 found. The index is guaranteed to point at the element where the
10521 searched-for key would be inserted to preserve sorting order.
10522
10523 *Richard Levitte*
10524
10525 * Add the function OBJ_bsearch_ex() which works like OBJ_bsearch() but
10526 takes an extra flags argument for optional functionality. Currently,
10527 the following flags are defined:
10528
10529 OBJ_BSEARCH_VALUE_ON_NOMATCH
10530 This one gets OBJ_bsearch_ex() to return a pointer to the first
10531 element where the comparing function returns a negative or zero
10532 number.
10533
10534 OBJ_BSEARCH_FIRST_VALUE_ON_MATCH
10535 This one gets OBJ_bsearch_ex() to return a pointer to the first
10536 element where the comparing function returns zero. This is useful
10537 if there are more than one element where the comparing function
10538 returns zero.
10539
10540 *Richard Levitte*
10541
10542 * Make it possible to create self-signed certificates with 'openssl ca'
10543 in such a way that the self-signed certificate becomes part of the
10544 CA database and uses the same mechanisms for serial number generation
10545 as all other certificate signing. The new flag '-selfsign' enables
10546 this functionality. Adapt CA.sh and CA.pl.in.
10547
10548 *Richard Levitte*
10549
10550 * Add functionality to check the public key of a certificate request
10551 against a given private. This is useful to check that a certificate
10552 request can be signed by that key (self-signing).
10553
10554 *Richard Levitte*
10555
10556 * Make it possible to have multiple active certificates with the same
10557 subject in the CA index file. This is done only if the keyword
10558 'unique_subject' is set to 'no' in the main CA section (default
10559 if 'CA_default') of the configuration file. The value is saved
10560 with the database itself in a separate index attribute file,
10561 named like the index file with '.attr' appended to the name.
10562
10563 *Richard Levitte*
10564
10565 * Generate multi-valued AVAs using '+' notation in config files for
10566 req and dirName.
10567
10568 *Steve Henson*
10569
10570 * Support for nameConstraints certificate extension.
10571
10572 *Steve Henson*
10573
10574 * Support for policyConstraints certificate extension.
10575
10576 *Steve Henson*
10577
10578 * Support for policyMappings certificate extension.
10579
10580 *Steve Henson*
10581
10582 * Make sure the default DSA_METHOD implementation only uses its
10583 dsa_mod_exp() and/or bn_mod_exp() handlers if they are non-NULL,
10584 and change its own handlers to be NULL so as to remove unnecessary
10585 indirection. This lets alternative implementations fallback to the
10586 default implementation more easily.
10587
10588 *Geoff Thorpe*
10589
10590 * Support for directoryName in GeneralName related extensions
10591 in config files.
10592
10593 *Steve Henson*
10594
10595 * Make it possible to link applications using Makefile.shared.
10596 Make that possible even when linking against static libraries!
10597
10598 *Richard Levitte*
10599
10600 * Support for single pass processing for S/MIME signing. This now
10601 means that S/MIME signing can be done from a pipe, in addition
10602 cleartext signing (multipart/signed type) is effectively streaming
10603 and the signed data does not need to be all held in memory.
10604
10605 This is done with a new flag PKCS7_STREAM. When this flag is set
10606 PKCS7_sign() only initializes the PKCS7 structure and the actual signing
10607 is done after the data is output (and digests calculated) in
10608 SMIME_write_PKCS7().
10609
10610 *Steve Henson*
10611
10612 * Add full support for -rpath/-R, both in shared libraries and
10613 applications, at least on the platforms where it's known how
10614 to do it.
10615
10616 *Richard Levitte*
10617
10618 * In crypto/ec/ec_mult.c, implement fast point multiplication with
10619 precomputation, based on wNAF splitting: EC_GROUP_precompute_mult()
10620 will now compute a table of multiples of the generator that
10621 makes subsequent invocations of EC_POINTs_mul() or EC_POINT_mul()
10622 faster (notably in the case of a single point multiplication,
10623 scalar * generator).
10624
10625 *Nils Larsch, Bodo Moeller*
10626
10627 * IPv6 support for certificate extensions. The various extensions
10628 which use the IP:a.b.c.d can now take IPv6 addresses using the
10629 formats of RFC1884 2.2 . IPv6 addresses are now also displayed
10630 correctly.
10631
10632 *Steve Henson*
10633
10634 * Added an ENGINE that implements RSA by performing private key
10635 exponentiations with the GMP library. The conversions to and from
10636 GMP's mpz_t format aren't optimised nor are any montgomery forms
10637 cached, and on x86 it appears OpenSSL's own performance has caught up.
10638 However there are likely to be other architectures where GMP could
10639 provide a boost. This ENGINE is not built in by default, but it can be
10640 specified at Configure time and should be accompanied by the necessary
10641 linker additions, eg;
10642 ./config -DOPENSSL_USE_GMP -lgmp
10643
10644 *Geoff Thorpe*
10645
10646 * "openssl engine" will not display ENGINE/DSO load failure errors when
10647 testing availability of engines with "-t" - the old behaviour is
10648 produced by increasing the feature's verbosity with "-tt".
10649
10650 *Geoff Thorpe*
10651
10652 * ECDSA routines: under certain error conditions uninitialized BN objects
10653 could be freed. Solution: make sure initialization is performed early
10654 enough. (Reported and fix supplied by Nils Larsch <nla@trustcenter.de>
10655 via PR#459)
10656
10657 *Lutz Jaenicke*
10658
10659 * Key-generation can now be implemented in RSA_METHOD, DSA_METHOD
10660 and DH_METHOD (eg. by ENGINE implementations) to override the normal
10661 software implementations. For DSA and DH, parameter generation can
10662 also be overridden by providing the appropriate method callbacks.
10663
10664 *Geoff Thorpe*
10665
10666 * Change the "progress" mechanism used in key-generation and
10667 primality testing to functions that take a new BN_GENCB pointer in
257e9d03 10668 place of callback/argument pairs. The new API functions have `_ex`
5f8e6c50
DMSP
10669 postfixes and the older functions are reimplemented as wrappers for
10670 the new ones. The OPENSSL_NO_DEPRECATED symbol can be used to hide
10671 declarations of the old functions to help (graceful) attempts to
10672 migrate to the new functions. Also, the new key-generation API
10673 functions operate on a caller-supplied key-structure and return
10674 success/failure rather than returning a key or NULL - this is to
10675 help make "keygen" another member function of RSA_METHOD etc.
10676
10677 Example for using the new callback interface:
10678
10679 int (*my_callback)(int a, int b, BN_GENCB *cb) = ...;
10680 void *my_arg = ...;
10681 BN_GENCB my_cb;
10682
10683 BN_GENCB_set(&my_cb, my_callback, my_arg);
10684
10685 return BN_is_prime_ex(some_bignum, BN_prime_checks, NULL, &cb);
10686 /* For the meaning of a, b in calls to my_callback(), see the
10687 * documentation of the function that calls the callback.
10688 * cb will point to my_cb; my_arg can be retrieved as cb->arg.
10689 * my_callback should return 1 if it wants BN_is_prime_ex()
10690 * to continue, or 0 to stop.
10691 */
10692
10693 *Geoff Thorpe*
10694
10695 * Change the ZLIB compression method to be stateful, and make it
10696 available to TLS with the number defined in
10697 draft-ietf-tls-compression-04.txt.
10698
10699 *Richard Levitte*
10700
10701 * Add the ASN.1 structures and functions for CertificatePair, which
10702 is defined as follows (according to X.509_4thEditionDraftV6.pdf):
10703
10704 CertificatePair ::= SEQUENCE {
10705 forward [0] Certificate OPTIONAL,
10706 reverse [1] Certificate OPTIONAL,
10707 -- at least one of the pair shall be present -- }
10708
10709 Also implement the PEM functions to read and write certificate
10710 pairs, and defined the PEM tag as "CERTIFICATE PAIR".
10711
10712 This needed to be defined, mostly for the sake of the LDAP
10713 attribute crossCertificatePair, but may prove useful elsewhere as
10714 well.
10715
10716 *Richard Levitte*
10717
10718 * Make it possible to inhibit symlinking of shared libraries in
10719 Makefile.shared, for Cygwin's sake.
10720
10721 *Richard Levitte*
10722
10723 * Extend the BIGNUM API by creating a function
10724 void BN_set_negative(BIGNUM *a, int neg);
10725 and a macro that behave like
10726 int BN_is_negative(const BIGNUM *a);
10727
10728 to avoid the need to access 'a->neg' directly in applications.
10729
10730 *Nils Larsch*
10731
10732 * Implement fast modular reduction for pseudo-Mersenne primes
10733 used in NIST curves (crypto/bn/bn_nist.c, crypto/ec/ecp_nist.c).
10734 EC_GROUP_new_curve_GFp() will now automatically use this
10735 if applicable.
10736
10737 *Nils Larsch <nla@trustcenter.de>*
10738
10739 * Add new lock type (CRYPTO_LOCK_BN).
10740
10741 *Bodo Moeller*
10742
10743 * Change the ENGINE framework to automatically load engines
10744 dynamically from specific directories unless they could be
10745 found to already be built in or loaded. Move all the
10746 current engines except for the cryptodev one to a new
10747 directory engines/.
10748 The engines in engines/ are built as shared libraries if
10749 the "shared" options was given to ./Configure or ./config.
10750 Otherwise, they are inserted in libcrypto.a.
10751 /usr/local/ssl/engines is the default directory for dynamic
10752 engines, but that can be overridden at configure time through
10753 the usual use of --prefix and/or --openssldir, and at run
10754 time with the environment variable OPENSSL_ENGINES.
10755
10756 *Geoff Thorpe and Richard Levitte*
10757
10758 * Add Makefile.shared, a helper makefile to build shared
10759 libraries. Adapt Makefile.org.
10760
10761 *Richard Levitte*
10762
10763 * Add version info to Win32 DLLs.
10764
10765 *Peter 'Luna' Runestig" <peter@runestig.com>*
10766
10767 * Add new 'medium level' PKCS#12 API. Certificates and keys
10768 can be added using this API to created arbitrary PKCS#12
4d49b685 10769 files while avoiding the low-level API.
5f8e6c50
DMSP
10770
10771 New options to PKCS12_create(), key or cert can be NULL and
10772 will then be omitted from the output file. The encryption
10773 algorithm NIDs can be set to -1 for no encryption, the mac
10774 iteration count can be set to 0 to omit the mac.
10775
10776 Enhance pkcs12 utility by making the -nokeys and -nocerts
10777 options work when creating a PKCS#12 file. New option -nomac
10778 to omit the mac, NONE can be set for an encryption algorithm.
10779 New code is modified to use the enhanced PKCS12_create()
4d49b685 10780 instead of the low-level API.
5f8e6c50
DMSP
10781
10782 *Steve Henson*
10783
10784 * Extend ASN1 encoder to support indefinite length constructed
10785 encoding. This can output sequences tags and octet strings in
10786 this form. Modify pk7_asn1.c to support indefinite length
10787 encoding. This is experimental and needs additional code to
10788 be useful, such as an ASN1 bio and some enhanced streaming
10789 PKCS#7 code.
10790
10791 Extend template encode functionality so that tagging is passed
10792 down to the template encoder.
10793
10794 *Steve Henson*
10795
10796 * Let 'openssl req' fail if an argument to '-newkey' is not
10797 recognized instead of using RSA as a default.
10798
10799 *Bodo Moeller*
10800
10801 * Add support for ECC-based ciphersuites from draft-ietf-tls-ecc-01.txt.
10802 As these are not official, they are not included in "ALL";
10803 the "ECCdraft" ciphersuite group alias can be used to select them.
10804
10805 *Vipul Gupta and Sumit Gupta (Sun Microsystems Laboratories)*
10806
10807 * Add ECDH engine support.
10808
10809 *Nils Gura and Douglas Stebila (Sun Microsystems Laboratories)*
10810
10811 * Add ECDH in new directory crypto/ecdh/.
10812
10813 *Douglas Stebila (Sun Microsystems Laboratories)*
10814
10815 * Let BN_rand_range() abort with an error after 100 iterations
10816 without success (which indicates a broken PRNG).
10817
10818 *Bodo Moeller*
10819
10820 * Change BN_mod_sqrt() so that it verifies that the input value
10821 is really the square of the return value. (Previously,
10822 BN_mod_sqrt would show GIGO behaviour.)
10823
10824 *Bodo Moeller*
10825
10826 * Add named elliptic curves over binary fields from X9.62, SECG,
10827 and WAP/WTLS; add OIDs that were still missing.
10828
257e9d03 10829 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10830
10831 * Extend the EC library for elliptic curves over binary fields
10832 (new files ec2_smpl.c, ec2_smpt.c, ec2_mult.c in crypto/ec/).
10833 New EC_METHOD:
10834
10835 EC_GF2m_simple_method
10836
10837 New API functions:
10838
10839 EC_GROUP_new_curve_GF2m
10840 EC_GROUP_set_curve_GF2m
10841 EC_GROUP_get_curve_GF2m
10842 EC_POINT_set_affine_coordinates_GF2m
10843 EC_POINT_get_affine_coordinates_GF2m
10844 EC_POINT_set_compressed_coordinates_GF2m
10845
10846 Point compression for binary fields is disabled by default for
10847 patent reasons (compile with OPENSSL_EC_BIN_PT_COMP defined to
10848 enable it).
10849
10850 As binary polynomials are represented as BIGNUMs, various members
10851 of the EC_GROUP and EC_POINT data structures can be shared
10852 between the implementations for prime fields and binary fields;
257e9d03
RS
10853 the above `..._GF2m functions` (except for EX_GROUP_new_curve_GF2m)
10854 are essentially identical to their `..._GFp` counterparts.
10855 (For simplicity, the `..._GFp` prefix has been dropped from
5f8e6c50
DMSP
10856 various internal method names.)
10857
10858 An internal 'field_div' method (similar to 'field_mul' and
10859 'field_sqr') has been added; this is used only for binary fields.
10860
257e9d03 10861 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10862
10863 * Optionally dispatch EC_POINT_mul(), EC_POINT_precompute_mult()
10864 through methods ('mul', 'precompute_mult').
10865
10866 The generic implementations (now internally called 'ec_wNAF_mul'
10867 and 'ec_wNAF_precomputed_mult') remain the default if these
10868 methods are undefined.
10869
257e9d03 10870 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10871
10872 * New function EC_GROUP_get_degree, which is defined through
10873 EC_METHOD. For curves over prime fields, this returns the bit
10874 length of the modulus.
10875
257e9d03 10876 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10877
10878 * New functions EC_GROUP_dup, EC_POINT_dup.
10879 (These simply call ..._new and ..._copy).
10880
257e9d03 10881 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10882
10883 * Add binary polynomial arithmetic software in crypto/bn/bn_gf2m.c.
10884 Polynomials are represented as BIGNUMs (where the sign bit is not
10885 used) in the following functions [macros]:
10886
10887 BN_GF2m_add
10888 BN_GF2m_sub [= BN_GF2m_add]
10889 BN_GF2m_mod [wrapper for BN_GF2m_mod_arr]
10890 BN_GF2m_mod_mul [wrapper for BN_GF2m_mod_mul_arr]
10891 BN_GF2m_mod_sqr [wrapper for BN_GF2m_mod_sqr_arr]
10892 BN_GF2m_mod_inv
10893 BN_GF2m_mod_exp [wrapper for BN_GF2m_mod_exp_arr]
10894 BN_GF2m_mod_sqrt [wrapper for BN_GF2m_mod_sqrt_arr]
10895 BN_GF2m_mod_solve_quad [wrapper for BN_GF2m_mod_solve_quad_arr]
10896 BN_GF2m_cmp [= BN_ucmp]
10897
10898 (Note that only the 'mod' functions are actually for fields GF(2^m).
10899 BN_GF2m_add() is misnomer, but this is for the sake of consistency.)
10900
10901 For some functions, an the irreducible polynomial defining a
10902 field can be given as an 'unsigned int[]' with strictly
10903 decreasing elements giving the indices of those bits that are set;
10904 i.e., p[] represents the polynomial
10905 f(t) = t^p[0] + t^p[1] + ... + t^p[k]
10906 where
10907 p[0] > p[1] > ... > p[k] = 0.
10908 This applies to the following functions:
10909
10910 BN_GF2m_mod_arr
10911 BN_GF2m_mod_mul_arr
10912 BN_GF2m_mod_sqr_arr
10913 BN_GF2m_mod_inv_arr [wrapper for BN_GF2m_mod_inv]
10914 BN_GF2m_mod_div_arr [wrapper for BN_GF2m_mod_div]
10915 BN_GF2m_mod_exp_arr
10916 BN_GF2m_mod_sqrt_arr
10917 BN_GF2m_mod_solve_quad_arr
10918 BN_GF2m_poly2arr
10919 BN_GF2m_arr2poly
10920
10921 Conversion can be performed by the following functions:
10922
10923 BN_GF2m_poly2arr
10924 BN_GF2m_arr2poly
10925
10926 bntest.c has additional tests for binary polynomial arithmetic.
10927
10928 Two implementations for BN_GF2m_mod_div() are available.
10929 The default algorithm simply uses BN_GF2m_mod_inv() and
10930 BN_GF2m_mod_mul(). The alternative algorithm is compiled in only
10931 if OPENSSL_SUN_GF2M_DIV is defined (patent pending; read the
10932 copyright notice in crypto/bn/bn_gf2m.c before enabling it).
10933
257e9d03 10934 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
10935
10936 * Add new error code 'ERR_R_DISABLED' that can be used when some
10937 functionality is disabled at compile-time.
10938
10939 *Douglas Stebila <douglas.stebila@sun.com>*
10940
10941 * Change default behaviour of 'openssl asn1parse' so that more
10942 information is visible when viewing, e.g., a certificate:
10943
10944 Modify asn1_parse2 (crypto/asn1/asn1_par.c) so that in non-'dump'
10945 mode the content of non-printable OCTET STRINGs is output in a
10946 style similar to INTEGERs, but with '[HEX DUMP]' prepended to
10947 avoid the appearance of a printable string.
10948
10949 *Nils Larsch <nla@trustcenter.de>*
10950
10951 * Add 'asn1_flag' and 'asn1_form' member to EC_GROUP with access
10952 functions
10953 EC_GROUP_set_asn1_flag()
10954 EC_GROUP_get_asn1_flag()
10955 EC_GROUP_set_point_conversion_form()
10956 EC_GROUP_get_point_conversion_form()
10957 These control ASN1 encoding details:
10958 - Curves (i.e., groups) are encoded explicitly unless asn1_flag
10959 has been set to OPENSSL_EC_NAMED_CURVE.
10960 - Points are encoded in uncompressed form by default; options for
10961 asn1_for are as for point2oct, namely
10962 POINT_CONVERSION_COMPRESSED
10963 POINT_CONVERSION_UNCOMPRESSED
10964 POINT_CONVERSION_HYBRID
10965
10966 Also add 'seed' and 'seed_len' members to EC_GROUP with access
10967 functions
10968 EC_GROUP_set_seed()
10969 EC_GROUP_get0_seed()
10970 EC_GROUP_get_seed_len()
10971 This is used only for ASN1 purposes (so far).
10972
10973 *Nils Larsch <nla@trustcenter.de>*
10974
10975 * Add 'field_type' member to EC_METHOD, which holds the NID
10976 of the appropriate field type OID. The new function
10977 EC_METHOD_get_field_type() returns this value.
10978
10979 *Nils Larsch <nla@trustcenter.de>*
10980
10981 * Add functions
10982 EC_POINT_point2bn()
10983 EC_POINT_bn2point()
10984 EC_POINT_point2hex()
10985 EC_POINT_hex2point()
10986 providing useful interfaces to EC_POINT_point2oct() and
10987 EC_POINT_oct2point().
10988
10989 *Nils Larsch <nla@trustcenter.de>*
10990
10991 * Change internals of the EC library so that the functions
10992 EC_GROUP_set_generator()
10993 EC_GROUP_get_generator()
10994 EC_GROUP_get_order()
10995 EC_GROUP_get_cofactor()
10996 are implemented directly in crypto/ec/ec_lib.c and not dispatched
10997 to methods, which would lead to unnecessary code duplication when
10998 adding different types of curves.
10999
11000 *Nils Larsch <nla@trustcenter.de> with input by Bodo Moeller*
11001
11002 * Implement compute_wNAF (crypto/ec/ec_mult.c) without BIGNUM
11003 arithmetic, and such that modified wNAFs are generated
11004 (which avoid length expansion in many cases).
11005
11006 *Bodo Moeller*
11007
11008 * Add a function EC_GROUP_check_discriminant() (defined via
11009 EC_METHOD) that verifies that the curve discriminant is non-zero.
11010
11011 Add a function EC_GROUP_check() that makes some sanity tests
11012 on a EC_GROUP, its generator and order. This includes
11013 EC_GROUP_check_discriminant().
11014
11015 *Nils Larsch <nla@trustcenter.de>*
11016
11017 * Add ECDSA in new directory crypto/ecdsa/.
11018
11019 Add applications 'openssl ecparam' and 'openssl ecdsa'
11020 (these are based on 'openssl dsaparam' and 'openssl dsa').
11021
11022 ECDSA support is also included in various other files across the
11023 library. Most notably,
11024 - 'openssl req' now has a '-newkey ecdsa:file' option;
11025 - EVP_PKCS82PKEY (crypto/evp/evp_pkey.c) now can handle ECDSA;
11026 - X509_PUBKEY_get (crypto/asn1/x_pubkey.c) and
11027 d2i_PublicKey (crypto/asn1/d2i_pu.c) have been modified to make
11028 them suitable for ECDSA where domain parameters must be
11029 extracted before the specific public key;
11030 - ECDSA engine support has been added.
11031
11032 *Nils Larsch <nla@trustcenter.de>*
11033
11034 * Include some named elliptic curves, and add OIDs from X9.62,
11035 SECG, and WAP/WTLS. Each curve can be obtained from the new
11036 function
11037 EC_GROUP_new_by_curve_name(),
11038 and the list of available named curves can be obtained with
11039 EC_get_builtin_curves().
11040 Also add a 'curve_name' member to EC_GROUP objects, which can be
11041 accessed via
11042 EC_GROUP_set_curve_name()
11043 EC_GROUP_get_curve_name()
11044
11045 *Nils Larsch <larsch@trustcenter.de, Bodo Moeller*
11046
11047 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
11048 was actually never needed) and in BN_mul(). The removal in BN_mul()
11049 required a small change in bn_mul_part_recursive() and the addition
11050 of the functions bn_cmp_part_words(), bn_sub_part_words() and
11051 bn_add_part_words(), which do the same thing as bn_cmp_words(),
11052 bn_sub_words() and bn_add_words() except they take arrays with
11053 differing sizes.
11054
11055 *Richard Levitte*
11056
257e9d03 11057### Changes between 0.9.7l and 0.9.7m [23 Feb 2007]
5f8e6c50
DMSP
11058
11059 * Cleanse PEM buffers before freeing them since they may contain
11060 sensitive data.
11061
11062 *Benjamin Bennett <ben@psc.edu>*
11063
11064 * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that
11065 a ciphersuite string such as "DEFAULT:RSA" cannot enable
11066 authentication-only ciphersuites.
11067
11068 *Bodo Moeller*
11069
11070 * Since AES128 and AES256 share a single mask bit in the logic of
11071 ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a
11072 kludge to work properly if AES128 is available and AES256 isn't.
11073
11074 *Victor Duchovni*
11075
11076 * Expand security boundary to match 1.1.1 module.
11077
11078 *Steve Henson*
11079
11080 * Remove redundant features: hash file source, editing of test vectors
11081 modify fipsld to use external fips_premain.c signature.
11082
11083 *Steve Henson*
11084
11085 * New perl script mkfipsscr.pl to create shell scripts or batch files to
11086 run algorithm test programs.
11087
11088 *Steve Henson*
11089
11090 * Make algorithm test programs more tolerant of whitespace.
11091
11092 *Steve Henson*
11093
11094 * Have SSL/TLS server implementation tolerate "mismatched" record
11095 protocol version while receiving ClientHello even if the
11096 ClientHello is fragmented. (The server can't insist on the
11097 particular protocol version it has chosen before the ServerHello
11098 message has informed the client about his choice.)
11099
11100 *Bodo Moeller*
11101
11102 * Load error codes if they are not already present instead of using a
11103 static variable. This allows them to be cleanly unloaded and reloaded.
11104
11105 *Steve Henson*
11106
257e9d03 11107### Changes between 0.9.7k and 0.9.7l [28 Sep 2006]
5f8e6c50
DMSP
11108
11109 * Introduce limits to prevent malicious keys being able to
d8dc8538 11110 cause a denial of service. ([CVE-2006-2940])
5f8e6c50
DMSP
11111
11112 *Steve Henson, Bodo Moeller*
11113
11114 * Fix ASN.1 parsing of certain invalid structures that can result
d8dc8538 11115 in a denial of service. ([CVE-2006-2937]) [Steve Henson]
5f8e6c50
DMSP
11116
11117 * Fix buffer overflow in SSL_get_shared_ciphers() function.
d8dc8538 11118 ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team]
5f8e6c50
DMSP
11119
11120 * Fix SSL client code which could crash if connecting to a
d8dc8538 11121 malicious SSLv2 server. ([CVE-2006-4343])
5f8e6c50
DMSP
11122
11123 *Tavis Ormandy and Will Drewry, Google Security Team*
11124
11125 * Change ciphersuite string processing so that an explicit
11126 ciphersuite selects this one ciphersuite (so that "AES256-SHA"
11127 will no longer include "AES128-SHA"), and any other similar
11128 ciphersuite (same bitmap) from *other* protocol versions (so that
11129 "RC4-MD5" will still include both the SSL 2.0 ciphersuite and the
11130 SSL 3.0/TLS 1.0 ciphersuite). This is a backport combining
11131 changes from 0.9.8b and 0.9.8d.
11132
11133 *Bodo Moeller*
11134
257e9d03 11135### Changes between 0.9.7j and 0.9.7k [05 Sep 2006]
5f8e6c50
DMSP
11136
11137 * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher
d8dc8538 11138 ([CVE-2006-4339]) [Ben Laurie and Google Security Team]
5f8e6c50
DMSP
11139
11140 * Change the Unix randomness entropy gathering to use poll() when
11141 possible instead of select(), since the latter has some
11142 undesirable limitations.
11143
11144 *Darryl Miles via Richard Levitte and Bodo Moeller*
11145
11146 * Disable rogue ciphersuites:
11147
257e9d03
RS
11148 - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5")
11149 - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5")
11150 - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5")
5f8e6c50
DMSP
11151
11152 The latter two were purportedly from
11153 draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really
11154 appear there.
11155
11156 Also deactivate the remaining ciphersuites from
11157 draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as
11158 unofficial, and the ID has long expired.
11159
11160 *Bodo Moeller*
11161
11162 * Fix RSA blinding Heisenbug (problems sometimes occurred on
11163 dual-core machines) and other potential thread-safety issues.
11164
11165 *Bodo Moeller*
11166
257e9d03 11167### Changes between 0.9.7i and 0.9.7j [04 May 2006]
5f8e6c50
DMSP
11168
11169 * Adapt fipsld and the build system to link against the validated FIPS
11170 module in FIPS mode.
11171
11172 *Steve Henson*
11173
11174 * Fixes for VC++ 2005 build under Windows.
11175
11176 *Steve Henson*
11177
11178 * Add new Windows build target VC-32-GMAKE for VC++. This uses GNU make
11179 from a Windows bash shell such as MSYS. It is autodetected from the
11180 "config" script when run from a VC++ environment. Modify standard VC++
11181 build to use fipscanister.o from the GNU make build.
11182
11183 *Steve Henson*
11184
257e9d03 11185### Changes between 0.9.7h and 0.9.7i [14 Oct 2005]
5f8e6c50
DMSP
11186
11187 * Wrapped the definition of EVP_MAX_MD_SIZE in a #ifdef OPENSSL_FIPS.
11188 The value now differs depending on if you build for FIPS or not.
11189 BEWARE! A program linked with a shared FIPSed libcrypto can't be
11190 safely run with a non-FIPSed libcrypto, as it may crash because of
11191 the difference induced by this change.
11192
11193 *Andy Polyakov*
11194
257e9d03 11195### Changes between 0.9.7g and 0.9.7h [11 Oct 2005]
5f8e6c50
DMSP
11196
11197 * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING
11198 (part of SSL_OP_ALL). This option used to disable the
11199 countermeasure against man-in-the-middle protocol-version
11200 rollback in the SSL 2.0 server implementation, which is a bad
d8dc8538 11201 idea. ([CVE-2005-2969])
5f8e6c50
DMSP
11202
11203 *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center
11204 for Information Security, National Institute of Advanced Industrial
257e9d03 11205 Science and Technology [AIST, Japan)]*
5f8e6c50
DMSP
11206
11207 * Minimal support for X9.31 signatures and PSS padding modes. This is
11208 mainly for FIPS compliance and not fully integrated at this stage.
11209
11210 *Steve Henson*
11211
11212 * For DSA signing, unless DSA_FLAG_NO_EXP_CONSTTIME is set, perform
11213 the exponentiation using a fixed-length exponent. (Otherwise,
11214 the information leaked through timing could expose the secret key
11215 after many signatures; cf. Bleichenbacher's attack on DSA with
11216 biased k.)
11217
11218 *Bodo Moeller*
11219
11220 * Make a new fixed-window mod_exp implementation the default for
11221 RSA, DSA, and DH private-key operations so that the sequence of
11222 squares and multiplies and the memory access pattern are
11223 independent of the particular secret key. This will mitigate
11224 cache-timing and potential related attacks.
11225
11226 BN_mod_exp_mont_consttime() is the new exponentiation implementation,
11227 and this is automatically used by BN_mod_exp_mont() if the new flag
11228 BN_FLG_EXP_CONSTTIME is set for the exponent. RSA, DSA, and DH
11229 will use this BN flag for private exponents unless the flag
11230 RSA_FLAG_NO_EXP_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME, or
11231 DH_FLAG_NO_EXP_CONSTTIME, respectively, is set.
11232
5f8e6c50
DMSP
11233 *Matthew D Wood (Intel Corp), with some changes by Bodo Moeller*
11234
11235 * Change the client implementation for SSLv23_method() and
11236 SSLv23_client_method() so that is uses the SSL 3.0/TLS 1.0
11237 Client Hello message format if the SSL_OP_NO_SSLv2 option is set.
11238 (Previously, the SSL 2.0 backwards compatible Client Hello
11239 message format would be used even with SSL_OP_NO_SSLv2.)
11240
11241 *Bodo Moeller*
11242
11243 * Add support for smime-type MIME parameter in S/MIME messages which some
11244 clients need.
11245
11246 *Steve Henson*
11247
11248 * New function BN_MONT_CTX_set_locked() to set montgomery parameters in
11249 a threadsafe manner. Modify rsa code to use new function and add calls
11250 to dsa and dh code (which had race conditions before).
11251
11252 *Steve Henson*
11253
11254 * Include the fixed error library code in the C error file definitions
11255 instead of fixing them up at runtime. This keeps the error code
11256 structures constant.
11257
11258 *Steve Henson*
11259
257e9d03 11260### Changes between 0.9.7f and 0.9.7g [11 Apr 2005]
5f8e6c50
DMSP
11261
11262[NB: OpenSSL 0.9.7h and later 0.9.7 patch levels were released after
11263OpenSSL 0.9.8.]
11264
11265 * Fixes for newer kerberos headers. NB: the casts are needed because
11266 the 'length' field is signed on one version and unsigned on another
11267 with no (?) obvious way to tell the difference, without these VC++
11268 complains. Also the "definition" of FAR (blank) is no longer included
11269 nor is the error ENOMEM. KRB5_PRIVATE has to be set to 1 to pick up
11270 some needed definitions.
11271
11272 *Steve Henson*
11273
11274 * Undo Cygwin change.
11275
11276 *Ulf Möller*
11277
11278 * Added support for proxy certificates according to RFC 3820.
11279 Because they may be a security thread to unaware applications,
11280 they must be explicitly allowed in run-time. See
11281 docs/HOWTO/proxy_certificates.txt for further information.
11282
11283 *Richard Levitte*
11284
257e9d03 11285### Changes between 0.9.7e and 0.9.7f [22 Mar 2005]
5f8e6c50
DMSP
11286
11287 * Use (SSL_RANDOM_VALUE - 4) bytes of pseudo random data when generating
11288 server and client random values. Previously
11289 (SSL_RANDOM_VALUE - sizeof(time_t)) would be used which would result in
11290 less random data when sizeof(time_t) > 4 (some 64 bit platforms).
11291
11292 This change has negligible security impact because:
11293
11294 1. Server and client random values still have 24 bytes of pseudo random
11295 data.
11296
11297 2. Server and client random values are sent in the clear in the initial
11298 handshake.
11299
11300 3. The master secret is derived using the premaster secret (48 bytes in
11301 size for static RSA ciphersuites) as well as client server and random
11302 values.
11303
11304 The OpenSSL team would like to thank the UK NISCC for bringing this issue
11305 to our attention.
11306
11307 *Stephen Henson, reported by UK NISCC*
11308
11309 * Use Windows randomness collection on Cygwin.
11310
11311 *Ulf Möller*
11312
11313 * Fix hang in EGD/PRNGD query when communication socket is closed
11314 prematurely by EGD/PRNGD.
11315
11316 *Darren Tucker <dtucker@zip.com.au> via Lutz Jänicke, resolves #1014*
11317
11318 * Prompt for pass phrases when appropriate for PKCS12 input format.
11319
11320 *Steve Henson*
11321
11322 * Back-port of selected performance improvements from development
11323 branch, as well as improved support for PowerPC platforms.
11324
11325 *Andy Polyakov*
11326
11327 * Add lots of checks for memory allocation failure, error codes to indicate
11328 failure and freeing up memory if a failure occurs.
11329
11330 *Nauticus Networks SSL Team <openssl@nauticusnet.com>, Steve Henson*
11331
11332 * Add new -passin argument to dgst.
11333
11334 *Steve Henson*
11335
11336 * Perform some character comparisons of different types in X509_NAME_cmp:
11337 this is needed for some certificates that re-encode DNs into UTF8Strings
11338 (in violation of RFC3280) and can't or won't issue name rollover
11339 certificates.
11340
11341 *Steve Henson*
11342
11343 * Make an explicit check during certificate validation to see that
11344 the CA setting in each certificate on the chain is correct. As a
11345 side effect always do the following basic checks on extensions,
11346 not just when there's an associated purpose to the check:
11347
257e9d03
RS
11348 - if there is an unhandled critical extension (unless the user
11349 has chosen to ignore this fault)
11350 - if the path length has been exceeded (if one is set at all)
11351 - that certain extensions fit the associated purpose (if one has
11352 been given)
5f8e6c50
DMSP
11353
11354 *Richard Levitte*
11355
257e9d03 11356### Changes between 0.9.7d and 0.9.7e [25 Oct 2004]
5f8e6c50
DMSP
11357
11358 * Avoid a race condition when CRLs are checked in a multi threaded
11359 environment. This would happen due to the reordering of the revoked
11360 entries during signature checking and serial number lookup. Now the
11361 encoding is cached and the serial number sort performed under a lock.
11362 Add new STACK function sk_is_sorted().
11363
11364 *Steve Henson*
11365
11366 * Add Delta CRL to the extension code.
11367
11368 *Steve Henson*
11369
11370 * Various fixes to s3_pkt.c so alerts are sent properly.
11371
11372 *David Holmes <d.holmes@f5.com>*
11373
11374 * Reduce the chances of duplicate issuer name and serial numbers (in
11375 violation of RFC3280) using the OpenSSL certificate creation utilities.
11376 This is done by creating a random 64 bit value for the initial serial
11377 number when a serial number file is created or when a self signed
11378 certificate is created using 'openssl req -x509'. The initial serial
11379 number file is created using 'openssl x509 -next_serial' in CA.pl
11380 rather than being initialized to 1.
11381
11382 *Steve Henson*
11383
257e9d03 11384### Changes between 0.9.7c and 0.9.7d [17 Mar 2004]
5f8e6c50
DMSP
11385
11386 * Fix null-pointer assignment in do_change_cipher_spec() revealed
d8dc8538 11387 by using the Codenomicon TLS Test Tool ([CVE-2004-0079])
5f8e6c50
DMSP
11388
11389 *Joe Orton, Steve Henson*
11390
11391 * Fix flaw in SSL/TLS handshaking when using Kerberos ciphersuites
d8dc8538 11392 ([CVE-2004-0112])
5f8e6c50
DMSP
11393
11394 *Joe Orton, Steve Henson*
11395
11396 * Make it possible to have multiple active certificates with the same
11397 subject in the CA index file. This is done only if the keyword
11398 'unique_subject' is set to 'no' in the main CA section (default
11399 if 'CA_default') of the configuration file. The value is saved
11400 with the database itself in a separate index attribute file,
11401 named like the index file with '.attr' appended to the name.
11402
11403 *Richard Levitte*
11404
11405 * X509 verify fixes. Disable broken certificate workarounds when
11406 X509_V_FLAGS_X509_STRICT is set. Check CRL issuer has cRLSign set if
11407 keyUsage extension present. Don't accept CRLs with unhandled critical
11408 extensions: since verify currently doesn't process CRL extensions this
11409 rejects a CRL with *any* critical extensions. Add new verify error codes
11410 for these cases.
11411
11412 *Steve Henson*
11413
11414 * When creating an OCSP nonce use an OCTET STRING inside the extnValue.
11415 A clarification of RFC2560 will require the use of OCTET STRINGs and
11416 some implementations cannot handle the current raw format. Since OpenSSL
11417 copies and compares OCSP nonces as opaque blobs without any attempt at
11418 parsing them this should not create any compatibility issues.
11419
11420 *Steve Henson*
11421
11422 * New md flag EVP_MD_CTX_FLAG_REUSE this allows md_data to be reused when
11423 calling EVP_MD_CTX_copy_ex() to avoid calling OPENSSL_malloc(). Without
11424 this HMAC (and other) operations are several times slower than OpenSSL
11425 < 0.9.7.
11426
11427 *Steve Henson*
11428
11429 * Print out GeneralizedTime and UTCTime in ASN1_STRING_print_ex().
11430
11431 *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>*
11432
11433 * Use the correct content when signing type "other".
11434
11435 *Steve Henson*
11436
257e9d03 11437### Changes between 0.9.7b and 0.9.7c [30 Sep 2003]
5f8e6c50
DMSP
11438
11439 * Fix various bugs revealed by running the NISCC test suite:
11440
11441 Stop out of bounds reads in the ASN1 code when presented with
11442 invalid tags (CVE-2003-0543 and CVE-2003-0544).
11443
d8dc8538 11444 Free up ASN1_TYPE correctly if ANY type is invalid ([CVE-2003-0545]).
5f8e6c50
DMSP
11445
11446 If verify callback ignores invalid public key errors don't try to check
11447 certificate signature with the NULL public key.
11448
5f8e6c50
DMSP
11449 *Steve Henson*
11450
11451 * New -ignore_err option in ocsp application to stop the server
11452 exiting on the first error in a request.
11453
11454 *Steve Henson*
11455
11456 * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate
11457 if the server requested one: as stated in TLS 1.0 and SSL 3.0
11458 specifications.
11459
11460 *Steve Henson*
11461
11462 * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional
11463 extra data after the compression methods not only for TLS 1.0
11464 but also for SSL 3.0 (as required by the specification).
11465
11466 *Bodo Moeller; problem pointed out by Matthias Loepfe*
11467
11468 * Change X509_certificate_type() to mark the key as exported/exportable
11469 when it's 512 *bits* long, not 512 bytes.
11470
11471 *Richard Levitte*
11472
11473 * Change AES_cbc_encrypt() so it outputs exact multiple of
11474 blocks during encryption.
11475
11476 *Richard Levitte*
11477
11478 * Various fixes to base64 BIO and non blocking I/O. On write
11479 flushes were not handled properly if the BIO retried. On read
11480 data was not being buffered properly and had various logic bugs.
11481 This also affects blocking I/O when the data being decoded is a
11482 certain size.
11483
11484 *Steve Henson*
11485
11486 * Various S/MIME bugfixes and compatibility changes:
11487 output correct application/pkcs7 MIME type if
11488 PKCS7_NOOLDMIMETYPE is set. Tolerate some broken signatures.
11489 Output CR+LF for EOL if PKCS7_CRLFEOL is set (this makes opening
11490 of files as .eml work). Correctly handle very long lines in MIME
11491 parser.
11492
11493 *Steve Henson*
11494
257e9d03 11495### Changes between 0.9.7a and 0.9.7b [10 Apr 2003]
5f8e6c50
DMSP
11496
11497 * Countermeasure against the Klima-Pokorny-Rosa extension of
11498 Bleichbacher's attack on PKCS #1 v1.5 padding: treat
11499 a protocol version number mismatch like a decryption error
11500 in ssl3_get_client_key_exchange (ssl/s3_srvr.c).
11501
11502 *Bodo Moeller*
11503
11504 * Turn on RSA blinding by default in the default implementation
11505 to avoid a timing attack. Applications that don't want it can call
11506 RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING.
11507 They would be ill-advised to do so in most cases.
11508
11509 *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller*
11510
11511 * Change RSA blinding code so that it works when the PRNG is not
11512 seeded (in this case, the secret RSA exponent is abused as
11513 an unpredictable seed -- if it is not unpredictable, there
11514 is no point in blinding anyway). Make RSA blinding thread-safe
11515 by remembering the creator's thread ID in rsa->blinding and
11516 having all other threads use local one-time blinding factors
11517 (this requires more computation than sharing rsa->blinding, but
11518 avoids excessive locking; and if an RSA object is not shared
11519 between threads, blinding will still be very fast).
11520
11521 *Bodo Moeller*
11522
11523 * Fixed a typo bug that would cause ENGINE_set_default() to set an
11524 ENGINE as defaults for all supported algorithms irrespective of
11525 the 'flags' parameter. 'flags' is now honoured, so applications
11526 should make sure they are passing it correctly.
11527
11528 *Geoff Thorpe*
11529
11530 * Target "mingw" now allows native Windows code to be generated in
11531 the Cygwin environment as well as with the MinGW compiler.
11532
11533 *Ulf Moeller*
11534
257e9d03 11535### Changes between 0.9.7 and 0.9.7a [19 Feb 2003]
5f8e6c50
DMSP
11536
11537 * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked
11538 via timing by performing a MAC computation even if incorrect
11539 block cipher padding has been found. This is a countermeasure
11540 against active attacks where the attacker has to distinguish
d8dc8538 11541 between bad padding and a MAC verification error. ([CVE-2003-0078])
5f8e6c50
DMSP
11542
11543 *Bodo Moeller; problem pointed out by Brice Canvel (EPFL),
11544 Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and
11545 Martin Vuagnoux (EPFL, Ilion)*
11546
11547 * Make the no-err option work as intended. The intention with no-err
11548 is not to have the whole error stack handling routines removed from
11549 libcrypto, it's only intended to remove all the function name and
11550 reason texts, thereby removing some of the footprint that may not
11551 be interesting if those errors aren't displayed anyway.
11552
11553 NOTE: it's still possible for any application or module to have its
11554 own set of error texts inserted. The routines are there, just not
11555 used by default when no-err is given.
11556
11557 *Richard Levitte*
11558
11559 * Add support for FreeBSD on IA64.
11560
11561 *dirk.meyer@dinoex.sub.org via Richard Levitte, resolves #454*
11562
11563 * Adjust DES_cbc_cksum() so it returns the same value as the MIT
11564 Kerberos function mit_des_cbc_cksum(). Before this change,
11565 the value returned by DES_cbc_cksum() was like the one from
11566 mit_des_cbc_cksum(), except the bytes were swapped.
11567
11568 *Kevin Greaney <Kevin.Greaney@hp.com> and Richard Levitte*
11569
11570 * Allow an application to disable the automatic SSL chain building.
11571 Before this a rather primitive chain build was always performed in
11572 ssl3_output_cert_chain(): an application had no way to send the
11573 correct chain if the automatic operation produced an incorrect result.
11574
11575 Now the chain builder is disabled if either:
11576
11577 1. Extra certificates are added via SSL_CTX_add_extra_chain_cert().
11578
11579 2. The mode flag SSL_MODE_NO_AUTO_CHAIN is set.
11580
11581 The reasoning behind this is that an application would not want the
11582 auto chain building to take place if extra chain certificates are
11583 present and it might also want a means of sending no additional
11584 certificates (for example the chain has two certificates and the
11585 root is omitted).
11586
11587 *Steve Henson*
11588
11589 * Add the possibility to build without the ENGINE framework.
11590
11591 *Steven Reddie <smr@essemer.com.au> via Richard Levitte*
11592
11593 * Under Win32 gmtime() can return NULL: check return value in
11594 OPENSSL_gmtime(). Add error code for case where gmtime() fails.
11595
11596 *Steve Henson*
11597
11598 * DSA routines: under certain error conditions uninitialized BN objects
11599 could be freed. Solution: make sure initialization is performed early
11600 enough. (Reported and fix supplied by Ivan D Nestlerode <nestler@MIT.EDU>,
11601 Nils Larsch <nla@trustcenter.de> via PR#459)
11602
11603 *Lutz Jaenicke*
11604
11605 * Another fix for SSLv2 session ID handling: the session ID was incorrectly
11606 checked on reconnect on the client side, therefore session resumption
11607 could still fail with a "ssl session id is different" error. This
11608 behaviour is masked when SSL_OP_ALL is used due to
11609 SSL_OP_MICROSOFT_SESS_ID_BUG being set.
11610 Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as
11611 followup to PR #377.
11612
11613 *Lutz Jaenicke*
11614
11615 * IA-32 assembler support enhancements: unified ELF targets, support
11616 for SCO/Caldera platforms, fix for Cygwin shared build.
11617
11618 *Andy Polyakov*
11619
11620 * Add support for FreeBSD on sparc64. As a consequence, support for
11621 FreeBSD on non-x86 processors is separate from x86 processors on
11622 the config script, much like the NetBSD support.
11623
11624 *Richard Levitte & Kris Kennaway <kris@obsecurity.org>*
11625
257e9d03 11626### Changes between 0.9.6h and 0.9.7 [31 Dec 2002]
5f8e6c50
DMSP
11627
11628[NB: OpenSSL 0.9.6i and later 0.9.6 patch levels were released after
11629OpenSSL 0.9.7.]
11630
11631 * Fix session ID handling in SSLv2 client code: the SERVER FINISHED
11632 code (06) was taken as the first octet of the session ID and the last
11633 octet was ignored consequently. As a result SSLv2 client side session
11634 caching could not have worked due to the session ID mismatch between
11635 client and server.
11636 Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as
11637 PR #377.
11638
11639 *Lutz Jaenicke*
11640
11641 * Change the declaration of needed Kerberos libraries to use EX_LIBS
11642 instead of the special (and badly supported) LIBKRB5. LIBKRB5 is
11643 removed entirely.
11644
11645 *Richard Levitte*
11646
11647 * The hw_ncipher.c engine requires dynamic locks. Unfortunately, it
11648 seems that in spite of existing for more than a year, many application
11649 author have done nothing to provide the necessary callbacks, which
11650 means that this particular engine will not work properly anywhere.
11651 This is a very unfortunate situation which forces us, in the name
11652 of usability, to give the hw_ncipher.c a static lock, which is part
11653 of libcrypto.
11654 NOTE: This is for the 0.9.7 series ONLY. This hack will never
11655 appear in 0.9.8 or later. We EXPECT application authors to have
11656 dealt properly with this when 0.9.8 is released (unless we actually
11657 make such changes in the libcrypto locking code that changes will
11658 have to be made anyway).
11659
11660 *Richard Levitte*
11661
11662 * In asn1_d2i_read_bio() repeatedly call BIO_read() until all content
11663 octets have been read, EOF or an error occurs. Without this change
11664 some truncated ASN1 structures will not produce an error.
11665
11666 *Steve Henson*
11667
11668 * Disable Heimdal support, since it hasn't been fully implemented.
11669 Still give the possibility to force the use of Heimdal, but with
11670 warnings and a request that patches get sent to openssl-dev.
11671
11672 *Richard Levitte*
11673
11674 * Add the VC-CE target, introduce the WINCE sysname, and add
11675 INSTALL.WCE and appropriate conditionals to make it build.
11676
11677 *Steven Reddie <smr@essemer.com.au> via Richard Levitte*
11678
11679 * Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and
11680 cygssl-x.y.z.dll, where x, y and z are the major, minor and
11681 edit numbers of the version.
11682
11683 *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte*
11684
11685 * Introduce safe string copy and catenation functions
11686 (BUF_strlcpy() and BUF_strlcat()).
11687
11688 *Ben Laurie (CHATS) and Richard Levitte*
11689
11690 * Avoid using fixed-size buffers for one-line DNs.
11691
11692 *Ben Laurie (CHATS)*
11693
11694 * Add BUF_MEM_grow_clean() to avoid information leakage when
11695 resizing buffers containing secrets, and use where appropriate.
11696
11697 *Ben Laurie (CHATS)*
11698
11699 * Avoid using fixed size buffers for configuration file location.
11700
11701 *Ben Laurie (CHATS)*
11702
11703 * Avoid filename truncation for various CA files.
11704
11705 *Ben Laurie (CHATS)*
11706
11707 * Use sizeof in preference to magic numbers.
11708
11709 *Ben Laurie (CHATS)*
11710
11711 * Avoid filename truncation in cert requests.
11712
11713 *Ben Laurie (CHATS)*
11714
11715 * Add assertions to check for (supposedly impossible) buffer
11716 overflows.
11717
11718 *Ben Laurie (CHATS)*
11719
11720 * Don't cache truncated DNS entries in the local cache (this could
11721 potentially lead to a spoofing attack).
11722
11723 *Ben Laurie (CHATS)*
11724
11725 * Fix various buffers to be large enough for hex/decimal
11726 representations in a platform independent manner.
11727
11728 *Ben Laurie (CHATS)*
11729
11730 * Add CRYPTO_realloc_clean() to avoid information leakage when
11731 resizing buffers containing secrets, and use where appropriate.
11732
11733 *Ben Laurie (CHATS)*
11734
11735 * Add BIO_indent() to avoid much slightly worrying code to do
11736 indents.
11737
11738 *Ben Laurie (CHATS)*
11739
11740 * Convert sprintf()/BIO_puts() to BIO_printf().
11741
11742 *Ben Laurie (CHATS)*
11743
11744 * buffer_gets() could terminate with the buffer only half
11745 full. Fixed.
11746
11747 *Ben Laurie (CHATS)*
11748
11749 * Add assertions to prevent user-supplied crypto functions from
11750 overflowing internal buffers by having large block sizes, etc.
11751
11752 *Ben Laurie (CHATS)*
11753
11754 * New OPENSSL_assert() macro (similar to assert(), but enabled
11755 unconditionally).
11756
11757 *Ben Laurie (CHATS)*
11758
11759 * Eliminate unused copy of key in RC4.
11760
11761 *Ben Laurie (CHATS)*
11762
11763 * Eliminate unused and incorrectly sized buffers for IV in pem.h.
11764
11765 *Ben Laurie (CHATS)*
11766
11767 * Fix off-by-one error in EGD path.
11768
11769 *Ben Laurie (CHATS)*
11770
11771 * If RANDFILE path is too long, ignore instead of truncating.
11772
11773 *Ben Laurie (CHATS)*
11774
11775 * Eliminate unused and incorrectly sized X.509 structure
11776 CBCParameter.
11777
11778 *Ben Laurie (CHATS)*
11779
11780 * Eliminate unused and dangerous function knumber().
11781
11782 *Ben Laurie (CHATS)*
11783
11784 * Eliminate unused and dangerous structure, KSSL_ERR.
11785
11786 *Ben Laurie (CHATS)*
11787
11788 * Protect against overlong session ID context length in an encoded
11789 session object. Since these are local, this does not appear to be
11790 exploitable.
11791
11792 *Ben Laurie (CHATS)*
11793
11794 * Change from security patch (see 0.9.6e below) that did not affect
11795 the 0.9.6 release series:
11796
11797 Remote buffer overflow in SSL3 protocol - an attacker could
11798 supply an oversized master key in Kerberos-enabled versions.
d8dc8538 11799 ([CVE-2002-0657])
5f8e6c50
DMSP
11800
11801 *Ben Laurie (CHATS)*
11802
11803 * Change the SSL kerb5 codes to match RFC 2712.
11804
11805 *Richard Levitte*
11806
11807 * Make -nameopt work fully for req and add -reqopt switch.
11808
11809 *Michael Bell <michael.bell@rz.hu-berlin.de>, Steve Henson*
11810
11811 * The "block size" for block ciphers in CFB and OFB mode should be 1.
11812
11813 *Steve Henson, reported by Yngve Nysaeter Pettersen <yngve@opera.com>*
11814
11815 * Make sure tests can be performed even if the corresponding algorithms
11816 have been removed entirely. This was also the last step to make
11817 OpenSSL compilable with DJGPP under all reasonable conditions.
11818
11819 *Richard Levitte, Doug Kaufman <dkaufman@rahul.net>*
11820
11821 * Add cipher selection rules COMPLEMENTOFALL and COMPLEMENTOFDEFAULT
11822 to allow version independent disabling of normally unselected ciphers,
11823 which may be activated as a side-effect of selecting a single cipher.
11824
11825 (E.g., cipher list string "RSA" enables ciphersuites that are left
11826 out of "ALL" because they do not provide symmetric encryption.
11827 "RSA:!COMPLEMEMENTOFALL" avoids these unsafe ciphersuites.)
11828
11829 *Lutz Jaenicke, Bodo Moeller*
11830
11831 * Add appropriate support for separate platform-dependent build
11832 directories. The recommended way to make a platform-dependent
11833 build directory is the following (tested on Linux), maybe with
11834 some local tweaks:
11835
11836 # Place yourself outside of the OpenSSL source tree. In
11837 # this example, the environment variable OPENSSL_SOURCE
11838 # is assumed to contain the absolute OpenSSL source directory.
11839 mkdir -p objtree/"`uname -s`-`uname -r`-`uname -m`"
11840 cd objtree/"`uname -s`-`uname -r`-`uname -m`"
11841 (cd $OPENSSL_SOURCE; find . -type f) | while read F; do
11842 mkdir -p `dirname $F`
11843 ln -s $OPENSSL_SOURCE/$F $F
11844 done
11845
11846 To be absolutely sure not to disturb the source tree, a "make clean"
11847 is a good thing. If it isn't successful, don't worry about it,
11848 it probably means the source directory is very clean.
11849
11850 *Richard Levitte*
11851
11852 * Make sure any ENGINE control commands make local copies of string
11853 pointers passed to them whenever necessary. Otherwise it is possible
11854 the caller may have overwritten (or deallocated) the original string
11855 data when a later ENGINE operation tries to use the stored values.
11856
11857 *Götz Babin-Ebell <babinebell@trustcenter.de>*
11858
11859 * Improve diagnostics in file reading and command-line digests.
11860
11861 *Ben Laurie aided and abetted by Solar Designer <solar@openwall.com>*
11862
11863 * Add AES modes CFB and OFB to the object database. Correct an
11864 error in AES-CFB decryption.
11865
11866 *Richard Levitte*
11867
11868 * Remove most calls to EVP_CIPHER_CTX_cleanup() in evp_enc.c, this
11869 allows existing EVP_CIPHER_CTX structures to be reused after
257e9d03 11870 calling `EVP_*Final()`. This behaviour is used by encryption
5f8e6c50
DMSP
11871 BIOs and some applications. This has the side effect that
11872 applications must explicitly clean up cipher contexts with
11873 EVP_CIPHER_CTX_cleanup() or they will leak memory.
11874
11875 *Steve Henson*
11876
11877 * Check the values of dna and dnb in bn_mul_recursive before calling
11878 bn_mul_comba (a non zero value means the a or b arrays do not contain
11879 n2 elements) and fallback to bn_mul_normal if either is not zero.
11880
11881 *Steve Henson*
11882
11883 * Fix escaping of non-ASCII characters when using the -subj option
11884 of the "openssl req" command line tool. (Robert Joop <joop@fokus.gmd.de>)
11885
11886 *Lutz Jaenicke*
11887
11888 * Make object definitions compliant to LDAP (RFC2256): SN is the short
11889 form for "surname", serialNumber has no short form.
11890 Use "mail" as the short name for "rfc822Mailbox" according to RFC2798;
11891 therefore remove "mail" short name for "internet 7".
11892 The OID for unique identifiers in X509 certificates is
11893 x500UniqueIdentifier, not uniqueIdentifier.
11894 Some more OID additions. (Michael Bell <michael.bell@rz.hu-berlin.de>)
11895
11896 *Lutz Jaenicke*
11897
11898 * Add an "init" command to the ENGINE config module and auto initialize
11899 ENGINEs. Without any "init" command the ENGINE will be initialized
11900 after all ctrl commands have been executed on it. If init=1 the
11901 ENGINE is initialized at that point (ctrls before that point are run
11902 on the uninitialized ENGINE and after on the initialized one). If
11903 init=0 then the ENGINE will not be initialized at all.
11904
11905 *Steve Henson*
11906
11907 * Fix the 'app_verify_callback' interface so that the user-defined
11908 argument is actually passed to the callback: In the
11909 SSL_CTX_set_cert_verify_callback() prototype, the callback
11910 declaration has been changed from
11911 int (*cb)()
11912 into
11913 int (*cb)(X509_STORE_CTX *,void *);
11914 in ssl_verify_cert_chain (ssl/ssl_cert.c), the call
11915 i=s->ctx->app_verify_callback(&ctx)
11916 has been changed into
11917 i=s->ctx->app_verify_callback(&ctx, s->ctx->app_verify_arg).
11918
11919 To update applications using SSL_CTX_set_cert_verify_callback(),
11920 a dummy argument can be added to their callback functions.
11921
11922 *D. K. Smetters <smetters@parc.xerox.com>*
11923
11924 * Added the '4758cca' ENGINE to support IBM 4758 cards.
11925
11926 *Maurice Gittens <maurice@gittens.nl>, touchups by Geoff Thorpe*
11927
11928 * Add and OPENSSL_LOAD_CONF define which will cause
11929 OpenSSL_add_all_algorithms() to load the openssl.cnf config file.
11930 This allows older applications to transparently support certain
11931 OpenSSL features: such as crypto acceleration and dynamic ENGINE loading.
11932 Two new functions OPENSSL_add_all_algorithms_noconf() which will never
11933 load the config file and OPENSSL_add_all_algorithms_conf() which will
11934 always load it have also been added.
11935
11936 *Steve Henson*
11937
11938 * Add the OFB, CFB and CTR (all with 128 bit feedback) to AES.
11939 Adjust NIDs and EVP layer.
11940
11941 *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte*
11942
11943 * Config modules support in openssl utility.
11944
11945 Most commands now load modules from the config file,
11946 though in a few (such as version) this isn't done
11947 because it couldn't be used for anything.
11948
11949 In the case of ca and req the config file used is
11950 the same as the utility itself: that is the -config
11951 command line option can be used to specify an
11952 alternative file.
11953
11954 *Steve Henson*
11955
11956 * Move default behaviour from OPENSSL_config(). If appname is NULL
11957 use "openssl_conf" if filename is NULL use default openssl config file.
11958
11959 *Steve Henson*
11960
11961 * Add an argument to OPENSSL_config() to allow the use of an alternative
11962 config section name. Add a new flag to tolerate a missing config file
11963 and move code to CONF_modules_load_file().
11964
11965 *Steve Henson*
11966
11967 * Support for crypto accelerator cards from Accelerated Encryption
11968 Processing, www.aep.ie. (Use engine 'aep')
11969 The support was copied from 0.9.6c [engine] and adapted/corrected
11970 to work with the new engine framework.
11971
11972 *AEP Inc. and Richard Levitte*
11973
11974 * Support for SureWare crypto accelerator cards from Baltimore
11975 Technologies. (Use engine 'sureware')
11976 The support was copied from 0.9.6c [engine] and adapted
11977 to work with the new engine framework.
11978
11979 *Richard Levitte*
11980
11981 * Have the CHIL engine fork-safe (as defined by nCipher) and actually
11982 make the newer ENGINE framework commands for the CHIL engine work.
11983
11984 *Toomas Kiisk <vix@cyber.ee> and Richard Levitte*
11985
11986 * Make it possible to produce shared libraries on ReliantUNIX.
11987
11988 *Robert Dahlem <Robert.Dahlem@ffm2.siemens.de> via Richard Levitte*
11989
11990 * Add the configuration target debug-linux-ppro.
11991 Make 'openssl rsa' use the general key loading routines
ec2bfb7d 11992 implemented in `apps.c`, and make those routines able to
5f8e6c50
DMSP
11993 handle the key format FORMAT_NETSCAPE and the variant
11994 FORMAT_IISSGC.
11995
11996 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
11997
11998 * Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
11999
12000 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
12001
12002 * Add -keyform to rsautl, and document -engine.
12003
12004 *Richard Levitte, inspired by Toomas Kiisk <vix@cyber.ee>*
12005
12006 * Change BIO_new_file (crypto/bio/bss_file.c) to use new
12007 BIO_R_NO_SUCH_FILE error code rather than the generic
12008 ERR_R_SYS_LIB error code if fopen() fails with ENOENT.
12009
12010 *Ben Laurie*
12011
12012 * Add new functions
12013 ERR_peek_last_error
12014 ERR_peek_last_error_line
12015 ERR_peek_last_error_line_data.
12016 These are similar to
12017 ERR_peek_error
12018 ERR_peek_error_line
12019 ERR_peek_error_line_data,
12020 but report on the latest error recorded rather than the first one
12021 still in the error queue.
12022
12023 *Ben Laurie, Bodo Moeller*
12024
12025 * default_algorithms option in ENGINE config module. This allows things
12026 like:
12027 default_algorithms = ALL
12028 default_algorithms = RSA, DSA, RAND, CIPHERS, DIGESTS
12029
12030 *Steve Henson*
12031
12032 * Preliminary ENGINE config module.
12033
12034 *Steve Henson*
12035
12036 * New experimental application configuration code.
12037
12038 *Steve Henson*
12039
12040 * Change the AES code to follow the same name structure as all other
12041 symmetric ciphers, and behave the same way. Move everything to
12042 the directory crypto/aes, thereby obsoleting crypto/rijndael.
12043
12044 *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte*
12045
12046 * SECURITY: remove unsafe setjmp/signal interaction from ui_openssl.c.
12047
12048 *Ben Laurie and Theo de Raadt*
12049
12050 * Add option to output public keys in req command.
12051
12052 *Massimiliano Pala madwolf@openca.org*
12053
12054 * Use wNAFs in EC_POINTs_mul() for improved efficiency
12055 (up to about 10% better than before for P-192 and P-224).
12056
12057 *Bodo Moeller*
12058
12059 * New functions/macros
12060
12061 SSL_CTX_set_msg_callback(ctx, cb)
12062 SSL_CTX_set_msg_callback_arg(ctx, arg)
12063 SSL_set_msg_callback(ssl, cb)
12064 SSL_set_msg_callback_arg(ssl, arg)
12065
12066 to request calling a callback function
12067
12068 void cb(int write_p, int version, int content_type,
12069 const void *buf, size_t len, SSL *ssl, void *arg)
12070
12071 whenever a protocol message has been completely received
12072 (write_p == 0) or sent (write_p == 1). Here 'version' is the
12073 protocol version according to which the SSL library interprets
12074 the current protocol message (SSL2_VERSION, SSL3_VERSION, or
12075 TLS1_VERSION). 'content_type' is 0 in the case of SSL 2.0, or
12076 the content type as defined in the SSL 3.0/TLS 1.0 protocol
12077 specification (change_cipher_spec(20), alert(21), handshake(22)).
12078 'buf' and 'len' point to the actual message, 'ssl' to the
12079 SSL object, and 'arg' is the application-defined value set by
12080 SSL[_CTX]_set_msg_callback_arg().
12081
12082 'openssl s_client' and 'openssl s_server' have new '-msg' options
12083 to enable a callback that displays all protocol messages.
12084
12085 *Bodo Moeller*
12086
12087 * Change the shared library support so shared libraries are built as
12088 soon as the corresponding static library is finished, and thereby get
12089 openssl and the test programs linked against the shared library.
12090 This still only happens when the keyword "shard" has been given to
12091 the configuration scripts.
12092
12093 NOTE: shared library support is still an experimental thing, and
12094 backward binary compatibility is still not guaranteed.
12095
12096 *"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> and Richard Levitte*
12097
12098 * Add support for Subject Information Access extension.
12099
12100 *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>*
12101
12102 * Make BUF_MEM_grow() behaviour more consistent: Initialise to zero
12103 additional bytes when new memory had to be allocated, not just
12104 when reusing an existing buffer.
12105
12106 *Bodo Moeller*
12107
12108 * New command line and configuration option 'utf8' for the req command.
12109 This allows field values to be specified as UTF8 strings.
12110
12111 *Steve Henson*
12112
12113 * Add -multi and -mr options to "openssl speed" - giving multiple parallel
12114 runs for the former and machine-readable output for the latter.
12115
12116 *Ben Laurie*
12117
12118 * Add '-noemailDN' option to 'openssl ca'. This prevents inclusion
12119 of the e-mail address in the DN (i.e., it will go into a certificate
12120 extension only). The new configuration file option 'email_in_dn = no'
12121 has the same effect.
12122
12123 *Massimiliano Pala madwolf@openca.org*
12124
257e9d03
RS
12125 * Change all functions with names starting with `des_` to be starting
12126 with `DES_` instead. Add wrappers that are compatible with libdes,
12127 but are named `_ossl_old_des_*`. Finally, add macros that map the
12128 `des_*` symbols to the corresponding `_ossl_old_des_*` if libdes
5f8e6c50 12129 compatibility is desired. If OpenSSL 0.9.6c compatibility is
257e9d03 12130 desired, the `des_*` symbols will be mapped to `DES_*`, with one
5f8e6c50
DMSP
12131 exception.
12132
12133 Since we provide two compatibility mappings, the user needs to
12134 define the macro OPENSSL_DES_LIBDES_COMPATIBILITY if libdes
12135 compatibility is desired. The default (i.e., when that macro
12136 isn't defined) is OpenSSL 0.9.6c compatibility.
12137
12138 There are also macros that enable and disable the support of old
12139 des functions altogether. Those are OPENSSL_ENABLE_OLD_DES_SUPPORT
12140 and OPENSSL_DISABLE_OLD_DES_SUPPORT. If none or both of those
12141 are defined, the default will apply: to support the old des routines.
12142
12143 In either case, one must include openssl/des.h to get the correct
12144 definitions. Do not try to just include openssl/des_old.h, that
12145 won't work.
12146
12147 NOTE: This is a major break of an old API into a new one. Software
257e9d03 12148 authors are encouraged to switch to the `DES_` style functions. Some
5f8e6c50
DMSP
12149 time in the future, des_old.h and the libdes compatibility functions
12150 will be disable (i.e. OPENSSL_DISABLE_OLD_DES_SUPPORT will be the
12151 default), and then completely removed.
12152
12153 *Richard Levitte*
12154
12155 * Test for certificates which contain unsupported critical extensions.
12156 If such a certificate is found during a verify operation it is
12157 rejected by default: this behaviour can be overridden by either
12158 handling the new error X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION or
12159 by setting the verify flag X509_V_FLAG_IGNORE_CRITICAL. A new function
12160 X509_supported_extension() has also been added which returns 1 if a
12161 particular extension is supported.
12162
12163 *Steve Henson*
12164
12165 * Modify the behaviour of EVP cipher functions in similar way to digests
12166 to retain compatibility with existing code.
12167
12168 *Steve Henson*
12169
12170 * Modify the behaviour of EVP_DigestInit() and EVP_DigestFinal() to retain
12171 compatibility with existing code. In particular the 'ctx' parameter does
12172 not have to be to be initialized before the call to EVP_DigestInit() and
12173 it is tidied up after a call to EVP_DigestFinal(). New function
12174 EVP_DigestFinal_ex() which does not tidy up the ctx. Similarly function
12175 EVP_MD_CTX_copy() changed to not require the destination to be
12176 initialized valid and new function EVP_MD_CTX_copy_ex() added which
12177 requires the destination to be valid.
12178
12179 Modify all the OpenSSL digest calls to use EVP_DigestInit_ex(),
12180 EVP_DigestFinal_ex() and EVP_MD_CTX_copy_ex().
12181
12182 *Steve Henson*
12183
12184 * Change ssl3_get_message (ssl/s3_both.c) and the functions using it
12185 so that complete 'Handshake' protocol structures are kept in memory
12186 instead of overwriting 'msg_type' and 'length' with 'body' data.
12187
12188 *Bodo Moeller*
12189
12190 * Add an implementation of SSL_add_dir_cert_subjects_to_stack for Win32.
12191
12192 *Massimo Santin via Richard Levitte*
12193
12194 * Major restructuring to the underlying ENGINE code. This includes
12195 reduction of linker bloat, separation of pure "ENGINE" manipulation
12196 (initialisation, etc) from functionality dealing with implementations
12197 of specific crypto interfaces. This change also introduces integrated
12198 support for symmetric ciphers and digest implementations - so ENGINEs
12199 can now accelerate these by providing EVP_CIPHER and EVP_MD
036cbb6b
DDO
12200 implementations of their own. This is detailed in
12201 [crypto/engine/README.md](crypto/engine/README.md)
5f8e6c50
DMSP
12202 as it couldn't be adequately described here. However, there are a few
12203 API changes worth noting - some RSA, DSA, DH, and RAND functions that
12204 were changed in the original introduction of ENGINE code have now
12205 reverted back - the hooking from this code to ENGINE is now a good
12206 deal more passive and at run-time, operations deal directly with
12207 RSA_METHODs, DSA_METHODs (etc) as they did before, rather than
12208 dereferencing through an ENGINE pointer any more. Also, the ENGINE
257e9d03 12209 functions dealing with `BN_MOD_EXP[_CRT]` handlers have been removed -
5f8e6c50
DMSP
12210 they were not being used by the framework as there is no concept of a
12211 BIGNUM_METHOD and they could not be generalised to the new
12212 'ENGINE_TABLE' mechanism that underlies the new code. Similarly,
12213 ENGINE_cpy() has been removed as it cannot be consistently defined in
12214 the new code.
12215
12216 *Geoff Thorpe*
12217
12218 * Change ASN1_GENERALIZEDTIME_check() to allow fractional seconds.
12219
12220 *Steve Henson*
12221
12222 * Change mkdef.pl to sort symbols that get the same entry number,
257e9d03 12223 and make sure the automatically generated functions `ERR_load_*`
5f8e6c50
DMSP
12224 become part of libeay.num as well.
12225
12226 *Richard Levitte*
12227
12228 * New function SSL_renegotiate_pending(). This returns true once
12229 renegotiation has been requested (either SSL_renegotiate() call
12230 or HelloRequest/ClientHello received from the peer) and becomes
12231 false once a handshake has been completed.
12232 (For servers, SSL_renegotiate() followed by SSL_do_handshake()
12233 sends a HelloRequest, but does not ensure that a handshake takes
12234 place. SSL_renegotiate_pending() is useful for checking if the
12235 client has followed the request.)
12236
12237 *Bodo Moeller*
12238
12239 * New SSL option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION.
12240 By default, clients may request session resumption even during
12241 renegotiation (if session ID contexts permit); with this option,
12242 session resumption is possible only in the first handshake.
12243
12244 SSL_OP_ALL is now 0x00000FFFL instead of 0x000FFFFFL. This makes
12245 more bits available for options that should not be part of
12246 SSL_OP_ALL (such as SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION).
12247
12248 *Bodo Moeller*
12249
12250 * Add some demos for certificate and certificate request creation.
12251
12252 *Steve Henson*
12253
12254 * Make maximum certificate chain size accepted from the peer application
257e9d03 12255 settable (`SSL*_get/set_max_cert_list()`), as proposed by
5f8e6c50
DMSP
12256 "Douglas E. Engert" <deengert@anl.gov>.
12257
12258 *Lutz Jaenicke*
12259
12260 * Add support for shared libraries for Unixware-7
12261 (Boyd Lynn Gerber <gerberb@zenez.com>).
12262
12263 *Lutz Jaenicke*
12264
12265 * Add a "destroy" handler to ENGINEs that allows structural cleanup to
12266 be done prior to destruction. Use this to unload error strings from
12267 ENGINEs that load their own error strings. NB: This adds two new API
12268 functions to "get" and "set" this destroy handler in an ENGINE.
12269
12270 *Geoff Thorpe*
12271
12272 * Alter all existing ENGINE implementations (except "openssl" and
12273 "openbsd") to dynamically instantiate their own error strings. This
12274 makes them more flexible to be built both as statically-linked ENGINEs
12275 and self-contained shared-libraries loadable via the "dynamic" ENGINE.
12276 Also, add stub code to each that makes building them as self-contained
036cbb6b 12277 shared-libraries easier (see [README-Engine.md](README-Engine.md)).
5f8e6c50
DMSP
12278
12279 *Geoff Thorpe*
12280
12281 * Add a "dynamic" ENGINE that provides a mechanism for binding ENGINE
12282 implementations into applications that are completely implemented in
12283 self-contained shared-libraries. The "dynamic" ENGINE exposes control
12284 commands that can be used to configure what shared-library to load and
12285 to control aspects of the way it is handled. Also, made an update to
036cbb6b
DDO
12286 the [README-Engine.md](README-Engine.md) file
12287 that brings its information up-to-date and
5f8e6c50
DMSP
12288 provides some information and instructions on the "dynamic" ENGINE
12289 (ie. how to use it, how to build "dynamic"-loadable ENGINEs, etc).
12290
12291 *Geoff Thorpe*
12292
12293 * Make it possible to unload ranges of ERR strings with a new
12294 "ERR_unload_strings" function.
12295
12296 *Geoff Thorpe*
12297
12298 * Add a copy() function to EVP_MD.
12299
12300 *Ben Laurie*
12301
12302 * Make EVP_MD routines take a context pointer instead of just the
12303 md_data void pointer.
12304
12305 *Ben Laurie*
12306
12307 * Add flags to EVP_MD and EVP_MD_CTX. EVP_MD_FLAG_ONESHOT indicates
12308 that the digest can only process a single chunk of data
12309 (typically because it is provided by a piece of
12310 hardware). EVP_MD_CTX_FLAG_ONESHOT indicates that the application
12311 is only going to provide a single chunk of data, and hence the
12312 framework needn't accumulate the data for oneshot drivers.
12313
12314 *Ben Laurie*
12315
12316 * As with "ERR", make it possible to replace the underlying "ex_data"
12317 functions. This change also alters the storage and management of global
12318 ex_data state - it's now all inside ex_data.c and all "class" code (eg.
12319 RSA, BIO, SSL_CTX, etc) no longer stores its own STACKS and per-class
12320 index counters. The API functions that use this state have been changed
12321 to take a "class_index" rather than pointers to the class's local STACK
12322 and counter, and there is now an API function to dynamically create new
12323 classes. This centralisation allows us to (a) plug a lot of the
12324 thread-safety problems that existed, and (b) makes it possible to clean
12325 up all allocated state using "CRYPTO_cleanup_all_ex_data()". W.r.t. (b)
12326 such data would previously have always leaked in application code and
12327 workarounds were in place to make the memory debugging turn a blind eye
12328 to it. Application code that doesn't use this new function will still
12329 leak as before, but their memory debugging output will announce it now
12330 rather than letting it slide.
12331
12332 Besides the addition of CRYPTO_cleanup_all_ex_data(), another API change
12333 induced by the "ex_data" overhaul is that X509_STORE_CTX_init() now
12334 has a return value to indicate success or failure.
12335
12336 *Geoff Thorpe*
12337
12338 * Make it possible to replace the underlying "ERR" functions such that the
12339 global state (2 LHASH tables and 2 locks) is only used by the "default"
12340 implementation. This change also adds two functions to "get" and "set"
12341 the implementation prior to it being automatically set the first time
12342 any other ERR function takes place. Ie. an application can call "get",
12343 pass the return value to a module it has just loaded, and that module
12344 can call its own "set" function using that value. This means the
12345 module's "ERR" operations will use (and modify) the error state in the
12346 application and not in its own statically linked copy of OpenSSL code.
12347
12348 *Geoff Thorpe*
12349
257e9d03 12350 * Give DH, DSA, and RSA types their own `*_up_ref()` function to increment
5f8e6c50
DMSP
12351 reference counts. This performs normal REF_PRINT/REF_CHECK macros on
12352 the operation, and provides a more encapsulated way for external code
12353 (crypto/evp/ and ssl/) to do this. Also changed the evp and ssl code
12354 to use these functions rather than manually incrementing the counts.
12355
12356 Also rename "DSO_up()" function to more descriptive "DSO_up_ref()".
12357
12358 *Geoff Thorpe*
12359
12360 * Add EVP test program.
12361
12362 *Ben Laurie*
12363
12364 * Add symmetric cipher support to ENGINE. Expect the API to change!
12365
12366 *Ben Laurie*
12367
12368 * New CRL functions: X509_CRL_set_version(), X509_CRL_set_issuer_name()
12369 X509_CRL_set_lastUpdate(), X509_CRL_set_nextUpdate(), X509_CRL_sort(),
12370 X509_REVOKED_set_serialNumber(), and X509_REVOKED_set_revocationDate().
12371 These allow a CRL to be built without having to access X509_CRL fields
12372 directly. Modify 'ca' application to use new functions.
12373
12374 *Steve Henson*
12375
12376 * Move SSL_OP_TLS_ROLLBACK_BUG out of the SSL_OP_ALL list of recommended
12377 bug workarounds. Rollback attack detection is a security feature.
12378 The problem will only arise on OpenSSL servers when TLSv1 is not
12379 available (sslv3_server_method() or SSL_OP_NO_TLSv1).
12380 Software authors not wanting to support TLSv1 will have special reasons
12381 for their choice and can explicitly enable this option.
12382
12383 *Bodo Moeller, Lutz Jaenicke*
12384
12385 * Rationalise EVP so it can be extended: don't include a union of
12386 cipher/digest structures, add init/cleanup functions for EVP_MD_CTX
12387 (similar to those existing for EVP_CIPHER_CTX).
12388 Usage example:
12389
12390 EVP_MD_CTX md;
12391
12392 EVP_MD_CTX_init(&md); /* new function call */
12393 EVP_DigestInit(&md, EVP_sha1());
12394 EVP_DigestUpdate(&md, in, len);
12395 EVP_DigestFinal(&md, out, NULL);
12396 EVP_MD_CTX_cleanup(&md); /* new function call */
12397
5f8e6c50
DMSP
12398 *Ben Laurie*
12399
12400 * Make DES key schedule conform to the usual scheme, as well as
12401 correcting its structure. This means that calls to DES functions
12402 now have to pass a pointer to a des_key_schedule instead of a
12403 plain des_key_schedule (which was actually always a pointer
12404 anyway): E.g.,
12405
12406 des_key_schedule ks;
12407
12408 des_set_key_checked(..., &ks);
12409 des_ncbc_encrypt(..., &ks, ...);
12410
12411 (Note that a later change renames 'des_...' into 'DES_...'.)
12412
12413 *Ben Laurie*
12414
12415 * Initial reduction of linker bloat: the use of some functions, such as
12416 PEM causes large amounts of unused functions to be linked in due to
12417 poor organisation. For example pem_all.c contains every PEM function
12418 which has a knock on effect of linking in large amounts of (unused)
12419 ASN1 code. Grouping together similar functions and splitting unrelated
12420 functions prevents this.
12421
12422 *Steve Henson*
12423
12424 * Cleanup of EVP macros.
12425
12426 *Ben Laurie*
12427
257e9d03
RS
12428 * Change historical references to `{NID,SN,LN}_des_ede` and ede3 to add the
12429 correct `_ecb suffix`.
5f8e6c50
DMSP
12430
12431 *Ben Laurie*
12432
12433 * Add initial OCSP responder support to ocsp application. The
12434 revocation information is handled using the text based index
12435 use by the ca application. The responder can either handle
12436 requests generated internally, supplied in files (for example
12437 via a CGI script) or using an internal minimal server.
12438
12439 *Steve Henson*
12440
12441 * Add configuration choices to get zlib compression for TLS.
12442
12443 *Richard Levitte*
12444
12445 * Changes to Kerberos SSL for RFC 2712 compliance:
257e9d03
RS
12446 1. Implemented real KerberosWrapper, instead of just using
12447 KRB5 AP_REQ message. [Thanks to Simon Wilkinson <sxw@sxw.org.uk>]
12448 2. Implemented optional authenticator field of KerberosWrapper.
5f8e6c50
DMSP
12449
12450 Added openssl-style ASN.1 macros for Kerberos ticket, ap_req,
12451 and authenticator structs; see crypto/krb5/.
12452
12453 Generalized Kerberos calls to support multiple Kerberos libraries.
257e9d03
RS
12454 *Vern Staats <staatsvr@asc.hpc.mil>, Jeffrey Altman <jaltman@columbia.edu>
12455 via Richard Levitte*
5f8e6c50
DMSP
12456
12457 * Cause 'openssl speed' to use fully hard-coded DSA keys as it
12458 already does with RSA. testdsa.h now has 'priv_key/pub_key'
12459 values for each of the key sizes rather than having just
12460 parameters (and 'speed' generating keys each time).
12461
12462 *Geoff Thorpe*
12463
12464 * Speed up EVP routines.
12465 Before:
12466crypt
12467pe 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
12468s-cbc 4408.85k 5560.51k 5778.46k 5862.20k 5825.16k
12469s-cbc 4389.55k 5571.17k 5792.23k 5846.91k 5832.11k
12470s-cbc 4394.32k 5575.92k 5807.44k 5848.37k 5841.30k
12471crypt
12472s-cbc 3482.66k 5069.49k 5496.39k 5614.16k 5639.28k
12473s-cbc 3480.74k 5068.76k 5510.34k 5609.87k 5635.52k
12474s-cbc 3483.72k 5067.62k 5504.60k 5708.01k 5724.80k
12475 After:
12476crypt
12477s-cbc 4660.16k 5650.19k 5807.19k 5827.13k 5783.32k
12478crypt
12479s-cbc 3624.96k 5258.21k 5530.91k 5624.30k 5628.26k
12480
12481 *Ben Laurie*
12482
12483 * Added the OS2-EMX target.
12484
12485 *"Brian Havard" <brianh@kheldar.apana.org.au> and Richard Levitte*
12486
ec2bfb7d 12487 * Rewrite commands to use `NCONF` routines instead of the old `CONF`.
3e3ad3c5 12488 New functions to support `NCONF` routines in extension code.
ec2bfb7d
DDO
12489 New function `CONF_set_nconf()`
12490 to allow functions which take an `NCONF` to also handle the old `LHASH`
12491 structure: this means that the old `CONF` compatible routines can be
12492 retained (in particular w.rt. extensions) without having to duplicate the
12493 code. New function `X509V3_add_ext_nconf_sk()` to add extensions to a stack.
5f8e6c50
DMSP
12494
12495 *Steve Henson*
12496
12497 * Enhance the general user interface with mechanisms for inner control
12498 and with possibilities to have yes/no kind of prompts.
12499
12500 *Richard Levitte*
12501
4d49b685 12502 * Change all calls to low-level digest routines in the library and
5f8e6c50
DMSP
12503 applications to use EVP. Add missing calls to HMAC_cleanup() and
12504 don't assume HMAC_CTX can be copied using memcpy().
12505
12506 *Verdon Walker <VWalker@novell.com>, Steve Henson*
12507
12508 * Add the possibility to control engines through control names but with
12509 arbitrary arguments instead of just a string.
12510 Change the key loaders to take a UI_METHOD instead of a callback
12511 function pointer. NOTE: this breaks binary compatibility with earlier
12512 versions of OpenSSL [engine].
12513 Adapt the nCipher code for these new conditions and add a card insertion
12514 callback.
12515
12516 *Richard Levitte*
12517
12518 * Enhance the general user interface with mechanisms to better support
12519 dialog box interfaces, application-defined prompts, the possibility
12520 to use defaults (for example default passwords from somewhere else)
12521 and interrupts/cancellations.
12522
12523 *Richard Levitte*
12524
12525 * Tidy up PKCS#12 attribute handling. Add support for the CSP name
12526 attribute in PKCS#12 files, add new -CSP option to pkcs12 utility.
12527
12528 *Steve Henson*
12529
12530 * Fix a memory leak in 'sk_dup()' in the case reallocation fails. (Also
12531 tidy up some unnecessarily weird code in 'sk_new()').
12532
12533 *Geoff, reported by Diego Tartara <dtartara@novamens.com>*
12534
12535 * Change the key loading routines for ENGINEs to use the same kind
12536 callback (pem_password_cb) as all other routines that need this
12537 kind of callback.
12538
12539 *Richard Levitte*
12540
12541 * Increase ENTROPY_NEEDED to 32 bytes, as Rijndael can operate with
12542 256 bit (=32 byte) keys. Of course seeding with more entropy bytes
12543 than this minimum value is recommended.
12544
12545 *Lutz Jaenicke*
12546
12547 * New random seeder for OpenVMS, using the system process statistics
12548 that are easily reachable.
12549
12550 *Richard Levitte*
12551
12552 * Windows apparently can't transparently handle global
12553 variables defined in DLLs. Initialisations such as:
12554
12555 const ASN1_ITEM *it = &ASN1_INTEGER_it;
12556
12557 won't compile. This is used by the any applications that need to
12558 declare their own ASN1 modules. This was fixed by adding the option
12559 EXPORT_VAR_AS_FN to all Win32 platforms, although this isn't strictly
12560 needed for static libraries under Win32.
12561
12562 *Steve Henson*
12563
12564 * New functions X509_PURPOSE_set() and X509_TRUST_set() to handle
12565 setting of purpose and trust fields. New X509_STORE trust and
12566 purpose functions and tidy up setting in other SSL functions.
12567
12568 *Steve Henson*
12569
12570 * Add copies of X509_STORE_CTX fields and callbacks to X509_STORE
12571 structure. These are inherited by X509_STORE_CTX when it is
12572 initialised. This allows various defaults to be set in the
12573 X509_STORE structure (such as flags for CRL checking and custom
12574 purpose or trust settings) for functions which only use X509_STORE_CTX
12575 internally such as S/MIME.
12576
12577 Modify X509_STORE_CTX_purpose_inherit() so it only sets purposes and
12578 trust settings if they are not set in X509_STORE. This allows X509_STORE
12579 purposes and trust (in S/MIME for example) to override any set by default.
12580
12581 Add command line options for CRL checking to smime, s_client and s_server
12582 applications.
12583
12584 *Steve Henson*
12585
12586 * Initial CRL based revocation checking. If the CRL checking flag(s)
12587 are set then the CRL is looked up in the X509_STORE structure and
12588 its validity and signature checked, then if the certificate is found
12589 in the CRL the verify fails with a revoked error.
12590
12591 Various new CRL related callbacks added to X509_STORE_CTX structure.
12592
12593 Command line options added to 'verify' application to support this.
12594
12595 This needs some additional work, such as being able to handle multiple
12596 CRLs with different times, extension based lookup (rather than just
12597 by subject name) and ultimately more complete V2 CRL extension
12598 handling.
12599
12600 *Steve Henson*
12601
12602 * Add a general user interface API (crypto/ui/). This is designed
12603 to replace things like des_read_password and friends (backward
12604 compatibility functions using this new API are provided).
12605 The purpose is to remove prompting functions from the DES code
12606 section as well as provide for prompting through dialog boxes in
12607 a window system and the like.
12608
12609 *Richard Levitte*
12610
12611 * Add "ex_data" support to ENGINE so implementations can add state at a
12612 per-structure level rather than having to store it globally.
12613
12614 *Geoff*
12615
12616 * Make it possible for ENGINE structures to be copied when retrieved by
12617 ENGINE_by_id() if the ENGINE specifies a new flag: ENGINE_FLAGS_BY_ID_COPY.
12618 This causes the "original" ENGINE structure to act like a template,
12619 analogous to the RSA vs. RSA_METHOD type of separation. Because of this
12620 operational state can be localised to each ENGINE structure, despite the
12621 fact they all share the same "methods". New ENGINE structures returned in
12622 this case have no functional references and the return value is the single
12623 structural reference. This matches the single structural reference returned
12624 by ENGINE_by_id() normally, when it is incremented on the pre-existing
12625 ENGINE structure.
12626
12627 *Geoff*
12628
12629 * Fix ASN1 decoder when decoding type ANY and V_ASN1_OTHER: since this
12630 needs to match any other type at all we need to manually clear the
12631 tag cache.
12632
12633 *Steve Henson*
12634
12635 * Changes to the "openssl engine" utility to include;
12636 - verbosity levels ('-v', '-vv', and '-vvv') that provide information
12637 about an ENGINE's available control commands.
12638 - executing control commands from command line arguments using the
12639 '-pre' and '-post' switches. '-post' is only used if '-t' is
12640 specified and the ENGINE is successfully initialised. The syntax for
12641 the individual commands are colon-separated, for example;
12642 openssl engine chil -pre FORK_CHECK:0 -pre SO_PATH:/lib/test.so
12643
12644 *Geoff*
12645
12646 * New dynamic control command support for ENGINEs. ENGINEs can now
12647 declare their own commands (numbers), names (strings), descriptions,
12648 and input types for run-time discovery by calling applications. A
12649 subset of these commands are implicitly classed as "executable"
12650 depending on their input type, and only these can be invoked through
12651 the new string-based API function ENGINE_ctrl_cmd_string(). (Eg. this
12652 can be based on user input, config files, etc). The distinction is
12653 that "executable" commands cannot return anything other than a boolean
12654 result and can only support numeric or string input, whereas some
12655 discoverable commands may only be for direct use through
12656 ENGINE_ctrl(), eg. supporting the exchange of binary data, function
12657 pointers, or other custom uses. The "executable" commands are to
12658 support parameterisations of ENGINE behaviour that can be
12659 unambiguously defined by ENGINEs and used consistently across any
12660 OpenSSL-based application. Commands have been added to all the
12661 existing hardware-supporting ENGINEs, noticeably "SO_PATH" to allow
12662 control over shared-library paths without source code alterations.
12663
12664 *Geoff*
12665
12666 * Changed all ENGINE implementations to dynamically allocate their
12667 ENGINEs rather than declaring them statically. Apart from this being
12668 necessary with the removal of the ENGINE_FLAGS_MALLOCED distinction,
12669 this also allows the implementations to compile without using the
12670 internal engine_int.h header.
12671
12672 *Geoff*
12673
12674 * Minor adjustment to "rand" code. RAND_get_rand_method() now returns a
12675 'const' value. Any code that should be able to modify a RAND_METHOD
12676 should already have non-const pointers to it (ie. they should only
12677 modify their own ones).
12678
12679 *Geoff*
12680
12681 * Made a variety of little tweaks to the ENGINE code.
12682 - "atalla" and "ubsec" string definitions were moved from header files
12683 to C code. "nuron" string definitions were placed in variables
12684 rather than hard-coded - allowing parameterisation of these values
12685 later on via ctrl() commands.
12686 - Removed unused "#if 0"'d code.
12687 - Fixed engine list iteration code so it uses ENGINE_free() to release
12688 structural references.
12689 - Constified the RAND_METHOD element of ENGINE structures.
12690 - Constified various get/set functions as appropriate and added
12691 missing functions (including a catch-all ENGINE_cpy that duplicates
12692 all ENGINE values onto a new ENGINE except reference counts/state).
12693 - Removed NULL parameter checks in get/set functions. Setting a method
12694 or function to NULL is a way of cancelling out a previously set
12695 value. Passing a NULL ENGINE parameter is just plain stupid anyway
12696 and doesn't justify the extra error symbols and code.
12697 - Deprecate the ENGINE_FLAGS_MALLOCED define and move the area for
12698 flags from engine_int.h to engine.h.
12699 - Changed prototypes for ENGINE handler functions (init(), finish(),
12700 ctrl(), key-load functions, etc) to take an (ENGINE*) parameter.
12701
12702 *Geoff*
12703
12704 * Implement binary inversion algorithm for BN_mod_inverse in addition
12705 to the algorithm using long division. The binary algorithm can be
12706 used only if the modulus is odd. On 32-bit systems, it is faster
12707 only for relatively small moduli (roughly 20-30% for 128-bit moduli,
12708 roughly 5-15% for 256-bit moduli), so we use it only for moduli
12709 up to 450 bits. In 64-bit environments, the binary algorithm
12710 appears to be advantageous for much longer moduli; here we use it
12711 for moduli up to 2048 bits.
12712
12713 *Bodo Moeller*
12714
12715 * Rewrite CHOICE field setting in ASN1_item_ex_d2i(). The old code
12716 could not support the combine flag in choice fields.
12717
12718 *Steve Henson*
12719
12720 * Add a 'copy_extensions' option to the 'ca' utility. This copies
12721 extensions from a certificate request to the certificate.
12722
12723 *Steve Henson*
12724
12725 * Allow multiple 'certopt' and 'nameopt' options to be separated
12726 by commas. Add 'namopt' and 'certopt' options to the 'ca' config
12727 file: this allows the display of the certificate about to be
12728 signed to be customised, to allow certain fields to be included
12729 or excluded and extension details. The old system didn't display
12730 multicharacter strings properly, omitted fields not in the policy
12731 and couldn't display additional details such as extensions.
12732
12733 *Steve Henson*
12734
12735 * Function EC_POINTs_mul for multiple scalar multiplication
12736 of an arbitrary number of elliptic curve points
12737 \sum scalars[i]*points[i],
12738 optionally including the generator defined for the EC_GROUP:
12739 scalar*generator + \sum scalars[i]*points[i].
12740
12741 EC_POINT_mul is a simple wrapper function for the typical case
12742 that the point list has just one item (besides the optional
12743 generator).
12744
12745 *Bodo Moeller*
12746
12747 * First EC_METHODs for curves over GF(p):
12748
12749 EC_GFp_simple_method() uses the basic BN_mod_mul and BN_mod_sqr
12750 operations and provides various method functions that can also
12751 operate with faster implementations of modular arithmetic.
12752
12753 EC_GFp_mont_method() reuses most functions that are part of
12754 EC_GFp_simple_method, but uses Montgomery arithmetic.
12755
12756 *Bodo Moeller; point addition and point doubling
12757 implementation directly derived from source code provided by
12758 Lenka Fibikova <fibikova@exp-math.uni-essen.de>*
12759
12760 * Framework for elliptic curves (crypto/ec/ec.h, crypto/ec/ec_lcl.h,
12761 crypto/ec/ec_lib.c):
12762
12763 Curves are EC_GROUP objects (with an optional group generator)
12764 based on EC_METHODs that are built into the library.
12765
12766 Points are EC_POINT objects based on EC_GROUP objects.
12767
12768 Most of the framework would be able to handle curves over arbitrary
12769 finite fields, but as there are no obvious types for fields other
12770 than GF(p), some functions are limited to that for now.
12771
12772 *Bodo Moeller*
12773
12774 * Add the -HTTP option to s_server. It is similar to -WWW, but requires
12775 that the file contains a complete HTTP response.
12776
12777 *Richard Levitte*
12778
12779 * Add the ec directory to mkdef.pl and mkfiles.pl. In mkdef.pl
12780 change the def and num file printf format specifier from "%-40sXXX"
12781 to "%-39s XXX". The latter will always guarantee a space after the
12782 field while the former will cause them to run together if the field
12783 is 40 of more characters long.
12784
12785 *Steve Henson*
12786
12787 * Constify the cipher and digest 'method' functions and structures
12788 and modify related functions to take constant EVP_MD and EVP_CIPHER
12789 pointers.
12790
12791 *Steve Henson*
12792
12793 * Hide BN_CTX structure details in bn_lcl.h instead of publishing them
12794 in <openssl/bn.h>. Also further increase BN_CTX_NUM to 32.
12795
12796 *Bodo Moeller*
12797
257e9d03 12798 * Modify `EVP_Digest*()` routines so they now return values. Although the
5f8e6c50
DMSP
12799 internal software routines can never fail additional hardware versions
12800 might.
12801
12802 *Steve Henson*
12803
12804 * Clean up crypto/err/err.h and change some error codes to avoid conflicts:
12805
12806 Previously ERR_R_FATAL was too small and coincided with ERR_LIB_PKCS7
12807 (= ERR_R_PKCS7_LIB); it is now 64 instead of 32.
12808
12809 ASN1 error codes
12810 ERR_R_NESTED_ASN1_ERROR
12811 ...
12812 ERR_R_MISSING_ASN1_EOS
12813 were 4 .. 9, conflicting with
12814 ERR_LIB_RSA (= ERR_R_RSA_LIB)
12815 ...
12816 ERR_LIB_PEM (= ERR_R_PEM_LIB).
12817 They are now 58 .. 63 (i.e., just below ERR_R_FATAL).
12818
12819 Add new error code 'ERR_R_INTERNAL_ERROR'.
12820
12821 *Bodo Moeller*
12822
12823 * Don't overuse locks in crypto/err/err.c: For data retrieval, CRYPTO_r_lock
12824 suffices.
12825
12826 *Bodo Moeller*
12827
12828 * New option '-subj arg' for 'openssl req' and 'openssl ca'. This
12829 sets the subject name for a new request or supersedes the
12830 subject name in a given request. Formats that can be parsed are
12831 'CN=Some Name, OU=myOU, C=IT'
12832 and
12833 'CN=Some Name/OU=myOU/C=IT'.
12834
12835 Add options '-batch' and '-verbose' to 'openssl req'.
12836
12837 *Massimiliano Pala <madwolf@hackmasters.net>*
12838
12839 * Introduce the possibility to access global variables through
12840 functions on platform were that's the best way to handle exporting
12841 global variables in shared libraries. To enable this functionality,
12842 one must configure with "EXPORT_VAR_AS_FN" or defined the C macro
12843 "OPENSSL_EXPORT_VAR_AS_FUNCTION" in crypto/opensslconf.h (the latter
12844 is normally done by Configure or something similar).
12845
12846 To implement a global variable, use the macro OPENSSL_IMPLEMENT_GLOBAL
12847 in the source file (foo.c) like this:
12848
12849 OPENSSL_IMPLEMENT_GLOBAL(int,foo)=1;
12850 OPENSSL_IMPLEMENT_GLOBAL(double,bar);
12851
12852 To declare a global variable, use the macros OPENSSL_DECLARE_GLOBAL
12853 and OPENSSL_GLOBAL_REF in the header file (foo.h) like this:
12854
12855 OPENSSL_DECLARE_GLOBAL(int,foo);
12856 #define foo OPENSSL_GLOBAL_REF(foo)
12857 OPENSSL_DECLARE_GLOBAL(double,bar);
12858 #define bar OPENSSL_GLOBAL_REF(bar)
12859
12860 The #defines are very important, and therefore so is including the
12861 header file everywhere where the defined globals are used.
12862
12863 The macro OPENSSL_EXPORT_VAR_AS_FUNCTION also affects the definition
12864 of ASN.1 items, but that structure is a bit different.
12865
12866 The largest change is in util/mkdef.pl which has been enhanced with
12867 better and easier to understand logic to choose which symbols should
12868 go into the Windows .def files as well as a number of fixes and code
12869 cleanup (among others, algorithm keywords are now sorted
12870 lexicographically to avoid constant rewrites).
12871
12872 *Richard Levitte*
12873
12874 * In BN_div() keep a copy of the sign of 'num' before writing the
12875 result to 'rm' because if rm==num the value will be overwritten
12876 and produce the wrong result if 'num' is negative: this caused
12877 problems with BN_mod() and BN_nnmod().
12878
12879 *Steve Henson*
12880
12881 * Function OCSP_request_verify(). This checks the signature on an
12882 OCSP request and verifies the signer certificate. The signer
12883 certificate is just checked for a generic purpose and OCSP request
12884 trust settings.
12885
12886 *Steve Henson*
12887
12888 * Add OCSP_check_validity() function to check the validity of OCSP
12889 responses. OCSP responses are prepared in real time and may only
12890 be a few seconds old. Simply checking that the current time lies
12891 between thisUpdate and nextUpdate max reject otherwise valid responses
12892 caused by either OCSP responder or client clock inaccuracy. Instead
12893 we allow thisUpdate and nextUpdate to fall within a certain period of
12894 the current time. The age of the response can also optionally be
12895 checked. Two new options -validity_period and -status_age added to
12896 ocsp utility.
12897
12898 *Steve Henson*
12899
12900 * If signature or public key algorithm is unrecognized print out its
12901 OID rather that just UNKNOWN.
12902
12903 *Steve Henson*
12904
12905 * Change OCSP_cert_to_id() to tolerate a NULL subject certificate and
12906 OCSP_cert_id_new() a NULL serialNumber. This allows a partial certificate
12907 ID to be generated from the issuer certificate alone which can then be
12908 passed to OCSP_id_issuer_cmp().
12909
12910 *Steve Henson*
12911
12912 * New compilation option ASN1_ITEM_FUNCTIONS. This causes the new
12913 ASN1 modules to export functions returning ASN1_ITEM pointers
12914 instead of the ASN1_ITEM structures themselves. This adds several
12915 new macros which allow the underlying ASN1 function/structure to
12916 be accessed transparently. As a result code should not use ASN1_ITEM
12917 references directly (such as &X509_it) but instead use the relevant
12918 macros (such as ASN1_ITEM_rptr(X509)). This option is to allow
12919 use of the new ASN1 code on platforms where exporting structures
12920 is problematical (for example in shared libraries) but exporting
12921 functions returning pointers to structures is not.
12922
12923 *Steve Henson*
12924
12925 * Add support for overriding the generation of SSL/TLS session IDs.
12926 These callbacks can be registered either in an SSL_CTX or per SSL.
12927 The purpose of this is to allow applications to control, if they wish,
12928 the arbitrary values chosen for use as session IDs, particularly as it
12929 can be useful for session caching in multiple-server environments. A
12930 command-line switch for testing this (and any client code that wishes
12931 to use such a feature) has been added to "s_server".
12932
12933 *Geoff Thorpe, Lutz Jaenicke*
12934
12935 * Modify mkdef.pl to recognise and parse preprocessor conditionals
1dc1ea18
DDO
12936 of the form `#if defined(...) || defined(...) || ...` and
12937 `#if !defined(...) && !defined(...) && ...`. This also avoids
5f8e6c50
DMSP
12938 the growing number of special cases it was previously handling.
12939
12940 *Richard Levitte*
12941
12942 * Make all configuration macros available for application by making
12943 sure they are available in opensslconf.h, by giving them names starting
257e9d03 12944 with `OPENSSL_` to avoid conflicts with other packages and by making
5f8e6c50
DMSP
12945 sure e_os2.h will cover all platform-specific cases together with
12946 opensslconf.h.
12947 Additionally, it is now possible to define configuration/platform-
12948 specific names (called "system identities"). In the C code, these
257e9d03
RS
12949 are prefixed with `OPENSSL_SYSNAME_`. e_os2.h will create another
12950 macro with the name beginning with `OPENSSL_SYS_`, which is determined
12951 from `OPENSSL_SYSNAME_*` or compiler-specific macros depending on
5f8e6c50
DMSP
12952 what is available.
12953
12954 *Richard Levitte*
12955
12956 * New option -set_serial to 'req' and 'x509' this allows the serial
12957 number to use to be specified on the command line. Previously self
12958 signed certificates were hard coded with serial number 0 and the
12959 CA options of 'x509' had to use a serial number in a file which was
12960 auto incremented.
12961
12962 *Steve Henson*
12963
12964 * New options to 'ca' utility to support V2 CRL entry extensions.
12965 Currently CRL reason, invalidity date and hold instruction are
12966 supported. Add new CRL extensions to V3 code and some new objects.
12967
12968 *Steve Henson*
12969
12970 * New function EVP_CIPHER_CTX_set_padding() this is used to
12971 disable standard block padding (aka PKCS#5 padding) in the EVP
12972 API, which was previously mandatory. This means that the data is
12973 not padded in any way and so the total length much be a multiple
12974 of the block size, otherwise an error occurs.
12975
12976 *Steve Henson*
12977
12978 * Initial (incomplete) OCSP SSL support.
12979
12980 *Steve Henson*
12981
12982 * New function OCSP_parse_url(). This splits up a URL into its host,
12983 port and path components: primarily to parse OCSP URLs. New -url
12984 option to ocsp utility.
12985
12986 *Steve Henson*
12987
12988 * New nonce behavior. The return value of OCSP_check_nonce() now
12989 reflects the various checks performed. Applications can decide
12990 whether to tolerate certain situations such as an absent nonce
12991 in a response when one was present in a request: the ocsp application
12992 just prints out a warning. New function OCSP_add1_basic_nonce()
12993 this is to allow responders to include a nonce in a response even if
12994 the request is nonce-less.
12995
12996 *Steve Henson*
12997
ec2bfb7d 12998 * Disable stdin buffering in `load_cert()` (`apps/apps.c`) so that no certs are
5f8e6c50 12999 skipped when using openssl x509 multiple times on a single input file,
257e9d03 13000 e.g. `(openssl x509 -out cert1; openssl x509 -out cert2) <certs`.
5f8e6c50
DMSP
13001
13002 *Bodo Moeller*
13003
13004 * Make ASN1_UTCTIME_set_string() and ASN1_GENERALIZEDTIME_set_string()
13005 set string type: to handle setting ASN1_TIME structures. Fix ca
13006 utility to correctly initialize revocation date of CRLs.
13007
13008 *Steve Henson*
13009
13010 * New option SSL_OP_CIPHER_SERVER_PREFERENCE allows the server to override
13011 the clients preferred ciphersuites and rather use its own preferences.
13012 Should help to work around M$ SGC (Server Gated Cryptography) bug in
13013 Internet Explorer by ensuring unchanged hash method during stepup.
13014 (Also replaces the broken/deactivated SSL_OP_NON_EXPORT_FIRST option.)
13015
13016 *Lutz Jaenicke*
13017
13018 * Make mkdef.pl recognise all DECLARE_ASN1 macros, change rijndael
13019 to aes and add a new 'exist' option to print out symbols that don't
13020 appear to exist.
13021
13022 *Steve Henson*
13023
13024 * Additional options to ocsp utility to allow flags to be set and
13025 additional certificates supplied.
13026
13027 *Steve Henson*
13028
13029 * Add the option -VAfile to 'openssl ocsp', so the user can give the
13030 OCSP client a number of certificate to only verify the response
13031 signature against.
13032
13033 *Richard Levitte*
13034
13035 * Update Rijndael code to version 3.0 and change EVP AES ciphers to
13036 handle the new API. Currently only ECB, CBC modes supported. Add new
13037 AES OIDs.
13038
13039 Add TLS AES ciphersuites as described in RFC3268, "Advanced
13040 Encryption Standard (AES) Ciphersuites for Transport Layer
13041 Security (TLS)". (In beta versions of OpenSSL 0.9.7, these were
13042 not enabled by default and were not part of the "ALL" ciphersuite
13043 alias because they were not yet official; they could be
13044 explicitly requested by specifying the "AESdraft" ciphersuite
13045 group alias. In the final release of OpenSSL 0.9.7, the group
13046 alias is called "AES" and is part of "ALL".)
13047
13048 *Ben Laurie, Steve Henson, Bodo Moeller*
13049
13050 * New function OCSP_copy_nonce() to copy nonce value (if present) from
13051 request to response.
13052
13053 *Steve Henson*
13054
13055 * Functions for OCSP responders. OCSP_request_onereq_count(),
13056 OCSP_request_onereq_get0(), OCSP_onereq_get0_id() and OCSP_id_get0_info()
13057 extract information from a certificate request. OCSP_response_create()
13058 creates a response and optionally adds a basic response structure.
13059 OCSP_basic_add1_status() adds a complete single response to a basic
13060 response and returns the OCSP_SINGLERESP structure just added (to allow
13061 extensions to be included for example). OCSP_basic_add1_cert() adds a
13062 certificate to a basic response and OCSP_basic_sign() signs a basic
13063 response with various flags. New helper functions ASN1_TIME_check()
13064 (checks validity of ASN1_TIME structure) and ASN1_TIME_to_generalizedtime()
13065 (converts ASN1_TIME to GeneralizedTime).
13066
13067 *Steve Henson*
13068
13069 * Various new functions. EVP_Digest() combines EVP_Digest{Init,Update,Final}()
13070 in a single operation. X509_get0_pubkey_bitstr() extracts the public_key
13071 structure from a certificate. X509_pubkey_digest() digests the public_key
13072 contents: this is used in various key identifiers.
13073
13074 *Steve Henson*
13075
13076 * Make sk_sort() tolerate a NULL argument.
13077
13078 *Steve Henson reported by Massimiliano Pala <madwolf@comune.modena.it>*
13079
13080 * New OCSP verify flag OCSP_TRUSTOTHER. When set the "other" certificates
13081 passed by the function are trusted implicitly. If any of them signed the
13082 response then it is assumed to be valid and is not verified.
13083
13084 *Steve Henson*
13085
13086 * In PKCS7_set_type() initialise content_type in PKCS7_ENC_CONTENT
13087 to data. This was previously part of the PKCS7 ASN1 code. This
13088 was causing problems with OpenSSL created PKCS#12 and PKCS#7 structures.
13089 *Steve Henson, reported by Kenneth R. Robinette
13090 <support@securenetterm.com>*
13091
13092 * Add CRYPTO_push_info() and CRYPTO_pop_info() calls to new ASN1
13093 routines: without these tracing memory leaks is very painful.
13094 Fix leaks in PKCS12 and PKCS7 routines.
13095
13096 *Steve Henson*
13097
13098 * Make X509_time_adj() cope with the new behaviour of ASN1_TIME_new().
13099 Previously it initialised the 'type' argument to V_ASN1_UTCTIME which
13100 effectively meant GeneralizedTime would never be used. Now it
13101 is initialised to -1 but X509_time_adj() now has to check the value
13102 and use ASN1_TIME_set() if the value is not V_ASN1_UTCTIME or
13103 V_ASN1_GENERALIZEDTIME, without this it always uses GeneralizedTime.
13104 *Steve Henson, reported by Kenneth R. Robinette
13105 <support@securenetterm.com>*
13106
13107 * Fixes to BN_to_ASN1_INTEGER when bn is zero. This would previously
13108 result in a zero length in the ASN1_INTEGER structure which was
13109 not consistent with the structure when d2i_ASN1_INTEGER() was used
13110 and would cause ASN1_INTEGER_cmp() to fail. Enhance s2i_ASN1_INTEGER()
13111 to cope with hex and negative integers. Fix bug in i2a_ASN1_INTEGER()
13112 where it did not print out a minus for negative ASN1_INTEGER.
13113
13114 *Steve Henson*
13115
13116 * Add summary printout to ocsp utility. The various functions which
13117 convert status values to strings have been renamed to:
13118 OCSP_response_status_str(), OCSP_cert_status_str() and
13119 OCSP_crl_reason_str() and are no longer static. New options
13120 to verify nonce values and to disable verification. OCSP response
13121 printout format cleaned up.
13122
13123 *Steve Henson*
13124
13125 * Add additional OCSP certificate checks. These are those specified
13126 in RFC2560. This consists of two separate checks: the CA of the
13127 certificate being checked must either be the OCSP signer certificate
13128 or the issuer of the OCSP signer certificate. In the latter case the
13129 OCSP signer certificate must contain the OCSP signing extended key
13130 usage. This check is performed by attempting to match the OCSP
13131 signer or the OCSP signer CA to the issuerNameHash and issuerKeyHash
13132 in the OCSP_CERTID structures of the response.
13133
13134 *Steve Henson*
13135
13136 * Initial OCSP certificate verification added to OCSP_basic_verify()
13137 and related routines. This uses the standard OpenSSL certificate
13138 verify routines to perform initial checks (just CA validity) and
13139 to obtain the certificate chain. Then additional checks will be
13140 performed on the chain. Currently the root CA is checked to see
13141 if it is explicitly trusted for OCSP signing. This is used to set
13142 a root CA as a global signing root: that is any certificate that
13143 chains to that CA is an acceptable OCSP signing certificate.
13144
13145 *Steve Henson*
13146
13147 * New '-extfile ...' option to 'openssl ca' for reading X.509v3
13148 extensions from a separate configuration file.
13149 As when reading extensions from the main configuration file,
13150 the '-extensions ...' option may be used for specifying the
13151 section to use.
13152
13153 *Massimiliano Pala <madwolf@comune.modena.it>*
13154
13155 * New OCSP utility. Allows OCSP requests to be generated or
13156 read. The request can be sent to a responder and the output
44652c16 13157 parsed, outputted or printed in text form. Not complete yet:
5f8e6c50
DMSP
13158 still needs to check the OCSP response validity.
13159
13160 *Steve Henson*
13161
13162 * New subcommands for 'openssl ca':
257e9d03 13163 `openssl ca -status <serial>` prints the status of the cert with
5f8e6c50 13164 the given serial number (according to the index file).
257e9d03 13165 `openssl ca -updatedb` updates the expiry status of certificates
5f8e6c50
DMSP
13166 in the index file.
13167
13168 *Massimiliano Pala <madwolf@comune.modena.it>*
13169
13170 * New '-newreq-nodes' command option to CA.pl. This is like
13171 '-newreq', but calls 'openssl req' with the '-nodes' option
13172 so that the resulting key is not encrypted.
13173
13174 *Damien Miller <djm@mindrot.org>*
13175
13176 * New configuration for the GNU Hurd.
13177
13178 *Jonathan Bartlett <johnnyb@wolfram.com> via Richard Levitte*
13179
13180 * Initial code to implement OCSP basic response verify. This
13181 is currently incomplete. Currently just finds the signer's
13182 certificate and verifies the signature on the response.
13183
13184 *Steve Henson*
13185
13186 * New SSLeay_version code SSLEAY_DIR to determine the compiled-in
13187 value of OPENSSLDIR. This is available via the new '-d' option
13188 to 'openssl version', and is also included in 'openssl version -a'.
13189
13190 *Bodo Moeller*
13191
13192 * Allowing defining memory allocation callbacks that will be given
13193 file name and line number information in additional arguments
257e9d03 13194 (a `const char*` and an int). The basic functionality remains, as
5f8e6c50
DMSP
13195 well as the original possibility to just replace malloc(),
13196 realloc() and free() by functions that do not know about these
13197 additional arguments. To register and find out the current
13198 settings for extended allocation functions, the following
13199 functions are provided:
13200
13201 CRYPTO_set_mem_ex_functions
13202 CRYPTO_set_locked_mem_ex_functions
13203 CRYPTO_get_mem_ex_functions
13204 CRYPTO_get_locked_mem_ex_functions
13205
13206 These work the same way as CRYPTO_set_mem_functions and friends.
257e9d03 13207 `CRYPTO_get_[locked_]mem_functions` now writes 0 where such an
5f8e6c50 13208 extended allocation function is enabled.
257e9d03 13209 Similarly, `CRYPTO_get_[locked_]mem_ex_functions` writes 0 where
5f8e6c50
DMSP
13210 a conventional allocation function is enabled.
13211
13212 *Richard Levitte, Bodo Moeller*
13213
13214 * Finish off removing the remaining LHASH function pointer casts.
13215 There should no longer be any prototype-casting required when using
13216 the LHASH abstraction, and any casts that remain are "bugs". See
13217 the callback types and macros at the head of lhash.h for details
13218 (and "OBJ_cleanup" in crypto/objects/obj_dat.c as an example).
13219
13220 *Geoff Thorpe*
13221
13222 * Add automatic query of EGD sockets in RAND_poll() for the unix variant.
13223 If /dev/[u]random devices are not available or do not return enough
13224 entropy, EGD style sockets (served by EGD or PRNGD) will automatically
13225 be queried.
13226 The locations /var/run/egd-pool, /dev/egd-pool, /etc/egd-pool, and
13227 /etc/entropy will be queried once each in this sequence, querying stops
13228 when enough entropy was collected without querying more sockets.
13229
13230 *Lutz Jaenicke*
13231
13232 * Change the Unix RAND_poll() variant to be able to poll several
13233 random devices, as specified by DEVRANDOM, until a sufficient amount
13234 of data has been collected. We spend at most 10 ms on each file
13235 (select timeout) and read in non-blocking mode. DEVRANDOM now
13236 defaults to the list "/dev/urandom", "/dev/random", "/dev/srandom"
13237 (previously it was just the string "/dev/urandom"), so on typical
13238 platforms the 10 ms delay will never occur.
13239 Also separate out the Unix variant to its own file, rand_unix.c.
13240 For VMS, there's a currently-empty rand_vms.c.
13241
13242 *Richard Levitte*
13243
13244 * Move OCSP client related routines to ocsp_cl.c. These
13245 provide utility functions which an application needing
13246 to issue a request to an OCSP responder and analyse the
13247 response will typically need: as opposed to those which an
13248 OCSP responder itself would need which will be added later.
13249
13250 OCSP_request_sign() signs an OCSP request with an API similar
13251 to PKCS7_sign(). OCSP_response_status() returns status of OCSP
13252 response. OCSP_response_get1_basic() extracts basic response
13253 from response. OCSP_resp_find_status(): finds and extracts status
13254 information from an OCSP_CERTID structure (which will be created
13255 when the request structure is built). These are built from lower
13256 level functions which work on OCSP_SINGLERESP structures but
13257 won't normally be used unless the application wishes to examine
13258 extensions in the OCSP response for example.
13259
13260 Replace nonce routines with a pair of functions.
13261 OCSP_request_add1_nonce() adds a nonce value and optionally
13262 generates a random value. OCSP_check_nonce() checks the
13263 validity of the nonce in an OCSP response.
13264
13265 *Steve Henson*
13266
13267 * Change function OCSP_request_add() to OCSP_request_add0_id().
13268 This doesn't copy the supplied OCSP_CERTID and avoids the
13269 need to free up the newly created id. Change return type
13270 to OCSP_ONEREQ to return the internal OCSP_ONEREQ structure.
13271 This can then be used to add extensions to the request.
13272 Deleted OCSP_request_new(), since most of its functionality
13273 is now in OCSP_REQUEST_new() (and the case insensitive name
13274 clash) apart from the ability to set the request name which
13275 will be added elsewhere.
13276
13277 *Steve Henson*
13278
13279 * Update OCSP API. Remove obsolete extensions argument from
13280 various functions. Extensions are now handled using the new
13281 OCSP extension code. New simple OCSP HTTP function which
13282 can be used to send requests and parse the response.
13283
13284 *Steve Henson*
13285
13286 * Fix the PKCS#7 (S/MIME) code to work with new ASN1. Two new
13287 ASN1_ITEM structures help with sign and verify. PKCS7_ATTR_SIGN
13288 uses the special reorder version of SET OF to sort the attributes
13289 and reorder them to match the encoded order. This resolves a long
13290 standing problem: a verify on a PKCS7 structure just after signing
13291 it used to fail because the attribute order did not match the
13292 encoded order. PKCS7_ATTR_VERIFY does not reorder the attributes:
13293 it uses the received order. This is necessary to tolerate some broken
13294 software that does not order SET OF. This is handled by encoding
13295 as a SEQUENCE OF but using implicit tagging (with UNIVERSAL class)
13296 to produce the required SET OF.
13297
13298 *Steve Henson*
13299
13300 * Have mk1mf.pl generate the macros OPENSSL_BUILD_SHLIBCRYPTO and
13301 OPENSSL_BUILD_SHLIBSSL and use them appropriately in the header
13302 files to get correct declarations of the ASN.1 item variables.
13303
13304 *Richard Levitte*
13305
13306 * Rewrite of PKCS#12 code to use new ASN1 functionality. Replace many
13307 PKCS#12 macros with real functions. Fix two unrelated ASN1 bugs:
13308 asn1_check_tlen() would sometimes attempt to use 'ctx' when it was
13309 NULL and ASN1_TYPE was not dereferenced properly in asn1_ex_c2i().
13310 New ASN1 macro: DECLARE_ASN1_ITEM() which just declares the relevant
13311 ASN1_ITEM and no wrapper functions.
13312
13313 *Steve Henson*
13314
13315 * New functions or ASN1_item_d2i_fp() and ASN1_item_d2i_bio(). These
13316 replace the old function pointer based I/O routines. Change most of
257e9d03 13317 the `*_d2i_bio()` and `*_d2i_fp()` functions to use these.
5f8e6c50
DMSP
13318
13319 *Steve Henson*
13320
13321 * Enhance mkdef.pl to be more accepting about spacing in C preprocessor
13322 lines, recognize more "algorithms" that can be deselected, and make
13323 it complain about algorithm deselection that isn't recognised.
13324
13325 *Richard Levitte*
13326
13327 * New ASN1 functions to handle dup, sign, verify, digest, pack and
13328 unpack operations in terms of ASN1_ITEM. Modify existing wrappers
13329 to use new functions. Add NO_ASN1_OLD which can be set to remove
13330 some old style ASN1 functions: this can be used to determine if old
13331 code will still work when these eventually go away.
13332
13333 *Steve Henson*
13334
13335 * New extension functions for OCSP structures, these follow the
13336 same conventions as certificates and CRLs.
13337
13338 *Steve Henson*
13339
13340 * New function X509V3_add1_i2d(). This automatically encodes and
13341 adds an extension. Its behaviour can be customised with various
13342 flags to append, replace or delete. Various wrappers added for
13343 certificates and CRLs.
13344
13345 *Steve Henson*
13346
13347 * Fix to avoid calling the underlying ASN1 print routine when
13348 an extension cannot be parsed. Correct a typo in the
13349 OCSP_SERVICELOC extension. Tidy up print OCSP format.
13350
13351 *Steve Henson*
13352
13353 * Make mkdef.pl parse some of the ASN1 macros and add appropriate
13354 entries for variables.
13355
13356 *Steve Henson*
13357
ec2bfb7d 13358 * Add functionality to `apps/openssl.c` for detecting locking
5f8e6c50
DMSP
13359 problems: As the program is single-threaded, all we have
13360 to do is register a locking callback using an array for
13361 storing which locks are currently held by the program.
13362
13363 *Bodo Moeller*
13364
13365 * Use a lock around the call to CRYPTO_get_ex_new_index() in
13366 SSL_get_ex_data_X509_STORE_idx(), which is used in
13367 ssl_verify_cert_chain() and thus can be called at any time
13368 during TLS/SSL handshakes so that thread-safety is essential.
13369 Unfortunately, the ex_data design is not at all suited
13370 for multi-threaded use, so it probably should be abolished.
13371
13372 *Bodo Moeller*
13373
13374 * Added Broadcom "ubsec" ENGINE to OpenSSL.
13375
13376 *Broadcom, tweaked and integrated by Geoff Thorpe*
13377
13378 * Move common extension printing code to new function
13379 X509V3_print_extensions(). Reorganise OCSP print routines and
13380 implement some needed OCSP ASN1 functions. Add OCSP extensions.
13381
13382 *Steve Henson*
13383
13384 * New function X509_signature_print() to remove duplication in some
13385 print routines.
13386
13387 *Steve Henson*
13388
13389 * Add a special meaning when SET OF and SEQUENCE OF flags are both
13390 set (this was treated exactly the same as SET OF previously). This
13391 is used to reorder the STACK representing the structure to match the
13392 encoding. This will be used to get round a problem where a PKCS7
13393 structure which was signed could not be verified because the STACK
13394 order did not reflect the encoded order.
13395
13396 *Steve Henson*
13397
13398 * Reimplement the OCSP ASN1 module using the new code.
13399
13400 *Steve Henson*
13401
13402 * Update the X509V3 code to permit the use of an ASN1_ITEM structure
13403 for its ASN1 operations. The old style function pointers still exist
13404 for now but they will eventually go away.
13405
13406 *Steve Henson*
13407
13408 * Merge in replacement ASN1 code from the ASN1 branch. This almost
13409 completely replaces the old ASN1 functionality with a table driven
13410 encoder and decoder which interprets an ASN1_ITEM structure describing
13411 the ASN1 module. Compatibility with the existing ASN1 API (i2d,d2i) is
13412 largely maintained. Almost all of the old asn1_mac.h macro based ASN1
13413 has also been converted to the new form.
13414
13415 *Steve Henson*
13416
13417 * Change BN_mod_exp_recp so that negative moduli are tolerated
13418 (the sign is ignored). Similarly, ignore the sign in BN_MONT_CTX_set
13419 so that BN_mod_exp_mont and BN_mod_exp_mont_word work
13420 for negative moduli.
13421
13422 *Bodo Moeller*
13423
13424 * Fix BN_uadd and BN_usub: Always return non-negative results instead
13425 of not touching the result's sign bit.
13426
13427 *Bodo Moeller*
13428
13429 * BN_div bugfix: If the result is 0, the sign (res->neg) must not be
13430 set.
13431
13432 *Bodo Moeller*
13433
13434 * Changed the LHASH code to use prototypes for callbacks, and created
13435 macros to declare and implement thin (optionally static) functions
13436 that provide type-safety and avoid function pointer casting for the
13437 type-specific callbacks.
13438
13439 *Geoff Thorpe*
13440
13441 * Added Kerberos Cipher Suites to be used with TLS, as written in
13442 RFC 2712.
13443 *Veers Staats <staatsvr@asc.hpc.mil>,
257e9d03 13444 Jeffrey Altman <jaltman@columbia.edu>, via Richard Levitte*
5f8e6c50
DMSP
13445
13446 * Reformat the FAQ so the different questions and answers can be divided
13447 in sections depending on the subject.
13448
13449 *Richard Levitte*
13450
13451 * Have the zlib compression code load ZLIB.DLL dynamically under
13452 Windows.
13453
13454 *Richard Levitte*
13455
13456 * New function BN_mod_sqrt for computing square roots modulo a prime
13457 (using the probabilistic Tonelli-Shanks algorithm unless
13458 p == 3 (mod 4) or p == 5 (mod 8), which are cases that can
13459 be handled deterministically).
13460
13461 *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller*
13462
13463 * Make BN_mod_inverse faster by explicitly handling small quotients
13464 in the Euclid loop. (Speed gain about 20% for small moduli [256 or
13465 512 bits], about 30% for larger ones [1024 or 2048 bits].)
13466
13467 *Bodo Moeller*
13468
13469 * New function BN_kronecker.
13470
13471 *Bodo Moeller*
13472
13473 * Fix BN_gcd so that it works on negative inputs; the result is
13474 positive unless both parameters are zero.
13475 Previously something reasonably close to an infinite loop was
13476 possible because numbers could be growing instead of shrinking
13477 in the implementation of Euclid's algorithm.
13478
13479 *Bodo Moeller*
13480
13481 * Fix BN_is_word() and BN_is_one() macros to take into account the
13482 sign of the number in question.
13483
13484 Fix BN_is_word(a,w) to work correctly for w == 0.
13485
13486 The old BN_is_word(a,w) macro is now called BN_abs_is_word(a,w)
13487 because its test if the absolute value of 'a' equals 'w'.
13488 Note that BN_abs_is_word does *not* handle w == 0 reliably;
13489 it exists mostly for use in the implementations of BN_is_zero(),
13490 BN_is_one(), and BN_is_word().
13491
13492 *Bodo Moeller*
13493
13494 * New function BN_swap.
13495
13496 *Bodo Moeller*
13497
13498 * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that
13499 the exponentiation functions are more likely to produce reasonable
13500 results on negative inputs.
13501
13502 *Bodo Moeller*
13503
13504 * Change BN_mod_mul so that the result is always non-negative.
13505 Previously, it could be negative if one of the factors was negative;
13506 I don't think anyone really wanted that behaviour.
13507
13508 *Bodo Moeller*
13509
1dc1ea18
DDO
13510 * Move `BN_mod_...` functions into new file `crypto/bn/bn_mod.c`
13511 (except for exponentiation, which stays in `crypto/bn/bn_exp.c`,
13512 and `BN_mod_mul_reciprocal`, which stays in `crypto/bn/bn_recp.c`)
5f8e6c50
DMSP
13513 and add new functions:
13514
13515 BN_nnmod
13516 BN_mod_sqr
13517 BN_mod_add
13518 BN_mod_add_quick
13519 BN_mod_sub
13520 BN_mod_sub_quick
13521 BN_mod_lshift1
13522 BN_mod_lshift1_quick
13523 BN_mod_lshift
13524 BN_mod_lshift_quick
13525
13526 These functions always generate non-negative results.
13527
1dc1ea18
DDO
13528 `BN_nnmod` otherwise is `like BN_mod` (if `BN_mod` computes a remainder `r`
13529 such that `|m| < r < 0`, `BN_nnmod` will output `rem + |m|` instead).
5f8e6c50 13530
1dc1ea18
DDO
13531 `BN_mod_XXX_quick(r, a, [b,] m)` generates the same result as
13532 `BN_mod_XXX(r, a, [b,] m, ctx)`, but requires that `a` [and `b`]
13533 be reduced modulo `m`.
5f8e6c50
DMSP
13534
13535 *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller*
13536
1dc1ea18 13537<!--
5f8e6c50
DMSP
13538 The following entry accidentally appeared in the CHANGES file
13539 distributed with OpenSSL 0.9.7. The modifications described in
13540 it do *not* apply to OpenSSL 0.9.7.
13541
13542 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
13543 was actually never needed) and in BN_mul(). The removal in BN_mul()
13544 required a small change in bn_mul_part_recursive() and the addition
13545 of the functions bn_cmp_part_words(), bn_sub_part_words() and
13546 bn_add_part_words(), which do the same thing as bn_cmp_words(),
13547 bn_sub_words() and bn_add_words() except they take arrays with
13548 differing sizes.
13549
13550 *Richard Levitte*
1dc1ea18 13551-->
5f8e6c50
DMSP
13552
13553 * In 'openssl passwd', verify passwords read from the terminal
13554 unless the '-salt' option is used (which usually means that
13555 verification would just waste user's time since the resulting
13556 hash is going to be compared with some given password hash)
13557 or the new '-noverify' option is used.
13558
13559 This is an incompatible change, but it does not affect
13560 non-interactive use of 'openssl passwd' (passwords on the command
13561 line, '-stdin' option, '-in ...' option) and thus should not
13562 cause any problems.
13563
13564 *Bodo Moeller*
13565
13566 * Remove all references to RSAref, since there's no more need for it.
13567
13568 *Richard Levitte*
13569
13570 * Make DSO load along a path given through an environment variable
13571 (SHLIB_PATH) with shl_load().
13572
13573 *Richard Levitte*
13574
13575 * Constify the ENGINE code as a result of BIGNUM constification.
13576 Also constify the RSA code and most things related to it. In a
13577 few places, most notable in the depth of the ASN.1 code, ugly
13578 casts back to non-const were required (to be solved at a later
13579 time)
13580
13581 *Richard Levitte*
13582
13583 * Make it so the openssl application has all engines loaded by default.
13584
13585 *Richard Levitte*
13586
13587 * Constify the BIGNUM routines a little more.
13588
13589 *Richard Levitte*
13590
13591 * Add the following functions:
13592
13593 ENGINE_load_cswift()
13594 ENGINE_load_chil()
13595 ENGINE_load_atalla()
13596 ENGINE_load_nuron()
13597 ENGINE_load_builtin_engines()
13598
13599 That way, an application can itself choose if external engines that
13600 are built-in in OpenSSL shall ever be used or not. The benefit is
13601 that applications won't have to be linked with libdl or other dso
13602 libraries unless it's really needed.
13603
13604 Changed 'openssl engine' to load all engines on demand.
13605 Changed the engine header files to avoid the duplication of some
13606 declarations (they differed!).
13607
13608 *Richard Levitte*
13609
13610 * 'openssl engine' can now list capabilities.
13611
13612 *Richard Levitte*
13613
13614 * Better error reporting in 'openssl engine'.
13615
13616 *Richard Levitte*
13617
13618 * Never call load_dh_param(NULL) in s_server.
13619
13620 *Bodo Moeller*
13621
13622 * Add engine application. It can currently list engines by name and
13623 identity, and test if they are actually available.
13624
13625 *Richard Levitte*
13626
13627 * Improve RPM specification file by forcing symbolic linking and making
13628 sure the installed documentation is also owned by root.root.
13629
13630 *Damien Miller <djm@mindrot.org>*
13631
13632 * Give the OpenSSL applications more possibilities to make use of
13633 keys (public as well as private) handled by engines.
13634
13635 *Richard Levitte*
13636
13637 * Add OCSP code that comes from CertCo.
13638
13639 *Richard Levitte*
13640
13641 * Add VMS support for the Rijndael code.
13642
13643 *Richard Levitte*
13644
13645 * Added untested support for Nuron crypto accelerator.
13646
13647 *Ben Laurie*
13648
13649 * Add support for external cryptographic devices. This code was
13650 previously distributed separately as the "engine" branch.
13651
13652 *Geoff Thorpe, Richard Levitte*
13653
13654 * Rework the filename-translation in the DSO code. It is now possible to
13655 have far greater control over how a "name" is turned into a filename
13656 depending on the operating environment and any oddities about the
13657 different shared library filenames on each system.
13658
13659 *Geoff Thorpe*
13660
13661 * Support threads on FreeBSD-elf in Configure.
13662
13663 *Richard Levitte*
13664
13665 * Fix for SHA1 assembly problem with MASM: it produces
13666 warnings about corrupt line number information when assembling
13667 with debugging information. This is caused by the overlapping
13668 of two sections.
13669
13670 *Bernd Matthes <mainbug@celocom.de>, Steve Henson*
13671
13672 * NCONF changes.
13673 NCONF_get_number() has no error checking at all. As a replacement,
257e9d03 13674 NCONF_get_number_e() is defined (`_e` for "error checking") and is
5f8e6c50
DMSP
13675 promoted strongly. The old NCONF_get_number is kept around for
13676 binary backward compatibility.
13677 Make it possible for methods to load from something other than a BIO,
13678 by providing a function pointer that is given a name instead of a BIO.
13679 For example, this could be used to load configuration data from an
13680 LDAP server.
13681
13682 *Richard Levitte*
13683
13684 * Fix for non blocking accept BIOs. Added new I/O special reason
13685 BIO_RR_ACCEPT to cover this case. Previously use of accept BIOs
13686 with non blocking I/O was not possible because no retry code was
13687 implemented. Also added new SSL code SSL_WANT_ACCEPT to cover
13688 this case.
13689
13690 *Steve Henson*
13691
13692 * Added the beginnings of Rijndael support.
13693
13694 *Ben Laurie*
13695
13696 * Fix for bug in DirectoryString mask setting. Add support for
13697 X509_NAME_print_ex() in 'req' and X509_print_ex() function
13698 to allow certificate printing to more controllable, additional
13699 'certopt' option to 'x509' to allow new printing options to be
13700 set.
13701
13702 *Steve Henson*
13703
13704 * Clean old EAY MD5 hack from e_os.h.
13705
13706 *Richard Levitte*
13707
257e9d03 13708### Changes between 0.9.6l and 0.9.6m [17 Mar 2004]
5f8e6c50
DMSP
13709
13710 * Fix null-pointer assignment in do_change_cipher_spec() revealed
d8dc8538 13711 by using the Codenomicon TLS Test Tool ([CVE-2004-0079])
5f8e6c50
DMSP
13712
13713 *Joe Orton, Steve Henson*
13714
257e9d03 13715### Changes between 0.9.6k and 0.9.6l [04 Nov 2003]
5f8e6c50
DMSP
13716
13717 * Fix additional bug revealed by the NISCC test suite:
13718
13719 Stop bug triggering large recursion when presented with
d8dc8538 13720 certain ASN.1 tags ([CVE-2003-0851])
5f8e6c50
DMSP
13721
13722 *Steve Henson*
13723
257e9d03 13724### Changes between 0.9.6j and 0.9.6k [30 Sep 2003]
5f8e6c50
DMSP
13725
13726 * Fix various bugs revealed by running the NISCC test suite:
13727
13728 Stop out of bounds reads in the ASN1 code when presented with
13729 invalid tags (CVE-2003-0543 and CVE-2003-0544).
13730
13731 If verify callback ignores invalid public key errors don't try to check
13732 certificate signature with the NULL public key.
13733
5f8e6c50
DMSP
13734 *Steve Henson*
13735
13736 * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate
13737 if the server requested one: as stated in TLS 1.0 and SSL 3.0
13738 specifications.
13739
13740 *Steve Henson*
13741
13742 * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional
13743 extra data after the compression methods not only for TLS 1.0
13744 but also for SSL 3.0 (as required by the specification).
13745
13746 *Bodo Moeller; problem pointed out by Matthias Loepfe*
13747
13748 * Change X509_certificate_type() to mark the key as exported/exportable
13749 when it's 512 *bits* long, not 512 bytes.
13750
13751 *Richard Levitte*
13752
257e9d03 13753### Changes between 0.9.6i and 0.9.6j [10 Apr 2003]
5f8e6c50
DMSP
13754
13755 * Countermeasure against the Klima-Pokorny-Rosa extension of
13756 Bleichbacher's attack on PKCS #1 v1.5 padding: treat
13757 a protocol version number mismatch like a decryption error
13758 in ssl3_get_client_key_exchange (ssl/s3_srvr.c).
13759
13760 *Bodo Moeller*
13761
13762 * Turn on RSA blinding by default in the default implementation
13763 to avoid a timing attack. Applications that don't want it can call
13764 RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING.
13765 They would be ill-advised to do so in most cases.
13766
13767 *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller*
13768
13769 * Change RSA blinding code so that it works when the PRNG is not
13770 seeded (in this case, the secret RSA exponent is abused as
13771 an unpredictable seed -- if it is not unpredictable, there
13772 is no point in blinding anyway). Make RSA blinding thread-safe
13773 by remembering the creator's thread ID in rsa->blinding and
13774 having all other threads use local one-time blinding factors
13775 (this requires more computation than sharing rsa->blinding, but
13776 avoids excessive locking; and if an RSA object is not shared
13777 between threads, blinding will still be very fast).
13778
13779 *Bodo Moeller*
13780
257e9d03 13781### Changes between 0.9.6h and 0.9.6i [19 Feb 2003]
5f8e6c50
DMSP
13782
13783 * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked
13784 via timing by performing a MAC computation even if incorrect
13785 block cipher padding has been found. This is a countermeasure
13786 against active attacks where the attacker has to distinguish
d8dc8538 13787 between bad padding and a MAC verification error. ([CVE-2003-0078])
5f8e6c50
DMSP
13788
13789 *Bodo Moeller; problem pointed out by Brice Canvel (EPFL),
13790 Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and
13791 Martin Vuagnoux (EPFL, Ilion)*
13792
257e9d03 13793### Changes between 0.9.6g and 0.9.6h [5 Dec 2002]
5f8e6c50
DMSP
13794
13795 * New function OPENSSL_cleanse(), which is used to cleanse a section of
13796 memory from its contents. This is done with a counter that will
13797 place alternating values in each byte. This can be used to solve
13798 two issues: 1) the removal of calls to memset() by highly optimizing
13799 compilers, and 2) cleansing with other values than 0, since those can
13800 be read through on certain media, for example a swap space on disk.
13801
13802 *Geoff Thorpe*
13803
13804 * Bugfix: client side session caching did not work with external caching,
13805 because the session->cipher setting was not restored when reloading
13806 from the external cache. This problem was masked, when
13807 SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG (part of SSL_OP_ALL) was set.
13808 (Found by Steve Haslam <steve@araqnid.ddts.net>.)
13809
13810 *Lutz Jaenicke*
13811
13812 * Fix client_certificate (ssl/s2_clnt.c): The permissible total
13813 length of the REQUEST-CERTIFICATE message is 18 .. 34, not 17 .. 33.
13814
13815 *Zeev Lieber <zeev-l@yahoo.com>*
13816
13817 * Undo an undocumented change introduced in 0.9.6e which caused
13818 repeated calls to OpenSSL_add_all_ciphers() and
13819 OpenSSL_add_all_digests() to be ignored, even after calling
13820 EVP_cleanup().
13821
13822 *Richard Levitte*
13823
13824 * Change the default configuration reader to deal with last line not
13825 being properly terminated.
13826
13827 *Richard Levitte*
13828
13829 * Change X509_NAME_cmp() so it applies the special rules on handling
13830 DN values that are of type PrintableString, as well as RDNs of type
13831 emailAddress where the value has the type ia5String.
13832
13833 *stefank@valicert.com via Richard Levitte*
13834
13835 * Add a SSL_SESS_CACHE_NO_INTERNAL_STORE flag to take over half
13836 the job SSL_SESS_CACHE_NO_INTERNAL_LOOKUP was inconsistently
13837 doing, define a new flag (SSL_SESS_CACHE_NO_INTERNAL) to be
13838 the bitwise-OR of the two for use by the majority of applications
13839 wanting this behaviour, and update the docs. The documented
13840 behaviour and actual behaviour were inconsistent and had been
13841 changing anyway, so this is more a bug-fix than a behavioural
13842 change.
13843
13844 *Geoff Thorpe, diagnosed by Nadav Har'El*
13845
13846 * Don't impose a 16-byte length minimum on session IDs in ssl/s3_clnt.c
13847 (the SSL 3.0 and TLS 1.0 specifications allow any length up to 32 bytes).
13848
13849 *Bodo Moeller*
13850
13851 * Fix initialization code race conditions in
13852 SSLv23_method(), SSLv23_client_method(), SSLv23_server_method(),
13853 SSLv2_method(), SSLv2_client_method(), SSLv2_server_method(),
13854 SSLv3_method(), SSLv3_client_method(), SSLv3_server_method(),
13855 TLSv1_method(), TLSv1_client_method(), TLSv1_server_method(),
13856 ssl2_get_cipher_by_char(),
13857 ssl3_get_cipher_by_char().
13858
13859 *Patrick McCormick <patrick@tellme.com>, Bodo Moeller*
13860
13861 * Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after
13862 the cached sessions are flushed, as the remove_cb() might use ex_data
13863 contents. Bug found by Sam Varshavchik <mrsam@courier-mta.com>
13864 (see [openssl.org #212]).
13865
13866 *Geoff Thorpe, Lutz Jaenicke*
13867
13868 * Fix typo in OBJ_txt2obj which incorrectly passed the content
13869 length, instead of the encoding length to d2i_ASN1_OBJECT.
13870
13871 *Steve Henson*
13872
257e9d03 13873### Changes between 0.9.6f and 0.9.6g [9 Aug 2002]
5f8e6c50
DMSP
13874
13875 * [In 0.9.6g-engine release:]
257e9d03 13876 Fix crypto/engine/vendor_defns/cswift.h for WIN32 (use `_stdcall`).
5f8e6c50
DMSP
13877
13878 *Lynn Gazis <lgazis@rainbow.com>*
13879
257e9d03 13880### Changes between 0.9.6e and 0.9.6f [8 Aug 2002]
5f8e6c50
DMSP
13881
13882 * Fix ASN1 checks. Check for overflow by comparing with LONG_MAX
13883 and get fix the header length calculation.
13884 *Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>,
257e9d03 13885 Alon Kantor <alonk@checkpoint.com> (and others), Steve Henson*
5f8e6c50
DMSP
13886
13887 * Use proper error handling instead of 'assertions' in buffer
13888 overflow checks added in 0.9.6e. This prevents DoS (the
13889 assertions could call abort()).
13890
13891 *Arne Ansper <arne@ats.cyber.ee>, Bodo Moeller*
13892
257e9d03 13893### Changes between 0.9.6d and 0.9.6e [30 Jul 2002]
5f8e6c50
DMSP
13894
13895 * Add various sanity checks to asn1_get_length() to reject
13896 the ASN1 length bytes if they exceed sizeof(long), will appear
13897 negative or the content length exceeds the length of the
13898 supplied buffer.
13899
13900 *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>*
13901
13902 * Fix cipher selection routines: ciphers without encryption had no flags
13903 for the cipher strength set and where therefore not handled correctly
13904 by the selection routines (PR #130).
13905
13906 *Lutz Jaenicke*
13907
13908 * Fix EVP_dsa_sha macro.
13909
13910 *Nils Larsch*
13911
13912 * New option
13913 SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
13914 for disabling the SSL 3.0/TLS 1.0 CBC vulnerability countermeasure
13915 that was added in OpenSSL 0.9.6d.
13916
13917 As the countermeasure turned out to be incompatible with some
13918 broken SSL implementations, the new option is part of SSL_OP_ALL.
13919 SSL_OP_ALL is usually employed when compatibility with weird SSL
13920 implementations is desired (e.g. '-bugs' option to 's_client' and
13921 's_server'), so the new option is automatically set in many
13922 applications.
13923
13924 *Bodo Moeller*
13925
13926 * Changes in security patch:
13927
13928 Changes marked "(CHATS)" were sponsored by the Defense Advanced
13929 Research Projects Agency (DARPA) and Air Force Research Laboratory,
13930 Air Force Materiel Command, USAF, under agreement number
13931 F30602-01-2-0537.
13932
13933 * Add various sanity checks to asn1_get_length() to reject
13934 the ASN1 length bytes if they exceed sizeof(long), will appear
13935 negative or the content length exceeds the length of the
d8dc8538 13936 supplied buffer. ([CVE-2002-0659])
5f8e6c50
DMSP
13937
13938 *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>*
13939
13940 * Assertions for various potential buffer overflows, not known to
13941 happen in practice.
13942
13943 *Ben Laurie (CHATS)*
13944
13945 * Various temporary buffers to hold ASCII versions of integers were
d8dc8538 13946 too small for 64 bit platforms. ([CVE-2002-0655])
257e9d03 13947 *Matthew Byng-Maddick <mbm@aldigital.co.uk> and Ben Laurie (CHATS)>*
5f8e6c50
DMSP
13948
13949 * Remote buffer overflow in SSL3 protocol - an attacker could
d8dc8538 13950 supply an oversized session ID to a client. ([CVE-2002-0656])
5f8e6c50 13951
44652c16 13952 *Ben Laurie (CHATS)*
5f8e6c50
DMSP
13953
13954 * Remote buffer overflow in SSL2 protocol - an attacker could
d8dc8538 13955 supply an oversized client master key. ([CVE-2002-0656])
5f8e6c50
DMSP
13956
13957 *Ben Laurie (CHATS)*
13958
257e9d03 13959### Changes between 0.9.6c and 0.9.6d [9 May 2002]
5f8e6c50
DMSP
13960
13961 * Fix crypto/asn1/a_sign.c so that 'parameters' is omitted (not
13962 encoded as NULL) with id-dsa-with-sha1.
13963
13964 *Nils Larsch <nla@trustcenter.de>; problem pointed out by Bodo Moeller*
13965
ec2bfb7d 13966 * Check various `X509_...()` return values in `apps/req.c`.
5f8e6c50
DMSP
13967
13968 *Nils Larsch <nla@trustcenter.de>*
13969
13970 * Fix BASE64 decode (EVP_DecodeUpdate) for data with CR/LF ended lines:
13971 an end-of-file condition would erroneously be flagged, when the CRLF
13972 was just at the end of a processed block. The bug was discovered when
13973 processing data through a buffering memory BIO handing the data to a
13974 BASE64-decoding BIO. Bug fund and patch submitted by Pavel Tsekov
13975 <ptsekov@syntrex.com> and Nedelcho Stanev.
13976
13977 *Lutz Jaenicke*
13978
13979 * Implement a countermeasure against a vulnerability recently found
13980 in CBC ciphersuites in SSL 3.0/TLS 1.0: Send an empty fragment
13981 before application data chunks to avoid the use of known IVs
13982 with data potentially chosen by the attacker.
13983
13984 *Bodo Moeller*
13985
13986 * Fix length checks in ssl3_get_client_hello().
13987
13988 *Bodo Moeller*
13989
13990 * TLS/SSL library bugfix: use s->s3->in_read_app_data differently
13991 to prevent ssl3_read_internal() from incorrectly assuming that
13992 ssl3_read_bytes() found application data while handshake
13993 processing was enabled when in fact s->s3->in_read_app_data was
13994 merely automatically cleared during the initial handshake.
13995
13996 *Bodo Moeller; problem pointed out by Arne Ansper <arne@ats.cyber.ee>*
13997
13998 * Fix object definitions for Private and Enterprise: they were not
13999 recognized in their shortname (=lowercase) representation. Extend
14000 obj_dat.pl to issue an error when using undefined keywords instead
14001 of silently ignoring the problem (Svenning Sorensen
14002 <sss@sss.dnsalias.net>).
14003
14004 *Lutz Jaenicke*
14005
14006 * Fix DH_generate_parameters() so that it works for 'non-standard'
14007 generators, i.e. generators other than 2 and 5. (Previously, the
14008 code did not properly initialise the 'add' and 'rem' values to
14009 BN_generate_prime().)
14010
14011 In the new general case, we do not insist that 'generator' is
14012 actually a primitive root: This requirement is rather pointless;
14013 a generator of the order-q subgroup is just as good, if not
14014 better.
14015
14016 *Bodo Moeller*
14017
14018 * Map new X509 verification errors to alerts. Discovered and submitted by
14019 Tom Wu <tom@arcot.com>.
14020
14021 *Lutz Jaenicke*
14022
14023 * Fix ssl3_pending() (ssl/s3_lib.c) to prevent SSL_pending() from
14024 returning non-zero before the data has been completely received
14025 when using non-blocking I/O.
14026
14027 *Bodo Moeller; problem pointed out by John Hughes*
14028
14029 * Some of the ciphers missed the strength entry (SSL_LOW etc).
14030
14031 *Ben Laurie, Lutz Jaenicke*
14032
14033 * Fix bug in SSL_clear(): bad sessions were not removed (found by
14034 Yoram Zahavi <YoramZ@gilian.com>).
14035
14036 *Lutz Jaenicke*
14037
14038 * Add information about CygWin 1.3 and on, and preserve proper
14039 configuration for the versions before that.
14040
14041 *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte*
14042
14043 * Make removal from session cache (SSL_CTX_remove_session()) more robust:
14044 check whether we deal with a copy of a session and do not delete from
14045 the cache in this case. Problem reported by "Izhar Shoshani Levi"
14046 <izhar@checkpoint.com>.
14047
14048 *Lutz Jaenicke*
14049
14050 * Do not store session data into the internal session cache, if it
14051 is never intended to be looked up (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP
14052 flag is set). Proposed by Aslam <aslam@funk.com>.
14053
14054 *Lutz Jaenicke*
14055
14056 * Have ASN1_BIT_STRING_set_bit() really clear a bit when the requested
14057 value is 0.
14058
14059 *Richard Levitte*
14060
14061 * [In 0.9.6d-engine release:]
14062 Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
14063
14064 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
14065
14066 * Add the configuration target linux-s390x.
14067
14068 *Neale Ferguson <Neale.Ferguson@SoftwareAG-USA.com> via Richard Levitte*
14069
14070 * The earlier bugfix for the SSL3_ST_SW_HELLO_REQ_C case of
14071 ssl3_accept (ssl/s3_srvr.c) incorrectly used a local flag
14072 variable as an indication that a ClientHello message has been
14073 received. As the flag value will be lost between multiple
14074 invocations of ssl3_accept when using non-blocking I/O, the
14075 function may not be aware that a handshake has actually taken
14076 place, thus preventing a new session from being added to the
14077 session cache.
14078
14079 To avoid this problem, we now set s->new_session to 2 instead of
14080 using a local variable.
14081
14082 *Lutz Jaenicke, Bodo Moeller*
14083
14084 * Bugfix: Return -1 from ssl3_get_server_done (ssl3/s3_clnt.c)
14085 if the SSL_R_LENGTH_MISMATCH error is detected.
14086
14087 *Geoff Thorpe, Bodo Moeller*
14088
14089 * New 'shared_ldflag' column in Configure platform table.
14090
14091 *Richard Levitte*
14092
14093 * Fix EVP_CIPHER_mode macro.
14094
14095 *"Dan S. Camper" <dan@bti.net>*
14096
14097 * Fix ssl3_read_bytes (ssl/s3_pkt.c): To ignore messages of unknown
14098 type, we must throw them away by setting rr->length to 0.
14099
14100 *D P Chang <dpc@qualys.com>*
14101
257e9d03 14102### Changes between 0.9.6b and 0.9.6c [21 dec 2001]
5f8e6c50
DMSP
14103
14104 * Fix BN_rand_range bug pointed out by Dominikus Scherkl
14105 <Dominikus.Scherkl@biodata.com>. (The previous implementation
257e9d03
RS
14106 worked incorrectly for those cases where range = `10..._2` and
14107 `3*range` is two bits longer than range.)
5f8e6c50
DMSP
14108
14109 *Bodo Moeller*
14110
14111 * Only add signing time to PKCS7 structures if it is not already
14112 present.
14113
14114 *Steve Henson*
14115
14116 * Fix crypto/objects/objects.h: "ld-ce" should be "id-ce",
14117 OBJ_ld_ce should be OBJ_id_ce.
14118 Also some ip-pda OIDs in crypto/objects/objects.txt were
14119 incorrect (cf. RFC 3039).
14120
14121 *Matt Cooper, Frederic Giudicelli, Bodo Moeller*
14122
14123 * Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid()
14124 returns early because it has nothing to do.
14125
14126 *Andy Schneider <andy.schneider@bjss.co.uk>*
14127
14128 * [In 0.9.6c-engine release:]
14129 Fix mutex callback return values in crypto/engine/hw_ncipher.c.
14130
14131 *Andy Schneider <andy.schneider@bjss.co.uk>*
14132
14133 * [In 0.9.6c-engine release:]
14134 Add support for Cryptographic Appliance's keyserver technology.
14135 (Use engine 'keyclient')
14136
14137 *Cryptographic Appliances and Geoff Thorpe*
14138
14139 * Add a configuration entry for OS/390 Unix. The C compiler 'c89'
14140 is called via tools/c89.sh because arguments have to be
14141 rearranged (all '-L' options must appear before the first object
14142 modules).
14143
14144 *Richard Shapiro <rshapiro@abinitio.com>*
14145
14146 * [In 0.9.6c-engine release:]
14147 Add support for Broadcom crypto accelerator cards, backported
14148 from 0.9.7.
14149
14150 *Broadcom, Nalin Dahyabhai <nalin@redhat.com>, Mark Cox*
14151
14152 * [In 0.9.6c-engine release:]
14153 Add support for SureWare crypto accelerator cards from
14154 Baltimore Technologies. (Use engine 'sureware')
14155
14156 *Baltimore Technologies and Mark Cox*
14157
14158 * [In 0.9.6c-engine release:]
14159 Add support for crypto accelerator cards from Accelerated
14160 Encryption Processing, www.aep.ie. (Use engine 'aep')
14161
14162 *AEP Inc. and Mark Cox*
14163
14164 * Add a configuration entry for gcc on UnixWare.
14165
14166 *Gary Benson <gbenson@redhat.com>*
14167
14168 * Change ssl/s2_clnt.c and ssl/s2_srvr.c so that received handshake
14169 messages are stored in a single piece (fixed-length part and
14170 variable-length part combined) and fix various bugs found on the way.
14171
14172 *Bodo Moeller*
14173
14174 * Disable caching in BIO_gethostbyname(), directly use gethostbyname()
14175 instead. BIO_gethostbyname() does not know what timeouts are
14176 appropriate, so entries would stay in cache even when they have
14177 become invalid.
257e9d03 14178 *Bodo Moeller; problem pointed out by Rich Salz <rsalz@zolera.com>*
5f8e6c50
DMSP
14179
14180 * Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when
14181 faced with a pathologically small ClientHello fragment that does
14182 not contain client_version: Instead of aborting with an error,
14183 simply choose the highest available protocol version (i.e.,
14184 TLS 1.0 unless it is disabled). In practice, ClientHello
14185 messages are never sent like this, but this change gives us
14186 strictly correct behaviour at least for TLS.
14187
44652c16 14188 *Bodo Moeller*
5f8e6c50
DMSP
14189
14190 * Fix SSL handshake functions and SSL_clear() such that SSL_clear()
14191 never resets s->method to s->ctx->method when called from within
14192 one of the SSL handshake functions.
14193
14194 *Bodo Moeller; problem pointed out by Niko Baric*
14195
14196 * In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert
14197 (sent using the client's version number) if client_version is
14198 smaller than the protocol version in use. Also change
14199 ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if
14200 the client demanded SSL 3.0 but only TLS 1.0 is enabled; then
14201 the client will at least see that alert.
14202
14203 *Bodo Moeller*
14204
14205 * Fix ssl3_get_message (ssl/s3_both.c) to handle message fragmentation
14206 correctly.
14207
14208 *Bodo Moeller*
14209
14210 * Avoid infinite loop in ssl3_get_message (ssl/s3_both.c) if a
14211 client receives HelloRequest while in a handshake.
14212
14213 *Bodo Moeller; bug noticed by Andy Schneider <andy.schneider@bjss.co.uk>*
14214
14215 * Bugfix in ssl3_accept (ssl/s3_srvr.c): Case SSL3_ST_SW_HELLO_REQ_C
14216 should end in 'break', not 'goto end' which circumvents various
14217 cleanups done in state SSL_ST_OK. But session related stuff
14218 must be disabled for SSL_ST_OK in the case that we just sent a
14219 HelloRequest.
14220
14221 Also avoid some overhead by not calling ssl_init_wbio_buffer()
14222 before just sending a HelloRequest.
14223
14224 *Bodo Moeller, Eric Rescorla <ekr@rtfm.com>*
14225
14226 * Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don't
14227 reveal whether illegal block cipher padding was found or a MAC
14228 verification error occurred. (Neither SSLerr() codes nor alerts
14229 are directly visible to potential attackers, but the information
14230 may leak via logfiles.)
14231
14232 Similar changes are not required for the SSL 2.0 implementation
14233 because the number of padding bytes is sent in clear for SSL 2.0,
14234 and the extra bytes are just ignored. However ssl/s2_pkt.c
14235 failed to verify that the purported number of padding bytes is in
14236 the legal range.
14237
14238 *Bodo Moeller*
14239
14240 * Add OpenUNIX-8 support including shared libraries
14241 (Boyd Lynn Gerber <gerberb@zenez.com>).
14242
14243 *Lutz Jaenicke*
14244
14245 * Improve RSA_padding_check_PKCS1_OAEP() check again to avoid
14246 'wristwatch attack' using huge encoding parameters (cf.
14247 James H. Manger's CRYPTO 2001 paper). Note that the
14248 RSA_PKCS1_OAEP_PADDING case of RSA_private_decrypt() does not use
14249 encoding parameters and hence was not vulnerable.
14250
14251 *Bodo Moeller*
14252
14253 * BN_sqr() bug fix.
14254
14255 *Ulf Möller, reported by Jim Ellis <jim.ellis@cavium.com>*
14256
14257 * Rabin-Miller test analyses assume uniformly distributed witnesses,
14258 so use BN_pseudo_rand_range() instead of using BN_pseudo_rand()
14259 followed by modular reduction.
14260
14261 *Bodo Moeller; pointed out by Adam Young <AYoung1@NCSUS.JNJ.COM>*
14262
14263 * Add BN_pseudo_rand_range() with obvious functionality: BN_rand_range()
14264 equivalent based on BN_pseudo_rand() instead of BN_rand().
14265
14266 *Bodo Moeller*
14267
14268 * s3_srvr.c: allow sending of large client certificate lists (> 16 kB).
14269 This function was broken, as the check for a new client hello message
14270 to handle SGC did not allow these large messages.
14271 (Tracked down by "Douglas E. Engert" <deengert@anl.gov>.)
14272
14273 *Lutz Jaenicke*
14274
257e9d03 14275 * Add alert descriptions for TLSv1 to `SSL_alert_desc_string[_long]()`.
5f8e6c50
DMSP
14276
14277 *Lutz Jaenicke*
14278
14279 * Fix buggy behaviour of BIO_get_num_renegotiates() and BIO_ctrl()
14280 for BIO_C_GET_WRITE_BUF_SIZE ("Stephen Hinton" <shinton@netopia.com>).
14281
14282 *Lutz Jaenicke*
14283
14284 * Rework the configuration and shared library support for Tru64 Unix.
14285 The configuration part makes use of modern compiler features and
14286 still retains old compiler behavior for those that run older versions
14287 of the OS. The shared library support part includes a variant that
14288 uses the RPATH feature, and is available through the special
14289 configuration target "alpha-cc-rpath", which will never be selected
14290 automatically.
14291
14292 *Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> via Richard Levitte*
14293
14294 * In ssl3_get_key_exchange (ssl/s3_clnt.c), call ssl3_get_message()
14295 with the same message size as in ssl3_get_certificate_request().
14296 Otherwise, if no ServerKeyExchange message occurs, CertificateRequest
14297 messages might inadvertently be reject as too long.
14298
14299 *Petr Lampa <lampa@fee.vutbr.cz>*
14300
14301 * Enhanced support for IA-64 Unix platforms (well, Linux and HP-UX).
14302
14303 *Andy Polyakov*
14304
14305 * Modified SSL library such that the verify_callback that has been set
44652c16 14306 specifically for an SSL object with SSL_set_verify() is actually being
5f8e6c50
DMSP
14307 used. Before the change, a verify_callback set with this function was
14308 ignored and the verify_callback() set in the SSL_CTX at the time of
14309 the call was used. New function X509_STORE_CTX_set_verify_cb() introduced
14310 to allow the necessary settings.
14311
14312 *Lutz Jaenicke*
14313
14314 * Initialize static variable in crypto/dsa/dsa_lib.c and crypto/dh/dh_lib.c
14315 explicitly to NULL, as at least on Solaris 8 this seems not always to be
14316 done automatically (in contradiction to the requirements of the C
14317 standard). This made problems when used from OpenSSH.
14318
14319 *Lutz Jaenicke*
14320
14321 * In OpenSSL 0.9.6a and 0.9.6b, crypto/dh/dh_key.c ignored
14322 dh->length and always used
14323
14324 BN_rand_range(priv_key, dh->p).
14325
14326 BN_rand_range() is not necessary for Diffie-Hellman, and this
14327 specific range makes Diffie-Hellman unnecessarily inefficient if
14328 dh->length (recommended exponent length) is much smaller than the
14329 length of dh->p. We could use BN_rand_range() if the order of
14330 the subgroup was stored in the DH structure, but we only have
14331 dh->length.
14332
14333 So switch back to
14334
14335 BN_rand(priv_key, l, ...)
14336
14337 where 'l' is dh->length if this is defined, or BN_num_bits(dh->p)-1
14338 otherwise.
14339
14340 *Bodo Moeller*
14341
14342 * In
14343
14344 RSA_eay_public_encrypt
14345 RSA_eay_private_decrypt
14346 RSA_eay_private_encrypt (signing)
14347 RSA_eay_public_decrypt (signature verification)
14348
14349 (default implementations for RSA_public_encrypt,
14350 RSA_private_decrypt, RSA_private_encrypt, RSA_public_decrypt),
14351 always reject numbers >= n.
14352
14353 *Bodo Moeller*
14354
14355 * In crypto/rand/md_rand.c, use a new short-time lock CRYPTO_LOCK_RAND2
14356 to synchronize access to 'locking_thread'. This is necessary on
14357 systems where access to 'locking_thread' (an 'unsigned long'
14358 variable) is not atomic.
14359
14360 *Bodo Moeller*
14361
14362 * In crypto/rand/md_rand.c, set 'locking_thread' to current thread's ID
14363 *before* setting the 'crypto_lock_rand' flag. The previous code had
14364 a race condition if 0 is a valid thread ID.
14365
14366 *Travis Vitek <vitek@roguewave.com>*
14367
14368 * Add support for shared libraries under Irix.
14369
14370 *Albert Chin-A-Young <china@thewrittenword.com>*
14371
14372 * Add configuration option to build on Linux on both big-endian and
14373 little-endian MIPS.
14374
14375 *Ralf Baechle <ralf@uni-koblenz.de>*
14376
14377 * Add the possibility to create shared libraries on HP-UX.
14378
14379 *Richard Levitte*
14380
257e9d03 14381### Changes between 0.9.6a and 0.9.6b [9 Jul 2001]
5f8e6c50
DMSP
14382
14383 * Change ssleay_rand_bytes (crypto/rand/md_rand.c)
14384 to avoid a SSLeay/OpenSSL PRNG weakness pointed out by
14385 Markku-Juhani O. Saarinen <markku-juhani.saarinen@nokia.com>:
14386 PRNG state recovery was possible based on the output of
14387 one PRNG request appropriately sized to gain knowledge on
14388 'md' followed by enough consecutive 1-byte PRNG requests
14389 to traverse all of 'state'.
14390
14391 1. When updating 'md_local' (the current thread's copy of 'md')
14392 during PRNG output generation, hash all of the previous
14393 'md_local' value, not just the half used for PRNG output.
14394
14395 2. Make the number of bytes from 'state' included into the hash
14396 independent from the number of PRNG bytes requested.
14397
14398 The first measure alone would be sufficient to avoid
14399 Markku-Juhani's attack. (Actually it had never occurred
14400 to me that the half of 'md_local' used for chaining was the
14401 half from which PRNG output bytes were taken -- I had always
14402 assumed that the secret half would be used.) The second
14403 measure makes sure that additional data from 'state' is never
14404 mixed into 'md_local' in small portions; this heuristically
14405 further strengthens the PRNG.
14406
14407 *Bodo Moeller*
14408
14409 * Fix crypto/bn/asm/mips3.s.
14410
14411 *Andy Polyakov*
14412
14413 * When only the key is given to "enc", the IV is undefined. Print out
14414 an error message in this case.
14415
14416 *Lutz Jaenicke*
14417
14418 * Handle special case when X509_NAME is empty in X509 printing routines.
14419
14420 *Steve Henson*
14421
14422 * In dsa_do_verify (crypto/dsa/dsa_ossl.c), verify that r and s are
14423 positive and less than q.
14424
14425 *Bodo Moeller*
14426
257e9d03 14427 * Don't change `*pointer` in CRYPTO_add_lock() is add_lock_callback is
5f8e6c50
DMSP
14428 used: it isn't thread safe and the add_lock_callback should handle
14429 that itself.
14430
14431 *Paul Rose <Paul.Rose@bridge.com>*
14432
14433 * Verify that incoming data obeys the block size in
14434 ssl3_enc (ssl/s3_enc.c) and tls1_enc (ssl/t1_enc.c).
14435
14436 *Bodo Moeller*
14437
14438 * Fix OAEP check.
14439
14440 *Ulf Möller, Bodo Möller*
14441
14442 * The countermeasure against Bleichbacher's attack on PKCS #1 v1.5
14443 RSA encryption was accidentally removed in s3_srvr.c in OpenSSL 0.9.5
14444 when fixing the server behaviour for backwards-compatible 'client
14445 hello' messages. (Note that the attack is impractical against
14446 SSL 3.0 and TLS 1.0 anyway because length and version checking
14447 means that the probability of guessing a valid ciphertext is
14448 around 2^-40; see section 5 in Bleichenbacher's CRYPTO '98
14449 paper.)
14450
14451 Before 0.9.5, the countermeasure (hide the error by generating a
14452 random 'decryption result') did not work properly because
14453 ERR_clear_error() was missing, meaning that SSL_get_error() would
14454 detect the supposedly ignored error.
14455
14456 Both problems are now fixed.
14457
14458 *Bodo Moeller*
14459
14460 * In crypto/bio/bf_buff.c, increase DEFAULT_BUFFER_SIZE to 4096
14461 (previously it was 1024).
14462
14463 *Bodo Moeller*
14464
14465 * Fix for compatibility mode trust settings: ignore trust settings
14466 unless some valid trust or reject settings are present.
14467
14468 *Steve Henson*
14469
14470 * Fix for blowfish EVP: its a variable length cipher.
14471
14472 *Steve Henson*
14473
14474 * Fix various bugs related to DSA S/MIME verification. Handle missing
14475 parameters in DSA public key structures and return an error in the
14476 DSA routines if parameters are absent.
14477
14478 *Steve Henson*
14479
14480 * In versions up to 0.9.6, RAND_file_name() resorted to file ".rnd"
14481 in the current directory if neither $RANDFILE nor $HOME was set.
14482 RAND_file_name() in 0.9.6a returned NULL in this case. This has
14483 caused some confusion to Windows users who haven't defined $HOME.
14484 Thus RAND_file_name() is changed again: e_os.h can define a
14485 DEFAULT_HOME, which will be used if $HOME is not set.
14486 For Windows, we use "C:"; on other platforms, we still require
14487 environment variables.
14488
14489 * Move 'if (!initialized) RAND_poll()' into regions protected by
14490 CRYPTO_LOCK_RAND. This is not strictly necessary, but avoids
14491 having multiple threads call RAND_poll() concurrently.
14492
14493 *Bodo Moeller*
14494
14495 * In crypto/rand/md_rand.c, replace 'add_do_not_lock' flag by a
14496 combination of a flag and a thread ID variable.
14497 Otherwise while one thread is in ssleay_rand_bytes (which sets the
14498 flag), *other* threads can enter ssleay_add_bytes without obeying
14499 the CRYPTO_LOCK_RAND lock (and may even illegally release the lock
14500 that they do not hold after the first thread unsets add_do_not_lock).
14501
14502 *Bodo Moeller*
14503
14504 * Change bctest again: '-x' expressions are not available in all
14505 versions of 'test'.
14506
14507 *Bodo Moeller*
14508
257e9d03 14509### Changes between 0.9.6 and 0.9.6a [5 Apr 2001]
5f8e6c50
DMSP
14510
14511 * Fix a couple of memory leaks in PKCS7_dataDecode()
14512
14513 *Steve Henson, reported by Heyun Zheng <hzheng@atdsprint.com>*
14514
14515 * Change Configure and Makefiles to provide EXE_EXT, which will contain
14516 the default extension for executables, if any. Also, make the perl
14517 scripts that use symlink() to test if it really exists and use "cp"
14518 if it doesn't. All this made OpenSSL compilable and installable in
14519 CygWin.
14520
14521 *Richard Levitte*
14522
14523 * Fix for asn1_GetSequence() for indefinite length constructed data.
14524 If SEQUENCE is length is indefinite just set c->slen to the total
14525 amount of data available.
14526
14527 *Steve Henson, reported by shige@FreeBSD.org*
14528
14529 *This change does not apply to 0.9.7.*
14530
14531 * Change bctest to avoid here-documents inside command substitution
14532 (workaround for FreeBSD /bin/sh bug).
14533 For compatibility with Ultrix, avoid shell functions (introduced
14534 in the bctest version that searches along $PATH).
14535
14536 *Bodo Moeller*
14537
14538 * Rename 'des_encrypt' to 'des_encrypt1'. This avoids the clashes
14539 with des_encrypt() defined on some operating systems, like Solaris
14540 and UnixWare.
14541
14542 *Richard Levitte*
14543
14544 * Check the result of RSA-CRT (see D. Boneh, R. DeMillo, R. Lipton:
14545 On the Importance of Eliminating Errors in Cryptographic
14546 Computations, J. Cryptology 14 (2001) 2, 101-119,
257e9d03 14547 <http://theory.stanford.edu/~dabo/papers/faults.ps.gz>).
5f8e6c50
DMSP
14548
14549 *Ulf Moeller*
14550
14551 * MIPS assembler BIGNUM division bug fix.
14552
14553 *Andy Polyakov*
14554
14555 * Disabled incorrect Alpha assembler code.
14556
14557 *Richard Levitte*
14558
14559 * Fix PKCS#7 decode routines so they correctly update the length
14560 after reading an EOC for the EXPLICIT tag.
14561
14562 *Steve Henson*
14563
14564 *This change does not apply to 0.9.7.*
14565
14566 * Fix bug in PKCS#12 key generation routines. This was triggered
14567 if a 3DES key was generated with a 0 initial byte. Include
14568 PKCS12_BROKEN_KEYGEN compilation option to retain the old
14569 (but broken) behaviour.
14570
14571 *Steve Henson*
14572
14573 * Enhance bctest to search for a working bc along $PATH and print
14574 it when found.
14575
14576 *Tim Rice <tim@multitalents.net> via Richard Levitte*
14577
14578 * Fix memory leaks in err.c: free err_data string if necessary;
14579 don't write to the wrong index in ERR_set_error_data.
14580
14581 *Bodo Moeller*
14582
14583 * Implement ssl23_peek (analogous to ssl23_read), which previously
14584 did not exist.
14585
14586 *Bodo Moeller*
14587
257e9d03 14588 * Replace rdtsc with `_emit` statements for VC++ version 5.
5f8e6c50
DMSP
14589
14590 *Jeremy Cooper <jeremy@baymoo.org>*
14591
14592 * Make it possible to reuse SSLv2 sessions.
14593
14594 *Richard Levitte*
14595
14596 * In copy_email() check for >= 0 as a return value for
14597 X509_NAME_get_index_by_NID() since 0 is a valid index.
14598
14599 *Steve Henson reported by Massimiliano Pala <madwolf@opensca.org>*
14600
14601 * Avoid coredump with unsupported or invalid public keys by checking if
14602 X509_get_pubkey() fails in PKCS7_verify(). Fix memory leak when
14603 PKCS7_verify() fails with non detached data.
14604
14605 *Steve Henson*
14606
14607 * Don't use getenv in library functions when run as setuid/setgid.
14608 New function OPENSSL_issetugid().
14609
14610 *Ulf Moeller*
14611
14612 * Avoid false positives in memory leak detection code (crypto/mem_dbg.c)
14613 due to incorrect handling of multi-threading:
14614
14615 1. Fix timing glitch in the MemCheck_off() portion of CRYPTO_mem_ctrl().
14616
14617 2. Fix logical glitch in is_MemCheck_on() aka CRYPTO_is_mem_check_on().
14618
14619 3. Count how many times MemCheck_off() has been called so that
14620 nested use can be treated correctly. This also avoids
14621 inband-signalling in the previous code (which relied on the
14622 assumption that thread ID 0 is impossible).
14623
14624 *Bodo Moeller*
14625
14626 * Add "-rand" option also to s_client and s_server.
14627
14628 *Lutz Jaenicke*
14629
14630 * Fix CPU detection on Irix 6.x.
14631 *Kurt Hockenbury <khockenb@stevens-tech.edu> and
257e9d03 14632 "Bruce W. Forsberg" <bruce.forsberg@baesystems.com>*
5f8e6c50
DMSP
14633
14634 * Fix X509_NAME bug which produced incorrect encoding if X509_NAME
14635 was empty.
14636
14637 *Steve Henson*
14638
14639 *This change does not apply to 0.9.7.*
14640
14641 * Use the cached encoding of an X509_NAME structure rather than
14642 copying it. This is apparently the reason for the libsafe "errors"
14643 but the code is actually correct.
14644
14645 *Steve Henson*
14646
14647 * Add new function BN_rand_range(), and fix DSA_sign_setup() to prevent
14648 Bleichenbacher's DSA attack.
14649 Extend BN_[pseudo_]rand: As before, top=1 forces the highest two bits
14650 to be set and top=0 forces the highest bit to be set; top=-1 is new
14651 and leaves the highest bit random.
14652
14653 *Ulf Moeller, Bodo Moeller*
14654
257e9d03 14655 * In the `NCONF_...`-based implementations for `CONF_...` queries
5f8e6c50
DMSP
14656 (crypto/conf/conf_lib.c), if the input LHASH is NULL, avoid using
14657 a temporary CONF structure with the data component set to NULL
14658 (which gives segmentation faults in lh_retrieve).
14659 Instead, use NULL for the CONF pointer in CONF_get_string and
14660 CONF_get_number (which may use environment variables) and directly
14661 return NULL from CONF_get_section.
14662
14663 *Bodo Moeller*
14664
14665 * Fix potential buffer overrun for EBCDIC.
14666
14667 *Ulf Moeller*
14668
14669 * Tolerate nonRepudiation as being valid for S/MIME signing and certSign
14670 keyUsage if basicConstraints absent for a CA.
14671
14672 *Steve Henson*
14673
14674 * Make SMIME_write_PKCS7() write mail header values with a format that
14675 is more generally accepted (no spaces before the semicolon), since
14676 some programs can't parse those values properly otherwise. Also make
14677 sure BIO's that break lines after each write do not create invalid
14678 headers.
14679
14680 *Richard Levitte*
14681
14682 * Make the CRL encoding routines work with empty SEQUENCE OF. The
14683 macros previously used would not encode an empty SEQUENCE OF
14684 and break the signature.
14685
14686 *Steve Henson*
14687
14688 *This change does not apply to 0.9.7.*
14689
14690 * Zero the premaster secret after deriving the master secret in
14691 DH ciphersuites.
14692
14693 *Steve Henson*
14694
14695 * Add some EVP_add_digest_alias registrations (as found in
14696 OpenSSL_add_all_digests()) to SSL_library_init()
14697 aka OpenSSL_add_ssl_algorithms(). This provides improved
14698 compatibility with peers using X.509 certificates
14699 with unconventional AlgorithmIdentifier OIDs.
14700
14701 *Bodo Moeller*
14702
14703 * Fix for Irix with NO_ASM.
14704
14705 *"Bruce W. Forsberg" <bruce.forsberg@baesystems.com>*
14706
14707 * ./config script fixes.
14708
14709 *Ulf Moeller, Richard Levitte*
14710
14711 * Fix 'openssl passwd -1'.
14712
14713 *Bodo Moeller*
14714
14715 * Change PKCS12_key_gen_asc() so it can cope with non null
14716 terminated strings whose length is passed in the passlen
14717 parameter, for example from PEM callbacks. This was done
14718 by adding an extra length parameter to asc2uni().
14719
14720 *Steve Henson, reported by <oddissey@samsung.co.kr>*
14721
14722 * Fix C code generated by 'openssl dsaparam -C': If a BN_bin2bn
14723 call failed, free the DSA structure.
14724
14725 *Bodo Moeller*
14726
14727 * Fix to uni2asc() to cope with zero length Unicode strings.
14728 These are present in some PKCS#12 files.
14729
14730 *Steve Henson*
14731
14732 * Increase s2->wbuf allocation by one byte in ssl2_new (ssl/s2_lib.c).
14733 Otherwise do_ssl_write (ssl/s2_pkt.c) will write beyond buffer limits
14734 when writing a 32767 byte record.
14735
14736 *Bodo Moeller; problem reported by Eric Day <eday@concentric.net>*
14737
257e9d03
RS
14738 * In `RSA_eay_public_{en,ed}crypt` and RSA_eay_mod_exp (rsa_eay.c),
14739 obtain lock CRYPTO_LOCK_RSA before setting `rsa->_method_mod_{n,p,q}`.
5f8e6c50
DMSP
14740
14741 (RSA objects have a reference count access to which is protected
14742 by CRYPTO_LOCK_RSA [see rsa_lib.c, s3_srvr.c, ssl_cert.c, ssl_rsa.c],
14743 so they are meant to be shared between threads.)
14744 *Bodo Moeller, Geoff Thorpe; original patch submitted by
14745 "Reddie, Steven" <Steven.Reddie@ca.com>*
14746
14747 * Fix a deadlock in CRYPTO_mem_leaks().
14748
14749 *Bodo Moeller*
14750
14751 * Use better test patterns in bntest.
14752
14753 *Ulf Möller*
14754
14755 * rand_win.c fix for Borland C.
14756
14757 *Ulf Möller*
14758
14759 * BN_rshift bugfix for n == 0.
14760
14761 *Bodo Moeller*
14762
14763 * Add a 'bctest' script that checks for some known 'bc' bugs
14764 so that 'make test' does not abort just because 'bc' is broken.
14765
14766 *Bodo Moeller*
14767
14768 * Store verify_result within SSL_SESSION also for client side to
14769 avoid potential security hole. (Re-used sessions on the client side
14770 always resulted in verify_result==X509_V_OK, not using the original
14771 result of the server certificate verification.)
14772
14773 *Lutz Jaenicke*
14774
14775 * Fix ssl3_pending: If the record in s->s3->rrec is not of type
14776 SSL3_RT_APPLICATION_DATA, return 0.
14777 Similarly, change ssl2_pending to return 0 if SSL_in_init(s) is true.
14778
14779 *Bodo Moeller*
14780
14781 * Fix SSL_peek:
14782 Both ssl2_peek and ssl3_peek, which were totally broken in earlier
14783 releases, have been re-implemented by renaming the previous
14784 implementations of ssl2_read and ssl3_read to ssl2_read_internal
14785 and ssl3_read_internal, respectively, and adding 'peek' parameters
14786 to them. The new ssl[23]_{read,peek} functions are calls to
14787 ssl[23]_read_internal with the 'peek' flag set appropriately.
14788 A 'peek' parameter has also been added to ssl3_read_bytes, which
14789 does the actual work for ssl3_read_internal.
14790
14791 *Bodo Moeller*
14792
14793 * Initialise "ex_data" member of RSA/DSA/DH structures prior to calling
14794 the method-specific "init()" handler. Also clean up ex_data after
14795 calling the method-specific "finish()" handler. Previously, this was
14796 happening the other way round.
14797
14798 *Geoff Thorpe*
14799
14800 * Increase BN_CTX_NUM (the number of BIGNUMs in a BN_CTX) to 16.
14801 The previous value, 12, was not always sufficient for BN_mod_exp().
14802
14803 *Bodo Moeller*
14804
14805 * Make sure that shared libraries get the internal name engine with
14806 the full version number and not just 0. This should mark the
14807 shared libraries as not backward compatible. Of course, this should
14808 be changed again when we can guarantee backward binary compatibility.
14809
14810 *Richard Levitte*
14811
14812 * Fix typo in get_cert_by_subject() in by_dir.c
14813
14814 *Jean-Marc Desperrier <jean-marc.desperrier@certplus.com>*
14815
14816 * Rework the system to generate shared libraries:
14817
14818 - Make note of the expected extension for the shared libraries and
14819 if there is a need for symbolic links from for example libcrypto.so.0
14820 to libcrypto.so.0.9.7. There is extended info in Configure for
14821 that.
14822
14823 - Make as few rebuilds of the shared libraries as possible.
14824
14825 - Still avoid linking the OpenSSL programs with the shared libraries.
14826
14827 - When installing, install the shared libraries separately from the
14828 static ones.
14829
14830 *Richard Levitte*
14831
14832 * Fix SSL_CTX_set_read_ahead macro to actually use its argument.
14833
14834 Copy SSL_CTX's read_ahead flag to SSL object directly in SSL_new
14835 and not in SSL_clear because the latter is also used by the
14836 accept/connect functions; previously, the settings made by
14837 SSL_set_read_ahead would be lost during the handshake.
14838
14839 *Bodo Moeller; problems reported by Anders Gertz <gertz@epact.se>*
14840
14841 * Correct util/mkdef.pl to be selective about disabled algorithms.
14842 Previously, it would create entries for disabled algorithms no
14843 matter what.
14844
14845 *Richard Levitte*
14846
14847 * Added several new manual pages for SSL_* function.
14848
14849 *Lutz Jaenicke*
14850
257e9d03 14851### Changes between 0.9.5a and 0.9.6 [24 Sep 2000]
5f8e6c50
DMSP
14852
14853 * In ssl23_get_client_hello, generate an error message when faced
14854 with an initial SSL 3.0/TLS record that is too small to contain the
14855 first two bytes of the ClientHello message, i.e. client_version.
14856 (Note that this is a pathologic case that probably has never happened
14857 in real life.) The previous approach was to use the version number
14858 from the record header as a substitute; but our protocol choice
14859 should not depend on that one because it is not authenticated
14860 by the Finished messages.
14861
14862 *Bodo Moeller*
14863
14864 * More robust randomness gathering functions for Windows.
14865
14866 *Jeffrey Altman <jaltman@columbia.edu>*
14867
14868 * For compatibility reasons if the flag X509_V_FLAG_ISSUER_CHECK is
14869 not set then we don't setup the error code for issuer check errors
14870 to avoid possibly overwriting other errors which the callback does
14871 handle. If an application does set the flag then we assume it knows
14872 what it is doing and can handle the new informational codes
14873 appropriately.
14874
14875 *Steve Henson*
14876
14877 * Fix for a nasty bug in ASN1_TYPE handling. ASN1_TYPE is used for
14878 a general "ANY" type, as such it should be able to decode anything
14879 including tagged types. However it didn't check the class so it would
14880 wrongly interpret tagged types in the same way as their universal
14881 counterpart and unknown types were just rejected. Changed so that the
14882 tagged and unknown types are handled in the same way as a SEQUENCE:
14883 that is the encoding is stored intact. There is also a new type
14884 "V_ASN1_OTHER" which is used when the class is not universal, in this
14885 case we have no idea what the actual type is so we just lump them all
14886 together.
14887
14888 *Steve Henson*
14889
14890 * On VMS, stdout may very well lead to a file that is written to
14891 in a record-oriented fashion. That means that every write() will
14892 write a separate record, which will be read separately by the
14893 programs trying to read from it. This can be very confusing.
14894
14895 The solution is to put a BIO filter in the way that will buffer
14896 text until a linefeed is reached, and then write everything a
14897 line at a time, so every record written will be an actual line,
14898 not chunks of lines and not (usually doesn't happen, but I've
14899 seen it once) several lines in one record. BIO_f_linebuffer() is
14900 the answer.
14901
14902 Currently, it's a VMS-only method, because that's where it has
14903 been tested well enough.
14904
14905 *Richard Levitte*
14906
14907 * Remove 'optimized' squaring variant in BN_mod_mul_montgomery,
14908 it can return incorrect results.
14909 (Note: The buggy variant was not enabled in OpenSSL 0.9.5a,
14910 but it was in 0.9.6-beta[12].)
14911
14912 *Bodo Moeller*
14913
14914 * Disable the check for content being present when verifying detached
14915 signatures in pk7_smime.c. Some versions of Netscape (wrongly)
14916 include zero length content when signing messages.
14917
14918 *Steve Henson*
14919
14920 * New BIO_shutdown_wr macro, which invokes the BIO_C_SHUTDOWN_WR
14921 BIO_ctrl (for BIO pairs).
14922
14923 *Bodo Möller*
14924
14925 * Add DSO method for VMS.
14926
14927 *Richard Levitte*
14928
14929 * Bug fix: Montgomery multiplication could produce results with the
14930 wrong sign.
14931
14932 *Ulf Möller*
14933
14934 * Add RPM specification openssl.spec and modify it to build three
14935 packages. The default package contains applications, application
14936 documentation and run-time libraries. The devel package contains
14937 include files, static libraries and function documentation. The
14938 doc package contains the contents of the doc directory. The original
14939 openssl.spec was provided by Damien Miller <djm@mindrot.org>.
14940
14941 *Richard Levitte*
14942
14943 * Add a large number of documentation files for many SSL routines.
14944
14945 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>*
14946
14947 * Add a configuration entry for Sony News 4.
14948
14949 *NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>*
14950
14951 * Don't set the two most significant bits to one when generating a
14952 random number < q in the DSA library.
14953
14954 *Ulf Möller*
14955
14956 * New SSL API mode 'SSL_MODE_AUTO_RETRY'. This disables the default
14957 behaviour that SSL_read may result in SSL_ERROR_WANT_READ (even if
14958 the underlying transport is blocking) if a handshake took place.
14959 (The default behaviour is needed by applications such as s_client
14960 and s_server that use select() to determine when to use SSL_read;
14961 but for applications that know in advance when to expect data, it
14962 just makes things more complicated.)
14963
14964 *Bodo Moeller*
14965
14966 * Add RAND_egd_bytes(), which gives control over the number of bytes read
14967 from EGD.
14968
14969 *Ben Laurie*
14970
257e9d03 14971 * Add a few more EBCDIC conditionals that make `req` and `x509`
5f8e6c50
DMSP
14972 work better on such systems.
14973
14974 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
14975
14976 * Add two demo programs for PKCS12_parse() and PKCS12_create().
14977 Update PKCS12_parse() so it copies the friendlyName and the
14978 keyid to the certificates aux info.
14979
14980 *Steve Henson*
14981
14982 * Fix bug in PKCS7_verify() which caused an infinite loop
14983 if there was more than one signature.
14984
14985 *Sven Uszpelkat <su@celocom.de>*
14986
14987 * Major change in util/mkdef.pl to include extra information
14988 about each symbol, as well as presenting variables as well
14989 as functions. This change means that there's n more need
14990 to rebuild the .num files when some algorithms are excluded.
14991
14992 *Richard Levitte*
14993
14994 * Allow the verify time to be set by an application,
14995 rather than always using the current time.
14996
14997 *Steve Henson*
14998
14999 * Phase 2 verify code reorganisation. The certificate
15000 verify code now looks up an issuer certificate by a
15001 number of criteria: subject name, authority key id
15002 and key usage. It also verifies self signed certificates
15003 by the same criteria. The main comparison function is
15004 X509_check_issued() which performs these checks.
15005
15006 Lot of changes were necessary in order to support this
15007 without completely rewriting the lookup code.
15008
15009 Authority and subject key identifier are now cached.
15010
15011 The LHASH 'certs' is X509_STORE has now been replaced
15012 by a STACK_OF(X509_OBJECT). This is mainly because an
15013 LHASH can't store or retrieve multiple objects with
15014 the same hash value.
15015
15016 As a result various functions (which were all internal
15017 use only) have changed to handle the new X509_STORE
15018 structure. This will break anything that messed round
15019 with X509_STORE internally.
15020
15021 The functions X509_STORE_add_cert() now checks for an
15022 exact match, rather than just subject name.
15023
15024 The X509_STORE API doesn't directly support the retrieval
15025 of multiple certificates matching a given criteria, however
15026 this can be worked round by performing a lookup first
15027 (which will fill the cache with candidate certificates)
15028 and then examining the cache for matches. This is probably
15029 the best we can do without throwing out X509_LOOKUP
15030 entirely (maybe later...).
15031
15032 The X509_VERIFY_CTX structure has been enhanced considerably.
15033
15034 All certificate lookup operations now go via a get_issuer()
15035 callback. Although this currently uses an X509_STORE it
15036 can be replaced by custom lookups. This is a simple way
15037 to bypass the X509_STORE hackery necessary to make this
15038 work and makes it possible to use more efficient techniques
15039 in future. A very simple version which uses a simple
15040 STACK for its trusted certificate store is also provided
15041 using X509_STORE_CTX_trusted_stack().
15042
15043 The verify_cb() and verify() callbacks now have equivalents
15044 in the X509_STORE_CTX structure.
15045
15046 X509_STORE_CTX also has a 'flags' field which can be used
15047 to customise the verify behaviour.
15048
15049 *Steve Henson*
15050
15051 * Add new PKCS#7 signing option PKCS7_NOSMIMECAP which
15052 excludes S/MIME capabilities.
15053
15054 *Steve Henson*
15055
15056 * When a certificate request is read in keep a copy of the
15057 original encoding of the signed data and use it when outputting
15058 again. Signatures then use the original encoding rather than
15059 a decoded, encoded version which may cause problems if the
15060 request is improperly encoded.
15061
15062 *Steve Henson*
15063
15064 * For consistency with other BIO_puts implementations, call
15065 buffer_write(b, ...) directly in buffer_puts instead of calling
15066 BIO_write(b, ...).
15067
15068 In BIO_puts, increment b->num_write as in BIO_write.
15069
15070 *Peter.Sylvester@EdelWeb.fr*
15071
15072 * Fix BN_mul_word for the case where the word is 0. (We have to use
15073 BN_zero, we may not return a BIGNUM with an array consisting of
15074 words set to zero.)
15075
15076 *Bodo Moeller*
15077
15078 * Avoid calling abort() from within the library when problems are
15079 detected, except if preprocessor symbols have been defined
15080 (such as REF_CHECK, BN_DEBUG etc.).
15081
15082 *Bodo Moeller*
15083
15084 * New openssl application 'rsautl'. This utility can be
4d49b685 15085 used for low-level RSA operations. DER public key
5f8e6c50
DMSP
15086 BIO/fp routines also added.
15087
15088 *Steve Henson*
15089
15090 * New Configure entry and patches for compiling on QNX 4.
15091
15092 *Andreas Schneider <andreas@ds3.etech.fh-hamburg.de>*
15093
15094 * A demo state-machine implementation was sponsored by
257e9d03 15095 Nuron (<http://www.nuron.com/>) and is now available in
5f8e6c50
DMSP
15096 demos/state_machine.
15097
15098 *Ben Laurie*
15099
15100 * New options added to the 'dgst' utility for signature
15101 generation and verification.
15102
15103 *Steve Henson*
15104
15105 * Unrecognized PKCS#7 content types are now handled via a
15106 catch all ASN1_TYPE structure. This allows unsupported
15107 types to be stored as a "blob" and an application can
15108 encode and decode it manually.
15109
15110 *Steve Henson*
15111
15112 * Fix various signed/unsigned issues to make a_strex.c
15113 compile under VC++.
15114
15115 *Oscar Jacobsson <oscar.jacobsson@celocom.com>*
15116
15117 * ASN1 fixes. i2d_ASN1_OBJECT was not returning the correct
15118 length if passed a buffer. ASN1_INTEGER_to_BN failed
15119 if passed a NULL BN and its argument was negative.
15120
15121 *Steve Henson, pointed out by Sven Heiberg <sven@tartu.cyber.ee>*
15122
15123 * Modification to PKCS#7 encoding routines to output definite
15124 length encoding. Since currently the whole structures are in
15125 memory there's not real point in using indefinite length
15126 constructed encoding. However if OpenSSL is compiled with
15127 the flag PKCS7_INDEFINITE_ENCODING the old form is used.
15128
15129 *Steve Henson*
15130
15131 * Added BIO_vprintf() and BIO_vsnprintf().
15132
15133 *Richard Levitte*
15134
15135 * Added more prefixes to parse for in the strings written
15136 through a logging bio, to cover all the levels that are available
15137 through syslog. The prefixes are now:
15138
15139 PANIC, EMERG, EMR => LOG_EMERG
15140 ALERT, ALR => LOG_ALERT
15141 CRIT, CRI => LOG_CRIT
15142 ERROR, ERR => LOG_ERR
15143 WARNING, WARN, WAR => LOG_WARNING
15144 NOTICE, NOTE, NOT => LOG_NOTICE
15145 INFO, INF => LOG_INFO
15146 DEBUG, DBG => LOG_DEBUG
15147
15148 and as before, if none of those prefixes are present at the
15149 beginning of the string, LOG_ERR is chosen.
15150
257e9d03 15151 On Win32, the `LOG_*` levels are mapped according to this:
5f8e6c50
DMSP
15152
15153 LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR => EVENTLOG_ERROR_TYPE
15154 LOG_WARNING => EVENTLOG_WARNING_TYPE
15155 LOG_NOTICE, LOG_INFO, LOG_DEBUG => EVENTLOG_INFORMATION_TYPE
15156
5f8e6c50
DMSP
15157 *Richard Levitte*
15158
15159 * Made it possible to reconfigure with just the configuration
15160 argument "reconf" or "reconfigure". The command line arguments
15161 are stored in Makefile.ssl in the variable CONFIGURE_ARGS,
15162 and are retrieved from there when reconfiguring.
15163
15164 *Richard Levitte*
15165
15166 * MD4 implemented.
15167
15168 *Assar Westerlund <assar@sics.se>, Richard Levitte*
15169
15170 * Add the arguments -CAfile and -CApath to the pkcs12 utility.
15171
15172 *Richard Levitte*
15173
15174 * The obj_dat.pl script was messing up the sorting of object
15175 names. The reason was that it compared the quoted version
15176 of strings as a result "OCSP" > "OCSP Signing" because
15177 " > SPACE. Changed script to store unquoted versions of
15178 names and add quotes on output. It was also omitting some
15179 names from the lookup table if they were given a default
15180 value (that is if SN is missing it is given the same
15181 value as LN and vice versa), these are now added on the
15182 grounds that if an object has a name we should be able to
15183 look it up. Finally added warning output when duplicate
15184 short or long names are found.
15185
15186 *Steve Henson*
15187
15188 * Changes needed for Tandem NSK.
15189
15190 *Scott Uroff <scott@xypro.com>*
15191
15192 * Fix SSL 2.0 rollback checking: Due to an off-by-one error in
15193 RSA_padding_check_SSLv23(), special padding was never detected
15194 and thus the SSL 3.0/TLS 1.0 countermeasure against protocol
15195 version rollback attacks was not effective.
15196
15197 In s23_clnt.c, don't use special rollback-attack detection padding
15198 (RSA_SSLV23_PADDING) if SSL 2.0 is the only protocol enabled in the
15199 client; similarly, in s23_srvr.c, don't do the rollback check if
15200 SSL 2.0 is the only protocol enabled in the server.
15201
15202 *Bodo Moeller*
15203
15204 * Make it possible to get hexdumps of unprintable data with 'openssl
15205 asn1parse'. By implication, the functions ASN1_parse_dump() and
15206 BIO_dump_indent() are added.
15207
15208 *Richard Levitte*
15209
15210 * New functions ASN1_STRING_print_ex() and X509_NAME_print_ex()
15211 these print out strings and name structures based on various
15212 flags including RFC2253 support and proper handling of
15213 multibyte characters. Added options to the 'x509' utility
15214 to allow the various flags to be set.
15215
15216 *Steve Henson*
15217
15218 * Various fixes to use ASN1_TIME instead of ASN1_UTCTIME.
15219 Also change the functions X509_cmp_current_time() and
15220 X509_gmtime_adj() work with an ASN1_TIME structure,
15221 this will enable certificates using GeneralizedTime in validity
15222 dates to be checked.
15223
15224 *Steve Henson*
15225
15226 * Make the NEG_PUBKEY_BUG code (which tolerates invalid
15227 negative public key encodings) on by default,
15228 NO_NEG_PUBKEY_BUG can be set to disable it.
15229
15230 *Steve Henson*
15231
15232 * New function c2i_ASN1_OBJECT() which acts on ASN1_OBJECT
15233 content octets. An i2c_ASN1_OBJECT is unnecessary because
15234 the encoding can be trivially obtained from the structure.
15235
15236 *Steve Henson*
15237
257e9d03
RS
15238 * crypto/err.c locking bugfix: Use write locks (`CRYPTO_w_[un]lock`),
15239 not read locks (`CRYPTO_r_[un]lock`).
5f8e6c50
DMSP
15240
15241 *Bodo Moeller*
15242
15243 * A first attempt at creating official support for shared
15244 libraries through configuration. I've kept it so the
15245 default is static libraries only, and the OpenSSL programs
15246 are always statically linked for now, but there are
15247 preparations for dynamic linking in place.
15248 This has been tested on Linux and Tru64.
15249
15250 *Richard Levitte*
15251
15252 * Randomness polling function for Win9x, as described in:
15253 Peter Gutmann, Software Generation of Practically Strong
15254 Random Numbers.
15255
15256 *Ulf Möller*
15257
15258 * Fix so PRNG is seeded in req if using an already existing
15259 DSA key.
15260
15261 *Steve Henson*
15262
15263 * New options to smime application. -inform and -outform
15264 allow alternative formats for the S/MIME message including
15265 PEM and DER. The -content option allows the content to be
15266 specified separately. This should allow things like Netscape
15267 form signing output easier to verify.
15268
15269 *Steve Henson*
15270
15271 * Fix the ASN1 encoding of tags using the 'long form'.
15272
15273 *Steve Henson*
15274
257e9d03 15275 * New ASN1 functions, `i2c_*` and `c2i_*` for INTEGER and BIT
5f8e6c50
DMSP
15276 STRING types. These convert content octets to and from the
15277 underlying type. The actual tag and length octets are
15278 already assumed to have been read in and checked. These
15279 are needed because all other string types have virtually
15280 identical handling apart from the tag. By having versions
15281 of the ASN1 functions that just operate on content octets
15282 IMPLICIT tagging can be handled properly. It also allows
15283 the ASN1_ENUMERATED code to be cut down because ASN1_ENUMERATED
15284 and ASN1_INTEGER are identical apart from the tag.
15285
15286 *Steve Henson*
15287
15288 * Change the handling of OID objects as follows:
15289
15290 - New object identifiers are inserted in objects.txt, following
1dc1ea18 15291 the syntax given in [crypto/objects/README.md](crypto/objects/README.md).
5f8e6c50
DMSP
15292 - objects.pl is used to process obj_mac.num and create a new
15293 obj_mac.h.
15294 - obj_dat.pl is used to create a new obj_dat.h, using the data in
15295 obj_mac.h.
15296
15297 This is currently kind of a hack, and the perl code in objects.pl
15298 isn't very elegant, but it works as I intended. The simplest way
15299 to check that it worked correctly is to look in obj_dat.h and
15300 check the array nid_objs and make sure the objects haven't moved
15301 around (this is important!). Additions are OK, as well as
15302 consistent name changes.
15303
15304 *Richard Levitte*
15305
15306 * Add BSD-style MD5-based passwords to 'openssl passwd' (option '-1').
15307
15308 *Bodo Moeller*
15309
15310 * Addition of the command line parameter '-rand file' to 'openssl req'.
15311 The given file adds to whatever has already been seeded into the
15312 random pool through the RANDFILE configuration file option or
15313 environment variable, or the default random state file.
15314
15315 *Richard Levitte*
15316
15317 * mkstack.pl now sorts each macro group into lexical order.
15318 Previously the output order depended on the order the files
15319 appeared in the directory, resulting in needless rewriting
15320 of safestack.h .
15321
15322 *Steve Henson*
15323
15324 * Patches to make OpenSSL compile under Win32 again. Mostly
15325 work arounds for the VC++ problem that it treats func() as
15326 func(void). Also stripped out the parts of mkdef.pl that
15327 added extra typesafe functions: these no longer exist.
15328
15329 *Steve Henson*
15330
15331 * Reorganisation of the stack code. The macros are now all
15332 collected in safestack.h . Each macro is defined in terms of
257e9d03 15333 a "stack macro" of the form `SKM_<name>(type, a, b)`. The
5f8e6c50
DMSP
15334 DEBUG_SAFESTACK is now handled in terms of function casts,
15335 this has the advantage of retaining type safety without the
15336 use of additional functions. If DEBUG_SAFESTACK is not defined
15337 then the non typesafe macros are used instead. Also modified the
15338 mkstack.pl script to handle the new form. Needs testing to see
15339 if which (if any) compilers it chokes and maybe make DEBUG_SAFESTACK
15340 the default if no major problems. Similar behaviour for ASN1_SET_OF
15341 and PKCS12_STACK_OF.
15342
15343 *Steve Henson*
15344
15345 * When some versions of IIS use the 'NET' form of private key the
15346 key derivation algorithm is different. Normally MD5(password) is
15347 used as a 128 bit RC4 key. In the modified case
15348 MD5(MD5(password) + "SGCKEYSALT") is used instead. Added some
15349 new functions i2d_RSA_NET(), d2i_RSA_NET() etc which are the same
15350 as the old Netscape_RSA functions except they have an additional
15351 'sgckey' parameter which uses the modified algorithm. Also added
15352 an -sgckey command line option to the rsa utility. Thanks to
15353 Adrian Peck <bertie@ncipher.com> for posting details of the modified
15354 algorithm to openssl-dev.
15355
15356 *Steve Henson*
15357
15358 * The evp_local.h macros were using 'c.##kname' which resulted in
15359 invalid expansion on some systems (SCO 5.0.5 for example).
15360 Corrected to 'c.kname'.
15361
15362 *Phillip Porch <root@theporch.com>*
15363
15364 * New X509_get1_email() and X509_REQ_get1_email() functions that return
15365 a STACK of email addresses from a certificate or request, these look
15366 in the subject name and the subject alternative name extensions and
15367 omit any duplicate addresses.
15368
15369 *Steve Henson*
15370
15371 * Re-implement BN_mod_exp2_mont using independent (and larger) windows.
15372 This makes DSA verification about 2 % faster.
15373
15374 *Bodo Moeller*
15375
257e9d03 15376 * Increase maximum window size in `BN_mod_exp_...` to 6 bits instead of 5
5f8e6c50
DMSP
15377 (meaning that now 2^5 values will be precomputed, which is only 4 KB
15378 plus overhead for 1024 bit moduli).
15379 This makes exponentiations about 0.5 % faster for 1024 bit
15380 exponents (as measured by "openssl speed rsa2048").
15381
15382 *Bodo Moeller*
15383
15384 * Rename memory handling macros to avoid conflicts with other
15385 software:
15386 Malloc => OPENSSL_malloc
15387 Malloc_locked => OPENSSL_malloc_locked
15388 Realloc => OPENSSL_realloc
15389 Free => OPENSSL_free
15390
15391 *Richard Levitte*
15392
15393 * New function BN_mod_exp_mont_word for small bases (roughly 15%
15394 faster than BN_mod_exp_mont, i.e. 7% for a full DH exchange).
15395
15396 *Bodo Moeller*
15397
15398 * CygWin32 support.
15399
15400 *John Jarvie <jjarvie@newsguy.com>*
15401
15402 * The type-safe stack code has been rejigged. It is now only compiled
15403 in when OpenSSL is configured with the DEBUG_SAFESTACK option and
15404 by default all type-specific stack functions are "#define"d back to
15405 standard stack functions. This results in more streamlined output
15406 but retains the type-safety checking possibilities of the original
15407 approach.
15408
15409 *Geoff Thorpe*
15410
15411 * The STACK code has been cleaned up, and certain type declarations
15412 that didn't make a lot of sense have been brought in line. This has
15413 also involved a cleanup of sorts in safestack.h to more correctly
15414 map type-safe stack functions onto their plain stack counterparts.
15415 This work has also resulted in a variety of "const"ifications of
257e9d03 15416 lots of the code, especially `_cmp` operations which should normally
5f8e6c50
DMSP
15417 be prototyped with "const" parameters anyway.
15418
15419 *Geoff Thorpe*
15420
15421 * When generating bytes for the first time in md_rand.c, 'stir the pool'
15422 by seeding with STATE_SIZE dummy bytes (with zero entropy count).
15423 (The PRNG state consists of two parts, the large pool 'state' and 'md',
15424 where all of 'md' is used each time the PRNG is used, but 'state'
15425 is used only indexed by a cyclic counter. As entropy may not be
15426 well distributed from the beginning, 'md' is important as a
15427 chaining variable. However, the output function chains only half
15428 of 'md', i.e. 80 bits. ssleay_rand_add, on the other hand, chains
15429 all of 'md', and seeding with STATE_SIZE dummy bytes will result
15430 in all of 'state' being rewritten, with the new values depending
15431 on virtually all of 'md'. This overcomes the 80 bit limitation.)
15432
15433 *Bodo Moeller*
15434
15435 * In ssl/s2_clnt.c and ssl/s3_clnt.c, call ERR_clear_error() when
15436 the handshake is continued after ssl_verify_cert_chain();
15437 otherwise, if SSL_VERIFY_NONE is set, remaining error codes
15438 can lead to 'unexplainable' connection aborts later.
15439
15440 *Bodo Moeller; problem tracked down by Lutz Jaenicke*
15441
15442 * Major EVP API cipher revision.
15443 Add hooks for extra EVP features. This allows various cipher
15444 parameters to be set in the EVP interface. Support added for variable
15445 key length ciphers via the EVP_CIPHER_CTX_set_key_length() function and
15446 setting of RC2 and RC5 parameters.
15447
15448 Modify EVP_OpenInit() and EVP_SealInit() to cope with variable key length
15449 ciphers.
15450
15451 Remove lots of duplicated code from the EVP library. For example *every*
15452 cipher init() function handles the 'iv' in the same way according to the
15453 cipher mode. They also all do nothing if the 'key' parameter is NULL and
15454 for CFB and OFB modes they zero ctx->num.
15455
15456 New functionality allows removal of S/MIME code RC2 hack.
15457
15458 Most of the routines have the same form and so can be declared in terms
15459 of macros.
15460
15461 By shifting this to the top level EVP_CipherInit() it can be removed from
15462 all individual ciphers. If the cipher wants to handle IVs or keys
15463 differently it can set the EVP_CIPH_CUSTOM_IV or EVP_CIPH_ALWAYS_CALL_INIT
15464 flags.
15465
15466 Change lots of functions like EVP_EncryptUpdate() to now return a
15467 value: although software versions of the algorithms cannot fail
15468 any installed hardware versions can.
15469
15470 *Steve Henson*
15471
15472 * Implement SSL_OP_TLS_ROLLBACK_BUG: In ssl3_get_client_key_exchange, if
15473 this option is set, tolerate broken clients that send the negotiated
15474 protocol version number instead of the requested protocol version
15475 number.
15476
15477 *Bodo Moeller*
15478
257e9d03 15479 * Call dh_tmp_cb (set by `..._TMP_DH_CB`) with correct 'is_export' flag;
5f8e6c50
DMSP
15480 i.e. non-zero for export ciphersuites, zero otherwise.
15481 Previous versions had this flag inverted, inconsistent with
15482 rsa_tmp_cb (..._TMP_RSA_CB).
15483
15484 *Bodo Moeller; problem reported by Amit Chopra*
15485
15486 * Add missing DSA library text string. Work around for some IIS
15487 key files with invalid SEQUENCE encoding.
15488
15489 *Steve Henson*
15490
15491 * Add a document (doc/standards.txt) that list all kinds of standards
15492 and so on that are implemented in OpenSSL.
15493
15494 *Richard Levitte*
15495
15496 * Enhance c_rehash script. Old version would mishandle certificates
15497 with the same subject name hash and wouldn't handle CRLs at all.
15498 Added -fingerprint option to crl utility, to support new c_rehash
15499 features.
15500
15501 *Steve Henson*
15502
15503 * Eliminate non-ANSI declarations in crypto.h and stack.h.
15504
15505 *Ulf Möller*
15506
15507 * Fix for SSL server purpose checking. Server checking was
15508 rejecting certificates which had extended key usage present
15509 but no ssl client purpose.
15510
15511 *Steve Henson, reported by Rene Grosser <grosser@hisolutions.com>*
15512
15513 * Make PKCS#12 code work with no password. The PKCS#12 spec
15514 is a little unclear about how a blank password is handled.
15515 Since the password in encoded as a BMPString with terminating
15516 double NULL a zero length password would end up as just the
15517 double NULL. However no password at all is different and is
15518 handled differently in the PKCS#12 key generation code. NS
15519 treats a blank password as zero length. MSIE treats it as no
15520 password on export: but it will try both on import. We now do
15521 the same: PKCS12_parse() tries zero length and no password if
15522 the password is set to "" or NULL (NULL is now a valid password:
15523 it wasn't before) as does the pkcs12 application.
15524
15525 *Steve Henson*
15526
ec2bfb7d 15527 * Bugfixes in `apps/x509.c`: Avoid a memory leak; and don't use
5f8e6c50
DMSP
15528 perror when PEM_read_bio_X509_REQ fails, the error message must
15529 be obtained from the error queue.
15530
15531 *Bodo Moeller*
15532
15533 * Avoid 'thread_hash' memory leak in crypto/err/err.c by freeing
15534 it in ERR_remove_state if appropriate, and change ERR_get_state
15535 accordingly to avoid race conditions (this is necessary because
15536 thread_hash is no longer constant once set).
15537
15538 *Bodo Moeller*
15539
15540 * Bugfix for linux-elf makefile.one.
15541
15542 *Ulf Möller*
15543
15544 * RSA_get_default_method() will now cause a default
15545 RSA_METHOD to be chosen if one doesn't exist already.
15546 Previously this was only set during a call to RSA_new()
15547 or RSA_new_method(NULL) meaning it was possible for
15548 RSA_get_default_method() to return NULL.
15549
15550 *Geoff Thorpe*
15551
15552 * Added native name translation to the existing DSO code
15553 that will convert (if the flag to do so is set) filenames
15554 that are sufficiently small and have no path information
15555 into a canonical native form. Eg. "blah" converted to
15556 "libblah.so" or "blah.dll" etc.
15557
15558 *Geoff Thorpe*
15559
15560 * New function ERR_error_string_n(e, buf, len) which is like
15561 ERR_error_string(e, buf), but writes at most 'len' bytes
15562 including the 0 terminator. For ERR_error_string_n, 'buf'
15563 may not be NULL.
15564
15565 *Damien Miller <djm@mindrot.org>, Bodo Moeller*
15566
15567 * CONF library reworked to become more general. A new CONF
15568 configuration file reader "class" is implemented as well as a
257e9d03
RS
15569 new functions (`NCONF_*`, for "New CONF") to handle it. The now
15570 old `CONF_*` functions are still there, but are reimplemented to
5f8e6c50
DMSP
15571 work in terms of the new functions. Also, a set of functions
15572 to handle the internal storage of the configuration data is
15573 provided to make it easier to write new configuration file
15574 reader "classes" (I can definitely see something reading a
257e9d03 15575 configuration file in XML format, for example), called `_CONF_*`,
5f8e6c50
DMSP
15576 or "the configuration storage API"...
15577
15578 The new configuration file reading functions are:
15579
15580 NCONF_new, NCONF_free, NCONF_load, NCONF_load_fp, NCONF_load_bio,
15581 NCONF_get_section, NCONF_get_string, NCONF_get_numbre
15582
15583 NCONF_default, NCONF_WIN32
15584
15585 NCONF_dump_fp, NCONF_dump_bio
15586
15587 NCONF_default and NCONF_WIN32 are method (or "class") choosers,
15588 NCONF_new creates a new CONF object. This works in the same way
15589 as other interfaces in OpenSSL, like the BIO interface.
257e9d03 15590 `NCONF_dump_*` dump the internal storage of the configuration file,
5f8e6c50 15591 which is useful for debugging. All other functions take the same
257e9d03
RS
15592 arguments as the old `CONF_*` functions with the exception of the
15593 first that must be a `CONF *` instead of a `LHASH *`.
5f8e6c50 15594
257e9d03 15595 To make it easier to use the new classes with the old `CONF_*` functions,
5f8e6c50
DMSP
15596 the function CONF_set_default_method is provided.
15597
15598 *Richard Levitte*
15599
15600 * Add '-tls1' option to 'openssl ciphers', which was already
15601 mentioned in the documentation but had not been implemented.
15602 (This option is not yet really useful because even the additional
15603 experimental TLS 1.0 ciphers are currently treated as SSL 3.0 ciphers.)
15604
15605 *Bodo Moeller*
15606
15607 * Initial DSO code added into libcrypto for letting OpenSSL (and
15608 OpenSSL-based applications) load shared libraries and bind to
15609 them in a portable way.
15610
15611 *Geoff Thorpe, with contributions from Richard Levitte*
15612
257e9d03 15613### Changes between 0.9.5 and 0.9.5a [1 Apr 2000]
5f8e6c50
DMSP
15614
15615 * Make sure _lrotl and _lrotr are only used with MSVC.
15616
15617 * Use lock CRYPTO_LOCK_RAND correctly in ssleay_rand_status
15618 (the default implementation of RAND_status).
15619
15620 * Rename openssl x509 option '-crlext', which was added in 0.9.5,
15621 to '-clrext' (= clear extensions), as intended and documented.
15622 *Bodo Moeller; inconsistency pointed out by Michael Attili
15623 <attili@amaxo.com>*
15624
15625 * Fix for HMAC. It wasn't zeroing the rest of the block if the key length
15626 was larger than the MD block size.
15627
15628 *Steve Henson, pointed out by Yost William <YostW@tce.com>*
15629
15630 * Modernise PKCS12_parse() so it uses STACK_OF(X509) for its ca argument
15631 fix a leak when the ca argument was passed as NULL. Stop X509_PUBKEY_set()
15632 using the passed key: if the passed key was a private key the result
15633 of X509_print(), for example, would be to print out all the private key
15634 components.
15635
15636 *Steve Henson*
15637
15638 * des_quad_cksum() byte order bug fix.
15639 *Ulf Möller, using the problem description in krb4-0.9.7, where
257e9d03 15640 the solution is attributed to Derrick J Brashear <shadow@DEMENTIA.ORG>*
5f8e6c50
DMSP
15641
15642 * Fix so V_ASN1_APP_CHOOSE works again: however its use is strongly
15643 discouraged.
15644
15645 *Steve Henson, pointed out by Brian Korver <briank@cs.stanford.edu>*
15646
15647 * For easily testing in shell scripts whether some command
15648 'openssl XXX' exists, the new pseudo-command 'openssl no-XXX'
15649 returns with exit code 0 iff no command of the given name is available.
15650 'no-XXX' is printed in this case, 'XXX' otherwise. In both cases,
15651 the output goes to stdout and nothing is printed to stderr.
15652 Additional arguments are always ignored.
15653
15654 Since for each cipher there is a command of the same name,
15655 the 'no-cipher' compilation switches can be tested this way.
15656
15657 ('openssl no-XXX' is not able to detect pseudo-commands such
15658 as 'quit', 'list-XXX-commands', or 'no-XXX' itself.)
15659
15660 *Bodo Moeller*
15661
15662 * Update test suite so that 'make test' succeeds in 'no-rsa' configuration.
15663
15664 *Bodo Moeller*
15665
15666 * For SSL_[CTX_]set_tmp_dh, don't create a DH key if SSL_OP_SINGLE_DH_USE
15667 is set; it will be thrown away anyway because each handshake creates
15668 its own key.
15669 ssl_cert_dup, which is used by SSL_new, now copies DH keys in addition
15670 to parameters -- in previous versions (since OpenSSL 0.9.3) the
15671 'default key' from SSL_CTX_set_tmp_dh would always be lost, meaning
15672 you effectively got SSL_OP_SINGLE_DH_USE when using this macro.
15673
15674 *Bodo Moeller*
15675
15676 * New s_client option -ign_eof: EOF at stdin is ignored, and
15677 'Q' and 'R' lose their special meanings (quit/renegotiate).
15678 This is part of what -quiet does; unlike -quiet, -ign_eof
15679 does not suppress any output.
15680
15681 *Richard Levitte*
15682
15683 * Add compatibility options to the purpose and trust code. The
15684 purpose X509_PURPOSE_ANY is "any purpose" which automatically
15685 accepts a certificate or CA, this was the previous behaviour,
15686 with all the associated security issues.
15687
15688 X509_TRUST_COMPAT is the old trust behaviour: only and
15689 automatically trust self signed roots in certificate store. A
15690 new trust setting X509_TRUST_DEFAULT is used to specify that
15691 a purpose has no associated trust setting and it should instead
15692 use the value in the default purpose.
15693
15694 *Steve Henson*
15695
15696 * Fix the PKCS#8 DSA private key code so it decodes keys again
15697 and fix a memory leak.
15698
15699 *Steve Henson*
15700
15701 * In util/mkerr.pl (which implements 'make errors'), preserve
15702 reason strings from the previous version of the .c file, as
15703 the default to have only downcase letters (and digits) in
15704 automatically generated reasons codes is not always appropriate.
15705
15706 *Bodo Moeller*
15707
15708 * In ERR_load_ERR_strings(), build an ERR_LIB_SYS error reason table
15709 using strerror. Previously, ERR_reason_error_string() returned
15710 library names as reason strings for SYSerr; but SYSerr is a special
15711 case where small numbers are errno values, not library numbers.
15712
15713 *Bodo Moeller*
15714
15715 * Add '-dsaparam' option to 'openssl dhparam' application. This
15716 converts DSA parameters into DH parameters. (When creating parameters,
15717 DSA_generate_parameters is used.)
15718
15719 *Bodo Moeller*
15720
15721 * Include 'length' (recommended exponent length) in C code generated
15722 by 'openssl dhparam -C'.
15723
15724 *Bodo Moeller*
15725
15726 * The second argument to set_label in perlasm was already being used
15727 so couldn't be used as a "file scope" flag. Moved to third argument
15728 which was free.
15729
15730 *Steve Henson*
15731
15732 * In PEM_ASN1_write_bio and some other functions, use RAND_pseudo_bytes
15733 instead of RAND_bytes for encryption IVs and salts.
15734
15735 *Bodo Moeller*
15736
15737 * Include RAND_status() into RAND_METHOD instead of implementing
15738 it only for md_rand.c Otherwise replacing the PRNG by calling
15739 RAND_set_rand_method would be impossible.
15740
15741 *Bodo Moeller*
15742
15743 * Don't let DSA_generate_key() enter an infinite loop if the random
15744 number generation fails.
15745
15746 *Bodo Moeller*
15747
15748 * New 'rand' application for creating pseudo-random output.
15749
15750 *Bodo Moeller*
15751
15752 * Added configuration support for Linux/IA64
15753
15754 *Rolf Haberrecker <rolf@suse.de>*
15755
15756 * Assembler module support for Mingw32.
15757
15758 *Ulf Möller*
15759
15760 * Shared library support for HPUX (in shlib/).
15761
15762 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE> and Anonymous*
15763
15764 * Shared library support for Solaris gcc.
15765
15766 *Lutz Behnke <behnke@trustcenter.de>*
15767
257e9d03 15768### Changes between 0.9.4 and 0.9.5 [28 Feb 2000]
5f8e6c50
DMSP
15769
15770 * PKCS7_encrypt() was adding text MIME headers twice because they
15771 were added manually and by SMIME_crlf_copy().
15772
15773 *Steve Henson*
15774
15775 * In bntest.c don't call BN_rand with zero bits argument.
15776
15777 *Steve Henson, pointed out by Andrew W. Gray <agray@iconsinc.com>*
15778
15779 * BN_mul bugfix: In bn_mul_part_recursion() only the a>a[n] && b>b[n]
15780 case was implemented. This caused BN_div_recp() to fail occasionally.
15781
15782 *Ulf Möller*
15783
15784 * Add an optional second argument to the set_label() in the perl
15785 assembly language builder. If this argument exists and is set
15786 to 1 it signals that the assembler should use a symbol whose
15787 scope is the entire file, not just the current function. This
15788 is needed with MASM which uses the format label:: for this scope.
15789
15790 *Steve Henson, pointed out by Peter Runestig <peter@runestig.com>*
15791
15792 * Change the ASN1 types so they are typedefs by default. Before
15793 almost all types were #define'd to ASN1_STRING which was causing
15794 STACK_OF() problems: you couldn't declare STACK_OF(ASN1_UTF8STRING)
15795 for example.
15796
15797 *Steve Henson*
15798
15799 * Change names of new functions to the new get1/get0 naming
15800 convention: After 'get1', the caller owns a reference count
257e9d03 15801 and has to call `..._free`; 'get0' returns a pointer to some
5f8e6c50
DMSP
15802 data structure without incrementing reference counters.
15803 (Some of the existing 'get' functions increment a reference
15804 counter, some don't.)
15805 Similarly, 'set1' and 'add1' functions increase reference
15806 counters or duplicate objects.
15807
15808 *Steve Henson*
15809
15810 * Allow for the possibility of temp RSA key generation failure:
15811 the code used to assume it always worked and crashed on failure.
15812
15813 *Steve Henson*
15814
15815 * Fix potential buffer overrun problem in BIO_printf().
15816 *Ulf Möller, using public domain code by Patrick Powell; problem
257e9d03 15817 pointed out by David Sacerdote <das33@cornell.edu>*
5f8e6c50
DMSP
15818
15819 * Support EGD <http://www.lothar.com/tech/crypto/>. New functions
15820 RAND_egd() and RAND_status(). In the command line application,
15821 the EGD socket can be specified like a seed file using RANDFILE
15822 or -rand.
15823
15824 *Ulf Möller*
15825
15826 * Allow the string CERTIFICATE to be tolerated in PKCS#7 structures.
15827 Some CAs (e.g. Verisign) distribute certificates in this form.
15828
15829 *Steve Henson*
15830
15831 * Remove the SSL_ALLOW_ADH compile option and set the default cipher
15832 list to exclude them. This means that no special compilation option
15833 is needed to use anonymous DH: it just needs to be included in the
15834 cipher list.
15835
15836 *Steve Henson*
15837
15838 * Change the EVP_MD_CTX_type macro so its meaning consistent with
15839 EVP_MD_type. The old functionality is available in a new macro called
15840 EVP_MD_md(). Change code that uses it and update docs.
15841
15842 *Steve Henson*
15843
257e9d03
RS
15844 * `..._ctrl` functions now have corresponding `..._callback_ctrl` functions
15845 where the `void *` argument is replaced by a function pointer argument.
15846 Previously `void *` was abused to point to functions, which works on
5f8e6c50
DMSP
15847 many platforms, but is not correct. As these functions are usually
15848 called by macros defined in OpenSSL header files, most source code
15849 should work without changes.
15850
15851 *Richard Levitte*
15852
257e9d03 15853 * `<openssl/opensslconf.h>` (which is created by Configure) now contains
5f8e6c50
DMSP
15854 sections with information on -D... compiler switches used for
15855 compiling the library so that applications can see them. To enable
257e9d03 15856 one of these sections, a pre-processor symbol `OPENSSL_..._DEFINES`
5f8e6c50
DMSP
15857 must be defined. E.g.,
15858 #define OPENSSL_ALGORITHM_DEFINES
15859 #include <openssl/opensslconf.h>
257e9d03 15860 defines all pertinent `NO_<algo>` symbols, such as NO_IDEA, NO_RSA, etc.
5f8e6c50
DMSP
15861
15862 *Richard Levitte, Ulf and Bodo Möller*
15863
15864 * Bugfix: Tolerate fragmentation and interleaving in the SSL 3/TLS
15865 record layer.
15866
15867 *Bodo Moeller*
15868
15869 * Change the 'other' type in certificate aux info to a STACK_OF
15870 X509_ALGOR. Although not an AlgorithmIdentifier as such it has
15871 the required ASN1 format: arbitrary types determined by an OID.
15872
15873 *Steve Henson*
15874
15875 * Add some PEM_write_X509_REQ_NEW() functions and a command line
15876 argument to 'req'. This is not because the function is newer or
15877 better than others it just uses the work 'NEW' in the certificate
15878 request header lines. Some software needs this.
15879
15880 *Steve Henson*
15881
15882 * Reorganise password command line arguments: now passwords can be
15883 obtained from various sources. Delete the PEM_cb function and make
15884 it the default behaviour: i.e. if the callback is NULL and the
15885 usrdata argument is not NULL interpret it as a null terminated pass
15886 phrase. If usrdata and the callback are NULL then the pass phrase
15887 is prompted for as usual.
15888
15889 *Steve Henson*
15890
15891 * Add support for the Compaq Atalla crypto accelerator. If it is installed,
15892 the support is automatically enabled. The resulting binaries will
15893 autodetect the card and use it if present.
15894
15895 *Ben Laurie and Compaq Inc.*
15896
15897 * Work around for Netscape hang bug. This sends certificate request
15898 and server done in one record. Since this is perfectly legal in the
15899 SSL/TLS protocol it isn't a "bug" option and is on by default. See
15900 the bugs/SSLv3 entry for more info.
15901
15902 *Steve Henson*
15903
15904 * HP-UX tune-up: new unified configs, HP C compiler bug workaround.
15905
15906 *Andy Polyakov*
15907
15908 * Add -rand argument to smime and pkcs12 applications and read/write
15909 of seed file.
15910
15911 *Steve Henson*
15912
15913 * New 'passwd' tool for crypt(3) and apr1 password hashes.
15914
15915 *Bodo Moeller*
15916
15917 * Add command line password options to the remaining applications.
15918
15919 *Steve Henson*
15920
15921 * Bug fix for BN_div_recp() for numerators with an even number of
15922 bits.
15923
15924 *Ulf Möller*
15925
15926 * More tests in bntest.c, and changed test_bn output.
15927
15928 *Ulf Möller*
15929
15930 * ./config recognizes MacOS X now.
15931
15932 *Andy Polyakov*
15933
15934 * Bug fix for BN_div() when the first words of num and divisor are
257e9d03 15935 equal (it gave wrong results if `(rem=(n1-q*d0)&BN_MASK2) < d0)`.
5f8e6c50
DMSP
15936
15937 *Ulf Möller*
15938
15939 * Add support for various broken PKCS#8 formats, and command line
15940 options to produce them.
15941
15942 *Steve Henson*
15943
15944 * New functions BN_CTX_start(), BN_CTX_get() and BT_CTX_end() to
15945 get temporary BIGNUMs from a BN_CTX.
15946
15947 *Ulf Möller*
15948
15949 * Correct return values in BN_mod_exp_mont() and BN_mod_exp2_mont()
15950 for p == 0.
15951
15952 *Ulf Möller*
15953
257e9d03 15954 * Change the `SSLeay_add_all_*()` functions to `OpenSSL_add_all_*()` and
5f8e6c50
DMSP
15955 include a #define from the old name to the new. The original intent
15956 was that statically linked binaries could for example just call
15957 SSLeay_add_all_ciphers() to just add ciphers to the table and not
15958 link with digests. This never worked because SSLeay_add_all_digests()
15959 and SSLeay_add_all_ciphers() were in the same source file so calling
15960 one would link with the other. They are now in separate source files.
15961
15962 *Steve Henson*
15963
15964 * Add a new -notext option to 'ca' and a -pubkey option to 'spkac'.
15965
15966 *Steve Henson*
15967
15968 * Use a less unusual form of the Miller-Rabin primality test (it used
15969 a binary algorithm for exponentiation integrated into the Miller-Rabin
15970 loop, our standard modexp algorithms are faster).
15971
15972 *Bodo Moeller*
15973
15974 * Support for the EBCDIC character set completed.
15975
15976 *Martin Kraemer <Martin.Kraemer@Mch.SNI.De>*
15977
15978 * Source code cleanups: use const where appropriate, eliminate casts,
257e9d03 15979 use `void *` instead of `char *` in lhash.
5f8e6c50
DMSP
15980
15981 *Ulf Möller*
15982
15983 * Bugfix: ssl3_send_server_key_exchange was not restartable
15984 (the state was not changed to SSL3_ST_SW_KEY_EXCH_B, and because of
15985 this the server could overwrite ephemeral keys that the client
15986 has already seen).
15987
15988 *Bodo Moeller*
15989
15990 * Turn DSA_is_prime into a macro that calls BN_is_prime,
15991 using 50 iterations of the Rabin-Miller test.
15992
15993 DSA_generate_parameters now uses BN_is_prime_fasttest (with 50
15994 iterations of the Rabin-Miller test as required by the appendix
15995 to FIPS PUB 186[-1]) instead of DSA_is_prime.
15996 As BN_is_prime_fasttest includes trial division, DSA parameter
15997 generation becomes much faster.
15998
15999 This implies a change for the callback functions in DSA_is_prime
16000 and DSA_generate_parameters: The callback function is called once
16001 for each positive witness in the Rabin-Miller test, not just
16002 occasionally in the inner loop; and the parameters to the
16003 callback function now provide an iteration count for the outer
16004 loop rather than for the current invocation of the inner loop.
16005 DSA_generate_parameters additionally can call the callback
16006 function with an 'iteration count' of -1, meaning that a
16007 candidate has passed the trial division test (when q is generated
16008 from an application-provided seed, trial division is skipped).
16009
16010 *Bodo Moeller*
16011
16012 * New function BN_is_prime_fasttest that optionally does trial
16013 division before starting the Rabin-Miller test and has
16014 an additional BN_CTX * argument (whereas BN_is_prime always
16015 has to allocate at least one BN_CTX).
16016 'callback(1, -1, cb_arg)' is called when a number has passed the
16017 trial division stage.
16018
16019 *Bodo Moeller*
16020
16021 * Fix for bug in CRL encoding. The validity dates weren't being handled
16022 as ASN1_TIME.
16023
16024 *Steve Henson*
16025
16026 * New -pkcs12 option to CA.pl script to write out a PKCS#12 file.
16027
16028 *Steve Henson*
16029
16030 * New function BN_pseudo_rand().
16031
16032 *Ulf Möller*
16033
16034 * Clean up BN_mod_mul_montgomery(): replace the broken (and unreadable)
16035 bignum version of BN_from_montgomery() with the working code from
16036 SSLeay 0.9.0 (the word based version is faster anyway), and clean up
16037 the comments.
16038
16039 *Ulf Möller*
16040
16041 * Avoid a race condition in s2_clnt.c (function get_server_hello) that
16042 made it impossible to use the same SSL_SESSION data structure in
16043 SSL2 clients in multiple threads.
16044
16045 *Bodo Moeller*
16046
16047 * The return value of RAND_load_file() no longer counts bytes obtained
16048 by stat(). RAND_load_file(..., -1) is new and uses the complete file
16049 to seed the PRNG (previously an explicit byte count was required).
16050
16051 *Ulf Möller, Bodo Möller*
16052
16053 * Clean up CRYPTO_EX_DATA functions, some of these didn't have prototypes
257e9d03 16054 used `char *` instead of `void *` and had casts all over the place.
5f8e6c50
DMSP
16055
16056 *Steve Henson*
16057
16058 * Make BN_generate_prime() return NULL on error if ret!=NULL.
16059
16060 *Ulf Möller*
16061
16062 * Retain source code compatibility for BN_prime_checks macro:
16063 BN_is_prime(..., BN_prime_checks, ...) now uses
16064 BN_prime_checks_for_size to determine the appropriate number of
16065 Rabin-Miller iterations.
16066
16067 *Ulf Möller*
16068
16069 * Diffie-Hellman uses "safe" primes: DH_check() return code renamed to
16070 DH_CHECK_P_NOT_SAFE_PRIME.
16071 (Check if this is true? OpenPGP calls them "strong".)
16072
16073 *Ulf Möller*
16074
16075 * Merge the functionality of "dh" and "gendh" programs into a new program
16076 "dhparam". The old programs are retained for now but will handle DH keys
16077 (instead of parameters) in future.
16078
16079 *Steve Henson*
16080
16081 * Make the ciphers, s_server and s_client programs check the return values
16082 when a new cipher list is set.
16083
16084 *Steve Henson*
16085
16086 * Enhance the SSL/TLS cipher mechanism to correctly handle the TLS 56bit
16087 ciphers. Before when the 56bit ciphers were enabled the sorting was
16088 wrong.
16089
16090 The syntax for the cipher sorting has been extended to support sorting by
16091 cipher-strength (using the strength_bits hard coded in the tables).
ec2bfb7d 16092 The new command is `@STRENGTH` (see also `doc/apps/ciphers.pod`).
5f8e6c50
DMSP
16093
16094 Fix a bug in the cipher-command parser: when supplying a cipher command
16095 string with an "undefined" symbol (neither command nor alphanumeric
16096 *A-Za-z0-9*, ssl_set_cipher_list used to hang in an endless loop. Now
16097 an error is flagged.
16098
16099 Due to the strength-sorting extension, the code of the
16100 ssl_create_cipher_list() function was completely rearranged. I hope that
16101 the readability was also increased :-)
16102
16103 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>*
16104
16105 * Minor change to 'x509' utility. The -CAcreateserial option now uses 1
16106 for the first serial number and places 2 in the serial number file. This
16107 avoids problems when the root CA is created with serial number zero and
16108 the first user certificate has the same issuer name and serial number
16109 as the root CA.
16110
16111 *Steve Henson*
16112
16113 * Fixes to X509_ATTRIBUTE utilities, change the 'req' program so it uses
16114 the new code. Add documentation for this stuff.
16115
16116 *Steve Henson*
16117
16118 * Changes to X509_ATTRIBUTE utilities. These have been renamed from
257e9d03 16119 `X509_*()` to `X509at_*()` on the grounds that they don't handle X509
5f8e6c50
DMSP
16120 structures and behave in an analogous way to the X509v3 functions:
16121 they shouldn't be called directly but wrapper functions should be used
16122 instead.
16123
16124 So we also now have some wrapper functions that call the X509at functions
16125 when passed certificate requests. (TO DO: similar things can be done with
16126 PKCS#7 signed and unsigned attributes, PKCS#12 attributes and a few other
16127 things. Some of these need some d2i or i2d and print functionality
16128 because they handle more complex structures.)
16129
16130 *Steve Henson*
16131
16132 * Add missing #ifndefs that caused missing symbols when building libssl
16133 as a shared library without RSA. Use #ifndef NO_SSL2 instead of
257e9d03 16134 NO_RSA in `ssl/s2*.c`.
5f8e6c50
DMSP
16135
16136 *Kris Kennaway <kris@hub.freebsd.org>, modified by Ulf Möller*
16137
16138 * Precautions against using the PRNG uninitialized: RAND_bytes() now
16139 has a return value which indicates the quality of the random data
16140 (1 = ok, 0 = not seeded). Also an error is recorded on the thread's
16141 error queue. New function RAND_pseudo_bytes() generates output that is
16142 guaranteed to be unique but not unpredictable. RAND_add is like
16143 RAND_seed, but takes an extra argument for an entropy estimate
16144 (RAND_seed always assumes full entropy).
16145
16146 *Ulf Möller*
16147
16148 * Do more iterations of Rabin-Miller probable prime test (specifically,
16149 3 for 1024-bit primes, 6 for 512-bit primes, 12 for 256-bit primes
16150 instead of only 2 for all lengths; see BN_prime_checks_for_size definition
16151 in crypto/bn/bn_prime.c for the complete table). This guarantees a
16152 false-positive rate of at most 2^-80 for random input.
16153
16154 *Bodo Moeller*
16155
16156 * Rewrite ssl3_read_n (ssl/s3_pkt.c) avoiding a couple of bugs.
16157
16158 *Bodo Moeller*
16159
16160 * New function X509_CTX_rget_chain() (renamed to X509_CTX_get1_chain
16161 in the 0.9.5 release), this returns the chain
16162 from an X509_CTX structure with a dup of the stack and all
16163 the X509 reference counts upped: so the stack will exist
16164 after X509_CTX_cleanup() has been called. Modify pkcs12.c
16165 to use this.
16166
16167 Also make SSL_SESSION_print() print out the verify return
16168 code.
16169
16170 *Steve Henson*
16171
16172 * Add manpage for the pkcs12 command. Also change the default
16173 behaviour so MAC iteration counts are used unless the new
16174 -nomaciter option is used. This improves file security and
16175 only older versions of MSIE (4.0 for example) need it.
16176
16177 *Steve Henson*
16178
16179 * Honor the no-xxx Configure options when creating .DEF files.
16180
16181 *Ulf Möller*
16182
16183 * Add PKCS#10 attributes to field table: challengePassword,
16184 unstructuredName and unstructuredAddress. These are taken from
16185 draft PKCS#9 v2.0 but are compatible with v1.2 provided no
16186 international characters are used.
16187
16188 More changes to X509_ATTRIBUTE code: allow the setting of types
16189 based on strings. Remove the 'loc' parameter when adding
16190 attributes because these will be a SET OF encoding which is sorted
16191 in ASN1 order.
16192
16193 *Steve Henson*
16194
16195 * Initial changes to the 'req' utility to allow request generation
16196 automation. This will allow an application to just generate a template
16197 file containing all the field values and have req construct the
16198 request.
16199
16200 Initial support for X509_ATTRIBUTE handling. Stacks of these are
16201 used all over the place including certificate requests and PKCS#7
16202 structures. They are currently handled manually where necessary with
16203 some primitive wrappers for PKCS#7. The new functions behave in a
16204 manner analogous to the X509 extension functions: they allow
16205 attributes to be looked up by NID and added.
16206
16207 Later something similar to the X509V3 code would be desirable to
16208 automatically handle the encoding, decoding and printing of the
16209 more complex types. The string types like challengePassword can
16210 be handled by the string table functions.
16211
16212 Also modified the multi byte string table handling. Now there is
16213 a 'global mask' which masks out certain types. The table itself
16214 can use the flag STABLE_NO_MASK to ignore the mask setting: this
16215 is useful when for example there is only one permissible type
16216 (as in countryName) and using the mask might result in no valid
16217 types at all.
16218
16219 *Steve Henson*
16220
16221 * Clean up 'Finished' handling, and add functions SSL_get_finished and
16222 SSL_get_peer_finished to allow applications to obtain the latest
16223 Finished messages sent to the peer or expected from the peer,
16224 respectively. (SSL_get_peer_finished is usually the Finished message
16225 actually received from the peer, otherwise the protocol will be aborted.)
16226
16227 As the Finished message are message digests of the complete handshake
16228 (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
16229 be used for external authentication procedures when the authentication
16230 provided by SSL/TLS is not desired or is not enough.
16231
16232 *Bodo Moeller*
16233
16234 * Enhanced support for Alpha Linux is added. Now ./config checks if
16235 the host supports BWX extension and if Compaq C is present on the
16236 $PATH. Just exploiting of the BWX extension results in 20-30%
16237 performance kick for some algorithms, e.g. DES and RC4 to mention
16238 a couple. Compaq C in turn generates ~20% faster code for MD5 and
16239 SHA1.
16240
16241 *Andy Polyakov*
16242
16243 * Add support for MS "fast SGC". This is arguably a violation of the
16244 SSL3/TLS protocol. Netscape SGC does two handshakes: the first with
16245 weak crypto and after checking the certificate is SGC a second one
16246 with strong crypto. MS SGC stops the first handshake after receiving
16247 the server certificate message and sends a second client hello. Since
16248 a server will typically do all the time consuming operations before
16249 expecting any further messages from the client (server key exchange
16250 is the most expensive) there is little difference between the two.
16251
16252 To get OpenSSL to support MS SGC we have to permit a second client
16253 hello message after we have sent server done. In addition we have to
16254 reset the MAC if we do get this second client hello.
16255
16256 *Steve Henson*
16257
16258 * Add a function 'd2i_AutoPrivateKey()' this will automatically decide
16259 if a DER encoded private key is RSA or DSA traditional format. Changed
16260 d2i_PrivateKey_bio() to use it. This is only needed for the "traditional"
16261 format DER encoded private key. Newer code should use PKCS#8 format which
16262 has the key type encoded in the ASN1 structure. Added DER private key
16263 support to pkcs8 application.
16264
16265 *Steve Henson*
16266
16267 * SSL 3/TLS 1 servers now don't request certificates when an anonymous
16268 ciphersuites has been selected (as required by the SSL 3/TLS 1
16269 specifications). Exception: When SSL_VERIFY_FAIL_IF_NO_PEER_CERT
16270 is set, we interpret this as a request to violate the specification
16271 (the worst that can happen is a handshake failure, and 'correct'
16272 behaviour would result in a handshake failure anyway).
16273
16274 *Bodo Moeller*
16275
16276 * In SSL_CTX_add_session, take into account that there might be multiple
16277 SSL_SESSION structures with the same session ID (e.g. when two threads
16278 concurrently obtain them from an external cache).
16279 The internal cache can handle only one SSL_SESSION with a given ID,
16280 so if there's a conflict, we now throw out the old one to achieve
16281 consistency.
16282
16283 *Bodo Moeller*
16284
16285 * Add OIDs for idea and blowfish in CBC mode. This will allow both
16286 to be used in PKCS#5 v2.0 and S/MIME. Also add checking to
16287 some routines that use cipher OIDs: some ciphers do not have OIDs
16288 defined and so they cannot be used for S/MIME and PKCS#5 v2.0 for
16289 example.
16290
16291 *Steve Henson*
16292
16293 * Simplify the trust setting structure and code. Now we just have
16294 two sequences of OIDs for trusted and rejected settings. These will
16295 typically have values the same as the extended key usage extension
16296 and any application specific purposes.
16297
16298 The trust checking code now has a default behaviour: it will just
16299 check for an object with the same NID as the passed id. Functions can
16300 be provided to override either the default behaviour or the behaviour
16301 for a given id. SSL client, server and email already have functions
16302 in place for compatibility: they check the NID and also return "trusted"
16303 if the certificate is self signed.
16304
16305 *Steve Henson*
16306
16307 * Add d2i,i2d bio/fp functions for PrivateKey: these convert the
16308 traditional format into an EVP_PKEY structure.
16309
16310 *Steve Henson*
16311
16312 * Add a password callback function PEM_cb() which either prompts for
16313 a password if usr_data is NULL or otherwise assumes it is a null
16314 terminated password. Allow passwords to be passed on command line
16315 environment or config files in a few more utilities.
16316
16317 *Steve Henson*
16318
16319 * Add a bunch of DER and PEM functions to handle PKCS#8 format private
16320 keys. Add some short names for PKCS#8 PBE algorithms and allow them
16321 to be specified on the command line for the pkcs8 and pkcs12 utilities.
16322 Update documentation.
16323
16324 *Steve Henson*
16325
16326 * Support for ASN1 "NULL" type. This could be handled before by using
16327 ASN1_TYPE but there wasn't any function that would try to read a NULL
16328 and produce an error if it couldn't. For compatibility we also have
16329 ASN1_NULL_new() and ASN1_NULL_free() functions but these are faked and
16330 don't allocate anything because they don't need to.
16331
16332 *Steve Henson*
16333
16334 * Initial support for MacOS is now provided. Examine INSTALL.MacOS
16335 for details.
16336
16337 *Andy Polyakov, Roy Woods <roy@centicsystems.ca>*
16338
16339 * Rebuild of the memory allocation routines used by OpenSSL code and
16340 possibly others as well. The purpose is to make an interface that
16341 provide hooks so anyone can build a separate set of allocation and
16342 deallocation routines to be used by OpenSSL, for example memory
16343 pool implementations, or something else, which was previously hard
16344 since Malloc(), Realloc() and Free() were defined as macros having
16345 the values malloc, realloc and free, respectively (except for Win32
16346 compilations). The same is provided for memory debugging code.
16347 OpenSSL already comes with functionality to find memory leaks, but
16348 this gives people a chance to debug other memory problems.
16349
16350 With these changes, a new set of functions and macros have appeared:
16351
16352 CRYPTO_set_mem_debug_functions() [F]
16353 CRYPTO_get_mem_debug_functions() [F]
16354 CRYPTO_dbg_set_options() [F]
16355 CRYPTO_dbg_get_options() [F]
16356 CRYPTO_malloc_debug_init() [M]
16357
16358 The memory debug functions are NULL by default, unless the library
16359 is compiled with CRYPTO_MDEBUG or friends is defined. If someone
16360 wants to debug memory anyway, CRYPTO_malloc_debug_init() (which
16361 gives the standard debugging functions that come with OpenSSL) or
16362 CRYPTO_set_mem_debug_functions() (tells OpenSSL to use functions
16363 provided by the library user) must be used. When the standard
16364 debugging functions are used, CRYPTO_dbg_set_options can be used to
16365 request additional information:
16366 CRYPTO_dbg_set_options(V_CYRPTO_MDEBUG_xxx) corresponds to setting
16367 the CRYPTO_MDEBUG_xxx macro when compiling the library.
16368
16369 Also, things like CRYPTO_set_mem_functions will always give the
16370 expected result (the new set of functions is used for allocation
16371 and deallocation) at all times, regardless of platform and compiler
16372 options.
16373
16374 To finish it up, some functions that were never use in any other
16375 way than through macros have a new API and new semantic:
16376
16377 CRYPTO_dbg_malloc()
16378 CRYPTO_dbg_realloc()
16379 CRYPTO_dbg_free()
16380
16381 All macros of value have retained their old syntax.
16382
16383 *Richard Levitte and Bodo Moeller*
16384
16385 * Some S/MIME fixes. The OID for SMIMECapabilities was wrong, the
16386 ordering of SMIMECapabilities wasn't in "strength order" and there
16387 was a missing NULL in the AlgorithmIdentifier for the SHA1 signature
16388 algorithm.
16389
16390 *Steve Henson*
16391
16392 * Some ASN1 types with illegal zero length encoding (INTEGER,
16393 ENUMERATED and OBJECT IDENTIFIER) choked the ASN1 routines.
16394
16395 *Frans Heymans <fheymans@isaserver.be>, modified by Steve Henson*
16396
16397 * Merge in my S/MIME library for OpenSSL. This provides a simple
16398 S/MIME API on top of the PKCS#7 code, a MIME parser (with enough
16399 functionality to handle multipart/signed properly) and a utility
16400 called 'smime' to call all this stuff. This is based on code I
16401 originally wrote for Celo who have kindly allowed it to be
16402 included in OpenSSL.
16403
16404 *Steve Henson*
16405
16406 * Add variants des_set_key_checked and des_set_key_unchecked of
16407 des_set_key (aka des_key_sched). Global variable des_check_key
16408 decides which of these is called by des_set_key; this way
16409 des_check_key behaves as it always did, but applications and
16410 the library itself, which was buggy for des_check_key == 1,
16411 have a cleaner way to pick the version they need.
16412
16413 *Bodo Moeller*
16414
16415 * New function PKCS12_newpass() which changes the password of a
16416 PKCS12 structure.
16417
16418 *Steve Henson*
16419
16420 * Modify X509_TRUST and X509_PURPOSE so it also uses a static and
16421 dynamic mix. In both cases the ids can be used as an index into the
16422 table. Also modified the X509_TRUST_add() and X509_PURPOSE_add()
16423 functions so they accept a list of the field values and the
16424 application doesn't need to directly manipulate the X509_TRUST
16425 structure.
16426
16427 *Steve Henson*
16428
16429 * Modify the ASN1_STRING_TABLE stuff so it also uses bsearch and doesn't
16430 need initialising.
16431
16432 *Steve Henson*
16433
16434 * Modify the way the V3 extension code looks up extensions. This now
16435 works in a similar way to the object code: we have some "standard"
16436 extensions in a static table which is searched with OBJ_bsearch()
16437 and the application can add dynamic ones if needed. The file
16438 crypto/x509v3/ext_dat.h now has the info: this file needs to be
16439 updated whenever a new extension is added to the core code and kept
16440 in ext_nid order. There is a simple program 'tabtest.c' which checks
16441 this. New extensions are not added too often so this file can readily
16442 be maintained manually.
16443
16444 There are two big advantages in doing things this way. The extensions
16445 can be looked up immediately and no longer need to be "added" using
16446 X509V3_add_standard_extensions(): this function now does nothing.
257e9d03
RS
16447 Side note: I get *lots* of email saying the extension code doesn't
16448 work because people forget to call this function.
5f8e6c50
DMSP
16449 Also no dynamic allocation is done unless new extensions are added:
16450 so if we don't add custom extensions there is no need to call
16451 X509V3_EXT_cleanup().
16452
16453 *Steve Henson*
16454
16455 * Modify enc utility's salting as follows: make salting the default. Add a
16456 magic header, so unsalted files fail gracefully instead of just decrypting
16457 to garbage. This is because not salting is a big security hole, so people
16458 should be discouraged from doing it.
16459
16460 *Ben Laurie*
16461
16462 * Fixes and enhancements to the 'x509' utility. It allowed a message
16463 digest to be passed on the command line but it only used this
16464 parameter when signing a certificate. Modified so all relevant
16465 operations are affected by the digest parameter including the
16466 -fingerprint and -x509toreq options. Also -x509toreq choked if a
16467 DSA key was used because it didn't fix the digest.
16468
16469 *Steve Henson*
16470
16471 * Initial certificate chain verify code. Currently tests the untrusted
16472 certificates for consistency with the verify purpose (which is set
16473 when the X509_STORE_CTX structure is set up) and checks the pathlength.
16474
16475 There is a NO_CHAIN_VERIFY compilation option to keep the old behaviour:
16476 this is because it will reject chains with invalid extensions whereas
16477 every previous version of OpenSSL and SSLeay made no checks at all.
16478
16479 Trust code: checks the root CA for the relevant trust settings. Trust
16480 settings have an initial value consistent with the verify purpose: e.g.
16481 if the verify purpose is for SSL client use it expects the CA to be
16482 trusted for SSL client use. However the default value can be changed to
16483 permit custom trust settings: one example of this would be to only trust
16484 certificates from a specific "secure" set of CAs.
16485
16486 Also added X509_STORE_CTX_new() and X509_STORE_CTX_free() functions
16487 which should be used for version portability: especially since the
16488 verify structure is likely to change more often now.
16489
16490 SSL integration. Add purpose and trust to SSL_CTX and SSL and functions
16491 to set them. If not set then assume SSL clients will verify SSL servers
16492 and vice versa.
16493
16494 Two new options to the verify program: -untrusted allows a set of
16495 untrusted certificates to be passed in and -purpose which sets the
16496 intended purpose of the certificate. If a purpose is set then the
16497 new chain verify code is used to check extension consistency.
16498
16499 *Steve Henson*
16500
16501 * Support for the authority information access extension.
16502
16503 *Steve Henson*
16504
16505 * Modify RSA and DSA PEM read routines to transparently handle
16506 PKCS#8 format private keys. New *_PUBKEY_* functions that handle
16507 public keys in a format compatible with certificate
16508 SubjectPublicKeyInfo structures. Unfortunately there were already
16509 functions called *_PublicKey_* which used various odd formats so
16510 these are retained for compatibility: however the DSA variants were
16511 never in a public release so they have been deleted. Changed dsa/rsa
16512 utilities to handle the new format: note no releases ever handled public
16513 keys so we should be OK.
16514
16515 The primary motivation for this change is to avoid the same fiasco
16516 that dogs private keys: there are several incompatible private key
16517 formats some of which are standard and some OpenSSL specific and
16518 require various evil hacks to allow partial transparent handling and
16519 even then it doesn't work with DER formats. Given the option anything
16520 other than PKCS#8 should be dumped: but the other formats have to
16521 stay in the name of compatibility.
16522
16523 With public keys and the benefit of hindsight one standard format
16524 is used which works with EVP_PKEY, RSA or DSA structures: though
16525 it clearly returns an error if you try to read the wrong kind of key.
16526
16527 Added a -pubkey option to the 'x509' utility to output the public key.
257e9d03
RS
16528 Also rename the `EVP_PKEY_get_*()` to `EVP_PKEY_rget_*()`
16529 (renamed to `EVP_PKEY_get1_*()` in the OpenSSL 0.9.5 release) and add
16530 `EVP_PKEY_rset_*()` functions (renamed to `EVP_PKEY_set1_*()`)
16531 that do the same as the `EVP_PKEY_assign_*()` except they up the
5f8e6c50
DMSP
16532 reference count of the added key (they don't "swallow" the
16533 supplied key).
16534
16535 *Steve Henson*
16536
16537 * Fixes to crypto/x509/by_file.c the code to read in certificates and
16538 CRLs would fail if the file contained no certificates or no CRLs:
16539 added a new function to read in both types and return the number
16540 read: this means that if none are read it will be an error. The
16541 DER versions of the certificate and CRL reader would always fail
16542 because it isn't possible to mix certificates and CRLs in DER format
16543 without choking one or the other routine. Changed this to just read
16544 a certificate: this is the best we can do. Also modified the code
ec2bfb7d 16545 in `apps/verify.c` to take notice of return codes: it was previously
5f8e6c50
DMSP
16546 attempting to read in certificates from NULL pointers and ignoring
16547 any errors: this is one reason why the cert and CRL reader seemed
16548 to work. It doesn't check return codes from the default certificate
16549 routines: these may well fail if the certificates aren't installed.
16550
16551 *Steve Henson*
16552
16553 * Code to support otherName option in GeneralName.
16554
16555 *Steve Henson*
16556
16557 * First update to verify code. Change the verify utility
16558 so it warns if it is passed a self signed certificate:
16559 for consistency with the normal behaviour. X509_verify
16560 has been modified to it will now verify a self signed
16561 certificate if *exactly* the same certificate appears
16562 in the store: it was previously impossible to trust a
16563 single self signed certificate. This means that:
16564 openssl verify ss.pem
16565 now gives a warning about a self signed certificate but
16566 openssl verify -CAfile ss.pem ss.pem
16567 is OK.
16568
16569 *Steve Henson*
16570
16571 * For servers, store verify_result in SSL_SESSION data structure
16572 (and add it to external session representation).
16573 This is needed when client certificate verifications fails,
16574 but an application-provided verification callback (set by
16575 SSL_CTX_set_cert_verify_callback) allows accepting the session
16576 anyway (i.e. leaves x509_store_ctx->error != X509_V_OK
16577 but returns 1): When the session is reused, we have to set
16578 ssl->verify_result to the appropriate error code to avoid
16579 security holes.
16580
16581 *Bodo Moeller, problem pointed out by Lutz Jaenicke*
16582
16583 * Fix a bug in the new PKCS#7 code: it didn't consider the
16584 case in PKCS7_dataInit() where the signed PKCS7 structure
16585 didn't contain any existing data because it was being created.
16586
16587 *Po-Cheng Chen <pocheng@nst.com.tw>, slightly modified by Steve Henson*
16588
16589 * Add a salt to the key derivation routines in enc.c. This
16590 forms the first 8 bytes of the encrypted file. Also add a
16591 -S option to allow a salt to be input on the command line.
16592
16593 *Steve Henson*
16594
16595 * New function X509_cmp(). Oddly enough there wasn't a function
16596 to compare two certificates. We do this by working out the SHA1
16597 hash and comparing that. X509_cmp() will be needed by the trust
16598 code.
16599
16600 *Steve Henson*
16601
16602 * SSL_get1_session() is like SSL_get_session(), but increments
16603 the reference count in the SSL_SESSION returned.
16604
16605 *Geoff Thorpe <geoff@eu.c2.net>*
16606
16607 * Fix for 'req': it was adding a null to request attributes.
16608 Also change the X509_LOOKUP and X509_INFO code to handle
16609 certificate auxiliary information.
16610
16611 *Steve Henson*
16612
16613 * Add support for 40 and 64 bit RC2 and RC4 algorithms: document
16614 the 'enc' command.
16615
16616 *Steve Henson*
16617
16618 * Add the possibility to add extra information to the memory leak
16619 detecting output, to form tracebacks, showing from where each
16620 allocation was originated: CRYPTO_push_info("constant string") adds
16621 the string plus current file name and line number to a per-thread
16622 stack, CRYPTO_pop_info() does the obvious, CRYPTO_remove_all_info()
16623 is like calling CYRPTO_pop_info() until the stack is empty.
16624 Also updated memory leak detection code to be multi-thread-safe.
16625
16626 *Richard Levitte*
16627
16628 * Add options -text and -noout to pkcs7 utility and delete the
16629 encryption options which never did anything. Update docs.
16630
16631 *Steve Henson*
16632
16633 * Add options to some of the utilities to allow the pass phrase
16634 to be included on either the command line (not recommended on
16635 OSes like Unix) or read from the environment. Update the
16636 manpages and fix a few bugs.
16637
16638 *Steve Henson*
16639
16640 * Add a few manpages for some of the openssl commands.
16641
16642 *Steve Henson*
16643
16644 * Fix the -revoke option in ca. It was freeing up memory twice,
16645 leaking and not finding already revoked certificates.
16646
16647 *Steve Henson*
16648
16649 * Extensive changes to support certificate auxiliary information.
16650 This involves the use of X509_CERT_AUX structure and X509_AUX
16651 functions. An X509_AUX function such as PEM_read_X509_AUX()
16652 can still read in a certificate file in the usual way but it
16653 will also read in any additional "auxiliary information". By
16654 doing things this way a fair degree of compatibility can be
16655 retained: existing certificates can have this information added
16656 using the new 'x509' options.
16657
16658 Current auxiliary information includes an "alias" and some trust
16659 settings. The trust settings will ultimately be used in enhanced
16660 certificate chain verification routines: currently a certificate
16661 can only be trusted if it is self signed and then it is trusted
16662 for all purposes.
16663
16664 *Steve Henson*
16665
257e9d03 16666 * Fix assembler for Alpha (tested only on DEC OSF not Linux or `*BSD`).
5f8e6c50
DMSP
16667 The problem was that one of the replacement routines had not been working
16668 since SSLeay releases. For now the offending routine has been replaced
16669 with non-optimised assembler. Even so, this now gives around 95%
16670 performance improvement for 1024 bit RSA signs.
16671
16672 *Mark Cox*
16673
16674 * Hack to fix PKCS#7 decryption when used with some unorthodox RC2
16675 handling. Most clients have the effective key size in bits equal to
16676 the key length in bits: so a 40 bit RC2 key uses a 40 bit (5 byte) key.
16677 A few however don't do this and instead use the size of the decrypted key
16678 to determine the RC2 key length and the AlgorithmIdentifier to determine
16679 the effective key length. In this case the effective key length can still
16680 be 40 bits but the key length can be 168 bits for example. This is fixed
16681 by manually forcing an RC2 key into the EVP_PKEY structure because the
16682 EVP code can't currently handle unusual RC2 key sizes: it always assumes
16683 the key length and effective key length are equal.
16684
16685 *Steve Henson*
16686
16687 * Add a bunch of functions that should simplify the creation of
16688 X509_NAME structures. Now you should be able to do:
16689 X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC, "Steve", -1, -1, 0);
16690 and have it automatically work out the correct field type and fill in
16691 the structures. The more adventurous can try:
16692 X509_NAME_add_entry_by_txt(nm, field, MBSTRING_UTF8, str, -1, -1, 0);
16693 and it will (hopefully) work out the correct multibyte encoding.
16694
16695 *Steve Henson*
16696
16697 * Change the 'req' utility to use the new field handling and multibyte
16698 copy routines. Before the DN field creation was handled in an ad hoc
16699 way in req, ca, and x509 which was rather broken and didn't support
16700 BMPStrings or UTF8Strings. Since some software doesn't implement
16701 BMPStrings or UTF8Strings yet, they can be enabled using the config file
16702 using the dirstring_type option. See the new comment in the default
16703 openssl.cnf for more info.
16704
16705 *Steve Henson*
16706
16707 * Make crypto/rand/md_rand.c more robust:
16708 - Assure unique random numbers after fork().
16709 - Make sure that concurrent threads access the global counter and
16710 md serializably so that we never lose entropy in them
16711 or use exactly the same state in multiple threads.
16712 Access to the large state is not always serializable because
16713 the additional locking could be a performance killer, and
16714 md should be large enough anyway.
16715
16716 *Bodo Moeller*
16717
ec2bfb7d 16718 * New file `apps/app_rand.c` with commonly needed functionality
5f8e6c50
DMSP
16719 for handling the random seed file.
16720
16721 Use the random seed file in some applications that previously did not:
16722 ca,
16723 dsaparam -genkey (which also ignored its '-rand' option),
16724 s_client,
16725 s_server,
16726 x509 (when signing).
16727 Except on systems with /dev/urandom, it is crucial to have a random
16728 seed file at least for key creation, DSA signing, and for DH exchanges;
16729 for RSA signatures we could do without one.
16730
16731 gendh and gendsa (unlike genrsa) used to read only the first byte
16732 of each file listed in the '-rand' option. The function as previously
16733 found in genrsa is now in app_rand.c and is used by all programs
16734 that support '-rand'.
16735
16736 *Bodo Moeller*
16737
16738 * In RAND_write_file, use mode 0600 for creating files;
16739 don't just chmod when it may be too late.
16740
16741 *Bodo Moeller*
16742
16743 * Report an error from X509_STORE_load_locations
16744 when X509_LOOKUP_load_file or X509_LOOKUP_add_dir failed.
16745
16746 *Bill Perry*
16747
16748 * New function ASN1_mbstring_copy() this copies a string in either
16749 ASCII, Unicode, Universal (4 bytes per character) or UTF8 format
16750 into an ASN1_STRING type. A mask of permissible types is passed
16751 and it chooses the "minimal" type to use or an error if not type
16752 is suitable.
16753
16754 *Steve Henson*
16755
16756 * Add function equivalents to the various macros in asn1.h. The old
257e9d03
RS
16757 macros are retained with an `M_` prefix. Code inside the library can
16758 use the `M_` macros. External code (including the openssl utility)
5f8e6c50
DMSP
16759 should *NOT* in order to be "shared library friendly".
16760
16761 *Steve Henson*
16762
16763 * Add various functions that can check a certificate's extensions
16764 to see if it usable for various purposes such as SSL client,
16765 server or S/MIME and CAs of these types. This is currently
16766 VERY EXPERIMENTAL but will ultimately be used for certificate chain
16767 verification. Also added a -purpose flag to x509 utility to
16768 print out all the purposes.
16769
16770 *Steve Henson*
16771
16772 * Add a CRYPTO_EX_DATA to X509 certificate structure and associated
16773 functions.
16774
16775 *Steve Henson*
16776
257e9d03 16777 * New `X509V3_{X509,CRL,REVOKED}_get_d2i()` functions. These will search
5f8e6c50
DMSP
16778 for, obtain and decode and extension and obtain its critical flag.
16779 This allows all the necessary extension code to be handled in a
16780 single function call.
16781
16782 *Steve Henson*
16783
16784 * RC4 tune-up featuring 30-40% performance improvement on most RISC
16785 platforms. See crypto/rc4/rc4_enc.c for further details.
16786
16787 *Andy Polyakov*
16788
16789 * New -noout option to asn1parse. This causes no output to be produced
16790 its main use is when combined with -strparse and -out to extract data
16791 from a file (which may not be in ASN.1 format).
16792
16793 *Steve Henson*
16794
16795 * Fix for pkcs12 program. It was hashing an invalid certificate pointer
16796 when producing the local key id.
16797
16798 *Richard Levitte <levitte@stacken.kth.se>*
16799
16800 * New option -dhparam in s_server. This allows a DH parameter file to be
16801 stated explicitly. If it is not stated then it tries the first server
16802 certificate file. The previous behaviour hard coded the filename
16803 "server.pem".
16804
16805 *Steve Henson*
16806
16807 * Add -pubin and -pubout options to the rsa and dsa commands. These allow
16808 a public key to be input or output. For example:
16809 openssl rsa -in key.pem -pubout -out pubkey.pem
16810 Also added necessary DSA public key functions to handle this.
16811
16812 *Steve Henson*
16813
16814 * Fix so PKCS7_dataVerify() doesn't crash if no certificates are contained
16815 in the message. This was handled by allowing
16816 X509_find_by_issuer_and_serial() to tolerate a NULL passed to it.
16817
16818 *Steve Henson, reported by Sampo Kellomaki <sampo@mail.neuronio.pt>*
16819
16820 * Fix for bug in d2i_ASN1_bytes(): other ASN1 functions add an extra null
16821 to the end of the strings whereas this didn't. This would cause problems
16822 if strings read with d2i_ASN1_bytes() were later modified.
16823
16824 *Steve Henson, reported by Arne Ansper <arne@ats.cyber.ee>*
16825
16826 * Fix for base64 decode bug. When a base64 bio reads only one line of
16827 data and it contains EOF it will end up returning an error. This is
16828 caused by input 46 bytes long. The cause is due to the way base64
16829 BIOs find the start of base64 encoded data. They do this by trying a
16830 trial decode on each line until they find one that works. When they
16831 do a flag is set and it starts again knowing it can pass all the
16832 data directly through the decoder. Unfortunately it doesn't reset
16833 the context it uses. This means that if EOF is reached an attempt
16834 is made to pass two EOFs through the context and this causes the
16835 resulting error. This can also cause other problems as well. As is
16836 usual with these problems it takes *ages* to find and the fix is
16837 trivial: move one line.
16838
257e9d03 16839 *Steve Henson, reported by ian@uns.ns.ac.yu (Ivan Nejgebauer)*
5f8e6c50
DMSP
16840
16841 * Ugly workaround to get s_client and s_server working under Windows. The
16842 old code wouldn't work because it needed to select() on sockets and the
16843 tty (for keypresses and to see if data could be written). Win32 only
16844 supports select() on sockets so we select() with a 1s timeout on the
16845 sockets and then see if any characters are waiting to be read, if none
16846 are present then we retry, we also assume we can always write data to
16847 the tty. This isn't nice because the code then blocks until we've
16848 received a complete line of data and it is effectively polling the
16849 keyboard at 1s intervals: however it's quite a bit better than not
16850 working at all :-) A dedicated Windows application might handle this
16851 with an event loop for example.
16852
16853 *Steve Henson*
16854
16855 * Enhance RSA_METHOD structure. Now there are two extra methods, rsa_sign
16856 and rsa_verify. When the RSA_FLAGS_SIGN_VER option is set these functions
16857 will be called when RSA_sign() and RSA_verify() are used. This is useful
16858 if rsa_pub_dec() and rsa_priv_enc() equivalents are not available.
16859 For this to work properly RSA_public_decrypt() and RSA_private_encrypt()
16860 should *not* be used: RSA_sign() and RSA_verify() must be used instead.
16861 This necessitated the support of an extra signature type NID_md5_sha1
16862 for SSL signatures and modifications to the SSL library to use it instead
16863 of calling RSA_public_decrypt() and RSA_private_encrypt().
16864
16865 *Steve Henson*
16866
16867 * Add new -verify -CAfile and -CApath options to the crl program, these
16868 will lookup a CRL issuers certificate and verify the signature in a
16869 similar way to the verify program. Tidy up the crl program so it
16870 no longer accesses structures directly. Make the ASN1 CRL parsing a bit
16871 less strict. It will now permit CRL extensions even if it is not
16872 a V2 CRL: this will allow it to tolerate some broken CRLs.
16873
16874 *Steve Henson*
16875
16876 * Initialize all non-automatic variables each time one of the openssl
16877 sub-programs is started (this is necessary as they may be started
16878 multiple times from the "OpenSSL>" prompt).
16879
16880 *Lennart Bang, Bodo Moeller*
16881
16882 * Preliminary compilation option RSA_NULL which disables RSA crypto without
16883 removing all other RSA functionality (this is what NO_RSA does). This
16884 is so (for example) those in the US can disable those operations covered
16885 by the RSA patent while allowing storage and parsing of RSA keys and RSA
16886 key generation.
16887
16888 *Steve Henson*
16889
16890 * Non-copying interface to BIO pairs.
16891 (still largely untested)
16892
16893 *Bodo Moeller*
16894
16895 * New function ASN1_tag2str() to convert an ASN1 tag to a descriptive
16896 ASCII string. This was handled independently in various places before.
16897
16898 *Steve Henson*
16899
16900 * New functions UTF8_getc() and UTF8_putc() that parse and generate
16901 UTF8 strings a character at a time.
16902
16903 *Steve Henson*
16904
16905 * Use client_version from client hello to select the protocol
16906 (s23_srvr.c) and for RSA client key exchange verification
16907 (s3_srvr.c), as required by the SSL 3.0/TLS 1.0 specifications.
16908
16909 *Bodo Moeller*
16910
16911 * Add various utility functions to handle SPKACs, these were previously
16912 handled by poking round in the structure internals. Added new function
16913 NETSCAPE_SPKI_print() to print out SPKAC and a new utility 'spkac' to
16914 print, verify and generate SPKACs. Based on an original idea from
16915 Massimiliano Pala <madwolf@comune.modena.it> but extensively modified.
16916
16917 *Steve Henson*
16918
16919 * RIPEMD160 is operational on all platforms and is back in 'make test'.
16920
16921 *Andy Polyakov*
16922
16923 * Allow the config file extension section to be overwritten on the
16924 command line. Based on an original idea from Massimiliano Pala
16925 <madwolf@comune.modena.it>. The new option is called -extensions
16926 and can be applied to ca, req and x509. Also -reqexts to override
16927 the request extensions in req and -crlexts to override the crl extensions
16928 in ca.
16929
16930 *Steve Henson*
16931
16932 * Add new feature to the SPKAC handling in ca. Now you can include
16933 the same field multiple times by preceding it by "XXXX." for example:
16934 1.OU="Unit name 1"
16935 2.OU="Unit name 2"
16936 this is the same syntax as used in the req config file.
16937
16938 *Steve Henson*
16939
16940 * Allow certificate extensions to be added to certificate requests. These
16941 are specified in a 'req_extensions' option of the req section of the
16942 config file. They can be printed out with the -text option to req but
16943 are otherwise ignored at present.
16944
16945 *Steve Henson*
16946
16947 * Fix a horrible bug in enc_read() in crypto/evp/bio_enc.c: if the first
16948 data read consists of only the final block it would not decrypted because
16949 EVP_CipherUpdate() would correctly report zero bytes had been decrypted.
16950 A misplaced 'break' also meant the decrypted final block might not be
16951 copied until the next read.
16952
16953 *Steve Henson*
16954
16955 * Initial support for DH_METHOD. Again based on RSA_METHOD. Also added
16956 a few extra parameters to the DH structure: these will be useful if
16957 for example we want the value of 'q' or implement X9.42 DH.
16958
16959 *Steve Henson*
16960
16961 * Initial support for DSA_METHOD. This is based on the RSA_METHOD and
16962 provides hooks that allow the default DSA functions or functions on a
16963 "per key" basis to be replaced. This allows hardware acceleration and
16964 hardware key storage to be handled without major modification to the
4d49b685 16965 library. Also added low-level modexp hooks and CRYPTO_EX structure and
5f8e6c50
DMSP
16966 associated functions.
16967
16968 *Steve Henson*
16969
16970 * Add a new flag to memory BIOs, BIO_FLAG_MEM_RDONLY. This marks the BIO
16971 as "read only": it can't be written to and the buffer it points to will
16972 not be freed. Reading from a read only BIO is much more efficient than
16973 a normal memory BIO. This was added because there are several times when
16974 an area of memory needs to be read from a BIO. The previous method was
16975 to create a memory BIO and write the data to it, this results in two
16976 copies of the data and an O(n^2) reading algorithm. There is a new
16977 function BIO_new_mem_buf() which creates a read only memory BIO from
16978 an area of memory. Also modified the PKCS#7 routines to use read only
16979 memory BIOs.
16980
16981 *Steve Henson*
16982
16983 * Bugfix: ssl23_get_client_hello did not work properly when called in
16984 state SSL23_ST_SR_CLNT_HELLO_B, i.e. when the first 7 bytes of
16985 a SSLv2-compatible client hello for SSLv3 or TLSv1 could be read,
16986 but a retry condition occurred while trying to read the rest.
16987
16988 *Bodo Moeller*
16989
16990 * The PKCS7_ENC_CONTENT_new() function was setting the content type as
16991 NID_pkcs7_encrypted by default: this was wrong since this should almost
16992 always be NID_pkcs7_data. Also modified the PKCS7_set_type() to handle
16993 the encrypted data type: this is a more sensible place to put it and it
16994 allows the PKCS#12 code to be tidied up that duplicated this
16995 functionality.
16996
16997 *Steve Henson*
16998
16999 * Changed obj_dat.pl script so it takes its input and output files on
17000 the command line. This should avoid shell escape redirection problems
17001 under Win32.
17002
17003 *Steve Henson*
17004
17005 * Initial support for certificate extension requests, these are included
17006 in things like Xenroll certificate requests. Included functions to allow
17007 extensions to be obtained and added.
17008
17009 *Steve Henson*
17010
17011 * -crlf option to s_client and s_server for sending newlines as
17012 CRLF (as required by many protocols).
17013
17014 *Bodo Moeller*
17015
257e9d03 17016### Changes between 0.9.3a and 0.9.4 [09 Aug 1999]
5f8e6c50
DMSP
17017
17018 * Install libRSAglue.a when OpenSSL is built with RSAref.
17019
17020 *Ralf S. Engelschall*
17021
257e9d03 17022 * A few more `#ifndef NO_FP_API / #endif` pairs for consistency.
5f8e6c50
DMSP
17023
17024 *Andrija Antonijevic <TheAntony2@bigfoot.com>*
17025
17026 * Fix -startdate and -enddate (which was missing) arguments to 'ca'
17027 program.
17028
17029 *Steve Henson*
17030
17031 * New function DSA_dup_DH, which duplicates DSA parameters/keys as
17032 DH parameters/keys (q is lost during that conversion, but the resulting
17033 DH parameters contain its length).
17034
17035 For 1024-bit p, DSA_generate_parameters followed by DSA_dup_DH is
17036 much faster than DH_generate_parameters (which creates parameters
257e9d03 17037 where `p = 2*q + 1`), and also the smaller q makes DH computations
5f8e6c50
DMSP
17038 much more efficient (160-bit exponentiation instead of 1024-bit
17039 exponentiation); so this provides a convenient way to support DHE
17040 ciphersuites in SSL/TLS servers (see ssl/ssltest.c). It is of
17041 utter importance to use
17042 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
17043 or
17044 SSL_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
17045 when such DH parameters are used, because otherwise small subgroup
17046 attacks may become possible!
17047
17048 *Bodo Moeller*
17049
17050 * Avoid memory leak in i2d_DHparams.
17051
17052 *Bodo Moeller*
17053
17054 * Allow the -k option to be used more than once in the enc program:
17055 this allows the same encrypted message to be read by multiple recipients.
17056
17057 *Steve Henson*
17058
17059 * New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts
17060 an ASN1_OBJECT to a text string. If the "no_name" parameter is set then
17061 it will always use the numerical form of the OID, even if it has a short
17062 or long name.
17063
17064 *Steve Henson*
17065
17066 * Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp
17067 method only got called if p,q,dmp1,dmq1,iqmp components were present,
17068 otherwise bn_mod_exp was called. In the case of hardware keys for example
17069 no private key components need be present and it might store extra data
17070 in the RSA structure, which cannot be accessed from bn_mod_exp.
17071 By setting RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for
17072 private key operations.
17073
17074 *Steve Henson*
17075
17076 * Added support for SPARC Linux.
17077
17078 *Andy Polyakov*
17079
17080 * pem_password_cb function type incompatibly changed from
17081 typedef int pem_password_cb(char *buf, int size, int rwflag);
17082 to
17083 ....(char *buf, int size, int rwflag, void *userdata);
17084 so that applications can pass data to their callbacks:
257e9d03 17085 The `PEM[_ASN1]_{read,write}...` functions and macros now take an
5f8e6c50
DMSP
17086 additional void * argument, which is just handed through whenever
17087 the password callback is called.
17088
17089 *Damien Miller <dmiller@ilogic.com.au>; tiny changes by Bodo Moeller*
17090
17091 New function SSL_CTX_set_default_passwd_cb_userdata.
17092
17093 Compatibility note: As many C implementations push function arguments
17094 onto the stack in reverse order, the new library version is likely to
17095 interoperate with programs that have been compiled with the old
17096 pem_password_cb definition (PEM_whatever takes some data that
17097 happens to be on the stack as its last argument, and the callback
17098 just ignores this garbage); but there is no guarantee whatsoever that
17099 this will work.
17100
17101 * The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
17102 (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
17103 problems not only on Windows, but also on some Unix platforms.
17104 To avoid problematic command lines, these definitions are now in an
17105 auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl
17106 for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds).
17107
17108 *Bodo Moeller*
17109
17110 * MIPS III/IV assembler module is reimplemented.
17111
17112 *Andy Polyakov*
17113
17114 * More DES library cleanups: remove references to srand/rand and
17115 delete an unused file.
17116
17117 *Ulf Möller*
17118
17119 * Add support for the free Netwide assembler (NASM) under Win32,
17120 since not many people have MASM (ml) and it can be hard to obtain.
17121 This is currently experimental but it seems to work OK and pass all
17122 the tests. Check out INSTALL.W32 for info.
17123
17124 *Steve Henson*
17125
17126 * Fix memory leaks in s3_clnt.c: All non-anonymous SSL3/TLS1 connections
17127 without temporary keys kept an extra copy of the server key,
17128 and connections with temporary keys did not free everything in case
17129 of an error.
17130
17131 *Bodo Moeller*
17132
17133 * New function RSA_check_key and new openssl rsa option -check
17134 for verifying the consistency of RSA keys.
17135
17136 *Ulf Moeller, Bodo Moeller*
17137
17138 * Various changes to make Win32 compile work:
17139 1. Casts to avoid "loss of data" warnings in p5_crpt2.c
17140 2. Change unsigned int to int in b_dump.c to avoid "signed/unsigned
17141 comparison" warnings.
257e9d03 17142 3. Add `sk_<TYPE>_sort` to DEF file generator and do make update.
5f8e6c50
DMSP
17143
17144 *Steve Henson*
17145
17146 * Add a debugging option to PKCS#5 v2 key generation function: when
17147 you #define DEBUG_PKCS5V2 passwords, salts, iteration counts and
17148 derived keys are printed to stderr.
17149
17150 *Steve Henson*
17151
17152 * Copy the flags in ASN1_STRING_dup().
17153
17154 *Roman E. Pavlov <pre@mo.msk.ru>*
17155
17156 * The x509 application mishandled signing requests containing DSA
17157 keys when the signing key was also DSA and the parameters didn't match.
17158
17159 It was supposed to omit the parameters when they matched the signing key:
17160 the verifying software was then supposed to automatically use the CA's
17161 parameters if they were absent from the end user certificate.
17162
17163 Omitting parameters is no longer recommended. The test was also
17164 the wrong way round! This was probably due to unusual behaviour in
17165 EVP_cmp_parameters() which returns 1 if the parameters match.
17166 This meant that parameters were omitted when they *didn't* match and
17167 the certificate was useless. Certificates signed with 'ca' didn't have
17168 this bug.
17169
17170 *Steve Henson, reported by Doug Erickson <Doug.Erickson@Part.NET>*
17171
17172 * Memory leak checking (-DCRYPTO_MDEBUG) had some problems.
17173 The interface is as follows:
17174 Applications can use
17175 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) aka MemCheck_start(),
17176 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) aka MemCheck_stop();
17177 "off" is now the default.
17178 The library internally uses
17179 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) aka MemCheck_off(),
17180 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) aka MemCheck_on()
17181 to disable memory-checking temporarily.
17182
17183 Some inconsistent states that previously were possible (and were
17184 even the default) are now avoided.
17185
17186 -DCRYPTO_MDEBUG_TIME is new and additionally stores the current time
17187 with each memory chunk allocated; this is occasionally more helpful
17188 than just having a counter.
17189
17190 -DCRYPTO_MDEBUG_THREAD is also new and adds the thread ID.
17191
17192 -DCRYPTO_MDEBUG_ALL enables all of the above, plus any future
17193 extensions.
17194
17195 *Bodo Moeller*
17196
17197 * Introduce "mode" for SSL structures (with defaults in SSL_CTX),
17198 which largely parallels "options", but is for changing API behaviour,
17199 whereas "options" are about protocol behaviour.
17200 Initial "mode" flags are:
17201
17202 SSL_MODE_ENABLE_PARTIAL_WRITE Allow SSL_write to report success when
17203 a single record has been written.
17204 SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER Don't insist that SSL_write
17205 retries use the same buffer location.
17206 (But all of the contents must be
17207 copied!)
17208
17209 *Bodo Moeller*
17210
17211 * Bugfix: SSL_set_options ignored its parameter, only SSL_CTX_set_options
17212 worked.
17213
17214 * Fix problems with no-hmac etc.
17215
17216 *Ulf Möller, pointed out by Brian Wellington <bwelling@tislabs.com>*
17217
17218 * New functions RSA_get_default_method(), RSA_set_method() and
17219 RSA_get_method(). These allows replacement of RSA_METHODs without having
17220 to mess around with the internals of an RSA structure.
17221
17222 *Steve Henson*
17223
17224 * Fix memory leaks in DSA_do_sign and DSA_is_prime.
17225 Also really enable memory leak checks in openssl.c and in some
17226 test programs.
17227
17228 *Chad C. Mulligan, Bodo Moeller*
17229
17230 * Fix a bug in d2i_ASN1_INTEGER() and i2d_ASN1_INTEGER() which can mess
17231 up the length of negative integers. This has now been simplified to just
17232 store the length when it is first determined and use it later, rather
17233 than trying to keep track of where data is copied and updating it to
17234 point to the end.
257e9d03 17235 *Steve Henson, reported by Brien Wheeler <bwheeler@authentica-security.com>*
5f8e6c50
DMSP
17236
17237 * Add a new function PKCS7_signatureVerify. This allows the verification
17238 of a PKCS#7 signature but with the signing certificate passed to the
17239 function itself. This contrasts with PKCS7_dataVerify which assumes the
17240 certificate is present in the PKCS#7 structure. This isn't always the
17241 case: certificates can be omitted from a PKCS#7 structure and be
17242 distributed by "out of band" means (such as a certificate database).
17243
17244 *Steve Henson*
17245
257e9d03 17246 * Complete the `PEM_*` macros with DECLARE_PEM versions to replace the
5f8e6c50
DMSP
17247 function prototypes in pem.h, also change util/mkdef.pl to add the
17248 necessary function names.
17249
17250 *Steve Henson*
17251
17252 * mk1mf.pl (used by Windows builds) did not properly read the
17253 options set by Configure in the top level Makefile, and Configure
17254 was not even able to write more than one option correctly.
17255 Fixed, now "no-idea no-rc5 -DCRYPTO_MDEBUG" etc. works as intended.
17256
17257 *Bodo Moeller*
17258
17259 * New functions CONF_load_bio() and CONF_load_fp() to allow a config
17260 file to be loaded from a BIO or FILE pointer. The BIO version will
17261 for example allow memory BIOs to contain config info.
17262
17263 *Steve Henson*
17264
17265 * New function "CRYPTO_num_locks" that returns CRYPTO_NUM_LOCKS.
17266 Whoever hopes to achieve shared-library compatibility across versions
17267 must use this, not the compile-time macro.
17268 (Exercise 0.9.4: Which is the minimum library version required by
17269 such programs?)
17270 Note: All this applies only to multi-threaded programs, others don't
17271 need locks.
17272
17273 *Bodo Moeller*
17274
17275 * Add missing case to s3_clnt.c state machine -- one of the new SSL tests
17276 through a BIO pair triggered the default case, i.e.
17277 SSLerr(...,SSL_R_UNKNOWN_STATE).
17278
17279 *Bodo Moeller*
17280
17281 * New "BIO pair" concept (crypto/bio/bss_bio.c) so that applications
17282 can use the SSL library even if none of the specific BIOs is
17283 appropriate.
17284
17285 *Bodo Moeller*
17286
17287 * Fix a bug in i2d_DSAPublicKey() which meant it returned the wrong value
17288 for the encoded length.
17289
17290 *Jeon KyoungHo <khjeon@sds.samsung.co.kr>*
17291
17292 * Add initial documentation of the X509V3 functions.
17293
17294 *Steve Henson*
17295
17296 * Add a new pair of functions PEM_write_PKCS8PrivateKey() and
17297 PEM_write_bio_PKCS8PrivateKey() that are equivalent to
17298 PEM_write_PrivateKey() and PEM_write_bio_PrivateKey() but use the more
17299 secure PKCS#8 private key format with a high iteration count.
17300
17301 *Steve Henson*
17302
17303 * Fix determination of Perl interpreter: A perl or perl5
257e9d03 17304 *directory* in $PATH was also accepted as the interpreter.
5f8e6c50
DMSP
17305
17306 *Ralf S. Engelschall*
17307
17308 * Fix demos/sign/sign.c: well there wasn't anything strictly speaking
17309 wrong with it but it was very old and did things like calling
17310 PEM_ASN1_read() directly and used MD5 for the hash not to mention some
17311 unusual formatting.
17312
17313 *Steve Henson*
17314
17315 * Fix demos/selfsign.c: it used obsolete and deleted functions, changed
17316 to use the new extension code.
17317
17318 *Steve Henson*
17319
17320 * Implement the PEM_read/PEM_write functions in crypto/pem/pem_all.c
17321 with macros. This should make it easier to change their form, add extra
17322 arguments etc. Fix a few PEM prototypes which didn't have cipher as a
17323 constant.
17324
17325 *Steve Henson*
17326
17327 * Add to configuration table a new entry that can specify an alternative
17328 name for unistd.h (for pre-POSIX systems); we need this for NeXTstep,
17329 according to Mark Crispin <MRC@Panda.COM>.
17330
17331 *Bodo Moeller*
17332
5f8e6c50
DMSP
17333 * DES CBC did not update the IV. Weird.
17334
17335 *Ben Laurie*
17336lse
17337 des_cbc_encrypt does not update the IV, but des_ncbc_encrypt does.
17338 Changing the behaviour of the former might break existing programs --
17339 where IV updating is needed, des_ncbc_encrypt can be used.
17340ndif
17341
17342 * When bntest is run from "make test" it drives bc to check its
17343 calculations, as well as internally checking them. If an internal check
17344 fails, it needs to cause bc to give a non-zero result or make test carries
17345 on without noticing the failure. Fixed.
17346
17347 *Ben Laurie*
17348
17349 * DES library cleanups.
17350
17351 *Ulf Möller*
17352
17353 * Add support for PKCS#5 v2.0 PBE algorithms. This will permit PKCS#8 to be
17354 used with any cipher unlike PKCS#5 v1.5 which can at most handle 64 bit
17355 ciphers. NOTE: although the key derivation function has been verified
17356 against some published test vectors it has not been extensively tested
17357 yet. Added a -v2 "cipher" option to pkcs8 application to allow the use
17358 of v2.0.
17359
17360 *Steve Henson*
17361
17362 * Instead of "mkdir -p", which is not fully portable, use new
17363 Perl script "util/mkdir-p.pl".
17364
17365 *Bodo Moeller*
17366
17367 * Rewrite the way password based encryption (PBE) is handled. It used to
17368 assume that the ASN1 AlgorithmIdentifier parameter was a PBEParameter
17369 structure. This was true for the PKCS#5 v1.5 and PKCS#12 PBE algorithms
17370 but doesn't apply to PKCS#5 v2.0 where it can be something else. Now
17371 the 'parameter' field of the AlgorithmIdentifier is passed to the
17372 underlying key generation function so it must do its own ASN1 parsing.
17373 This has also changed the EVP_PBE_CipherInit() function which now has a
17374 'parameter' argument instead of literal salt and iteration count values
17375 and the function EVP_PBE_ALGOR_CipherInit() has been deleted.
17376
17377 *Steve Henson*
17378
17379 * Support for PKCS#5 v1.5 compatible password based encryption algorithms
17380 and PKCS#8 functionality. New 'pkcs8' application linked to openssl.
17381 Needed to change the PEM_STRING_EVP_PKEY value which was just "PRIVATE
17382 KEY" because this clashed with PKCS#8 unencrypted string. Since this
17383 value was just used as a "magic string" and not used directly its
17384 value doesn't matter.
17385
17386 *Steve Henson*
17387
17388 * Introduce some semblance of const correctness to BN. Shame C doesn't
17389 support mutable.
17390
17391 *Ben Laurie*
17392
17393 * "linux-sparc64" configuration (ultrapenguin).
17394
17395 *Ray Miller <ray.miller@oucs.ox.ac.uk>*
17396 "linux-sparc" configuration.
17397
17398 *Christian Forster <fo@hawo.stw.uni-erlangen.de>*
17399
17400 * config now generates no-xxx options for missing ciphers.
17401
17402 *Ulf Möller*
17403
17404 * Support the EBCDIC character set (work in progress).
17405 File ebcdic.c not yet included because it has a different license.
17406
17407 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
17408
17409 * Support BS2000/OSD-POSIX.
17410
17411 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
17412
257e9d03 17413 * Make callbacks for key generation use `void *` instead of `char *`.
5f8e6c50
DMSP
17414
17415 *Ben Laurie*
17416
17417 * Make S/MIME samples compile (not yet tested).
17418
17419 *Ben Laurie*
17420
17421 * Additional typesafe stacks.
17422
17423 *Ben Laurie*
17424
17425 * New configuration variants "bsdi-elf-gcc" (BSD/OS 4.x).
17426
17427 *Bodo Moeller*
17428
257e9d03 17429### Changes between 0.9.3 and 0.9.3a [29 May 1999]
5f8e6c50
DMSP
17430
17431 * New configuration variant "sco5-gcc".
17432
17433 * Updated some demos.
17434
17435 *Sean O Riordain, Wade Scholine*
17436
17437 * Add missing BIO_free at exit of pkcs12 application.
17438
17439 *Wu Zhigang*
17440
17441 * Fix memory leak in conf.c.
17442
17443 *Steve Henson*
17444
17445 * Updates for Win32 to assembler version of MD5.
17446
17447 *Steve Henson*
17448
ec2bfb7d 17449 * Set #! path to perl in `apps/der_chop` to where we found it
5f8e6c50
DMSP
17450 instead of using a fixed path.
17451
17452 *Bodo Moeller*
17453
17454 * SHA library changes for irix64-mips4-cc.
17455
17456 *Andy Polyakov*
17457
17458 * Improvements for VMS support.
17459
17460 *Richard Levitte*
17461
257e9d03 17462### Changes between 0.9.2b and 0.9.3 [24 May 1999]
5f8e6c50
DMSP
17463
17464 * Bignum library bug fix. IRIX 6 passes "make test" now!
17465 This also avoids the problems with SC4.2 and unpatched SC5.
17466
17467 *Andy Polyakov <appro@fy.chalmers.se>*
17468
17469 * New functions sk_num, sk_value and sk_set to replace the previous macros.
17470 These are required because of the typesafe stack would otherwise break
17471 existing code. If old code used a structure member which used to be STACK
17472 and is now STACK_OF (for example cert in a PKCS7_SIGNED structure) with
17473 sk_num or sk_value it would produce an error because the num, data members
17474 are not present in STACK_OF. Now it just produces a warning. sk_set
17475 replaces the old method of assigning a value to sk_value
17476 (e.g. sk_value(x, i) = y) which the library used in a few cases. Any code
17477 that does this will no longer work (and should use sk_set instead) but
17478 this could be regarded as a "questionable" behaviour anyway.
17479
17480 *Steve Henson*
17481
17482 * Fix most of the other PKCS#7 bugs. The "experimental" code can now
17483 correctly handle encrypted S/MIME data.
17484
17485 *Steve Henson*
17486
17487 * Change type of various DES function arguments from des_cblock
17488 (which means, in function argument declarations, pointer to char)
17489 to des_cblock * (meaning pointer to array with 8 char elements),
17490 which allows the compiler to do more typechecking; it was like
17491 that back in SSLeay, but with lots of ugly casts.
17492
17493 Introduce new type const_des_cblock.
17494
17495 *Bodo Moeller*
17496
17497 * Reorganise the PKCS#7 library and get rid of some of the more obvious
17498 problems: find RecipientInfo structure that matches recipient certificate
17499 and initialise the ASN1 structures properly based on passed cipher.
17500
17501 *Steve Henson*
17502
17503 * Belatedly make the BN tests actually check the results.
17504
17505 *Ben Laurie*
17506
17507 * Fix the encoding and decoding of negative ASN1 INTEGERS and conversion
17508 to and from BNs: it was completely broken. New compilation option
17509 NEG_PUBKEY_BUG to allow for some broken certificates that encode public
17510 key elements as negative integers.
17511
17512 *Steve Henson*
17513
17514 * Reorganize and speed up MD5.
17515
17516 *Andy Polyakov <appro@fy.chalmers.se>*
17517
17518 * VMS support.
17519
17520 *Richard Levitte <richard@levitte.org>*
17521
17522 * New option -out to asn1parse to allow the parsed structure to be
17523 output to a file. This is most useful when combined with the -strparse
17524 option to examine the output of things like OCTET STRINGS.
17525
17526 *Steve Henson*
17527
17528 * Make SSL library a little more fool-proof by not requiring any longer
257e9d03
RS
17529 that `SSL_set_{accept,connect}_state` be called before
17530 `SSL_{accept,connect}` may be used (`SSL_set_..._state` is omitted
5f8e6c50
DMSP
17531 in many applications because usually everything *appeared* to work as
17532 intended anyway -- now it really works as intended).
17533
17534 *Bodo Moeller*
17535
17536 * Move openssl.cnf out of lib/.
17537
17538 *Ulf Möller*
17539
257e9d03 17540 * Fix various things to let OpenSSL even pass "egcc -pipe -O2 -Wall
5f8e6c50 17541 -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes
257e9d03 17542 -Wmissing-declarations -Wnested-externs -Winline" with EGCS 1.1.2+
5f8e6c50
DMSP
17543
17544 *Ralf S. Engelschall*
17545
17546 * Various fixes to the EVP and PKCS#7 code. It may now be able to
17547 handle PKCS#7 enveloped data properly.
17548
17549 *Sebastian Akerman <sak@parallelconsulting.com>, modified by Steve*
17550
17551 * Create a duplicate of the SSL_CTX's CERT in SSL_new instead of
17552 copying pointers. The cert_st handling is changed by this in
17553 various ways (and thus what used to be known as ctx->default_cert
257e9d03 17554 is now called ctx->cert, since we don't resort to `s->ctx->[default_]cert`
5f8e6c50
DMSP
17555 any longer when s->cert does not give us what we need).
17556 ssl_cert_instantiate becomes obsolete by this change.
17557 As soon as we've got the new code right (possibly it already is?),
17558 we have solved a couple of bugs of the earlier code where s->cert
17559 was used as if it could not have been shared with other SSL structures.
17560
17561 Note that using the SSL API in certain dirty ways now will result
17562 in different behaviour than observed with earlier library versions:
257e9d03 17563 Changing settings for an `SSL_CTX *ctx` after having done s = SSL_new(ctx)
5f8e6c50
DMSP
17564 does not influence s as it used to.
17565
17566 In order to clean up things more thoroughly, inside SSL_SESSION
17567 we don't use CERT any longer, but a new structure SESS_CERT
17568 that holds per-session data (if available); currently, this is
17569 the peer's certificate chain and, for clients, the server's certificate
17570 and temporary key. CERT holds only those values that can have
17571 meaningful defaults in an SSL_CTX.
17572
17573 *Bodo Moeller*
17574
17575 * New function X509V3_EXT_i2d() to create an X509_EXTENSION structure
17576 from the internal representation. Various PKCS#7 fixes: remove some
17577 evil casts and set the enc_dig_alg field properly based on the signing
17578 key type.
17579
17580 *Steve Henson*
17581
17582 * Allow PKCS#12 password to be set from the command line or the
17583 environment. Let 'ca' get its config file name from the environment
17584 variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req'
17585 and 'x509').
17586
17587 *Steve Henson*
17588
17589 * Allow certificate policies extension to use an IA5STRING for the
17590 organization field. This is contrary to the PKIX definition but
17591 VeriSign uses it and IE5 only recognises this form. Document 'x509'
17592 extension option.
17593
17594 *Steve Henson*
17595
17596 * Add PEDANTIC compiler flag to allow compilation with gcc -pedantic,
17597 without disallowing inline assembler and the like for non-pedantic builds.
17598
17599 *Ben Laurie*
17600
17601 * Support Borland C++ builder.
17602
17603 *Janez Jere <jj@void.si>, modified by Ulf Möller*
17604
17605 * Support Mingw32.
17606
17607 *Ulf Möller*
17608
17609 * SHA-1 cleanups and performance enhancements.
17610
17611 *Andy Polyakov <appro@fy.chalmers.se>*
17612
17613 * Sparc v8plus assembler for the bignum library.
17614
17615 *Andy Polyakov <appro@fy.chalmers.se>*
17616
17617 * Accept any -xxx and +xxx compiler options in Configure.
17618
17619 *Ulf Möller*
17620
17621 * Update HPUX configuration.
17622
17623 *Anonymous*
17624
257e9d03 17625 * Add missing `sk_<type>_unshift()` function to safestack.h
5f8e6c50
DMSP
17626
17627 *Ralf S. Engelschall*
17628
17629 * New function SSL_CTX_use_certificate_chain_file that sets the
17630 "extra_cert"s in addition to the certificate. (This makes sense
17631 only for "PEM" format files, as chains as a whole are not
17632 DER-encoded.)
17633
17634 *Bodo Moeller*
17635
17636 * Support verify_depth from the SSL API.
17637 x509_vfy.c had what can be considered an off-by-one-error:
17638 Its depth (which was not part of the external interface)
17639 was actually counting the number of certificates in a chain;
17640 now it really counts the depth.
17641
17642 *Bodo Moeller*
17643
17644 * Bugfix in crypto/x509/x509_cmp.c: The SSLerr macro was used
17645 instead of X509err, which often resulted in confusing error
17646 messages since the error codes are not globally unique
17647 (e.g. an alleged error in ssl3_accept when a certificate
17648 didn't match the private key).
17649
17650 * New function SSL_CTX_set_session_id_context that allows to set a default
17651 value (so that you don't need SSL_set_session_id_context for each
17652 connection using the SSL_CTX).
17653
17654 *Bodo Moeller*
17655
17656 * OAEP decoding bug fix.
17657
17658 *Ulf Möller*
17659
17660 * Support INSTALL_PREFIX for package builders, as proposed by
17661 David Harris.
17662
17663 *Bodo Moeller*
17664
17665 * New Configure options "threads" and "no-threads". For systems
17666 where the proper compiler options are known (currently Solaris
17667 and Linux), "threads" is the default.
17668
17669 *Bodo Moeller*
17670
17671 * New script util/mklink.pl as a faster substitute for util/mklink.sh.
17672
17673 *Bodo Moeller*
17674
17675 * Install various scripts to $(OPENSSLDIR)/misc, not to
17676 $(INSTALLTOP)/bin -- they shouldn't clutter directories
17677 such as /usr/local/bin.
17678
17679 *Bodo Moeller*
17680
17681 * "make linux-shared" to build shared libraries.
17682
17683 *Niels Poppe <niels@netbox.org>*
17684
257e9d03 17685 * New Configure option `no-<cipher>` (rsa, idea, rc5, ...).
5f8e6c50
DMSP
17686
17687 *Ulf Möller*
17688
17689 * Add the PKCS#12 API documentation to openssl.txt. Preliminary support for
17690 extension adding in x509 utility.
17691
17692 *Steve Henson*
17693
17694 * Remove NOPROTO sections and error code comments.
17695
17696 *Ulf Möller*
17697
17698 * Partial rewrite of the DEF file generator to now parse the ANSI
17699 prototypes.
17700
17701 *Steve Henson*
17702
17703 * New Configure options --prefix=DIR and --openssldir=DIR.
17704
17705 *Ulf Möller*
17706
17707 * Complete rewrite of the error code script(s). It is all now handled
17708 by one script at the top level which handles error code gathering,
17709 header rewriting and C source file generation. It should be much better
17710 than the old method: it now uses a modified version of Ulf's parser to
17711 read the ANSI prototypes in all header files (thus the old K&R definitions
17712 aren't needed for error creation any more) and do a better job of
44652c16 17713 translating function codes into names. The old 'ASN1 error code embedded
5f8e6c50
DMSP
17714 in a comment' is no longer necessary and it doesn't use .err files which
17715 have now been deleted. Also the error code call doesn't have to appear all
17716 on one line (which resulted in some large lines...).
17717
17718 *Steve Henson*
17719
257e9d03 17720 * Change #include filenames from `<foo.h>` to `<openssl/foo.h>`.
5f8e6c50
DMSP
17721
17722 *Bodo Moeller*
17723
17724 * Change behaviour of ssl2_read when facing length-0 packets: Don't return
17725 0 (which usually indicates a closed connection), but continue reading.
17726
17727 *Bodo Moeller*
17728
17729 * Fix some race conditions.
17730
17731 *Bodo Moeller*
17732
17733 * Add support for CRL distribution points extension. Add Certificate
17734 Policies and CRL distribution points documentation.
17735
17736 *Steve Henson*
17737
17738 * Move the autogenerated header file parts to crypto/opensslconf.h.
17739
17740 *Ulf Möller*
17741
17742 * Fix new 56-bit DES export ciphersuites: they were using 7 bytes instead of
17743 8 of keying material. Merlin has also confirmed interop with this fix
17744 between OpenSSL and Baltimore C/SSL 2.0 and J/SSL 2.0.
17745
17746 *Merlin Hughes <merlin@baltimore.ie>*
17747
17748 * Fix lots of warnings.
17749
17750 *Richard Levitte <levitte@stacken.kth.se>*
17751
17752 * In add_cert_dir() in crypto/x509/by_dir.c, break out of the loop if
17753 the directory spec didn't end with a LIST_SEPARATOR_CHAR.
17754
17755 *Richard Levitte <levitte@stacken.kth.se>*
17756
17757 * Fix problems with sizeof(long) == 8.
17758
17759 *Andy Polyakov <appro@fy.chalmers.se>*
17760
17761 * Change functions to ANSI C.
17762
17763 *Ulf Möller*
17764
17765 * Fix typos in error codes.
17766
17767 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>, Ulf Möller*
17768
17769 * Remove defunct assembler files from Configure.
17770
17771 *Ulf Möller*
17772
17773 * SPARC v8 assembler BIGNUM implementation.
17774
17775 *Andy Polyakov <appro@fy.chalmers.se>*
17776
17777 * Support for Certificate Policies extension: both print and set.
17778 Various additions to support the r2i method this uses.
17779
17780 *Steve Henson*
17781
17782 * A lot of constification, and fix a bug in X509_NAME_oneline() that could
17783 return a const string when you are expecting an allocated buffer.
17784
17785 *Ben Laurie*
17786
17787 * Add support for ASN1 types UTF8String and VISIBLESTRING, also the CHOICE
17788 types DirectoryString and DisplayText.
17789
17790 *Steve Henson*
17791
17792 * Add code to allow r2i extensions to access the configuration database,
17793 add an LHASH database driver and add several ctx helper functions.
17794
17795 *Steve Henson*
17796
17797 * Fix an evil bug in bn_expand2() which caused various BN functions to
17798 fail when they extended the size of a BIGNUM.
17799
17800 *Steve Henson*
17801
17802 * Various utility functions to handle SXNet extension. Modify mkdef.pl to
17803 support typesafe stack.
17804
17805 *Steve Henson*
17806
17807 * Fix typo in SSL_[gs]et_options().
17808
17809 *Nils Frostberg <nils@medcom.se>*
17810
17811 * Delete various functions and files that belonged to the (now obsolete)
17812 old X509V3 handling code.
17813
17814 *Steve Henson*
17815
17816 * New Configure option "rsaref".
17817
17818 *Ulf Möller*
17819
17820 * Don't auto-generate pem.h.
17821
17822 *Bodo Moeller*
17823
17824 * Introduce type-safe ASN.1 SETs.
17825
17826 *Ben Laurie*
17827
17828 * Convert various additional casted stacks to type-safe STACK_OF() variants.
17829
17830 *Ben Laurie, Ralf S. Engelschall, Steve Henson*
17831
17832 * Introduce type-safe STACKs. This will almost certainly break lots of code
17833 that links with OpenSSL (well at least cause lots of warnings), but fear
17834 not: the conversion is trivial, and it eliminates loads of evil casts. A
17835 few STACKed things have been converted already. Feel free to convert more.
17836 In the fullness of time, I'll do away with the STACK type altogether.
17837
17838 *Ben Laurie*
17839
257e9d03
RS
17840 * Add `openssl ca -revoke <certfile>` facility which revokes a certificate
17841 specified in `<certfile>` by updating the entry in the index.txt file.
5f8e6c50
DMSP
17842 This way one no longer has to edit the index.txt file manually for
17843 revoking a certificate. The -revoke option does the gory details now.
17844
17845 *Massimiliano Pala <madwolf@openca.org>, Ralf S. Engelschall*
17846
257e9d03
RS
17847 * Fix `openssl crl -noout -text` combination where `-noout` killed the
17848 `-text` option at all and this way the `-noout -text` combination was
17849 inconsistent in `openssl crl` with the friends in `openssl x509|rsa|dsa`.
5f8e6c50
DMSP
17850
17851 *Ralf S. Engelschall*
17852
17853 * Make sure a corresponding plain text error message exists for the
17854 X509_V_ERR_CERT_REVOKED/23 error number which can occur when a
17855 verify callback function determined that a certificate was revoked.
17856
17857 *Ralf S. Engelschall*
17858
257e9d03 17859 * Bugfix: In test/testenc, don't test `openssl <cipher>` for
5f8e6c50
DMSP
17860 ciphers that were excluded, e.g. by -DNO_IDEA. Also, test
17861 all available ciphers including rc5, which was forgotten until now.
17862 In order to let the testing shell script know which algorithms
17863 are available, a new (up to now undocumented) command
257e9d03 17864 `openssl list-cipher-commands` is used.
5f8e6c50
DMSP
17865
17866 *Bodo Moeller*
17867
17868 * Bugfix: s_client occasionally would sleep in select() when
17869 it should have checked SSL_pending() first.
17870
17871 *Bodo Moeller*
17872
17873 * New functions DSA_do_sign and DSA_do_verify to provide access to
17874 the raw DSA values prior to ASN.1 encoding.
17875
17876 *Ulf Möller*
17877
17878 * Tweaks to Configure
17879
17880 *Niels Poppe <niels@netbox.org>*
17881
17882 * Add support for PKCS#5 v2.0 ASN1 PBES2 structures. No other support,
17883 yet...
17884
17885 *Steve Henson*
17886
17887 * New variables $(RANLIB) and $(PERL) in the Makefiles.
17888
17889 *Ulf Möller*
17890
17891 * New config option to avoid instructions that are illegal on the 80386.
17892 The default code is faster, but requires at least a 486.
17893
17894 *Ulf Möller*
17895
17896 * Got rid of old SSL2_CLIENT_VERSION (inconsistently used) and
17897 SSL2_SERVER_VERSION (not used at all) macros, which are now the
17898 same as SSL2_VERSION anyway.
17899
17900 *Bodo Moeller*
17901
17902 * New "-showcerts" option for s_client.
17903
17904 *Bodo Moeller*
17905
17906 * Still more PKCS#12 integration. Add pkcs12 application to openssl
17907 application. Various cleanups and fixes.
17908
17909 *Steve Henson*
17910
17911 * More PKCS#12 integration. Add new pkcs12 directory with Makefile.ssl and
17912 modify error routines to work internally. Add error codes and PBE init
17913 to library startup routines.
17914
17915 *Steve Henson*
17916
17917 * Further PKCS#12 integration. Added password based encryption, PKCS#8 and
17918 packing functions to asn1 and evp. Changed function names and error
17919 codes along the way.
17920
17921 *Steve Henson*
17922
17923 * PKCS12 integration: and so it begins... First of several patches to
17924 slowly integrate PKCS#12 functionality into OpenSSL. Add PKCS#12
17925 objects to objects.h
17926
17927 *Steve Henson*
17928
17929 * Add a new 'indent' option to some X509V3 extension code. Initial ASN1
17930 and display support for Thawte strong extranet extension.
17931
17932 *Steve Henson*
17933
17934 * Add LinuxPPC support.
17935
17936 *Jeff Dubrule <igor@pobox.org>*
17937
17938 * Get rid of redundant BN file bn_mulw.c, and rename bn_div64 to
17939 bn_div_words in alpha.s.
17940
17941 *Hannes Reinecke <H.Reinecke@hw.ac.uk> and Ben Laurie*
17942
17943 * Make sure the RSA OAEP test is skipped under -DRSAref because
17944 OAEP isn't supported when OpenSSL is built with RSAref.
17945
17946 *Ulf Moeller <ulf@fitug.de>*
17947
17948 * Move definitions of IS_SET/IS_SEQUENCE inside crypto/asn1/asn1.h
17949 so they no longer are missing under -DNOPROTO.
17950
17951 *Soren S. Jorvang <soren@t.dk>*
17952
257e9d03 17953### Changes between 0.9.1c and 0.9.2b [22 Mar 1999]
5f8e6c50
DMSP
17954
17955 * Make SSL_get_peer_cert_chain() work in servers. Unfortunately, it still
17956 doesn't work when the session is reused. Coming soon!
17957
17958 *Ben Laurie*
17959
17960 * Fix a security hole, that allows sessions to be reused in the wrong
17961 context thus bypassing client cert protection! All software that uses
17962 client certs and session caches in multiple contexts NEEDS PATCHING to
17963 allow session reuse! A fuller solution is in the works.
17964
17965 *Ben Laurie, problem pointed out by Holger Reif, Bodo Moeller (and ???)*
17966
17967 * Some more source tree cleanups (removed obsolete files
17968 crypto/bf/asm/bf586.pl, test/test.txt and crypto/sha/asm/f.s; changed
17969 permission on "config" script to be executable) and a fix for the INSTALL
17970 document.
17971
17972 *Ulf Moeller <ulf@fitug.de>*
17973
17974 * Remove some legacy and erroneous uses of malloc, free instead of
17975 Malloc, Free.
17976
17977 *Lennart Bang <lob@netstream.se>, with minor changes by Steve*
17978
17979 * Make rsa_oaep_test return non-zero on error.
17980
17981 *Ulf Moeller <ulf@fitug.de>*
17982
17983 * Add support for native Solaris shared libraries. Configure
17984 solaris-sparc-sc4-pic, make, then run shlib/solaris-sc4.sh. It'd be nice
17985 if someone would make that last step automatic.
17986
17987 *Matthias Loepfe <Matthias.Loepfe@AdNovum.CH>*
17988
17989 * ctx_size was not built with the right compiler during "make links". Fixed.
17990
17991 *Ben Laurie*
17992
17993 * Change the meaning of 'ALL' in the cipher list. It now means "everything
17994 except NULL ciphers". This means the default cipher list will no longer
17995 enable NULL ciphers. They need to be specifically enabled e.g. with
17996 the string "DEFAULT:eNULL".
17997
17998 *Steve Henson*
17999
18000 * Fix to RSA private encryption routines: if p < q then it would
18001 occasionally produce an invalid result. This will only happen with
18002 externally generated keys because OpenSSL (and SSLeay) ensure p > q.
18003
18004 *Steve Henson*
18005
18006 * Be less restrictive and allow also `perl util/perlpath.pl
1dc1ea18
DDO
18007 /path/to/bin/perl` in addition to `perl util/perlpath.pl /path/to/bin`,
18008 because this way one can also use an interpreter named `perl5` (which is
5f8e6c50 18009 usually the name of Perl 5.xxx on platforms where an Perl 4.x is still
1dc1ea18 18010 installed as `perl`).
5f8e6c50
DMSP
18011
18012 *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
18013
18014 * Let util/clean-depend.pl work also with older Perl 5.00x versions.
18015
18016 *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
18017
18018 * Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add
18019 advapi32.lib to Win32 build and change the pem test comparison
18020 to fc.exe (thanks to Ulrich Kroener <kroneru@yahoo.com> for the
18021 suggestion). Fix misplaced ASNI prototypes and declarations in evp.h
18022 and crypto/des/ede_cbcm_enc.c.
18023
18024 *Steve Henson*
18025
18026 * DES quad checksum was broken on big-endian architectures. Fixed.
18027
18028 *Ben Laurie*
18029
18030 * Comment out two functions in bio.h that aren't implemented. Fix up the
18031 Win32 test batch file so it (might) work again. The Win32 test batch file
18032 is horrible: I feel ill....
18033
18034 *Steve Henson*
18035
18036 * Move various #ifdefs around so NO_SYSLOG, NO_DIRENT etc are now selected
18037 in e_os.h. Audit of header files to check ANSI and non ANSI
18038 sections: 10 functions were absent from non ANSI section and not exported
18039 from Windows DLLs. Fixed up libeay.num for new functions.
18040
18041 *Steve Henson*
18042
1dc1ea18 18043 * Make `openssl version` output lines consistent.
5f8e6c50
DMSP
18044
18045 *Ralf S. Engelschall*
18046
18047 * Fix Win32 symbol export lists for BIO functions: Added
18048 BIO_get_ex_new_index, BIO_get_ex_num, BIO_get_ex_data and BIO_set_ex_data
18049 to ms/libeay{16,32}.def.
18050
18051 *Ralf S. Engelschall*
18052
18053 * Second round of fixing the OpenSSL perl/ stuff. It now at least compiled
18054 fine under Unix and passes some trivial tests I've now added. But the
18055 whole stuff is horribly incomplete, so a README.1ST with a disclaimer was
18056 added to make sure no one expects that this stuff really works in the
18057 OpenSSL 0.9.2 release. Additionally I've started to clean the XS sources
18058 up and fixed a few little bugs and inconsistencies in OpenSSL.{pm,xs} and
18059 openssl_bio.xs.
18060
18061 *Ralf S. Engelschall*
18062
18063 * Fix the generation of two part addresses in perl.
18064
18065 *Kenji Miyake <kenji@miyake.org>, integrated by Ben Laurie*
18066
18067 * Add config entry for Linux on MIPS.
18068
18069 *John Tobey <jtobey@channel1.com>*
18070
18071 * Make links whenever Configure is run, unless we are on Windoze.
18072
18073 *Ben Laurie*
18074
18075 * Permit extensions to be added to CRLs using crl_section in openssl.cnf.
18076 Currently only issuerAltName and AuthorityKeyIdentifier make any sense
18077 in CRLs.
18078
18079 *Steve Henson*
18080
18081 * Add a useful kludge to allow package maintainers to specify compiler and
18082 other platforms details on the command line without having to patch the
257e9d03
RS
18083 Configure script every time: One now can use
18084 `perl Configure <id>:<details>`,
18085 i.e. platform ids are allowed to have details appended
5f8e6c50 18086 to them (separated by colons). This is treated as there would be a static
257e9d03
RS
18087 pre-configured entry in Configure's %table under key `<id>` with value
18088 `<details>` and `perl Configure <id>` is called. So, when you want to
5f8e6c50 18089 perform a quick test-compile under FreeBSD 3.1 with pgcc and without
257e9d03 18090 assembler stuff you can use `perl Configure "FreeBSD-elf:pgcc:-O6:::"`
5f8e6c50
DMSP
18091 now, which overrides the FreeBSD-elf entry on-the-fly.
18092
18093 *Ralf S. Engelschall*
18094
18095 * Disable new TLS1 ciphersuites by default: they aren't official yet.
18096
18097 *Ben Laurie*
18098
18099 * Allow DSO flags like -fpic, -fPIC, -KPIC etc. to be specified
1dc1ea18 18100 on the `perl Configure ...` command line. This way one can compile
5f8e6c50
DMSP
18101 OpenSSL libraries with Position Independent Code (PIC) which is needed
18102 for linking it into DSOs.
18103
18104 *Ralf S. Engelschall*
18105
18106 * Remarkably, export ciphers were totally broken and no-one had noticed!
18107 Fixed.
18108
18109 *Ben Laurie*
18110
18111 * Cleaned up the LICENSE document: The official contact for any license
18112 questions now is the OpenSSL core team under openssl-core@openssl.org.
18113 And add a paragraph about the dual-license situation to make sure people
18114 recognize that _BOTH_ the OpenSSL license _AND_ the SSLeay license apply
18115 to the OpenSSL toolkit.
18116
18117 *Ralf S. Engelschall*
18118
1dc1ea18
DDO
18119 * General source tree makefile cleanups: Made `making xxx in yyy...`
18120 display consistent in the source tree and replaced `/bin/rm` by `rm`.
18121 Additionally cleaned up the `make links` target: Remove unnecessary
5f8e6c50
DMSP
18122 semicolons, subsequent redundant removes, inline point.sh into mklink.sh
18123 to speed processing and no longer clutter the display with confusing
18124 stuff. Instead only the actually done links are displayed.
18125
18126 *Ralf S. Engelschall*
18127
18128 * Permit null encryption ciphersuites, used for authentication only. It used
18129 to be necessary to set the preprocessor define SSL_ALLOW_ENULL to do this.
18130 It is now necessary to set SSL_FORBID_ENULL to prevent the use of null
18131 encryption.
18132
18133 *Ben Laurie*
18134
18135 * Add a bunch of fixes to the PKCS#7 stuff. It used to sometimes reorder
18136 signed attributes when verifying signatures (this would break them),
18137 the detached data encoding was wrong and public keys obtained using
18138 X509_get_pubkey() weren't freed.
18139
18140 *Steve Henson*
18141
18142 * Add text documentation for the BUFFER functions. Also added a work around
18143 to a Win95 console bug. This was triggered by the password read stuff: the
18144 last character typed gets carried over to the next fread(). If you were
18145 generating a new cert request using 'req' for example then the last
18146 character of the passphrase would be CR which would then enter the first
18147 field as blank.
18148
18149 *Steve Henson*
18150
257e9d03 18151 * Added the new 'Includes OpenSSL Cryptography Software' button as
5f8e6c50
DMSP
18152 doc/openssl_button.{gif,html} which is similar in style to the old SSLeay
18153 button and can be used by applications based on OpenSSL to show the
18154 relationship to the OpenSSL project.
18155
18156 *Ralf S. Engelschall*
18157
18158 * Remove confusing variables in function signatures in files
18159 ssl/ssl_lib.c and ssl/ssl.h.
18160
18161 *Lennart Bong <lob@kulthea.stacken.kth.se>*
18162
18163 * Don't install bss_file.c under PREFIX/include/
18164
18165 *Lennart Bong <lob@kulthea.stacken.kth.se>*
18166
18167 * Get the Win32 compile working again. Modify mkdef.pl so it can handle
18168 functions that return function pointers and has support for NT specific
18169 stuff. Fix mk1mf.pl and VC-32.pl to support NT differences also. Various
18170 #ifdef WIN32 and WINNTs sprinkled about the place and some changes from
18171 unsigned to signed types: this was killing the Win32 compile.
18172
18173 *Steve Henson*
18174
18175 * Add new certificate file to stack functions,
18176 SSL_add_dir_cert_subjects_to_stack() and
18177 SSL_add_file_cert_subjects_to_stack(). These largely supplant
18178 SSL_load_client_CA_file(), and can be used to add multiple certs easily
18179 to a stack (usually this is then handed to SSL_CTX_set_client_CA_list()).
18180 This means that Apache-SSL and similar packages don't have to mess around
18181 to add as many CAs as they want to the preferred list.
18182
18183 *Ben Laurie*
18184
18185 * Experiment with doxygen documentation. Currently only partially applied to
18186 ssl/ssl_lib.c.
257e9d03 18187 See <http://www.stack.nl/~dimitri/doxygen/index.html>, and run doxygen with
5f8e6c50
DMSP
18188 openssl.doxy as the configuration file.
18189
18190 *Ben Laurie*
18191
18192 * Get rid of remaining C++-style comments which strict C compilers hate.
18193
18194 *Ralf S. Engelschall, pointed out by Carlos Amengual*
18195
18196 * Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not
18197 compiled in by default: it has problems with large keys.
18198
18199 *Steve Henson*
18200
18201 * Add a bunch of SSL_xxx() functions for configuring the temporary RSA and
18202 DH private keys and/or callback functions which directly correspond to
18203 their SSL_CTX_xxx() counterparts but work on a per-connection basis. This
18204 is needed for applications which have to configure certificates on a
18205 per-connection basis (e.g. Apache+mod_ssl) instead of a per-context basis
18206 (e.g. s_server).
18207 For the RSA certificate situation is makes no difference, but
18208 for the DSA certificate situation this fixes the "no shared cipher"
18209 problem where the OpenSSL cipher selection procedure failed because the
18210 temporary keys were not overtaken from the context and the API provided
18211 no way to reconfigure them.
18212 The new functions now let applications reconfigure the stuff and they
18213 are in detail: SSL_need_tmp_RSA, SSL_set_tmp_rsa, SSL_set_tmp_dh,
18214 SSL_set_tmp_rsa_callback and SSL_set_tmp_dh_callback. Additionally a new
18215 non-public-API function ssl_cert_instantiate() is used as a helper
18216 function and also to reduce code redundancy inside ssl_rsa.c.
18217
18218 *Ralf S. Engelschall*
18219
18220 * Move s_server -dcert and -dkey options out of the undocumented feature
18221 area because they are useful for the DSA situation and should be
18222 recognized by the users.
18223
18224 *Ralf S. Engelschall*
18225
18226 * Fix the cipher decision scheme for export ciphers: the export bits are
18227 *not* within SSL_MKEY_MASK or SSL_AUTH_MASK, they are within
18228 SSL_EXP_MASK. So, the original variable has to be used instead of the
18229 already masked variable.
18230
18231 *Richard Levitte <levitte@stacken.kth.se>*
18232
257e9d03 18233 * Fix `port` variable from `int` to `unsigned int` in crypto/bio/b_sock.c
5f8e6c50
DMSP
18234
18235 *Richard Levitte <levitte@stacken.kth.se>*
18236
18237 * Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal()
257e9d03
RS
18238 from `int` to `unsigned int` because it is a length and initialized by
18239 EVP_DigestFinal() which expects an `unsigned int *`.
5f8e6c50
DMSP
18240
18241 *Richard Levitte <levitte@stacken.kth.se>*
18242
18243 * Don't hard-code path to Perl interpreter on shebang line of Configure
18244 script. Instead use the usual Shell->Perl transition trick.
18245
18246 *Ralf S. Engelschall*
18247
1dc1ea18 18248 * Make `openssl x509 -noout -modulus`' functional also for DSA certificates
5f8e6c50 18249 (in addition to RSA certificates) to match the behaviour of `openssl dsa
1dc1ea18
DDO
18250 -noout -modulus` as it's already the case for `openssl rsa -noout
18251 -modulus`. For RSA the -modulus is the real "modulus" while for DSA
5f8e6c50 18252 currently the public key is printed (a decision which was already done by
1dc1ea18 18253 `openssl dsa -modulus` in the past) which serves a similar purpose.
5f8e6c50
DMSP
18254 Additionally the NO_RSA no longer completely removes the whole -modulus
18255 option; it now only avoids using the RSA stuff. Same applies to NO_DSA
18256 now, too.
18257
18258 *Ralf S. Engelschall*
18259
18260 * Add Arne Ansper's reliable BIO - this is an encrypted, block-digested
18261 BIO. See the source (crypto/evp/bio_ok.c) for more info.
18262
18263 *Arne Ansper <arne@ats.cyber.ee>*
18264
18265 * Dump the old yucky req code that tried (and failed) to allow raw OIDs
18266 to be added. Now both 'req' and 'ca' can use new objects defined in the
18267 config file.
18268
18269 *Steve Henson*
18270
18271 * Add cool BIO that does syslog (or event log on NT).
18272
18273 *Arne Ansper <arne@ats.cyber.ee>, integrated by Ben Laurie*
18274
18275 * Add support for new TLS ciphersuites, TLS_RSA_EXPORT56_WITH_RC4_56_MD5,
18276 TLS_RSA_EXPORT56_WITH_RC2_CBC_56_MD5 and
18277 TLS_RSA_EXPORT56_WITH_DES_CBC_SHA, as specified in "56-bit Export Cipher
18278 Suites For TLS", draft-ietf-tls-56-bit-ciphersuites-00.txt.
18279
18280 *Ben Laurie*
18281
18282 * Add preliminary config info for new extension code.
18283
18284 *Steve Henson*
18285
18286 * Make RSA_NO_PADDING really use no padding.
18287
18288 *Ulf Moeller <ulf@fitug.de>*
18289
18290 * Generate errors when private/public key check is done.
18291
18292 *Ben Laurie*
18293
18294 * Overhaul for 'crl' utility. New function X509_CRL_print. Partial support
18295 for some CRL extensions and new objects added.
18296
18297 *Steve Henson*
18298
18299 * Really fix the ASN1 IMPLICIT bug this time... Partial support for private
18300 key usage extension and fuller support for authority key id.
18301
18302 *Steve Henson*
18303
18304 * Add OAEP encryption for the OpenSSL crypto library. OAEP is the improved
18305 padding method for RSA, which is recommended for new applications in PKCS
18306 #1 v2.0 (RFC 2437, October 1998).
18307 OAEP (Optimal Asymmetric Encryption Padding) has better theoretical
18308 foundations than the ad-hoc padding used in PKCS #1 v1.5. It is secure
18309 against Bleichbacher's attack on RSA.
18310 *Ulf Moeller <ulf@fitug.de>, reformatted, corrected and integrated by
257e9d03 18311 Ben Laurie*
5f8e6c50
DMSP
18312
18313 * Updates to the new SSL compression code
18314
18315 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
18316
18317 * Fix so that the version number in the master secret, when passed
18318 via RSA, checks that if TLS was proposed, but we roll back to SSLv3
18319 (because the server will not accept higher), that the version number
18320 is 0x03,0x01, not 0x03,0x00
18321
18322 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
18323
ec2bfb7d
DDO
18324 * Run extensive memory leak checks on SSL commands. Fixed *lots* of memory
18325 leaks in `ssl/` relating to new `X509_get_pubkey()` behaviour. Also fixes
18326 in `apps/` and an unrelated leak in `crypto/dsa/dsa_vrf.c`.
5f8e6c50
DMSP
18327
18328 *Steve Henson*
18329
18330 * Support for RAW extensions where an arbitrary extension can be
ec2bfb7d 18331 created by including its DER encoding. See `apps/openssl.cnf` for
5f8e6c50
DMSP
18332 an example.
18333
18334 *Steve Henson*
18335
18336 * Make sure latest Perl versions don't interpret some generated C array
18337 code as Perl array code in the crypto/err/err_genc.pl script.
18338
18339 *Lars Weber <3weber@informatik.uni-hamburg.de>*
18340
18341 * Modify ms/do_ms.bat to not generate assembly language makefiles since
18342 not many people have the assembler. Various Win32 compilation fixes and
18343 update to the INSTALL.W32 file with (hopefully) more accurate Win32
18344 build instructions.
18345
18346 *Steve Henson*
18347
18348 * Modify configure script 'Configure' to automatically create crypto/date.h
18349 file under Win32 and also build pem.h from pem.org. New script
18350 util/mkfiles.pl to create the MINFO file on environments that can't do a
18351 'make files': perl util/mkfiles.pl >MINFO should work.
18352
18353 *Steve Henson*
18354
18355 * Major rework of DES function declarations, in the pursuit of correctness
18356 and purity. As a result, many evil casts evaporated, and some weirdness,
18357 too. You may find this causes warnings in your code. Zapping your evil
18358 casts will probably fix them. Mostly.
18359
18360 *Ben Laurie*
18361
18362 * Fix for a typo in asn1.h. Bug fix to object creation script
18363 obj_dat.pl. It considered a zero in an object definition to mean
18364 "end of object": none of the objects in objects.h have any zeros
18365 so it wasn't spotted.
18366
18367 *Steve Henson, reported by Erwann ABALEA <eabalea@certplus.com>*
18368
18369 * Add support for Triple DES Cipher Block Chaining with Output Feedback
18370 Masking (CBCM). In the absence of test vectors, the best I have been able
18371 to do is check that the decrypt undoes the encrypt, so far. Send me test
18372 vectors if you have them.
18373
18374 *Ben Laurie*
18375
18376 * Correct calculation of key length for export ciphers (too much space was
18377 allocated for null ciphers). This has not been tested!
18378
18379 *Ben Laurie*
18380
18381 * Modifications to the mkdef.pl for Win32 DEF file creation. The usage
18382 message is now correct (it understands "crypto" and "ssl" on its
18383 command line). There is also now an "update" option. This will update
18384 the util/ssleay.num and util/libeay.num files with any new functions.
18385 If you do a:
18386 perl util/mkdef.pl crypto ssl update
18387 it will update them.
18388
18389 *Steve Henson*
18390
257e9d03 18391 * Overhauled the Perl interface:
5f8e6c50
DMSP
18392 - ported BN stuff to OpenSSL's different BN library
18393 - made the perl/ source tree CVS-aware
18394 - renamed the package from SSLeay to OpenSSL (the files still contain
18395 their history because I've copied them in the repository)
18396 - removed obsolete files (the test scripts will be replaced
18397 by better Test::Harness variants in the future)
18398
18399 *Ralf S. Engelschall*
18400
18401 * First cut for a very conservative source tree cleanup:
18402 1. merge various obsolete readme texts into doc/ssleay.txt
18403 where we collect the old documents and readme texts.
18404 2. remove the first part of files where I'm already sure that we no
18405 longer need them because of three reasons: either they are just temporary
18406 files which were left by Eric or they are preserved original files where
18407 I've verified that the diff is also available in the CVS via "cvs diff
18408 -rSSLeay_0_8_1b" or they were renamed (as it was definitely the case for
18409 the crypto/md/ stuff).
18410
18411 *Ralf S. Engelschall*
18412
18413 * More extension code. Incomplete support for subject and issuer alt
18414 name, issuer and authority key id. Change the i2v function parameters
18415 and add an extra 'crl' parameter in the X509V3_CTX structure: guess
18416 what that's for :-) Fix to ASN1 macro which messed up
18417 IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED.
18418
18419 *Steve Henson*
18420
18421 * Preliminary support for ENUMERATED type. This is largely copied from the
18422 INTEGER code.
18423
18424 *Steve Henson*
18425
18426 * Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy.
18427
18428 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
18429
257e9d03 18430 * Make sure `make rehash` target really finds the `openssl` program.
5f8e6c50
DMSP
18431
18432 *Ralf S. Engelschall, Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
18433
18434 * Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd
18435 like to hear about it if this slows down other processors.
18436
18437 *Ben Laurie*
18438
18439 * Add CygWin32 platform information to Configure script.
18440
18441 *Alan Batie <batie@aahz.jf.intel.com>*
18442
257e9d03 18443 * Fixed ms/32all.bat script: `no_asm` -> `no-asm`
5f8e6c50
DMSP
18444
18445 *Rainer W. Gerling <gerling@mpg-gv.mpg.de>*
18446
18447 * New program nseq to manipulate netscape certificate sequences
18448
18449 *Steve Henson*
18450
18451 * Modify crl2pkcs7 so it supports multiple -certfile arguments. Fix a
18452 few typos.
18453
18454 *Steve Henson*
18455
18456 * Fixes to BN code. Previously the default was to define BN_RECURSION
18457 but the BN code had some problems that would cause failures when
18458 doing certificate verification and some other functions.
18459
18460 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
18461
18462 * Add ASN1 and PEM code to support netscape certificate sequences.
18463
18464 *Steve Henson*
18465
18466 * Add ASN1 and PEM code to support netscape certificate sequences.
18467
18468 *Steve Henson*
18469
18470 * Add several PKIX and private extended key usage OIDs.
18471
18472 *Steve Henson*
18473
18474 * Modify the 'ca' program to handle the new extension code. Modify
18475 openssl.cnf for new extension format, add comments.
18476
18477 *Steve Henson*
18478
18479 * More X509 V3 changes. Fix typo in v3_bitstr.c. Add support to 'req'
18480 and add a sample to openssl.cnf so req -x509 now adds appropriate
18481 CA extensions.
18482
18483 *Steve Henson*
18484
18485 * Continued X509 V3 changes. Add to other makefiles, integrate with the
18486 error code, add initial support to X509_print() and x509 application.
18487
18488 *Steve Henson*
18489
18490 * Takes a deep breath and start adding X509 V3 extension support code. Add
18491 files in crypto/x509v3. Move original stuff to crypto/x509v3/old. All this
18492 stuff is currently isolated and isn't even compiled yet.
18493
18494 *Steve Henson*
18495
18496 * Continuing patches for GeneralizedTime. Fix up certificate and CRL
18497 ASN1 to use ASN1_TIME and modify print routines to use ASN1_TIME_print.
18498 Removed the versions check from X509 routines when loading extensions:
18499 this allows certain broken certificates that don't set the version
18500 properly to be processed.
18501
18502 *Steve Henson*
18503
18504 * Deal with irritating shit to do with dependencies, in YAAHW (Yet Another
18505 Ad Hoc Way) - Makefile.ssls now all contain local dependencies, which
18506 can still be regenerated with "make depend".
18507
18508 *Ben Laurie*
18509
18510 * Spelling mistake in C version of CAST-128.
18511
18512 *Ben Laurie, reported by Jeremy Hylton <jeremy@cnri.reston.va.us>*
18513
18514 * Changes to the error generation code. The perl script err-code.pl
18515 now reads in the old error codes and retains the old numbers, only
18516 adding new ones if necessary. It also only changes the .err files if new
18517 codes are added. The makefiles have been modified to only insert errors
18518 when needed (to avoid needlessly modifying header files). This is done
18519 by only inserting errors if the .err file is newer than the auto generated
18520 C file. To rebuild all the error codes from scratch (the old behaviour)
18521 either modify crypto/Makefile.ssl to pass the -regen flag to err_code.pl
18522 or delete all the .err files.
18523
18524 *Steve Henson*
18525
18526 * CAST-128 was incorrectly implemented for short keys. The C version has
18527 been fixed, but is untested. The assembler versions are also fixed, but
18528 new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing
18529 to regenerate it if needed.
18530 *Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun
18531 Hagino <itojun@kame.net>*
18532
18533 * File was opened incorrectly in randfile.c.
18534
18535 *Ulf Möller <ulf@fitug.de>*
18536
18537 * Beginning of support for GeneralizedTime. d2i, i2d, check and print
18538 functions. Also ASN1_TIME suite which is a CHOICE of UTCTime or
18539 GeneralizedTime. ASN1_TIME is the proper type used in certificates et
18540 al: it's just almost always a UTCTime. Note this patch adds new error
18541 codes so do a "make errors" if there are problems.
18542
18543 *Steve Henson*
18544
18545 * Correct Linux 1 recognition in config.
18546
18547 *Ulf Möller <ulf@fitug.de>*
18548
18549 * Remove pointless MD5 hash when using DSA keys in ca.
18550
18551 *Anonymous <nobody@replay.com>*
18552
18553 * Generate an error if given an empty string as a cert directory. Also
18554 generate an error if handed NULL (previously returned 0 to indicate an
18555 error, but didn't set one).
18556
18557 *Ben Laurie, reported by Anonymous <nobody@replay.com>*
18558
18559 * Add prototypes to SSL methods. Make SSL_write's buffer const, at last.
18560
18561 *Ben Laurie*
18562
18563 * Fix the dummy function BN_ref_mod_exp() in rsaref.c to have the correct
18564 parameters. This was causing a warning which killed off the Win32 compile.
18565
18566 *Steve Henson*
18567
18568 * Remove C++ style comments from crypto/bn/bn_local.h.
18569
18570 *Neil Costigan <neil.costigan@celocom.com>*
18571
18572 * The function OBJ_txt2nid was broken. It was supposed to return a nid
18573 based on a text string, looking up short and long names and finally
18574 "dot" format. The "dot" format stuff didn't work. Added new function
18575 OBJ_txt2obj to do the same but return an ASN1_OBJECT and rewrote
18576 OBJ_txt2nid to use it. OBJ_txt2obj can also return objects even if the
18577 OID is not part of the table.
18578
18579 *Steve Henson*
18580
18581 * Add prototypes to X509 lookup/verify methods, fixing a bug in
18582 X509_LOOKUP_by_alias().
18583
18584 *Ben Laurie*
18585
18586 * Sort openssl functions by name.
18587
18588 *Ben Laurie*
18589
ec2bfb7d 18590 * Get the `gendsa` command working and add it to the `list` command. Remove
5f8e6c50
DMSP
18591 encryption from sample DSA keys (in case anyone is interested the password
18592 was "1234").
18593
18594 *Steve Henson*
18595
257e9d03 18596 * Make *all* `*_free` functions accept a NULL pointer.
5f8e6c50
DMSP
18597
18598 *Frans Heymans <fheymans@isaserver.be>*
18599
18600 * If a DH key is generated in s3_srvr.c, don't blow it by trying to use
18601 NULL pointers.
18602
18603 *Anonymous <nobody@replay.com>*
18604
18605 * s_server should send the CAfile as acceptable CAs, not its own cert.
18606
18607 *Bodo Moeller <3moeller@informatik.uni-hamburg.de>*
18608
ec2bfb7d 18609 * Don't blow it for numeric `-newkey` arguments to `apps/req`.
5f8e6c50
DMSP
18610
18611 *Bodo Moeller <3moeller@informatik.uni-hamburg.de>*
18612
18613 * Temp key "for export" tests were wrong in s3_srvr.c.
18614
18615 *Anonymous <nobody@replay.com>*
18616
18617 * Add prototype for temp key callback functions
18618 SSL_CTX_set_tmp_{rsa,dh}_callback().
18619
18620 *Ben Laurie*
18621
18622 * Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and
18623 DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey().
18624
18625 *Steve Henson*
18626
18627 * X509_name_add_entry() freed the wrong thing after an error.
18628
18629 *Arne Ansper <arne@ats.cyber.ee>*
18630
18631 * rsa_eay.c would attempt to free a NULL context.
18632
18633 *Arne Ansper <arne@ats.cyber.ee>*
18634
18635 * BIO_s_socket() had a broken should_retry() on Windoze.
18636
18637 *Arne Ansper <arne@ats.cyber.ee>*
18638
18639 * BIO_f_buffer() didn't pass on BIO_CTRL_FLUSH.
18640
18641 *Arne Ansper <arne@ats.cyber.ee>*
18642
18643 * Make sure the already existing X509_STORE->depth variable is initialized
18644 in X509_STORE_new(), but document the fact that this variable is still
18645 unused in the certificate verification process.
18646
18647 *Ralf S. Engelschall*
18648
ec2bfb7d 18649 * Fix the various library and `apps/` files to free up pkeys obtained from
5f8e6c50
DMSP
18650 X509_PUBKEY_get() et al. Also allow x509.c to handle netscape extensions.
18651
18652 *Steve Henson*
18653
18654 * Fix reference counting in X509_PUBKEY_get(). This makes
18655 demos/maurice/example2.c work, amongst others, probably.
18656
18657 *Steve Henson and Ben Laurie*
18658
ec2bfb7d 18659 * First cut of a cleanup for `apps/`. First the `ssleay` program is now named
257e9d03 18660 `openssl` and second, the shortcut symlinks for the `openssl <command>`
5f8e6c50 18661 are no longer created. This way we have a single and consistent command
257e9d03 18662 line interface `openssl <command>`, similar to `cvs <command>`.
5f8e6c50
DMSP
18663
18664 *Ralf S. Engelschall, Paul Sutton and Ben Laurie*
18665
18666 * ca.c: move test for DSA keys inside #ifndef NO_DSA. Make pubkey
18667 BIT STRING wrapper always have zero unused bits.
18668
18669 *Steve Henson*
18670
18671 * Add CA.pl, perl version of CA.sh, add extended key usage OID.
18672
18673 *Steve Henson*
18674
18675 * Make the top-level INSTALL documentation easier to understand.
18676
18677 *Paul Sutton*
18678
18679 * Makefiles updated to exit if an error occurs in a sub-directory
18680 make (including if user presses ^C) [Paul Sutton]
18681
18682 * Make Montgomery context stuff explicit in RSA data structure.
18683
18684 *Ben Laurie*
18685
18686 * Fix build order of pem and err to allow for generated pem.h.
18687
18688 *Ben Laurie*
18689
18690 * Fix renumbering bug in X509_NAME_delete_entry().
18691
18692 *Ben Laurie*
18693
18694 * Enhanced the err-ins.pl script so it makes the error library number
18695 global and can add a library name. This is needed for external ASN1 and
18696 other error libraries.
18697
18698 *Steve Henson*
18699
18700 * Fixed sk_insert which never worked properly.
18701
18702 *Steve Henson*
18703
18704 * Fix ASN1 macros so they can handle indefinite length constructed
18705 EXPLICIT tags. Some non standard certificates use these: they can now
18706 be read in.
18707
18708 *Steve Henson*
18709
18710 * Merged the various old/obsolete SSLeay documentation files (doc/xxx.doc)
18711 into a single doc/ssleay.txt bundle. This way the information is still
18712 preserved but no longer messes up this directory. Now it's new room for
18713 the new set of documentation files.
18714
18715 *Ralf S. Engelschall*
18716
18717 * SETs were incorrectly DER encoded. This was a major pain, because they
18718 shared code with SEQUENCEs, which aren't coded the same. This means that
18719 almost everything to do with SETs or SEQUENCEs has either changed name or
18720 number of arguments.
18721
18722 *Ben Laurie, based on a partial fix by GP Jayan <gp@nsj.co.jp>*
18723
18724 * Fix test data to work with the above.
18725
18726 *Ben Laurie*
18727
18728 * Fix the RSA header declarations that hid a bug I fixed in 0.9.0b but
18729 was already fixed by Eric for 0.9.1 it seems.
18730
18731 *Ben Laurie - pointed out by Ulf Möller <ulf@fitug.de>*
18732
18733 * Autodetect FreeBSD3.
18734
18735 *Ben Laurie*
18736
18737 * Fix various bugs in Configure. This affects the following platforms:
18738 nextstep
18739 ncr-scde
18740 unixware-2.0
18741 unixware-2.0-pentium
18742 sco5-cc.
18743
18744 *Ben Laurie*
18745
18746 * Eliminate generated files from CVS. Reorder tests to regenerate files
18747 before they are needed.
18748
18749 *Ben Laurie*
18750
18751 * Generate Makefile.ssl from Makefile.org (to keep CVS happy).
18752
18753 *Ben Laurie*
18754
257e9d03 18755### Changes between 0.9.1b and 0.9.1c [23-Dec-1998]
5f8e6c50
DMSP
18756
18757 * Added OPENSSL_VERSION_NUMBER to crypto/crypto.h and
18758 changed SSLeay to OpenSSL in version strings.
18759
18760 *Ralf S. Engelschall*
18761
18762 * Some fixups to the top-level documents.
18763
18764 *Paul Sutton*
18765
18766 * Fixed the nasty bug where rsaref.h was not found under compile-time
18767 because the symlink to include/ was missing.
18768
18769 *Ralf S. Engelschall*
18770
18771 * Incorporated the popular no-RSA/DSA-only patches
18772 which allow to compile a RSA-free SSLeay.
18773
18774 *Andrew Cooke / Interrader Ldt., Ralf S. Engelschall*
18775
257e9d03 18776 * Fixed nasty rehash problem under `make -f Makefile.ssl links`
5f8e6c50
DMSP
18777 when "ssleay" is still not found.
18778
18779 *Ralf S. Engelschall*
18780
18781 * Added more platforms to Configure: Cray T3E, HPUX 11,
18782
18783 *Ralf S. Engelschall, Beckmann <beckman@acl.lanl.gov>*
18784
18785 * Updated the README file.
18786
18787 *Ralf S. Engelschall*
18788
18789 * Added various .cvsignore files in the CVS repository subdirs
18790 to make a "cvs update" really silent.
18791
18792 *Ralf S. Engelschall*
18793
18794 * Recompiled the error-definition header files and added
18795 missing symbols to the Win32 linker tables.
18796
18797 *Ralf S. Engelschall*
18798
18799 * Cleaned up the top-level documents;
18800 o new files: CHANGES and LICENSE
18801 o merged VERSION, HISTORY* and README* files a CHANGES.SSLeay
18802 o merged COPYRIGHT into LICENSE
18803 o removed obsolete TODO file
18804 o renamed MICROSOFT to INSTALL.W32
18805
18806 *Ralf S. Engelschall*
18807
18808 * Removed dummy files from the 0.9.1b source tree:
18809 crypto/asn1/x crypto/bio/cd crypto/bio/fg crypto/bio/grep crypto/bio/vi
18810 crypto/bn/asm/......add.c crypto/bn/asm/a.out crypto/dsa/f crypto/md5/f
18811 crypto/pem/gmon.out crypto/perlasm/f crypto/pkcs7/build crypto/rsa/f
18812 crypto/sha/asm/f crypto/threads/f ms/zzz ssl/f ssl/f.mak test/f
18813 util/f.mak util/pl/f util/pl/f.mak crypto/bf/bf_locl.old apps/f
18814
18815 *Ralf S. Engelschall*
18816
18817 * Added various platform portability fixes.
18818
18819 *Mark J. Cox*
18820
18821 * The Genesis of the OpenSSL rpject:
18822 We start with the latest (unreleased) SSLeay version 0.9.1b which Eric A.
18823 Young and Tim J. Hudson created while they were working for C2Net until
18824 summer 1998.
18825
18826 *The OpenSSL Project*
18827
257e9d03 18828### Changes between 0.9.0b and 0.9.1b [not released]
5f8e6c50
DMSP
18829
18830 * Updated a few CA certificates under certs/
18831
18832 *Eric A. Young*
18833
18834 * Changed some BIGNUM api stuff.
18835
18836 *Eric A. Young*
18837
18838 * Various platform ports: OpenBSD, Ultrix, IRIX 64bit, NetBSD,
18839 DGUX x86, Linux Alpha, etc.
18840
18841 *Eric A. Young*
18842
18843 * New COMP library [crypto/comp/] for SSL Record Layer Compression:
18844 RLE (dummy implemented) and ZLIB (really implemented when ZLIB is
18845 available).
18846
18847 *Eric A. Young*
18848
18849 * Add -strparse option to asn1pars program which parses nested
18850 binary structures
18851
18852 *Dr Stephen Henson <shenson@bigfoot.com>*
18853
18854 * Added "oid_file" to ssleay.cnf for "ca" and "req" programs.
18855
18856 *Eric A. Young*
18857
18858 * DSA fix for "ca" program.
18859
18860 *Eric A. Young*
18861
18862 * Added "-genkey" option to "dsaparam" program.
18863
18864 *Eric A. Young*
18865
18866 * Added RIPE MD160 (rmd160) message digest.
18867
18868 *Eric A. Young*
18869
18870 * Added -a (all) option to "ssleay version" command.
18871
18872 *Eric A. Young*
18873
18874 * Added PLATFORM define which is the id given to Configure.
18875
18876 *Eric A. Young*
18877
18878 * Added MemCheck_XXXX functions to crypto/mem.c for memory checking.
18879
18880 *Eric A. Young*
18881
18882 * Extended the ASN.1 parser routines.
18883
18884 *Eric A. Young*
18885
18886 * Extended BIO routines to support REUSEADDR, seek, tell, etc.
18887
18888 *Eric A. Young*
18889
18890 * Added a BN_CTX to the BN library.
18891
18892 *Eric A. Young*
18893
18894 * Fixed the weak key values in DES library
18895
18896 *Eric A. Young*
18897
18898 * Changed API in EVP library for cipher aliases.
18899
18900 *Eric A. Young*
18901
18902 * Added support for RC2/64bit cipher.
18903
18904 *Eric A. Young*
18905
18906 * Converted the lhash library to the crypto/mem.c functions.
18907
18908 *Eric A. Young*
18909
18910 * Added more recognized ASN.1 object ids.
18911
18912 *Eric A. Young*
18913
18914 * Added more RSA padding checks for SSL/TLS.
18915
18916 *Eric A. Young*
18917
18918 * Added BIO proxy/filter functionality.
18919
18920 *Eric A. Young*
18921
18922 * Added extra_certs to SSL_CTX which can be used
18923 send extra CA certificates to the client in the CA cert chain sending
18924 process. It can be configured with SSL_CTX_add_extra_chain_cert().
18925
18926 *Eric A. Young*
18927
18928 * Now Fortezza is denied in the authentication phase because
18929 this is key exchange mechanism is not supported by SSLeay at all.
18930
18931 *Eric A. Young*
18932
18933 * Additional PKCS1 checks.
18934
18935 *Eric A. Young*
18936
18937 * Support the string "TLSv1" for all TLS v1 ciphers.
18938
18939 *Eric A. Young*
18940
18941 * Added function SSL_get_ex_data_X509_STORE_CTX_idx() which gives the
18942 ex_data index of the SSL context in the X509_STORE_CTX ex_data.
18943
18944 *Eric A. Young*
18945
18946 * Fixed a few memory leaks.
18947
18948 *Eric A. Young*
18949
18950 * Fixed various code and comment typos.
18951
18952 *Eric A. Young*
18953
18954 * A minor bug in ssl/s3_clnt.c where there would always be 4 0
18955 bytes sent in the client random.
18956
18957 *Edward Bishop <ebishop@spyglass.com>*
44652c16 18958
44652c16
DMSP
18959<!-- Links -->
18960
1e13198f 18961[CVE-2020-1971]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1971
6ffc3127 18962[CVE-2020-1967]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1967
44652c16
DMSP
18963[CVE-2019-1563]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1563
18964[CVE-2019-1559]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1559
18965[CVE-2019-1552]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1552
18966[CVE-2019-1551]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1551
18967[CVE-2019-1549]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1549
18968[CVE-2019-1547]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1547
18969[CVE-2019-1543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1543
18970[CVE-2018-5407]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-5407
18971[CVE-2018-0739]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0739
18972[CVE-2018-0737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0737
18973[CVE-2018-0735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0735
18974[CVE-2018-0734]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0734
18975[CVE-2018-0733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0733
18976[CVE-2018-0732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0732
18977[CVE-2017-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3738
18978[CVE-2017-3737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3737
18979[CVE-2017-3736]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3736
18980[CVE-2017-3735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3735
18981[CVE-2017-3733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3733
18982[CVE-2017-3732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3732
18983[CVE-2017-3731]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3731
18984[CVE-2017-3730]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3730
18985[CVE-2016-7055]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7055
18986[CVE-2016-7054]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7054
18987[CVE-2016-7053]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7053
18988[CVE-2016-7052]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7052
18989[CVE-2016-6309]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6309
18990[CVE-2016-6308]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6308
18991[CVE-2016-6307]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6307
18992[CVE-2016-6306]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6306
18993[CVE-2016-6305]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6305
18994[CVE-2016-6304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6304
18995[CVE-2016-6303]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6303
18996[CVE-2016-6302]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6302
18997[CVE-2016-2183]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2183
18998[CVE-2016-2182]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2182
18999[CVE-2016-2181]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2181
19000[CVE-2016-2180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2180
19001[CVE-2016-2179]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2179
19002[CVE-2016-2178]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2178
19003[CVE-2016-2177]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2177
19004[CVE-2016-2176]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2176
19005[CVE-2016-2109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2109
19006[CVE-2016-2107]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2107
19007[CVE-2016-2106]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2106
19008[CVE-2016-2105]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2105
19009[CVE-2016-0800]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0800
19010[CVE-2016-0799]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0799
19011[CVE-2016-0798]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0798
19012[CVE-2016-0797]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0797
19013[CVE-2016-0705]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0705
19014[CVE-2016-0702]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0702
19015[CVE-2016-0701]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0701
19016[CVE-2015-3197]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3197
19017[CVE-2015-3196]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3196
19018[CVE-2015-3195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3195
19019[CVE-2015-3194]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3194
19020[CVE-2015-3193]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3193
19021[CVE-2015-1793]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1793
19022[CVE-2015-1792]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1792
19023[CVE-2015-1791]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1791
19024[CVE-2015-1790]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1790
19025[CVE-2015-1789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1789
19026[CVE-2015-1788]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1788
19027[CVE-2015-1787]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1787
19028[CVE-2015-0293]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0293
19029[CVE-2015-0291]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0291
19030[CVE-2015-0290]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0290
19031[CVE-2015-0289]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0289
19032[CVE-2015-0288]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0288
19033[CVE-2015-0287]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0287
19034[CVE-2015-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0286
19035[CVE-2015-0285]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0285
19036[CVE-2015-0209]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0209
19037[CVE-2015-0208]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0208
19038[CVE-2015-0207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0207
19039[CVE-2015-0206]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0206
19040[CVE-2015-0205]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0205
19041[CVE-2015-0204]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0204
19042[CVE-2014-8275]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-8275
19043[CVE-2014-5139]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-5139
19044[CVE-2014-3572]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3572
19045[CVE-2014-3571]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3571
19046[CVE-2014-3570]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3570
19047[CVE-2014-3569]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3569
19048[CVE-2014-3568]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3568
19049[CVE-2014-3567]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3567
19050[CVE-2014-3566]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3566
19051[CVE-2014-3513]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3513
19052[CVE-2014-3512]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3512
19053[CVE-2014-3511]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3511
19054[CVE-2014-3510]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3510
19055[CVE-2014-3509]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3509
19056[CVE-2014-3508]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3508
19057[CVE-2014-3507]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3507
19058[CVE-2014-3506]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3506
19059[CVE-2014-3505]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3505
19060[CVE-2014-3470]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3470
19061[CVE-2014-0224]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0224
19062[CVE-2014-0221]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0221
19063[CVE-2014-0195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0195
19064[CVE-2014-0160]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0160
19065[CVE-2014-0076]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0076
19066[CVE-2013-6450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-6450
19067[CVE-2013-4353]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-4353
19068[CVE-2013-0169]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0169
19069[CVE-2013-0166]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0166
19070[CVE-2012-2686]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2686
19071[CVE-2012-2333]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2333
19072[CVE-2012-2110]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2110
19073[CVE-2012-0884]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0884
19074[CVE-2012-0050]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0050
19075[CVE-2012-0027]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0027
19076[CVE-2011-4619]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4619
19077[CVE-2011-4577]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4577
19078[CVE-2011-4576]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4576
19079[CVE-2011-4109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4109
19080[CVE-2011-4108]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4108
19081[CVE-2011-3210]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3210
19082[CVE-2011-3207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3207
19083[CVE-2011-0014]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-0014
19084[CVE-2010-4252]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4252
19085[CVE-2010-4180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4180
19086[CVE-2010-3864]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-3864
19087[CVE-2010-1633]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-1633
19088[CVE-2010-0740]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0740
19089[CVE-2010-0433]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0433
19090[CVE-2009-4355]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-4355
19091[CVE-2009-3555]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3555
19092[CVE-2009-3245]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3245
19093[CVE-2009-1386]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1386
19094[CVE-2009-1379]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1379
19095[CVE-2009-1378]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1378
19096[CVE-2009-1377]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1377
19097[CVE-2009-0789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0789
19098[CVE-2009-0591]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0591
19099[CVE-2009-0590]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0590
19100[CVE-2008-5077]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-5077
19101[CVE-2008-1678]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1678
19102[CVE-2008-1672]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1672
19103[CVE-2008-0891]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-0891
19104[CVE-2007-5135]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-5135
19105[CVE-2007-4995]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-4995
19106[CVE-2006-4343]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4343
19107[CVE-2006-4339]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4339
19108[CVE-2006-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-3738
19109[CVE-2006-2940]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2940
19110[CVE-2006-2937]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2937
19111[CVE-2005-2969]: https://www.openssl.org/news/vulnerabilities.html#CVE-2005-2969
19112[CVE-2004-0112]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0112
19113[CVE-2004-0079]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0079
19114[CVE-2003-0851]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0851
19115[CVE-2003-0545]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0545
19116[CVE-2003-0544]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0544
19117[CVE-2003-0543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0543
19118[CVE-2003-0078]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0078
19119[CVE-2002-0659]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0659
19120[CVE-2002-0657]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0657
19121[CVE-2002-0656]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0656
19122[CVE-2002-0655]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0655