]> git.ipfire.org Git - thirdparty/openssl.git/blame - CHANGES.md
dhtest.c: Add test of DH_check() with q = p + 1
[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
45ada6b9 13 - [OpenSSL 3.2](#openssl-32)
3c53032a 14 - [OpenSSL 3.1](#openssl-31)
44652c16
DMSP
15 - [OpenSSL 3.0](#openssl-30)
16 - [OpenSSL 1.1.1](#openssl-111)
17 - [OpenSSL 1.1.0](#openssl-110)
18 - [OpenSSL 1.0.2](#openssl-102)
19 - [OpenSSL 1.0.1](#openssl-101)
20 - [OpenSSL 1.0.0](#openssl-100)
21 - [OpenSSL 0.9.x](#openssl-09x)
22
45ada6b9 23OpenSSL 3.2
27272657
RL
24-----------
25
3c53032a 26### Changes between 3.1 and 3.2 [xx XXX xxxx]
27272657 27
8a764202
MC
28 * Added client side support for QUIC
29
30 *Hugo Landau*
31
81bafac5
FD
32 * Added SHA256/192 algorithm support.
33
34 *Fergus Dall*
35
6b1f763c
VK
36 * Provide a new configure option `no-http` that can be used to disable HTTP
37 support.
38
39 *Vladimír Kotal*
40
cee0628e
JC
41 * TLS round-trip time calculation was added by a Brigham Young University
42 Capstone team partnering with Sandia National Laboratories. A new function
43 in ssl_lib titled SSL_get_handshake_rtt will calculate and retrieve this
44 value.
45
46 *Jairus Christensen*
47
90ae2c13
MC
48 * Added the "-quic" option to s_client to enable connectivity to QUIC servers.
49 QUIC requires the use of ALPN, so this must be specified via the "-alpn"
50 option. Use of the "advanced" s_client command command via the "-adv" option
51 is recommended.
52
53 *Matt Caswell*
54
f06ef165
BE
55 * Reworked the Fix for the Timing Oracle in RSA Decryption ([CVE-2022-4304]).
56 The previous fix for this timing side channel turned out to cause
57 a severe 2-3x performance regression in the typical use case
58 compared to 3.0.7. The new fix uses existing constant time
59 code paths, and restores the previous performance level while
60 fully eliminating all existing timing side channels.
61 The fix was developed by Bernd Edlinger with testing support
62 by Hubert Kario.
63
64 *Bernd Edlinger*
65
b21306b9
MC
66 * Added an "advanced" command mode to s_client. Use this with the "-adv"
67 option. The old "basic" command mode recognises certain letters that must
68 always appear at the start of a line and cannot be escaped. The advanced
69 command mode enables commands to be entered anywhere and there is an
70 escaping mechanism. After starting s_client with "-adv" type "{help}"
71 to show a list of available commands.
72
73 *Matt Caswell*
74
3c95ef22
TS
75 * Add Raw Public Key (RFC7250) support. Authentication is supported
76 by matching keys against either local policy (TLSA records synthesised
77 from the expected keys) or DANE (TLSA records obtained by the
78 application from DNS). TLSA records will also match the same key in
79 the server certificate, should RPK use not happen to be negotiated.
80
81 *Todd Short*
82
a8aad913
OM
83 * Added EC_GROUP_to_params which creates an OSSL_PARAM array
84 from a given EC_GROUP.
85
86 *Oliver Mihatsch*
87
ee58915c
MB
88 * Added support for pluggable (provider-based) TLS signature algorithms.
89 This enables TLS 1.3 authentication operations with algorithms embedded
90 in providers not included by default in OpenSSL. In combination with
91 the already available pluggable KEM and X.509 support, this enables
92 for example suitable providers to deliver post-quantum or quantum-safe
93 cryptography to OpenSSL users.
94
95 *Michael Baentsch*
96
ad062480
SF
97 * Added support for Hybrid Public Key Encryption (HPKE) as defined
98 in RFC9180. HPKE is required for TLS Encrypted ClientHello (ECH),
99 Message Layer Security (MLS) and other IETF specifications.
100 HPKE can also be used by other applications that require
101 encrypting "to" an ECDH public key. External APIs are defined in
102 include/openssl/hpke.h and documented in doc/man3/OSSL_HPKE_CTX_new.pod
103
104 *Stephen Farrell*
105
b67cb09f
TS
106 * Add support for certificate compression (RFC8879), including
107 library support for Brotli and Zstandard compression.
108
109 *Todd Short*
110
e869c867
GW
111 * Add the ability to add custom attributes to PKCS12 files. Add a new API
112 PKCS12_create_ex2, identical to the existing PKCS12_create_ex but allows
113 for a user specified callback and optional argument.
114 Added a new PKCS12_SAFEBAG_set0_attr, which allows for a new attr to be
115 added to the existing STACK_OF attrs.
116
117 *Graham Woodward*
118
4a532de9
MC
119 * Major refactor of the libssl record layer
120
121 *Matt Caswell*
122
ce602bb0
MC
123 * Added a new BIO_s_dgram_mem() to read/write datagrams to memory
124
125 *Matt Caswell*
126
e393064e
K
127 * Add a mac salt length option for the pkcs12 command.
128
129 *Xinping Chen*
130
a425c0fe
KK
131 * Add more SRTP protection profiles from RFC8723 and RFC8269.
132
133 *Kijin Kim*
134
7c78932b
DU
135 * Extended Kernel TLS (KTLS) to support TLS 1.3 receive offload.
136
137 *Daiki Ueno, John Baldwin and Dmitry Podgorny*
138
a3e53d56
TS
139 * Add support for TCP Fast Open (RFC7413) to macOS, Linux, and FreeBSD where
140 supported and enabled.
141
142 *Todd Short*
143
b139a956
NT
144 * Add ciphersuites based on DHE_PSK (RFC 4279) and ECDHE_PSK (RFC 5489)
145 to the list of ciphersuites providing Perfect Forward Secrecy as
146 required by SECLEVEL >= 3.
147
148 *Dmitry Belyavskiy, Nicola Tuveri*
149
cbb1cda6
DDO
150 * Add new SSL APIs to aid in efficiently implementing TLS/SSL fingerprinting.
151 The SSL_CTRL_GET_IANA_GROUPS control code, exposed as the
152 SSL_get0_iana_groups() function-like macro, retrieves the list of
153 supported groups sent by the peer.
154 The function SSL_client_hello_get_extension_order() populates
155 a caller-supplied array with the list of extension types present in the
156 ClientHello, in order of appearance.
13a53fbf
PL
157
158 *Phus Lu*
159
1d28ada1
DS
160 * Fixed PEM_write_bio_PKCS8PrivateKey() and PEM_write_bio_PKCS8PrivateKey_nid()
161 to make it possible to use empty passphrase strings.
59ccb72c
DS
162
163 *Darshan Sen*
164
a4c4090c
MC
165 * The default SSL/TLS security level has been changed from 1 to 2. RSA,
166 DSA and DH keys of 1024 bits and above and less than 2048 bits and ECC keys
167 of 160 bits and above and less than 224 bits were previously accepted by
168 default but are now no longer allowed. By default TLS compression was
169 already disabled in previous OpenSSL versions. At security level 2 it cannot
170 be enabled.
171
172 *Matt Caswell*
173
d1b26ddb
EL
174 * The SSL_CTX_set_cipher_list family functions now accept ciphers using their
175 IANA standard names.
176
177 *Erik Lax*
178
c8ffd220
P
179 * The PVK key derivation function has been moved from b2i_PVK_bio_ex() into
180 the legacy crypto provider as an EVP_KDF. Applications requiring this KDF
181 will need to load the legacy crypto provider.
182
183 *Paul Dale*
e0710222
P
184 * CCM8 cipher suites in TLS have been downgraded to security level zero
185 because they use a short authentication tag which lowers their strength.
1a473d1c
P
186
187 *Paul Dale*
188
537976de
DB
189 * Subject or issuer names in X.509 objects are now displayed as UTF-8 strings
190 by default.
191
192 *Dmitry Belyavskiy*
27272657 193
3fa6dbd1
DDO
194 * Add X.509 certificate codeSigning purpose and related checks on key usage and
195 extended key usage of the leaf certificate according to the CA/Browser Forum.
196
197 * Lutz Jänicke*
198
342e3652
DDO
199 * The `x509`, `ca`, and `req` apps now produce X.509 v3 certificates.
200 The `-x509v1` option of `req` prefers generation of X.509 v1 certificates.
201 `X509_sign()` and `X509_sign_ctx()` make sure that the certificate has
202 X.509 version 3 if the certificate information includes X.509 extensions.
203
204 *David von Oheimb*
205
cbb1cda6
DDO
206 * Fix and extend certificate handling and the apps `x509`, `verify` etc.
207 such as adding a trace facility for debugging certificate chain building.
208
209 *David von Oheimb*
210
211 * Various fixes and extensions to the CMP+CRMF implementation and the `cmp` app
212 in particular supporting requests for central key generation, generalized
213 polling, and various types of genm/genp exchanges defined in CMP Updates.
214
215 *David von Oheimb*
216
217 * Fixes and extensions to the HTTP client and to the HTTP server in `apps/`
218 like correcting the TLS and proxy support and adding tracing for debugging.
219
220 *David von Oheimb*
221
222 * Extended the CMS API for handling `CMS_SignedData` and `CMS_EnvelopedData`.
223
224 *David von Oheimb*
225
65def9de
DDO
226 * `CMS_add0_cert()` and `CMS_add1_cert()` no more throw an error
227 if a certificate to be added is already present.
228 * `CMS_sign_ex()` and `CMS_sign()` now ignore any duplicate certificates
229 in their `certs` argument and no longer throw an error for them.
230
231 *David von Oheimb*
232
cbb1cda6
DDO
233 * Fixed and extended `util/check-format.pl` for checking adherence to the
234 coding style <https://www.openssl.org/policies/technical/coding-style.html>.
235 The checks are meanwhile more complete and yield fewer false positives.
236
237 *David von Oheimb*
238
664e096c
HL
239 * Add new BIO_sendmmsg() and BIO_recvmmsg() BIO methods which allow
240 sending and receiving multiple messages in a single call. An implementation
241 is provided for BIO_dgram. For further details, see BIO_sendmmsg(3).
242
243 *Hugo Landau*
244
606e0426
HL
245 * Support for loading root certificates from the Windows certificate store
246 has been added. The support is in the form of a store which recognises the
dfdbc113
HL
247 URI string of `org.openssl.winstore://`. This URI scheme currently takes no
248 arguments. This store is built by default and can be disabled using the new
249 compile-time option `no-winstore`. This store is not currently used by
250 default and must be loaded explicitly using the above store URI. It is
251 expected to be loaded by default in the future.
021859bf
HL
252
253 *Hugo Landau*
254
34c2f90d
TZ
255 * Enable KTLS with the TLS 1.3 CCM mode ciphersuites. Note that some linux
256 kernel versions that support KTLS have a known bug in CCM processing. That
257 has been fixed in stable releases starting from 5.4.164, 5.10.84, 5.15.7,
258 and all releases since 5.16. KTLS with CCM ciphersuites should be only used
259 on these releases.
260
261 *Tianjia Zhang*
262
cd715b7e
MM
263 * Zerocopy KTLS sendfile() support on Linux.
264
265 *Maxim Mikityanskiy*
266
c3aed7e4
HK
267 * Added and enabled by default implicit rejection in RSA PKCS#1 v1.5
268 decryption as a protection against Bleichenbacher-like attacks.
269 The RSA decryption API will now return a randomly generated deterministic
270 message instead of an error in case it detects an error when checking
271 padding during PKCS#1 v1.5 decryption. This is a general protection against
272 issues like CVE-2020-25659 and CVE-2020-25657. This protection can be
273 disabled by calling
274 `EVP_PKEY_CTX_ctrl_str(ctx, "rsa_pkcs1_implicit_rejection". "0")`
275 on the RSA decryption context.
276
277 *Hubert Kario*
278
6dfa998f
ČK
279 * Support for Argon2d, Argon2i, Argon2id KDFs has been added along with
280 basic thread pool implementation for select platforms.
281
282 *Čestmír Kalina*
283
3c53032a
TM
284OpenSSL 3.1
285-----------
286
7a3d32ae
P
287### Changes between 3.1.1 and 3.1.2 [xx XXX xxxx]
288
4ec53ad6
MC
289 * Fix DH_check() excessive time with over sized modulus
290
291 The function DH_check() performs various checks on DH parameters. One of
292 those checks confirms that the modulus ("p" parameter) is not too large.
293 Trying to use a very large modulus is slow and OpenSSL will not normally use
294 a modulus which is over 10,000 bits in length.
295
296 However the DH_check() function checks numerous aspects of the key or
297 parameters that have been supplied. Some of those checks use the supplied
298 modulus value even if it has already been found to be too large.
299
300 A new limit has been added to DH_check of 32,768 bits. Supplying a
301 key/parameters with a modulus over this size will simply cause DH_check() to
302 fail.
303
304 ([CVE-2023-3446])
305
306 *Matt Caswell*
307
1e398bec
TM
308 * Do not ignore empty associated data entries with AES-SIV.
309
310 The AES-SIV algorithm allows for authentication of multiple associated
311 data entries along with the encryption. To authenticate empty data the
312 application has to call `EVP_EncryptUpdate()` (or `EVP_CipherUpdate()`)
313 with NULL pointer as the output buffer and 0 as the input buffer length.
314 The AES-SIV implementation in OpenSSL just returns success for such call
315 instead of performing the associated data authentication operation.
316 The empty data thus will not be authenticated. ([CVE-2023-2975])
317
318 Thanks to Juerg Wullschleger (Google) for discovering the issue.
319
320 The fix changes the authentication tag value and the ciphertext for
321 applications that use empty associated data entries with AES-SIV.
322 To decrypt data encrypted with previous versions of OpenSSL the application
323 has to skip calls to `EVP_DecryptUpdate()` for empty associated data
324 entries.
325
326 *Tomas Mraz*
327
7a3d32ae
P
328 * When building with the `enable-fips` option and using the resulting
329 FIPS provider, TLS 1.2 will, by default, mandate the use of an extended
330 master secret (FIPS 140-3 IG G.Q) and the Hash and HMAC DRBGs will
331 not operate with truncated digests (FIPS 140-3 IG G.R).
332
333 *Paul Dale*
334
335### Changes between 3.1.0 and 3.1.1 [30 May 2023]
83ff6cbd 336
d63b3e79
RL
337 * Mitigate for the time it takes for `OBJ_obj2txt` to translate gigantic
338 OBJECT IDENTIFIER sub-identifiers to canonical numeric text form.
339
340 OBJ_obj2txt() would translate any size OBJECT IDENTIFIER to canonical
341 numeric text form. For gigantic sub-identifiers, this would take a very
342 long time, the time complexity being O(n^2) where n is the size of that
343 sub-identifier. ([CVE-2023-2650])
344
345 To mitigitate this, `OBJ_obj2txt()` will only translate an OBJECT
346 IDENTIFIER to canonical numeric text form if the size of that OBJECT
347 IDENTIFIER is 586 bytes or less, and fail otherwise.
348
18f82df5 349 The basis for this restriction is [RFC 2578 (STD 58), section 3.5]. OBJECT
d63b3e79
RL
350 IDENTIFIER values, which stipulates that OBJECT IDENTIFIERS may have at
351 most 128 sub-identifiers, and that the maximum value that each sub-
352 identifier may have is 2^32-1 (4294967295 decimal).
353
354 For each byte of every sub-identifier, only the 7 lower bits are part of
355 the value, so the maximum amount of bytes that an OBJECT IDENTIFIER with
356 these restrictions may occupy is 32 * 128 / 7, which is approximately 586
357 bytes.
358
d63b3e79
RL
359 *Richard Levitte*
360
c88e01a9
TM
361 * Multiple algorithm implementation fixes for ARM BE platforms.
362
363 *Liu-ErMeng*
364
365 * Added a -pedantic option to fipsinstall that adjusts the various
366 settings to ensure strict FIPS compliance rather than backwards
367 compatibility.
368
369 *Paul Dale*
370
72dfe465 371 * Fixed buffer overread in AES-XTS decryption on ARM 64 bit platforms which
e6990079
TM
372 happens if the buffer size is 4 mod 5 in 16 byte AES blocks. This can
373 trigger a crash of an application using AES-XTS decryption if the memory
374 just after the buffer being decrypted is not mapped.
72dfe465
TM
375 Thanks to Anton Romanov (Amazon) for discovering the issue.
376 ([CVE-2023-1255])
377
378 *Nevine Ebeid*
379
808b30f6
P
380 * Add FIPS provider configuration option to disallow the use of
381 truncated digests with Hash and HMAC DRBGs (q.v. FIPS 140-3 IG D.R.).
382 The option '-no_drbg_truncated_digests' can optionally be
383 supplied to 'openssl fipsinstall'.
384
385 *Paul Dale*
386
5ab3f71a
TM
387 * Corrected documentation of X509_VERIFY_PARAM_add0_policy() to mention
388 that it does not enable policy checking. Thanks to David Benjamin for
389 discovering this issue.
390 ([CVE-2023-0466])
391
392 *Tomáš Mráz*
393
986f9a67
MC
394 * Fixed an issue where invalid certificate policies in leaf certificates are
395 silently ignored by OpenSSL and other certificate policy checks are skipped
396 for that certificate. A malicious CA could use this to deliberately assert
397 invalid certificate policies in order to circumvent policy checking on the
398 certificate altogether.
399 ([CVE-2023-0465])
400
401 *Matt Caswell*
402
83ff6cbd
P
403 * Limited the number of nodes created in a policy tree to mitigate
404 against CVE-2023-0464. The default limit is set to 1000 nodes, which
405 should be sufficient for most installations. If required, the limit
406 can be adjusted by setting the OPENSSL_POLICY_TREE_NODES_MAX build
407 time define to a desired maximum number of nodes or zero to allow
408 unlimited growth.
986f9a67 409 ([CVE-2023-0464])
83ff6cbd
P
410
411 *Paul Dale*
412
413### Changes between 3.0 and 3.1.0 [14 Mar 2023]
3c53032a 414
50ea5cdc 415 * Add FIPS provider configuration option to enforce the
416 Extended Master Secret (EMS) check during the TLS1_PRF KDF.
417 The option '-ems-check' can optionally be supplied to
418 'openssl fipsinstall'.
419
420 *Shane Lontis*
421
d4e105f6
P
422 * The FIPS provider includes a few non-approved algorithms for
423 backward compatibility purposes and the "fips=yes" property query
424 must be used for all algorithm fetches to ensure FIPS compliance.
425
8c02b98f
P
426 The algorithms that are included but not approved are Triple DES ECB,
427 Triple DES CBC and EdDSA.
d4e105f6
P
428
429 *Paul Dale*
430
ec3342e7
TM
431 * Added support for KMAC in KBKDF.
432
433 *Shane Lontis*
434
3c53032a
TM
435 * RNDR and RNDRRS support in provider functions to provide
436 random number generation for Arm CPUs (aarch64).
437
438 *Orr Toledano*
439
440 * s_client and s_server apps now explicitly say when the TLS version
441 does not include the renegotiation mechanism. This avoids confusion
442 between that scenario versus when the TLS version includes secure
443 renegotiation but the peer lacks support for it.
444
445 *Felipe Gasper*
446
447 * AES-GCM enabled with AVX512 vAES and vPCLMULQDQ.
448
449 *Tomasz Kantecki, Andrey Matyukov*
450
451 * The various OBJ_* functions have been made thread safe.
452
453 *Paul Dale*
454
455 * Parallel dual-prime 1536/2048-bit modular exponentiation for
456 AVX512_IFMA capable processors.
457
458 *Sergey Kirillov, Andrey Matyukov (Intel Corp)*
459
460 * The functions `OPENSSL_LH_stats`, `OPENSSL_LH_node_stats`,
461 `OPENSSL_LH_node_usage_stats`, `OPENSSL_LH_stats_bio`,
462 `OPENSSL_LH_node_stats_bio` and `OPENSSL_LH_node_usage_stats_bio` are now
463 marked deprecated from OpenSSL 3.1 onwards and can be disabled by defining
464 `OPENSSL_NO_DEPRECATED_3_1`.
465
466 The macro `DEFINE_LHASH_OF` is now deprecated in favour of the macro
467 `DEFINE_LHASH_OF_EX`, which omits the corresponding type-specific function
468 definitions for these functions regardless of whether
469 `OPENSSL_NO_DEPRECATED_3_1` is defined.
470
471 Users of `DEFINE_LHASH_OF` may start receiving deprecation warnings for these
472 functions regardless of whether they are using them. It is recommended that
473 users transition to the new macro, `DEFINE_LHASH_OF_EX`.
474
475 *Hugo Landau*
476
477 * When generating safe-prime DH parameters set the recommended private key
478 length equivalent to minimum key lengths as in RFC 7919.
479
480 *Tomáš Mráz*
481
6c73ca4a
CL
482 * Change the default salt length for PKCS#1 RSASSA-PSS signatures to the
483 maximum size that is smaller or equal to the digest length to comply with
484 FIPS 186-4 section 5. This is implemented by a new option
485 `OSSL_PKEY_RSA_PSS_SALT_LEN_AUTO_DIGEST_MAX` ("auto-digestmax") for the
486 `rsa_pss_saltlen` parameter, which is now the default. Signature
487 verification is not affected by this change and continues to work as before.
488
489 *Clemens Lang*
490
c868d1f9
TM
491OpenSSL 3.0
492-----------
493
494For OpenSSL 3.0 a [Migration guide][] has been added, so the CHANGES entries
495listed here are only a brief description.
496The migration guide contains more detailed information related to new features,
497breaking changes, and mappings for the large list of deprecated functions.
498
499[Migration guide]: https://github.com/openssl/openssl/tree/master/doc/man7/migration_guide.pod
500
5f14b5bc
TM
501### Changes between 3.0.7 and 3.0.8 [7 Feb 2023]
502
503 * Fixed NULL dereference during PKCS7 data verification.
504
505 A NULL pointer can be dereferenced when signatures are being
506 verified on PKCS7 signed or signedAndEnveloped data. In case the hash
507 algorithm used for the signature is known to the OpenSSL library but
508 the implementation of the hash algorithm is not available the digest
509 initialization will fail. There is a missing check for the return
510 value from the initialization function which later leads to invalid
511 usage of the digest API most likely leading to a crash.
512 ([CVE-2023-0401])
513
514 PKCS7 data is processed by the SMIME library calls and also by the
515 time stamp (TS) library calls. The TLS implementation in OpenSSL does
516 not call these functions however third party applications would be
517 affected if they call these functions to verify signatures on untrusted
518 data.
519
520 *Tomáš Mráz*
521
522 * Fixed X.400 address type confusion in X.509 GeneralName.
523
524 There is a type confusion vulnerability relating to X.400 address processing
525 inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING
526 but the public structure definition for GENERAL_NAME incorrectly specified
527 the type of the x400Address field as ASN1_TYPE. This field is subsequently
528 interpreted by the OpenSSL function GENERAL_NAME_cmp as an ASN1_TYPE rather
529 than an ASN1_STRING.
530
531 When CRL checking is enabled (i.e. the application sets the
532 X509_V_FLAG_CRL_CHECK flag), this vulnerability may allow an attacker to
533 pass arbitrary pointers to a memcmp call, enabling them to read memory
534 contents or enact a denial of service.
535 ([CVE-2023-0286])
536
537 *Hugo Landau*
538
539 * Fixed NULL dereference validating DSA public key.
540
541 An invalid pointer dereference on read can be triggered when an
542 application tries to check a malformed DSA public key by the
543 EVP_PKEY_public_check() function. This will most likely lead
544 to an application crash. This function can be called on public
545 keys supplied from untrusted sources which could allow an attacker
546 to cause a denial of service attack.
547
548 The TLS implementation in OpenSSL does not call this function
549 but applications might call the function if there are additional
550 security requirements imposed by standards such as FIPS 140-3.
551 ([CVE-2023-0217])
552
553 *Shane Lontis, Tomáš Mráz*
554
555 * Fixed Invalid pointer dereference in d2i_PKCS7 functions.
556
557 An invalid pointer dereference on read can be triggered when an
558 application tries to load malformed PKCS7 data with the
559 d2i_PKCS7(), d2i_PKCS7_bio() or d2i_PKCS7_fp() functions.
560
561 The result of the dereference is an application crash which could
562 lead to a denial of service attack. The TLS implementation in OpenSSL
563 does not call this function however third party applications might
564 call these functions on untrusted data.
565 ([CVE-2023-0216])
566
567 *Tomáš Mráz*
568
569 * Fixed Use-after-free following BIO_new_NDEF.
570
571 The public API function BIO_new_NDEF is a helper function used for
572 streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL
573 to support the SMIME, CMS and PKCS7 streaming capabilities, but may also
574 be called directly by end user applications.
575
576 The function receives a BIO from the caller, prepends a new BIO_f_asn1
577 filter BIO onto the front of it to form a BIO chain, and then returns
578 the new head of the BIO chain to the caller. Under certain conditions,
579 for example if a CMS recipient public key is invalid, the new filter BIO
580 is freed and the function returns a NULL result indicating a failure.
581 However, in this case, the BIO chain is not properly cleaned up and the
582 BIO passed by the caller still retains internal pointers to the previously
583 freed filter BIO. If the caller then goes on to call BIO_pop() on the BIO
584 then a use-after-free will occur. This will most likely result in a crash.
585 ([CVE-2023-0215])
586
587 *Viktor Dukhovni, Matt Caswell*
588
589 * Fixed Double free after calling PEM_read_bio_ex.
590
591 The function PEM_read_bio_ex() reads a PEM file from a BIO and parses and
592 decodes the "name" (e.g. "CERTIFICATE"), any header data and the payload
593 data. If the function succeeds then the "name_out", "header" and "data"
594 arguments are populated with pointers to buffers containing the relevant
595 decoded data. The caller is responsible for freeing those buffers. It is
596 possible to construct a PEM file that results in 0 bytes of payload data.
597 In this case PEM_read_bio_ex() will return a failure code but will populate
598 the header argument with a pointer to a buffer that has already been freed.
599 If the caller also frees this buffer then a double free will occur. This
600 will most likely lead to a crash.
601
602 The functions PEM_read_bio() and PEM_read() are simple wrappers around
603 PEM_read_bio_ex() and therefore these functions are also directly affected.
604
605 These functions are also called indirectly by a number of other OpenSSL
606 functions including PEM_X509_INFO_read_bio_ex() and
607 SSL_CTX_use_serverinfo_file() which are also vulnerable. Some OpenSSL
608 internal uses of these functions are not vulnerable because the caller does
609 not free the header argument if PEM_read_bio_ex() returns a failure code.
610 ([CVE-2022-4450])
611
612 *Kurt Roeckx, Matt Caswell*
613
614 * Fixed Timing Oracle in RSA Decryption.
615
616 A timing based side channel exists in the OpenSSL RSA Decryption
617 implementation which could be sufficient to recover a plaintext across
618 a network in a Bleichenbacher style attack. To achieve a successful
619 decryption an attacker would have to be able to send a very large number
620 of trial messages for decryption. The vulnerability affects all RSA padding
621 modes: PKCS#1 v1.5, RSA-OEAP and RSASVE.
622 ([CVE-2022-4304])
623
624 *Dmitry Belyavsky, Hubert Kario*
625
626 * Fixed X.509 Name Constraints Read Buffer Overflow.
627
628 A read buffer overrun can be triggered in X.509 certificate verification,
629 specifically in name constraint checking. The read buffer overrun might
630 result in a crash which could lead to a denial of service attack.
631 In a TLS client, this can be triggered by connecting to a malicious
632 server. In a TLS server, this can be triggered if the server requests
633 client authentication and a malicious client connects.
634 ([CVE-2022-4203])
635
636 *Viktor Dukhovni*
637
638 * Fixed X.509 Policy Constraints Double Locking security issue.
639
640 If an X.509 certificate contains a malformed policy constraint and
641 policy processing is enabled, then a write lock will be taken twice
642 recursively. On some operating systems (most widely: Windows) this
643 results in a denial of service when the affected process hangs. Policy
644 processing being enabled on a publicly facing server is not considered
645 to be a common setup.
646 ([CVE-2022-3996])
647
648 *Paul Dale*
f66c1272
NT
649
650 * Our provider implementations of `OSSL_FUNC_KEYMGMT_EXPORT` and
651 `OSSL_FUNC_KEYMGMT_GET_PARAMS` for EC and SM2 keys now honor
652 `OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT` as set (and
653 default to `POINT_CONVERSION_UNCOMPRESSED`) when exporting
654 `OSSL_PKEY_PARAM_PUB_KEY`, instead of unconditionally using
655 `POINT_CONVERSION_COMPRESSED` as in previous 3.x releases.
656 For symmetry, our implementation of `EVP_PKEY_ASN1_METHOD->export_to`
657 for legacy EC and SM2 keys is also changed similarly to honor the
658 equivalent conversion format flag as specified in the underlying
659 `EC_KEY` object being exported to a provider, when this function is
660 called through `EVP_PKEY_export()`.
661
662 *Nicola Tuveri*
663
e0fbaf2a
TM
664### Changes between 3.0.6 and 3.0.7 [1 Nov 2022]
665
666 * Fixed two buffer overflows in punycode decoding functions.
667
668 A buffer overrun can be triggered in X.509 certificate verification,
669 specifically in name constraint checking. Note that this occurs after
670 certificate chain signature verification and requires either a CA to
671 have signed the malicious certificate or for the application to continue
672 certificate verification despite failure to construct a path to a trusted
673 issuer.
674
675 In a TLS client, this can be triggered by connecting to a malicious
676 server. In a TLS server, this can be triggered if the server requests
677 client authentication and a malicious client connects.
678
679 An attacker can craft a malicious email address to overflow
680 an arbitrary number of bytes containing the `.` character (decimal 46)
681 on the stack. This buffer overflow could result in a crash (causing a
682 denial of service).
683 ([CVE-2022-3786])
684
685 An attacker can craft a malicious email address to overflow four
686 attacker-controlled bytes on the stack. This buffer overflow could
687 result in a crash (causing a denial of service) or potentially remote code
688 execution depending on stack layout for any given platform/compiler.
689 ([CVE-2022-3602])
690
691 *Paul Dale*
692
693 * Removed all references to invalid OSSL_PKEY_PARAM_RSA names for CRT
694 parameters in OpenSSL code.
695 Applications should not use the names OSSL_PKEY_PARAM_RSA_FACTOR,
696 OSSL_PKEY_PARAM_RSA_EXPONENT and OSSL_PKEY_PARAM_RSA_COEFFICIENT.
697 Use the numbered names such as OSSL_PKEY_PARAM_RSA_FACTOR1 instead.
698 Using these invalid names may cause algorithms to use slower methods
699 that ignore the CRT parameters.
700
701 *Shane Lontis*
702
703 * Fixed a regression introduced in 3.0.6 version raising errors on some stack
704 operations.
705
706 *Tomáš Mráz*
707
708 * Fixed a regression introduced in 3.0.6 version not refreshing the certificate
709 data to be signed before signing the certificate.
710
711 *Gibeom Gwon*
b6553796
TM
712
713 * Added RIPEMD160 to the default provider.
714
715 *Paul Dale*
716
e0fbaf2a
TM
717 * Ensured that the key share group sent or accepted for the key exchange
718 is allowed for the protocol version.
719
720 *Matt Caswell*
721
79edcf4d
MC
722### Changes between 3.0.5 and 3.0.6 [11 Oct 2022]
723
724 * OpenSSL supports creating a custom cipher via the legacy
725 EVP_CIPHER_meth_new() function and associated function calls. This function
726 was deprecated in OpenSSL 3.0 and application authors are instead encouraged
727 to use the new provider mechanism in order to implement custom ciphers.
728
729 OpenSSL versions 3.0.0 to 3.0.5 incorrectly handle legacy custom ciphers
730 passed to the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() and
731 EVP_CipherInit_ex2() functions (as well as other similarly named encryption
732 and decryption initialisation functions). Instead of using the custom cipher
733 directly it incorrectly tries to fetch an equivalent cipher from the
734 available providers. An equivalent cipher is found based on the NID passed to
735 EVP_CIPHER_meth_new(). This NID is supposed to represent the unique NID for a
736 given cipher. However it is possible for an application to incorrectly pass
737 NID_undef as this value in the call to EVP_CIPHER_meth_new(). When NID_undef
738 is used in this way the OpenSSL encryption/decryption initialisation function
739 will match the NULL cipher as being equivalent and will fetch this from the
740 available providers. This will succeed if the default provider has been
741 loaded (or if a third party provider has been loaded that offers this
742 cipher). Using the NULL cipher means that the plaintext is emitted as the
743 ciphertext.
744
745 Applications are only affected by this issue if they call
746 EVP_CIPHER_meth_new() using NID_undef and subsequently use it in a call to an
747 encryption/decryption initialisation function. Applications that only use
748 SSL/TLS are not impacted by this issue.
749 ([CVE-2022-3358])
750
751 *Matt Caswell*
752
753 * Fix LLVM vs Apple LLVM version numbering confusion that caused build failures
754 on MacOS 10.11
755
756 *Richard Levitte*
757
758 * Fixed the linux-mips64 Configure target which was missing the
759 SIXTY_FOUR_BIT bn_ops flag. This was causing heap corruption on that
760 platform.
761
762 *Adam Joseph*
763
764 * Fix handling of a ticket key callback that returns 0 in TLSv1.3 to not send a
765 ticket
766
767 *Matt Caswell*
768
769 * Correctly handle a retransmitted ClientHello in DTLS
770
771 *Matt Caswell*
772
773 * Fixed detection of ktls support in cross-compile environment on Linux
774
775 *Tomas Mraz*
776
777 * Fixed some regressions and test failures when running the 3.0.0 FIPS provider
778 against 3.0.x
779
780 *Paul Dale*
781
782 * Fixed SSL_pending() and SSL_has_pending() with DTLS which were failing to
783 report correct results in some cases
784
785 *Matt Caswell*
786
787 * Fix UWP builds by defining VirtualLock
788
789 *Charles Milette*
790
791 * For known safe primes use the minimum key length according to RFC 7919.
792 Longer private key sizes unnecessarily raise the cycles needed to compute the
793 shared secret without any increase of the real security. This fixes a
794 regression from 1.1.1 where these shorter keys were generated for the known
795 safe primes.
796
797 *Tomas Mraz*
798
799 * Added the loongarch64 target
800
801 *Shi Pujin*
802
803 * Fixed EC ASM flag passing. Flags for ASM implementations of EC curves were
804 only passed to the FIPS provider and not to the default or legacy provider.
805
806 *Juergen Christ*
807
808 * Fixed reported performance degradation on aarch64. Restored the
809 implementation prior to commit 2621751 ("aes/asm/aesv8-armx.pl: avoid
810 32-bit lane assignment in CTR mode") for 64bit targets only, since it is
811 reportedly 2-17% slower and the silicon errata only affects 32bit targets.
812 The new algorithm is still used for 32 bit targets.
813
814 *Bernd Edlinger*
815
816 * Added a missing header for memcmp that caused compilation failure on some
817 platforms
818
819 *Gregor Jasny*
820
821### Changes between 3.0.4 and 3.0.5 [5 Jul 2022]
822
823 * The OpenSSL 3.0.4 release introduced a serious bug in the RSA
824 implementation for X86_64 CPUs supporting the AVX512IFMA instructions.
825 This issue makes the RSA implementation with 2048 bit private keys
826 incorrect on such machines and memory corruption will happen during
827 the computation. As a consequence of the memory corruption an attacker
828 may be able to trigger a remote code execution on the machine performing
829 the computation.
830
831 SSL/TLS servers or other servers using 2048 bit RSA private keys running
832 on machines supporting AVX512IFMA instructions of the X86_64 architecture
833 are affected by this issue.
834 ([CVE-2022-2274])
835
836 *Xi Ruoyao*
837
838 * AES OCB mode for 32-bit x86 platforms using the AES-NI assembly optimised
839 implementation would not encrypt the entirety of the data under some
840 circumstances. This could reveal sixteen bytes of data that was
841 preexisting in the memory that wasn't written. In the special case of
842 "in place" encryption, sixteen bytes of the plaintext would be revealed.
843
844 Since OpenSSL does not support OCB based cipher suites for TLS and DTLS,
845 they are both unaffected.
846 ([CVE-2022-2097])
847
848 *Alex Chernyakhovsky, David Benjamin, Alejandro Sedeño*
849
850### Changes between 3.0.3 and 3.0.4 [21 Jun 2022]
de85a9de
MC
851
852 * In addition to the c_rehash shell command injection identified in
853 CVE-2022-1292, further bugs where the c_rehash script does not
854 properly sanitise shell metacharacters to prevent command injection have been
855 fixed.
856
857 When the CVE-2022-1292 was fixed it was not discovered that there
858 are other places in the script where the file names of certificates
859 being hashed were possibly passed to a command executed through the shell.
860
861 This script is distributed by some operating systems in a manner where
862 it is automatically executed. On such operating systems, an attacker
863 could execute arbitrary commands with the privileges of the script.
864
865 Use of the c_rehash script is considered obsolete and should be replaced
866 by the OpenSSL rehash command line tool.
867 (CVE-2022-2068)
868
869 *Daniel Fiala, Tomáš Mráz*
8a66b2f9
P
870
871 * Case insensitive string comparison no longer uses locales. It has instead
872 been directly implemented.
873
874 *Paul Dale*
875
de85a9de 876### Changes between 3.0.2 and 3.0.3 [3 May 2022]
77d7b6ee 877
8b97bfcc
DB
878 * Case insensitive string comparison is reimplemented via new locale-agnostic
879 comparison functions OPENSSL_str[n]casecmp always using the POSIX locale for
880 comparison. The previous implementation had problems when the Turkish locale
881 was used.
882
883 *Dmitry Belyavskiy*
884
73e044bd
MC
885 * Fixed a bug in the c_rehash script which was not properly sanitising shell
886 metacharacters to prevent command injection. This script is distributed by
887 some operating systems in a manner where it is automatically executed. On
888 such operating systems, an attacker could execute arbitrary commands with the
889 privileges of the script.
890
891 Use of the c_rehash script is considered obsolete and should be replaced
892 by the OpenSSL rehash command line tool.
893 (CVE-2022-1292)
894
895 *Tomáš Mráz*
896
897 * Fixed a bug in the function `OCSP_basic_verify` that verifies the signer
898 certificate on an OCSP response. The bug caused the function in the case
899 where the (non-default) flag OCSP_NOCHECKS is used to return a postivie
900 response (meaning a successful verification) even in the case where the
901 response signing certificate fails to verify.
902
903 It is anticipated that most users of `OCSP_basic_verify` will not use the
904 OCSP_NOCHECKS flag. In this case the `OCSP_basic_verify` function will return
905 a negative value (indicating a fatal error) in the case of a certificate
906 verification failure. The normal expected return value in this case would be
907 0.
908
909 This issue also impacts the command line OpenSSL "ocsp" application. When
910 verifying an ocsp response with the "-no_cert_checks" option the command line
911 application will report that the verification is successful even though it
912 has in fact failed. In this case the incorrect successful response will also
913 be accompanied by error messages showing the failure and contradicting the
914 apparently successful result.
915 ([CVE-2022-1343])
916
917 *Matt Caswell*
918
919 * Fixed a bug where the RC4-MD5 ciphersuite incorrectly used the
920 AAD data as the MAC key. This made the MAC key trivially predictable.
921
922 An attacker could exploit this issue by performing a man-in-the-middle attack
923 to modify data being sent from one endpoint to an OpenSSL 3.0 recipient such
924 that the modified data would still pass the MAC integrity check.
925
926 Note that data sent from an OpenSSL 3.0 endpoint to a non-OpenSSL 3.0
927 endpoint will always be rejected by the recipient and the connection will
928 fail at that point. Many application protocols require data to be sent from
929 the client to the server first. Therefore, in such a case, only an OpenSSL
930 3.0 server would be impacted when talking to a non-OpenSSL 3.0 client.
931
932 If both endpoints are OpenSSL 3.0 then the attacker could modify data being
933 sent in both directions. In this case both clients and servers could be
934 affected, regardless of the application protocol.
935
936 Note that in the absence of an attacker this bug means that an OpenSSL 3.0
937 endpoint communicating with a non-OpenSSL 3.0 endpoint will fail to complete
938 the handshake when using this ciphersuite.
939
940 The confidentiality of data is not impacted by this issue, i.e. an attacker
941 cannot decrypt data that has been encrypted using this ciphersuite - they can
942 only modify it.
943
944 In order for this attack to work both endpoints must legitimately negotiate
945 the RC4-MD5 ciphersuite. This ciphersuite is not compiled by default in
946 OpenSSL 3.0, and is not available within the default provider or the default
947 ciphersuite list. This ciphersuite will never be used if TLSv1.3 has been
948 negotiated. In order for an OpenSSL 3.0 endpoint to use this ciphersuite the
949 following must have occurred:
950
951 1) OpenSSL must have been compiled with the (non-default) compile time option
952 enable-weak-ssl-ciphers
953
954 2) OpenSSL must have had the legacy provider explicitly loaded (either
955 through application code or via configuration)
956
957 3) The ciphersuite must have been explicitly added to the ciphersuite list
958
959 4) The libssl security level must have been set to 0 (default is 1)
960
961 5) A version of SSL/TLS below TLSv1.3 must have been negotiated
962
963 6) Both endpoints must negotiate the RC4-MD5 ciphersuite in preference to any
964 others that both endpoints have in common
965 (CVE-2022-1434)
966
cac25075 967 *Matt Caswell*
73e044bd
MC
968
969 * Fix a bug in the OPENSSL_LH_flush() function that breaks reuse of the memory
d7f3a2cc 970 occupied by the removed hash table entries.
73e044bd
MC
971
972 This function is used when decoding certificates or keys. If a long lived
973 process periodically decodes certificates or keys its memory usage will
974 expand without bounds and the process might be terminated by the operating
975 system causing a denial of service. Also traversing the empty hash table
976 entries will take increasingly more time.
977
978 Typically such long lived processes might be TLS clients or TLS servers
979 configured to accept client certificate authentication.
980 (CVE-2022-1473)
981
cac25075 982 *Hugo Landau, Aliaksei Levin*
73e044bd 983
77d7b6ee
HL
984 * The functions `OPENSSL_LH_stats` and `OPENSSL_LH_stats_bio` now only report
985 the `num_items`, `num_nodes` and `num_alloc_nodes` statistics. All other
986 statistics are no longer supported. For compatibility, these statistics are
987 still listed in the output but are now always reported as zero.
988
989 *Hugo Landau*
990
de85a9de 991### Changes between 3.0.1 and 3.0.2 [15 Mar 2022]
a40398a1
MC
992
993 * Fixed a bug in the BN_mod_sqrt() function that can cause it to loop forever
994 for non-prime moduli.
995
996 Internally this function is used when parsing certificates that contain
997 elliptic curve public keys in compressed form or explicit elliptic curve
998 parameters with a base point encoded in compressed form.
999
1000 It is possible to trigger the infinite loop by crafting a certificate that
1001 has invalid explicit curve parameters.
1002
1003 Since certificate parsing happens prior to verification of the certificate
1004 signature, any process that parses an externally supplied certificate may thus
1005 be subject to a denial of service attack. The infinite loop can also be
1006 reached when parsing crafted private keys as they can contain explicit
1007 elliptic curve parameters.
1008
1009 Thus vulnerable situations include:
1010
1011 - TLS clients consuming server certificates
1012 - TLS servers consuming client certificates
1013 - Hosting providers taking certificates or private keys from customers
1014 - Certificate authorities parsing certification requests from subscribers
1015 - Anything else which parses ASN.1 elliptic curve parameters
1016
1017 Also any other applications that use the BN_mod_sqrt() where the attacker
1018 can control the parameter values are vulnerable to this DoS issue.
1019 ([CVE-2022-0778])
1020
1021 *Tomáš Mráz*
1022
1023 * Add ciphersuites based on DHE_PSK (RFC 4279) and ECDHE_PSK (RFC 5489)
1024 to the list of ciphersuites providing Perfect Forward Secrecy as
1025 required by SECLEVEL >= 3.
1026
1027 *Dmitry Belyavskiy, Nicola Tuveri*
e180bf64
P
1028
1029 * Made the AES constant time code for no-asm configurations
1030 optional due to the resulting 95% performance degradation.
1031 The AES constant time code can be enabled, for no assembly
1032 builds, with: ./config no-asm -DOPENSSL_AES_CONST_TIME
1033
1034 *Paul Dale*
1035
a40398a1
MC
1036 * Fixed PEM_write_bio_PKCS8PrivateKey() to make it possible to use empty
1037 passphrase strings.
1038
1039 *Darshan Sen*
1040
dfb39f73
TM
1041 * The negative return value handling of the certificate verification callback
1042 was reverted. The replacement is to set the verification retry state with
1043 the SSL_set_retry_verify() function.
1044
1045 *Tomáš Mráz*
1046
de85a9de 1047### Changes between 3.0.0 and 3.0.1 [14 Dec 2021]
32a3b9b7 1048
5eef9e1d
MC
1049 * Fixed invalid handling of X509_verify_cert() internal errors in libssl
1050 Internally libssl in OpenSSL calls X509_verify_cert() on the client side to
1051 verify a certificate supplied by a server. That function may return a
1052 negative return value to indicate an internal error (for example out of
1053 memory). Such a negative return value is mishandled by OpenSSL and will cause
1054 an IO function (such as SSL_connect() or SSL_do_handshake()) to not indicate
1055 success and a subsequent call to SSL_get_error() to return the value
1056 SSL_ERROR_WANT_RETRY_VERIFY. This return value is only supposed to be
1057 returned by OpenSSL if the application has previously called
1058 SSL_CTX_set_cert_verify_callback(). Since most applications do not do this
1059 the SSL_ERROR_WANT_RETRY_VERIFY return value from SSL_get_error() will be
1060 totally unexpected and applications may not behave correctly as a result. The
1061 exact behaviour will depend on the application but it could result in
1062 crashes, infinite loops or other similar incorrect responses.
1063
1064 This issue is made more serious in combination with a separate bug in OpenSSL
1065 3.0 that will cause X509_verify_cert() to indicate an internal error when
1066 processing a certificate chain. This will occur where a certificate does not
1067 include the Subject Alternative Name extension but where a Certificate
1068 Authority has enforced name constraints. This issue can occur even with valid
1069 chains.
1070 ([CVE-2021-4044])
1071
1072 *Matt Caswell*
1073
32a3b9b7
RL
1074 * Corrected a few file name and file reference bugs in the build,
1075 installation and setup scripts, which lead to installation verification
1076 failures. Slightly enhanced the installation verification script.
1077
1078 *Richard Levitte*
1079
c868d1f9
TM
1080 * Fixed EVP_PKEY_eq() to make it possible to use it with strictly private
1081 keys.
44652c16 1082
c868d1f9 1083 *Richard Levitte*
b7140b06 1084
c868d1f9
TM
1085 * Fixed PVK encoder to properly query for the passphrase.
1086
1087 *Tomáš Mráz*
1088
1089 * Multiple fixes in the OSSL_HTTP API functions.
1090
1091 *David von Oheimb*
1092
1093 * Allow sign extension in OSSL_PARAM_allocate_from_text() for the
1094 OSSL_PARAM_INTEGER data type and return error on negative numbers
1095 used with the OSSL_PARAM_UNSIGNED_INTEGER data type. Make
1096 OSSL_PARAM_BLD_push_BN{,_pad}() return an error on negative numbers.
1097
1098 *Richard Levitte*
1099
1100 * Allow copying uninitialized digest contexts with EVP_MD_CTX_copy_ex.
1101
1102 *Tomáš Mráz*
1103
1104 * Fixed detection of ARMv7 and ARM64 CPU features on FreeBSD.
1105
1106 *Allan Jude*
1107
c868d1f9
TM
1108 * Multiple threading fixes.
1109
1110 *Matt Caswell*
1111
1112 * Added NULL digest implementation to keep compatibility with 1.1.1 version.
1113
1114 *Tomáš Mráz*
1115
1116 * Allow fetching an operation from the provider that owns an unexportable key
1117 as a fallback if that is still allowed by the property query.
1118
1119 *Richard Levitte*
b7140b06 1120
de85a9de 1121### Changes between 1.1.1 and 3.0.0 [7 Sep 2021]
c7d4d032 1122
95a444c9
TM
1123 * TLS_MAX_VERSION, DTLS_MAX_VERSION and DTLS_MIN_VERSION constants are now
1124 deprecated.
1125
1126 *Matt Caswell*
1127
1128 * The `OPENSSL_s390xcap` environment variable can be used to set bits in the
1129 S390X capability vector to zero. This simplifies testing of different code
1130 paths on S390X architecture.
1131
1132 *Patrick Steuer*
1133
1134 * Encrypting more than 2^64 TLS records with AES-GCM is disallowed
1135 as per FIPS 140-2 IG A.5 "Key/IV Pair Uniqueness Requirements from
1136 SP 800-38D". The communication will fail at this point.
1137
1138 *Paul Dale*
1139
1140 * The EC_GROUP_clear_free() function is deprecated as there is nothing
1141 confidential in EC_GROUP data.
1142
1143 *Nicola Tuveri*
1144
1145 * The byte order mark (BOM) character is ignored if encountered at the
1146 beginning of a PEM-formatted file.
1147
1148 *Dmitry Belyavskiy*
1149
1150 * Added CMS support for the Russian GOST algorithms.
1151
1152 *Dmitry Belyavskiy*
1153
6f242d22
TM
1154 * Due to move of the implementation of cryptographic operations
1155 to the providers, validation of various operation parameters can
1156 be postponed until the actual operation is executed where previously
1157 it happened immediately when an operation parameter was set.
1158
1159 For example when setting an unsupported curve with
1160 EVP_PKEY_CTX_set_ec_paramgen_curve_nid() this function call will not
1161 fail but later keygen operations with the EVP_PKEY_CTX will fail.
1162
1163 *OpenSSL team members and many third party contributors*
1164
69222552 1165 * The EVP_get_cipherbyname() function will return NULL for algorithms such as
1166 "AES-128-SIV", "AES-128-CBC-CTS" and "CAMELLIA-128-CBC-CTS" which were
d7f3a2cc 1167 previously only accessible via low-level interfaces. Use EVP_CIPHER_fetch()
69222552 1168 instead to retrieve these algorithms from a provider.
1169
1170 *Shane Lontis*
1171
bd32bdb8
TM
1172 * On build targets where the multilib postfix is set in the build
1173 configuration the libdir directory was changing based on whether
1174 the lib directory with the multilib postfix exists on the system
1175 or not. This unpredictable behavior was removed and eventual
1176 multilib postfix is now always added to the default libdir. Use
1177 `--libdir=lib` to override the libdir if adding the postfix is
1178 undesirable.
1179
1180 *Jan Lána*
1181
e5f8935c
P
1182 * The triple DES key wrap functionality now conforms to RFC 3217 but is
1183 no longer interoperable with OpenSSL 1.1.1.
1184
1185 *Paul Dale*
1186
0f71b1eb
P
1187 * The ERR_GET_FUNC() function was removed. With the loss of meaningful
1188 function codes, this function can only cause problems for calling
1189 applications.
1190
1191 *Paul Dale*
1192
8c5bff22
WE
1193 * Add a configurable flag to output date formats as ISO 8601. Does not
1194 change the default date format.
1195
1196 *William Edmisten*
1197
f8ab78f6
RS
1198 * Version of MSVC earlier than 1300 could get link warnings, which could
1199 be suppressed if the undocumented -DI_CAN_LIVE_WITH_LNK4049 was set.
1200 Support for this flag has been removed.
1201
1202 *Rich Salz*
1203
a935791d
RS
1204 * Rework and make DEBUG macros consistent. Remove unused -DCONF_DEBUG,
1205 -DBN_CTX_DEBUG, and REF_PRINT. Add a new tracing category and use it for
1206 printing reference counts. Rename -DDEBUG_UNUSED to -DUNUSED_RESULT_DEBUG
1207 Fix BN_DEBUG_RAND so it compiles and, when set, force DEBUG_RAND to be set
1208 also. Rename engine_debug_ref to be ENGINE_REF_PRINT also for consistency.
1209
1210 *Rich Salz*
1211
f04bb0bc
RS
1212 * The signatures of the functions to get and set options on SSL and
1213 SSL_CTX objects changed from "unsigned long" to "uint64_t" type.
1214 Some source code changes may be required.
1215
a935791d 1216 *Rich Salz*
f04bb0bc 1217
ff234c68
RS
1218 * The public definitions of conf_method_st and conf_st have been
1219 deprecated. They will be made opaque in a future release.
1220
b3c2ed70 1221 *Rich Salz and Tomáš Mráz*
ff234c68 1222
55373bfd
RS
1223 * Client-initiated renegotiation is disabled by default. To allow it, use
1224 the -client_renegotiation option, the SSL_OP_ALLOW_CLIENT_RENEGOTIATION
1225 flag, or the "ClientRenegotiation" config parameter as appropriate.
1226
a935791d 1227 *Rich Salz*
55373bfd 1228
f7050588
RS
1229 * Add "abspath" and "includedir" pragma's to config files, to prevent,
1230 or modify relative pathname inclusion.
3fb985fd 1231
a935791d 1232 *Rich Salz*
3fb985fd 1233
3b9e4769 1234 * OpenSSL includes a cryptographic module that is intended to be FIPS 140-2
b7140b06 1235 validated. Please consult the README-FIPS and
3b9e4769
DMSP
1236 README-PROVIDERS files, as well as the migration guide.
1237
3b9e4769
DMSP
1238 *OpenSSL team members and many third party contributors*
1239
f1ffaaee 1240 * For the key types DH and DHX the allowed settable parameters are now different.
f1ffaaee
SL
1241
1242 *Shane Lontis*
1243
bee3f389 1244 * The openssl commands that read keys, certificates, and CRLs now
b7140b06 1245 automatically detect the PEM or DER format of the input files.
bee3f389
TM
1246
1247 *David von Oheimb, Richard Levitte, and Tomáš Mráz*
1248
b7140b06 1249 * Added enhanced PKCS#12 APIs which accept a library context.
b536880c
JS
1250
1251 *Jon Spillett*
1252
ae6f65ae
MC
1253 * The default manual page suffix ($MANSUFFIX) has been changed to "ossl"
1254
1255 *Matt Caswell*
1256
b7140b06 1257 * Added support for Kernel TLS (KTLS).
6878f430
MC
1258
1259 *Boris Pismenny, John Baldwin and Andrew Gallatin*
1260
72d2670b 1261 * Support for RFC 5746 secure renegotiation is now required by default for
b7140b06 1262 SSL or TLS connections to succeed.
72d2670b
BK
1263
1264 *Benjamin Kaduk*
1265
9ac653d8
TM
1266 * The signature of the `copy` functional parameter of the
1267 EVP_PKEY_meth_set_copy() function has changed so its `src` argument is
1268 now `const EVP_PKEY_CTX *` instead of `EVP_PKEY_CTX *`. Similarly
1269 the signature of the `pub_decode` functional parameter of the
1270 EVP_PKEY_asn1_set_public() function has changed so its `pub` argument is
1271 now `const X509_PUBKEY *` instead of `X509_PUBKEY *`.
1272
1273 *David von Oheimb*
1274
9c1b19eb 1275 * The error return values from some control calls (ctrl) have changed.
9c1b19eb
P
1276
1277 *Paul Dale*
1278
e454a393 1279 * A public key check is now performed during EVP_PKEY_derive_set_peer().
e454a393
SL
1280
1281 *Shane Lontis*
1282
31b7f23d
TM
1283 * Many functions in the EVP_ namespace that are getters of values from
1284 implementations or contexts were renamed to include get or get0 in their
1285 names. Old names are provided as macro aliases for compatibility and
1286 are not deprecated.
1287
1288 *Tomáš Mráz*
1289
0cfbc828
TM
1290 * The EVP_PKEY_CTRL_PKCS7_ENCRYPT, EVP_PKEY_CTRL_PKCS7_DECRYPT,
1291 EVP_PKEY_CTRL_PKCS7_SIGN, EVP_PKEY_CTRL_CMS_ENCRYPT,
1292 EVP_PKEY_CTRL_CMS_DECRYPT, and EVP_PKEY_CTRL_CMS_SIGN control operations
b7140b06 1293 are deprecated.
0cfbc828
TM
1294
1295 *Tomáš Mráz*
1296
2db5834c 1297 * The EVP_PKEY_public_check() and EVP_PKEY_param_check() functions now work for
b7140b06 1298 more key types.
2db5834c 1299
28a8d07d 1300 * The output from the command line applications may have minor
b7140b06 1301 changes.
28a8d07d
P
1302
1303 *Paul Dale*
1304
b7140b06 1305 * The output from numerous "printing" may have minor changes.
2db5834c
MC
1306
1307 *David von Oheimb*
1308
f70863d9
VD
1309 * Windows thread synchronization uses read/write primitives (SRWLock) when
1310 supported by the OS, otherwise CriticalSection continues to be used.
1311
1312 *Vincent Drake*
1313
a30823c8
SL
1314 * Add filter BIO BIO_f_readbuffer() that allows BIO_tell() and BIO_seek() to
1315 work on read only BIO source/sinks that do not support these functions.
1316 This allows piping or redirection of a file BIO using stdin to be buffered
1317 into memory. This is used internally in OSSL_DECODER_from_bio().
1318
1319 *Shane Lontis*
1320
f74f416b
MC
1321 * OSSL_STORE_INFO_get_type() may now return an additional value. In 1.1.1
1322 this function would return one of the values OSSL_STORE_INFO_NAME,
1323 OSSL_STORE_INFO_PKEY, OSSL_STORE_INFO_PARAMS, OSSL_STORE_INFO_CERT or
1324 OSSL_STORE_INFO_CRL. Decoded public keys would previously have been reported
1325 as type OSSL_STORE_INFO_PKEY in 1.1.1. In 3.0 decoded public keys are now
1326 reported as having the new type OSSL_STORE_INFO_PUBKEY. Applications
1327 using this function should be amended to handle the changed return value.
1328
1329 *Richard Levitte*
1330
6b937ae3 1331 * Improved adherence to Enhanced Security Services (ESS, RFC 2634 and RFC 5035)
63b64f19 1332 for the TSP and CMS Advanced Electronic Signatures (CAdES) implementations.
bef876f9 1333 As required by RFC 5035 check both ESSCertID and ESSCertIDv2 if both present.
6b937ae3
DDO
1334 Correct the semantics of checking the validation chain in case ESSCertID{,v2}
1335 contains more than one certificate identifier: This means that all
1336 certificates referenced there MUST be part of the validation chain.
1337
1338 *David von Oheimb*
1339
b7140b06
SL
1340 * The implementation of older EVP ciphers related to CAST, IDEA, SEED, RC2, RC4,
1341 RC5, DESX and DES have been moved to the legacy provider.
c7d4d032
MC
1342
1343 *Matt Caswell*
1344
1345 * The implementation of the EVP digests MD2, MD4, MDC2, WHIRLPOOL and
b7140b06 1346 RIPEMD-160 have been moved to the legacy provider.
c7d4d032
MC
1347
1348 *Matt Caswell*
1349
896dcda1
DB
1350 * The deprecated function EVP_PKEY_get0() now returns NULL being called for a
1351 provided key.
8e53d94d 1352
896dcda1
DB
1353 *Dmitry Belyavskiy*
1354
1355 * The deprecated functions EVP_PKEY_get0_RSA(),
cc57dc96
MC
1356 EVP_PKEY_get0_DSA(), EVP_PKEY_get0_EC_KEY(), EVP_PKEY_get0_DH(),
1357 EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and EVP_PKEY_get0_siphash() as
b7140b06
SL
1358 well as the similarly named "get1" functions behave differently in
1359 OpenSSL 3.0.
7bc0fdd3 1360
cc57dc96
MC
1361 *Matt Caswell*
1362
4d49b685 1363 * A number of functions handling low-level keys or engines were deprecated
8e53d94d
MC
1364 including EVP_PKEY_set1_engine(), EVP_PKEY_get0_engine(), EVP_PKEY_assign(),
1365 EVP_PKEY_get0(), EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and
b7140b06 1366 EVP_PKEY_get0_siphash().
8e53d94d
MC
1367
1368 *Matt Caswell*
1369
0f183675
JS
1370 * PKCS#5 PBKDF1 key derivation has been moved from PKCS5_PBE_keyivgen() into
1371 the legacy crypto provider as an EVP_KDF. Applications requiring this KDF
1372 will need to load the legacy crypto provider. This includes these PBE
1373 algorithms which use this KDF:
1374 - NID_pbeWithMD2AndDES_CBC
1375 - NID_pbeWithMD5AndDES_CBC
1376 - NID_pbeWithSHA1AndRC2_CBC
1377 - NID_pbeWithMD2AndRC2_CBC
1378 - NID_pbeWithMD5AndRC2_CBC
1379 - NID_pbeWithSHA1AndDES_CBC
1380
1381 *Jon Spillett*
1382
0800318a
TM
1383 * Deprecated obsolete BIO_set_callback(), BIO_get_callback(), and
1384 BIO_debug_callback() functions.
1385
1386 *Tomáš Mráz*
1387
76e48c9d 1388 * Deprecated obsolete EVP_PKEY_CTX_get0_dh_kdf_ukm() and
b7140b06 1389 EVP_PKEY_CTX_get0_ecdh_kdf_ukm() functions.
44652c16 1390
76e48c9d
TM
1391 *Tomáš Mráz*
1392
b7140b06 1393 * The RAND_METHOD APIs have been deprecated.
12631540
P
1394
1395 *Paul Dale*
8e53d94d 1396
b7140b06 1397 * The SRP APIs have been deprecated.
13888e79
MC
1398
1399 *Matt Caswell*
1400
7dd5a00f
P
1401 * Add a compile time option to prevent the caching of provider fetched
1402 algorithms. This is enabled by including the no-cached-fetch option
1403 at configuration time.
1404
1405 *Paul Dale*
76e48c9d 1406
b7140b06
SL
1407 * pkcs12 now uses defaults of PBKDF2, AES and SHA-256, with a MAC iteration
1408 count of PKCS12_DEFAULT_ITER.
762970bd
TM
1409
1410 *Tomáš Mráz and Sahana Prasad*
1411
b7140b06 1412 * The openssl speed command does not use low-level API calls anymore.
f3ccfc76
TM
1413
1414 *Tomáš Mráz*
1415
c781eb1c
AM
1416 * Parallel dual-prime 1024-bit modular exponentiation for AVX512_IFMA
1417 capable processors.
1418
1419 *Ilya Albrekht, Sergey Kirillov, Andrey Matyukov (Intel Corp)*
1420
a763ca11 1421 * Combining the Configure options no-ec and no-dh no longer disables TLSv1.3.
a763ca11
MC
1422
1423 *Matt Caswell*
1424
f5680cd0
MC
1425 * Implemented support for fully "pluggable" TLSv1.3 groups. This means that
1426 providers may supply their own group implementations (using either the "key
1427 exchange" or the "key encapsulation" methods) which will automatically be
1428 detected and used by libssl.
1429
1430 *Matt Caswell, Nicola Tuveri*
1431
7ff9fdd4 1432 * The undocumented function X509_certificate_type() has been deprecated;
7ff9fdd4
RS
1433
1434 *Rich Salz*
1435
b7140b06 1436 * Deprecated the obsolete BN_pseudo_rand() and BN_pseudo_rand_range().
4d2a6159
TM
1437
1438 *Tomáš Mráz*
1439
b0aae913
RS
1440 * Removed RSA padding mode for SSLv23 (which was only used for
1441 SSLv2). This includes the functions RSA_padding_check_SSLv23() and
1442 RSA_padding_add_SSLv23() and the `-ssl` option in the deprecated
1443 `rsautl` command.
1444
1445 *Rich Salz*
1446
b7140b06 1447 * Deprecated the obsolete X9.31 RSA key generation related functions.
c27e7922 1448
4672e5de
DDO
1449 * While a callback function set via `SSL_CTX_set_cert_verify_callback()`
1450 is not allowed to return a value > 1, this is no more taken as failure.
1451
1452 *Viktor Dukhovni and David von Oheimb*
1453
1454 * Deprecated the obsolete X9.31 RSA key generation related functions
1455 BN_X931_generate_Xpq(), BN_X931_derive_prime_ex(), and
1456 BN_X931_generate_prime_ex().
1457
66194839 1458 *Tomáš Mráz*
c27e7922 1459
93b39c85 1460 * The default key generation method for the regular 2-prime RSA keys was
b7140b06 1461 changed to the FIPS 186-4 B.3.6 method.
93b39c85
TM
1462
1463 *Shane Lontis*
1464
1465 * Deprecated the BN_is_prime_ex() and BN_is_prime_fasttest_ex() functions.
93b39c85
TM
1466
1467 *Kurt Roeckx*
1468
b7140b06 1469 * Deprecated EVP_MD_CTX_set_update_fn() and EVP_MD_CTX_update_fn().
1409b5f6
RS
1470
1471 *Rich Salz*
1472
b7140b06
SL
1473 * Deprecated the type OCSP_REQ_CTX and the functions OCSP_REQ_CTX_*() and
1474 replaced with OSSL_HTTP_REQ_CTX and the functions OSSL_HTTP_REQ_CTX_*().
83b6dc8d 1475
8f965908 1476 *Rich Salz, Richard Levitte, and David von Oheimb*
83b6dc8d 1477
b7140b06 1478 * Deprecated `X509_http_nbio()` and `X509_CRL_http_nbio()`.
a07b0bfb
DDO
1479
1480 *David von Oheimb*
1481
b7140b06 1482 * Deprecated `OCSP_parse_url()`.
7932982b
DDO
1483
1484 *David von Oheimb*
1485
9e49aff2 1486 * Validation of SM2 keys has been separated from the validation of regular EC
b7140b06 1487 keys.
9e49aff2
NT
1488
1489 *Nicola Tuveri*
1490
ed37336b
NT
1491 * Behavior of the `pkey` app is changed, when using the `-check` or `-pubcheck`
1492 switches: a validation failure triggers an early exit, returning a failure
1493 exit status to the parent process.
1494
1495 *Nicola Tuveri*
1496
1c47539a
OH
1497 * Changed behavior of SSL_CTX_set_ciphersuites() and SSL_set_ciphersuites()
1498 to ignore unknown ciphers.
1499
1500 *Otto Hollmann*
1501
ec2bfb7d
DDO
1502 * The `-cipher-commands` and `-digest-commands` options
1503 of the command line utility `list` have been deprecated.
1504 Instead use the `-cipher-algorithms` and `-digest-algorithms` options.
a08489e2
DB
1505
1506 *Dmitry Belyavskiy*
1507
f9253152
DDO
1508 * Added convenience functions for generating asymmetric key pairs:
1509 The 'quick' one-shot (yet somewhat limited) function L<EVP_PKEY_Q_keygen(3)>
1510 and macros for the most common cases: <EVP_RSA_gen(3)> and L<EVP_EC_gen(3)>.
1511
1512 *David von Oheimb*
1513
d7f3a2cc 1514 * All of the low-level EC_KEY functions have been deprecated.
5b5eea4b 1515
66194839 1516 *Shane Lontis, Paul Dale, Richard Levitte, and Tomáš Mráz*
5b5eea4b 1517
f5a46ed7 1518 * Deprecated all the libcrypto and libssl error string loading
b7140b06 1519 functions.
f5a46ed7
RL
1520
1521 *Richard Levitte*
1522
1b2a55ff
MC
1523 * The functions SSL_CTX_set_tmp_dh_callback and SSL_set_tmp_dh_callback, as
1524 well as the macros SSL_CTX_set_tmp_dh() and SSL_set_tmp_dh() have been
b7140b06 1525 deprecated.
1b2a55ff
MC
1526
1527 *Matt Caswell*
1528
ec2bfb7d 1529 * The `-crypt` option to the `passwd` command line tool has been removed.
c87a7f31
P
1530
1531 *Paul Dale*
1532
ec2bfb7d 1533 * The -C option to the `x509`, `dhparam`, `dsaparam`, and `ecparam` commands
a18cf8fc 1534 were removed.
1696b890
RS
1535
1536 *Rich Salz*
1537
8ea761bf 1538 * Add support for AES Key Wrap inverse ciphers to the EVP layer.
8ea761bf
SL
1539
1540 *Shane Lontis*
1541
0a737e16 1542 * Deprecated EVP_PKEY_set1_tls_encodedpoint() and
b7140b06 1543 EVP_PKEY_get1_tls_encodedpoint().
0a737e16
MC
1544
1545 *Matt Caswell*
1546
372e72b1 1547 * The security callback, which can be customised by application code, supports
b7140b06
SL
1548 the security operation SSL_SECOP_TMP_DH. One location of the "other" parameter
1549 was incorrectly passing a DH object. It now passed an EVP_PKEY in all cases.
372e72b1
MC
1550
1551 *Matt Caswell*
1552
db554ae1
JM
1553 * Add PKCS7_get_octet_string() and PKCS7_type_is_other() to the public
1554 interface. Their functionality remains unchanged.
1555
1556 *Jordan Montgomery*
1557
f4bd5105
P
1558 * Added new option for 'openssl list', '-providers', which will display the
1559 list of loaded providers, their names, version and status. It optionally
1560 displays their gettable parameters.
1561
1562 *Paul Dale*
1563
b7140b06 1564 * Removed EVP_PKEY_set_alias_type().
14711fff
RL
1565
1566 *Richard Levitte*
1567
ec2bfb7d
DDO
1568 * Deprecated `EVP_PKEY_CTX_set_rsa_keygen_pubexp()` and introduced
1569 `EVP_PKEY_CTX_set1_rsa_keygen_pubexp()`, which is now preferred.
3786d748 1570
1571 *Jeremy Walch*
1572
31605414
MC
1573 * Changed all "STACK" functions to be macros instead of inline functions. Macro
1574 parameters are still checked for type safety at compile time via helper
1575 inline functions.
1576
1577 *Matt Caswell*
1578
7d615e21
P
1579 * Remove the RAND_DRBG API
1580
7d615e21
P
1581 *Paul Dale and Matthias St. Pierre*
1582
ec2bfb7d 1583 * Allow `SSL_set1_host()` and `SSL_add1_host()` to take IP literal addresses
37d898df
DW
1584 as well as actual hostnames.
1585
1586 *David Woodhouse*
1587
77174598
VD
1588 * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently
1589 ignore TLS protocol version bounds when configuring DTLS-based contexts, and
1590 conversely, silently ignore DTLS protocol version bounds when configuring
1591 TLS-based contexts. The commands can be repeated to set bounds of both
1592 types. The same applies with the corresponding "min_protocol" and
1593 "max_protocol" command-line switches, in case some application uses both TLS
1594 and DTLS.
1595
1596 SSL_CTX instances that are created for a fixed protocol version (e.g.
ec2bfb7d 1597 `TLSv1_server_method()`) also silently ignore version bounds. Previously
77174598
VD
1598 attempts to apply bounds to these protocol versions would result in an
1599 error. Now only the "version-flexible" SSL_CTX instances are subject to
1600 limits in configuration files in command-line options.
1601
1602 *Viktor Dukhovni*
1603
8dab4de5
RL
1604 * Deprecated the `ENGINE` API. Engines should be replaced with providers
1605 going forward.
1606
1607 *Paul Dale*
1608
1609 * Reworked the recorded ERR codes to make better space for system errors.
1610 To distinguish them, the macro `ERR_SYSTEM_ERROR()` indicates if the
1611 given code is a system error (true) or an OpenSSL error (false).
1612
1613 *Richard Levitte*
1614
1615 * Reworked the test perl framework to better allow parallel testing.
1616
1617 *Nicola Tuveri and David von Oheimb*
1618
7cc355c2
SL
1619 * Added ciphertext stealing algorithms AES-128-CBC-CTS, AES-192-CBC-CTS and
1620 AES-256-CBC-CTS to the providers. CS1, CS2 and CS3 variants are supported.
1621
1622 *Shane Lontis*
1623
16b0e0fc
RL
1624 * 'Configure' has been changed to figure out the configuration target if
1625 none is given on the command line. Consequently, the 'config' script is
1626 now only a mere wrapper. All documentation is changed to only mention
1627 'Configure'.
1628
1629 *Rich Salz and Richard Levitte*
1630
b4250010
DMSP
1631 * Added a library context `OSSL_LIB_CTX` that applications as well as
1632 other libraries can use to form a separate context within which
1633 libcrypto operations are performed.
3bd65f9b 1634
3bd65f9b
RL
1635 *Richard Levitte*
1636
95a444c9
TM
1637 * Added various `_ex` functions to the OpenSSL API that support using
1638 a non-default `OSSL_LIB_CTX`.
1639
1640 *OpenSSL team*
1641
11d3235e
TM
1642 * Handshake now fails if Extended Master Secret extension is dropped
1643 on renegotiation.
1644
66194839 1645 *Tomáš Mráz*
11d3235e 1646
b7140b06 1647 * Dropped interactive mode from the `openssl` program.
eca47139
RL
1648
1649 *Richard Levitte*
1650
b7140b06 1651 * Deprecated `EVP_PKEY_cmp()` and `EVP_PKEY_cmp_parameters()`.
987e3a0e 1652
c85c5e1a 1653 *David von Oheimb and Shane Lontis*
987e3a0e 1654
b7140b06 1655 * Deprecated `EC_METHOD_get_field_type()`.
23ccae80
BB
1656
1657 *Billy Bob Brumley*
1658
1659 * Deprecated EC_GFp_simple_method(), EC_GFp_mont_method(),
1660 EC_GF2m_simple_method(), EC_GFp_nist_method(), EC_GFp_nistp224_method()
1661 EC_GFp_nistp256_method(), and EC_GFp_nistp521_method().
23ccae80
BB
1662
1663 *Billy Bob Brumley*
1664
1665 * Deprecated EC_GROUP_new(), EC_GROUP_method_of(), and EC_POINT_method_of().
23ccae80
BB
1666
1667 *Billy Bob Brumley*
1668
9e3c510b
F
1669 * Add CAdES-BES signature verification support, mostly derived
1670 from ESSCertIDv2 TS (RFC 5816) contribution by Marek Klein.
1671
1672 *Filipe Raimundo da Silva*
1673
1674 * Add CAdES-BES signature scheme and attributes support (RFC 5126) to CMS API.
1675
1676 *Antonio Iacono*
1677
34347512 1678 * Added the AuthEnvelopedData content type structure (RFC 5083) with AES-GCM
b7140b06 1679 parameter (RFC 5084) for the Cryptographic Message Syntax (CMS).
34347512
JZ
1680
1681 *Jakub Zelenka*
1682
b7140b06 1683 * Deprecated EC_POINT_make_affine() and EC_POINTs_make_affine().
6b4eb933 1684
c2f2db9b
BB
1685 *Billy Bob Brumley*
1686
1687 * Deprecated EC_GROUP_precompute_mult(), EC_GROUP_have_precompute_mult(), and
b7140b06 1688 EC_KEY_precompute_mult().
c2f2db9b
BB
1689
1690 *Billy Bob Brumley*
6b4eb933 1691
b7140b06 1692 * Deprecated EC_POINTs_mul().
4fcd15c1
BB
1693
1694 *Billy Bob Brumley*
1695
b7140b06 1696 * Removed FIPS_mode() and FIPS_mode_set().
31b069ec
SL
1697
1698 *Shane Lontis*
1699
b7140b06 1700 * The SSL option SSL_OP_IGNORE_UNEXPECTED_EOF is introduced.
09b90e0e
DB
1701
1702 *Dmitry Belyavskiy*
1703
07caec83 1704 * Deprecated EC_POINT_set_Jprojective_coordinates_GFp() and
b7140b06 1705 EC_POINT_get_Jprojective_coordinates_GFp().
07caec83
BB
1706
1707 *Billy Bob Brumley*
1708
be19d3ca
P
1709 * Added OSSL_PARAM_BLD to the public interface. This allows OSSL_PARAM
1710 arrays to be more easily constructed via a series of utility functions.
1711 Create a parameter builder using OSSL_PARAM_BLD_new(), add parameters using
1712 the various push functions and finally convert to a passable OSSL_PARAM
1713 array using OSSL_PARAM_BLD_to_param().
1714
ccb8f0c8 1715 *Paul Dale*
be19d3ca 1716
aba03ae5 1717 * The security strength of SHA1 and MD5 based signatures in TLS has been
b7140b06 1718 reduced.
aba03ae5
KR
1719
1720 *Kurt Roeckx*
1721
8243d8d1
RL
1722 * Added EVP_PKEY_set_type_by_keymgmt(), to initialise an EVP_PKEY to
1723 contain a provider side internal key.
1724
1725 *Richard Levitte*
1726
ccb8f0c8 1727 * ASN1_verify(), ASN1_digest() and ASN1_sign() have been deprecated.
12d99aac
RL
1728
1729 *Richard Levitte*
c50604eb 1730
036cbb6b 1731 * Project text documents not yet having a proper file name extension
1dc1ea18
DDO
1732 (`HACKING`, `LICENSE`, `NOTES*`, `README*`, `VERSION`) have been renamed to
1733 `*.md` as far as reasonable, else `*.txt`, for better use with file managers.
036cbb6b
DDO
1734
1735 *David von Oheimb*
1736
1dc1ea18 1737 * The main project documents (README, NEWS, CHANGES, INSTALL, SUPPORT)
c50604eb
DMSP
1738 have been converted to Markdown with the goal to produce documents
1739 which not only look pretty when viewed online in the browser, but
1740 remain well readable inside a plain text editor.
1741
1742 To achieve this goal, a 'minimalistic' Markdown style has been applied
1743 which avoids formatting elements that interfere too much with the
1744 reading flow in the text file. For example, it
1745
1746 * avoids [ATX headings][] and uses [setext headings][] instead
1747 (which works for `<h1>` and `<h2>` headings only).
1748 * avoids [inline links][] and uses [reference links][] instead.
1749 * avoids [fenced code blocks][] and uses [indented code blocks][] instead.
1750
1751 [ATX headings]: https://github.github.com/gfm/#atx-headings
1752 [setext headings]: https://github.github.com/gfm/#setext-headings
1753 [inline links]: https://github.github.com/gfm/#inline-link
1754 [reference links]: https://github.github.com/gfm/#reference-link
1755 [fenced code blocks]: https://github.github.com/gfm/#fenced-code-blocks
1756 [indented code blocks]: https://github.github.com/gfm/#indented-code-blocks
1757
1758 *Matthias St. Pierre*
1759
44652c16
DMSP
1760 * The test suite is changed to preserve results of each test recipe.
1761 A new directory test-runs/ with subdirectories named like the
1762 test recipes are created in the build tree for this purpose.
1763
1764 *Richard Levitte*
1765
e7774c28 1766 * Added an implementation of CMP and CRMF (RFC 4210, RFC 4211 RFC 6712).
ec2bfb7d 1767 This adds `crypto/cmp/`, `crpyto/crmf/`, `apps/cmp.c`, and `test/cmp_*`.
8d9a4d83 1768 See L<openssl-cmp(1)> and L<OSSL_CMP_exec_IR_ses(3)> as starting points.
e7774c28 1769
8d9a4d83 1770 *David von Oheimb, Martin Peylo*
e7774c28 1771
ec2bfb7d 1772 * Generalized the HTTP client code from `crypto/ocsp/` into `crpyto/http/`.
8f965908
DDO
1773 It supports arbitrary request and response content types, GET redirection,
1774 TLS, connections via HTTP(S) proxies, connections and exchange via
1775 user-defined BIOs (allowing implicit connections), persistent connections,
1776 and timeout checks. See L<OSSL_HTTP_transfer(3)> etc. for details.
1777 The legacy OCSP-focused (and only partly documented) API
1778 is retained for backward compatibility, while most of it is deprecated.
e7774c28
DDO
1779
1780 *David von Oheimb*
1781
16c6534b
DDO
1782 * Added `util/check-format.pl`, a tool for checking adherence to the
1783 OpenSSL coding style <https://www.openssl.org/policies/codingstyle.html>.
1784 The checks performed are incomplete and yield some false positives.
1785 Still the tool should be useful for detecting most typical glitches.
1786
1787 *David von Oheimb*
1788
ec2bfb7d 1789 * `BIO_do_connect()` and `BIO_do_handshake()` have been extended:
59131529 1790 If domain name resolution yields multiple IP addresses all of them are tried
ec2bfb7d 1791 after `connect()` failures.
59131529
DDO
1792
1793 *David von Oheimb*
1794
d7f3a2cc 1795 * All of the low-level RSA functions have been deprecated.
b47e7bbc 1796
44652c16
DMSP
1797 *Paul Dale*
1798
1799 * X509 certificates signed using SHA1 are no longer allowed at security
1800 level 1 and above.
44652c16
DMSP
1801
1802 *Kurt Roeckx*
1803
1804 * The command line utilities dhparam, dsa, gendsa and dsaparam have been
b304f856
P
1805 modified to use PKEY APIs. These commands are now in maintenance mode
1806 and no new features will be added to them.
1807
1808 *Paul Dale*
1809
1810 * The command line utility rsautl has been deprecated.
b304f856
P
1811
1812 *Paul Dale*
1813
1814 * The command line utilities genrsa and rsa have been modified to use PKEY
10203a34
KR
1815 APIs. They now write PKCS#8 keys by default. These commands are now in
1816 maintenance mode and no new features will be added to them.
44652c16
DMSP
1817
1818 *Paul Dale*
1819
d7f3a2cc 1820 * All of the low-level DH functions have been deprecated.
59d7ad07
MC
1821
1822 *Paul Dale and Matt Caswell*
44652c16 1823
d7f3a2cc 1824 * All of the low-level DSA functions have been deprecated.
8e53d94d 1825
44652c16
DMSP
1826 *Paul Dale*
1827
1828 * Reworked the treatment of EC EVP_PKEYs with the SM2 curve to
b7140b06 1829 automatically become EVP_PKEY_SM2 rather than EVP_PKEY_EC.
44652c16
DMSP
1830
1831 *Richard Levitte*
1832
d7f3a2cc 1833 * Deprecated low-level ECDH and ECDSA functions.
44652c16
DMSP
1834
1835 *Paul Dale*
1836
b7140b06 1837 * Deprecated EVP_PKEY_decrypt_old() and EVP_PKEY_encrypt_old().
44652c16
DMSP
1838
1839 *Richard Levitte*
1840
ed576acd
TM
1841 * Enhanced the documentation of EVP_PKEY_get_size(), EVP_PKEY_get_bits()
1842 and EVP_PKEY_get_security_bits(). Especially EVP_PKEY_get_size() needed
44652c16
DMSP
1843 a new formulation to include all the things it can be used for,
1844 as well as words of caution.
1845
1846 *Richard Levitte*
1847
1848 * The SSL_CTX_set_tlsext_ticket_key_cb(3) function has been deprecated.
44652c16
DMSP
1849
1850 *Paul Dale*
1851
d7f3a2cc 1852 * All of the low-level HMAC functions have been deprecated.
44652c16 1853
0a8a6afd 1854 *Paul Dale and David von Oheimb*
44652c16
DMSP
1855
1856 * Over two thousand fixes were made to the documentation, including:
1857 - Common options (such as -rand/-writerand, TLS version control, etc)
1858 were refactored and point to newly-enhanced descriptions in openssl.pod.
1859 - Added style conformance for all options (with help from Richard Levitte),
1860 documented all reported missing options, added a CI build to check
1861 that all options are documented and that no unimplemented options
1862 are documented.
1863 - Documented some internals, such as all use of environment variables.
1864 - Addressed all internal broken L<> references.
1865
1866 *Rich Salz*
1867
d7f3a2cc 1868 * All of the low-level CMAC functions have been deprecated.
44652c16
DMSP
1869
1870 *Paul Dale*
1871
1dc8eb5b
P
1872 * The low-level MD2, MD4, MD5, MDC2, RIPEMD160 and Whirlpool digest
1873 functions have been deprecated.
44652c16 1874
4d49b685 1875 *Paul Dale and David von Oheimb*
44652c16 1876
257e9d03 1877 * Corrected the documentation of the return values from the `EVP_DigestSign*`
44652c16
DMSP
1878 set of functions. The documentation mentioned negative values for some
1879 errors, but this was never the case, so the mention of negative values
1880 was removed.
1881
1882 Code that followed the documentation and thereby check with something
1883 like `EVP_DigestSignInit(...) <= 0` will continue to work undisturbed.
1884
1885 *Richard Levitte*
1886
d7f3a2cc 1887 * All of the low-level cipher functions have been deprecated.
44652c16
DMSP
1888
1889 *Matt Caswell and Paul Dale*
5f8e6c50
DMSP
1890
1891 * Removed include/openssl/opensslconf.h.in and replaced it with
1892 include/openssl/configuration.h.in, which differs in not including
1893 <openssl/macros.h>. A short header include/openssl/opensslconf.h
1894 was added to include both.
44652c16 1895
5f8e6c50
DMSP
1896 This allows internal hacks where one might need to modify the set
1897 of configured macros, for example this if deprecated symbols are
1898 still supposed to be available internally:
44652c16 1899
5f8e6c50 1900 #include <openssl/configuration.h>
44652c16 1901
5f8e6c50
DMSP
1902 #undef OPENSSL_NO_DEPRECATED
1903 #define OPENSSL_SUPPRESS_DEPRECATED
44652c16 1904
5f8e6c50 1905 #include <openssl/macros.h>
44652c16 1906
5f8e6c50
DMSP
1907 This should not be used by applications that use the exported
1908 symbols, as that will lead to linking errors.
44652c16 1909
5f8e6c50
DMSP
1910 *Richard Levitte*
1911
44652c16
DMSP
1912 * Fixed an overflow bug in the x64_64 Montgomery squaring procedure
1913 used in exponentiation with 512-bit moduli. No EC algorithms are
1914 affected. Analysis suggests that attacks against 2-prime RSA1024,
1915 3-prime RSA1536, and DSA1024 as a result of this defect would be very
1916 difficult to perform and are not believed likely. Attacks against DH512
1917 are considered just feasible. However, for an attack the target would
a024ab98 1918 have to reuse the DH512 private key, which is not recommended anyway.
4d49b685 1919 Also applications directly using the low-level API BN_mod_exp may be
44652c16 1920 affected if they use BN_FLG_CONSTTIME.
d8dc8538 1921 ([CVE-2019-1551])
44652c16
DMSP
1922
1923 *Andy Polyakov*
5f8e6c50 1924
44652c16
DMSP
1925 * Most memory-debug features have been deprecated, and the functionality
1926 replaced with no-ops.
5f8e6c50 1927
44652c16 1928 *Rich Salz*
257e9d03 1929
31605414 1930 * Added documentation for the STACK API.
257e9d03 1931
852c2ed2 1932 *Rich Salz*
5f8e6c50 1933
02649104
RL
1934 * Introduced a new method type and API, OSSL_ENCODER, to represent
1935 generic encoders. These do the same sort of job that PEM writers
1936 and d2i functions do, but with support for methods supplied by
1937 providers, and the possibility for providers to support other
1938 formats as well.
1939
1940 *Richard Levitte*
1941
1942 * Introduced a new method type and API, OSSL_DECODER, to represent
1943 generic decoders. These do the same sort of job that PEM readers
1944 and i2d functions do, but with support for methods supplied by
1945 providers, and the possibility for providers to support other
1946 formats as well.
5f8e6c50
DMSP
1947
1948 *Richard Levitte*
1949
1950 * Added a .pragma directive to the syntax of configuration files, to
1951 allow varying behavior in a supported and predictable manner.
1952 Currently added pragma:
1953
1954 .pragma dollarid:on
1955
1956 This allows dollar signs to be a keyword character unless it's
1957 followed by a opening brace or parenthesis. This is useful for
1958 platforms where dollar signs are commonly used in names, such as
1959 volume names and system directory names on VMS.
1960
1961 *Richard Levitte*
1962
b7140b06 1963 * Added functionality to create an EVP_PKEY from user data.
5f8e6c50
DMSP
1964
1965 *Richard Levitte*
536454e5 1966
5f8e6c50
DMSP
1967 * Change the interpretation of the '--api' configuration option to
1968 mean that this is a desired API compatibility level with no
1969 further meaning. The previous interpretation, that this would
1970 also mean to remove all deprecated symbols up to and including
1971 the given version, no requires that 'no-deprecated' is also used
1972 in the configuration.
1973
1974 When building applications, the desired API compatibility level
1975 can be set with the OPENSSL_API_COMPAT macro like before. For
1976 API compatibility version below 3.0, the old style numerical
1977 value is valid as before, such as -DOPENSSL_API_COMPAT=0x10100000L.
1978 For version 3.0 and on, the value is expected to be the decimal
1979 value calculated from the major and minor version like this:
38c65481 1980
5f8e6c50 1981 MAJOR * 10000 + MINOR * 100
38c65481 1982
5f8e6c50 1983 Examples:
ea8c77a5 1984
5f8e6c50
DMSP
1985 -DOPENSSL_API_COMPAT=30000 For 3.0
1986 -DOPENSSL_API_COMPAT=30200 For 3.2
1987
1988 To hide declarations that are deprecated up to and including the
1989 given API compatibility level, -DOPENSSL_NO_DEPRECATED must be
1990 given when building the application as well.
390c5795 1991
5f8e6c50 1992 *Richard Levitte*
e5641d7f 1993
5f8e6c50
DMSP
1994 * Added the X509_LOOKUP_METHOD called X509_LOOKUP_store, to allow
1995 access to certificate and CRL stores via URIs and OSSL_STORE
1996 loaders.
e5641d7f 1997
5f8e6c50 1998 This adds the following functions:
3ddc06f0 1999
5f8e6c50
DMSP
2000 - X509_LOOKUP_store()
2001 - X509_STORE_load_file()
2002 - X509_STORE_load_path()
2003 - X509_STORE_load_store()
2004 - SSL_add_store_cert_subjects_to_stack()
2005 - SSL_CTX_set_default_verify_store()
2006 - SSL_CTX_load_verify_file()
2007 - SSL_CTX_load_verify_dir()
2008 - SSL_CTX_load_verify_store()
e66cb363 2009
5f8e6c50 2010 *Richard Levitte*
732d31be 2011
5f8e6c50
DMSP
2012 * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY.
2013 The presence of this system service is determined at run-time.
223c59ea 2014
5f8e6c50 2015 *Richard Levitte*
173350bc 2016
5f8e6c50
DMSP
2017 * Added functionality to create an EVP_PKEY context based on data
2018 for methods from providers. This takes an algorithm name and a
2019 property query string and simply stores them, with the intent
2020 that any operation that uses this context will use those strings
2021 to fetch the needed methods implicitly, thereby making the port
2022 of application written for pre-3.0 OpenSSL easier.
acf20c7d 2023
5f8e6c50 2024 *Richard Levitte*
3d63b396 2025
5f8e6c50
DMSP
2026 * The undocumented function NCONF_WIN32() has been deprecated; for
2027 conversion details see the HISTORY section of doc/man5/config.pod
c2bf7208 2028
5f8e6c50 2029 *Rich Salz*
ba64ae6c 2030
5f8e6c50
DMSP
2031 * Introduced the new functions EVP_DigestSignInit_ex() and
2032 EVP_DigestVerifyInit_ex(). The macros EVP_DigestSignUpdate() and
2033 EVP_DigestVerifyUpdate() have been converted to functions. See the man
2034 pages for further details.
0e0c6821 2035
5f8e6c50 2036 *Matt Caswell*
e6f418bc 2037
5f8e6c50
DMSP
2038 * Over two thousand fixes were made to the documentation, including:
2039 adding missing command flags, better style conformance, documentation
2040 of internals, etc.
3d63b396 2041
5f8e6c50 2042 *Rich Salz, Richard Levitte*
3d63b396 2043
5f8e6c50
DMSP
2044 * s390x assembly pack: add hardware-support for P-256, P-384, P-521,
2045 X25519, X448, Ed25519 and Ed448.
a25f33d2 2046
5f8e6c50 2047 *Patrick Steuer*
17716680 2048
5f8e6c50
DMSP
2049 * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just
2050 the first value.
0e4bc563 2051
5f8e6c50 2052 *Jon Spillett*
e30dd20c 2053
ec2bfb7d
DDO
2054 * Deprecated the public definition of `ERR_STATE` as well as the function
2055 `ERR_get_state()`. This is done in preparation of making `ERR_STATE` an
5f8e6c50 2056 opaque type.
c05353c5 2057
5f8e6c50 2058 *Richard Levitte*
d741ccad 2059
5f8e6c50
DMSP
2060 * Added ERR functionality to give callers access to the stored function
2061 names that have replaced the older function code based functions.
aaf35f11 2062
af2f14ac
RL
2063 New functions are ERR_peek_error_func(), ERR_peek_last_error_func(),
2064 ERR_peek_error_data(), ERR_peek_last_error_data(), ERR_get_error_all(),
2065 ERR_peek_error_all() and ERR_peek_last_error_all().
2066
b7140b06
SL
2067 Deprecate ERR functions ERR_get_error_line(), ERR_get_error_line_data(),
2068 ERR_peek_error_line_data(), ERR_peek_last_error_line_data() and
2069 ERR_func_error_string().
aaf35f11 2070
5f8e6c50 2071 *Richard Levitte*
3ff55e96 2072
5f8e6c50
DMSP
2073 * Extended testing to be verbose for failing tests only. The make variables
2074 VERBOSE_FAILURE or VF can be used to enable this:
b6af2c7e 2075
5f8e6c50
DMSP
2076 $ make VF=1 test # Unix
2077 $ mms /macro=(VF=1) test ! OpenVMS
2078 $ nmake VF=1 test # Windows
77202a85 2079
5f8e6c50 2080 *Richard Levitte*
57f39cc8 2081
b9fbacaa
DDO
2082 * Added the `-copy_extensions` option to the `x509` command for use with
2083 `-req` and `-x509toreq`. When given with the `copy` or `copyall` argument,
2084 all extensions in the request are copied to the certificate or vice versa.
2085
2086 *David von Oheimb*, *Kirill Stefanenkov <kirill_stefanenkov@rambler.ru>*
2087
2088 * Added the `-copy_extensions` option to the `req` command for use with
2089 `-x509`. When given with the `copy` or `copyall` argument,
2090 all extensions in the certification request are copied to the certificate.
b65c5ec8
DDO
2091
2092 *David von Oheimb*
2093
b9fbacaa
DDO
2094 * The `x509`, `req`, and `ca` commands now make sure that X.509v3 certificates
2095 they generate are by default RFC 5280 compliant in the following sense:
2096 There is a subjectKeyIdentifier extension with a hash value of the public key
2097 and for not self-signed certs there is an authorityKeyIdentifier extension
2098 with a keyIdentifier field or issuer information identifying the signing key.
ec2bfb7d 2099 This is done unless some configuration overrides the new default behavior,
b9fbacaa 2100 such as `subjectKeyIdentifier = none` and `authorityKeyIdentifier = none`.
ec2bfb7d
DDO
2101
2102 *David von Oheimb*
2103
2104 * Added several checks to `X509_verify_cert()` according to requirements in
0e071fbc
DO
2105 RFC 5280 in case `X509_V_FLAG_X509_STRICT` is set
2106 (which may be done by using the CLI option `-x509_strict`):
2107 * The basicConstraints of CA certificates must be marked critical.
2108 * CA certificates must explicitly include the keyUsage extension.
2109 * If a pathlenConstraint is given the key usage keyCertSign must be allowed.
2110 * The issuer name of any certificate must not be empty.
2111 * The subject name of CA certs, certs with keyUsage crlSign,
2112 and certs without subjectAlternativeName must not be empty.
2113 * If a subjectAlternativeName extension is given it must not be empty.
2114 * The signatureAlgorithm field and the cert signature must be consistent.
2115 * Any given authorityKeyIdentifier and any given subjectKeyIdentifier
2116 must not be marked critical.
2117 * The authorityKeyIdentifier must be given for X.509v3 certs
2118 unless they are self-signed.
2119 * The subjectKeyIdentifier must be given for all X.509v3 CA certs.
2120
2121 *David von Oheimb*
2122
ec2bfb7d 2123 * Certificate verification using `X509_verify_cert()` meanwhile rejects EC keys
0e071fbc
DO
2124 with explicit curve parameters (specifiedCurve) as required by RFC 5480.
2125
66194839 2126 *Tomáš Mráz*
0e071fbc 2127
5f8e6c50 2128 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 2129 used even when parsing explicit parameters, when loading a encoded key
5f8e6c50
DMSP
2130 or calling `EC_GROUP_new_from_ecpkparameters()`/
2131 `EC_GROUP_new_from_ecparameters()`.
2132 This prevents bypass of security hardening and performance gains,
2133 especially for curves with specialized EC_METHODs.
2134 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 2135 encoded, the output is still encoded with explicit parameters, even if
5f8e6c50 2136 internally a "named" EC_GROUP is used for computation.
480af99e 2137
5f8e6c50 2138 *Nicola Tuveri*
480af99e 2139
5f8e6c50
DMSP
2140 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
2141 this change, EC_GROUP_set_generator would accept order and/or cofactor as
2142 NULL. After this change, only the cofactor parameter can be NULL. It also
2143 does some minimal sanity checks on the passed order.
d8dc8538 2144 ([CVE-2019-1547])
bab53405 2145
5f8e6c50 2146 *Billy Bob Brumley*
31636a3e 2147
5f8e6c50
DMSP
2148 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
2149 An attack is simple, if the first CMS_recipientInfo is valid but the
2150 second CMS_recipientInfo is chosen ciphertext. If the second
2151 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
2152 encryption key will be replaced by garbage, and the message cannot be
2153 decoded, but if the RSA decryption fails, the correct encryption key is
2154 used and the recipient will not notice the attack.
2155 As a work around for this potential attack the length of the decrypted
2156 key must be equal to the cipher default key length, in case the
d7f3a2cc 2157 certificate is not given and all recipientInfo are tried out.
5f8e6c50
DMSP
2158 The old behaviour can be re-enabled in the CMS code by setting the
2159 CMS_DEBUG_DECRYPT flag.
60aee6ce 2160
5f8e6c50 2161 *Bernd Edlinger*
31636a3e 2162
5f8e6c50
DMSP
2163 * Early start up entropy quality from the DEVRANDOM seed source has been
2164 improved for older Linux systems. The RAND subsystem will wait for
2165 /dev/random to be producing output before seeding from /dev/urandom.
2166 The seeded state is stored for future library initialisations using
2167 a system global shared memory segment. The shared memory identifier
2168 can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to
2169 the desired value. The default identifier is 114.
31636a3e 2170
5f8e6c50 2171 *Paul Dale*
7a762197 2172
5f8e6c50
DMSP
2173 * Revised BN_generate_prime_ex to not avoid factors 2..17863 in p-1
2174 when primes for RSA keys are computed.
2175 Since we previously always generated primes == 2 (mod 3) for RSA keys,
2176 the 2-prime and 3-prime RSA modules were easy to distinguish, since
d7f3a2cc 2177 `N = p*q = 1 (mod 3)`, but `N = p*q*r = 2 (mod 3)`. Therefore, fingerprinting
5f8e6c50
DMSP
2178 2-prime vs. 3-prime RSA keys was possible by computing N mod 3.
2179 This avoids possible fingerprinting of newly generated RSA modules.
6caa4edd 2180
5f8e6c50 2181 *Bernd Edlinger*
28b6d502 2182
5f8e6c50
DMSP
2183 * Correct the extended master secret constant on EBCDIC systems. Without this
2184 fix TLS connections between an EBCDIC system and a non-EBCDIC system that
2185 negotiate EMS will fail. Unfortunately this also means that TLS connections
2186 between EBCDIC systems with this fix, and EBCDIC systems without this
2187 fix will fail if they negotiate EMS.
d5bbead4 2188
5f8e6c50 2189 *Matt Caswell*
837f2fc7 2190
5f8e6c50
DMSP
2191 * Changed the library initialisation so that the config file is now loaded
2192 by default. This was already the case for libssl. It now occurs for both
2193 libcrypto and libssl. Use the OPENSSL_INIT_NO_LOAD_CONFIG option to
ec2bfb7d 2194 `OPENSSL_init_crypto()` to suppress automatic loading of a config file.
6bf79e30 2195
5f8e6c50 2196 *Matt Caswell*
480af99e 2197
ec2bfb7d
DDO
2198 * Introduced new error raising macros, `ERR_raise()` and `ERR_raise_data()`,
2199 where the former acts as a replacement for `ERR_put_error()`, and the
2200 latter replaces the combination `ERR_put_error()` + `ERR_add_error_data()`.
2201 `ERR_raise_data()` adds more flexibility by taking a format string and
5f8e6c50 2202 an arbitrary number of arguments following it, to be processed with
ec2bfb7d 2203 `BIO_snprintf()`.
e65bcbce 2204
5f8e6c50 2205 *Richard Levitte*
db99c525 2206
ec2bfb7d 2207 * Introduced a new function, `OSSL_PROVIDER_available()`, which can be used
5f8e6c50
DMSP
2208 to check if a named provider is loaded and available. When called, it
2209 will also activate all fallback providers if such are still present.
db99c525 2210
5f8e6c50 2211 *Richard Levitte*
db99c525 2212
5f8e6c50 2213 * Enforce a minimum DH modulus size of 512 bits.
f8d6be3f 2214
5f8e6c50 2215 *Bernd Edlinger*
f8d6be3f 2216
5f8e6c50
DMSP
2217 * Changed DH parameters to generate the order q subgroup instead of 2q.
2218 Previously generated DH parameters are still accepted by DH_check
2219 but DH_generate_key works around that by clearing bit 0 of the
2220 private key for those. This avoids leaking bit 0 of the private key.
f8d6be3f 2221
5f8e6c50 2222 *Bernd Edlinger*
f8d6be3f 2223
5f8e6c50 2224 * Significantly reduce secure memory usage by the randomness pools.
f8d6be3f 2225
5f8e6c50 2226 *Paul Dale*
f8d6be3f 2227
257e9d03 2228 * `{CRYPTO,OPENSSL}_mem_debug_{push,pop}` are now no-ops and have been
5f8e6c50 2229 deprecated.
1a489c9a 2230
5f8e6c50 2231 *Rich Salz*
8528128b 2232
5f8e6c50
DMSP
2233 * A new type, EVP_KEYEXCH, has been introduced to represent key exchange
2234 algorithms. An implementation of a key exchange algorithm can be obtained
2235 by using the function EVP_KEYEXCH_fetch(). An EVP_KEYEXCH algorithm can be
2236 used in a call to EVP_PKEY_derive_init_ex() which works in a similar way to
2237 the older EVP_PKEY_derive_init() function. See the man pages for the new
2238 functions for further details.
8228fd89 2239
5f8e6c50 2240 *Matt Caswell*
adb92d56 2241
5f8e6c50 2242 * The EVP_PKEY_CTX_set_dh_pad() macro has now been converted to a function.
6bf79e30 2243
5f8e6c50 2244 *Matt Caswell*
adb92d56 2245
5f8e6c50
DMSP
2246 * Removed the function names from error messages and deprecated the
2247 xxx_F_xxx define's.
6bf79e30 2248
0f71b1eb
P
2249 *Richard Levitte*
2250
5f8e6c50 2251 * Removed NextStep support and the macro OPENSSL_UNISTD
db99c525 2252
5f8e6c50 2253 *Rich Salz*
94fd382f 2254
5f8e6c50
DMSP
2255 * Removed DES_check_key. Also removed OPENSSL_IMPLEMENT_GLOBAL,
2256 OPENSSL_GLOBAL_REF, OPENSSL_DECLARE_GLOBAL.
2257 Also removed "export var as function" capability; we do not export
2258 variables, only functions.
e194fe8f 2259
5f8e6c50 2260 *Rich Salz*
40a70628 2261
5f8e6c50
DMSP
2262 * RC5_32_set_key has been changed to return an int type, with 0 indicating
2263 an error and 1 indicating success. In previous versions of OpenSSL this
2264 was a void type. If a key was set longer than the maximum possible this
2265 would crash.
c2c2e7a4 2266
5f8e6c50 2267 *Matt Caswell*
c2c2e7a4 2268
5f8e6c50 2269 * Support SM2 signing and verification schemes with X509 certificate.
d18ef847 2270
5f8e6c50 2271 *Paul Yang*
d357be38 2272
ec2bfb7d 2273 * Use SHA256 as the default digest for TS query in the `ts` app.
b615ad90 2274
66194839 2275 *Tomáš Mráz*
0ebfcc8f 2276
5f8e6c50 2277 * Change PBKDF2 to conform to SP800-132 instead of the older PKCS5 RFC2898.
62bad771 2278
5f8e6c50 2279 *Shane Lontis*
1ad2ecb6 2280
5f8e6c50
DMSP
2281 * Default cipher lists/suites are now available via a function, the
2282 #defines are deprecated.
bd3576d2 2283
5f8e6c50 2284 *Todd Short*
b64f8256 2285
5f8e6c50
DMSP
2286 * Add target VC-WIN32-UWP, VC-WIN64A-UWP, VC-WIN32-ARM-UWP and
2287 VC-WIN64-ARM-UWP in Windows OneCore target for making building libraries
2288 for Windows Store apps easier. Also, the "no-uplink" option has been added.
a9be3af5 2289
5f8e6c50 2290 *Kenji Mouri*
47339f61 2291
5f8e6c50 2292 * Join the directories crypto/x509 and crypto/x509v3
b0b7b1c5 2293
5f8e6c50 2294 *Richard Levitte*
6d311938 2295
5f8e6c50 2296 * Added command 'openssl kdf' that uses the EVP_KDF API.
90b8bbb8 2297
5f8e6c50 2298 *Shane Lontis*
22a4f969 2299
5f8e6c50 2300 * Added command 'openssl mac' that uses the EVP_MAC API.
41b731f2 2301
5f8e6c50 2302 *Shane Lontis*
e778802f 2303
5f8e6c50
DMSP
2304 * Added OPENSSL_info() to get diverse built-in OpenSSL data, such
2305 as default directories. Also added the command 'openssl info'
2306 for scripting purposes.
1d48dd00 2307
5f8e6c50 2308 *Richard Levitte*
28a98809 2309
5f8e6c50 2310 * The functions AES_ige_encrypt() and AES_bi_ige_encrypt() have been
b7140b06 2311 deprecated.
8f7de4f0 2312
5f8e6c50 2313 *Matt Caswell*
5fbe91d8 2314
5f8e6c50 2315 * Add prediction resistance to the DRBG reseeding process.
9263e882 2316
5f8e6c50 2317 *Paul Dale*
f73e07cf 2318
5f8e6c50
DMSP
2319 * Limit the number of blocks in a data unit for AES-XTS to 2^20 as
2320 mandated by IEEE Std 1619-2018.
f9a25931 2321
5f8e6c50 2322 *Paul Dale*
2f0cd195 2323
5f8e6c50 2324 * Added newline escaping functionality to a filename when using openssl dgst.
257e9d03 2325 This output format is to replicate the output format found in the `*sum`
5f8e6c50 2326 checksum programs. This aims to preserve backward compatibility.
268c2102 2327
5f8e6c50 2328 *Matt Eaton, Richard Levitte, and Paul Dale*
fc8ee06b 2329
5f8e6c50
DMSP
2330 * Removed the heartbeat message in DTLS feature, as it has very
2331 little usage and doesn't seem to fulfill a valuable purpose.
2332 The configuration option is now deprecated.
c7ac31e2 2333
5f8e6c50 2334 *Richard Levitte*
9d892e28 2335
5f8e6c50
DMSP
2336 * Changed the output of 'openssl {digestname} < file' to display the
2337 digest name in its output.
9d892e28 2338
5f8e6c50 2339 *Richard Levitte*
ee13f9b1 2340
5f8e6c50 2341 * Added a new generic trace API which provides support for enabling
b7140b06 2342 instrumentation through trace output.
cb0f35d7 2343
5f8e6c50 2344 *Richard Levitte & Matthias St. Pierre*
cfcf6453 2345
5f8e6c50
DMSP
2346 * Added build tests for C++. These are generated files that only do one
2347 thing, to include one public OpenSSL head file each. This tests that
2348 the public header files can be usefully included in a C++ application.
cdbb8c2f 2349
5f8e6c50
DMSP
2350 This test isn't enabled by default. It can be enabled with the option
2351 'enable-buildtest-c++'.
06d5b162 2352
5f8e6c50 2353 *Richard Levitte*
c35f549e 2354
95a444c9
TM
2355 * Added KB KDF (EVP_KDF_KB) to EVP_KDF.
2356
2357 *Robbie Harwood*
2358
2359 * Added SSH KDF (EVP_KDF_SSHKDF) and KRB5 KDF (EVP_KDF_KRB5KDF) to EVP_KDF.
2360
2361 *Simo Sorce*
2362
2363 * Added Single Step KDF (EVP_KDF_SS), X963 KDF, and X942 KDF to EVP_KDF.
ebc828ca 2364
5f8e6c50 2365 *Shane Lontis*
79e259e3 2366
95a444c9 2367 * Added KMAC to EVP_MAC.
56ee3117 2368
5f8e6c50 2369 *Shane Lontis*
6063b27b 2370
5f8e6c50
DMSP
2371 * Added property based algorithm implementation selection framework to
2372 the core.
6063b27b 2373
5f8e6c50 2374 *Paul Dale*
6063b27b 2375
5f8e6c50
DMSP
2376 * Added SCA hardening for modular field inversion in EC_GROUP through
2377 a new dedicated field_inv() pointer in EC_METHOD.
2378 This also addresses a leakage affecting conversions from projective
2379 to affine coordinates.
792a9002 2380
5f8e6c50 2381 *Billy Bob Brumley, Nicola Tuveri*
792a9002 2382
5f8e6c50
DMSP
2383 * Added EVP_KDF, an EVP layer KDF API, to simplify adding KDF and PRF
2384 implementations. This includes an EVP_PKEY to EVP_KDF bridge for
2385 those algorithms that were already supported through the EVP_PKEY API
2386 (scrypt, TLS1 PRF and HKDF). The low-level KDF functions for PBKDF2
2387 and scrypt are now wrappers that call EVP_KDF.
792a9002 2388
5f8e6c50 2389 *David Makepeace*
ce72df1c 2390
5f8e6c50 2391 * Build devcrypto engine as a dynamic engine.
4098e89c 2392
5f8e6c50 2393 *Eneas U de Queiroz*
4098e89c 2394
5f8e6c50 2395 * Add keyed BLAKE2 to EVP_MAC.
03f8b042 2396
5f8e6c50 2397 *Antoine Salon*
5dcdcd47 2398
5f8e6c50
DMSP
2399 * Fix a bug in the computation of the endpoint-pair shared secret used
2400 by DTLS over SCTP. This breaks interoperability with older versions
2401 of OpenSSL like OpenSSL 1.1.0 and OpenSSL 1.0.2. There is a runtime
2402 switch SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG (off by default) enabling
2403 interoperability with such broken implementations. However, enabling
2404 this switch breaks interoperability with correct implementations.
ae82b46f 2405
5f8e6c50
DMSP
2406 * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a
2407 re-used X509_PUBKEY object if the second PUBKEY is malformed.
8d7ed6ff 2408
5f8e6c50 2409 *Bernd Edlinger*
8d7ed6ff 2410
5f8e6c50 2411 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
1b24cca9 2412
5f8e6c50 2413 *Richard Levitte*
9ce5db45 2414
18fdebf1 2415 * Changed the license to the Apache License v2.0.
7f111b8b 2416
5f8e6c50 2417 *Richard Levitte*
651d0aff 2418
5f8e6c50 2419 * Switch to a new version scheme using three numbers MAJOR.MINOR.PATCH.
13e91dd3 2420
5f8e6c50
DMSP
2421 - Major releases (indicated by incrementing the MAJOR release number)
2422 may introduce incompatible API/ABI changes.
2423 - Minor releases (indicated by incrementing the MINOR release number)
2424 may introduce new features but retain API/ABI compatibility.
2425 - Patch releases (indicated by incrementing the PATCH number)
2426 are intended for bug fixes and other improvements of existing
2427 features only (like improving performance or adding documentation)
2428 and retain API/ABI compatibility.
13e91dd3 2429
5f8e6c50 2430 *Richard Levitte*
13e91dd3 2431
5f8e6c50 2432 * Add support for RFC5297 SIV mode (siv128), including AES-SIV.
13e91dd3 2433
5f8e6c50 2434 *Todd Short*
651d0aff 2435
5f8e6c50
DMSP
2436 * Remove the 'dist' target and add a tarball building script. The
2437 'dist' target has fallen out of use, and it shouldn't be
2438 necessary to configure just to create a source distribution.
651d0aff 2439
5f8e6c50 2440 *Richard Levitte*
651d0aff 2441
5f8e6c50
DMSP
2442 * Recreate the OS390-Unix config target. It no longer relies on a
2443 special script like it did for OpenSSL pre-1.1.0.
651d0aff 2444
5f8e6c50 2445 *Richard Levitte*
651d0aff 2446
5f8e6c50
DMSP
2447 * Instead of having the source directories listed in Configure, add
2448 a 'build.info' keyword SUBDIRS to indicate what sub-directories to
2449 look into.
651d0aff 2450
5f8e6c50 2451 *Richard Levitte*
7f111b8b 2452
5f8e6c50 2453 * Add GMAC to EVP_MAC.
1b24cca9 2454
5f8e6c50 2455 *Paul Dale*
651d0aff 2456
5f8e6c50 2457 * Ported the HMAC, CMAC and SipHash EVP_PKEY_METHODs to EVP_MAC.
651d0aff 2458
5f8e6c50 2459 *Richard Levitte*
651d0aff 2460
5f8e6c50
DMSP
2461 * Added EVP_MAC, an EVP layer MAC API, to simplify adding MAC
2462 implementations. This includes a generic EVP_PKEY to EVP_MAC bridge,
2463 to facilitate the continued use of MACs through raw private keys in
1dc1ea18 2464 functionality such as `EVP_DigestSign*` and `EVP_DigestVerify*`.
651d0aff 2465
5f8e6c50 2466 *Richard Levitte*
651d0aff 2467
b7140b06 2468 * Deprecate ECDH_KDF_X9_62().
651d0aff 2469
5f8e6c50 2470 *Antoine Salon*
651d0aff 2471
5f8e6c50
DMSP
2472 * Added EVP_PKEY_ECDH_KDF_X9_63 and ecdh_KDF_X9_63() as replacements for
2473 the EVP_PKEY_ECDH_KDF_X9_62 KDF type and ECDH_KDF_X9_62(). The old names
2474 are retained for backwards compatibility.
651d0aff 2475
5f8e6c50 2476 *Antoine Salon*
651d0aff 2477
5f8e6c50
DMSP
2478 * AES-XTS mode now enforces that its two keys are different to mitigate
2479 the attacked described in "Efficient Instantiations of Tweakable
2480 Blockciphers and Refinements to Modes OCB and PMAC" by Phillip Rogaway.
2481 Details of this attack can be obtained from:
257e9d03 2482 <http://web.cs.ucdavis.edu/%7Erogaway/papers/offsets.pdf>
651d0aff 2483
5f8e6c50 2484 *Paul Dale*
651d0aff 2485
5f8e6c50
DMSP
2486 * Rename the object files, i.e. give them other names than in previous
2487 versions. Their names now include the name of the final product, as
2488 well as its type mnemonic (bin, lib, shlib).
651d0aff 2489
5f8e6c50 2490 *Richard Levitte*
651d0aff 2491
5f8e6c50
DMSP
2492 * Added new option for 'openssl list', '-objects', which will display the
2493 list of built in objects, i.e. OIDs with names.
651d0aff 2494
5f8e6c50 2495 *Richard Levitte*
651d0aff 2496
64713cb1
CN
2497 * Added the options `-crl_lastupdate` and `-crl_nextupdate` to `openssl ca`,
2498 allowing the `lastUpdate` and `nextUpdate` fields in the generated CRL to
2499 be set explicitly.
2500
2501 *Chris Novakovic*
2502
5f8e6c50
DMSP
2503 * Added support for Linux Kernel TLS data-path. The Linux Kernel data-path
2504 improves application performance by removing data copies and providing
2505 applications with zero-copy system calls such as sendfile and splice.
651d0aff 2506
5f8e6c50 2507 *Boris Pismenny*
651d0aff 2508
b7140b06 2509 * The SSL option SSL_OP_CLEANSE_PLAINTEXT is introduced.
163b8016
ME
2510
2511 *Martin Elshuber*
2512
fc0aae73
DDO
2513 * `PKCS12_parse` now maintains the order of the parsed certificates
2514 when outputting them via `*ca` (rather than reversing it).
2515
2516 *David von Oheimb*
2517
b7140b06 2518 * Deprecated pthread fork support methods.
9750b4d3
RB
2519
2520 *Randall S. Becker*
2521
fc5245a9
HK
2522 * Added support for FFDHE key exchange in TLS 1.3.
2523
2524 *Raja Ashok*
2525
8e7d941a
RL
2526 * Added a new concept for OpenSSL plugability: providers. This
2527 functionality is designed to replace the ENGINE API and ENGINE
2528 implementations, and to be much more dynamic, allowing provider
2529 authors to introduce new algorithms among other things, as long as
2530 there's an API that supports the algorithm type.
2531
2532 With this concept comes a new core API for interaction between
2533 libcrypto and provider implementations. Public libcrypto functions
2534 that want to use providers do so through this core API.
2535
2536 The main documentation for this core API is found in
2537 doc/man7/provider.pod, doc/man7/provider-base.pod, and they in turn
2538 refer to other manuals describing the API specific for supported
2539 algorithm types (also called operations).
2540
2541 *The OpenSSL team*
2542
44652c16
DMSP
2543OpenSSL 1.1.1
2544-------------
2545
522a32ef
OP
2546### Changes between 1.1.1m and 1.1.1n [xx XXX xxxx]
2547
e0d00d79 2548### Changes between 1.1.1l and 1.1.1m [14 Dec 2021]
0e4e4e27
RL
2549
2550 * Avoid loading of a dynamic engine twice.
2551
2552 *Bernd Edlinger*
2553
2554 * Prioritise DANE TLSA issuer certs over peer certs
2555
2556 *Viktor Dukhovni*
2557
2558 * Fixed random API for MacOS prior to 10.12
2559
2560 These MacOS versions don't support the CommonCrypto APIs
2561
2562 *Lenny Primak*
2563
796f4f70
MC
2564### Changes between 1.1.1k and 1.1.1l [24 Aug 2021]
2565
2566 * Fixed an SM2 Decryption Buffer Overflow.
2567
fdd43643
P
2568 In order to decrypt SM2 encrypted data an application is expected to
2569 call the API function EVP_PKEY_decrypt(). Typically an application will
2570 call this function twice. The first time, on entry, the "out" parameter
2571 can be NULL and, on exit, the "outlen" parameter is populated with the
2572 buffer size required to hold the decrypted plaintext. The application
2573 can then allocate a sufficiently sized buffer and call EVP_PKEY_decrypt()
2574 again, but this time passing a non-NULL value for the "out" parameter.
796f4f70
MC
2575
2576 A bug in the implementation of the SM2 decryption code means that the
fdd43643
P
2577 calculation of the buffer size required to hold the plaintext returned
2578 by the first call to EVP_PKEY_decrypt() can be smaller than the actual
2579 size required by the second call. This can lead to a buffer overflow
2580 when EVP_PKEY_decrypt() is called by the application a second time with
2581 a buffer that is too small.
2582
2583 A malicious attacker who is able present SM2 content for decryption to
2584 an application could cause attacker chosen data to overflow the buffer
2585 by up to a maximum of 62 bytes altering the contents of other data held
2586 after the buffer, possibly changing application behaviour or causing
2587 the application to crash. The location of the buffer is application
2588 dependent but is typically heap allocated.
796f4f70
MC
2589 ([CVE-2021-3711])
2590
2591 *Matt Caswell*
2592
fdd43643
P
2593 * Fixed various read buffer overruns processing ASN.1 strings
2594
2595 ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING
2596 structure which contains a buffer holding the string data and a field
2597 holding the buffer length. This contrasts with normal C strings which
d7f3a2cc 2598 are represented as a buffer for the string data which is terminated
fdd43643
P
2599 with a NUL (0) byte.
2600
2601 Although not a strict requirement, ASN.1 strings that are parsed using
2602 OpenSSL's own "d2i" functions (and other similar parsing functions) as
2603 well as any string whose value has been set with the ASN1_STRING_set()
2604 function will additionally NUL terminate the byte array in the
2605 ASN1_STRING structure.
2606
2607 However, it is possible for applications to directly construct valid
2608 ASN1_STRING structures which do not NUL terminate the byte array by
2609 directly setting the "data" and "length" fields in the ASN1_STRING
2610 array. This can also happen by using the ASN1_STRING_set0() function.
2611
2612 Numerous OpenSSL functions that print ASN.1 data have been found to
2613 assume that the ASN1_STRING byte array will be NUL terminated, even
2614 though this is not guaranteed for strings that have been directly
2615 constructed. Where an application requests an ASN.1 structure to be
2616 printed, and where that ASN.1 structure contains ASN1_STRINGs that have
2617 been directly constructed by the application without NUL terminating
2618 the "data" field, then a read buffer overrun can occur.
2619
2620 The same thing can also occur during name constraints processing
2621 of certificates (for example if a certificate has been directly
2622 constructed by the application instead of loading it via the OpenSSL
2623 parsing functions, and the certificate contains non NUL terminated
2624 ASN1_STRING structures). It can also occur in the X509_get1_email(),
2625 X509_REQ_get1_email() and X509_get1_ocsp() functions.
2626
2627 If a malicious actor can cause an application to directly construct an
2628 ASN1_STRING and then process it through one of the affected OpenSSL
2629 functions then this issue could be hit. This might result in a crash
2630 (causing a Denial of Service attack). It could also result in the
2631 disclosure of private memory contents (such as private keys, or
2632 sensitive plaintext).
2633 ([CVE-2021-3712])
796f4f70
MC
2634
2635 *Matt Caswell*
2636
2637### Changes between 1.1.1j and 1.1.1k [25 Mar 2021]
5b57aa24 2638
468d9d55
MC
2639 * Fixed a problem with verifying a certificate chain when using the
2640 X509_V_FLAG_X509_STRICT flag. This flag enables additional security checks of
2641 the certificates present in a certificate chain. It is not set by default.
2642
2643 Starting from OpenSSL version 1.1.1h a check to disallow certificates in
2644 the chain that have explicitly encoded elliptic curve parameters was added
2645 as an additional strict check.
2646
2647 An error in the implementation of this check meant that the result of a
2648 previous check to confirm that certificates in the chain are valid CA
2649 certificates was overwritten. This effectively bypasses the check
2650 that non-CA certificates must not be able to issue other certificates.
2651
2652 If a "purpose" has been configured then there is a subsequent opportunity
2653 for checks that the certificate is a valid CA. All of the named "purpose"
2654 values implemented in libcrypto perform this check. Therefore, where
2655 a purpose is set the certificate chain will still be rejected even when the
2656 strict flag has been used. A purpose is set by default in libssl client and
2657 server certificate verification routines, but it can be overridden or
2658 removed by an application.
2659
2660 In order to be affected, an application must explicitly set the
2661 X509_V_FLAG_X509_STRICT verification flag and either not set a purpose
2662 for the certificate verification or, in the case of TLS client or server
2663 applications, override the default purpose.
2664 ([CVE-2021-3450])
2665
2666 *Tomáš Mráz*
2667
2668 * Fixed an issue where an OpenSSL TLS server may crash if sent a maliciously
2669 crafted renegotiation ClientHello message from a client. If a TLSv1.2
2670 renegotiation ClientHello omits the signature_algorithms extension (where it
2671 was present in the initial ClientHello), but includes a
2672 signature_algorithms_cert extension then a NULL pointer dereference will
2673 result, leading to a crash and a denial of service attack.
2674
2675 A server is only vulnerable if it has TLSv1.2 and renegotiation enabled
2676 (which is the default configuration). OpenSSL TLS clients are not impacted by
2677 this issue.
2678 ([CVE-2021-3449])
2679
2680 *Peter Kästle and Samuel Sapalski*
2681
c913dbd7
MC
2682### Changes between 1.1.1i and 1.1.1j [16 Feb 2021]
2683
2684 * Fixed the X509_issuer_and_serial_hash() function. It attempts to
2685 create a unique hash value based on the issuer and serial number data
d7f3a2cc 2686 contained within an X509 certificate. However, it was failing to correctly
c913dbd7
MC
2687 handle any errors that may occur while parsing the issuer field (which might
2688 occur if the issuer field is maliciously constructed). This may subsequently
2689 result in a NULL pointer deref and a crash leading to a potential denial of
2690 service attack.
2691 ([CVE-2021-23841])
2692
2693 *Matt Caswell*
2694
2695 * Fixed the RSA_padding_check_SSLv23() function and the RSA_SSLV23_PADDING
2696 padding mode to correctly check for rollback attacks. This is considered a
2697 bug in OpenSSL 1.1.1 because it does not support SSLv2. In 1.0.2 this is
2698 CVE-2021-23839.
2699
2700 *Matt Caswell*
2701
2702 Fixed the EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate
2703 functions. Previously they could overflow the output length argument in some
d7f3a2cc 2704 cases where the input length is close to the maximum permissible length for
c913dbd7
MC
2705 an integer on the platform. In such cases the return value from the function
2706 call would be 1 (indicating success), but the output length value would be
2707 negative. This could cause applications to behave incorrectly or crash.
2708 ([CVE-2021-23840])
2709
2710 *Matt Caswell*
2711
2712 * Fixed SRP_Calc_client_key so that it runs in constant time. The previous
5b57aa24
MC
2713 implementation called BN_mod_exp without setting BN_FLG_CONSTTIME. This
2714 could be exploited in a side channel attack to recover the password. Since
2715 the attack is local host only this is outside of the current OpenSSL
2716 threat model and therefore no CVE is assigned.
2717
2718 Thanks to Mohammed Sabt and Daniel De Almeida Braga for reporting this
2719 issue.
2720
2721 *Matt Caswell*
2722
2723### Changes between 1.1.1h and 1.1.1i [8 Dec 2020]
6ffc3127 2724
1e13198f
MC
2725 * Fixed NULL pointer deref in the GENERAL_NAME_cmp function
2726 This function could crash if both GENERAL_NAMEs contain an EDIPARTYNAME.
2727 If an attacker can control both items being compared then this could lead
2728 to a possible denial of service attack. OpenSSL itself uses the
2729 GENERAL_NAME_cmp function for two purposes:
2730 1) Comparing CRL distribution point names between an available CRL and a
2731 CRL distribution point embedded in an X509 certificate
2732 2) When verifying that a timestamp response token signer matches the
2733 timestamp authority name (exposed via the API functions
2734 TS_RESP_verify_response and TS_RESP_verify_token)
2735 ([CVE-2020-1971])
2736
2737 *Matt Caswell*
6ffc3127
DMSP
2738
2739### Changes between 1.1.1g and 1.1.1h [22 Sep 2020]
2740
2741 * Certificates with explicit curve parameters are now disallowed in
2742 verification chains if the X509_V_FLAG_X509_STRICT flag is used.
2743
66194839 2744 *Tomáš Mráz*
6ffc3127
DMSP
2745
2746 * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently
2747 ignore TLS protocol version bounds when configuring DTLS-based contexts, and
2748 conversely, silently ignore DTLS protocol version bounds when configuring
2749 TLS-based contexts. The commands can be repeated to set bounds of both
2750 types. The same applies with the corresponding "min_protocol" and
2751 "max_protocol" command-line switches, in case some application uses both TLS
2752 and DTLS.
2753
2754 SSL_CTX instances that are created for a fixed protocol version (e.g.
2755 TLSv1_server_method()) also silently ignore version bounds. Previously
2756 attempts to apply bounds to these protocol versions would result in an
2757 error. Now only the "version-flexible" SSL_CTX instances are subject to
2758 limits in configuration files in command-line options.
2759
2760 *Viktor Dukhovni*
2761
2762 * Handshake now fails if Extended Master Secret extension is dropped
2763 on renegotiation.
2764
66194839 2765 *Tomáš Mráz*
6ffc3127
DMSP
2766
2767 * The Oracle Developer Studio compiler will start reporting deprecated APIs
2768
2769### Changes between 1.1.1f and 1.1.1g [21 Apr 2020]
2770
2771 * Fixed segmentation fault in SSL_check_chain()
2772 Server or client applications that call the SSL_check_chain() function
2773 during or after a TLS 1.3 handshake may crash due to a NULL pointer
2774 dereference as a result of incorrect handling of the
2775 "signature_algorithms_cert" TLS extension. The crash occurs if an invalid
2776 or unrecognised signature algorithm is received from the peer. This could
2777 be exploited by a malicious peer in a Denial of Service attack.
d8dc8538 2778 ([CVE-2020-1967])
6ffc3127
DMSP
2779
2780 *Benjamin Kaduk*
2781
2782 * Added AES consttime code for no-asm configurations
2783 an optional constant time support for AES was added
2784 when building openssl for no-asm.
2785 Enable with: ./config no-asm -DOPENSSL_AES_CONST_TIME
2786 Disable with: ./config no-asm -DOPENSSL_NO_AES_CONST_TIME
2787 At this time this feature is by default disabled.
2788 It will be enabled by default in 3.0.
2789
2790 *Bernd Edlinger*
2791
2792### Changes between 1.1.1e and 1.1.1f [31 Mar 2020]
2793
2794 * Revert the change of EOF detection while reading in libssl to avoid
2795 regressions in applications depending on the current way of reporting
2796 the EOF. As the existing method is not fully accurate the change to
2797 reporting the EOF via SSL_ERROR_SSL is kept on the current development
2798 branch and will be present in the 3.0 release.
2799
66194839 2800 *Tomáš Mráz*
6ffc3127
DMSP
2801
2802 * Revised BN_generate_prime_ex to not avoid factors 3..17863 in p-1
2803 when primes for RSA keys are computed.
2804 Since we previously always generated primes == 2 (mod 3) for RSA keys,
2805 the 2-prime and 3-prime RSA modules were easy to distinguish, since
d7f3a2cc 2806 N = p*q = 1 (mod 3), but N = p*q*r = 2 (mod 3). Therefore, fingerprinting
6ffc3127
DMSP
2807 2-prime vs. 3-prime RSA keys was possible by computing N mod 3.
2808 This avoids possible fingerprinting of newly generated RSA modules.
2809
2810 *Bernd Edlinger*
8658fedd 2811
257e9d03 2812### Changes between 1.1.1d and 1.1.1e [17 Mar 2020]
8658fedd
DMSP
2813
2814 * Properly detect EOF while reading in libssl. Previously if we hit an EOF
2815 while reading in libssl then we would report an error back to the
2816 application (SSL_ERROR_SYSCALL) but errno would be 0. We now add
2817 an error to the stack (which means we instead return SSL_ERROR_SSL) and
2818 therefore give a hint as to what went wrong.
2819
2820 *Matt Caswell*
2821
2822 * Check that ed25519 and ed448 are allowed by the security level. Previously
2823 signature algorithms not using an MD were not being checked that they were
2824 allowed by the security level.
2825
2826 *Kurt Roeckx*
2827
2828 * Fixed SSL_get_servername() behaviour. The behaviour of SSL_get_servername()
2829 was not quite right. The behaviour was not consistent between resumption
2830 and normal handshakes, and also not quite consistent with historical
2831 behaviour. The behaviour in various scenarios has been clarified and
2832 it has been updated to make it match historical behaviour as closely as
2833 possible.
2834
2835 *Matt Caswell*
44652c16 2836
f33ca114
RL
2837 * *[VMS only]* The header files that the VMS compilers include automatically,
2838 `__DECC_INCLUDE_PROLOGUE.H` and `__DECC_INCLUDE_EPILOGUE.H`, use pragmas
2839 that the C++ compiler doesn't understand. This is a shortcoming in the
2840 compiler, but can be worked around with `__cplusplus` guards.
2841
2842 C++ applications that use OpenSSL libraries must be compiled using the
2843 qualifier `/NAMES=(AS_IS,SHORTENED)` to be able to use all the OpenSSL
2844 functions. Otherwise, only functions with symbols of less than 31
2845 characters can be used, as the linker will not be able to successfully
2846 resolve symbols with longer names.
2847
2848 *Richard Levitte*
2849
44652c16
DMSP
2850 * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY.
2851 The presence of this system service is determined at run-time.
2852
2853 *Richard Levitte*
2854
44652c16
DMSP
2855 * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just
2856 the first value.
2857
2858 *Jon Spillett*
2859
257e9d03 2860### Changes between 1.1.1c and 1.1.1d [10 Sep 2019]
44652c16
DMSP
2861
2862 * Fixed a fork protection issue. OpenSSL 1.1.1 introduced a rewritten random
2863 number generator (RNG). This was intended to include protection in the
2864 event of a fork() system call in order to ensure that the parent and child
d7f3a2cc 2865 processes did not share the same RNG state. However, this protection was not
44652c16
DMSP
2866 being used in the default case.
2867
2868 A partial mitigation for this issue is that the output from a high
2869 precision timer is mixed into the RNG state so the likelihood of a parent
2870 and child process sharing state is significantly reduced.
2871
2872 If an application already calls OPENSSL_init_crypto() explicitly using
2873 OPENSSL_INIT_ATFORK then this problem does not occur at all.
d8dc8538 2874 ([CVE-2019-1549])
44652c16
DMSP
2875
2876 *Matthias St. Pierre*
2877
2878 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 2879 used even when parsing explicit parameters, when loading a encoded key
44652c16
DMSP
2880 or calling `EC_GROUP_new_from_ecpkparameters()`/
2881 `EC_GROUP_new_from_ecparameters()`.
2882 This prevents bypass of security hardening and performance gains,
2883 especially for curves with specialized EC_METHODs.
2884 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 2885 encoded, the output is still encoded with explicit parameters, even if
44652c16
DMSP
2886 internally a "named" EC_GROUP is used for computation.
2887
2888 *Nicola Tuveri*
2889
2890 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
2891 this change, EC_GROUP_set_generator would accept order and/or cofactor as
2892 NULL. After this change, only the cofactor parameter can be NULL. It also
2893 does some minimal sanity checks on the passed order.
d8dc8538 2894 ([CVE-2019-1547])
44652c16
DMSP
2895
2896 *Billy Bob Brumley*
2897
2898 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
2899 An attack is simple, if the first CMS_recipientInfo is valid but the
2900 second CMS_recipientInfo is chosen ciphertext. If the second
2901 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
2902 encryption key will be replaced by garbage, and the message cannot be
2903 decoded, but if the RSA decryption fails, the correct encryption key is
2904 used and the recipient will not notice the attack.
2905 As a work around for this potential attack the length of the decrypted
2906 key must be equal to the cipher default key length, in case the
d7f3a2cc 2907 certificate is not given and all recipientInfo are tried out.
44652c16
DMSP
2908 The old behaviour can be re-enabled in the CMS code by setting the
2909 CMS_DEBUG_DECRYPT flag.
d8dc8538 2910 ([CVE-2019-1563])
44652c16
DMSP
2911
2912 *Bernd Edlinger*
2913
2914 * Early start up entropy quality from the DEVRANDOM seed source has been
2915 improved for older Linux systems. The RAND subsystem will wait for
2916 /dev/random to be producing output before seeding from /dev/urandom.
2917 The seeded state is stored for future library initialisations using
2918 a system global shared memory segment. The shared memory identifier
2919 can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to
2920 the desired value. The default identifier is 114.
2921
2922 *Paul Dale*
2923
2924 * Correct the extended master secret constant on EBCDIC systems. Without this
2925 fix TLS connections between an EBCDIC system and a non-EBCDIC system that
2926 negotiate EMS will fail. Unfortunately this also means that TLS connections
2927 between EBCDIC systems with this fix, and EBCDIC systems without this
2928 fix will fail if they negotiate EMS.
2929
2930 *Matt Caswell*
2931
2932 * Use Windows installation paths in the mingw builds
2933
2934 Mingw isn't a POSIX environment per se, which means that Windows
2935 paths should be used for installation.
d8dc8538 2936 ([CVE-2019-1552])
44652c16
DMSP
2937
2938 *Richard Levitte*
2939
2940 * Changed DH_check to accept parameters with order q and 2q subgroups.
2941 With order 2q subgroups the bit 0 of the private key is not secret
2942 but DH_generate_key works around that by clearing bit 0 of the
2943 private key for those. This avoids leaking bit 0 of the private key.
2944
2945 *Bernd Edlinger*
2946
2947 * Significantly reduce secure memory usage by the randomness pools.
2948
2949 *Paul Dale*
2950
2951 * Revert the DEVRANDOM_WAIT feature for Linux systems
2952
2953 The DEVRANDOM_WAIT feature added a select() call to wait for the
2954 /dev/random device to become readable before reading from the
2955 /dev/urandom device.
2956
2957 It turned out that this change had negative side effects on
2958 performance which were not acceptable. After some discussion it
2959 was decided to revert this feature and leave it up to the OS
2960 resp. the platform maintainer to ensure a proper initialization
2961 during early boot time.
2962
2963 *Matthias St. Pierre*
2964
257e9d03 2965### Changes between 1.1.1b and 1.1.1c [28 May 2019]
44652c16
DMSP
2966
2967 * Add build tests for C++. These are generated files that only do one
2968 thing, to include one public OpenSSL head file each. This tests that
2969 the public header files can be usefully included in a C++ application.
2970
2971 This test isn't enabled by default. It can be enabled with the option
2972 'enable-buildtest-c++'.
2973
2974 *Richard Levitte*
2975
2976 * Enable SHA3 pre-hashing for ECDSA and DSA.
2977
2978 *Patrick Steuer*
2979
2980 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
ec2bfb7d
DDO
2981 This changes the size when using the `genpkey` command when no size is given.
2982 It fixes an omission in earlier changes that changed all RSA, DSA and DH
2983 generation commands to use 2048 bits by default.
44652c16
DMSP
2984
2985 *Kurt Roeckx*
2986
2987 * Reorganize the manual pages to consistently have RETURN VALUES,
2988 EXAMPLES, SEE ALSO and HISTORY come in that order, and adjust
2989 util/fix-doc-nits accordingly.
2990
2991 *Paul Yang, Joshua Lock*
2992
2993 * Add the missing accessor EVP_PKEY_get0_engine()
2994
2995 *Matt Caswell*
2996
ec2bfb7d 2997 * Have commands like `s_client` and `s_server` output the signature scheme
44652c16
DMSP
2998 along with other cipher suite parameters when debugging.
2999
3000 *Lorinczy Zsigmond*
3001
3002 * Make OPENSSL_config() error agnostic again.
3003
3004 *Richard Levitte*
3005
3006 * Do the error handling in RSA decryption constant time.
3007
3008 *Bernd Edlinger*
3009
3010 * Prevent over long nonces in ChaCha20-Poly1305.
3011
3012 ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input
3013 for every encryption operation. RFC 7539 specifies that the nonce value
3014 (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length
3015 and front pads the nonce with 0 bytes if it is less than 12
3016 bytes. However it also incorrectly allows a nonce to be set of up to 16
3017 bytes. In this case only the last 12 bytes are significant and any
3018 additional leading bytes are ignored.
3019
3020 It is a requirement of using this cipher that nonce values are
3021 unique. Messages encrypted using a reused nonce value are susceptible to
3022 serious confidentiality and integrity attacks. If an application changes
3023 the default nonce length to be longer than 12 bytes and then makes a
3024 change to the leading bytes of the nonce expecting the new value to be a
3025 new unique nonce then such an application could inadvertently encrypt
3026 messages with a reused nonce.
3027
3028 Additionally the ignored bytes in a long nonce are not covered by the
3029 integrity guarantee of this cipher. Any application that relies on the
3030 integrity of these ignored leading bytes of a long nonce may be further
3031 affected. Any OpenSSL internal use of this cipher, including in SSL/TLS,
3032 is safe because no such use sets such a long nonce value. However user
3033 applications that use this cipher directly and set a non-default nonce
3034 length to be longer than 12 bytes may be vulnerable.
3035
3036 This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk
3037 Greef of Ronomon.
d8dc8538 3038 ([CVE-2019-1543])
44652c16
DMSP
3039
3040 *Matt Caswell*
3041
3042 * Add DEVRANDOM_WAIT feature for Linux systems
3043
3044 On older Linux systems where the getrandom() system call is not available,
3045 OpenSSL normally uses the /dev/urandom device for seeding its CSPRNG.
3046 Contrary to getrandom(), the /dev/urandom device will not block during
3047 early boot when the kernel CSPRNG has not been seeded yet.
3048
3049 To mitigate this known weakness, use select() to wait for /dev/random to
3050 become readable before reading from /dev/urandom.
3051
3052 * Ensure that SM2 only uses SM3 as digest algorithm
3053
3054 *Paul Yang*
3055
257e9d03 3056### Changes between 1.1.1a and 1.1.1b [26 Feb 2019]
651d0aff 3057
5f8e6c50
DMSP
3058 * Change the info callback signals for the start and end of a post-handshake
3059 message exchange in TLSv1.3. In 1.1.1/1.1.1a we used SSL_CB_HANDSHAKE_START
3060 and SSL_CB_HANDSHAKE_DONE. Experience has shown that many applications get
3061 confused by this and assume that a TLSv1.2 renegotiation has started. This
3062 can break KeyUpdate handling. Instead we no longer signal the start and end
3063 of a post handshake message exchange (although the messages themselves are
3064 still signalled). This could break some applications that were expecting
3065 the old signals. However without this KeyUpdate is not usable for many
3066 applications.
651d0aff 3067
5f8e6c50 3068 *Matt Caswell*
651d0aff 3069
257e9d03 3070### Changes between 1.1.1 and 1.1.1a [20 Nov 2018]
651d0aff 3071
5f8e6c50 3072 * Timing vulnerability in DSA signature generation
651d0aff 3073
5f8e6c50
DMSP
3074 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
3075 timing side channel attack. An attacker could use variations in the signing
3076 algorithm to recover the private key.
651d0aff 3077
5f8e6c50 3078 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
d8dc8538 3079 ([CVE-2018-0734])
651d0aff 3080
5f8e6c50 3081 *Paul Dale*
651d0aff 3082
5f8e6c50 3083 * Timing vulnerability in ECDSA signature generation
651d0aff 3084
5f8e6c50
DMSP
3085 The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a
3086 timing side channel attack. An attacker could use variations in the signing
3087 algorithm to recover the private key.
651d0aff 3088
5f8e6c50 3089 This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser.
d8dc8538 3090 ([CVE-2018-0735])
651d0aff 3091
5f8e6c50 3092 *Paul Dale*
651d0aff 3093
5f8e6c50
DMSP
3094 * Fixed the issue that RAND_add()/RAND_seed() silently discards random input
3095 if its length exceeds 4096 bytes. The limit has been raised to a buffer size
3096 of two gigabytes and the error handling improved.
651d0aff 3097
5f8e6c50
DMSP
3098 This issue was reported to OpenSSL by Dr. Falko Strenzke. It has been
3099 categorized as a normal bug, not a security issue, because the DRBG reseeds
3100 automatically and is fully functional even without additional randomness
3101 provided by the application.
3102
257e9d03 3103### Changes between 1.1.0i and 1.1.1 [11 Sep 2018]
5f8e6c50
DMSP
3104
3105 * Add a new ClientHello callback. Provides a callback interface that gives
3106 the application the ability to adjust the nascent SSL object at the
3107 earliest stage of ClientHello processing, immediately after extensions have
3108 been collected but before they have been processed. In particular, this
3109 callback can adjust the supported TLS versions in response to the contents
3110 of the ClientHello
3111
3112 *Benjamin Kaduk*
3113
3114 * Add SM2 base algorithm support.
3115
3116 *Jack Lloyd*
3117
3118 * s390x assembly pack: add (improved) hardware-support for the following
3119 cryptographic primitives: sha3, shake, aes-gcm, aes-ccm, aes-ctr, aes-ofb,
3120 aes-cfb/cfb8, aes-ecb.
3121
3122 *Patrick Steuer*
3123
3124 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
3125 parameter is no longer accepted, as it leads to a corrupt table. NULL
3126 pem_str is reserved for alias entries only.
3127
3128 *Richard Levitte*
3129
3130 * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder
3131 step for prime curves. The new implementation is based on formulae from
3132 differential addition-and-doubling in homogeneous projective coordinates
3133 from Izu-Takagi "A fast parallel elliptic curve multiplication resistant
3134 against side channel attacks" and Brier-Joye "Weierstrass Elliptic Curves
3135 and Side-Channel Attacks" Eq. (8) for y-coordinate recovery, modified
3136 to work in projective coordinates.
3137
3138 *Billy Bob Brumley, Nicola Tuveri*
3139
3140 * Change generating and checking of primes so that the error rate of not
3141 being prime depends on the intended use based on the size of the input.
3142 For larger primes this will result in more rounds of Miller-Rabin.
3143 The maximal error rate for primes with more than 1080 bits is lowered
3144 to 2^-128.
3145
3146 *Kurt Roeckx, Annie Yousar*
3147
3148 * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
3149
3150 *Kurt Roeckx*
3151
3152 * The 'tsget' script is renamed to 'tsget.pl', to avoid confusion when
3153 moving between systems, and to avoid confusion when a Windows build is
3154 done with mingw vs with MSVC. For POSIX installs, there's still a
3155 symlink or copy named 'tsget' to avoid that confusion as well.
3156
3157 *Richard Levitte*
3158
3159 * Revert blinding in ECDSA sign and instead make problematic addition
3160 length-invariant. Switch even to fixed-length Montgomery multiplication.
3161
3162 *Andy Polyakov*
3163
3164 * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder
3165 step for binary curves. The new implementation is based on formulae from
3166 differential addition-and-doubling in mixed Lopez-Dahab projective
3167 coordinates, modified to independently blind the operands.
3168
3169 *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri*
3170
3171 * Add a scaffold to optionally enhance the Montgomery ladder implementation
3172 for `ec_scalar_mul_ladder` (formerly `ec_mul_consttime`) allowing
3173 EC_METHODs to implement their own specialized "ladder step", to take
3174 advantage of more favorable coordinate systems or more efficient
3175 differential addition-and-doubling algorithms.
3176
3177 *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri*
3178
3179 * Modified the random device based seed sources to keep the relevant
3180 file descriptors open rather than reopening them on each access.
3181 This allows such sources to operate in a chroot() jail without
3182 the associated device nodes being available. This behaviour can be
3183 controlled using RAND_keep_random_devices_open().
3184
3185 *Paul Dale*
3186
3187 * Numerous side-channel attack mitigations have been applied. This may have
3188 performance impacts for some algorithms for the benefit of improved
3189 security. Specific changes are noted in this change log by their respective
3190 authors.
3191
3192 *Matt Caswell*
3193
3194 * AIX shared library support overhaul. Switch to AIX "natural" way of
3195 handling shared libraries, which means collecting shared objects of
3196 different versions and bitnesses in one common archive. This allows to
3197 mitigate conflict between 1.0 and 1.1 side-by-side installations. It
3198 doesn't affect the way 3rd party applications are linked, only how
3199 multi-version installation is managed.
3200
3201 *Andy Polyakov*
3202
3203 * Make ec_group_do_inverse_ord() more robust and available to other
3204 EC cryptosystems, so that irrespective of BN_FLG_CONSTTIME, SCA
3205 mitigations are applied to the fallback BN_mod_inverse().
3206 When using this function rather than BN_mod_inverse() directly, new
3207 EC cryptosystem implementations are then safer-by-default.
3208
3209 *Billy Bob Brumley*
3210
3211 * Add coordinate blinding for EC_POINT and implement projective
3212 coordinate blinding for generic prime curves as a countermeasure to
3213 chosen point SCA attacks.
3214
3215 *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley*
3216
3217 * Add blinding to ECDSA and DSA signatures to protect against side channel
3218 attacks discovered by Keegan Ryan (NCC Group).
3219
3220 *Matt Caswell*
3221
ec2bfb7d 3222 * Enforce checking in the `pkeyutl` command to ensure that the input
5f8e6c50
DMSP
3223 length does not exceed the maximum supported digest length when performing
3224 a sign, verify or verifyrecover operation.
3225
3226 *Matt Caswell*
3227
3228 * SSL_MODE_AUTO_RETRY is enabled by default. Applications that use blocking
3229 I/O in combination with something like select() or poll() will hang. This
3230 can be turned off again using SSL_CTX_clear_mode().
3231 Many applications do not properly handle non-application data records, and
3232 TLS 1.3 sends more of such records. Setting SSL_MODE_AUTO_RETRY works
3233 around the problems in those applications, but can also break some.
3234 It's recommended to read the manpages about SSL_read(), SSL_write(),
3235 SSL_get_error(), SSL_shutdown(), SSL_CTX_set_mode() and
3236 SSL_CTX_set_read_ahead() again.
3237
3238 *Kurt Roeckx*
3239
3240 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
3241 now allow empty (zero character) pass phrases.
3242
3243 *Richard Levitte*
3244
3245 * Apply blinding to binary field modular inversion and remove patent
3246 pending (OPENSSL_SUN_GF2M_DIV) BN_GF2m_mod_div implementation.
3247
3248 *Billy Bob Brumley*
3249
3250 * Deprecate ec2_mult.c and unify scalar multiplication code paths for
3251 binary and prime elliptic curves.
3252
3253 *Billy Bob Brumley*
3254
3255 * Remove ECDSA nonce padding: EC_POINT_mul is now responsible for
3256 constant time fixed point multiplication.
3257
3258 *Billy Bob Brumley*
3259
3260 * Revise elliptic curve scalar multiplication with timing attack
3261 defenses: ec_wNAF_mul redirects to a constant time implementation
3262 when computing fixed point and variable point multiplication (which
3263 in OpenSSL are mostly used with secret scalars in keygen, sign,
3264 ECDH derive operations).
3265 *Billy Bob Brumley, Nicola Tuveri, Cesar Pereida García,
3266 Sohaib ul Hassan*
3267
3268 * Updated CONTRIBUTING
3269
3270 *Rich Salz*
3271
3272 * Updated DRBG / RAND to request nonce and additional low entropy
3273 randomness from the system.
3274
3275 *Matthias St. Pierre*
3276
3277 * Updated 'openssl rehash' to use OpenSSL consistent default.
3278
3279 *Richard Levitte*
3280
3281 * Moved the load of the ssl_conf module to libcrypto, which helps
3282 loading engines that libssl uses before libssl is initialised.
3283
3284 *Matt Caswell*
3285
3286 * Added EVP_PKEY_sign() and EVP_PKEY_verify() for EdDSA
3287
3288 *Matt Caswell*
3289
3290 * Fixed X509_NAME_ENTRY_set to get multi-valued RDNs right in all cases.
3291
3292 *Ingo Schwarze, Rich Salz*
3293
3294 * Added output of accepting IP address and port for 'openssl s_server'
3295
3296 *Richard Levitte*
3297
3298 * Added a new API for TLSv1.3 ciphersuites:
3299 SSL_CTX_set_ciphersuites()
3300 SSL_set_ciphersuites()
3301
3302 *Matt Caswell*
3303
3304 * Memory allocation failures consistently add an error to the error
3305 stack.
3306
3307 *Rich Salz*
3308
3309 * Don't use OPENSSL_ENGINES and OPENSSL_CONF environment values
3310 in libcrypto when run as setuid/setgid.
3311
3312 *Bernd Edlinger*
3313
3314 * Load any config file by default when libssl is used.
3315
3316 *Matt Caswell*
3317
3318 * Added new public header file <openssl/rand_drbg.h> and documentation
3319 for the RAND_DRBG API. See manual page RAND_DRBG(7) for an overview.
3320
3321 *Matthias St. Pierre*
3322
3323 * QNX support removed (cannot find contributors to get their approval
3324 for the license change).
3325
3326 *Rich Salz*
3327
3328 * TLSv1.3 replay protection for early data has been implemented. See the
3329 SSL_read_early_data() man page for further details.
3330
3331 *Matt Caswell*
3332
3333 * Separated TLSv1.3 ciphersuite configuration out from TLSv1.2 ciphersuite
3334 configuration. TLSv1.3 ciphersuites are not compatible with TLSv1.2 and
3335 below. Similarly TLSv1.2 ciphersuites are not compatible with TLSv1.3.
3336 In order to avoid issues where legacy TLSv1.2 ciphersuite configuration
3337 would otherwise inadvertently disable all TLSv1.3 ciphersuites the
3338 configuration has been separated out. See the ciphers man page or the
3339 SSL_CTX_set_ciphersuites() man page for more information.
3340
3341 *Matt Caswell*
3342
3343 * On POSIX (BSD, Linux, ...) systems the ocsp(1) command running
3344 in responder mode now supports the new "-multi" option, which
3345 spawns the specified number of child processes to handle OCSP
3346 requests. The "-timeout" option now also limits the OCSP
3347 responder's patience to wait to receive the full client request
3348 on a newly accepted connection. Child processes are respawned
3349 as needed, and the CA index file is automatically reloaded
3350 when changed. This makes it possible to run the "ocsp" responder
3351 as a long-running service, making the OpenSSL CA somewhat more
3352 feature-complete. In this mode, most diagnostic messages logged
3353 after entering the event loop are logged via syslog(3) rather than
3354 written to stderr.
3355
3356 *Viktor Dukhovni*
3357
3358 * Added support for X448 and Ed448. Heavily based on original work by
3359 Mike Hamburg.
3360
3361 *Matt Caswell*
3362
3363 * Extend OSSL_STORE with capabilities to search and to narrow the set of
3364 objects loaded. This adds the functions OSSL_STORE_expect() and
3365 OSSL_STORE_find() as well as needed tools to construct searches and
3366 get the search data out of them.
3367
3368 *Richard Levitte*
3369
3370 * Support for TLSv1.3 added. Note that users upgrading from an earlier
3371 version of OpenSSL should review their configuration settings to ensure
3372 that they are still appropriate for TLSv1.3. For further information see:
257e9d03 3373 <https://wiki.openssl.org/index.php/TLS1.3>
5f8e6c50
DMSP
3374
3375 *Matt Caswell*
3376
3377 * Grand redesign of the OpenSSL random generator
3378
3379 The default RAND method now utilizes an AES-CTR DRBG according to
3380 NIST standard SP 800-90Ar1. The new random generator is essentially
3381 a port of the default random generator from the OpenSSL FIPS 2.0
3382 object module. It is a hybrid deterministic random bit generator
3383 using an AES-CTR bit stream and which seeds and reseeds itself
3384 automatically using trusted system entropy sources.
3385
3386 Some of its new features are:
3387 - Support for multiple DRBG instances with seed chaining.
3388 - The default RAND method makes use of a DRBG.
3389 - There is a public and private DRBG instance.
3390 - The DRBG instances are fork-safe.
3391 - Keep all global DRBG instances on the secure heap if it is enabled.
3392 - The public and private DRBG instance are per thread for lock free
3393 operation
3394
3395 *Paul Dale, Benjamin Kaduk, Kurt Roeckx, Rich Salz, Matthias St. Pierre*
3396
3397 * Changed Configure so it only says what it does and doesn't dump
3398 so much data. Instead, ./configdata.pm should be used as a script
3399 to display all sorts of configuration data.
3400
3401 *Richard Levitte*
3402
3403 * Added processing of "make variables" to Configure.
3404
3405 *Richard Levitte*
3406
3407 * Added SHA512/224 and SHA512/256 algorithm support.
3408
3409 *Paul Dale*
3410
3411 * The last traces of Netware support, first removed in 1.1.0, have
3412 now been removed.
3413
3414 *Rich Salz*
3415
3416 * Get rid of Makefile.shared, and in the process, make the processing
3417 of certain files (rc.obj, or the .def/.map/.opt files produced from
3418 the ordinal files) more visible and hopefully easier to trace and
3419 debug (or make silent).
3420
3421 *Richard Levitte*
3422
3423 * Make it possible to have environment variable assignments as
3424 arguments to config / Configure.
3425
3426 *Richard Levitte*
3427
3428 * Add multi-prime RSA (RFC 8017) support.
3429
3430 *Paul Yang*
3431
3432 * Add SM3 implemented according to GB/T 32905-2016
1dc1ea18
DDO
3433 *Jack Lloyd <jack.lloyd@ribose.com>,*
3434 *Ronald Tse <ronald.tse@ribose.com>,*
3435 *Erick Borsboom <erick.borsboom@ribose.com>*
5f8e6c50
DMSP
3436
3437 * Add 'Maximum Fragment Length' TLS extension negotiation and support
3438 as documented in RFC6066.
3439 Based on a patch from Tomasz Moń
3440
3441 *Filipe Raimundo da Silva*
3442
3443 * Add SM4 implemented according to GB/T 32907-2016.
1dc1ea18
DDO
3444 *Jack Lloyd <jack.lloyd@ribose.com>,*
3445 *Ronald Tse <ronald.tse@ribose.com>,*
3446 *Erick Borsboom <erick.borsboom@ribose.com>*
5f8e6c50
DMSP
3447
3448 * Reimplement -newreq-nodes and ERR_error_string_n; the
3449 original author does not agree with the license change.
3450
3451 *Rich Salz*
3452
3453 * Add ARIA AEAD TLS support.
3454
3455 *Jon Spillett*
3456
3457 * Some macro definitions to support VS6 have been removed. Visual
3458 Studio 6 has not worked since 1.1.0
3459
3460 *Rich Salz*
3461
3462 * Add ERR_clear_last_mark(), to allow callers to clear the last mark
3463 without clearing the errors.
3464
3465 *Richard Levitte*
3466
3467 * Add "atfork" functions. If building on a system that without
3468 pthreads, see doc/man3/OPENSSL_fork_prepare.pod for application
3469 requirements. The RAND facility now uses/requires this.
3470
3471 *Rich Salz*
3472
3473 * Add SHA3.
3474
3475 *Andy Polyakov*
3476
3477 * The UI API becomes a permanent and integral part of libcrypto, i.e.
3478 not possible to disable entirely. However, it's still possible to
3479 disable the console reading UI method, UI_OpenSSL() (use UI_null()
3480 as a fallback).
3481
3482 To disable, configure with 'no-ui-console'. 'no-ui' is still
3483 possible to use as an alias. Check at compile time with the
3484 macro OPENSSL_NO_UI_CONSOLE. The macro OPENSSL_NO_UI is still
3485 possible to check and is an alias for OPENSSL_NO_UI_CONSOLE.
3486
3487 *Richard Levitte*
3488
3489 * Add a STORE module, which implements a uniform and URI based reader of
3490 stores that can contain keys, certificates, CRLs and numerous other
3491 objects. The main API is loosely based on a few stdio functions,
3492 and includes OSSL_STORE_open, OSSL_STORE_load, OSSL_STORE_eof,
3493 OSSL_STORE_error and OSSL_STORE_close.
3494 The implementation uses backends called "loaders" to implement arbitrary
3495 URI schemes. There is one built in "loader" for the 'file' scheme.
3496
3497 *Richard Levitte*
3498
3499 * Add devcrypto engine. This has been implemented against cryptodev-linux,
3500 then adjusted to work on FreeBSD 8.4 as well.
3501 Enable by configuring with 'enable-devcryptoeng'. This is done by default
3502 on BSD implementations, as cryptodev.h is assumed to exist on all of them.
3503
3504 *Richard Levitte*
3505
3506 * Module names can prefixed with OSSL_ or OPENSSL_. This affects
3507 util/mkerr.pl, which is adapted to allow those prefixes, leading to
3508 error code calls like this:
3509
3510 OSSL_FOOerr(OSSL_FOO_F_SOMETHING, OSSL_FOO_R_WHATEVER);
3511
3512 With this change, we claim the namespaces OSSL and OPENSSL in a manner
3513 that can be encoded in C. For the foreseeable future, this will only
3514 affect new modules.
3515
3516 *Richard Levitte and Tim Hudson*
3517
3518 * Removed BSD cryptodev engine.
3519
3520 *Rich Salz*
3521
3522 * Add a build target 'build_all_generated', to build all generated files
3523 and only that. This can be used to prepare everything that requires
3524 things like perl for a system that lacks perl and then move everything
3525 to that system and do the rest of the build there.
3526
3527 *Richard Levitte*
3528
3529 * In the UI interface, make it possible to duplicate the user data. This
3530 can be used by engines that need to retain the data for a longer time
3531 than just the call where this user data is passed.
3532
3533 *Richard Levitte*
3534
3535 * Ignore the '-named_curve auto' value for compatibility of applications
3536 with OpenSSL 1.0.2.
3537
66194839 3538 *Tomáš Mráz <tmraz@fedoraproject.org>*
5f8e6c50
DMSP
3539
3540 * Fragmented SSL/TLS alerts are no longer accepted. An alert message is 2
3541 bytes long. In theory it is permissible in SSLv3 - TLSv1.2 to fragment such
3542 alerts across multiple records (some of which could be empty). In practice
3543 it make no sense to send an empty alert record, or to fragment one. TLSv1.3
44652c16 3544 prohibits this altogether and other libraries (BoringSSL, NSS) do not
5f8e6c50 3545 support this at all. Supporting it adds significant complexity to the
44652c16 3546 record layer, and its removal is unlikely to cause interoperability
5f8e6c50
DMSP
3547 issues.
3548
3549 *Matt Caswell*
3550
3551 * Add the ASN.1 types INT32, UINT32, INT64, UINT64 and variants prefixed
3552 with Z. These are meant to replace LONG and ZLONG and to be size safe.
3553 The use of LONG and ZLONG is discouraged and scheduled for deprecation
3554 in OpenSSL 1.2.0.
3555
3556 *Richard Levitte*
3557
3558 * Add the 'z' and 'j' modifiers to BIO_printf() et al formatting string,
3559 'z' is to be used for [s]size_t, and 'j' - with [u]int64_t.
3560
3561 *Richard Levitte, Andy Polyakov*
3562
3563 * Add EC_KEY_get0_engine(), which does for EC_KEY what RSA_get0_engine()
3564 does for RSA, etc.
3565
3566 *Richard Levitte*
3567
3568 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
3569 platform rather than 'mingw'.
3570
3571 *Richard Levitte*
3572
3573 * The functions X509_STORE_add_cert and X509_STORE_add_crl return
3574 success if they are asked to add an object which already exists
3575 in the store. This change cascades to other functions which load
3576 certificates and CRLs.
3577
3578 *Paul Dale*
3579
3580 * x86_64 assembly pack: annotate code with DWARF CFI directives to
3581 facilitate stack unwinding even from assembly subroutines.
3582
3583 *Andy Polyakov*
3584
3585 * Remove VAX C specific definitions of OPENSSL_EXPORT, OPENSSL_EXTERN.
3586 Also remove OPENSSL_GLOBAL entirely, as it became a no-op.
3587
3588 *Richard Levitte*
3589
3590 * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c.
3591 VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1,
3592 which is the minimum version we support.
3593
3594 *Richard Levitte*
3595
3596 * Certificate time validation (X509_cmp_time) enforces stricter
3597 compliance with RFC 5280. Fractional seconds and timezone offsets
3598 are no longer allowed.
3599
3600 *Emilia Käsper*
3601
3602 * Add support for ARIA
3603
3604 *Paul Dale*
3605
3606 * s_client will now send the Server Name Indication (SNI) extension by
3607 default unless the new "-noservername" option is used. The server name is
3608 based on the host provided to the "-connect" option unless overridden by
3609 using "-servername".
3610
3611 *Matt Caswell*
3612
3613 * Add support for SipHash
3614
3615 *Todd Short*
3616
3617 * OpenSSL now fails if it receives an unrecognised record type in TLS1.0
3618 or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to
3619 prevent issues where no progress is being made and the peer continually
3620 sends unrecognised record types, using up resources processing them.
3621
3622 *Matt Caswell*
3623
3624 * 'openssl passwd' can now produce SHA256 and SHA512 based output,
3625 using the algorithm defined in
257e9d03 3626 <https://www.akkadia.org/drepper/SHA-crypt.txt>
5f8e6c50
DMSP
3627
3628 *Richard Levitte*
3629
3630 * Heartbeat support has been removed; the ABI is changed for now.
3631
3632 *Richard Levitte, Rich Salz*
3633
3634 * Support for SSL_OP_NO_ENCRYPT_THEN_MAC in SSL_CONF_cmd.
3635
3636 *Emilia Käsper*
3637
3638 * The RSA "null" method, which was partially supported to avoid patent
3639 issues, has been replaced to always returns NULL.
3640
3641 *Rich Salz*
3642
44652c16
DMSP
3643OpenSSL 1.1.0
3644-------------
5f8e6c50 3645
257e9d03 3646### Changes between 1.1.0k and 1.1.0l [10 Sep 2019]
5f8e6c50 3647
44652c16 3648 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 3649 used even when parsing explicit parameters, when loading a encoded key
44652c16
DMSP
3650 or calling `EC_GROUP_new_from_ecpkparameters()`/
3651 `EC_GROUP_new_from_ecparameters()`.
3652 This prevents bypass of security hardening and performance gains,
3653 especially for curves with specialized EC_METHODs.
3654 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 3655 encoded, the output is still encoded with explicit parameters, even if
44652c16 3656 internally a "named" EC_GROUP is used for computation.
5f8e6c50 3657
44652c16 3658 *Nicola Tuveri*
5f8e6c50 3659
44652c16
DMSP
3660 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
3661 this change, EC_GROUP_set_generator would accept order and/or cofactor as
3662 NULL. After this change, only the cofactor parameter can be NULL. It also
3663 does some minimal sanity checks on the passed order.
d8dc8538 3664 ([CVE-2019-1547])
5f8e6c50 3665
44652c16 3666 *Billy Bob Brumley*
5f8e6c50 3667
44652c16
DMSP
3668 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
3669 An attack is simple, if the first CMS_recipientInfo is valid but the
3670 second CMS_recipientInfo is chosen ciphertext. If the second
3671 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
3672 encryption key will be replaced by garbage, and the message cannot be
3673 decoded, but if the RSA decryption fails, the correct encryption key is
3674 used and the recipient will not notice the attack.
3675 As a work around for this potential attack the length of the decrypted
3676 key must be equal to the cipher default key length, in case the
d7f3a2cc 3677 certificate is not given and all recipientInfo are tried out.
44652c16
DMSP
3678 The old behaviour can be re-enabled in the CMS code by setting the
3679 CMS_DEBUG_DECRYPT flag.
d8dc8538 3680 ([CVE-2019-1563])
44652c16
DMSP
3681
3682 *Bernd Edlinger*
3683
3684 * Use Windows installation paths in the mingw builds
3685
3686 Mingw isn't a POSIX environment per se, which means that Windows
3687 paths should be used for installation.
d8dc8538 3688 ([CVE-2019-1552])
44652c16
DMSP
3689
3690 *Richard Levitte*
3691
257e9d03 3692### Changes between 1.1.0j and 1.1.0k [28 May 2019]
44652c16
DMSP
3693
3694 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
ec2bfb7d
DDO
3695 This changes the size when using the `genpkey` command when no size is given.
3696 It fixes an omission in earlier changes that changed all RSA, DSA and DH
3697 generation commands to use 2048 bits by default.
44652c16
DMSP
3698
3699 *Kurt Roeckx*
3700
3701 * Prevent over long nonces in ChaCha20-Poly1305.
3702
3703 ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input
3704 for every encryption operation. RFC 7539 specifies that the nonce value
3705 (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length
3706 and front pads the nonce with 0 bytes if it is less than 12
3707 bytes. However it also incorrectly allows a nonce to be set of up to 16
3708 bytes. In this case only the last 12 bytes are significant and any
3709 additional leading bytes are ignored.
3710
3711 It is a requirement of using this cipher that nonce values are
3712 unique. Messages encrypted using a reused nonce value are susceptible to
3713 serious confidentiality and integrity attacks. If an application changes
3714 the default nonce length to be longer than 12 bytes and then makes a
3715 change to the leading bytes of the nonce expecting the new value to be a
3716 new unique nonce then such an application could inadvertently encrypt
3717 messages with a reused nonce.
3718
3719 Additionally the ignored bytes in a long nonce are not covered by the
3720 integrity guarantee of this cipher. Any application that relies on the
3721 integrity of these ignored leading bytes of a long nonce may be further
3722 affected. Any OpenSSL internal use of this cipher, including in SSL/TLS,
3723 is safe because no such use sets such a long nonce value. However user
3724 applications that use this cipher directly and set a non-default nonce
3725 length to be longer than 12 bytes may be vulnerable.
3726
3727 This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk
3728 Greef of Ronomon.
d8dc8538 3729 ([CVE-2019-1543])
44652c16
DMSP
3730
3731 *Matt Caswell*
3732
3733 * Added SCA hardening for modular field inversion in EC_GROUP through
3734 a new dedicated field_inv() pointer in EC_METHOD.
3735 This also addresses a leakage affecting conversions from projective
3736 to affine coordinates.
3737
3738 *Billy Bob Brumley, Nicola Tuveri*
3739
3740 * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a
3741 re-used X509_PUBKEY object if the second PUBKEY is malformed.
3742
3743 *Bernd Edlinger*
3744
3745 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
3746
3747 *Richard Levitte*
3748
3749 * Remove the 'dist' target and add a tarball building script. The
3750 'dist' target has fallen out of use, and it shouldn't be
3751 necessary to configure just to create a source distribution.
3752
3753 *Richard Levitte*
3754
257e9d03 3755### Changes between 1.1.0i and 1.1.0j [20 Nov 2018]
44652c16
DMSP
3756
3757 * Timing vulnerability in DSA signature generation
3758
3759 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
3760 timing side channel attack. An attacker could use variations in the signing
3761 algorithm to recover the private key.
3762
3763 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
d8dc8538 3764 ([CVE-2018-0734])
44652c16
DMSP
3765
3766 *Paul Dale*
3767
3768 * Timing vulnerability in ECDSA signature generation
3769
3770 The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a
3771 timing side channel attack. An attacker could use variations in the signing
3772 algorithm to recover the private key.
3773
3774 This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser.
d8dc8538 3775 ([CVE-2018-0735])
44652c16
DMSP
3776
3777 *Paul Dale*
3778
3779 * Add coordinate blinding for EC_POINT and implement projective
3780 coordinate blinding for generic prime curves as a countermeasure to
3781 chosen point SCA attacks.
3782
3783 *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley*
3784
257e9d03 3785### Changes between 1.1.0h and 1.1.0i [14 Aug 2018]
44652c16
DMSP
3786
3787 * Client DoS due to large DH parameter
3788
3789 During key agreement in a TLS handshake using a DH(E) based ciphersuite a
3790 malicious server can send a very large prime value to the client. This will
3791 cause the client to spend an unreasonably long period of time generating a
3792 key for this prime resulting in a hang until the client has finished. This
3793 could be exploited in a Denial Of Service attack.
3794
3795 This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken
d8dc8538 3796 ([CVE-2018-0732])
44652c16
DMSP
3797
3798 *Guido Vranken*
3799
3800 * Cache timing vulnerability in RSA Key Generation
3801
3802 The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to
3803 a cache timing side channel attack. An attacker with sufficient access to
3804 mount cache timing attacks during the RSA key generation process could
3805 recover the private key.
5f8e6c50
DMSP
3806
3807 This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera
3808 Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia.
d8dc8538 3809 ([CVE-2018-0737])
5f8e6c50
DMSP
3810
3811 *Billy Brumley*
3812
3813 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
3814 parameter is no longer accepted, as it leads to a corrupt table. NULL
3815 pem_str is reserved for alias entries only.
3816
3817 *Richard Levitte*
3818
3819 * Revert blinding in ECDSA sign and instead make problematic addition
3820 length-invariant. Switch even to fixed-length Montgomery multiplication.
3821
3822 *Andy Polyakov*
3823
3824 * Change generating and checking of primes so that the error rate of not
3825 being prime depends on the intended use based on the size of the input.
3826 For larger primes this will result in more rounds of Miller-Rabin.
3827 The maximal error rate for primes with more than 1080 bits is lowered
3828 to 2^-128.
3829
3830 *Kurt Roeckx, Annie Yousar*
3831
3832 * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
3833
3834 *Kurt Roeckx*
3835
3836 * Add blinding to ECDSA and DSA signatures to protect against side channel
3837 attacks discovered by Keegan Ryan (NCC Group).
3838
3839 *Matt Caswell*
3840
3841 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
3842 now allow empty (zero character) pass phrases.
3843
3844 *Richard Levitte*
3845
3846 * Certificate time validation (X509_cmp_time) enforces stricter
3847 compliance with RFC 5280. Fractional seconds and timezone offsets
3848 are no longer allowed.
3849
3850 *Emilia Käsper*
3851
3852 * Fixed a text canonicalisation bug in CMS
3853
3854 Where a CMS detached signature is used with text content the text goes
3855 through a canonicalisation process first prior to signing or verifying a
3856 signature. This process strips trailing space at the end of lines, converts
3857 line terminators to CRLF and removes additional trailing line terminators
3858 at the end of a file. A bug in the canonicalisation process meant that
3859 some characters, such as form-feed, were incorrectly treated as whitespace
3860 and removed. This is contrary to the specification (RFC5485). This fix
3861 could mean that detached text data signed with an earlier version of
3862 OpenSSL 1.1.0 may fail to verify using the fixed version, or text data
3863 signed with a fixed OpenSSL may fail to verify with an earlier version of
3864 OpenSSL 1.1.0. A workaround is to only verify the canonicalised text data
3865 and use the "-binary" flag (for the "cms" command line application) or set
3866 the SMIME_BINARY/PKCS7_BINARY/CMS_BINARY flags (if using CMS_verify()).
3867
3868 *Matt Caswell*
3869
257e9d03 3870### Changes between 1.1.0g and 1.1.0h [27 Mar 2018]
5f8e6c50
DMSP
3871
3872 * Constructed ASN.1 types with a recursive definition could exceed the stack
3873
3874 Constructed ASN.1 types with a recursive definition (such as can be found
3875 in PKCS7) could eventually exceed the stack given malicious input with
3876 excessive recursion. This could result in a Denial Of Service attack. There
3877 are no such structures used within SSL/TLS that come from untrusted sources
3878 so this is considered safe.
3879
3880 This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz
3881 project.
d8dc8538 3882 ([CVE-2018-0739])
5f8e6c50
DMSP
3883
3884 *Matt Caswell*
3885
3886 * Incorrect CRYPTO_memcmp on HP-UX PA-RISC
3887
3888 Because of an implementation bug the PA-RISC CRYPTO_memcmp function is
3889 effectively reduced to only comparing the least significant bit of each
3890 byte. This allows an attacker to forge messages that would be considered as
3891 authenticated in an amount of tries lower than that guaranteed by the
3892 security claims of the scheme. The module can only be compiled by the
3893 HP-UX assembler, so that only HP-UX PA-RISC targets are affected.
3894
3895 This issue was reported to OpenSSL on 2nd March 2018 by Peter Waltenberg
3896 (IBM).
d8dc8538 3897 ([CVE-2018-0733])
5f8e6c50
DMSP
3898
3899 *Andy Polyakov*
3900
3901 * Add a build target 'build_all_generated', to build all generated files
3902 and only that. This can be used to prepare everything that requires
3903 things like perl for a system that lacks perl and then move everything
3904 to that system and do the rest of the build there.
3905
3906 *Richard Levitte*
3907
3908 * Backport SSL_OP_NO_RENGOTIATION
3909
3910 OpenSSL 1.0.2 and below had the ability to disable renegotiation using the
3911 (undocumented) SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS flag. Due to the opacity
d7f3a2cc 3912 changes this is no longer possible in 1.1.0. Therefore, the new
5f8e6c50
DMSP
3913 SSL_OP_NO_RENEGOTIATION option from 1.1.1-dev has been backported to
3914 1.1.0 to provide equivalent functionality.
3915
3916 Note that if an application built against 1.1.0h headers (or above) is run
3917 using an older version of 1.1.0 (prior to 1.1.0h) then the option will be
3918 accepted but nothing will happen, i.e. renegotiation will not be prevented.
3919
3920 *Matt Caswell*
3921
3922 * Removed the OS390-Unix config target. It relied on a script that doesn't
3923 exist.
3924
3925 *Rich Salz*
3926
3927 * rsaz_1024_mul_avx2 overflow bug on x86_64
3928
3929 There is an overflow bug in the AVX2 Montgomery multiplication procedure
3930 used in exponentiation with 1024-bit moduli. No EC algorithms are affected.
3931 Analysis suggests that attacks against RSA and DSA as a result of this
3932 defect would be very difficult to perform and are not believed likely.
3933 Attacks against DH1024 are considered just feasible, because most of the
3934 work necessary to deduce information about a private key may be performed
3935 offline. The amount of resources required for such an attack would be
3936 significant. However, for an attack on TLS to be meaningful, the server
3937 would have to share the DH1024 private key among multiple clients, which is
3938 no longer an option since CVE-2016-0701.
3939
3940 This only affects processors that support the AVX2 but not ADX extensions
3941 like Intel Haswell (4th generation).
3942
3943 This issue was reported to OpenSSL by David Benjamin (Google). The issue
3944 was originally found via the OSS-Fuzz project.
d8dc8538 3945 ([CVE-2017-3738])
5f8e6c50
DMSP
3946
3947 *Andy Polyakov*
3948
257e9d03 3949### Changes between 1.1.0f and 1.1.0g [2 Nov 2017]
5f8e6c50
DMSP
3950
3951 * bn_sqrx8x_internal carry bug on x86_64
3952
3953 There is a carry propagating bug in the x86_64 Montgomery squaring
3954 procedure. No EC algorithms are affected. Analysis suggests that attacks
3955 against RSA and DSA as a result of this defect would be very difficult to
3956 perform and are not believed likely. Attacks against DH are considered just
3957 feasible (although very difficult) because most of the work necessary to
3958 deduce information about a private key may be performed offline. The amount
3959 of resources required for such an attack would be very significant and
3960 likely only accessible to a limited number of attackers. An attacker would
3961 additionally need online access to an unpatched system using the target
3962 private key in a scenario with persistent DH parameters and a private
3963 key that is shared between multiple clients.
3964
3965 This only affects processors that support the BMI1, BMI2 and ADX extensions
3966 like Intel Broadwell (5th generation) and later or AMD Ryzen.
3967
3968 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 3969 ([CVE-2017-3736])
5f8e6c50
DMSP
3970
3971 *Andy Polyakov*
3972
3973 * Malformed X.509 IPAddressFamily could cause OOB read
3974
3975 If an X.509 certificate has a malformed IPAddressFamily extension,
3976 OpenSSL could do a one-byte buffer overread. The most likely result
3977 would be an erroneous display of the certificate in text format.
3978
3979 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 3980 ([CVE-2017-3735])
5f8e6c50
DMSP
3981
3982 *Rich Salz*
3983
257e9d03 3984### Changes between 1.1.0e and 1.1.0f [25 May 2017]
5f8e6c50
DMSP
3985
3986 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
3987 platform rather than 'mingw'.
3988
3989 *Richard Levitte*
3990
3991 * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c.
3992 VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1,
3993 which is the minimum version we support.
3994
3995 *Richard Levitte*
3996
257e9d03 3997### Changes between 1.1.0d and 1.1.0e [16 Feb 2017]
5f8e6c50
DMSP
3998
3999 * Encrypt-Then-Mac renegotiation crash
4000
4001 During a renegotiation handshake if the Encrypt-Then-Mac extension is
4002 negotiated where it was not in the original handshake (or vice-versa) then
d7f3a2cc 4003 this can cause OpenSSL to crash (dependent on ciphersuite). Both clients
5f8e6c50
DMSP
4004 and servers are affected.
4005
4006 This issue was reported to OpenSSL by Joe Orton (Red Hat).
d8dc8538 4007 ([CVE-2017-3733])
5f8e6c50
DMSP
4008
4009 *Matt Caswell*
4010
257e9d03 4011### Changes between 1.1.0c and 1.1.0d [26 Jan 2017]
5f8e6c50
DMSP
4012
4013 * Truncated packet could crash via OOB read
4014
4015 If one side of an SSL/TLS path is running on a 32-bit host and a specific
4016 cipher is being used, then a truncated packet can cause that host to
4017 perform an out-of-bounds read, usually resulting in a crash.
4018
4019 This issue was reported to OpenSSL by Robert Święcki of Google.
d8dc8538 4020 ([CVE-2017-3731])
5f8e6c50
DMSP
4021
4022 *Andy Polyakov*
4023
4024 * Bad (EC)DHE parameters cause a client crash
4025
4026 If a malicious server supplies bad parameters for a DHE or ECDHE key
4027 exchange then this can result in the client attempting to dereference a
4028 NULL pointer leading to a client crash. This could be exploited in a Denial
4029 of Service attack.
4030
4031 This issue was reported to OpenSSL by Guido Vranken.
d8dc8538 4032 ([CVE-2017-3730])
5f8e6c50
DMSP
4033
4034 *Matt Caswell*
4035
4036 * BN_mod_exp may produce incorrect results on x86_64
4037
4038 There is a carry propagating bug in the x86_64 Montgomery squaring
4039 procedure. No EC algorithms are affected. Analysis suggests that attacks
4040 against RSA and DSA as a result of this defect would be very difficult to
4041 perform and are not believed likely. Attacks against DH are considered just
4042 feasible (although very difficult) because most of the work necessary to
4043 deduce information about a private key may be performed offline. The amount
4044 of resources required for such an attack would be very significant and
4045 likely only accessible to a limited number of attackers. An attacker would
4046 additionally need online access to an unpatched system using the target
4047 private key in a scenario with persistent DH parameters and a private
4048 key that is shared between multiple clients. For example this can occur by
4049 default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very
4050 similar to CVE-2015-3193 but must be treated as a separate problem.
4051
4052 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 4053 ([CVE-2017-3732])
5f8e6c50
DMSP
4054
4055 *Andy Polyakov*
4056
257e9d03 4057### Changes between 1.1.0b and 1.1.0c [10 Nov 2016]
5f8e6c50
DMSP
4058
4059 * ChaCha20/Poly1305 heap-buffer-overflow
4060
257e9d03 4061 TLS connections using `*-CHACHA20-POLY1305` ciphersuites are susceptible to
5f8e6c50
DMSP
4062 a DoS attack by corrupting larger payloads. This can result in an OpenSSL
4063 crash. This issue is not considered to be exploitable beyond a DoS.
4064
4065 This issue was reported to OpenSSL by Robert Święcki (Google Security Team)
d8dc8538 4066 ([CVE-2016-7054])
5f8e6c50
DMSP
4067
4068 *Richard Levitte*
4069
4070 * CMS Null dereference
4071
4072 Applications parsing invalid CMS structures can crash with a NULL pointer
4073 dereference. This is caused by a bug in the handling of the ASN.1 CHOICE
4074 type in OpenSSL 1.1.0 which can result in a NULL value being passed to the
4075 structure callback if an attempt is made to free certain invalid encodings.
4076 Only CHOICE structures using a callback which do not handle NULL value are
4077 affected.
4078
4079 This issue was reported to OpenSSL by Tyler Nighswander of ForAllSecure.
d8dc8538 4080 ([CVE-2016-7053])
5f8e6c50
DMSP
4081
4082 *Stephen Henson*
4083
4084 * Montgomery multiplication may produce incorrect results
4085
4086 There is a carry propagating bug in the Broadwell-specific Montgomery
4087 multiplication procedure that handles input lengths divisible by, but
4088 longer than 256 bits. Analysis suggests that attacks against RSA, DSA
4089 and DH private keys are impossible. This is because the subroutine in
4090 question is not used in operations with the private key itself and an input
4091 of the attacker's direct choice. Otherwise the bug can manifest itself as
4092 transient authentication and key negotiation failures or reproducible
4093 erroneous outcome of public-key operations with specially crafted input.
4094 Among EC algorithms only Brainpool P-512 curves are affected and one
4095 presumably can attack ECDH key negotiation. Impact was not analyzed in
4096 detail, because pre-requisites for attack are considered unlikely. Namely
4097 multiple clients have to choose the curve in question and the server has to
4098 share the private key among them, neither of which is default behaviour.
4099 Even then only clients that chose the curve will be affected.
4100
4101 This issue was publicly reported as transient failures and was not
4102 initially recognized as a security issue. Thanks to Richard Morgan for
4103 providing reproducible case.
d8dc8538 4104 ([CVE-2016-7055])
5f8e6c50
DMSP
4105
4106 *Andy Polyakov*
4107
4108 * Removed automatic addition of RPATH in shared libraries and executables,
4109 as this was a remainder from OpenSSL 1.0.x and isn't needed any more.
4110
4111 *Richard Levitte*
4112
257e9d03 4113### Changes between 1.1.0a and 1.1.0b [26 Sep 2016]
5f8e6c50
DMSP
4114
4115 * Fix Use After Free for large message sizes
4116
4117 The patch applied to address CVE-2016-6307 resulted in an issue where if a
4118 message larger than approx 16k is received then the underlying buffer to
4119 store the incoming message is reallocated and moved. Unfortunately a
4120 dangling pointer to the old location is left which results in an attempt to
4121 write to the previously freed location. This is likely to result in a
4122 crash, however it could potentially lead to execution of arbitrary code.
4123
4124 This issue only affects OpenSSL 1.1.0a.
4125
4126 This issue was reported to OpenSSL by Robert Święcki.
d8dc8538 4127 ([CVE-2016-6309])
5f8e6c50
DMSP
4128
4129 *Matt Caswell*
4130
257e9d03 4131### Changes between 1.1.0 and 1.1.0a [22 Sep 2016]
5f8e6c50
DMSP
4132
4133 * OCSP Status Request extension unbounded memory growth
4134
4135 A malicious client can send an excessively large OCSP Status Request
4136 extension. If that client continually requests renegotiation, sending a
4137 large OCSP Status Request extension each time, then there will be unbounded
4138 memory growth on the server. This will eventually lead to a Denial Of
4139 Service attack through memory exhaustion. Servers with a default
4140 configuration are vulnerable even if they do not support OCSP. Builds using
4141 the "no-ocsp" build time option are not affected.
4142
4143 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 4144 ([CVE-2016-6304])
5f8e6c50
DMSP
4145
4146 *Matt Caswell*
4147
4148 * SSL_peek() hang on empty record
4149
4150 OpenSSL 1.1.0 SSL/TLS will hang during a call to SSL_peek() if the peer
4151 sends an empty record. This could be exploited by a malicious peer in a
4152 Denial Of Service attack.
4153
4154 This issue was reported to OpenSSL by Alex Gaynor.
d8dc8538 4155 ([CVE-2016-6305])
5f8e6c50
DMSP
4156
4157 *Matt Caswell*
4158
4159 * Excessive allocation of memory in tls_get_message_header() and
4160 dtls1_preprocess_fragment()
4161
4162 A (D)TLS message includes 3 bytes for its length in the header for the
4163 message. This would allow for messages up to 16Mb in length. Messages of
4164 this length are excessive and OpenSSL includes a check to ensure that a
4165 peer is sending reasonably sized messages in order to avoid too much memory
4166 being consumed to service a connection. A flaw in the logic of version
4167 1.1.0 means that memory for the message is allocated too early, prior to
4168 the excessive message length check. Due to way memory is allocated in
4169 OpenSSL this could mean an attacker could force up to 21Mb to be allocated
4170 to service a connection. This could lead to a Denial of Service through
4171 memory exhaustion. However, the excessive message length check still takes
4172 place, and this would cause the connection to immediately fail. Assuming
4173 that the application calls SSL_free() on the failed connection in a timely
4174 manner then the 21Mb of allocated memory will then be immediately freed
d7f3a2cc 4175 again. Therefore, the excessive memory allocation will be transitory in
5f8e6c50
DMSP
4176 nature. This then means that there is only a security impact if:
4177
4178 1) The application does not call SSL_free() in a timely manner in the event
4179 that the connection fails
4180 or
4181 2) The application is working in a constrained environment where there is
4182 very little free memory
4183 or
4184 3) The attacker initiates multiple connection attempts such that there are
4185 multiple connections in a state where memory has been allocated for the
4186 connection; SSL_free() has not yet been called; and there is insufficient
4187 memory to service the multiple requests.
4188
4189 Except in the instance of (1) above any Denial Of Service is likely to be
4190 transitory because as soon as the connection fails the memory is
4191 subsequently freed again in the SSL_free() call. However there is an
4192 increased risk during this period of application crashes due to the lack of
4193 memory - which would then mean a more serious Denial of Service.
4194
4195 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
4196 (CVE-2016-6307 and CVE-2016-6308)
4197
4198 *Matt Caswell*
4199
4200 * solaris-x86-cc, i.e. 32-bit configuration with vendor compiler,
4201 had to be removed. Primary reason is that vendor assembler can't
4202 assemble our modules with -KPIC flag. As result it, assembly
4203 support, was not even available as option. But its lack means
4204 lack of side-channel resistant code, which is incompatible with
4205 security by todays standards. Fortunately gcc is readily available
4206 prepackaged option, which we firmly point at...
4207
4208 *Andy Polyakov*
4209
257e9d03 4210### Changes between 1.0.2h and 1.1.0 [25 Aug 2016]
5f8e6c50
DMSP
4211
4212 * Windows command-line tool supports UTF-8 opt-in option for arguments
4213 and console input. Setting OPENSSL_WIN32_UTF8 environment variable
4214 (to any value) allows Windows user to access PKCS#12 file generated
4215 with Windows CryptoAPI and protected with non-ASCII password, as well
4216 as files generated under UTF-8 locale on Linux also protected with
4217 non-ASCII password.
4218
4219 *Andy Polyakov*
4220
d8dc8538 4221 * To mitigate the SWEET32 attack ([CVE-2016-2183]), 3DES cipher suites
5f8e6c50
DMSP
4222 have been disabled by default and removed from DEFAULT, just like RC4.
4223 See the RC4 item below to re-enable both.
4224
4225 *Rich Salz*
4226
4227 * The method for finding the storage location for the Windows RAND seed file
4228 has changed. First we check %RANDFILE%. If that is not set then we check
4229 the directories %HOME%, %USERPROFILE% and %SYSTEMROOT% in that order. If
4230 all else fails we fall back to C:\.
4231
4232 *Matt Caswell*
4233
4234 * The EVP_EncryptUpdate() function has had its return type changed from void
4235 to int. A return of 0 indicates and error while a return of 1 indicates
4236 success.
4237
4238 *Matt Caswell*
4239
4240 * The flags RSA_FLAG_NO_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME and
4241 DH_FLAG_NO_EXP_CONSTTIME which previously provided the ability to switch
4242 off the constant time implementation for RSA, DSA and DH have been made
4243 no-ops and deprecated.
4244
4245 *Matt Caswell*
4246
4247 * Windows RAND implementation was simplified to only get entropy by
4248 calling CryptGenRandom(). Various other RAND-related tickets
4249 were also closed.
4250
4251 *Joseph Wylie Yandle, Rich Salz*
4252
257e9d03
RS
4253 * The stack and lhash API's were renamed to start with `OPENSSL_SK_`
4254 and `OPENSSL_LH_`, respectively. The old names are available
5f8e6c50
DMSP
4255 with API compatibility. They new names are now completely documented.
4256
4257 *Rich Salz*
4258
4259 * Unify TYPE_up_ref(obj) methods signature.
4260 SSL_CTX_up_ref(), SSL_up_ref(), X509_up_ref(), EVP_PKEY_up_ref(),
4261 X509_CRL_up_ref(), X509_OBJECT_up_ref_count() methods are now returning an
4262 int (instead of void) like all others TYPE_up_ref() methods.
4263 So now these methods also check the return value of CRYPTO_atomic_add(),
4264 and the validity of object reference counter.
4265
4266 *fdasilvayy@gmail.com*
4267
4268 * With Windows Visual Studio builds, the .pdb files are installed
4269 alongside the installed libraries and executables. For a static
4270 library installation, ossl_static.pdb is the associate compiler
4271 generated .pdb file to be used when linking programs.
4272
4273 *Richard Levitte*
4274
4275 * Remove openssl.spec. Packaging files belong with the packagers.
4276
4277 *Richard Levitte*
4278
4279 * Automatic Darwin/OSX configuration has had a refresh, it will now
4280 recognise x86_64 architectures automatically. You can still decide
4281 to build for a different bitness with the environment variable
4282 KERNEL_BITS (can be 32 or 64), for example:
4283
4284 KERNEL_BITS=32 ./config
4285
4286 *Richard Levitte*
4287
4288 * Change default algorithms in pkcs8 utility to use PKCS#5 v2.0,
4289 256 bit AES and HMAC with SHA256.
4290
4291 *Steve Henson*
4292
4293 * Remove support for MIPS o32 ABI on IRIX (and IRIX only).
4294
4295 *Andy Polyakov*
4296
4297 * Triple-DES ciphers have been moved from HIGH to MEDIUM.
4298
4299 *Rich Salz*
4300
4301 * To enable users to have their own config files and build file templates,
4302 Configure looks in the directory indicated by the environment variable
4303 OPENSSL_LOCAL_CONFIG_DIR as well as the in-source Configurations/
4304 directory. On VMS, OPENSSL_LOCAL_CONFIG_DIR is expected to be a logical
4305 name and is used as is.
4306
4307 *Richard Levitte*
4308
4309 * The following datatypes were made opaque: X509_OBJECT, X509_STORE_CTX,
4310 X509_STORE, X509_LOOKUP, and X509_LOOKUP_METHOD. The unused type
4311 X509_CERT_FILE_CTX was removed.
4312
4313 *Rich Salz*
4314
4315 * "shared" builds are now the default. To create only static libraries use
4316 the "no-shared" Configure option.
4317
4318 *Matt Caswell*
4319
4320 * Remove the no-aes, no-hmac, no-rsa, no-sha and no-md5 Configure options.
4321 All of these option have not worked for some while and are fundamental
4322 algorithms.
4323
4324 *Matt Caswell*
4325
4326 * Make various cleanup routines no-ops and mark them as deprecated. Most
4327 global cleanup functions are no longer required because they are handled
4328 via auto-deinit (see OPENSSL_init_crypto and OPENSSL_init_ssl man pages).
4329 Explicitly de-initing can cause problems (e.g. where a library that uses
4330 OpenSSL de-inits, but an application is still using it). The affected
4331 functions are CONF_modules_free(), ENGINE_cleanup(), OBJ_cleanup(),
4332 EVP_cleanup(), BIO_sock_cleanup(), CRYPTO_cleanup_all_ex_data(),
4333 RAND_cleanup(), SSL_COMP_free_compression_methods(), ERR_free_strings() and
4334 COMP_zlib_cleanup().
4335
4336 *Matt Caswell*
4337
4338 * --strict-warnings no longer enables runtime debugging options
4339 such as REF_DEBUG. Instead, debug options are automatically
4340 enabled with '--debug' builds.
4341
4342 *Andy Polyakov, Emilia Käsper*
4343
4344 * Made DH and DH_METHOD opaque. The structures for managing DH objects
4345 have been moved out of the public header files. New functions for managing
4346 these have been added.
4347
4348 *Matt Caswell*
4349
4350 * Made RSA and RSA_METHOD opaque. The structures for managing RSA
4351 objects have been moved out of the public header files. New
4352 functions for managing these have been added.
4353
4354 *Richard Levitte*
4355
4356 * Made DSA and DSA_METHOD opaque. The structures for managing DSA objects
4357 have been moved out of the public header files. New functions for managing
4358 these have been added.
4359
4360 *Matt Caswell*
4361
4362 * Made BIO and BIO_METHOD opaque. The structures for managing BIOs have been
4363 moved out of the public header files. New functions for managing these
4364 have been added.
4365
4366 *Matt Caswell*
4367
4368 * Removed no-rijndael as a config option. Rijndael is an old name for AES.
4369
4370 *Matt Caswell*
4371
4372 * Removed the mk1mf build scripts.
4373
4374 *Richard Levitte*
4375
4376 * Headers are now wrapped, if necessary, with OPENSSL_NO_xxx, so
4377 it is always safe to #include a header now.
4378
4379 *Rich Salz*
4380
4381 * Removed the aged BC-32 config and all its supporting scripts
4382
4383 *Richard Levitte*
4384
4385 * Removed support for Ultrix, Netware, and OS/2.
4386
4387 *Rich Salz*
4388
4389 * Add support for HKDF.
4390
4391 *Alessandro Ghedini*
4392
4393 * Add support for blake2b and blake2s
4394
4395 *Bill Cox*
4396
4397 * Added support for "pipelining". Ciphers that have the
4398 EVP_CIPH_FLAG_PIPELINE flag set have a capability to process multiple
4399 encryptions/decryptions simultaneously. There are currently no built-in
4400 ciphers with this property but the expectation is that engines will be able
4401 to offer it to significantly improve throughput. Support has been extended
4402 into libssl so that multiple records for a single connection can be
4403 processed in one go (for >=TLS 1.1).
4404
4405 *Matt Caswell*
4406
4407 * Added the AFALG engine. This is an async capable engine which is able to
4408 offload work to the Linux kernel. In this initial version it only supports
4409 AES128-CBC. The kernel must be version 4.1.0 or greater.
4410
4411 *Catriona Lucey*
4412
4413 * OpenSSL now uses a new threading API. It is no longer necessary to
4414 set locking callbacks to use OpenSSL in a multi-threaded environment. There
4415 are two supported threading models: pthreads and windows threads. It is
4416 also possible to configure OpenSSL at compile time for "no-threads". The
4417 old threading API should no longer be used. The functions have been
4418 replaced with "no-op" compatibility macros.
4419
4420 *Alessandro Ghedini, Matt Caswell*
4421
4422 * Modify behavior of ALPN to invoke callback after SNI/servername
4423 callback, such that updates to the SSL_CTX affect ALPN.
4424
4425 *Todd Short*
4426
4427 * Add SSL_CIPHER queries for authentication and key-exchange.
4428
4429 *Todd Short*
4430
4431 * Changes to the DEFAULT cipherlist:
257e9d03
RS
4432 - Prefer (EC)DHE handshakes over plain RSA.
4433 - Prefer AEAD ciphers over legacy ciphers.
4434 - Prefer ECDSA over RSA when both certificates are available.
4435 - Prefer TLSv1.2 ciphers/PRF.
4436 - Remove DSS, SEED, IDEA, CAMELLIA, and AES-CCM from the
4437 default cipherlist.
5f8e6c50
DMSP
4438
4439 *Emilia Käsper*
4440
4441 * Change the ECC default curve list to be this, in order: x25519,
4442 secp256r1, secp521r1, secp384r1.
4443
4444 *Rich Salz*
4445
4446 * RC4 based libssl ciphersuites are now classed as "weak" ciphers and are
4447 disabled by default. They can be re-enabled using the
4448 enable-weak-ssl-ciphers option to Configure.
4449
4450 *Matt Caswell*
4451
4452 * If the server has ALPN configured, but supports no protocols that the
4453 client advertises, send a fatal "no_application_protocol" alert.
4454 This behaviour is SHALL in RFC 7301, though it isn't universally
4455 implemented by other servers.
4456
4457 *Emilia Käsper*
4458
4459 * Add X25519 support.
4460 Add ASN.1 and EVP_PKEY methods for X25519. This includes support
4461 for public and private key encoding using the format documented in
4462 draft-ietf-curdle-pkix-02. The corresponding EVP_PKEY method supports
4463 key generation and key derivation.
4464
4465 TLS support complies with draft-ietf-tls-rfc4492bis-08 and uses
4466 X25519(29).
4467
4468 *Steve Henson*
4469
4470 * Deprecate SRP_VBASE_get_by_user.
4471 SRP_VBASE_get_by_user had inconsistent memory management behaviour.
d8dc8538 4472 In order to fix an unavoidable memory leak ([CVE-2016-0798]),
5f8e6c50
DMSP
4473 SRP_VBASE_get_by_user was changed to ignore the "fake user" SRP
4474 seed, even if the seed is configured.
4475
4476 Users should use SRP_VBASE_get1_by_user instead. Note that in
4477 SRP_VBASE_get1_by_user, caller must free the returned value. Note
4478 also that even though configuring the SRP seed attempts to hide
4479 invalid usernames by continuing the handshake with fake
4480 credentials, this behaviour is not constant time and no strong
4481 guarantees are made that the handshake is indistinguishable from
4482 that of a valid user.
4483
4484 *Emilia Käsper*
4485
4486 * Configuration change; it's now possible to build dynamic engines
4487 without having to build shared libraries and vice versa. This
ec2bfb7d 4488 only applies to the engines in `engines/`, those in `crypto/engine/`
5f8e6c50
DMSP
4489 will always be built into libcrypto (i.e. "static").
4490
4491 Building dynamic engines is enabled by default; to disable, use
4492 the configuration option "disable-dynamic-engine".
4493
4494 The only requirements for building dynamic engines are the
4495 presence of the DSO module and building with position independent
4496 code, so they will also automatically be disabled if configuring
4497 with "disable-dso" or "disable-pic".
4498
4499 The macros OPENSSL_NO_STATIC_ENGINE and OPENSSL_NO_DYNAMIC_ENGINE
4500 are also taken away from openssl/opensslconf.h, as they are
4501 irrelevant.
4502
4503 *Richard Levitte*
4504
4505 * Configuration change; if there is a known flag to compile
4506 position independent code, it will always be applied on the
4507 libcrypto and libssl object files, and never on the application
4508 object files. This means other libraries that use routines from
4509 libcrypto / libssl can be made into shared libraries regardless
4510 of how OpenSSL was configured.
4511
4512 If this isn't desirable, the configuration options "disable-pic"
4513 or "no-pic" can be used to disable the use of PIC. This will
4514 also disable building shared libraries and dynamic engines.
4515
4516 *Richard Levitte*
4517
4518 * Removed JPAKE code. It was experimental and has no wide use.
4519
4520 *Rich Salz*
4521
4522 * The INSTALL_PREFIX Makefile variable has been renamed to
4523 DESTDIR. That makes for less confusion on what this variable
4524 is for. Also, the configuration option --install_prefix is
4525 removed.
4526
4527 *Richard Levitte*
4528
4529 * Heartbeat for TLS has been removed and is disabled by default
4530 for DTLS; configure with enable-heartbeats. Code that uses the
4531 old #define's might need to be updated.
4532
4533 *Emilia Käsper, Rich Salz*
4534
4535 * Rename REF_CHECK to REF_DEBUG.
4536
4537 *Rich Salz*
4538
4539 * New "unified" build system
4540
4541 The "unified" build system is aimed to be a common system for all
4542 platforms we support. With it comes new support for VMS.
4543
4544 This system builds supports building in a different directory tree
4545 than the source tree. It produces one Makefile (for unix family
4546 or lookalikes), or one descrip.mms (for VMS).
4547
4548 The source of information to make the Makefile / descrip.mms is
4549 small files called 'build.info', holding the necessary
4550 information for each directory with source to compile, and a
4551 template in Configurations, like unix-Makefile.tmpl or
4552 descrip.mms.tmpl.
4553
4554 With this change, the library names were also renamed on Windows
4555 and on VMS. They now have names that are closer to the standard
4556 on Unix, and include the major version number, and in certain
4557 cases, the architecture they are built for. See "Notes on shared
4558 libraries" in INSTALL.
4559
4560 We rely heavily on the perl module Text::Template.
4561
4562 *Richard Levitte*
4563
4564 * Added support for auto-initialisation and de-initialisation of the library.
4565 OpenSSL no longer requires explicit init or deinit routines to be called,
4566 except in certain circumstances. See the OPENSSL_init_crypto() and
4567 OPENSSL_init_ssl() man pages for further information.
4568
4569 *Matt Caswell*
4570
4571 * The arguments to the DTLSv1_listen function have changed. Specifically the
4572 "peer" argument is now expected to be a BIO_ADDR object.
4573
4574 * Rewrite of BIO networking library. The BIO library lacked consistent
4575 support of IPv6, and adding it required some more extensive
4576 modifications. This introduces the BIO_ADDR and BIO_ADDRINFO types,
4577 which hold all types of addresses and chains of address information.
4578 It also introduces a new API, with functions like BIO_socket,
4579 BIO_connect, BIO_listen, BIO_lookup and a rewrite of BIO_accept.
4580 The source/sink BIOs BIO_s_connect, BIO_s_accept and BIO_s_datagram
4581 have been adapted accordingly.
4582
4583 *Richard Levitte*
4584
4585 * RSA_padding_check_PKCS1_type_1 now accepts inputs with and without
4586 the leading 0-byte.
4587
4588 *Emilia Käsper*
4589
4590 * CRIME protection: disable compression by default, even if OpenSSL is
4591 compiled with zlib enabled. Applications can still enable compression
4592 by calling SSL_CTX_clear_options(ctx, SSL_OP_NO_COMPRESSION), or by
4593 using the SSL_CONF library to configure compression.
4594
4595 *Emilia Käsper*
4596
4597 * The signature of the session callback configured with
4598 SSL_CTX_sess_set_get_cb was changed. The read-only input buffer
257e9d03
RS
4599 was explicitly marked as `const unsigned char*` instead of
4600 `unsigned char*`.
5f8e6c50
DMSP
4601
4602 *Emilia Käsper*
4603
4604 * Always DPURIFY. Remove the use of uninitialized memory in the
4605 RNG, and other conditional uses of DPURIFY. This makes -DPURIFY a no-op.
4606
4607 *Emilia Käsper*
4608
4609 * Removed many obsolete configuration items, including
4610 DES_PTR, DES_RISC1, DES_RISC2, DES_INT
4611 MD2_CHAR, MD2_INT, MD2_LONG
4612 BF_PTR, BF_PTR2
4613 IDEA_SHORT, IDEA_LONG
4614 RC2_SHORT, RC2_LONG, RC4_LONG, RC4_CHUNK, RC4_INDEX
4615
4616 *Rich Salz, with advice from Andy Polyakov*
4617
4618 * Many BN internals have been moved to an internal header file.
4619
4620 *Rich Salz with help from Andy Polyakov*
4621
4622 * Configuration and writing out the results from it has changed.
4623 Files such as Makefile include/openssl/opensslconf.h and are now
4624 produced through general templates, such as Makefile.in and
4625 crypto/opensslconf.h.in and some help from the perl module
4626 Text::Template.
4627
4628 Also, the center of configuration information is no longer
4629 Makefile. Instead, Configure produces a perl module in
4630 configdata.pm which holds most of the config data (in the hash
4631 table %config), the target data that comes from the target
1dc1ea18 4632 configuration in one of the `Configurations/*.conf` files (in
5f8e6c50
DMSP
4633 %target).
4634
4635 *Richard Levitte*
4636
4637 * To clarify their intended purposes, the Configure options
4638 --prefix and --openssldir change their semantics, and become more
4639 straightforward and less interdependent.
4640
4641 --prefix shall be used exclusively to give the location INSTALLTOP
4642 where programs, scripts, libraries, include files and manuals are
4643 going to be installed. The default is now /usr/local.
4644
4645 --openssldir shall be used exclusively to give the default
4646 location OPENSSLDIR where certificates, private keys, CRLs are
4647 managed. This is also where the default openssl.cnf gets
4648 installed.
4649 If the directory given with this option is a relative path, the
4650 values of both the --prefix value and the --openssldir value will
4651 be combined to become OPENSSLDIR.
4652 The default for --openssldir is INSTALLTOP/ssl.
4653
4654 Anyone who uses --openssldir to specify where OpenSSL is to be
4655 installed MUST change to use --prefix instead.
4656
4657 *Richard Levitte*
4658
4659 * The GOST engine was out of date and therefore it has been removed. An up
4660 to date GOST engine is now being maintained in an external repository.
257e9d03 4661 See: <https://wiki.openssl.org/index.php/Binaries>. Libssl still retains
5f8e6c50
DMSP
4662 support for GOST ciphersuites (these are only activated if a GOST engine
4663 is present).
4664
4665 *Matt Caswell*
4666
4667 * EGD is no longer supported by default; use enable-egd when
4668 configuring.
4669
4670 *Ben Kaduk and Rich Salz*
4671
4672 * The distribution now has Makefile.in files, which are used to
4673 create Makefile's when Configure is run. *Configure must be run
4674 before trying to build now.*
4675
4676 *Rich Salz*
4677
4678 * The return value for SSL_CIPHER_description() for error conditions
4679 has changed.
4680
4681 *Rich Salz*
4682
4683 * Support for RFC6698/RFC7671 DANE TLSA peer authentication.
4684
4685 Obtaining and performing DNSSEC validation of TLSA records is
4686 the application's responsibility. The application provides
4687 the TLSA records of its choice to OpenSSL, and these are then
4688 used to authenticate the peer.
4689
4690 The TLSA records need not even come from DNS. They can, for
4691 example, be used to implement local end-entity certificate or
4692 trust-anchor "pinning", where the "pin" data takes the form
4693 of TLSA records, which can augment or replace verification
4694 based on the usual WebPKI public certification authorities.
4695
4696 *Viktor Dukhovni*
4697
4698 * Revert default OPENSSL_NO_DEPRECATED setting. Instead OpenSSL
4699 continues to support deprecated interfaces in default builds.
4700 However, applications are strongly advised to compile their
4701 source files with -DOPENSSL_API_COMPAT=0x10100000L, which hides
4702 the declarations of all interfaces deprecated in 0.9.8, 1.0.0
4703 or the 1.1.0 releases.
4704
4705 In environments in which all applications have been ported to
4706 not use any deprecated interfaces OpenSSL's Configure script
4707 should be used with the --api=1.1.0 option to entirely remove
4708 support for the deprecated features from the library and
4709 unconditionally disable them in the installed headers.
4710 Essentially the same effect can be achieved with the "no-deprecated"
4711 argument to Configure, except that this will always restrict
4712 the build to just the latest API, rather than a fixed API
4713 version.
4714
4715 As applications are ported to future revisions of the API,
4716 they should update their compile-time OPENSSL_API_COMPAT define
4717 accordingly, but in most cases should be able to continue to
4718 compile with later releases.
4719
4720 The OPENSSL_API_COMPAT versions for 1.0.0, and 0.9.8 are
4721 0x10000000L and 0x00908000L, respectively. However those
4722 versions did not support the OPENSSL_API_COMPAT feature, and
4723 so applications are not typically tested for explicit support
4724 of just the undeprecated features of either release.
4725
4726 *Viktor Dukhovni*
4727
4728 * Add support for setting the minimum and maximum supported protocol.
4729 It can bet set via the SSL_set_min_proto_version() and
4730 SSL_set_max_proto_version(), or via the SSL_CONF's MinProtocol and
4731 MaxProtocol. It's recommended to use the new APIs to disable
4732 protocols instead of disabling individual protocols using
4733 SSL_set_options() or SSL_CONF's Protocol. This change also
4734 removes support for disabling TLS 1.2 in the OpenSSL TLS
4735 client at compile time by defining OPENSSL_NO_TLS1_2_CLIENT.
4736
4737 *Kurt Roeckx*
4738
4739 * Support for ChaCha20 and Poly1305 added to libcrypto and libssl.
4740
4741 *Andy Polyakov*
4742
4743 * New EC_KEY_METHOD, this replaces the older ECDSA_METHOD and ECDH_METHOD
4744 and integrates ECDSA and ECDH functionality into EC. Implementations can
4745 now redirect key generation and no longer need to convert to or from
4746 ECDSA_SIG format.
4747
4748 Note: the ecdsa.h and ecdh.h headers are now no longer needed and just
4749 include the ec.h header file instead.
4750
4751 *Steve Henson*
4752
4753 * Remove support for all 40 and 56 bit ciphers. This includes all the export
4754 ciphers who are no longer supported and drops support the ephemeral RSA key
4755 exchange. The LOW ciphers currently doesn't have any ciphers in it.
4756
4757 *Kurt Roeckx*
4758
4759 * Made EVP_MD_CTX, EVP_MD, EVP_CIPHER_CTX, EVP_CIPHER and HMAC_CTX
4760 opaque. For HMAC_CTX, the following constructors and destructors
4761 were added:
4762
1dc1ea18
DDO
4763 HMAC_CTX *HMAC_CTX_new(void);
4764 void HMAC_CTX_free(HMAC_CTX *ctx);
5f8e6c50
DMSP
4765
4766 For EVP_MD and EVP_CIPHER, complete APIs to create, fill and
4767 destroy such methods has been added. See EVP_MD_meth_new(3) and
4768 EVP_CIPHER_meth_new(3) for documentation.
4769
4770 Additional changes:
1dc1ea18
DDO
4771 1) `EVP_MD_CTX_cleanup()`, `EVP_CIPHER_CTX_cleanup()` and
4772 `HMAC_CTX_cleanup()` were removed. `HMAC_CTX_reset()` and
4773 `EVP_MD_CTX_reset()` should be called instead to reinitialise
5f8e6c50
DMSP
4774 an already created structure.
4775 2) For consistency with the majority of our object creators and
1dc1ea18
DDO
4776 destructors, `EVP_MD_CTX_(create|destroy)` were renamed to
4777 `EVP_MD_CTX_(new|free)`. The old names are retained as macros
5f8e6c50
DMSP
4778 for deprecated builds.
4779
4780 *Richard Levitte*
4781
4782 * Added ASYNC support. Libcrypto now includes the async sub-library to enable
4783 cryptographic operations to be performed asynchronously as long as an
4784 asynchronous capable engine is used. See the ASYNC_start_job() man page for
4785 further details. Libssl has also had this capability integrated with the
4786 introduction of the new mode SSL_MODE_ASYNC and associated error
4787 SSL_ERROR_WANT_ASYNC. See the SSL_CTX_set_mode() and SSL_get_error() man
4788 pages. This work was developed in partnership with Intel Corp.
4789
4790 *Matt Caswell*
4791
4792 * SSL_{CTX_}set_ecdh_auto() has been removed and ECDH is support is
4793 always enabled now. If you want to disable the support you should
4794 exclude it using the list of supported ciphers. This also means that the
4795 "-no_ecdhe" option has been removed from s_server.
4796
4797 *Kurt Roeckx*
4798
4799 * SSL_{CTX}_set_tmp_ecdh() which can set 1 EC curve now internally calls
4800 SSL_{CTX_}set1_curves() which can set a list.
4801
4802 *Kurt Roeckx*
4803
4804 * Remove support for SSL_{CTX_}set_tmp_ecdh_callback(). You should set the
4805 curve you want to support using SSL_{CTX_}set1_curves().
4806
4807 *Kurt Roeckx*
4808
4809 * State machine rewrite. The state machine code has been significantly
4810 refactored in order to remove much duplication of code and solve issues
036cbb6b
DDO
4811 with the old code (see [ssl/statem/README.md](ssl/statem/README.md) for
4812 further details). This change does have some associated API changes.
4813 Notably the SSL_state() function has been removed and replaced by
4814 SSL_get_state which now returns an "OSSL_HANDSHAKE_STATE" instead of an int.
4815 SSL_set_state() has been removed altogether. The previous handshake states
4816 defined in ssl.h and ssl3.h have also been removed.
5f8e6c50
DMSP
4817
4818 *Matt Caswell*
4819
4820 * All instances of the string "ssleay" in the public API were replaced
4821 with OpenSSL (case-matching; e.g., OPENSSL_VERSION for #define's)
4822 Some error codes related to internal RSA_eay API's were renamed.
4823
4824 *Rich Salz*
4825
4826 * The demo files in crypto/threads were moved to demo/threads.
4827
4828 *Rich Salz*
4829
4830 * Removed obsolete engines: 4758cca, aep, atalla, cswift, nuron, gmp,
4831 sureware and ubsec.
4832
4833 *Matt Caswell, Rich Salz*
4834
4835 * New ASN.1 embed macro.
4836
4837 New ASN.1 macro ASN1_EMBED. This is the same as ASN1_SIMPLE except the
4838 structure is not allocated: it is part of the parent. That is instead of
4839
4840 FOO *x;
4841
4842 it must be:
4843
4844 FOO x;
4845
4846 This reduces memory fragmentation and make it impossible to accidentally
4847 set a mandatory field to NULL.
4848
4849 This currently only works for some fields specifically a SEQUENCE, CHOICE,
4850 or ASN1_STRING type which is part of a parent SEQUENCE. Since it is
4851 equivalent to ASN1_SIMPLE it cannot be tagged, OPTIONAL, SET OF or
4852 SEQUENCE OF.
4853
4854 *Steve Henson*
4855
4856 * Remove EVP_CHECK_DES_KEY, a compile-time option that never compiled.
4857
4858 *Emilia Käsper*
4859
4860 * Removed DES and RC4 ciphersuites from DEFAULT. Also removed RC2 although
4861 in 1.0.2 EXPORT was already removed and the only RC2 ciphersuite is also
4862 an EXPORT one. COMPLEMENTOFDEFAULT has been updated accordingly to add
4863 DES and RC4 ciphersuites.
4864
4865 *Matt Caswell*
4866
4867 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
4868 This changes the decoding behaviour for some invalid messages,
4869 though the change is mostly in the more lenient direction, and
4870 legacy behaviour is preserved as much as possible.
4871
4872 *Emilia Käsper*
4873
4874 * Fix no-stdio build.
1dc1ea18
DDO
4875 *David Woodhouse <David.Woodhouse@intel.com> and also*
4876 *Ivan Nestlerode <ivan.nestlerode@sonos.com>*
5f8e6c50
DMSP
4877
4878 * New testing framework
4879 The testing framework has been largely rewritten and is now using
4880 perl and the perl modules Test::Harness and an extended variant of
4881 Test::More called OpenSSL::Test to do its work. All test scripts in
4882 test/ have been rewritten into test recipes, and all direct calls to
4883 executables in test/Makefile have become individual recipes using the
4884 simplified testing OpenSSL::Test::Simple.
4885
4886 For documentation on our testing modules, do:
4887
4888 perldoc test/testlib/OpenSSL/Test/Simple.pm
4889 perldoc test/testlib/OpenSSL/Test.pm
4890
4891 *Richard Levitte*
4892
4893 * Revamped memory debug; only -DCRYPTO_MDEBUG and -DCRYPTO_MDEBUG_ABORT
4894 are used; the latter aborts on memory leaks (usually checked on exit).
4895 Some undocumented "set malloc, etc., hooks" functions were removed
4896 and others were changed. All are now documented.
4897
4898 *Rich Salz*
4899
4900 * In DSA_generate_parameters_ex, if the provided seed is too short,
4901 return an error
4902
4903 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
4904
4905 * Rewrite PSK to support ECDHE_PSK, DHE_PSK and RSA_PSK. Add ciphersuites
4906 from RFC4279, RFC4785, RFC5487, RFC5489.
4907
4908 Thanks to Christian J. Dietrich and Giuseppe D'Angelo for the
4909 original RSA_PSK patch.
4910
4911 *Steve Henson*
4912
4913 * Dropped support for the SSL3_FLAGS_DELAY_CLIENT_FINISHED flag. This SSLeay
4914 era flag was never set throughout the codebase (only read). Also removed
4915 SSL3_FLAGS_POP_BUFFER which was only used if
4916 SSL3_FLAGS_DELAY_CLIENT_FINISHED was also set.
4917
4918 *Matt Caswell*
4919
4920 * Changed the default name options in the "ca", "crl", "req" and "x509"
4921 to be "oneline" instead of "compat".
4922
4923 *Richard Levitte*
4924
4925 * Remove SSL_OP_TLS_BLOCK_PADDING_BUG. This is SSLeay legacy, we're
4926 not aware of clients that still exhibit this bug, and the workaround
4927 hasn't been working properly for a while.
4928
4929 *Emilia Käsper*
4930
4931 * The return type of BIO_number_read() and BIO_number_written() as well as
4932 the corresponding num_read and num_write members in the BIO structure has
4933 changed from unsigned long to uint64_t. On platforms where an unsigned
4934 long is 32 bits (e.g. Windows) these counters could overflow if >4Gb is
4935 transferred.
4936
4937 *Matt Caswell*
4938
4939 * Given the pervasive nature of TLS extensions it is inadvisable to run
4940 OpenSSL without support for them. It also means that maintaining
4941 the OPENSSL_NO_TLSEXT option within the code is very invasive (and probably
d7f3a2cc 4942 not well tested). Therefore, the OPENSSL_NO_TLSEXT option has been removed.
5f8e6c50
DMSP
4943
4944 *Matt Caswell*
4945
4946 * Removed support for the two export grade static DH ciphersuites
4947 EXP-DH-RSA-DES-CBC-SHA and EXP-DH-DSS-DES-CBC-SHA. These two ciphersuites
4948 were newly added (along with a number of other static DH ciphersuites) to
4949 1.0.2. However the two export ones have *never* worked since they were
4950 introduced. It seems strange in any case to be adding new export
4951 ciphersuites, and given "logjam" it also does not seem correct to fix them.
4952
4953 *Matt Caswell*
4954
4955 * Version negotiation has been rewritten. In particular SSLv23_method(),
4956 SSLv23_client_method() and SSLv23_server_method() have been deprecated,
4957 and turned into macros which simply call the new preferred function names
4958 TLS_method(), TLS_client_method() and TLS_server_method(). All new code
4959 should use the new names instead. Also as part of this change the ssl23.h
4960 header file has been removed.
4961
4962 *Matt Caswell*
4963
4964 * Support for Kerberos ciphersuites in TLS (RFC2712) has been removed. This
4965 code and the associated standard is no longer considered fit-for-purpose.
4966
4967 *Matt Caswell*
4968
4969 * RT2547 was closed. When generating a private key, try to make the
4970 output file readable only by the owner. This behavior change might
4971 be noticeable when interacting with other software.
4972
4973 * Documented all exdata functions. Added CRYPTO_free_ex_index.
4974 Added a test.
4975
4976 *Rich Salz*
4977
4978 * Added HTTP GET support to the ocsp command.
4979
4980 *Rich Salz*
4981
4982 * Changed default digest for the dgst and enc commands from MD5 to
4983 sha256
4984
4985 *Rich Salz*
4986
4987 * RAND_pseudo_bytes has been deprecated. Users should use RAND_bytes instead.
4988
4989 *Matt Caswell*
4990
4991 * Added support for TLS extended master secret from
4992 draft-ietf-tls-session-hash-03.txt. Thanks for Alfredo Pironti for an
4993 initial patch which was a great help during development.
4994
4995 *Steve Henson*
4996
4997 * All libssl internal structures have been removed from the public header
4998 files, and the OPENSSL_NO_SSL_INTERN option has been removed (since it is
4999 now redundant). Users should not attempt to access internal structures
5000 directly. Instead they should use the provided API functions.
5001
5002 *Matt Caswell*
5003
5004 * config has been changed so that by default OPENSSL_NO_DEPRECATED is used.
5005 Access to deprecated functions can be re-enabled by running config with
5006 "enable-deprecated". In addition applications wishing to use deprecated
5007 functions must define OPENSSL_USE_DEPRECATED. Note that this new behaviour
5008 will, by default, disable some transitive includes that previously existed
5009 in the header files (e.g. ec.h will no longer, by default, include bn.h)
5010
5011 *Matt Caswell*
5012
5013 * Added support for OCB mode. OpenSSL has been granted a patent license
5014 compatible with the OpenSSL license for use of OCB. Details are available
257e9d03 5015 at <https://www.openssl.org/source/OCB-patent-grant-OpenSSL.pdf>. Support
5f8e6c50
DMSP
5016 for OCB can be removed by calling config with no-ocb.
5017
5018 *Matt Caswell*
5019
d7f3a2cc 5020 * SSLv2 support has been removed. It still supports receiving an SSLv2
5f8e6c50
DMSP
5021 compatible client hello.
5022
5023 *Kurt Roeckx*
5024
5025 * Increased the minimal RSA keysize from 256 to 512 bits [Rich Salz],
5026 done while fixing the error code for the key-too-small case.
5027
5028 *Annie Yousar <a.yousar@informatik.hu-berlin.de>*
5029
5030 * CA.sh has been removed; use CA.pl instead.
5031
5032 *Rich Salz*
5033
5034 * Removed old DES API.
5035
5036 *Rich Salz*
5037
5038 * Remove various unsupported platforms:
5039 Sony NEWS4
5040 BEOS and BEOS_R5
5041 NeXT
5042 SUNOS
5043 MPE/iX
5044 Sinix/ReliantUNIX RM400
5045 DGUX
5046 NCR
5047 Tandem
5048 Cray
5049 16-bit platforms such as WIN16
5050
5051 *Rich Salz*
5052
5053 * Clean up OPENSSL_NO_xxx #define's
257e9d03
RS
5054 - Use setbuf() and remove OPENSSL_NO_SETVBUF_IONBF
5055 - Rename OPENSSL_SYSNAME_xxx to OPENSSL_SYS_xxx
5056 - OPENSSL_NO_EC{DH,DSA} merged into OPENSSL_NO_EC
5057 - OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160
5058 - OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO
5059 - Remove OPENSSL_NO_BIO OPENSSL_NO_BUFFER OPENSSL_NO_CHAIN_VERIFY
5060 OPENSSL_NO_EVP OPENSSL_NO_FIPS_ERR OPENSSL_NO_HASH_COMP
5061 OPENSSL_NO_LHASH OPENSSL_NO_OBJECT OPENSSL_NO_SPEED OPENSSL_NO_STACK
5062 OPENSSL_NO_X509 OPENSSL_NO_X509_VERIFY
5063 - Remove MS_STATIC; it's a relic from platforms <32 bits.
5f8e6c50
DMSP
5064
5065 *Rich Salz*
5066
5067 * Cleaned up dead code
5068 Remove all but one '#ifdef undef' which is to be looked at.
5069
5070 *Rich Salz*
5071
5072 * Clean up calling of xxx_free routines.
5073 Just like free(), fix most of the xxx_free routines to accept
5074 NULL. Remove the non-null checks from callers. Save much code.
5075
5076 *Rich Salz*
5077
5078 * Add secure heap for storage of private keys (when possible).
5079 Add BIO_s_secmem(), CBIGNUM, etc.
5080 Contributed by Akamai Technologies under our Corporate CLA.
5081
5082 *Rich Salz*
5083
5084 * Experimental support for a new, fast, unbiased prime candidate generator,
5085 bn_probable_prime_dh_coprime(). Not currently used by any prime generator.
5086
5087 *Felix Laurie von Massenbach <felix@erbridge.co.uk>*
5088
5089 * New output format NSS in the sess_id command line tool. This allows
5090 exporting the session id and the master key in NSS keylog format.
5091
5092 *Martin Kaiser <martin@kaiser.cx>*
5093
5094 * Harmonize version and its documentation. -f flag is used to display
5095 compilation flags.
5096
5097 *mancha <mancha1@zoho.com>*
5098
5099 * Fix eckey_priv_encode so it immediately returns an error upon a failure
5100 in i2d_ECPrivateKey. Thanks to Ted Unangst for feedback on this issue.
5101
5102 *mancha <mancha1@zoho.com>*
5103
5104 * Fix some double frees. These are not thought to be exploitable.
5105
5106 *mancha <mancha1@zoho.com>*
5107
5108 * A missing bounds check in the handling of the TLS heartbeat extension
5109 can be used to reveal up to 64k of memory to a connected client or
5110 server.
5111
5112 Thanks for Neel Mehta of Google Security for discovering this bug and to
5113 Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
d8dc8538 5114 preparing the fix ([CVE-2014-0160])
5f8e6c50
DMSP
5115
5116 *Adam Langley, Bodo Moeller*
5117
5118 * Fix for the attack described in the paper "Recovering OpenSSL
5119 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
5120 by Yuval Yarom and Naomi Benger. Details can be obtained from:
257e9d03 5121 <http://eprint.iacr.org/2014/140>
5f8e6c50
DMSP
5122
5123 Thanks to Yuval Yarom and Naomi Benger for discovering this
d8dc8538 5124 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
5f8e6c50
DMSP
5125
5126 *Yuval Yarom and Naomi Benger*
5127
5128 * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
5129 this fixes a limitation in previous versions of OpenSSL.
5130
5131 *Steve Henson*
5132
5133 * Experimental encrypt-then-mac support.
5134
5135 Experimental support for encrypt then mac from
5136 draft-gutmann-tls-encrypt-then-mac-02.txt
5137
5138 To enable it set the appropriate extension number (0x42 for the test
5139 server) using e.g. -DTLSEXT_TYPE_encrypt_then_mac=0x42
5140
5141 For non-compliant peers (i.e. just about everything) this should have no
5142 effect.
5143
5144 WARNING: EXPERIMENTAL, SUBJECT TO CHANGE.
5145
5f8e6c50
DMSP
5146 *Steve Henson*
5147
5148 * Add EVP support for key wrapping algorithms, to avoid problems with
5149 existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
5150 the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
5151 algorithms and include tests cases.
5152
5153 *Steve Henson*
5154
5155 * Extend CMS code to support RSA-PSS signatures and RSA-OAEP for
5156 enveloped data.
5157
5158 *Steve Henson*
5159
5160 * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
5161 MGF1 digest and OAEP label.
5162
5163 *Steve Henson*
5164
5165 * Make openssl verify return errors.
5166
5167 *Chris Palmer <palmer@google.com> and Ben Laurie*
5168
5169 * New function ASN1_TIME_diff to calculate the difference between two
5170 ASN1_TIME structures or one structure and the current time.
5171
5172 *Steve Henson*
5173
5174 * Update fips_test_suite to support multiple command line options. New
5175 test to induce all self test errors in sequence and check expected
5176 failures.
5177
5178 *Steve Henson*
5179
5180 * Add FIPS_{rsa,dsa,ecdsa}_{sign,verify} functions which digest and
5181 sign or verify all in one operation.
5182
5183 *Steve Henson*
5184
5185 * Add fips_algvs: a multicall fips utility incorporating all the algorithm
5186 test programs and fips_test_suite. Includes functionality to parse
5187 the minimal script output of fipsalgest.pl directly.
5188
5189 *Steve Henson*
5190
5191 * Add authorisation parameter to FIPS_module_mode_set().
5192
5193 *Steve Henson*
5194
5195 * Add FIPS selftest for ECDH algorithm using P-224 and B-233 curves.
5196
5197 *Steve Henson*
5198
5199 * Use separate DRBG fields for internal and external flags. New function
5200 FIPS_drbg_health_check() to perform on demand health checking. Add
5201 generation tests to fips_test_suite with reduced health check interval to
5202 demonstrate periodic health checking. Add "nodh" option to
5203 fips_test_suite to skip very slow DH test.
5204
5205 *Steve Henson*
5206
5207 * New function FIPS_get_cipherbynid() to lookup FIPS supported ciphers
5208 based on NID.
5209
5210 *Steve Henson*
5211
5212 * More extensive health check for DRBG checking many more failure modes.
5213 New function FIPS_selftest_drbg_all() to handle every possible DRBG
5214 combination: call this in fips_test_suite.
5215
5216 *Steve Henson*
5217
5218 * Add support for canonical generation of DSA parameter 'g'. See
5219 FIPS 186-3 A.2.3.
5220
5221 * Add support for HMAC DRBG from SP800-90. Update DRBG algorithm test and
5222 POST to handle HMAC cases.
5223
5224 *Steve Henson*
5225
5226 * Add functions FIPS_module_version() and FIPS_module_version_text()
5227 to return numerical and string versions of the FIPS module number.
5228
5229 *Steve Henson*
5230
5231 * Rename FIPS_mode_set and FIPS_mode to FIPS_module_mode_set and
5232 FIPS_module_mode. FIPS_mode and FIPS_mode_set will be implemented
5233 outside the validated module in the FIPS capable OpenSSL.
5234
5235 *Steve Henson*
5236
5237 * Minor change to DRBG entropy callback semantics. In some cases
5238 there is no multiple of the block length between min_len and
5239 max_len. Allow the callback to return more than max_len bytes
5240 of entropy but discard any extra: it is the callback's responsibility
5241 to ensure that the extra data discarded does not impact the
5242 requested amount of entropy.
5243
5244 *Steve Henson*
5245
5246 * Add PRNG security strength checks to RSA, DSA and ECDSA using
5247 information in FIPS186-3, SP800-57 and SP800-131A.
5248
5249 *Steve Henson*
5250
5251 * CCM support via EVP. Interface is very similar to GCM case except we
5252 must supply all data in one chunk (i.e. no update, final) and the
5253 message length must be supplied if AAD is used. Add algorithm test
5254 support.
5255
5256 *Steve Henson*
5257
5258 * Initial version of POST overhaul. Add POST callback to allow the status
5259 of POST to be monitored and/or failures induced. Modify fips_test_suite
5260 to use callback. Always run all selftests even if one fails.
5261
5262 *Steve Henson*
5263
5264 * XTS support including algorithm test driver in the fips_gcmtest program.
5265 Note: this does increase the maximum key length from 32 to 64 bytes but
5266 there should be no binary compatibility issues as existing applications
5267 will never use XTS mode.
5268
5269 *Steve Henson*
5270
5271 * Extensive reorganisation of FIPS PRNG behaviour. Remove all dependencies
5272 to OpenSSL RAND code and replace with a tiny FIPS RAND API which also
5273 performs algorithm blocking for unapproved PRNG types. Also do not
5274 set PRNG type in FIPS_mode_set(): leave this to the application.
5275 Add default OpenSSL DRBG handling: sets up FIPS PRNG and seeds with
5276 the standard OpenSSL PRNG: set additional data to a date time vector.
5277
5278 *Steve Henson*
5279
1dc1ea18 5280 * Rename old X9.31 PRNG functions of the form `FIPS_rand*` to `FIPS_x931*`.
5f8e6c50
DMSP
5281 This shouldn't present any incompatibility problems because applications
5282 shouldn't be using these directly and any that are will need to rethink
5283 anyway as the X9.31 PRNG is now deprecated by FIPS 140-2
5284
5285 *Steve Henson*
5286
5287 * Extensive self tests and health checking required by SP800-90 DRBG.
5288 Remove strength parameter from FIPS_drbg_instantiate and always
5289 instantiate at maximum supported strength.
5290
5291 *Steve Henson*
5292
5293 * Add ECDH code to fips module and fips_ecdhvs for primitives only testing.
5294
5295 *Steve Henson*
5296
5297 * New algorithm test program fips_dhvs to handle DH primitives only testing.
5298
5299 *Steve Henson*
5300
5301 * New function DH_compute_key_padded() to compute a DH key and pad with
5302 leading zeroes if needed: this complies with SP800-56A et al.
5303
5304 *Steve Henson*
5305
5306 * Initial implementation of SP800-90 DRBGs for Hash and CTR. Not used by
5307 anything, incomplete, subject to change and largely untested at present.
5308
5309 *Steve Henson*
5310
5311 * Modify fipscanisteronly build option to only build the necessary object
5312 files by filtering FIPS_EX_OBJ through a perl script in crypto/Makefile.
5313
5314 *Steve Henson*
5315
5316 * Add experimental option FIPSSYMS to give all symbols in
5317 fipscanister.o and FIPS or fips prefix. This will avoid
5318 conflicts with future versions of OpenSSL. Add perl script
5319 util/fipsas.pl to preprocess assembly language source files
5320 and rename any affected symbols.
5321
5322 *Steve Henson*
5323
5324 * Add selftest checks and algorithm block of non-fips algorithms in
5325 FIPS mode. Remove DES2 from selftests.
5326
5327 *Steve Henson*
5328
5329 * Add ECDSA code to fips module. Add tiny fips_ecdsa_check to just
5330 return internal method without any ENGINE dependencies. Add new
5331 tiny fips sign and verify functions.
5332
5333 *Steve Henson*
5334
5335 * New build option no-ec2m to disable characteristic 2 code.
5336
5337 *Steve Henson*
5338
5339 * New build option "fipscanisteronly". This only builds fipscanister.o
5340 and (currently) associated fips utilities. Uses the file Makefile.fips
5341 instead of Makefile.org as the prototype.
5342
5343 *Steve Henson*
5344
5345 * Add some FIPS mode restrictions to GCM. Add internal IV generator.
5346 Update fips_gcmtest to use IV generator.
5347
5348 *Steve Henson*
5349
5350 * Initial, experimental EVP support for AES-GCM. AAD can be input by
257e9d03 5351 setting output buffer to NULL. The `*Final` function must be
5f8e6c50
DMSP
5352 called although it will not retrieve any additional data. The tag
5353 can be set or retrieved with a ctrl. The IV length is by default 12
5354 bytes (96 bits) but can be set to an alternative value. If the IV
5355 length exceeds the maximum IV length (currently 16 bytes) it cannot be
5356 set before the key.
5357
5358 *Steve Henson*
5359
5360 * New flag in ciphers: EVP_CIPH_FLAG_CUSTOM_CIPHER. This means the
5361 underlying do_cipher function handles all cipher semantics itself
5362 including padding and finalisation. This is useful if (for example)
5363 an ENGINE cipher handles block padding itself. The behaviour of
5364 do_cipher is subtly changed if this flag is set: the return value
5365 is the number of characters written to the output buffer (zero is
5366 no longer an error code) or a negative error code. Also if the
5367 input buffer is NULL and length 0 finalisation should be performed.
5368
5369 *Steve Henson*
5370
5371 * If a candidate issuer certificate is already part of the constructed
5372 path ignore it: new debug notification X509_V_ERR_PATH_LOOP for this case.
5373
5374 *Steve Henson*
5375
5376 * Improve forward-security support: add functions
5377
5378 void SSL_CTX_set_not_resumable_session_callback(
5379 SSL_CTX *ctx, int (*cb)(SSL *ssl, int is_forward_secure))
5380 void SSL_set_not_resumable_session_callback(
5381 SSL *ssl, int (*cb)(SSL *ssl, int is_forward_secure))
5382
5383 for use by SSL/TLS servers; the callback function will be called whenever a
5384 new session is created, and gets to decide whether the session may be
5385 cached to make it resumable (return 0) or not (return 1). (As by the
5386 SSL/TLS protocol specifications, the session_id sent by the server will be
5387 empty to indicate that the session is not resumable; also, the server will
5388 not generate RFC 4507 (RFC 5077) session tickets.)
5389
5390 A simple reasonable callback implementation is to return is_forward_secure.
5391 This parameter will be set to 1 or 0 depending on the ciphersuite selected
5392 by the SSL/TLS server library, indicating whether it can provide forward
5393 security.
5394
5395 *Emilia Käsper <emilia.kasper@esat.kuleuven.be> (Google)*
5396
5397 * New -verify_name option in command line utilities to set verification
5398 parameters by name.
5399
5400 *Steve Henson*
5401
5402 * Initial CMAC implementation. WARNING: EXPERIMENTAL, API MAY CHANGE.
5403 Add CMAC pkey methods.
5404
5405 *Steve Henson*
5406
5407 * Experimental renegotiation in s_server -www mode. If the client
5408 browses /reneg connection is renegotiated. If /renegcert it is
5409 renegotiated requesting a certificate.
5410
5411 *Steve Henson*
5412
5413 * Add an "external" session cache for debugging purposes to s_server. This
5414 should help trace issues which normally are only apparent in deployed
5415 multi-process servers.
5416
5417 *Steve Henson*
5418
5419 * Extensive audit of libcrypto with DEBUG_UNUSED. Fix many cases where
5420 return value is ignored. NB. The functions RAND_add(), RAND_seed(),
5421 BIO_set_cipher() and some obscure PEM functions were changed so they
5422 can now return an error. The RAND changes required a change to the
5423 RAND_METHOD structure.
5424
5425 *Steve Henson*
5426
44652c16 5427 * New macro `__owur` for "OpenSSL Warn Unused Result". This makes use of
5f8e6c50
DMSP
5428 a gcc attribute to warn if the result of a function is ignored. This
5429 is enable if DEBUG_UNUSED is set. Add to several functions in evp.h
5430 whose return value is often ignored.
5431
5432 *Steve Henson*
5433
5434 * New -noct, -requestct, -requirect and -ctlogfile options for s_client.
5435 These allow SCTs (signed certificate timestamps) to be requested and
5436 validated when establishing a connection.
5437
5438 *Rob Percival <robpercival@google.com>*
5439
44652c16
DMSP
5440OpenSSL 1.0.2
5441-------------
5f8e6c50 5442
257e9d03 5443### Changes between 1.0.2s and 1.0.2t [10 Sep 2019]
5f8e6c50 5444
44652c16 5445 * For built-in EC curves, ensure an EC_GROUP built from the curve name is
ece9304c 5446 used even when parsing explicit parameters, when loading a encoded key
44652c16
DMSP
5447 or calling `EC_GROUP_new_from_ecpkparameters()`/
5448 `EC_GROUP_new_from_ecparameters()`.
5449 This prevents bypass of security hardening and performance gains,
5450 especially for curves with specialized EC_METHODs.
5451 By default, if a key encoded with explicit parameters is loaded and later
ece9304c 5452 encoded, the output is still encoded with explicit parameters, even if
44652c16 5453 internally a "named" EC_GROUP is used for computation.
5f8e6c50 5454
44652c16 5455 *Nicola Tuveri*
5f8e6c50 5456
44652c16
DMSP
5457 * Compute ECC cofactors if not provided during EC_GROUP construction. Before
5458 this change, EC_GROUP_set_generator would accept order and/or cofactor as
5459 NULL. After this change, only the cofactor parameter can be NULL. It also
5460 does some minimal sanity checks on the passed order.
d8dc8538 5461 ([CVE-2019-1547])
5f8e6c50 5462
44652c16 5463 *Billy Bob Brumley*
5f8e6c50 5464
44652c16
DMSP
5465 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey.
5466 An attack is simple, if the first CMS_recipientInfo is valid but the
5467 second CMS_recipientInfo is chosen ciphertext. If the second
5468 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct
5469 encryption key will be replaced by garbage, and the message cannot be
5470 decoded, but if the RSA decryption fails, the correct encryption key is
5471 used and the recipient will not notice the attack.
5472 As a work around for this potential attack the length of the decrypted
5473 key must be equal to the cipher default key length, in case the
d7f3a2cc 5474 certificate is not given and all recipientInfo are tried out.
44652c16
DMSP
5475 The old behaviour can be re-enabled in the CMS code by setting the
5476 CMS_DEBUG_DECRYPT flag.
d8dc8538 5477 ([CVE-2019-1563])
5f8e6c50 5478
44652c16 5479 *Bernd Edlinger*
5f8e6c50 5480
44652c16 5481 * Document issue with installation paths in diverse Windows builds
5f8e6c50 5482
44652c16
DMSP
5483 '/usr/local/ssl' is an unsafe prefix for location to install OpenSSL
5484 binaries and run-time config file.
d8dc8538 5485 ([CVE-2019-1552])
5f8e6c50 5486
44652c16 5487 *Richard Levitte*
5f8e6c50 5488
257e9d03 5489### Changes between 1.0.2r and 1.0.2s [28 May 2019]
5f8e6c50 5490
44652c16 5491 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024.
ec2bfb7d
DDO
5492 This changes the size when using the `genpkey` command when no size is given.
5493 It fixes an omission in earlier changes that changed all RSA, DSA and DH
5494 generation commands to use 2048 bits by default.
5f8e6c50 5495
44652c16 5496 *Kurt Roeckx*
5f8e6c50 5497
44652c16 5498 * Add FIPS support for Android Arm 64-bit
5f8e6c50 5499
44652c16
DMSP
5500 Support for Android Arm 64-bit was added to the OpenSSL FIPS Object
5501 Module in Version 2.0.10. For some reason, the corresponding target
5502 'android64-aarch64' was missing OpenSSL 1.0.2, whence it could not be
5503 built with FIPS support on Android Arm 64-bit. This omission has been
5504 fixed.
5f8e6c50 5505
44652c16 5506 *Matthias St. Pierre*
5f8e6c50 5507
257e9d03 5508### Changes between 1.0.2q and 1.0.2r [26 Feb 2019]
5f8e6c50 5509
44652c16 5510 * 0-byte record padding oracle
5f8e6c50 5511
44652c16
DMSP
5512 If an application encounters a fatal protocol error and then calls
5513 SSL_shutdown() twice (once to send a close_notify, and once to receive one)
5514 then OpenSSL can respond differently to the calling application if a 0 byte
5515 record is received with invalid padding compared to if a 0 byte record is
5516 received with an invalid MAC. If the application then behaves differently
5517 based on that in a way that is detectable to the remote peer, then this
5518 amounts to a padding oracle that could be used to decrypt data.
5f8e6c50 5519
44652c16
DMSP
5520 In order for this to be exploitable "non-stitched" ciphersuites must be in
5521 use. Stitched ciphersuites are optimised implementations of certain
5522 commonly used ciphersuites. Also the application must call SSL_shutdown()
5523 twice even if a protocol error has occurred (applications should not do
5524 this but some do anyway).
5f8e6c50 5525
44652c16
DMSP
5526 This issue was discovered by Juraj Somorovsky, Robert Merget and Nimrod
5527 Aviram, with additional investigation by Steven Collison and Andrew
5528 Hourselt. It was reported to OpenSSL on 10th December 2018.
d8dc8538 5529 ([CVE-2019-1559])
5f8e6c50
DMSP
5530
5531 *Matt Caswell*
5532
44652c16 5533 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0().
5f8e6c50 5534
44652c16 5535 *Richard Levitte*
5f8e6c50 5536
257e9d03 5537### Changes between 1.0.2p and 1.0.2q [20 Nov 2018]
5f8e6c50 5538
44652c16 5539 * Microarchitecture timing vulnerability in ECC scalar multiplication
5f8e6c50 5540
44652c16
DMSP
5541 OpenSSL ECC scalar multiplication, used in e.g. ECDSA and ECDH, has been
5542 shown to be vulnerable to a microarchitecture timing side channel attack.
5543 An attacker with sufficient access to mount local timing attacks during
5544 ECDSA signature generation could recover the private key.
5f8e6c50 5545
44652c16
DMSP
5546 This issue was reported to OpenSSL on 26th October 2018 by Alejandro
5547 Cabrera Aldaya, Billy Brumley, Sohaib ul Hassan, Cesar Pereida Garcia and
5548 Nicola Tuveri.
d8dc8538 5549 ([CVE-2018-5407])
5f8e6c50 5550
44652c16 5551 *Billy Brumley*
5f8e6c50 5552
44652c16 5553 * Timing vulnerability in DSA signature generation
5f8e6c50 5554
44652c16
DMSP
5555 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a
5556 timing side channel attack. An attacker could use variations in the signing
5557 algorithm to recover the private key.
5f8e6c50 5558
44652c16 5559 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser.
d8dc8538 5560 ([CVE-2018-0734])
5f8e6c50 5561
44652c16 5562 *Paul Dale*
5f8e6c50 5563
44652c16
DMSP
5564 * Resolve a compatibility issue in EC_GROUP handling with the FIPS Object
5565 Module, accidentally introduced while backporting security fixes from the
5566 development branch and hindering the use of ECC in FIPS mode.
5f8e6c50 5567
44652c16 5568 *Nicola Tuveri*
5f8e6c50 5569
257e9d03 5570### Changes between 1.0.2o and 1.0.2p [14 Aug 2018]
5f8e6c50 5571
44652c16 5572 * Client DoS due to large DH parameter
5f8e6c50 5573
44652c16
DMSP
5574 During key agreement in a TLS handshake using a DH(E) based ciphersuite a
5575 malicious server can send a very large prime value to the client. This will
5576 cause the client to spend an unreasonably long period of time generating a
5577 key for this prime resulting in a hang until the client has finished. This
5578 could be exploited in a Denial Of Service attack.
5f8e6c50 5579
44652c16 5580 This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken
d8dc8538 5581 ([CVE-2018-0732])
5f8e6c50 5582
44652c16 5583 *Guido Vranken*
5f8e6c50 5584
44652c16 5585 * Cache timing vulnerability in RSA Key Generation
5f8e6c50 5586
44652c16
DMSP
5587 The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to
5588 a cache timing side channel attack. An attacker with sufficient access to
5589 mount cache timing attacks during the RSA key generation process could
5590 recover the private key.
5f8e6c50 5591
44652c16
DMSP
5592 This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera
5593 Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia.
d8dc8538 5594 ([CVE-2018-0737])
5f8e6c50 5595
44652c16 5596 *Billy Brumley*
5f8e6c50 5597
44652c16
DMSP
5598 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str
5599 parameter is no longer accepted, as it leads to a corrupt table. NULL
5600 pem_str is reserved for alias entries only.
5f8e6c50 5601
44652c16 5602 *Richard Levitte*
5f8e6c50 5603
44652c16
DMSP
5604 * Revert blinding in ECDSA sign and instead make problematic addition
5605 length-invariant. Switch even to fixed-length Montgomery multiplication.
5f8e6c50 5606
44652c16 5607 *Andy Polyakov*
5f8e6c50 5608
44652c16
DMSP
5609 * Change generating and checking of primes so that the error rate of not
5610 being prime depends on the intended use based on the size of the input.
5611 For larger primes this will result in more rounds of Miller-Rabin.
5612 The maximal error rate for primes with more than 1080 bits is lowered
5613 to 2^-128.
5f8e6c50 5614
44652c16 5615 *Kurt Roeckx, Annie Yousar*
5f8e6c50 5616
44652c16 5617 * Increase the number of Miller-Rabin rounds for DSA key generating to 64.
5f8e6c50 5618
44652c16 5619 *Kurt Roeckx*
5f8e6c50 5620
44652c16
DMSP
5621 * Add blinding to ECDSA and DSA signatures to protect against side channel
5622 attacks discovered by Keegan Ryan (NCC Group).
5f8e6c50 5623
44652c16 5624 *Matt Caswell*
5f8e6c50 5625
44652c16
DMSP
5626 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we
5627 now allow empty (zero character) pass phrases.
5f8e6c50 5628
44652c16 5629 *Richard Levitte*
5f8e6c50 5630
44652c16
DMSP
5631 * Certificate time validation (X509_cmp_time) enforces stricter
5632 compliance with RFC 5280. Fractional seconds and timezone offsets
5633 are no longer allowed.
5f8e6c50 5634
44652c16 5635 *Emilia Käsper*
5f8e6c50 5636
257e9d03 5637### Changes between 1.0.2n and 1.0.2o [27 Mar 2018]
5f8e6c50 5638
44652c16 5639 * Constructed ASN.1 types with a recursive definition could exceed the stack
5f8e6c50 5640
44652c16
DMSP
5641 Constructed ASN.1 types with a recursive definition (such as can be found
5642 in PKCS7) could eventually exceed the stack given malicious input with
5643 excessive recursion. This could result in a Denial Of Service attack. There
5644 are no such structures used within SSL/TLS that come from untrusted sources
5645 so this is considered safe.
5f8e6c50 5646
44652c16
DMSP
5647 This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz
5648 project.
d8dc8538 5649 ([CVE-2018-0739])
5f8e6c50 5650
44652c16 5651 *Matt Caswell*
5f8e6c50 5652
257e9d03 5653### Changes between 1.0.2m and 1.0.2n [7 Dec 2017]
5f8e6c50 5654
44652c16 5655 * Read/write after SSL object in error state
5f8e6c50 5656
44652c16
DMSP
5657 OpenSSL 1.0.2 (starting from version 1.0.2b) introduced an "error state"
5658 mechanism. The intent was that if a fatal error occurred during a handshake
5659 then OpenSSL would move into the error state and would immediately fail if
5660 you attempted to continue the handshake. This works as designed for the
5661 explicit handshake functions (SSL_do_handshake(), SSL_accept() and
5662 SSL_connect()), however due to a bug it does not work correctly if
5663 SSL_read() or SSL_write() is called directly. In that scenario, if the
5664 handshake fails then a fatal error will be returned in the initial function
5665 call. If SSL_read()/SSL_write() is subsequently called by the application
5666 for the same SSL object then it will succeed and the data is passed without
5667 being decrypted/encrypted directly from the SSL/TLS record layer.
5f8e6c50 5668
44652c16
DMSP
5669 In order to exploit this issue an application bug would have to be present
5670 that resulted in a call to SSL_read()/SSL_write() being issued after having
5671 already received a fatal error.
5f8e6c50 5672
44652c16 5673 This issue was reported to OpenSSL by David Benjamin (Google).
d8dc8538 5674 ([CVE-2017-3737])
5f8e6c50
DMSP
5675
5676 *Matt Caswell*
5677
44652c16 5678 * rsaz_1024_mul_avx2 overflow bug on x86_64
5f8e6c50 5679
44652c16
DMSP
5680 There is an overflow bug in the AVX2 Montgomery multiplication procedure
5681 used in exponentiation with 1024-bit moduli. No EC algorithms are affected.
5682 Analysis suggests that attacks against RSA and DSA as a result of this
5683 defect would be very difficult to perform and are not believed likely.
5684 Attacks against DH1024 are considered just feasible, because most of the
5685 work necessary to deduce information about a private key may be performed
5686 offline. The amount of resources required for such an attack would be
5687 significant. However, for an attack on TLS to be meaningful, the server
5688 would have to share the DH1024 private key among multiple clients, which is
5689 no longer an option since CVE-2016-0701.
5f8e6c50 5690
44652c16
DMSP
5691 This only affects processors that support the AVX2 but not ADX extensions
5692 like Intel Haswell (4th generation).
5f8e6c50 5693
44652c16
DMSP
5694 This issue was reported to OpenSSL by David Benjamin (Google). The issue
5695 was originally found via the OSS-Fuzz project.
d8dc8538 5696 ([CVE-2017-3738])
5f8e6c50 5697
44652c16 5698 *Andy Polyakov*
5f8e6c50 5699
257e9d03 5700### Changes between 1.0.2l and 1.0.2m [2 Nov 2017]
44652c16
DMSP
5701
5702 * bn_sqrx8x_internal carry bug on x86_64
5f8e6c50
DMSP
5703
5704 There is a carry propagating bug in the x86_64 Montgomery squaring
5705 procedure. No EC algorithms are affected. Analysis suggests that attacks
5706 against RSA and DSA as a result of this defect would be very difficult to
5707 perform and are not believed likely. Attacks against DH are considered just
5708 feasible (although very difficult) because most of the work necessary to
5709 deduce information about a private key may be performed offline. The amount
5710 of resources required for such an attack would be very significant and
5711 likely only accessible to a limited number of attackers. An attacker would
5712 additionally need online access to an unpatched system using the target
5713 private key in a scenario with persistent DH parameters and a private
44652c16 5714 key that is shared between multiple clients.
5f8e6c50 5715
44652c16
DMSP
5716 This only affects processors that support the BMI1, BMI2 and ADX extensions
5717 like Intel Broadwell (5th generation) and later or AMD Ryzen.
5718
5719 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 5720 ([CVE-2017-3736])
5f8e6c50
DMSP
5721
5722 *Andy Polyakov*
5723
44652c16 5724 * Malformed X.509 IPAddressFamily could cause OOB read
5f8e6c50 5725
44652c16
DMSP
5726 If an X.509 certificate has a malformed IPAddressFamily extension,
5727 OpenSSL could do a one-byte buffer overread. The most likely result
5728 would be an erroneous display of the certificate in text format.
5f8e6c50 5729
44652c16 5730 This issue was reported to OpenSSL by the OSS-Fuzz project.
5f8e6c50 5731
44652c16 5732 *Rich Salz*
5f8e6c50 5733
257e9d03 5734### Changes between 1.0.2k and 1.0.2l [25 May 2017]
5f8e6c50 5735
44652c16
DMSP
5736 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
5737 platform rather than 'mingw'.
5f8e6c50 5738
44652c16 5739 *Richard Levitte*
5f8e6c50 5740
257e9d03 5741### Changes between 1.0.2j and 1.0.2k [26 Jan 2017]
5f8e6c50 5742
44652c16 5743 * Truncated packet could crash via OOB read
5f8e6c50 5744
44652c16
DMSP
5745 If one side of an SSL/TLS path is running on a 32-bit host and a specific
5746 cipher is being used, then a truncated packet can cause that host to
5747 perform an out-of-bounds read, usually resulting in a crash.
5f8e6c50 5748
44652c16 5749 This issue was reported to OpenSSL by Robert Święcki of Google.
d8dc8538 5750 ([CVE-2017-3731])
5f8e6c50 5751
44652c16 5752 *Andy Polyakov*
5f8e6c50 5753
44652c16 5754 * BN_mod_exp may produce incorrect results on x86_64
5f8e6c50 5755
44652c16
DMSP
5756 There is a carry propagating bug in the x86_64 Montgomery squaring
5757 procedure. No EC algorithms are affected. Analysis suggests that attacks
5758 against RSA and DSA as a result of this defect would be very difficult to
5759 perform and are not believed likely. Attacks against DH are considered just
5760 feasible (although very difficult) because most of the work necessary to
5761 deduce information about a private key may be performed offline. The amount
5762 of resources required for such an attack would be very significant and
5763 likely only accessible to a limited number of attackers. An attacker would
5764 additionally need online access to an unpatched system using the target
5765 private key in a scenario with persistent DH parameters and a private
5766 key that is shared between multiple clients. For example this can occur by
5767 default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very
5768 similar to CVE-2015-3193 but must be treated as a separate problem.
5f8e6c50 5769
44652c16 5770 This issue was reported to OpenSSL by the OSS-Fuzz project.
d8dc8538 5771 ([CVE-2017-3732])
5f8e6c50 5772
44652c16 5773 *Andy Polyakov*
5f8e6c50 5774
44652c16 5775 * Montgomery multiplication may produce incorrect results
5f8e6c50 5776
44652c16
DMSP
5777 There is a carry propagating bug in the Broadwell-specific Montgomery
5778 multiplication procedure that handles input lengths divisible by, but
5779 longer than 256 bits. Analysis suggests that attacks against RSA, DSA
5780 and DH private keys are impossible. This is because the subroutine in
5781 question is not used in operations with the private key itself and an input
5782 of the attacker's direct choice. Otherwise the bug can manifest itself as
5783 transient authentication and key negotiation failures or reproducible
5784 erroneous outcome of public-key operations with specially crafted input.
5785 Among EC algorithms only Brainpool P-512 curves are affected and one
5786 presumably can attack ECDH key negotiation. Impact was not analyzed in
5787 detail, because pre-requisites for attack are considered unlikely. Namely
5788 multiple clients have to choose the curve in question and the server has to
5789 share the private key among them, neither of which is default behaviour.
5790 Even then only clients that chose the curve will be affected.
5f8e6c50 5791
44652c16
DMSP
5792 This issue was publicly reported as transient failures and was not
5793 initially recognized as a security issue. Thanks to Richard Morgan for
5794 providing reproducible case.
d8dc8538 5795 ([CVE-2016-7055])
44652c16
DMSP
5796
5797 *Andy Polyakov*
5798
5799 * OpenSSL now fails if it receives an unrecognised record type in TLS1.0
5800 or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to
5801 prevent issues where no progress is being made and the peer continually
5802 sends unrecognised record types, using up resources processing them.
5f8e6c50
DMSP
5803
5804 *Matt Caswell*
5805
257e9d03 5806### Changes between 1.0.2i and 1.0.2j [26 Sep 2016]
5f8e6c50 5807
44652c16 5808 * Missing CRL sanity check
5f8e6c50 5809
44652c16
DMSP
5810 A bug fix which included a CRL sanity check was added to OpenSSL 1.1.0
5811 but was omitted from OpenSSL 1.0.2i. As a result any attempt to use
5812 CRLs in OpenSSL 1.0.2i will crash with a null pointer exception.
5f8e6c50 5813
44652c16 5814 This issue only affects the OpenSSL 1.0.2i
d8dc8538 5815 ([CVE-2016-7052])
5f8e6c50 5816
44652c16 5817 *Matt Caswell*
5f8e6c50 5818
257e9d03 5819### Changes between 1.0.2h and 1.0.2i [22 Sep 2016]
5f8e6c50 5820
44652c16 5821 * OCSP Status Request extension unbounded memory growth
5f8e6c50 5822
44652c16
DMSP
5823 A malicious client can send an excessively large OCSP Status Request
5824 extension. If that client continually requests renegotiation, sending a
5825 large OCSP Status Request extension each time, then there will be unbounded
5826 memory growth on the server. This will eventually lead to a Denial Of
5827 Service attack through memory exhaustion. Servers with a default
5828 configuration are vulnerable even if they do not support OCSP. Builds using
5829 the "no-ocsp" build time option are not affected.
5f8e6c50 5830
44652c16 5831 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5832 ([CVE-2016-6304])
5f8e6c50 5833
44652c16 5834 *Matt Caswell*
5f8e6c50 5835
44652c16
DMSP
5836 * In order to mitigate the SWEET32 attack, the DES ciphers were moved from
5837 HIGH to MEDIUM.
5f8e6c50 5838
44652c16
DMSP
5839 This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan
5840 Leurent (INRIA)
d8dc8538 5841 ([CVE-2016-2183])
5f8e6c50 5842
44652c16 5843 *Rich Salz*
5f8e6c50 5844
44652c16 5845 * OOB write in MDC2_Update()
5f8e6c50 5846
44652c16
DMSP
5847 An overflow can occur in MDC2_Update() either if called directly or
5848 through the EVP_DigestUpdate() function using MDC2. If an attacker
5849 is able to supply very large amounts of input data after a previous
5850 call to EVP_EncryptUpdate() with a partial block then a length check
5851 can overflow resulting in a heap corruption.
5f8e6c50 5852
44652c16
DMSP
5853 The amount of data needed is comparable to SIZE_MAX which is impractical
5854 on most platforms.
5f8e6c50 5855
44652c16 5856 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5857 ([CVE-2016-6303])
5f8e6c50
DMSP
5858
5859 *Stephen Henson*
5860
44652c16 5861 * Malformed SHA512 ticket DoS
5f8e6c50 5862
44652c16
DMSP
5863 If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a
5864 DoS attack where a malformed ticket will result in an OOB read which will
5865 ultimately crash.
5f8e6c50 5866
44652c16
DMSP
5867 The use of SHA512 in TLS session tickets is comparatively rare as it requires
5868 a custom server callback and ticket lookup mechanism.
5f8e6c50 5869
44652c16 5870 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5871 ([CVE-2016-6302])
5f8e6c50 5872
44652c16 5873 *Stephen Henson*
5f8e6c50 5874
44652c16 5875 * OOB write in BN_bn2dec()
5f8e6c50 5876
44652c16
DMSP
5877 The function BN_bn2dec() does not check the return value of BN_div_word().
5878 This can cause an OOB write if an application uses this function with an
5879 overly large BIGNUM. This could be a problem if an overly large certificate
5880 or CRL is printed out from an untrusted source. TLS is not affected because
5881 record limits will reject an oversized certificate before it is parsed.
5f8e6c50 5882
44652c16 5883 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5884 ([CVE-2016-2182])
5f8e6c50 5885
44652c16 5886 *Stephen Henson*
5f8e6c50 5887
44652c16 5888 * OOB read in TS_OBJ_print_bio()
5f8e6c50 5889
44652c16
DMSP
5890 The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is
5891 the total length the OID text representation would use and not the amount
5892 of data written. This will result in OOB reads when large OIDs are
5893 presented.
5f8e6c50 5894
44652c16 5895 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5896 ([CVE-2016-2180])
5f8e6c50 5897
44652c16 5898 *Stephen Henson*
5f8e6c50 5899
44652c16 5900 * Pointer arithmetic undefined behaviour
5f8e6c50 5901
44652c16 5902 Avoid some undefined pointer arithmetic
5f8e6c50 5903
44652c16
DMSP
5904 A common idiom in the codebase is to check limits in the following manner:
5905 "p + len > limit"
5f8e6c50 5906
44652c16
DMSP
5907 Where "p" points to some malloc'd data of SIZE bytes and
5908 limit == p + SIZE
5f8e6c50 5909
44652c16
DMSP
5910 "len" here could be from some externally supplied data (e.g. from a TLS
5911 message).
5f8e6c50 5912
44652c16
DMSP
5913 The rules of C pointer arithmetic are such that "p + len" is only well
5914 defined where len <= SIZE. Therefore the above idiom is actually
5915 undefined behaviour.
5f8e6c50 5916
44652c16
DMSP
5917 For example this could cause problems if some malloc implementation
5918 provides an address for "p" such that "p + len" actually overflows for
5919 values of len that are too big and therefore p + len < limit.
5f8e6c50 5920
44652c16 5921 This issue was reported to OpenSSL by Guido Vranken
d8dc8538 5922 ([CVE-2016-2177])
5f8e6c50 5923
44652c16 5924 *Matt Caswell*
5f8e6c50 5925
44652c16 5926 * Constant time flag not preserved in DSA signing
5f8e6c50 5927
44652c16
DMSP
5928 Operations in the DSA signing algorithm should run in constant time in
5929 order to avoid side channel attacks. A flaw in the OpenSSL DSA
5930 implementation means that a non-constant time codepath is followed for
5931 certain operations. This has been demonstrated through a cache-timing
5932 attack to be sufficient for an attacker to recover the private DSA key.
5f8e6c50 5933
44652c16
DMSP
5934 This issue was reported by César Pereida (Aalto University), Billy Brumley
5935 (Tampere University of Technology), and Yuval Yarom (The University of
5936 Adelaide and NICTA).
d8dc8538 5937 ([CVE-2016-2178])
5f8e6c50 5938
44652c16 5939 *César Pereida*
5f8e6c50 5940
44652c16 5941 * DTLS buffered message DoS
5f8e6c50 5942
44652c16
DMSP
5943 In a DTLS connection where handshake messages are delivered out-of-order
5944 those messages that OpenSSL is not yet ready to process will be buffered
5945 for later use. Under certain circumstances, a flaw in the logic means that
5946 those messages do not get removed from the buffer even though the handshake
5947 has been completed. An attacker could force up to approx. 15 messages to
5948 remain in the buffer when they are no longer required. These messages will
5949 be cleared when the DTLS connection is closed. The default maximum size for
d7f3a2cc
F
5950 a message is 100k. Therefore, the attacker could force an additional 1500k
5951 to be consumed per connection. By opening many simultaneous connections an
44652c16 5952 attacker could cause a DoS attack through memory exhaustion.
5f8e6c50 5953
44652c16 5954 This issue was reported to OpenSSL by Quan Luo.
d8dc8538 5955 ([CVE-2016-2179])
5f8e6c50 5956
44652c16 5957 *Matt Caswell*
5f8e6c50 5958
44652c16 5959 * DTLS replay protection DoS
5f8e6c50 5960
44652c16
DMSP
5961 A flaw in the DTLS replay attack protection mechanism means that records
5962 that arrive for future epochs update the replay protection "window" before
5963 the MAC for the record has been validated. This could be exploited by an
5964 attacker by sending a record for the next epoch (which does not have to
5965 decrypt or have a valid MAC), with a very large sequence number. This means
5966 that all subsequent legitimate packets are dropped causing a denial of
5967 service for a specific DTLS connection.
5f8e6c50 5968
44652c16 5969 This issue was reported to OpenSSL by the OCAP audit team.
d8dc8538 5970 ([CVE-2016-2181])
5f8e6c50 5971
44652c16 5972 *Matt Caswell*
5f8e6c50 5973
44652c16 5974 * Certificate message OOB reads
5f8e6c50 5975
44652c16
DMSP
5976 In OpenSSL 1.0.2 and earlier some missing message length checks can result
5977 in OOB reads of up to 2 bytes beyond an allocated buffer. There is a
5978 theoretical DoS risk but this has not been observed in practice on common
5979 platforms.
5f8e6c50 5980
44652c16
DMSP
5981 The messages affected are client certificate, client certificate request
5982 and server certificate. As a result the attack can only be performed
5983 against a client or a server which enables client authentication.
5f8e6c50 5984
44652c16 5985 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 5986 ([CVE-2016-6306])
5f8e6c50 5987
44652c16 5988 *Stephen Henson*
5f8e6c50 5989
257e9d03 5990### Changes between 1.0.2g and 1.0.2h [3 May 2016]
5f8e6c50 5991
44652c16 5992 * Prevent padding oracle in AES-NI CBC MAC check
5f8e6c50 5993
44652c16
DMSP
5994 A MITM attacker can use a padding oracle attack to decrypt traffic
5995 when the connection uses an AES CBC cipher and the server support
5996 AES-NI.
5f8e6c50 5997
44652c16 5998 This issue was introduced as part of the fix for Lucky 13 padding
d8dc8538 5999 attack ([CVE-2013-0169]). The padding check was rewritten to be in
44652c16
DMSP
6000 constant time by making sure that always the same bytes are read and
6001 compared against either the MAC or padding bytes. But it no longer
6002 checked that there was enough data to have both the MAC and padding
6003 bytes.
5f8e6c50 6004
44652c16 6005 This issue was reported by Juraj Somorovsky using TLS-Attacker.
5f8e6c50 6006
44652c16 6007 *Kurt Roeckx*
5f8e6c50 6008
44652c16
DMSP
6009 * Fix EVP_EncodeUpdate overflow
6010
6011 An overflow can occur in the EVP_EncodeUpdate() function which is used for
6012 Base64 encoding of binary data. If an attacker is able to supply very large
6013 amounts of input data then a length check can overflow resulting in a heap
6014 corruption.
6015
6016 Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by
257e9d03 6017 the `PEM_write_bio*` family of functions. These are mainly used within the
44652c16
DMSP
6018 OpenSSL command line applications, so any application which processes data
6019 from an untrusted source and outputs it as a PEM file should be considered
6020 vulnerable to this issue. User applications that call these APIs directly
6021 with large amounts of untrusted data may also be vulnerable.
6022
6023 This issue was reported by Guido Vranken.
d8dc8538 6024 ([CVE-2016-2105])
5f8e6c50
DMSP
6025
6026 *Matt Caswell*
6027
44652c16 6028 * Fix EVP_EncryptUpdate overflow
5f8e6c50 6029
44652c16
DMSP
6030 An overflow can occur in the EVP_EncryptUpdate() function. If an attacker
6031 is able to supply very large amounts of input data after a previous call to
6032 EVP_EncryptUpdate() with a partial block then a length check can overflow
6033 resulting in a heap corruption. Following an analysis of all OpenSSL
6034 internal usage of the EVP_EncryptUpdate() function all usage is one of two
6035 forms. The first form is where the EVP_EncryptUpdate() call is known to be
6036 the first called function after an EVP_EncryptInit(), and therefore that
6037 specific call must be safe. The second form is where the length passed to
6038 EVP_EncryptUpdate() can be seen from the code to be some small value and
6039 therefore there is no possibility of an overflow. Since all instances are
6040 one of these two forms, it is believed that there can be no overflows in
6041 internal code due to this problem. It should be noted that
6042 EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths.
6043 Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances
6044 of these calls have also been analysed too and it is believed there are no
6045 instances in internal usage where an overflow could occur.
5f8e6c50 6046
44652c16 6047 This issue was reported by Guido Vranken.
d8dc8538 6048 ([CVE-2016-2106])
5f8e6c50
DMSP
6049
6050 *Matt Caswell*
6051
44652c16 6052 * Prevent ASN.1 BIO excessive memory allocation
5f8e6c50 6053
44652c16
DMSP
6054 When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio()
6055 a short invalid encoding can cause allocation of large amounts of memory
6056 potentially consuming excessive resources or exhausting memory.
5f8e6c50 6057
44652c16
DMSP
6058 Any application parsing untrusted data through d2i BIO functions is
6059 affected. The memory based functions such as d2i_X509() are *not* affected.
6060 Since the memory based functions are used by the TLS library, TLS
6061 applications are not affected.
6062
6063 This issue was reported by Brian Carpenter.
d8dc8538 6064 ([CVE-2016-2109])
5f8e6c50
DMSP
6065
6066 *Stephen Henson*
6067
44652c16 6068 * EBCDIC overread
5f8e6c50 6069
44652c16
DMSP
6070 ASN1 Strings that are over 1024 bytes can cause an overread in applications
6071 using the X509_NAME_oneline() function on EBCDIC systems. This could result
6072 in arbitrary stack data being returned in the buffer.
5f8e6c50 6073
44652c16 6074 This issue was reported by Guido Vranken.
d8dc8538 6075 ([CVE-2016-2176])
5f8e6c50 6076
44652c16 6077 *Matt Caswell*
5f8e6c50 6078
44652c16
DMSP
6079 * Modify behavior of ALPN to invoke callback after SNI/servername
6080 callback, such that updates to the SSL_CTX affect ALPN.
5f8e6c50 6081
44652c16 6082 *Todd Short*
5f8e6c50 6083
44652c16
DMSP
6084 * Remove LOW from the DEFAULT cipher list. This removes singles DES from the
6085 default.
6086
6087 *Kurt Roeckx*
6088
6089 * Only remove the SSLv2 methods with the no-ssl2-method option. When the
6090 methods are enabled and ssl2 is disabled the methods return NULL.
6091
6092 *Kurt Roeckx*
6093
257e9d03 6094### Changes between 1.0.2f and 1.0.2g [1 Mar 2016]
44652c16
DMSP
6095
6096* Disable weak ciphers in SSLv3 and up in default builds of OpenSSL.
6097 Builds that are not configured with "enable-weak-ssl-ciphers" will not
6098 provide any "EXPORT" or "LOW" strength ciphers.
6099
6100 *Viktor Dukhovni*
6101
6102* Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2
6103 is by default disabled at build-time. Builds that are not configured with
6104 "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used,
6105 users who want to negotiate SSLv2 via the version-flexible SSLv23_method()
6106 will need to explicitly call either of:
6107
6108 SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
6109 or
6110 SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
6111
6112 as appropriate. Even if either of those is used, or the application
6113 explicitly uses the version-specific SSLv2_method() or its client and
6114 server variants, SSLv2 ciphers vulnerable to exhaustive search key
6115 recovery have been removed. Specifically, the SSLv2 40-bit EXPORT
6116 ciphers, and SSLv2 56-bit DES are no longer available.
d8dc8538 6117 ([CVE-2016-0800])
44652c16
DMSP
6118
6119 *Viktor Dukhovni*
6120
6121 * Fix a double-free in DSA code
6122
6123 A double free bug was discovered when OpenSSL parses malformed DSA private
6124 keys and could lead to a DoS attack or memory corruption for applications
6125 that receive DSA private keys from untrusted sources. This scenario is
6126 considered rare.
6127
6128 This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using
6129 libFuzzer.
d8dc8538 6130 ([CVE-2016-0705])
44652c16
DMSP
6131
6132 *Stephen Henson*
6133
6134 * Disable SRP fake user seed to address a server memory leak.
6135
6136 Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
6137
6138 SRP_VBASE_get_by_user had inconsistent memory management behaviour.
6139 In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user
6140 was changed to ignore the "fake user" SRP seed, even if the seed
6141 is configured.
6142
6143 Users should use SRP_VBASE_get1_by_user instead. Note that in
6144 SRP_VBASE_get1_by_user, caller must free the returned value. Note
6145 also that even though configuring the SRP seed attempts to hide
6146 invalid usernames by continuing the handshake with fake
6147 credentials, this behaviour is not constant time and no strong
6148 guarantees are made that the handshake is indistinguishable from
6149 that of a valid user.
d8dc8538 6150 ([CVE-2016-0798])
44652c16
DMSP
6151
6152 *Emilia Käsper*
6153
6154 * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption
6155
6156 In the BN_hex2bn function the number of hex digits is calculated using an
1dc1ea18
DDO
6157 int value `i`. Later `bn_expand` is called with a value of `i * 4`. For
6158 large values of `i` this can result in `bn_expand` not allocating any
6159 memory because `i * 4` is negative. This can leave the internal BIGNUM data
44652c16 6160 field as NULL leading to a subsequent NULL ptr deref. For very large values
1dc1ea18 6161 of `i`, the calculation `i * 4` could be a positive value smaller than `i`.
44652c16
DMSP
6162 In this case memory is allocated to the internal BIGNUM data field, but it
6163 is insufficiently sized leading to heap corruption. A similar issue exists
6164 in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn
6165 is ever called by user applications with very large untrusted hex/dec data.
6166 This is anticipated to be a rare occurrence.
6167
6168 All OpenSSL internal usage of these functions use data that is not expected
6169 to be untrusted, e.g. config file data or application command line
6170 arguments. If user developed applications generate config file data based
6171 on untrusted data then it is possible that this could also lead to security
6172 consequences. This is also anticipated to be rare.
6173
6174 This issue was reported to OpenSSL by Guido Vranken.
d8dc8538 6175 ([CVE-2016-0797])
44652c16
DMSP
6176
6177 *Matt Caswell*
6178
257e9d03 6179 * Fix memory issues in `BIO_*printf` functions
44652c16 6180
1dc1ea18 6181 The internal `fmtstr` function used in processing a "%s" format string in
257e9d03 6182 the `BIO_*printf` functions could overflow while calculating the length of a
44652c16
DMSP
6183 string and cause an OOB read when printing very long strings.
6184
1dc1ea18 6185 Additionally the internal `doapr_outch` function can attempt to write to an
44652c16
DMSP
6186 OOB memory location (at an offset from the NULL pointer) in the event of a
6187 memory allocation failure. In 1.0.2 and below this could be caused where
6188 the size of a buffer to be allocated is greater than INT_MAX. E.g. this
6189 could be in processing a very long "%s" format string. Memory leaks can
6190 also occur.
6191
6192 The first issue may mask the second issue dependent on compiler behaviour.
6193 These problems could enable attacks where large amounts of untrusted data
257e9d03 6194 is passed to the `BIO_*printf` functions. If applications use these functions
44652c16
DMSP
6195 in this way then they could be vulnerable. OpenSSL itself uses these
6196 functions when printing out human-readable dumps of ASN.1 data. Therefore
6197 applications that print this data could be vulnerable if the data is from
6198 untrusted sources. OpenSSL command line applications could also be
6199 vulnerable where they print out ASN.1 data, or if untrusted data is passed
6200 as command line arguments.
6201
6202 Libssl is not considered directly vulnerable. Additionally certificates etc
6203 received via remote connections via libssl are also unlikely to be able to
6204 trigger these issues because of message size limits enforced within libssl.
6205
6206 This issue was reported to OpenSSL Guido Vranken.
d8dc8538 6207 ([CVE-2016-0799])
44652c16
DMSP
6208
6209 *Matt Caswell*
6210
6211 * Side channel attack on modular exponentiation
6212
6213 A side-channel attack was found which makes use of cache-bank conflicts on
6214 the Intel Sandy-Bridge microarchitecture which could lead to the recovery
6215 of RSA keys. The ability to exploit this issue is limited as it relies on
6216 an attacker who has control of code in a thread running on the same
6217 hyper-threaded core as the victim thread which is performing decryptions.
6218
6219 This issue was reported to OpenSSL by Yuval Yarom, The University of
6220 Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and
6221 Nadia Heninger, University of Pennsylvania with more information at
257e9d03 6222 <http://cachebleed.info>.
d8dc8538 6223 ([CVE-2016-0702])
44652c16
DMSP
6224
6225 *Andy Polyakov*
6226
ec2bfb7d 6227 * Change the `req` command to generate a 2048-bit RSA/DSA key by default,
44652c16
DMSP
6228 if no keysize is specified with default_bits. This fixes an
6229 omission in an earlier change that changed all RSA/DSA key generation
ec2bfb7d 6230 commands to use 2048 bits by default.
44652c16
DMSP
6231
6232 *Emilia Käsper*
6233
257e9d03
RS
6234### Changes between 1.0.2e and 1.0.2f [28 Jan 2016]
6235
44652c16
DMSP
6236 * DH small subgroups
6237
6238 Historically OpenSSL only ever generated DH parameters based on "safe"
6239 primes. More recently (in version 1.0.2) support was provided for
6240 generating X9.42 style parameter files such as those required for RFC 5114
6241 support. The primes used in such files may not be "safe". Where an
6242 application is using DH configured with parameters based on primes that are
6243 not "safe" then an attacker could use this fact to find a peer's private
6244 DH exponent. This attack requires that the attacker complete multiple
6245 handshakes in which the peer uses the same private DH exponent. For example
6246 this could be used to discover a TLS server's private DH exponent if it's
6247 reusing the private DH exponent or it's using a static DH ciphersuite.
6248
6249 OpenSSL provides the option SSL_OP_SINGLE_DH_USE for ephemeral DH (DHE) in
6250 TLS. It is not on by default. If the option is not set then the server
6251 reuses the same private DH exponent for the life of the server process and
6252 would be vulnerable to this attack. It is believed that many popular
6253 applications do set this option and would therefore not be at risk.
6254
6255 The fix for this issue adds an additional check where a "q" parameter is
6256 available (as is the case in X9.42 based parameters). This detects the
6257 only known attack, and is the only possible defense for static DH
6258 ciphersuites. This could have some performance impact.
6259
6260 Additionally the SSL_OP_SINGLE_DH_USE option has been switched on by
6261 default and cannot be disabled. This could have some performance impact.
6262
6263 This issue was reported to OpenSSL by Antonio Sanso (Adobe).
d8dc8538 6264 ([CVE-2016-0701])
44652c16
DMSP
6265
6266 *Matt Caswell*
6267
6268 * SSLv2 doesn't block disabled ciphers
6269
6270 A malicious client can negotiate SSLv2 ciphers that have been disabled on
6271 the server and complete SSLv2 handshakes even if all SSLv2 ciphers have
6272 been disabled, provided that the SSLv2 protocol was not also disabled via
6273 SSL_OP_NO_SSLv2.
6274
6275 This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram
6276 and Sebastian Schinzel.
d8dc8538 6277 ([CVE-2015-3197])
44652c16
DMSP
6278
6279 *Viktor Dukhovni*
6280
257e9d03 6281### Changes between 1.0.2d and 1.0.2e [3 Dec 2015]
44652c16
DMSP
6282
6283 * BN_mod_exp may produce incorrect results on x86_64
6284
6285 There is a carry propagating bug in the x86_64 Montgomery squaring
6286 procedure. No EC algorithms are affected. Analysis suggests that attacks
6287 against RSA and DSA as a result of this defect would be very difficult to
6288 perform and are not believed likely. Attacks against DH are considered just
6289 feasible (although very difficult) because most of the work necessary to
6290 deduce information about a private key may be performed offline. The amount
6291 of resources required for such an attack would be very significant and
6292 likely only accessible to a limited number of attackers. An attacker would
6293 additionally need online access to an unpatched system using the target
6294 private key in a scenario with persistent DH parameters and a private
6295 key that is shared between multiple clients. For example this can occur by
6296 default in OpenSSL DHE based SSL/TLS ciphersuites.
6297
6298 This issue was reported to OpenSSL by Hanno Böck.
d8dc8538 6299 ([CVE-2015-3193])
44652c16
DMSP
6300
6301 *Andy Polyakov*
6302
6303 * Certificate verify crash with missing PSS parameter
6304
6305 The signature verification routines will crash with a NULL pointer
6306 dereference if presented with an ASN.1 signature using the RSA PSS
6307 algorithm and absent mask generation function parameter. Since these
6308 routines are used to verify certificate signature algorithms this can be
6309 used to crash any certificate verification operation and exploited in a
6310 DoS attack. Any application which performs certificate verification is
6311 vulnerable including OpenSSL clients and servers which enable client
6312 authentication.
6313
6314 This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG).
d8dc8538 6315 ([CVE-2015-3194])
44652c16
DMSP
6316
6317 *Stephen Henson*
6318
6319 * X509_ATTRIBUTE memory leak
6320
6321 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
6322 memory. This structure is used by the PKCS#7 and CMS routines so any
6323 application which reads PKCS#7 or CMS data from untrusted sources is
6324 affected. SSL/TLS is not affected.
6325
6326 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
6327 libFuzzer.
d8dc8538 6328 ([CVE-2015-3195])
44652c16
DMSP
6329
6330 *Stephen Henson*
6331
6332 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
6333 This changes the decoding behaviour for some invalid messages,
6334 though the change is mostly in the more lenient direction, and
6335 legacy behaviour is preserved as much as possible.
6336
6337 *Emilia Käsper*
6338
6339 * In DSA_generate_parameters_ex, if the provided seed is too short,
6340 return an error
6341
6342 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
6343
257e9d03 6344### Changes between 1.0.2c and 1.0.2d [9 Jul 2015]
44652c16
DMSP
6345
6346 * Alternate chains certificate forgery
6347
6348 During certificate verification, OpenSSL will attempt to find an
6349 alternative certificate chain if the first attempt to build such a chain
6350 fails. An error in the implementation of this logic can mean that an
6351 attacker could cause certain checks on untrusted certificates to be
6352 bypassed, such as the CA flag, enabling them to use a valid leaf
6353 certificate to act as a CA and "issue" an invalid certificate.
6354
6355 This issue was reported to OpenSSL by Adam Langley/David Benjamin
6356 (Google/BoringSSL).
6357
6358 *Matt Caswell*
6359
257e9d03 6360### Changes between 1.0.2b and 1.0.2c [12 Jun 2015]
44652c16
DMSP
6361
6362 * Fix HMAC ABI incompatibility. The previous version introduced an ABI
6363 incompatibility in the handling of HMAC. The previous ABI has now been
6364 restored.
6365
6366 *Matt Caswell*
6367
257e9d03 6368### Changes between 1.0.2a and 1.0.2b [11 Jun 2015]
44652c16
DMSP
6369
6370 * Malformed ECParameters causes infinite loop
6371
6372 When processing an ECParameters structure OpenSSL enters an infinite loop
6373 if the curve specified is over a specially malformed binary polynomial
6374 field.
6375
6376 This can be used to perform denial of service against any
6377 system which processes public keys, certificate requests or
6378 certificates. This includes TLS clients and TLS servers with
6379 client authentication enabled.
6380
6381 This issue was reported to OpenSSL by Joseph Barr-Pixton.
d8dc8538 6382 ([CVE-2015-1788])
44652c16
DMSP
6383
6384 *Andy Polyakov*
6385
6386 * Exploitable out-of-bounds read in X509_cmp_time
6387
6388 X509_cmp_time does not properly check the length of the ASN1_TIME
6389 string and can read a few bytes out of bounds. In addition,
6390 X509_cmp_time accepts an arbitrary number of fractional seconds in the
6391 time string.
6392
6393 An attacker can use this to craft malformed certificates and CRLs of
6394 various sizes and potentially cause a segmentation fault, resulting in
6395 a DoS on applications that verify certificates or CRLs. TLS clients
6396 that verify CRLs are affected. TLS clients and servers with client
6397 authentication enabled may be affected if they use custom verification
6398 callbacks.
6399
6400 This issue was reported to OpenSSL by Robert Swiecki (Google), and
6401 independently by Hanno Böck.
d8dc8538 6402 ([CVE-2015-1789])
44652c16
DMSP
6403
6404 *Emilia Käsper*
6405
6406 * PKCS7 crash with missing EnvelopedContent
6407
6408 The PKCS#7 parsing code does not handle missing inner EncryptedContent
6409 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
6410 with missing content and trigger a NULL pointer dereference on parsing.
6411
6412 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
6413 structures from untrusted sources are affected. OpenSSL clients and
6414 servers are not affected.
6415
6416 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 6417 ([CVE-2015-1790])
44652c16
DMSP
6418
6419 *Emilia Käsper*
6420
6421 * CMS verify infinite loop with unknown hash function
6422
6423 When verifying a signedData message the CMS code can enter an infinite loop
6424 if presented with an unknown hash function OID. This can be used to perform
6425 denial of service against any system which verifies signedData messages using
6426 the CMS code.
6427 This issue was reported to OpenSSL by Johannes Bauer.
d8dc8538 6428 ([CVE-2015-1792])
44652c16
DMSP
6429
6430 *Stephen Henson*
6431
6432 * Race condition handling NewSessionTicket
6433
6434 If a NewSessionTicket is received by a multi-threaded client when attempting to
6435 reuse a previous ticket then a race condition can occur potentially leading to
6436 a double free of the ticket data.
d8dc8538 6437 ([CVE-2015-1791])
44652c16
DMSP
6438
6439 *Matt Caswell*
6440
6441 * Only support 256-bit or stronger elliptic curves with the
6442 'ecdh_auto' setting (server) or by default (client). Of supported
6443 curves, prefer P-256 (both).
6444
6445 *Emilia Kasper*
6446
257e9d03 6447### Changes between 1.0.2 and 1.0.2a [19 Mar 2015]
44652c16
DMSP
6448
6449 * ClientHello sigalgs DoS fix
6450
6451 If a client connects to an OpenSSL 1.0.2 server and renegotiates with an
6452 invalid signature algorithms extension a NULL pointer dereference will
6453 occur. This can be exploited in a DoS attack against the server.
6454
6455 This issue was was reported to OpenSSL by David Ramos of Stanford
6456 University.
d8dc8538 6457 ([CVE-2015-0291])
44652c16
DMSP
6458
6459 *Stephen Henson and Matt Caswell*
6460
6461 * Multiblock corrupted pointer fix
6462
6463 OpenSSL 1.0.2 introduced the "multiblock" performance improvement. This
6464 feature only applies on 64 bit x86 architecture platforms that support AES
6465 NI instructions. A defect in the implementation of "multiblock" can cause
6466 OpenSSL's internal write buffer to become incorrectly set to NULL when
6467 using non-blocking IO. Typically, when the user application is using a
6468 socket BIO for writing, this will only result in a failed connection.
6469 However if some other BIO is used then it is likely that a segmentation
6470 fault will be triggered, thus enabling a potential DoS attack.
6471
6472 This issue was reported to OpenSSL by Daniel Danner and Rainer Mueller.
d8dc8538 6473 ([CVE-2015-0290])
44652c16
DMSP
6474
6475 *Matt Caswell*
6476
6477 * Segmentation fault in DTLSv1_listen fix
6478
6479 The DTLSv1_listen function is intended to be stateless and processes the
6480 initial ClientHello from many peers. It is common for user code to loop
6481 over the call to DTLSv1_listen until a valid ClientHello is received with
6482 an associated cookie. A defect in the implementation of DTLSv1_listen means
6483 that state is preserved in the SSL object from one invocation to the next
6484 that can lead to a segmentation fault. Errors processing the initial
6485 ClientHello can trigger this scenario. An example of such an error could be
6486 that a DTLS1.0 only client is attempting to connect to a DTLS1.2 only
6487 server.
6488
6489 This issue was reported to OpenSSL by Per Allansson.
d8dc8538 6490 ([CVE-2015-0207])
44652c16
DMSP
6491
6492 *Matt Caswell*
6493
6494 * Segmentation fault in ASN1_TYPE_cmp fix
6495
6496 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
6497 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
6498 certificate signature algorithm consistency this can be used to crash any
6499 certificate verification operation and exploited in a DoS attack. Any
6500 application which performs certificate verification is vulnerable including
6501 OpenSSL clients and servers which enable client authentication.
d8dc8538 6502 ([CVE-2015-0286])
44652c16
DMSP
6503
6504 *Stephen Henson*
6505
6506 * Segmentation fault for invalid PSS parameters fix
6507
6508 The signature verification routines will crash with a NULL pointer
6509 dereference if presented with an ASN.1 signature using the RSA PSS
6510 algorithm and invalid parameters. Since these routines are used to verify
6511 certificate signature algorithms this can be used to crash any
6512 certificate verification operation and exploited in a DoS attack. Any
6513 application which performs certificate verification is vulnerable including
6514 OpenSSL clients and servers which enable client authentication.
6515
6516 This issue was was reported to OpenSSL by Brian Carpenter.
d8dc8538 6517 ([CVE-2015-0208])
44652c16
DMSP
6518
6519 *Stephen Henson*
6520
6521 * ASN.1 structure reuse memory corruption fix
6522
6523 Reusing a structure in ASN.1 parsing may allow an attacker to cause
6524 memory corruption via an invalid write. Such reuse is and has been
6525 strongly discouraged and is believed to be rare.
6526
6527 Applications that parse structures containing CHOICE or ANY DEFINED BY
6528 components may be affected. Certificate parsing (d2i_X509 and related
6529 functions) are however not affected. OpenSSL clients and servers are
6530 not affected.
d8dc8538 6531 ([CVE-2015-0287])
44652c16
DMSP
6532
6533 *Stephen Henson*
6534
6535 * PKCS7 NULL pointer dereferences fix
6536
6537 The PKCS#7 parsing code does not handle missing outer ContentInfo
6538 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
6539 missing content and trigger a NULL pointer dereference on parsing.
6540
6541 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
6542 otherwise parse PKCS#7 structures from untrusted sources are
6543 affected. OpenSSL clients and servers are not affected.
6544
6545 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 6546 ([CVE-2015-0289])
44652c16
DMSP
6547
6548 *Emilia Käsper*
6549
6550 * DoS via reachable assert in SSLv2 servers fix
6551
6552 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
6553 servers that both support SSLv2 and enable export cipher suites by sending
6554 a specially crafted SSLv2 CLIENT-MASTER-KEY message.
6555
6556 This issue was discovered by Sean Burford (Google) and Emilia Käsper
6557 (OpenSSL development team).
d8dc8538 6558 ([CVE-2015-0293])
44652c16
DMSP
6559
6560 *Emilia Käsper*
6561
6562 * Empty CKE with client auth and DHE fix
6563
6564 If client auth is used then a server can seg fault in the event of a DHE
6565 ciphersuite being selected and a zero length ClientKeyExchange message
6566 being sent by the client. This could be exploited in a DoS attack.
d8dc8538 6567 ([CVE-2015-1787])
44652c16
DMSP
6568
6569 *Matt Caswell*
6570
6571 * Handshake with unseeded PRNG fix
6572
6573 Under certain conditions an OpenSSL 1.0.2 client can complete a handshake
6574 with an unseeded PRNG. The conditions are:
6575 - The client is on a platform where the PRNG has not been seeded
6576 automatically, and the user has not seeded manually
6577 - A protocol specific client method version has been used (i.e. not
6578 SSL_client_methodv23)
6579 - A ciphersuite is used that does not require additional random data from
6580 the PRNG beyond the initial ClientHello client random (e.g. PSK-RC4-SHA).
6581
6582 If the handshake succeeds then the client random that has been used will
6583 have been generated from a PRNG with insufficient entropy and therefore the
6584 output may be predictable.
6585
6586 For example using the following command with an unseeded openssl will
6587 succeed on an unpatched platform:
6588
6589 openssl s_client -psk 1a2b3c4d -tls1_2 -cipher PSK-RC4-SHA
d8dc8538 6590 ([CVE-2015-0285])
44652c16
DMSP
6591
6592 *Matt Caswell*
6593
6594 * Use After Free following d2i_ECPrivatekey error fix
6595
6596 A malformed EC private key file consumed via the d2i_ECPrivateKey function
6597 could cause a use after free condition. This, in turn, could cause a double
6598 free in several private key parsing functions (such as d2i_PrivateKey
6599 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
6600 for applications that receive EC private keys from untrusted
6601 sources. This scenario is considered rare.
6602
6603 This issue was discovered by the BoringSSL project and fixed in their
6604 commit 517073cd4b.
d8dc8538 6605 ([CVE-2015-0209])
44652c16
DMSP
6606
6607 *Matt Caswell*
6608
6609 * X509_to_X509_REQ NULL pointer deref fix
6610
6611 The function X509_to_X509_REQ will crash with a NULL pointer dereference if
6612 the certificate key is invalid. This function is rarely used in practice.
6613
6614 This issue was discovered by Brian Carpenter.
d8dc8538 6615 ([CVE-2015-0288])
44652c16
DMSP
6616
6617 *Stephen Henson*
6618
6619 * Removed the export ciphers from the DEFAULT ciphers
6620
6621 *Kurt Roeckx*
6622
257e9d03 6623### Changes between 1.0.1l and 1.0.2 [22 Jan 2015]
44652c16
DMSP
6624
6625 * Facilitate "universal" ARM builds targeting range of ARM ISAs, e.g.
6626 ARMv5 through ARMv8, as opposite to "locking" it to single one.
6627 So far those who have to target multiple platforms would compromise
6628 and argue that binary targeting say ARMv5 would still execute on
6629 ARMv8. "Universal" build resolves this compromise by providing
6630 near-optimal performance even on newer platforms.
6631
6632 *Andy Polyakov*
6633
6634 * Accelerated NIST P-256 elliptic curve implementation for x86_64
6635 (other platforms pending).
6636
6637 *Shay Gueron & Vlad Krasnov (Intel Corp), Andy Polyakov*
5f8e6c50
DMSP
6638
6639 * Add support for the SignedCertificateTimestampList certificate and
6640 OCSP response extensions from RFC6962.
6641
44652c16
DMSP
6642 *Rob Stradling*
6643
6644 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
6645 for corner cases. (Certain input points at infinity could lead to
6646 bogus results, with non-infinity inputs mapped to infinity too.)
6647
6648 *Bodo Moeller*
6649
6650 * Initial support for PowerISA 2.0.7, first implemented in POWER8.
6651 This covers AES, SHA256/512 and GHASH. "Initial" means that most
6652 common cases are optimized and there still is room for further
6653 improvements. Vector Permutation AES for Altivec is also added.
6654
6655 *Andy Polyakov*
6656
6657 * Add support for little-endian ppc64 Linux target.
6658
6659 *Marcelo Cerri (IBM)*
6660
6661 * Initial support for AMRv8 ISA crypto extensions. This covers AES,
6662 SHA1, SHA256 and GHASH. "Initial" means that most common cases
6663 are optimized and there still is room for further improvements.
6664 Both 32- and 64-bit modes are supported.
6665
6666 *Andy Polyakov, Ard Biesheuvel (Linaro)*
6667
6668 * Improved ARMv7 NEON support.
6669
6670 *Andy Polyakov*
6671
6672 * Support for SPARC Architecture 2011 crypto extensions, first
6673 implemented in SPARC T4. This covers AES, DES, Camellia, SHA1,
6674 SHA256/512, MD5, GHASH and modular exponentiation.
6675
6676 *Andy Polyakov, David Miller*
6677
6678 * Accelerated modular exponentiation for Intel processors, a.k.a.
6679 RSAZ.
6680
6681 *Shay Gueron & Vlad Krasnov (Intel Corp)*
6682
6683 * Support for new and upcoming Intel processors, including AVX2,
6684 BMI and SHA ISA extensions. This includes additional "stitched"
6685 implementations, AESNI-SHA256 and GCM, and multi-buffer support
6686 for TLS encrypt.
6687
6688 This work was sponsored by Intel Corp.
6689
6690 *Andy Polyakov*
6691
6692 * Support for DTLS 1.2. This adds two sets of DTLS methods: DTLS_*_method()
6693 supports both DTLS 1.2 and 1.0 and should use whatever version the peer
6694 supports and DTLSv1_2_*_method() which supports DTLS 1.2 only.
6695
6696 *Steve Henson*
6697
6698 * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
6699 this fixes a limitation in previous versions of OpenSSL.
6700
6701 *Steve Henson*
6702
6703 * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
6704 MGF1 digest and OAEP label.
6705
6706 *Steve Henson*
6707
6708 * Add EVP support for key wrapping algorithms, to avoid problems with
6709 existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
6710 the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
6711 algorithms and include tests cases.
6712
6713 *Steve Henson*
6714
6715 * Add functions to allocate and set the fields of an ECDSA_METHOD
6716 structure.
6717
6718 *Douglas E. Engert, Steve Henson*
6719
6720 * New functions OPENSSL_gmtime_diff and ASN1_TIME_diff to find the
6721 difference in days and seconds between two tm or ASN1_TIME structures.
6722
6723 *Steve Henson*
6724
6725 * Add -rev test option to s_server to just reverse order of characters
6726 received by client and send back to server. Also prints an abbreviated
6727 summary of the connection parameters.
6728
6729 *Steve Henson*
6730
6731 * New option -brief for s_client and s_server to print out a brief summary
6732 of connection parameters.
6733
6734 *Steve Henson*
6735
6736 * Add callbacks for arbitrary TLS extensions.
6737
6738 *Trevor Perrin <trevp@trevp.net> and Ben Laurie*
6739
6740 * New option -crl_download in several openssl utilities to download CRLs
6741 from CRLDP extension in certificates.
6742
6743 *Steve Henson*
6744
6745 * New options -CRL and -CRLform for s_client and s_server for CRLs.
6746
6747 *Steve Henson*
6748
6749 * New function X509_CRL_diff to generate a delta CRL from the difference
6750 of two full CRLs. Add support to "crl" utility.
6751
6752 *Steve Henson*
6753
6754 * New functions to set lookup_crls function and to retrieve
6755 X509_STORE from X509_STORE_CTX.
6756
6757 *Steve Henson*
6758
6759 * Print out deprecated issuer and subject unique ID fields in
6760 certificates.
6761
6762 *Steve Henson*
6763
6764 * Extend OCSP I/O functions so they can be used for simple general purpose
6765 HTTP as well as OCSP. New wrapper function which can be used to download
6766 CRLs using the OCSP API.
6767
6768 *Steve Henson*
6769
6770 * Delegate command line handling in s_client/s_server to SSL_CONF APIs.
6771
6772 *Steve Henson*
6773
257e9d03 6774 * `SSL_CONF*` functions. These provide a common framework for application
44652c16
DMSP
6775 configuration using configuration files or command lines.
6776
6777 *Steve Henson*
6778
6779 * SSL/TLS tracing code. This parses out SSL/TLS records using the
6780 message callback and prints the results. Needs compile time option
6781 "enable-ssl-trace". New options to s_client and s_server to enable
6782 tracing.
6783
6784 *Steve Henson*
6785
6786 * New ctrl and macro to retrieve supported points extensions.
6787 Print out extension in s_server and s_client.
6788
6789 *Steve Henson*
6790
6791 * New functions to retrieve certificate signature and signature
6792 OID NID.
6793
6794 *Steve Henson*
6795
6796 * Add functions to retrieve and manipulate the raw cipherlist sent by a
6797 client to OpenSSL.
6798
6799 *Steve Henson*
6800
6801 * New Suite B modes for TLS code. These use and enforce the requirements
6802 of RFC6460: restrict ciphersuites, only permit Suite B algorithms and
6803 only use Suite B curves. The Suite B modes can be set by using the
6804 strings "SUITEB128", "SUITEB192" or "SUITEB128ONLY" for the cipherstring.
6805
6806 *Steve Henson*
6807
6808 * New chain verification flags for Suite B levels of security. Check
6809 algorithms are acceptable when flags are set in X509_verify_cert.
6810
6811 *Steve Henson*
6812
6813 * Make tls1_check_chain return a set of flags indicating checks passed
6814 by a certificate chain. Add additional tests to handle client
6815 certificates: checks for matching certificate type and issuer name
6816 comparison.
6817
6818 *Steve Henson*
6819
6820 * If an attempt is made to use a signature algorithm not in the peer
6821 preference list abort the handshake. If client has no suitable
6822 signature algorithms in response to a certificate request do not
6823 use the certificate.
6824
6825 *Steve Henson*
6826
6827 * If server EC tmp key is not in client preference list abort handshake.
6828
6829 *Steve Henson*
6830
6831 * Add support for certificate stores in CERT structure. This makes it
6832 possible to have different stores per SSL structure or one store in
6833 the parent SSL_CTX. Include distinct stores for certificate chain
6834 verification and chain building. New ctrl SSL_CTRL_BUILD_CERT_CHAIN
6835 to build and store a certificate chain in CERT structure: returning
6836 an error if the chain cannot be built: this will allow applications
6837 to test if a chain is correctly configured.
6838
6839 Note: if the CERT based stores are not set then the parent SSL_CTX
6840 store is used to retain compatibility with existing behaviour.
6841
44652c16
DMSP
6842 *Steve Henson*
6843
6844 * New function ssl_set_client_disabled to set a ciphersuite disabled
6845 mask based on the current session, check mask when sending client
6846 hello and checking the requested ciphersuite.
6847
6848 *Steve Henson*
6849
6850 * New ctrls to retrieve and set certificate types in a certificate
6851 request message. Print out received values in s_client. If certificate
6852 types is not set with custom values set sensible values based on
6853 supported signature algorithms.
6854
6855 *Steve Henson*
6856
6857 * Support for distinct client and server supported signature algorithms.
6858
6859 *Steve Henson*
6860
6861 * Add certificate callback. If set this is called whenever a certificate
6862 is required by client or server. An application can decide which
6863 certificate chain to present based on arbitrary criteria: for example
6864 supported signature algorithms. Add very simple example to s_server.
6865 This fixes many of the problems and restrictions of the existing client
6866 certificate callback: for example you can now clear an existing
6867 certificate and specify the whole chain.
6868
6869 *Steve Henson*
6870
6871 * Add new "valid_flags" field to CERT_PKEY structure which determines what
6872 the certificate can be used for (if anything). Set valid_flags field
6873 in new tls1_check_chain function. Simplify ssl_set_cert_masks which used
6874 to have similar checks in it.
6875
6876 Add new "cert_flags" field to CERT structure and include a "strict mode".
6877 This enforces some TLS certificate requirements (such as only permitting
6878 certificate signature algorithms contained in the supported algorithms
6879 extension) which some implementations ignore: this option should be used
6880 with caution as it could cause interoperability issues.
6881
6882 *Steve Henson*
6883
6884 * Update and tidy signature algorithm extension processing. Work out
6885 shared signature algorithms based on preferences and peer algorithms
6886 and print them out in s_client and s_server. Abort handshake if no
6887 shared signature algorithms.
6888
6889 *Steve Henson*
6890
6891 * Add new functions to allow customised supported signature algorithms
6892 for SSL and SSL_CTX structures. Add options to s_client and s_server
6893 to support them.
6894
6895 *Steve Henson*
6896
6897 * New function SSL_certs_clear() to delete all references to certificates
6898 from an SSL structure. Before this once a certificate had been added
6899 it couldn't be removed.
6900
6901 *Steve Henson*
6902
6903 * Integrate hostname, email address and IP address checking with certificate
6904 verification. New verify options supporting checking in openssl utility.
6905
6906 *Steve Henson*
6907
6908 * Fixes and wildcard matching support to hostname and email checking
6909 functions. Add manual page.
6910
6911 *Florian Weimer (Red Hat Product Security Team)*
6912
6913 * New functions to check a hostname email or IP address against a
6914 certificate. Add options x509 utility to print results of checks against
6915 a certificate.
6916
6917 *Steve Henson*
6918
6919 * Fix OCSP checking.
6920
6921 *Rob Stradling <rob.stradling@comodo.com> and Ben Laurie*
6922
6923 * Initial experimental support for explicitly trusted non-root CAs.
6924 OpenSSL still tries to build a complete chain to a root but if an
6925 intermediate CA has a trust setting included that is used. The first
6926 setting is used: whether to trust (e.g., -addtrust option to the x509
6927 utility) or reject.
6928
6929 *Steve Henson*
6930
6931 * Add -trusted_first option which attempts to find certificates in the
6932 trusted store even if an untrusted chain is also supplied.
6933
6934 *Steve Henson*
6935
6936 * MIPS assembly pack updates: support for MIPS32r2 and SmartMIPS ASE,
6937 platform support for Linux and Android.
6938
6939 *Andy Polyakov*
6940
6941 * Support for linux-x32, ILP32 environment in x86_64 framework.
6942
6943 *Andy Polyakov*
6944
6945 * Experimental multi-implementation support for FIPS capable OpenSSL.
6946 When in FIPS mode the approved implementations are used as normal,
6947 when not in FIPS mode the internal unapproved versions are used instead.
6948 This means that the FIPS capable OpenSSL isn't forced to use the
6949 (often lower performance) FIPS implementations outside FIPS mode.
6950
6951 *Steve Henson*
6952
6953 * Transparently support X9.42 DH parameters when calling
6954 PEM_read_bio_DHparameters. This means existing applications can handle
6955 the new parameter format automatically.
6956
6957 *Steve Henson*
6958
6959 * Initial experimental support for X9.42 DH parameter format: mainly
6960 to support use of 'q' parameter for RFC5114 parameters.
6961
6962 *Steve Henson*
6963
6964 * Add DH parameters from RFC5114 including test data to dhtest.
6965
6966 *Steve Henson*
6967
6968 * Support for automatic EC temporary key parameter selection. If enabled
6969 the most preferred EC parameters are automatically used instead of
6970 hardcoded fixed parameters. Now a server just has to call:
6971 SSL_CTX_set_ecdh_auto(ctx, 1) and the server will automatically
6972 support ECDH and use the most appropriate parameters.
6973
6974 *Steve Henson*
6975
6976 * Enhance and tidy EC curve and point format TLS extension code. Use
6977 static structures instead of allocation if default values are used.
6978 New ctrls to set curves we wish to support and to retrieve shared curves.
6979 Print out shared curves in s_server. New options to s_server and s_client
6980 to set list of supported curves.
6981
6982 *Steve Henson*
6983
6984 * New ctrls to retrieve supported signature algorithms and
6985 supported curve values as an array of NIDs. Extend openssl utility
6986 to print out received values.
6987
6988 *Steve Henson*
6989
6990 * Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert
6991 between NIDs and the more common NIST names such as "P-256". Enhance
6992 ecparam utility and ECC method to recognise the NIST names for curves.
6993
6994 *Steve Henson*
6995
6996 * Enhance SSL/TLS certificate chain handling to support different
6997 chains for each certificate instead of one chain in the parent SSL_CTX.
6998
6999 *Steve Henson*
7000
7001 * Support for fixed DH ciphersuite client authentication: where both
7002 server and client use DH certificates with common parameters.
7003
7004 *Steve Henson*
7005
7006 * Support for fixed DH ciphersuites: those requiring DH server
7007 certificates.
7008
7009 *Steve Henson*
7010
7011 * New function i2d_re_X509_tbs for re-encoding the TBS portion of
7012 the certificate.
7013 Note: Related 1.0.2-beta specific macros X509_get_cert_info,
7014 X509_CINF_set_modified, X509_CINF_get_issuer, X509_CINF_get_extensions and
7015 X509_CINF_get_signature were reverted post internal team review.
7016
44652c16
DMSP
7017OpenSSL 1.0.1
7018-------------
7019
257e9d03 7020### Changes between 1.0.1t and 1.0.1u [22 Sep 2016]
44652c16
DMSP
7021
7022 * OCSP Status Request extension unbounded memory growth
7023
7024 A malicious client can send an excessively large OCSP Status Request
7025 extension. If that client continually requests renegotiation, sending a
7026 large OCSP Status Request extension each time, then there will be unbounded
7027 memory growth on the server. This will eventually lead to a Denial Of
7028 Service attack through memory exhaustion. Servers with a default
7029 configuration are vulnerable even if they do not support OCSP. Builds using
7030 the "no-ocsp" build time option are not affected.
7031
7032 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 7033 ([CVE-2016-6304])
44652c16
DMSP
7034
7035 *Matt Caswell*
7036
7037 * In order to mitigate the SWEET32 attack, the DES ciphers were moved from
7038 HIGH to MEDIUM.
7039
7040 This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan
7041 Leurent (INRIA)
d8dc8538 7042 ([CVE-2016-2183])
44652c16
DMSP
7043
7044 *Rich Salz*
7045
7046 * OOB write in MDC2_Update()
7047
7048 An overflow can occur in MDC2_Update() either if called directly or
7049 through the EVP_DigestUpdate() function using MDC2. If an attacker
7050 is able to supply very large amounts of input data after a previous
7051 call to EVP_EncryptUpdate() with a partial block then a length check
7052 can overflow resulting in a heap corruption.
7053
7054 The amount of data needed is comparable to SIZE_MAX which is impractical
7055 on most platforms.
7056
7057 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 7058 ([CVE-2016-6303])
44652c16
DMSP
7059
7060 *Stephen Henson*
7061
7062 * Malformed SHA512 ticket DoS
7063
7064 If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a
7065 DoS attack where a malformed ticket will result in an OOB read which will
7066 ultimately crash.
7067
7068 The use of SHA512 in TLS session tickets is comparatively rare as it requires
7069 a custom server callback and ticket lookup mechanism.
7070
7071 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 7072 ([CVE-2016-6302])
44652c16
DMSP
7073
7074 *Stephen Henson*
7075
7076 * OOB write in BN_bn2dec()
7077
7078 The function BN_bn2dec() does not check the return value of BN_div_word().
7079 This can cause an OOB write if an application uses this function with an
7080 overly large BIGNUM. This could be a problem if an overly large certificate
7081 or CRL is printed out from an untrusted source. TLS is not affected because
7082 record limits will reject an oversized certificate before it is parsed.
7083
7084 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 7085 ([CVE-2016-2182])
44652c16
DMSP
7086
7087 *Stephen Henson*
7088
7089 * OOB read in TS_OBJ_print_bio()
7090
7091 The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is
7092 the total length the OID text representation would use and not the amount
7093 of data written. This will result in OOB reads when large OIDs are
7094 presented.
7095
7096 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 7097 ([CVE-2016-2180])
44652c16
DMSP
7098
7099 *Stephen Henson*
7100
7101 * Pointer arithmetic undefined behaviour
7102
7103 Avoid some undefined pointer arithmetic
7104
7105 A common idiom in the codebase is to check limits in the following manner:
7106 "p + len > limit"
7107
7108 Where "p" points to some malloc'd data of SIZE bytes and
7109 limit == p + SIZE
7110
7111 "len" here could be from some externally supplied data (e.g. from a TLS
7112 message).
7113
7114 The rules of C pointer arithmetic are such that "p + len" is only well
d7f3a2cc 7115 defined where len <= SIZE. Therefore, the above idiom is actually
44652c16
DMSP
7116 undefined behaviour.
7117
7118 For example this could cause problems if some malloc implementation
7119 provides an address for "p" such that "p + len" actually overflows for
7120 values of len that are too big and therefore p + len < limit.
7121
7122 This issue was reported to OpenSSL by Guido Vranken
d8dc8538 7123 ([CVE-2016-2177])
44652c16
DMSP
7124
7125 *Matt Caswell*
7126
7127 * Constant time flag not preserved in DSA signing
7128
7129 Operations in the DSA signing algorithm should run in constant time in
7130 order to avoid side channel attacks. A flaw in the OpenSSL DSA
7131 implementation means that a non-constant time codepath is followed for
7132 certain operations. This has been demonstrated through a cache-timing
7133 attack to be sufficient for an attacker to recover the private DSA key.
7134
7135 This issue was reported by César Pereida (Aalto University), Billy Brumley
7136 (Tampere University of Technology), and Yuval Yarom (The University of
7137 Adelaide and NICTA).
d8dc8538 7138 ([CVE-2016-2178])
44652c16
DMSP
7139
7140 *César Pereida*
7141
7142 * DTLS buffered message DoS
7143
7144 In a DTLS connection where handshake messages are delivered out-of-order
7145 those messages that OpenSSL is not yet ready to process will be buffered
7146 for later use. Under certain circumstances, a flaw in the logic means that
7147 those messages do not get removed from the buffer even though the handshake
7148 has been completed. An attacker could force up to approx. 15 messages to
7149 remain in the buffer when they are no longer required. These messages will
7150 be cleared when the DTLS connection is closed. The default maximum size for
d7f3a2cc
F
7151 a message is 100k. Therefore, the attacker could force an additional 1500k
7152 to be consumed per connection. By opening many simultaneous connections an
44652c16
DMSP
7153 attacker could cause a DoS attack through memory exhaustion.
7154
7155 This issue was reported to OpenSSL by Quan Luo.
d8dc8538 7156 ([CVE-2016-2179])
44652c16
DMSP
7157
7158 *Matt Caswell*
7159
7160 * DTLS replay protection DoS
7161
7162 A flaw in the DTLS replay attack protection mechanism means that records
7163 that arrive for future epochs update the replay protection "window" before
7164 the MAC for the record has been validated. This could be exploited by an
7165 attacker by sending a record for the next epoch (which does not have to
7166 decrypt or have a valid MAC), with a very large sequence number. This means
7167 that all subsequent legitimate packets are dropped causing a denial of
7168 service for a specific DTLS connection.
7169
7170 This issue was reported to OpenSSL by the OCAP audit team.
d8dc8538 7171 ([CVE-2016-2181])
44652c16
DMSP
7172
7173 *Matt Caswell*
7174
7175 * Certificate message OOB reads
7176
7177 In OpenSSL 1.0.2 and earlier some missing message length checks can result
7178 in OOB reads of up to 2 bytes beyond an allocated buffer. There is a
7179 theoretical DoS risk but this has not been observed in practice on common
7180 platforms.
7181
7182 The messages affected are client certificate, client certificate request
7183 and server certificate. As a result the attack can only be performed
7184 against a client or a server which enables client authentication.
7185
7186 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.)
d8dc8538 7187 ([CVE-2016-6306])
44652c16
DMSP
7188
7189 *Stephen Henson*
7190
257e9d03 7191### Changes between 1.0.1s and 1.0.1t [3 May 2016]
44652c16
DMSP
7192
7193 * Prevent padding oracle in AES-NI CBC MAC check
7194
7195 A MITM attacker can use a padding oracle attack to decrypt traffic
7196 when the connection uses an AES CBC cipher and the server support
7197 AES-NI.
7198
7199 This issue was introduced as part of the fix for Lucky 13 padding
d8dc8538 7200 attack ([CVE-2013-0169]). The padding check was rewritten to be in
44652c16
DMSP
7201 constant time by making sure that always the same bytes are read and
7202 compared against either the MAC or padding bytes. But it no longer
7203 checked that there was enough data to have both the MAC and padding
7204 bytes.
7205
7206 This issue was reported by Juraj Somorovsky using TLS-Attacker.
d8dc8538 7207 ([CVE-2016-2107])
44652c16
DMSP
7208
7209 *Kurt Roeckx*
7210
7211 * Fix EVP_EncodeUpdate overflow
7212
7213 An overflow can occur in the EVP_EncodeUpdate() function which is used for
7214 Base64 encoding of binary data. If an attacker is able to supply very large
7215 amounts of input data then a length check can overflow resulting in a heap
7216 corruption.
7217
d7f3a2cc 7218 Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by
257e9d03 7219 the `PEM_write_bio*` family of functions. These are mainly used within the
44652c16
DMSP
7220 OpenSSL command line applications, so any application which processes data
7221 from an untrusted source and outputs it as a PEM file should be considered
7222 vulnerable to this issue. User applications that call these APIs directly
7223 with large amounts of untrusted data may also be vulnerable.
7224
7225 This issue was reported by Guido Vranken.
d8dc8538 7226 ([CVE-2016-2105])
44652c16
DMSP
7227
7228 *Matt Caswell*
7229
7230 * Fix EVP_EncryptUpdate overflow
7231
7232 An overflow can occur in the EVP_EncryptUpdate() function. If an attacker
7233 is able to supply very large amounts of input data after a previous call to
7234 EVP_EncryptUpdate() with a partial block then a length check can overflow
7235 resulting in a heap corruption. Following an analysis of all OpenSSL
7236 internal usage of the EVP_EncryptUpdate() function all usage is one of two
7237 forms. The first form is where the EVP_EncryptUpdate() call is known to be
7238 the first called function after an EVP_EncryptInit(), and therefore that
7239 specific call must be safe. The second form is where the length passed to
7240 EVP_EncryptUpdate() can be seen from the code to be some small value and
7241 therefore there is no possibility of an overflow. Since all instances are
7242 one of these two forms, it is believed that there can be no overflows in
7243 internal code due to this problem. It should be noted that
7244 EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths.
7245 Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances
7246 of these calls have also been analysed too and it is believed there are no
7247 instances in internal usage where an overflow could occur.
7248
7249 This issue was reported by Guido Vranken.
d8dc8538 7250 ([CVE-2016-2106])
44652c16
DMSP
7251
7252 *Matt Caswell*
7253
7254 * Prevent ASN.1 BIO excessive memory allocation
7255
7256 When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio()
7257 a short invalid encoding can casuse allocation of large amounts of memory
7258 potentially consuming excessive resources or exhausting memory.
7259
7260 Any application parsing untrusted data through d2i BIO functions is
7261 affected. The memory based functions such as d2i_X509() are *not* affected.
7262 Since the memory based functions are used by the TLS library, TLS
7263 applications are not affected.
7264
7265 This issue was reported by Brian Carpenter.
d8dc8538 7266 ([CVE-2016-2109])
44652c16
DMSP
7267
7268 *Stephen Henson*
7269
7270 * EBCDIC overread
7271
7272 ASN1 Strings that are over 1024 bytes can cause an overread in applications
7273 using the X509_NAME_oneline() function on EBCDIC systems. This could result
7274 in arbitrary stack data being returned in the buffer.
7275
7276 This issue was reported by Guido Vranken.
d8dc8538 7277 ([CVE-2016-2176])
44652c16
DMSP
7278
7279 *Matt Caswell*
7280
7281 * Modify behavior of ALPN to invoke callback after SNI/servername
7282 callback, such that updates to the SSL_CTX affect ALPN.
7283
7284 *Todd Short*
7285
7286 * Remove LOW from the DEFAULT cipher list. This removes singles DES from the
7287 default.
7288
7289 *Kurt Roeckx*
7290
7291 * Only remove the SSLv2 methods with the no-ssl2-method option. When the
7292 methods are enabled and ssl2 is disabled the methods return NULL.
7293
7294 *Kurt Roeckx*
7295
257e9d03 7296### Changes between 1.0.1r and 1.0.1s [1 Mar 2016]
44652c16
DMSP
7297
7298* Disable weak ciphers in SSLv3 and up in default builds of OpenSSL.
7299 Builds that are not configured with "enable-weak-ssl-ciphers" will not
7300 provide any "EXPORT" or "LOW" strength ciphers.
7301
7302 *Viktor Dukhovni*
7303
7304* Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2
7305 is by default disabled at build-time. Builds that are not configured with
7306 "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used,
7307 users who want to negotiate SSLv2 via the version-flexible SSLv23_method()
7308 will need to explicitly call either of:
7309
7310 SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
7311 or
7312 SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
7313
7314 as appropriate. Even if either of those is used, or the application
7315 explicitly uses the version-specific SSLv2_method() or its client and
7316 server variants, SSLv2 ciphers vulnerable to exhaustive search key
7317 recovery have been removed. Specifically, the SSLv2 40-bit EXPORT
7318 ciphers, and SSLv2 56-bit DES are no longer available.
d8dc8538 7319 ([CVE-2016-0800])
44652c16
DMSP
7320
7321 *Viktor Dukhovni*
7322
7323 * Fix a double-free in DSA code
7324
7325 A double free bug was discovered when OpenSSL parses malformed DSA private
7326 keys and could lead to a DoS attack or memory corruption for applications
7327 that receive DSA private keys from untrusted sources. This scenario is
7328 considered rare.
7329
7330 This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using
7331 libFuzzer.
d8dc8538 7332 ([CVE-2016-0705])
44652c16
DMSP
7333
7334 *Stephen Henson*
7335
7336 * Disable SRP fake user seed to address a server memory leak.
7337
7338 Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
7339
7340 SRP_VBASE_get_by_user had inconsistent memory management behaviour.
7341 In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user
7342 was changed to ignore the "fake user" SRP seed, even if the seed
7343 is configured.
7344
7345 Users should use SRP_VBASE_get1_by_user instead. Note that in
7346 SRP_VBASE_get1_by_user, caller must free the returned value. Note
7347 also that even though configuring the SRP seed attempts to hide
7348 invalid usernames by continuing the handshake with fake
7349 credentials, this behaviour is not constant time and no strong
7350 guarantees are made that the handshake is indistinguishable from
7351 that of a valid user.
d8dc8538 7352 ([CVE-2016-0798])
44652c16
DMSP
7353
7354 *Emilia Käsper*
7355
7356 * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption
7357
7358 In the BN_hex2bn function the number of hex digits is calculated using an
1dc1ea18
DDO
7359 int value `i`. Later `bn_expand` is called with a value of `i * 4`. For
7360 large values of `i` this can result in `bn_expand` not allocating any
7361 memory because `i * 4` is negative. This can leave the internal BIGNUM data
44652c16 7362 field as NULL leading to a subsequent NULL ptr deref. For very large values
1dc1ea18 7363 of `i`, the calculation `i * 4` could be a positive value smaller than `i`.
44652c16
DMSP
7364 In this case memory is allocated to the internal BIGNUM data field, but it
7365 is insufficiently sized leading to heap corruption. A similar issue exists
7366 in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn
7367 is ever called by user applications with very large untrusted hex/dec data.
7368 This is anticipated to be a rare occurrence.
7369
7370 All OpenSSL internal usage of these functions use data that is not expected
7371 to be untrusted, e.g. config file data or application command line
7372 arguments. If user developed applications generate config file data based
7373 on untrusted data then it is possible that this could also lead to security
7374 consequences. This is also anticipated to be rare.
7375
7376 This issue was reported to OpenSSL by Guido Vranken.
d8dc8538 7377 ([CVE-2016-0797])
44652c16
DMSP
7378
7379 *Matt Caswell*
7380
257e9d03 7381 * Fix memory issues in `BIO_*printf` functions
44652c16 7382
1dc1ea18 7383 The internal `fmtstr` function used in processing a "%s" format string in
257e9d03 7384 the `BIO_*printf` functions could overflow while calculating the length of a
44652c16
DMSP
7385 string and cause an OOB read when printing very long strings.
7386
1dc1ea18 7387 Additionally the internal `doapr_outch` function can attempt to write to an
44652c16
DMSP
7388 OOB memory location (at an offset from the NULL pointer) in the event of a
7389 memory allocation failure. In 1.0.2 and below this could be caused where
7390 the size of a buffer to be allocated is greater than INT_MAX. E.g. this
7391 could be in processing a very long "%s" format string. Memory leaks can
7392 also occur.
7393
7394 The first issue may mask the second issue dependent on compiler behaviour.
7395 These problems could enable attacks where large amounts of untrusted data
257e9d03 7396 is passed to the `BIO_*printf` functions. If applications use these functions
44652c16
DMSP
7397 in this way then they could be vulnerable. OpenSSL itself uses these
7398 functions when printing out human-readable dumps of ASN.1 data. Therefore
7399 applications that print this data could be vulnerable if the data is from
7400 untrusted sources. OpenSSL command line applications could also be
7401 vulnerable where they print out ASN.1 data, or if untrusted data is passed
7402 as command line arguments.
7403
7404 Libssl is not considered directly vulnerable. Additionally certificates etc
7405 received via remote connections via libssl are also unlikely to be able to
7406 trigger these issues because of message size limits enforced within libssl.
7407
7408 This issue was reported to OpenSSL Guido Vranken.
d8dc8538 7409 ([CVE-2016-0799])
44652c16
DMSP
7410
7411 *Matt Caswell*
7412
7413 * Side channel attack on modular exponentiation
7414
7415 A side-channel attack was found which makes use of cache-bank conflicts on
7416 the Intel Sandy-Bridge microarchitecture which could lead to the recovery
7417 of RSA keys. The ability to exploit this issue is limited as it relies on
7418 an attacker who has control of code in a thread running on the same
7419 hyper-threaded core as the victim thread which is performing decryptions.
7420
7421 This issue was reported to OpenSSL by Yuval Yarom, The University of
7422 Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and
7423 Nadia Heninger, University of Pennsylvania with more information at
257e9d03 7424 <http://cachebleed.info>.
d8dc8538 7425 ([CVE-2016-0702])
44652c16
DMSP
7426
7427 *Andy Polyakov*
7428
ec2bfb7d 7429 * Change the req command to generate a 2048-bit RSA/DSA key by default,
44652c16
DMSP
7430 if no keysize is specified with default_bits. This fixes an
7431 omission in an earlier change that changed all RSA/DSA key generation
ec2bfb7d 7432 commands to use 2048 bits by default.
44652c16
DMSP
7433
7434 *Emilia Käsper*
7435
257e9d03 7436### Changes between 1.0.1q and 1.0.1r [28 Jan 2016]
44652c16
DMSP
7437
7438 * Protection for DH small subgroup attacks
7439
7440 As a precautionary measure the SSL_OP_SINGLE_DH_USE option has been
7441 switched on by default and cannot be disabled. This could have some
7442 performance impact.
7443
7444 *Matt Caswell*
7445
7446 * SSLv2 doesn't block disabled ciphers
7447
7448 A malicious client can negotiate SSLv2 ciphers that have been disabled on
7449 the server and complete SSLv2 handshakes even if all SSLv2 ciphers have
7450 been disabled, provided that the SSLv2 protocol was not also disabled via
7451 SSL_OP_NO_SSLv2.
7452
7453 This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram
7454 and Sebastian Schinzel.
d8dc8538 7455 ([CVE-2015-3197])
44652c16
DMSP
7456
7457 *Viktor Dukhovni*
7458
7459 * Reject DH handshakes with parameters shorter than 1024 bits.
7460
7461 *Kurt Roeckx*
7462
257e9d03 7463### Changes between 1.0.1p and 1.0.1q [3 Dec 2015]
44652c16
DMSP
7464
7465 * Certificate verify crash with missing PSS parameter
7466
7467 The signature verification routines will crash with a NULL pointer
7468 dereference if presented with an ASN.1 signature using the RSA PSS
7469 algorithm and absent mask generation function parameter. Since these
7470 routines are used to verify certificate signature algorithms this can be
7471 used to crash any certificate verification operation and exploited in a
7472 DoS attack. Any application which performs certificate verification is
7473 vulnerable including OpenSSL clients and servers which enable client
7474 authentication.
7475
7476 This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG).
d8dc8538 7477 ([CVE-2015-3194])
44652c16
DMSP
7478
7479 *Stephen Henson*
7480
7481 * X509_ATTRIBUTE memory leak
7482
7483 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
7484 memory. This structure is used by the PKCS#7 and CMS routines so any
7485 application which reads PKCS#7 or CMS data from untrusted sources is
7486 affected. SSL/TLS is not affected.
7487
7488 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
7489 libFuzzer.
d8dc8538 7490 ([CVE-2015-3195])
44652c16
DMSP
7491
7492 *Stephen Henson*
7493
7494 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
7495 This changes the decoding behaviour for some invalid messages,
7496 though the change is mostly in the more lenient direction, and
7497 legacy behaviour is preserved as much as possible.
7498
7499 *Emilia Käsper*
7500
7501 * In DSA_generate_parameters_ex, if the provided seed is too short,
7502 use a random seed, as already documented.
7503
7504 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>*
7505
257e9d03 7506### Changes between 1.0.1o and 1.0.1p [9 Jul 2015]
44652c16
DMSP
7507
7508 * Alternate chains certificate forgery
7509
eb4129e1 7510 During certificate verification, OpenSSL will attempt to find an
44652c16
DMSP
7511 alternative certificate chain if the first attempt to build such a chain
7512 fails. An error in the implementation of this logic can mean that an
7513 attacker could cause certain checks on untrusted certificates to be
7514 bypassed, such as the CA flag, enabling them to use a valid leaf
7515 certificate to act as a CA and "issue" an invalid certificate.
7516
7517 This issue was reported to OpenSSL by Adam Langley/David Benjamin
7518 (Google/BoringSSL).
d8dc8538 7519 ([CVE-2015-1793])
44652c16
DMSP
7520
7521 *Matt Caswell*
7522
7523 * Race condition handling PSK identify hint
7524
7525 If PSK identity hints are received by a multi-threaded client then
7526 the values are wrongly updated in the parent SSL_CTX structure. This can
7527 result in a race condition potentially leading to a double free of the
7528 identify hint data.
d8dc8538 7529 ([CVE-2015-3196])
44652c16
DMSP
7530
7531 *Stephen Henson*
7532
257e9d03
RS
7533### Changes between 1.0.1n and 1.0.1o [12 Jun 2015]
7534
44652c16
DMSP
7535 * Fix HMAC ABI incompatibility. The previous version introduced an ABI
7536 incompatibility in the handling of HMAC. The previous ABI has now been
7537 restored.
7538
257e9d03 7539### Changes between 1.0.1m and 1.0.1n [11 Jun 2015]
44652c16
DMSP
7540
7541 * Malformed ECParameters causes infinite loop
7542
7543 When processing an ECParameters structure OpenSSL enters an infinite loop
7544 if the curve specified is over a specially malformed binary polynomial
7545 field.
7546
7547 This can be used to perform denial of service against any
7548 system which processes public keys, certificate requests or
7549 certificates. This includes TLS clients and TLS servers with
7550 client authentication enabled.
7551
7552 This issue was reported to OpenSSL by Joseph Barr-Pixton.
d8dc8538 7553 ([CVE-2015-1788])
44652c16
DMSP
7554
7555 *Andy Polyakov*
7556
7557 * Exploitable out-of-bounds read in X509_cmp_time
7558
7559 X509_cmp_time does not properly check the length of the ASN1_TIME
7560 string and can read a few bytes out of bounds. In addition,
7561 X509_cmp_time accepts an arbitrary number of fractional seconds in the
7562 time string.
7563
7564 An attacker can use this to craft malformed certificates and CRLs of
7565 various sizes and potentially cause a segmentation fault, resulting in
7566 a DoS on applications that verify certificates or CRLs. TLS clients
7567 that verify CRLs are affected. TLS clients and servers with client
7568 authentication enabled may be affected if they use custom verification
7569 callbacks.
7570
7571 This issue was reported to OpenSSL by Robert Swiecki (Google), and
7572 independently by Hanno Böck.
d8dc8538 7573 ([CVE-2015-1789])
44652c16
DMSP
7574
7575 *Emilia Käsper*
7576
7577 * PKCS7 crash with missing EnvelopedContent
7578
7579 The PKCS#7 parsing code does not handle missing inner EncryptedContent
7580 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
7581 with missing content and trigger a NULL pointer dereference on parsing.
7582
7583 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
7584 structures from untrusted sources are affected. OpenSSL clients and
7585 servers are not affected.
5f8e6c50 7586
44652c16 7587 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 7588 ([CVE-2015-1790])
5f8e6c50 7589
44652c16 7590 *Emilia Käsper*
5f8e6c50 7591
44652c16
DMSP
7592 * CMS verify infinite loop with unknown hash function
7593
7594 When verifying a signedData message the CMS code can enter an infinite loop
7595 if presented with an unknown hash function OID. This can be used to perform
7596 denial of service against any system which verifies signedData messages using
7597 the CMS code.
7598 This issue was reported to OpenSSL by Johannes Bauer.
d8dc8538 7599 ([CVE-2015-1792])
44652c16
DMSP
7600
7601 *Stephen Henson*
7602
7603 * Race condition handling NewSessionTicket
7604
7605 If a NewSessionTicket is received by a multi-threaded client when attempting to
7606 reuse a previous ticket then a race condition can occur potentially leading to
7607 a double free of the ticket data.
d8dc8538 7608 ([CVE-2015-1791])
44652c16
DMSP
7609
7610 *Matt Caswell*
7611
7612 * Reject DH handshakes with parameters shorter than 768 bits.
7613
7614 *Kurt Roeckx and Emilia Kasper*
7615
7616 * dhparam: generate 2048-bit parameters by default.
7617
7618 *Kurt Roeckx and Emilia Kasper*
7619
257e9d03 7620### Changes between 1.0.1l and 1.0.1m [19 Mar 2015]
44652c16
DMSP
7621
7622 * Segmentation fault in ASN1_TYPE_cmp fix
7623
7624 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
7625 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
7626 certificate signature algorithm consistency this can be used to crash any
7627 certificate verification operation and exploited in a DoS attack. Any
7628 application which performs certificate verification is vulnerable including
7629 OpenSSL clients and servers which enable client authentication.
d8dc8538 7630 ([CVE-2015-0286])
44652c16
DMSP
7631
7632 *Stephen Henson*
7633
7634 * ASN.1 structure reuse memory corruption fix
7635
7636 Reusing a structure in ASN.1 parsing may allow an attacker to cause
7637 memory corruption via an invalid write. Such reuse is and has been
7638 strongly discouraged and is believed to be rare.
7639
7640 Applications that parse structures containing CHOICE or ANY DEFINED BY
7641 components may be affected. Certificate parsing (d2i_X509 and related
7642 functions) are however not affected. OpenSSL clients and servers are
7643 not affected.
d8dc8538 7644 ([CVE-2015-0287])
44652c16
DMSP
7645
7646 *Stephen Henson*
7647
7648 * PKCS7 NULL pointer dereferences fix
7649
7650 The PKCS#7 parsing code does not handle missing outer ContentInfo
7651 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
7652 missing content and trigger a NULL pointer dereference on parsing.
7653
7654 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
7655 otherwise parse PKCS#7 structures from untrusted sources are
7656 affected. OpenSSL clients and servers are not affected.
7657
7658 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 7659 ([CVE-2015-0289])
44652c16
DMSP
7660
7661 *Emilia Käsper*
7662
7663 * DoS via reachable assert in SSLv2 servers fix
7664
7665 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
7666 servers that both support SSLv2 and enable export cipher suites by sending
7667 a specially crafted SSLv2 CLIENT-MASTER-KEY message.
7668
7669 This issue was discovered by Sean Burford (Google) and Emilia Käsper
7670 (OpenSSL development team).
d8dc8538 7671 ([CVE-2015-0293])
44652c16
DMSP
7672
7673 *Emilia Käsper*
7674
7675 * Use After Free following d2i_ECPrivatekey error fix
7676
7677 A malformed EC private key file consumed via the d2i_ECPrivateKey function
7678 could cause a use after free condition. This, in turn, could cause a double
7679 free in several private key parsing functions (such as d2i_PrivateKey
7680 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
7681 for applications that receive EC private keys from untrusted
7682 sources. This scenario is considered rare.
7683
7684 This issue was discovered by the BoringSSL project and fixed in their
7685 commit 517073cd4b.
d8dc8538 7686 ([CVE-2015-0209])
44652c16
DMSP
7687
7688 *Matt Caswell*
7689
7690 * X509_to_X509_REQ NULL pointer deref fix
7691
7692 The function X509_to_X509_REQ will crash with a NULL pointer dereference if
7693 the certificate key is invalid. This function is rarely used in practice.
7694
7695 This issue was discovered by Brian Carpenter.
d8dc8538 7696 ([CVE-2015-0288])
44652c16
DMSP
7697
7698 *Stephen Henson*
7699
7700 * Removed the export ciphers from the DEFAULT ciphers
7701
7702 *Kurt Roeckx*
7703
257e9d03 7704### Changes between 1.0.1k and 1.0.1l [15 Jan 2015]
44652c16
DMSP
7705
7706 * Build fixes for the Windows and OpenVMS platforms
7707
7708 *Matt Caswell and Richard Levitte*
7709
257e9d03 7710### Changes between 1.0.1j and 1.0.1k [8 Jan 2015]
44652c16
DMSP
7711
7712 * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS
7713 message can cause a segmentation fault in OpenSSL due to a NULL pointer
7714 dereference. This could lead to a Denial Of Service attack. Thanks to
7715 Markus Stenberg of Cisco Systems, Inc. for reporting this issue.
d8dc8538 7716 ([CVE-2014-3571])
44652c16
DMSP
7717
7718 *Steve Henson*
7719
7720 * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the
7721 dtls1_buffer_record function under certain conditions. In particular this
7722 could occur if an attacker sent repeated DTLS records with the same
7723 sequence number but for the next epoch. The memory leak could be exploited
7724 by an attacker in a Denial of Service attack through memory exhaustion.
7725 Thanks to Chris Mueller for reporting this issue.
d8dc8538 7726 ([CVE-2015-0206])
44652c16
DMSP
7727
7728 *Matt Caswell*
7729
7730 * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is
7731 built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl
7732 method would be set to NULL which could later result in a NULL pointer
7733 dereference. Thanks to Frank Schmirler for reporting this issue.
d8dc8538 7734 ([CVE-2014-3569])
44652c16
DMSP
7735
7736 *Kurt Roeckx*
7737
7738 * Abort handshake if server key exchange message is omitted for ephemeral
7739 ECDH ciphersuites.
7740
7741 Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for
7742 reporting this issue.
d8dc8538 7743 ([CVE-2014-3572])
44652c16
DMSP
7744
7745 *Steve Henson*
7746
7747 * Remove non-export ephemeral RSA code on client and server. This code
7748 violated the TLS standard by allowing the use of temporary RSA keys in
7749 non-export ciphersuites and could be used by a server to effectively
7750 downgrade the RSA key length used to a value smaller than the server
7751 certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at
7752 INRIA or reporting this issue.
d8dc8538 7753 ([CVE-2015-0204])
44652c16
DMSP
7754
7755 *Steve Henson*
7756
7757 * Fixed issue where DH client certificates are accepted without verification.
7758 An OpenSSL server will accept a DH certificate for client authentication
7759 without the certificate verify message. This effectively allows a client to
7760 authenticate without the use of a private key. This only affects servers
7761 which trust a client certificate authority which issues certificates
7762 containing DH keys: these are extremely rare and hardly ever encountered.
7763 Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting
7764 this issue.
d8dc8538 7765 ([CVE-2015-0205])
44652c16
DMSP
7766
7767 *Steve Henson*
7768
7769 * Ensure that the session ID context of an SSL is updated when its
7770 SSL_CTX is updated via SSL_set_SSL_CTX.
7771
7772 The session ID context is typically set from the parent SSL_CTX,
7773 and can vary with the CTX.
7774
7775 *Adam Langley*
7776
7777 * Fix various certificate fingerprint issues.
7778
7779 By using non-DER or invalid encodings outside the signed portion of a
7780 certificate the fingerprint can be changed without breaking the signature.
7781 Although no details of the signed portion of the certificate can be changed
7782 this can cause problems with some applications: e.g. those using the
7783 certificate fingerprint for blacklists.
7784
7785 1. Reject signatures with non zero unused bits.
7786
7787 If the BIT STRING containing the signature has non zero unused bits reject
7788 the signature. All current signature algorithms require zero unused bits.
7789
7790 2. Check certificate algorithm consistency.
7791
7792 Check the AlgorithmIdentifier inside TBS matches the one in the
7793 certificate signature. NB: this will result in signature failure
7794 errors for some broken certificates.
7795
7796 Thanks to Konrad Kraszewski from Google for reporting this issue.
7797
7798 3. Check DSA/ECDSA signatures use DER.
7799
7800 Re-encode DSA/ECDSA signatures and compare with the original received
7801 signature. Return an error if there is a mismatch.
7802
7803 This will reject various cases including garbage after signature
7804 (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS
7805 program for discovering this case) and use of BER or invalid ASN.1 INTEGERs
7806 (negative or with leading zeroes).
7807
7808 Further analysis was conducted and fixes were developed by Stephen Henson
7809 of the OpenSSL core team.
7810
d8dc8538 7811 ([CVE-2014-8275])
44652c16
DMSP
7812
7813 *Steve Henson*
7814
43a70f02
RS
7815 * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect
7816 results on some platforms, including x86_64. This bug occurs at random
7817 with a very low probability, and is not known to be exploitable in any
7818 way, though its exact impact is difficult to determine. Thanks to Pieter
7819 Wuille (Blockstream) who reported this issue and also suggested an initial
7820 fix. Further analysis was conducted by the OpenSSL development team and
7821 Adam Langley of Google. The final fix was developed by Andy Polyakov of
7822 the OpenSSL core team.
d8dc8538 7823 ([CVE-2014-3570])
5f8e6c50
DMSP
7824
7825 *Andy Polyakov*
7826
43a70f02
RS
7827 * Do not resume sessions on the server if the negotiated protocol
7828 version does not match the session's version. Resuming with a different
7829 version, while not strictly forbidden by the RFC, is of questionable
7830 sanity and breaks all known clients.
5f8e6c50 7831
44652c16
DMSP
7832 *David Benjamin, Emilia Käsper*
7833
43a70f02
RS
7834 * Tighten handling of the ChangeCipherSpec (CCS) message: reject
7835 early CCS messages during renegotiation. (Note that because
7836 renegotiation is encrypted, this early CCS was not exploitable.)
44652c16
DMSP
7837
7838 *Emilia Käsper*
7839
43a70f02
RS
7840 * Tighten client-side session ticket handling during renegotiation:
7841 ensure that the client only accepts a session ticket if the server sends
7842 the extension anew in the ServerHello. Previously, a TLS client would
7843 reuse the old extension state and thus accept a session ticket if one was
7844 announced in the initial ServerHello.
44652c16 7845
43a70f02
RS
7846 Similarly, ensure that the client requires a session ticket if one
7847 was advertised in the ServerHello. Previously, a TLS client would
7848 ignore a missing NewSessionTicket message.
44652c16
DMSP
7849
7850 *Emilia Käsper*
7851
257e9d03 7852### Changes between 1.0.1i and 1.0.1j [15 Oct 2014]
44652c16
DMSP
7853
7854 * SRTP Memory Leak.
7855
7856 A flaw in the DTLS SRTP extension parsing code allows an attacker, who
7857 sends a carefully crafted handshake message, to cause OpenSSL to fail
7858 to free up to 64k of memory causing a memory leak. This could be
7859 exploited in a Denial Of Service attack. This issue affects OpenSSL
7860 1.0.1 server implementations for both SSL/TLS and DTLS regardless of
7861 whether SRTP is used or configured. Implementations of OpenSSL that
7862 have been compiled with OPENSSL_NO_SRTP defined are not affected.
5f8e6c50 7863
44652c16 7864 The fix was developed by the OpenSSL team.
d8dc8538 7865 ([CVE-2014-3513])
5f8e6c50 7866
44652c16 7867 *OpenSSL team*
5f8e6c50 7868
44652c16 7869 * Session Ticket Memory Leak.
5f8e6c50 7870
44652c16
DMSP
7871 When an OpenSSL SSL/TLS/DTLS server receives a session ticket the
7872 integrity of that ticket is first verified. In the event of a session
7873 ticket integrity check failing, OpenSSL will fail to free memory
7874 causing a memory leak. By sending a large number of invalid session
7875 tickets an attacker could exploit this issue in a Denial Of Service
7876 attack.
d8dc8538 7877 ([CVE-2014-3567])
5f8e6c50 7878
44652c16 7879 *Steve Henson*
5f8e6c50 7880
44652c16 7881 * Build option no-ssl3 is incomplete.
5f8e6c50 7882
44652c16 7883 When OpenSSL is configured with "no-ssl3" as a build option, servers
d7f3a2cc 7884 could accept and complete an SSL 3.0 handshake, and clients could be
44652c16 7885 configured to send them.
d8dc8538 7886 ([CVE-2014-3568])
5f8e6c50 7887
44652c16 7888 *Akamai and the OpenSSL team*
5f8e6c50 7889
44652c16
DMSP
7890 * Add support for TLS_FALLBACK_SCSV.
7891 Client applications doing fallback retries should call
7892 SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV).
d8dc8538 7893 ([CVE-2014-3566])
5f8e6c50 7894
44652c16 7895 *Adam Langley, Bodo Moeller*
5f8e6c50 7896
44652c16 7897 * Add additional DigestInfo checks.
5f8e6c50 7898
44652c16
DMSP
7899 Re-encode DigestInto in DER and check against the original when
7900 verifying RSA signature: this will reject any improperly encoded
7901 DigestInfo structures.
5f8e6c50 7902
44652c16 7903 Note: this is a precautionary measure and no attacks are currently known.
5f8e6c50 7904
5f8e6c50
DMSP
7905 *Steve Henson*
7906
257e9d03 7907### Changes between 1.0.1h and 1.0.1i [6 Aug 2014]
5f8e6c50 7908
44652c16
DMSP
7909 * Fix SRP buffer overrun vulnerability. Invalid parameters passed to the
7910 SRP code can be overrun an internal buffer. Add sanity check that
7911 g, A, B < N to SRP code.
5f8e6c50 7912
44652c16
DMSP
7913 Thanks to Sean Devlin and Watson Ladd of Cryptography Services, NCC
7914 Group for discovering this issue.
d8dc8538 7915 ([CVE-2014-3512])
5f8e6c50
DMSP
7916
7917 *Steve Henson*
7918
44652c16
DMSP
7919 * A flaw in the OpenSSL SSL/TLS server code causes the server to negotiate
7920 TLS 1.0 instead of higher protocol versions when the ClientHello message
7921 is badly fragmented. This allows a man-in-the-middle attacker to force a
7922 downgrade to TLS 1.0 even if both the server and the client support a
7923 higher protocol version, by modifying the client's TLS records.
5f8e6c50 7924
44652c16
DMSP
7925 Thanks to David Benjamin and Adam Langley (Google) for discovering and
7926 researching this issue.
d8dc8538 7927 ([CVE-2014-3511])
5f8e6c50 7928
44652c16 7929 *David Benjamin*
5f8e6c50 7930
44652c16
DMSP
7931 * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject
7932 to a denial of service attack. A malicious server can crash the client
7933 with a null pointer dereference (read) by specifying an anonymous (EC)DH
7934 ciphersuite and sending carefully crafted handshake messages.
5f8e6c50 7935
44652c16
DMSP
7936 Thanks to Felix Gröbert (Google) for discovering and researching this
7937 issue.
d8dc8538 7938 ([CVE-2014-3510])
5f8e6c50 7939
44652c16 7940 *Emilia Käsper*
5f8e6c50 7941
44652c16
DMSP
7942 * By sending carefully crafted DTLS packets an attacker could cause openssl
7943 to leak memory. This can be exploited through a Denial of Service attack.
7944 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 7945 ([CVE-2014-3507])
5f8e6c50 7946
44652c16 7947 *Adam Langley*
5f8e6c50 7948
44652c16
DMSP
7949 * An attacker can force openssl to consume large amounts of memory whilst
7950 processing DTLS handshake messages. This can be exploited through a
7951 Denial of Service attack.
7952 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 7953 ([CVE-2014-3506])
5f8e6c50 7954
44652c16 7955 *Adam Langley*
5f8e6c50 7956
44652c16
DMSP
7957 * An attacker can force an error condition which causes openssl to crash
7958 whilst processing DTLS packets due to memory being freed twice. This
7959 can be exploited through a Denial of Service attack.
7960 Thanks to Adam Langley and Wan-Teh Chang for discovering and researching
7961 this issue.
d8dc8538 7962 ([CVE-2014-3505])
5f8e6c50 7963
44652c16 7964 *Adam Langley*
5f8e6c50 7965
44652c16
DMSP
7966 * If a multithreaded client connects to a malicious server using a resumed
7967 session and the server sends an ec point format extension it could write
7968 up to 255 bytes to freed memory.
5f8e6c50 7969
44652c16
DMSP
7970 Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this
7971 issue.
d8dc8538 7972 ([CVE-2014-3509])
5f8e6c50 7973
44652c16 7974 *Gabor Tyukasz*
5f8e6c50 7975
44652c16
DMSP
7976 * A malicious server can crash an OpenSSL client with a null pointer
7977 dereference (read) by specifying an SRP ciphersuite even though it was not
7978 properly negotiated with the client. This can be exploited through a
7979 Denial of Service attack.
5f8e6c50 7980
44652c16
DMSP
7981 Thanks to Joonas Kuorilehto and Riku Hietamäki (Codenomicon) for
7982 discovering and researching this issue.
d8dc8538 7983 ([CVE-2014-5139])
5f8e6c50
DMSP
7984
7985 *Steve Henson*
7986
44652c16
DMSP
7987 * A flaw in OBJ_obj2txt may cause pretty printing functions such as
7988 X509_name_oneline, X509_name_print_ex et al. to leak some information
7989 from the stack. Applications may be affected if they echo pretty printing
7990 output to the attacker.
5f8e6c50 7991
44652c16 7992 Thanks to Ivan Fratric (Google) for discovering this issue.
d8dc8538 7993 ([CVE-2014-3508])
5f8e6c50 7994
44652c16 7995 *Emilia Käsper, and Steve Henson*
5f8e6c50 7996
44652c16
DMSP
7997 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
7998 for corner cases. (Certain input points at infinity could lead to
7999 bogus results, with non-infinity inputs mapped to infinity too.)
5f8e6c50 8000
44652c16 8001 *Bodo Moeller*
5f8e6c50 8002
257e9d03 8003### Changes between 1.0.1g and 1.0.1h [5 Jun 2014]
5f8e6c50 8004
44652c16
DMSP
8005 * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted
8006 handshake can force the use of weak keying material in OpenSSL
8007 SSL/TLS clients and servers.
5f8e6c50 8008
44652c16 8009 Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
d8dc8538 8010 researching this issue. ([CVE-2014-0224])
5f8e6c50 8011
44652c16 8012 *KIKUCHI Masashi, Steve Henson*
5f8e6c50 8013
44652c16
DMSP
8014 * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an
8015 OpenSSL DTLS client the code can be made to recurse eventually crashing
8016 in a DoS attack.
5f8e6c50 8017
44652c16 8018 Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.
d8dc8538 8019 ([CVE-2014-0221])
5f8e6c50 8020
44652c16 8021 *Imre Rad, Steve Henson*
5f8e6c50 8022
44652c16
DMSP
8023 * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can
8024 be triggered by sending invalid DTLS fragments to an OpenSSL DTLS
8025 client or server. This is potentially exploitable to run arbitrary
8026 code on a vulnerable client or server.
5f8e6c50 8027
d8dc8538 8028 Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195])
5f8e6c50 8029
44652c16 8030 *Jüri Aedla, Steve Henson*
5f8e6c50 8031
44652c16
DMSP
8032 * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites
8033 are subject to a denial of service attack.
5f8e6c50 8034
44652c16 8035 Thanks to Felix Gröbert and Ivan Fratric at Google for discovering
d8dc8538 8036 this issue. ([CVE-2014-3470])
5f8e6c50 8037
44652c16 8038 *Felix Gröbert, Ivan Fratric, Steve Henson*
5f8e6c50 8039
44652c16
DMSP
8040 * Harmonize version and its documentation. -f flag is used to display
8041 compilation flags.
5f8e6c50 8042
44652c16 8043 *mancha <mancha1@zoho.com>*
5f8e6c50 8044
44652c16
DMSP
8045 * Fix eckey_priv_encode so it immediately returns an error upon a failure
8046 in i2d_ECPrivateKey.
5f8e6c50 8047
44652c16 8048 *mancha <mancha1@zoho.com>*
5f8e6c50 8049
44652c16 8050 * Fix some double frees. These are not thought to be exploitable.
5f8e6c50 8051
44652c16 8052 *mancha <mancha1@zoho.com>*
5f8e6c50 8053
257e9d03 8054### Changes between 1.0.1f and 1.0.1g [7 Apr 2014]
5f8e6c50 8055
44652c16
DMSP
8056 * A missing bounds check in the handling of the TLS heartbeat extension
8057 can be used to reveal up to 64k of memory to a connected client or
8058 server.
5f8e6c50 8059
44652c16
DMSP
8060 Thanks for Neel Mehta of Google Security for discovering this bug and to
8061 Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
d8dc8538 8062 preparing the fix ([CVE-2014-0160])
5f8e6c50 8063
44652c16 8064 *Adam Langley, Bodo Moeller*
5f8e6c50 8065
44652c16
DMSP
8066 * Fix for the attack described in the paper "Recovering OpenSSL
8067 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
8068 by Yuval Yarom and Naomi Benger. Details can be obtained from:
257e9d03 8069 <http://eprint.iacr.org/2014/140>
5f8e6c50 8070
44652c16 8071 Thanks to Yuval Yarom and Naomi Benger for discovering this
d8dc8538 8072 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
5f8e6c50 8073
44652c16 8074 *Yuval Yarom and Naomi Benger*
5f8e6c50 8075
44652c16 8076 * TLS pad extension: draft-agl-tls-padding-03
5f8e6c50 8077
44652c16
DMSP
8078 Workaround for the "TLS hang bug" (see FAQ and PR#2771): if the
8079 TLS client Hello record length value would otherwise be > 255 and
8080 less that 512 pad with a dummy extension containing zeroes so it
8081 is at least 512 bytes long.
5f8e6c50 8082
44652c16 8083 *Adam Langley, Steve Henson*
5f8e6c50 8084
257e9d03 8085### Changes between 1.0.1e and 1.0.1f [6 Jan 2014]
5f8e6c50 8086
44652c16
DMSP
8087 * Fix for TLS record tampering bug. A carefully crafted invalid
8088 handshake could crash OpenSSL with a NULL pointer exception.
8089 Thanks to Anton Johansson for reporting this issues.
d8dc8538 8090 ([CVE-2013-4353])
5f8e6c50 8091
44652c16
DMSP
8092 * Keep original DTLS digest and encryption contexts in retransmission
8093 structures so we can use the previous session parameters if they need
d8dc8538 8094 to be resent. ([CVE-2013-6450])
5f8e6c50 8095
44652c16 8096 *Steve Henson*
5f8e6c50 8097
44652c16
DMSP
8098 * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which
8099 avoids preferring ECDHE-ECDSA ciphers when the client appears to be
8100 Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for
8101 several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug
8102 is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing
8103 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer.
5f8e6c50 8104
44652c16 8105 *Rob Stradling, Adam Langley*
5f8e6c50 8106
257e9d03 8107### Changes between 1.0.1d and 1.0.1e [11 Feb 2013]
5f8e6c50 8108
44652c16
DMSP
8109 * Correct fix for CVE-2013-0169. The original didn't work on AES-NI
8110 supporting platforms or when small records were transferred.
5f8e6c50 8111
44652c16 8112 *Andy Polyakov, Steve Henson*
5f8e6c50 8113
257e9d03 8114### Changes between 1.0.1c and 1.0.1d [5 Feb 2013]
5f8e6c50 8115
44652c16 8116 * Make the decoding of SSLv3, TLS and DTLS CBC records constant time.
5f8e6c50 8117
44652c16
DMSP
8118 This addresses the flaw in CBC record processing discovered by
8119 Nadhem Alfardan and Kenny Paterson. Details of this attack can be found
257e9d03 8120 at: <http://www.isg.rhul.ac.uk/tls/>
5f8e6c50 8121
44652c16
DMSP
8122 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
8123 Security Group at Royal Holloway, University of London
8124 (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and
8125 Emilia Käsper for the initial patch.
d8dc8538 8126 ([CVE-2013-0169])
5f8e6c50 8127
44652c16 8128 *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson*
5f8e6c50 8129
44652c16
DMSP
8130 * Fix flaw in AESNI handling of TLS 1.2 and 1.1 records for CBC mode
8131 ciphersuites which can be exploited in a denial of service attack.
8132 Thanks go to and to Adam Langley <agl@chromium.org> for discovering
8133 and detecting this bug and to Wolfgang Ettlinger
8134 <wolfgang.ettlinger@gmail.com> for independently discovering this issue.
d8dc8538 8135 ([CVE-2012-2686])
5f8e6c50 8136
44652c16 8137 *Adam Langley*
5f8e6c50 8138
44652c16 8139 * Return an error when checking OCSP signatures when key is NULL.
d8dc8538 8140 This fixes a DoS attack. ([CVE-2013-0166])
5f8e6c50
DMSP
8141
8142 *Steve Henson*
8143
44652c16 8144 * Make openssl verify return errors.
5f8e6c50 8145
44652c16 8146 *Chris Palmer <palmer@google.com> and Ben Laurie*
5f8e6c50 8147
44652c16
DMSP
8148 * Call OCSP Stapling callback after ciphersuite has been chosen, so
8149 the right response is stapled. Also change SSL_get_certificate()
8150 so it returns the certificate actually sent.
257e9d03 8151 See <http://rt.openssl.org/Ticket/Display.html?id=2836>.
5f8e6c50 8152
44652c16 8153 *Rob Stradling <rob.stradling@comodo.com>*
5f8e6c50 8154
44652c16 8155 * Fix possible deadlock when decoding public keys.
5f8e6c50
DMSP
8156
8157 *Steve Henson*
8158
44652c16
DMSP
8159 * Don't use TLS 1.0 record version number in initial client hello
8160 if renegotiating.
5f8e6c50 8161
44652c16 8162 *Steve Henson*
5f8e6c50 8163
257e9d03 8164### Changes between 1.0.1b and 1.0.1c [10 May 2012]
5f8e6c50 8165
44652c16
DMSP
8166 * Sanity check record length before skipping explicit IV in TLS
8167 1.2, 1.1 and DTLS to fix DoS attack.
5f8e6c50 8168
44652c16
DMSP
8169 Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic
8170 fuzzing as a service testing platform.
d8dc8538 8171 ([CVE-2012-2333])
5f8e6c50
DMSP
8172
8173 *Steve Henson*
8174
44652c16
DMSP
8175 * Initialise tkeylen properly when encrypting CMS messages.
8176 Thanks to Solar Designer of Openwall for reporting this issue.
5f8e6c50
DMSP
8177
8178 *Steve Henson*
8179
44652c16
DMSP
8180 * In FIPS mode don't try to use composite ciphers as they are not
8181 approved.
5f8e6c50
DMSP
8182
8183 *Steve Henson*
8184
257e9d03 8185### Changes between 1.0.1a and 1.0.1b [26 Apr 2012]
44652c16
DMSP
8186
8187 * OpenSSL 1.0.0 sets SSL_OP_ALL to 0x80000FFFL and OpenSSL 1.0.1 and
8188 1.0.1a set SSL_OP_NO_TLSv1_1 to 0x00000400L which would unfortunately
8189 mean any application compiled against OpenSSL 1.0.0 headers setting
8190 SSL_OP_ALL would also set SSL_OP_NO_TLSv1_1, unintentionally disabling
8191 TLS 1.1 also. Fix this by changing the value of SSL_OP_NO_TLSv1_1 to
8192 0x10000000L Any application which was previously compiled against
8193 OpenSSL 1.0.1 or 1.0.1a headers and which cares about SSL_OP_NO_TLSv1_1
8194 will need to be recompiled as a result. Letting be results in
8195 inability to disable specifically TLS 1.1 and in client context,
8196 in unlike event, limit maximum offered version to TLS 1.0 [see below].
5f8e6c50
DMSP
8197
8198 *Steve Henson*
8199
44652c16
DMSP
8200 * In order to ensure interoperability SSL_OP_NO_protocolX does not
8201 disable just protocol X, but all protocols above X *if* there are
8202 protocols *below* X still enabled. In more practical terms it means
8203 that if application wants to disable TLS1.0 in favor of TLS1.1 and
1dc1ea18
DDO
8204 above, it's not sufficient to pass `SSL_OP_NO_TLSv1`, one has to pass
8205 `SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv3|SSL_OP_NO_SSLv2`. This applies to
44652c16 8206 client side.
5f8e6c50 8207
44652c16 8208 *Andy Polyakov*
5f8e6c50 8209
257e9d03 8210### Changes between 1.0.1 and 1.0.1a [19 Apr 2012]
5f8e6c50 8211
44652c16
DMSP
8212 * Check for potentially exploitable overflows in asn1_d2i_read_bio
8213 BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
8214 in CRYPTO_realloc_clean.
5f8e6c50 8215
44652c16
DMSP
8216 Thanks to Tavis Ormandy, Google Security Team, for discovering this
8217 issue and to Adam Langley <agl@chromium.org> for fixing it.
d8dc8538 8218 ([CVE-2012-2110])
5f8e6c50 8219
44652c16 8220 *Adam Langley (Google), Tavis Ormandy, Google Security Team*
5f8e6c50 8221
44652c16 8222 * Don't allow TLS 1.2 SHA-256 ciphersuites in TLS 1.0, 1.1 connections.
5f8e6c50 8223
44652c16 8224 *Adam Langley*
5f8e6c50 8225
44652c16
DMSP
8226 * Workarounds for some broken servers that "hang" if a client hello
8227 record length exceeds 255 bytes.
8228
8229 1. Do not use record version number > TLS 1.0 in initial client
8230 hello: some (but not all) hanging servers will now work.
8231 2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate
8232 the number of ciphers sent in the client hello. This should be
8233 set to an even number, such as 50, for example by passing:
8234 -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 to config or Configure.
8235 Most broken servers should now work.
8236 3. If all else fails setting OPENSSL_NO_TLS1_2_CLIENT will disable
8237 TLS 1.2 client support entirely.
5f8e6c50
DMSP
8238
8239 *Steve Henson*
8240
44652c16 8241 * Fix SEGV in Vector Permutation AES module observed in OpenSSH.
5f8e6c50 8242
44652c16 8243 *Andy Polyakov*
5f8e6c50 8244
257e9d03 8245### Changes between 1.0.0h and 1.0.1 [14 Mar 2012]
44652c16
DMSP
8246
8247 * Add compatibility with old MDC2 signatures which use an ASN1 OCTET
8248 STRING form instead of a DigestInfo.
5f8e6c50
DMSP
8249
8250 *Steve Henson*
8251
44652c16
DMSP
8252 * The format used for MDC2 RSA signatures is inconsistent between EVP
8253 and the RSA_sign/RSA_verify functions. This was made more apparent when
8254 OpenSSL used RSA_sign/RSA_verify for some RSA signatures in particular
8255 those which went through EVP_PKEY_METHOD in 1.0.0 and later. Detect
8256 the correct format in RSA_verify so both forms transparently work.
5f8e6c50 8257
44652c16 8258 *Steve Henson*
5f8e6c50 8259
44652c16
DMSP
8260 * Some servers which support TLS 1.0 can choke if we initially indicate
8261 support for TLS 1.2 and later renegotiate using TLS 1.0 in the RSA
8262 encrypted premaster secret. As a workaround use the maximum permitted
8263 client version in client hello, this should keep such servers happy
8264 and still work with previous versions of OpenSSL.
5f8e6c50 8265
44652c16 8266 *Steve Henson*
5f8e6c50 8267
44652c16 8268 * Add support for TLS/DTLS heartbeats.
5f8e6c50 8269
44652c16 8270 *Robin Seggelmann <seggelmann@fh-muenster.de>*
5f8e6c50 8271
44652c16 8272 * Add support for SCTP.
5f8e6c50 8273
44652c16 8274 *Robin Seggelmann <seggelmann@fh-muenster.de>*
5f8e6c50 8275
44652c16 8276 * Improved PRNG seeding for VOS.
5f8e6c50 8277
44652c16 8278 *Paul Green <Paul.Green@stratus.com>*
5f8e6c50 8279
44652c16 8280 * Extensive assembler packs updates, most notably:
5f8e6c50 8281
257e9d03
RS
8282 - x86[_64]: AES-NI, PCLMULQDQ, RDRAND support;
8283 - x86[_64]: SSSE3 support (SHA1, vector-permutation AES);
8284 - x86_64: bit-sliced AES implementation;
8285 - ARM: NEON support, contemporary platforms optimizations;
8286 - s390x: z196 support;
8287 - `*`: GHASH and GF(2^m) multiplication implementations;
5f8e6c50 8288
44652c16 8289 *Andy Polyakov*
5f8e6c50 8290
44652c16
DMSP
8291 * Make TLS-SRP code conformant with RFC 5054 API cleanup
8292 (removal of unnecessary code)
5f8e6c50 8293
44652c16 8294 *Peter Sylvester <peter.sylvester@edelweb.fr>*
5f8e6c50 8295
44652c16 8296 * Add TLS key material exporter from RFC 5705.
5f8e6c50 8297
44652c16 8298 *Eric Rescorla*
5f8e6c50 8299
44652c16 8300 * Add DTLS-SRTP negotiation from RFC 5764.
5f8e6c50 8301
44652c16 8302 *Eric Rescorla*
5f8e6c50 8303
44652c16 8304 * Add Next Protocol Negotiation,
257e9d03 8305 <http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00>. Can be
44652c16
DMSP
8306 disabled with a no-npn flag to config or Configure. Code donated
8307 by Google.
5f8e6c50 8308
44652c16 8309 *Adam Langley <agl@google.com> and Ben Laurie*
5f8e6c50 8310
44652c16
DMSP
8311 * Add optional 64-bit optimized implementations of elliptic curves NIST-P224,
8312 NIST-P256, NIST-P521, with constant-time single point multiplication on
8313 typical inputs. Compiler support for the nonstandard type `__uint128_t` is
8314 required to use this (present in gcc 4.4 and later, for 64-bit builds).
8315 Code made available under Apache License version 2.0.
5f8e6c50 8316
44652c16
DMSP
8317 Specify "enable-ec_nistp_64_gcc_128" on the Configure (or config) command
8318 line to include this in your build of OpenSSL, and run "make depend" (or
8319 "make update"). This enables the following EC_METHODs:
5f8e6c50 8320
44652c16
DMSP
8321 EC_GFp_nistp224_method()
8322 EC_GFp_nistp256_method()
8323 EC_GFp_nistp521_method()
5f8e6c50 8324
44652c16
DMSP
8325 EC_GROUP_new_by_curve_name() will automatically use these (while
8326 EC_GROUP_new_curve_GFp() currently prefers the more flexible
8327 implementations).
5f8e6c50 8328
44652c16 8329 *Emilia Käsper, Adam Langley, Bodo Moeller (Google)*
5f8e6c50 8330
44652c16
DMSP
8331 * Use type ossl_ssize_t instead of ssize_t which isn't available on
8332 all platforms. Move ssize_t definition from e_os.h to the public
8333 header file e_os2.h as it now appears in public header file cms.h
5f8e6c50 8334
44652c16 8335 *Steve Henson*
5f8e6c50 8336
44652c16
DMSP
8337 * New -sigopt option to the ca, req and x509 utilities. Additional
8338 signature parameters can be passed using this option and in
8339 particular PSS.
5f8e6c50 8340
44652c16 8341 *Steve Henson*
5f8e6c50 8342
44652c16
DMSP
8343 * Add RSA PSS signing function. This will generate and set the
8344 appropriate AlgorithmIdentifiers for PSS based on those in the
8345 corresponding EVP_MD_CTX structure. No application support yet.
5f8e6c50 8346
44652c16 8347 *Steve Henson*
5f8e6c50 8348
44652c16
DMSP
8349 * Support for companion algorithm specific ASN1 signing routines.
8350 New function ASN1_item_sign_ctx() signs a pre-initialised
8351 EVP_MD_CTX structure and sets AlgorithmIdentifiers based on
8352 the appropriate parameters.
5f8e6c50
DMSP
8353
8354 *Steve Henson*
8355
44652c16
DMSP
8356 * Add new algorithm specific ASN1 verification initialisation function
8357 to EVP_PKEY_ASN1_METHOD: this is not in EVP_PKEY_METHOD since the ASN1
8358 handling will be the same no matter what EVP_PKEY_METHOD is used.
8359 Add a PSS handler to support verification of PSS signatures: checked
8360 against a number of sample certificates.
5f8e6c50 8361
44652c16 8362 *Steve Henson*
5f8e6c50 8363
44652c16 8364 * Add signature printing for PSS. Add PSS OIDs.
5f8e6c50 8365
44652c16 8366 *Steve Henson, Martin Kaiser <lists@kaiser.cx>*
5f8e6c50 8367
44652c16
DMSP
8368 * Add algorithm specific signature printing. An individual ASN1 method
8369 can now print out signatures instead of the standard hex dump.
5f8e6c50 8370
44652c16
DMSP
8371 More complex signatures (e.g. PSS) can print out more meaningful
8372 information. Include DSA version that prints out the signature
8373 parameters r, s.
5f8e6c50 8374
44652c16 8375 *Steve Henson*
5f8e6c50 8376
44652c16
DMSP
8377 * Password based recipient info support for CMS library: implementing
8378 RFC3211.
5f8e6c50 8379
44652c16 8380 *Steve Henson*
5f8e6c50 8381
44652c16
DMSP
8382 * Split password based encryption into PBES2 and PBKDF2 functions. This
8383 neatly separates the code into cipher and PBE sections and is required
8384 for some algorithms that split PBES2 into separate pieces (such as
8385 password based CMS).
5f8e6c50 8386
44652c16 8387 *Steve Henson*
5f8e6c50 8388
44652c16
DMSP
8389 * Session-handling fixes:
8390 - Fix handling of connections that are resuming with a session ID,
8391 but also support Session Tickets.
8392 - Fix a bug that suppressed issuing of a new ticket if the client
8393 presented a ticket with an expired session.
8394 - Try to set the ticket lifetime hint to something reasonable.
8395 - Make tickets shorter by excluding irrelevant information.
8396 - On the client side, don't ignore renewed tickets.
5f8e6c50 8397
44652c16 8398 *Adam Langley, Bodo Moeller (Google)*
5f8e6c50 8399
44652c16 8400 * Fix PSK session representation.
5f8e6c50 8401
44652c16 8402 *Bodo Moeller*
5f8e6c50 8403
44652c16 8404 * Add RC4-MD5 and AESNI-SHA1 "stitched" implementations.
5f8e6c50 8405
44652c16 8406 This work was sponsored by Intel.
5f8e6c50 8407
44652c16 8408 *Andy Polyakov*
5f8e6c50 8409
44652c16
DMSP
8410 * Add GCM support to TLS library. Some custom code is needed to split
8411 the IV between the fixed (from PRF) and explicit (from TLS record)
8412 portions. This adds all GCM ciphersuites supported by RFC5288 and
257e9d03 8413 RFC5289. Generalise some `AES*` cipherstrings to include GCM and
44652c16 8414 add a special AESGCM string for GCM only.
5f8e6c50 8415
44652c16 8416 *Steve Henson*
5f8e6c50 8417
44652c16
DMSP
8418 * Expand range of ctrls for AES GCM. Permit setting invocation
8419 field on decrypt and retrieval of invocation field only on encrypt.
5f8e6c50 8420
44652c16 8421 *Steve Henson*
5f8e6c50 8422
44652c16
DMSP
8423 * Add HMAC ECC ciphersuites from RFC5289. Include SHA384 PRF support.
8424 As required by RFC5289 these ciphersuites cannot be used if for
8425 versions of TLS earlier than 1.2.
5f8e6c50 8426
44652c16 8427 *Steve Henson*
5f8e6c50 8428
44652c16
DMSP
8429 * For FIPS capable OpenSSL interpret a NULL default public key method
8430 as unset and return the appropriate default but do *not* set the default.
8431 This means we can return the appropriate method in applications that
8432 switch between FIPS and non-FIPS modes.
8433
8434 *Steve Henson*
5f8e6c50 8435
44652c16
DMSP
8436 * Redirect HMAC and CMAC operations to FIPS module in FIPS mode. If an
8437 ENGINE is used then we cannot handle that in the FIPS module so we
8438 keep original code iff non-FIPS operations are allowed.
5f8e6c50
DMSP
8439
8440 *Steve Henson*
8441
44652c16 8442 * Add -attime option to openssl utilities.
5f8e6c50 8443
44652c16 8444 *Peter Eckersley <pde@eff.org>, Ben Laurie and Steve Henson*
5f8e6c50 8445
44652c16 8446 * Redirect DSA and DH operations to FIPS module in FIPS mode.
5f8e6c50
DMSP
8447
8448 *Steve Henson*
8449
44652c16
DMSP
8450 * Redirect ECDSA and ECDH operations to FIPS module in FIPS mode. Also use
8451 FIPS EC methods unconditionally for now.
5f8e6c50 8452
44652c16 8453 *Steve Henson*
5f8e6c50 8454
44652c16 8455 * New build option no-ec2m to disable characteristic 2 code.
5f8e6c50 8456
44652c16 8457 *Steve Henson*
5f8e6c50 8458
44652c16
DMSP
8459 * Backport libcrypto audit of return value checking from 1.1.0-dev; not
8460 all cases can be covered as some introduce binary incompatibilities.
5f8e6c50 8461
44652c16 8462 *Steve Henson*
5f8e6c50 8463
44652c16
DMSP
8464 * Redirect RSA operations to FIPS module including keygen,
8465 encrypt, decrypt, sign and verify. Block use of non FIPS RSA methods.
5f8e6c50 8466
44652c16 8467 *Steve Henson*
5f8e6c50 8468
4d49b685 8469 * Add similar low-level API blocking to ciphers.
5f8e6c50 8470
44652c16 8471 *Steve Henson*
5f8e6c50 8472
4d49b685 8473 * low-level digest APIs are not approved in FIPS mode: any attempt
44652c16 8474 to use these will cause a fatal error. Applications that *really* want
257e9d03 8475 to use them can use the `private_*` version instead.
5f8e6c50 8476
44652c16 8477 *Steve Henson*
5f8e6c50 8478
44652c16 8479 * Redirect cipher operations to FIPS module for FIPS builds.
5f8e6c50 8480
44652c16 8481 *Steve Henson*
5f8e6c50 8482
44652c16 8483 * Redirect digest operations to FIPS module for FIPS builds.
5f8e6c50 8484
44652c16
DMSP
8485 *Steve Henson*
8486
8487 * Update build system to add "fips" flag which will link in fipscanister.o
8488 for static and shared library builds embedding a signature if needed.
5f8e6c50
DMSP
8489
8490 *Steve Henson*
8491
44652c16
DMSP
8492 * Output TLS supported curves in preference order instead of numerical
8493 order. This is currently hardcoded for the highest order curves first.
8494 This should be configurable so applications can judge speed vs strength.
5f8e6c50 8495
44652c16 8496 *Steve Henson*
5f8e6c50 8497
44652c16 8498 * Add TLS v1.2 server support for client authentication.
5f8e6c50 8499
44652c16 8500 *Steve Henson*
5f8e6c50 8501
44652c16
DMSP
8502 * Add support for FIPS mode in ssl library: disable SSLv3, non-FIPS ciphers
8503 and enable MD5.
5f8e6c50 8504
44652c16 8505 *Steve Henson*
5f8e6c50 8506
44652c16
DMSP
8507 * Functions FIPS_mode_set() and FIPS_mode() which call the underlying
8508 FIPS modules versions.
5f8e6c50 8509
44652c16 8510 *Steve Henson*
5f8e6c50 8511
44652c16
DMSP
8512 * Add TLS v1.2 client side support for client authentication. Keep cache
8513 of handshake records longer as we don't know the hash algorithm to use
8514 until after the certificate request message is received.
5f8e6c50 8515
44652c16 8516 *Steve Henson*
5f8e6c50 8517
44652c16
DMSP
8518 * Initial TLS v1.2 client support. Add a default signature algorithms
8519 extension including all the algorithms we support. Parse new signature
8520 format in client key exchange. Relax some ECC signing restrictions for
8521 TLS v1.2 as indicated in RFC5246.
5f8e6c50 8522
44652c16 8523 *Steve Henson*
5f8e6c50 8524
44652c16
DMSP
8525 * Add server support for TLS v1.2 signature algorithms extension. Switch
8526 to new signature format when needed using client digest preference.
8527 All server ciphersuites should now work correctly in TLS v1.2. No client
8528 support yet and no support for client certificates.
5f8e6c50 8529
44652c16 8530 *Steve Henson*
5f8e6c50 8531
44652c16
DMSP
8532 * Initial TLS v1.2 support. Add new SHA256 digest to ssl code, switch
8533 to SHA256 for PRF when using TLS v1.2 and later. Add new SHA256 based
8534 ciphersuites. At present only RSA key exchange ciphersuites work with
8535 TLS v1.2. Add new option for TLS v1.2 replacing the old and obsolete
8536 SSL_OP_PKCS1_CHECK flags with SSL_OP_NO_TLSv1_2. New TLSv1.2 methods
8537 and version checking.
5f8e6c50 8538
44652c16 8539 *Steve Henson*
5f8e6c50 8540
44652c16
DMSP
8541 * New option OPENSSL_NO_SSL_INTERN. If an application can be compiled
8542 with this defined it will not be affected by any changes to ssl internal
8543 structures. Add several utility functions to allow openssl application
8544 to work with OPENSSL_NO_SSL_INTERN defined.
5f8e6c50 8545
44652c16 8546 *Steve Henson*
5f8e6c50 8547
44652c16
DMSP
8548 * A long standing patch to add support for SRP from EdelWeb (Peter
8549 Sylvester and Christophe Renou) was integrated.
8550 *Christophe Renou <christophe.renou@edelweb.fr>, Peter Sylvester
8551 <peter.sylvester@edelweb.fr>, Tom Wu <tjw@cs.stanford.edu>, and
8552 Ben Laurie*
5f8e6c50 8553
44652c16 8554 * Add functions to copy EVP_PKEY_METHOD and retrieve flags and id.
5f8e6c50 8555
44652c16 8556 *Steve Henson*
5f8e6c50 8557
44652c16
DMSP
8558 * Permit abbreviated handshakes when renegotiating using the function
8559 SSL_renegotiate_abbreviated().
5f8e6c50 8560
44652c16 8561 *Robin Seggelmann <seggelmann@fh-muenster.de>*
5f8e6c50 8562
44652c16
DMSP
8563 * Add call to ENGINE_register_all_complete() to
8564 ENGINE_load_builtin_engines(), so some implementations get used
8565 automatically instead of needing explicit application support.
5f8e6c50 8566
44652c16 8567 *Steve Henson*
5f8e6c50 8568
44652c16 8569 * Add support for TLS key exporter as described in RFC5705.
5f8e6c50 8570
44652c16 8571 *Robin Seggelmann <seggelmann@fh-muenster.de>, Steve Henson*
5f8e6c50 8572
44652c16
DMSP
8573 * Initial TLSv1.1 support. Since TLSv1.1 is very similar to TLS v1.0 only
8574 a few changes are required:
5f8e6c50 8575
44652c16
DMSP
8576 Add SSL_OP_NO_TLSv1_1 flag.
8577 Add TLSv1_1 methods.
8578 Update version checking logic to handle version 1.1.
8579 Add explicit IV handling (ported from DTLS code).
8580 Add command line options to s_client/s_server.
5f8e6c50 8581
44652c16 8582 *Steve Henson*
5f8e6c50 8583
44652c16
DMSP
8584OpenSSL 1.0.0
8585-------------
5f8e6c50 8586
257e9d03 8587### Changes between 1.0.0s and 1.0.0t [3 Dec 2015]
5f8e6c50 8588
44652c16 8589 * X509_ATTRIBUTE memory leak
5f8e6c50 8590
44652c16
DMSP
8591 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
8592 memory. This structure is used by the PKCS#7 and CMS routines so any
8593 application which reads PKCS#7 or CMS data from untrusted sources is
8594 affected. SSL/TLS is not affected.
5f8e6c50 8595
44652c16
DMSP
8596 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
8597 libFuzzer.
d8dc8538 8598 ([CVE-2015-3195])
5f8e6c50 8599
44652c16 8600 *Stephen Henson*
5f8e6c50 8601
44652c16 8602 * Race condition handling PSK identify hint
5f8e6c50 8603
44652c16
DMSP
8604 If PSK identity hints are received by a multi-threaded client then
8605 the values are wrongly updated in the parent SSL_CTX structure. This can
8606 result in a race condition potentially leading to a double free of the
8607 identify hint data.
d8dc8538 8608 ([CVE-2015-3196])
5f8e6c50 8609
44652c16 8610 *Stephen Henson*
5f8e6c50 8611
257e9d03 8612### Changes between 1.0.0r and 1.0.0s [11 Jun 2015]
5f8e6c50 8613
44652c16 8614 * Malformed ECParameters causes infinite loop
5f8e6c50 8615
44652c16
DMSP
8616 When processing an ECParameters structure OpenSSL enters an infinite loop
8617 if the curve specified is over a specially malformed binary polynomial
8618 field.
5f8e6c50 8619
44652c16
DMSP
8620 This can be used to perform denial of service against any
8621 system which processes public keys, certificate requests or
8622 certificates. This includes TLS clients and TLS servers with
8623 client authentication enabled.
5f8e6c50 8624
44652c16 8625 This issue was reported to OpenSSL by Joseph Barr-Pixton.
d8dc8538 8626 ([CVE-2015-1788])
5f8e6c50 8627
44652c16 8628 *Andy Polyakov*
5f8e6c50 8629
44652c16 8630 * Exploitable out-of-bounds read in X509_cmp_time
5f8e6c50 8631
44652c16
DMSP
8632 X509_cmp_time does not properly check the length of the ASN1_TIME
8633 string and can read a few bytes out of bounds. In addition,
8634 X509_cmp_time accepts an arbitrary number of fractional seconds in the
8635 time string.
5f8e6c50 8636
44652c16
DMSP
8637 An attacker can use this to craft malformed certificates and CRLs of
8638 various sizes and potentially cause a segmentation fault, resulting in
8639 a DoS on applications that verify certificates or CRLs. TLS clients
8640 that verify CRLs are affected. TLS clients and servers with client
8641 authentication enabled may be affected if they use custom verification
8642 callbacks.
5f8e6c50 8643
44652c16
DMSP
8644 This issue was reported to OpenSSL by Robert Swiecki (Google), and
8645 independently by Hanno Böck.
d8dc8538 8646 ([CVE-2015-1789])
5f8e6c50 8647
44652c16 8648 *Emilia Käsper*
5f8e6c50 8649
44652c16 8650 * PKCS7 crash with missing EnvelopedContent
5f8e6c50 8651
44652c16
DMSP
8652 The PKCS#7 parsing code does not handle missing inner EncryptedContent
8653 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
8654 with missing content and trigger a NULL pointer dereference on parsing.
5f8e6c50 8655
44652c16
DMSP
8656 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
8657 structures from untrusted sources are affected. OpenSSL clients and
8658 servers are not affected.
5f8e6c50 8659
44652c16 8660 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 8661 ([CVE-2015-1790])
5f8e6c50 8662
44652c16 8663 *Emilia Käsper*
5f8e6c50 8664
44652c16 8665 * CMS verify infinite loop with unknown hash function
5f8e6c50 8666
44652c16
DMSP
8667 When verifying a signedData message the CMS code can enter an infinite loop
8668 if presented with an unknown hash function OID. This can be used to perform
8669 denial of service against any system which verifies signedData messages using
8670 the CMS code.
8671 This issue was reported to OpenSSL by Johannes Bauer.
d8dc8538 8672 ([CVE-2015-1792])
5f8e6c50 8673
44652c16 8674 *Stephen Henson*
5f8e6c50 8675
44652c16 8676 * Race condition handling NewSessionTicket
5f8e6c50 8677
44652c16
DMSP
8678 If a NewSessionTicket is received by a multi-threaded client when attempting to
8679 reuse a previous ticket then a race condition can occur potentially leading to
8680 a double free of the ticket data.
d8dc8538 8681 ([CVE-2015-1791])
5f8e6c50 8682
44652c16 8683 *Matt Caswell*
5f8e6c50 8684
257e9d03 8685### Changes between 1.0.0q and 1.0.0r [19 Mar 2015]
5f8e6c50 8686
44652c16
DMSP
8687 * Segmentation fault in ASN1_TYPE_cmp fix
8688
8689 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
8690 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
8691 certificate signature algorithm consistency this can be used to crash any
8692 certificate verification operation and exploited in a DoS attack. Any
8693 application which performs certificate verification is vulnerable including
8694 OpenSSL clients and servers which enable client authentication.
d8dc8538 8695 ([CVE-2015-0286])
5f8e6c50 8696
44652c16 8697 *Stephen Henson*
5f8e6c50 8698
44652c16 8699 * ASN.1 structure reuse memory corruption fix
5f8e6c50 8700
44652c16
DMSP
8701 Reusing a structure in ASN.1 parsing may allow an attacker to cause
8702 memory corruption via an invalid write. Such reuse is and has been
8703 strongly discouraged and is believed to be rare.
5f8e6c50 8704
44652c16
DMSP
8705 Applications that parse structures containing CHOICE or ANY DEFINED BY
8706 components may be affected. Certificate parsing (d2i_X509 and related
8707 functions) are however not affected. OpenSSL clients and servers are
8708 not affected.
d8dc8538 8709 ([CVE-2015-0287])
5f8e6c50 8710
44652c16 8711 *Stephen Henson*
5f8e6c50 8712
44652c16 8713 * PKCS7 NULL pointer dereferences fix
5f8e6c50 8714
44652c16
DMSP
8715 The PKCS#7 parsing code does not handle missing outer ContentInfo
8716 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
8717 missing content and trigger a NULL pointer dereference on parsing.
5f8e6c50 8718
44652c16
DMSP
8719 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
8720 otherwise parse PKCS#7 structures from untrusted sources are
8721 affected. OpenSSL clients and servers are not affected.
5f8e6c50 8722
44652c16 8723 This issue was reported to OpenSSL by Michal Zalewski (Google).
d8dc8538 8724 ([CVE-2015-0289])
5f8e6c50 8725
44652c16 8726 *Emilia Käsper*
5f8e6c50 8727
44652c16 8728 * DoS via reachable assert in SSLv2 servers fix
5f8e6c50 8729
44652c16
DMSP
8730 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
8731 servers that both support SSLv2 and enable export cipher suites by sending
8732 a specially crafted SSLv2 CLIENT-MASTER-KEY message.
5f8e6c50 8733
44652c16
DMSP
8734 This issue was discovered by Sean Burford (Google) and Emilia Käsper
8735 (OpenSSL development team).
d8dc8538 8736 ([CVE-2015-0293])
5f8e6c50 8737
44652c16 8738 *Emilia Käsper*
5f8e6c50 8739
44652c16 8740 * Use After Free following d2i_ECPrivatekey error fix
5f8e6c50 8741
44652c16
DMSP
8742 A malformed EC private key file consumed via the d2i_ECPrivateKey function
8743 could cause a use after free condition. This, in turn, could cause a double
8744 free in several private key parsing functions (such as d2i_PrivateKey
8745 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
8746 for applications that receive EC private keys from untrusted
8747 sources. This scenario is considered rare.
5f8e6c50 8748
44652c16
DMSP
8749 This issue was discovered by the BoringSSL project and fixed in their
8750 commit 517073cd4b.
d8dc8538 8751 ([CVE-2015-0209])
5f8e6c50 8752
44652c16 8753 *Matt Caswell*
5f8e6c50 8754
44652c16 8755 * X509_to_X509_REQ NULL pointer deref fix
5f8e6c50 8756
44652c16
DMSP
8757 The function X509_to_X509_REQ will crash with a NULL pointer dereference if
8758 the certificate key is invalid. This function is rarely used in practice.
5f8e6c50 8759
44652c16 8760 This issue was discovered by Brian Carpenter.
d8dc8538 8761 ([CVE-2015-0288])
5f8e6c50 8762
44652c16 8763 *Stephen Henson*
5f8e6c50 8764
44652c16 8765 * Removed the export ciphers from the DEFAULT ciphers
5f8e6c50 8766
44652c16 8767 *Kurt Roeckx*
5f8e6c50 8768
257e9d03 8769### Changes between 1.0.0p and 1.0.0q [15 Jan 2015]
5f8e6c50 8770
44652c16 8771 * Build fixes for the Windows and OpenVMS platforms
5f8e6c50 8772
44652c16 8773 *Matt Caswell and Richard Levitte*
5f8e6c50 8774
257e9d03 8775### Changes between 1.0.0o and 1.0.0p [8 Jan 2015]
44652c16
DMSP
8776
8777 * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS
8778 message can cause a segmentation fault in OpenSSL due to a NULL pointer
8779 dereference. This could lead to a Denial Of Service attack. Thanks to
8780 Markus Stenberg of Cisco Systems, Inc. for reporting this issue.
d8dc8538 8781 ([CVE-2014-3571])
5f8e6c50
DMSP
8782
8783 *Steve Henson*
8784
44652c16
DMSP
8785 * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the
8786 dtls1_buffer_record function under certain conditions. In particular this
8787 could occur if an attacker sent repeated DTLS records with the same
8788 sequence number but for the next epoch. The memory leak could be exploited
8789 by an attacker in a Denial of Service attack through memory exhaustion.
8790 Thanks to Chris Mueller for reporting this issue.
d8dc8538 8791 ([CVE-2015-0206])
5f8e6c50 8792
44652c16 8793 *Matt Caswell*
5f8e6c50 8794
44652c16
DMSP
8795 * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is
8796 built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl
8797 method would be set to NULL which could later result in a NULL pointer
8798 dereference. Thanks to Frank Schmirler for reporting this issue.
d8dc8538 8799 ([CVE-2014-3569])
5f8e6c50 8800
44652c16 8801 *Kurt Roeckx*
5f8e6c50 8802
44652c16
DMSP
8803 * Abort handshake if server key exchange message is omitted for ephemeral
8804 ECDH ciphersuites.
5f8e6c50 8805
44652c16
DMSP
8806 Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for
8807 reporting this issue.
d8dc8538 8808 ([CVE-2014-3572])
5f8e6c50 8809
44652c16 8810 *Steve Henson*
5f8e6c50 8811
44652c16
DMSP
8812 * Remove non-export ephemeral RSA code on client and server. This code
8813 violated the TLS standard by allowing the use of temporary RSA keys in
8814 non-export ciphersuites and could be used by a server to effectively
8815 downgrade the RSA key length used to a value smaller than the server
8816 certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at
8817 INRIA or reporting this issue.
d8dc8538 8818 ([CVE-2015-0204])
5f8e6c50 8819
44652c16 8820 *Steve Henson*
5f8e6c50 8821
44652c16
DMSP
8822 * Fixed issue where DH client certificates are accepted without verification.
8823 An OpenSSL server will accept a DH certificate for client authentication
8824 without the certificate verify message. This effectively allows a client to
8825 authenticate without the use of a private key. This only affects servers
8826 which trust a client certificate authority which issues certificates
8827 containing DH keys: these are extremely rare and hardly ever encountered.
8828 Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting
8829 this issue.
d8dc8538 8830 ([CVE-2015-0205])
5f8e6c50 8831
44652c16 8832 *Steve Henson*
5f8e6c50 8833
43a70f02
RS
8834 * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect
8835 results on some platforms, including x86_64. This bug occurs at random
8836 with a very low probability, and is not known to be exploitable in any
8837 way, though its exact impact is difficult to determine. Thanks to Pieter
8838 Wuille (Blockstream) who reported this issue and also suggested an initial
8839 fix. Further analysis was conducted by the OpenSSL development team and
8840 Adam Langley of Google. The final fix was developed by Andy Polyakov of
8841 the OpenSSL core team.
d8dc8538 8842 ([CVE-2014-3570])
5f8e6c50 8843
43a70f02 8844 *Andy Polyakov*
5f8e6c50 8845
43a70f02 8846 * Fix various certificate fingerprint issues.
5f8e6c50 8847
44652c16
DMSP
8848 By using non-DER or invalid encodings outside the signed portion of a
8849 certificate the fingerprint can be changed without breaking the signature.
8850 Although no details of the signed portion of the certificate can be changed
8851 this can cause problems with some applications: e.g. those using the
8852 certificate fingerprint for blacklists.
5f8e6c50 8853
44652c16 8854 1. Reject signatures with non zero unused bits.
5f8e6c50 8855
44652c16
DMSP
8856 If the BIT STRING containing the signature has non zero unused bits reject
8857 the signature. All current signature algorithms require zero unused bits.
5f8e6c50 8858
44652c16 8859 2. Check certificate algorithm consistency.
5f8e6c50 8860
44652c16
DMSP
8861 Check the AlgorithmIdentifier inside TBS matches the one in the
8862 certificate signature. NB: this will result in signature failure
8863 errors for some broken certificates.
5f8e6c50 8864
44652c16 8865 Thanks to Konrad Kraszewski from Google for reporting this issue.
5f8e6c50 8866
44652c16 8867 3. Check DSA/ECDSA signatures use DER.
5f8e6c50 8868
eb4129e1 8869 Re-encode DSA/ECDSA signatures and compare with the original received
44652c16 8870 signature. Return an error if there is a mismatch.
5f8e6c50 8871
44652c16
DMSP
8872 This will reject various cases including garbage after signature
8873 (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS
8874 program for discovering this case) and use of BER or invalid ASN.1 INTEGERs
8875 (negative or with leading zeroes).
5f8e6c50 8876
44652c16
DMSP
8877 Further analysis was conducted and fixes were developed by Stephen Henson
8878 of the OpenSSL core team.
5f8e6c50 8879
d8dc8538 8880 ([CVE-2014-8275])
5f8e6c50
DMSP
8881
8882 *Steve Henson*
8883
257e9d03 8884### Changes between 1.0.0n and 1.0.0o [15 Oct 2014]
5f8e6c50 8885
44652c16 8886 * Session Ticket Memory Leak.
5f8e6c50 8887
44652c16
DMSP
8888 When an OpenSSL SSL/TLS/DTLS server receives a session ticket the
8889 integrity of that ticket is first verified. In the event of a session
8890 ticket integrity check failing, OpenSSL will fail to free memory
8891 causing a memory leak. By sending a large number of invalid session
8892 tickets an attacker could exploit this issue in a Denial Of Service
8893 attack.
d8dc8538 8894 ([CVE-2014-3567])
5f8e6c50
DMSP
8895
8896 *Steve Henson*
8897
44652c16 8898 * Build option no-ssl3 is incomplete.
5f8e6c50 8899
44652c16 8900 When OpenSSL is configured with "no-ssl3" as a build option, servers
d7f3a2cc 8901 could accept and complete an SSL 3.0 handshake, and clients could be
44652c16 8902 configured to send them.
d8dc8538 8903 ([CVE-2014-3568])
5f8e6c50 8904
44652c16
DMSP
8905 *Akamai and the OpenSSL team*
8906
8907 * Add support for TLS_FALLBACK_SCSV.
8908 Client applications doing fallback retries should call
8909 SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV).
d8dc8538 8910 ([CVE-2014-3566])
5f8e6c50 8911
44652c16 8912 *Adam Langley, Bodo Moeller*
5f8e6c50 8913
44652c16 8914 * Add additional DigestInfo checks.
5f8e6c50 8915
eb4129e1 8916 Re-encode DigestInto in DER and check against the original when
44652c16
DMSP
8917 verifying RSA signature: this will reject any improperly encoded
8918 DigestInfo structures.
5f8e6c50 8919
44652c16 8920 Note: this is a precautionary measure and no attacks are currently known.
5f8e6c50 8921
5f8e6c50
DMSP
8922 *Steve Henson*
8923
257e9d03 8924### Changes between 1.0.0m and 1.0.0n [6 Aug 2014]
5f8e6c50 8925
44652c16
DMSP
8926 * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject
8927 to a denial of service attack. A malicious server can crash the client
8928 with a null pointer dereference (read) by specifying an anonymous (EC)DH
8929 ciphersuite and sending carefully crafted handshake messages.
5f8e6c50 8930
44652c16
DMSP
8931 Thanks to Felix Gröbert (Google) for discovering and researching this
8932 issue.
d8dc8538 8933 ([CVE-2014-3510])
5f8e6c50 8934
44652c16 8935 *Emilia Käsper*
5f8e6c50 8936
44652c16
DMSP
8937 * By sending carefully crafted DTLS packets an attacker could cause openssl
8938 to leak memory. This can be exploited through a Denial of Service attack.
8939 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 8940 ([CVE-2014-3507])
5f8e6c50 8941
44652c16 8942 *Adam Langley*
5f8e6c50 8943
44652c16
DMSP
8944 * An attacker can force openssl to consume large amounts of memory whilst
8945 processing DTLS handshake messages. This can be exploited through a
8946 Denial of Service attack.
8947 Thanks to Adam Langley for discovering and researching this issue.
d8dc8538 8948 ([CVE-2014-3506])
5f8e6c50 8949
44652c16 8950 *Adam Langley*
5f8e6c50 8951
44652c16
DMSP
8952 * An attacker can force an error condition which causes openssl to crash
8953 whilst processing DTLS packets due to memory being freed twice. This
8954 can be exploited through a Denial of Service attack.
8955 Thanks to Adam Langley and Wan-Teh Chang for discovering and researching
8956 this issue.
d8dc8538 8957 ([CVE-2014-3505])
5f8e6c50 8958
44652c16 8959 *Adam Langley*
5f8e6c50 8960
44652c16
DMSP
8961 * If a multithreaded client connects to a malicious server using a resumed
8962 session and the server sends an ec point format extension it could write
8963 up to 255 bytes to freed memory.
5f8e6c50 8964
44652c16
DMSP
8965 Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this
8966 issue.
d8dc8538 8967 ([CVE-2014-3509])
5f8e6c50 8968
44652c16 8969 *Gabor Tyukasz*
5f8e6c50 8970
44652c16
DMSP
8971 * A flaw in OBJ_obj2txt may cause pretty printing functions such as
8972 X509_name_oneline, X509_name_print_ex et al. to leak some information
8973 from the stack. Applications may be affected if they echo pretty printing
8974 output to the attacker.
5f8e6c50 8975
44652c16 8976 Thanks to Ivan Fratric (Google) for discovering this issue.
d8dc8538 8977 ([CVE-2014-3508])
5f8e6c50 8978
44652c16 8979 *Emilia Käsper, and Steve Henson*
5f8e6c50 8980
44652c16
DMSP
8981 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
8982 for corner cases. (Certain input points at infinity could lead to
8983 bogus results, with non-infinity inputs mapped to infinity too.)
5f8e6c50 8984
44652c16 8985 *Bodo Moeller*
5f8e6c50 8986
257e9d03 8987### Changes between 1.0.0l and 1.0.0m [5 Jun 2014]
5f8e6c50 8988
44652c16
DMSP
8989 * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted
8990 handshake can force the use of weak keying material in OpenSSL
8991 SSL/TLS clients and servers.
5f8e6c50 8992
44652c16 8993 Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
d8dc8538 8994 researching this issue. ([CVE-2014-0224])
5f8e6c50 8995
44652c16 8996 *KIKUCHI Masashi, Steve Henson*
5f8e6c50 8997
44652c16
DMSP
8998 * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an
8999 OpenSSL DTLS client the code can be made to recurse eventually crashing
9000 in a DoS attack.
5f8e6c50 9001
44652c16 9002 Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.
d8dc8538 9003 ([CVE-2014-0221])
5f8e6c50 9004
44652c16 9005 *Imre Rad, Steve Henson*
5f8e6c50 9006
44652c16
DMSP
9007 * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can
9008 be triggered by sending invalid DTLS fragments to an OpenSSL DTLS
9009 client or server. This is potentially exploitable to run arbitrary
9010 code on a vulnerable client or server.
5f8e6c50 9011
d8dc8538 9012 Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195])
5f8e6c50 9013
44652c16 9014 *Jüri Aedla, Steve Henson*
5f8e6c50 9015
44652c16
DMSP
9016 * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites
9017 are subject to a denial of service attack.
5f8e6c50 9018
44652c16 9019 Thanks to Felix Gröbert and Ivan Fratric at Google for discovering
d8dc8538 9020 this issue. ([CVE-2014-3470])
5f8e6c50 9021
44652c16 9022 *Felix Gröbert, Ivan Fratric, Steve Henson*
5f8e6c50 9023
44652c16
DMSP
9024 * Harmonize version and its documentation. -f flag is used to display
9025 compilation flags.
5f8e6c50 9026
44652c16 9027 *mancha <mancha1@zoho.com>*
5f8e6c50 9028
44652c16
DMSP
9029 * Fix eckey_priv_encode so it immediately returns an error upon a failure
9030 in i2d_ECPrivateKey.
5f8e6c50 9031
44652c16 9032 *mancha <mancha1@zoho.com>*
5f8e6c50 9033
44652c16 9034 * Fix some double frees. These are not thought to be exploitable.
5f8e6c50 9035
44652c16 9036 *mancha <mancha1@zoho.com>*
5f8e6c50 9037
44652c16
DMSP
9038 * Fix for the attack described in the paper "Recovering OpenSSL
9039 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
9040 by Yuval Yarom and Naomi Benger. Details can be obtained from:
257e9d03 9041 <http://eprint.iacr.org/2014/140>
5f8e6c50 9042
44652c16 9043 Thanks to Yuval Yarom and Naomi Benger for discovering this
d8dc8538 9044 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076])
5f8e6c50 9045
44652c16 9046 *Yuval Yarom and Naomi Benger*
5f8e6c50 9047
257e9d03 9048### Changes between 1.0.0k and 1.0.0l [6 Jan 2014]
5f8e6c50 9049
44652c16
DMSP
9050 * Keep original DTLS digest and encryption contexts in retransmission
9051 structures so we can use the previous session parameters if they need
d8dc8538 9052 to be resent. ([CVE-2013-6450])
5f8e6c50
DMSP
9053
9054 *Steve Henson*
9055
44652c16
DMSP
9056 * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which
9057 avoids preferring ECDHE-ECDSA ciphers when the client appears to be
9058 Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for
9059 several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug
9060 is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing
9061 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer.
5f8e6c50 9062
44652c16 9063 *Rob Stradling, Adam Langley*
5f8e6c50 9064
257e9d03 9065### Changes between 1.0.0j and 1.0.0k [5 Feb 2013]
5f8e6c50 9066
44652c16 9067 * Make the decoding of SSLv3, TLS and DTLS CBC records constant time.
5f8e6c50 9068
44652c16
DMSP
9069 This addresses the flaw in CBC record processing discovered by
9070 Nadhem Alfardan and Kenny Paterson. Details of this attack can be found
257e9d03 9071 at: <http://www.isg.rhul.ac.uk/tls/>
5f8e6c50 9072
44652c16
DMSP
9073 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
9074 Security Group at Royal Holloway, University of London
9075 (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and
9076 Emilia Käsper for the initial patch.
d8dc8538 9077 ([CVE-2013-0169])
5f8e6c50 9078
44652c16 9079 *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson*
5f8e6c50 9080
44652c16 9081 * Return an error when checking OCSP signatures when key is NULL.
d8dc8538 9082 This fixes a DoS attack. ([CVE-2013-0166])
5f8e6c50
DMSP
9083
9084 *Steve Henson*
9085
44652c16
DMSP
9086 * Call OCSP Stapling callback after ciphersuite has been chosen, so
9087 the right response is stapled. Also change SSL_get_certificate()
9088 so it returns the certificate actually sent.
257e9d03 9089 See <http://rt.openssl.org/Ticket/Display.html?id=2836>.
44652c16 9090 (This is a backport)
5f8e6c50 9091
44652c16 9092 *Rob Stradling <rob.stradling@comodo.com>*
5f8e6c50 9093
44652c16 9094 * Fix possible deadlock when decoding public keys.
5f8e6c50
DMSP
9095
9096 *Steve Henson*
9097
257e9d03 9098### Changes between 1.0.0i and 1.0.0j [10 May 2012]
5f8e6c50 9099
44652c16
DMSP
9100[NB: OpenSSL 1.0.0i and later 1.0.0 patch levels were released after
9101OpenSSL 1.0.1.]
5f8e6c50 9102
44652c16
DMSP
9103 * Sanity check record length before skipping explicit IV in DTLS
9104 to fix DoS attack.
5f8e6c50 9105
44652c16
DMSP
9106 Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic
9107 fuzzing as a service testing platform.
d8dc8538 9108 ([CVE-2012-2333])
5f8e6c50
DMSP
9109
9110 *Steve Henson*
9111
44652c16
DMSP
9112 * Initialise tkeylen properly when encrypting CMS messages.
9113 Thanks to Solar Designer of Openwall for reporting this issue.
5f8e6c50
DMSP
9114
9115 *Steve Henson*
9116
257e9d03 9117### Changes between 1.0.0h and 1.0.0i [19 Apr 2012]
5f8e6c50 9118
44652c16
DMSP
9119 * Check for potentially exploitable overflows in asn1_d2i_read_bio
9120 BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
9121 in CRYPTO_realloc_clean.
5f8e6c50 9122
44652c16
DMSP
9123 Thanks to Tavis Ormandy, Google Security Team, for discovering this
9124 issue and to Adam Langley <agl@chromium.org> for fixing it.
d8dc8538 9125 ([CVE-2012-2110])
5f8e6c50 9126
44652c16 9127 *Adam Langley (Google), Tavis Ormandy, Google Security Team*
5f8e6c50 9128
257e9d03 9129### Changes between 1.0.0g and 1.0.0h [12 Mar 2012]
5f8e6c50
DMSP
9130
9131 * Fix MMA (Bleichenbacher's attack on PKCS #1 v1.5 RSA padding) weakness
9132 in CMS and PKCS7 code. When RSA decryption fails use a random key for
9133 content decryption and always return the same error. Note: this attack
9134 needs on average 2^20 messages so it only affects automated senders. The
9135 old behaviour can be re-enabled in the CMS code by setting the
9136 CMS_DEBUG_DECRYPT flag: this is useful for debugging and testing where
9137 an MMA defence is not necessary.
9138 Thanks to Ivan Nestlerode <inestlerode@us.ibm.com> for discovering
d8dc8538 9139 this issue. ([CVE-2012-0884])
5f8e6c50
DMSP
9140
9141 *Steve Henson*
9142
9143 * Fix CVE-2011-4619: make sure we really are receiving a
9144 client hello before rejecting multiple SGC restarts. Thanks to
9145 Ivan Nestlerode <inestlerode@us.ibm.com> for discovering this bug.
9146
9147 *Steve Henson*
9148
257e9d03 9149### Changes between 1.0.0f and 1.0.0g [18 Jan 2012]
5f8e6c50
DMSP
9150
9151 * Fix for DTLS DoS issue introduced by fix for CVE-2011-4109.
9152 Thanks to Antonio Martin, Enterprise Secure Access Research and
9153 Development, Cisco Systems, Inc. for discovering this bug and
d8dc8538 9154 preparing a fix. ([CVE-2012-0050])
5f8e6c50
DMSP
9155
9156 *Antonio Martin*
9157
257e9d03 9158### Changes between 1.0.0e and 1.0.0f [4 Jan 2012]
5f8e6c50
DMSP
9159
9160 * Nadhem Alfardan and Kenny Paterson have discovered an extension
9161 of the Vaudenay padding oracle attack on CBC mode encryption
9162 which enables an efficient plaintext recovery attack against
9163 the OpenSSL implementation of DTLS. Their attack exploits timing
9164 differences arising during decryption processing. A research
9165 paper describing this attack can be found at:
257e9d03 9166 <http://www.isg.rhul.ac.uk/~kp/dtls.pdf>
5f8e6c50
DMSP
9167 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
9168 Security Group at Royal Holloway, University of London
9169 (www.isg.rhul.ac.uk) for discovering this flaw and to Robin Seggelmann
9170 <seggelmann@fh-muenster.de> and Michael Tuexen <tuexen@fh-muenster.de>
d8dc8538 9171 for preparing the fix. ([CVE-2011-4108])
5f8e6c50
DMSP
9172
9173 *Robin Seggelmann, Michael Tuexen*
9174
9175 * Clear bytes used for block padding of SSL 3.0 records.
d8dc8538 9176 ([CVE-2011-4576])
5f8e6c50
DMSP
9177
9178 *Adam Langley (Google)*
9179
9180 * Only allow one SGC handshake restart for SSL/TLS. Thanks to George
9181 Kadianakis <desnacked@gmail.com> for discovering this issue and
d8dc8538 9182 Adam Langley for preparing the fix. ([CVE-2011-4619])
5f8e6c50
DMSP
9183
9184 *Adam Langley (Google)*
9185
d8dc8538 9186 * Check parameters are not NULL in GOST ENGINE. ([CVE-2012-0027])
5f8e6c50
DMSP
9187
9188 *Andrey Kulikov <amdeich@gmail.com>*
9189
9190 * Prevent malformed RFC3779 data triggering an assertion failure.
9191 Thanks to Andrew Chi, BBN Technologies, for discovering the flaw
d8dc8538 9192 and Rob Austein <sra@hactrn.net> for fixing it. ([CVE-2011-4577])
5f8e6c50
DMSP
9193
9194 *Rob Austein <sra@hactrn.net>*
9195
9196 * Improved PRNG seeding for VOS.
9197
9198 *Paul Green <Paul.Green@stratus.com>*
9199
9200 * Fix ssl_ciph.c set-up race.
9201
9202 *Adam Langley (Google)*
9203
9204 * Fix spurious failures in ecdsatest.c.
9205
9206 *Emilia Käsper (Google)*
9207
9208 * Fix the BIO_f_buffer() implementation (which was mixing different
257e9d03 9209 interpretations of the `..._len` fields).
5f8e6c50
DMSP
9210
9211 *Adam Langley (Google)*
9212
9213 * Fix handling of BN_BLINDING: now BN_BLINDING_invert_ex (rather than
9214 BN_BLINDING_invert_ex) calls BN_BLINDING_update, ensuring that concurrent
9215 threads won't reuse the same blinding coefficients.
9216
9217 This also avoids the need to obtain the CRYPTO_LOCK_RSA_BLINDING
9218 lock to call BN_BLINDING_invert_ex, and avoids one use of
9219 BN_BLINDING_update for each BN_BLINDING structure (previously,
9220 the last update always remained unused).
9221
9222 *Emilia Käsper (Google)*
9223
9224 * In ssl3_clear, preserve s3->init_extra along with s3->rbuf.
9225
9226 *Bob Buckholz (Google)*
9227
257e9d03 9228### Changes between 1.0.0d and 1.0.0e [6 Sep 2011]
5f8e6c50
DMSP
9229
9230 * Fix bug where CRLs with nextUpdate in the past are sometimes accepted
d8dc8538 9231 by initialising X509_STORE_CTX properly. ([CVE-2011-3207])
5f8e6c50
DMSP
9232
9233 *Kaspar Brand <ossl@velox.ch>*
9234
9235 * Fix SSL memory handling for (EC)DH ciphersuites, in particular
d8dc8538 9236 for multi-threaded use of ECDH. ([CVE-2011-3210])
5f8e6c50
DMSP
9237
9238 *Adam Langley (Google)*
9239
9240 * Fix x509_name_ex_d2i memory leak on bad inputs.
9241
9242 *Bodo Moeller*
9243
9244 * Remove hard coded ecdsaWithSHA1 signature tests in ssl code and check
9245 signature public key algorithm by using OID xref utilities instead.
9246 Before this you could only use some ECC ciphersuites with SHA1 only.
9247
9248 *Steve Henson*
9249
9250 * Add protection against ECDSA timing attacks as mentioned in the paper
9251 by Billy Bob Brumley and Nicola Tuveri, see:
257e9d03 9252 <http://eprint.iacr.org/2011/232.pdf>
5f8e6c50
DMSP
9253
9254 *Billy Bob Brumley and Nicola Tuveri*
9255
257e9d03 9256### Changes between 1.0.0c and 1.0.0d [8 Feb 2011]
5f8e6c50
DMSP
9257
9258 * Fix parsing of OCSP stapling ClientHello extension. CVE-2011-0014
9259
9260 *Neel Mehta, Adam Langley, Bodo Moeller (Google)*
9261
9262 * Fix bug in string printing code: if *any* escaping is enabled we must
9263 escape the escape character (backslash) or the resulting string is
9264 ambiguous.
9265
9266 *Steve Henson*
9267
257e9d03 9268### Changes between 1.0.0b and 1.0.0c [2 Dec 2010]
5f8e6c50
DMSP
9269
9270 * Disable code workaround for ancient and obsolete Netscape browsers
9271 and servers: an attacker can use it in a ciphersuite downgrade attack.
9272 Thanks to Martin Rex for discovering this bug. CVE-2010-4180
9273
9274 *Steve Henson*
9275
9276 * Fixed J-PAKE implementation error, originally discovered by
9277 Sebastien Martini, further info and confirmation from Stefan
9278 Arentz and Feng Hao. Note that this fix is a security fix. CVE-2010-4252
9279
9280 *Ben Laurie*
9281
257e9d03 9282### Changes between 1.0.0a and 1.0.0b [16 Nov 2010]
5f8e6c50
DMSP
9283
9284 * Fix extension code to avoid race conditions which can result in a buffer
9285 overrun vulnerability: resumed sessions must not be modified as they can
9286 be shared by multiple threads. CVE-2010-3864
9287
9288 *Steve Henson*
9289
9290 * Fix WIN32 build system to correctly link an ENGINE directory into
9291 a DLL.
9292
9293 *Steve Henson*
9294
257e9d03 9295### Changes between 1.0.0 and 1.0.0a [01 Jun 2010]
5f8e6c50
DMSP
9296
9297 * Check return value of int_rsa_verify in pkey_rsa_verifyrecover
d8dc8538 9298 ([CVE-2010-1633])
5f8e6c50
DMSP
9299
9300 *Steve Henson, Peter-Michael Hager <hager@dortmund.net>*
9301
257e9d03 9302### Changes between 0.9.8n and 1.0.0 [29 Mar 2010]
5f8e6c50
DMSP
9303
9304 * Add "missing" function EVP_CIPHER_CTX_copy(). This copies a cipher
9305 context. The operation can be customised via the ctrl mechanism in
9306 case ENGINEs want to include additional functionality.
9307
9308 *Steve Henson*
9309
9310 * Tolerate yet another broken PKCS#8 key format: private key value negative.
9311
9312 *Steve Henson*
9313
9314 * Add new -subject_hash_old and -issuer_hash_old options to x509 utility to
9315 output hashes compatible with older versions of OpenSSL.
9316
9317 *Willy Weisz <weisz@vcpc.univie.ac.at>*
9318
9319 * Fix compression algorithm handling: if resuming a session use the
9320 compression algorithm of the resumed session instead of determining
9321 it from client hello again. Don't allow server to change algorithm.
9322
9323 *Steve Henson*
9324
ec2bfb7d 9325 * Add load_crls() function to commands tidying load_certs() too. Add option
5f8e6c50
DMSP
9326 to verify utility to allow additional CRLs to be included.
9327
9328 *Steve Henson*
9329
9330 * Update OCSP request code to permit adding custom headers to the request:
9331 some responders need this.
9332
9333 *Steve Henson*
9334
9335 * The function EVP_PKEY_sign() returns <=0 on error: check return code
9336 correctly.
9337
9338 *Julia Lawall <julia@diku.dk>*
9339
ec2bfb7d 9340 * Update verify callback code in `apps/s_cb.c` and `apps/verify.c`, it
5f8e6c50
DMSP
9341 needlessly dereferenced structures, used obsolete functions and
9342 didn't handle all updated verify codes correctly.
9343
9344 *Steve Henson*
9345
9346 * Disable MD2 in the default configuration.
9347
9348 *Steve Henson*
9349
9350 * In BIO_pop() and BIO_push() use the ctrl argument (which was NULL) to
9351 indicate the initial BIO being pushed or popped. This makes it possible
9352 to determine whether the BIO is the one explicitly called or as a result
9353 of the ctrl being passed down the chain. Fix BIO_pop() and SSL BIOs so
9354 it handles reference counts correctly and doesn't zero out the I/O bio
9355 when it is not being explicitly popped. WARNING: applications which
9356 included workarounds for the old buggy behaviour will need to be modified
9357 or they could free up already freed BIOs.
9358
9359 *Steve Henson*
9360
9361 * Extend the uni2asc/asc2uni => OPENSSL_uni2asc/OPENSSL_asc2uni
9362 renaming to all platforms (within the 0.9.8 branch, this was
9363 done conditionally on Netware platforms to avoid a name clash).
9364
9365 *Guenter <lists@gknw.net>*
9366
9367 * Add ECDHE and PSK support to DTLS.
9368
9369 *Michael Tuexen <tuexen@fh-muenster.de>*
9370
9371 * Add CHECKED_STACK_OF macro to safestack.h, otherwise safestack can't
9372 be used on C++.
9373
9374 *Steve Henson*
9375
9376 * Add "missing" function EVP_MD_flags() (without this the only way to
9377 retrieve a digest flags is by accessing the structure directly. Update
257e9d03 9378 `EVP_MD_do_all*()` and `EVP_CIPHER_do_all*()` to include the name a digest
5f8e6c50
DMSP
9379 or cipher is registered as in the "from" argument. Print out all
9380 registered digests in the dgst usage message instead of manually
9381 attempting to work them out.
9382
9383 *Steve Henson*
9384
9385 * If no SSLv2 ciphers are used don't use an SSLv2 compatible client hello:
9386 this allows the use of compression and extensions. Change default cipher
9387 string to remove SSLv2 ciphersuites. This effectively avoids ancient SSLv2
9388 by default unless an application cipher string requests it.
9389
9390 *Steve Henson*
9391
9392 * Alter match criteria in PKCS12_parse(). It used to try to use local
9393 key ids to find matching certificates and keys but some PKCS#12 files
9394 don't follow the (somewhat unwritten) rules and this strategy fails.
9395 Now just gather all certificates together and the first private key
9396 then look for the first certificate that matches the key.
9397
9398 *Steve Henson*
9399
9400 * Support use of registered digest and cipher names for dgst and cipher
9401 commands instead of having to add each one as a special case. So now
9402 you can do:
9403
9404 openssl sha256 foo
9405
9406 as well as:
9407
9408 openssl dgst -sha256 foo
9409
9410 and this works for ENGINE based algorithms too.
9411
5f8e6c50
DMSP
9412 *Steve Henson*
9413
9414 * Update Gost ENGINE to support parameter files.
9415
9416 *Victor B. Wagner <vitus@cryptocom.ru>*
9417
9418 * Support GeneralizedTime in ca utility.
9419
9420 *Oliver Martin <oliver@volatilevoid.net>, Steve Henson*
9421
9422 * Enhance the hash format used for certificate directory links. The new
9423 form uses the canonical encoding (meaning equivalent names will work
9424 even if they aren't identical) and uses SHA1 instead of MD5. This form
9425 is incompatible with the older format and as a result c_rehash should
9426 be used to rebuild symbolic links.
9427
9428 *Steve Henson*
9429
9430 * Make PKCS#8 the default write format for private keys, replacing the
9431 traditional format. This form is standardised, more secure and doesn't
9432 include an implicit MD5 dependency.
9433
9434 *Steve Henson*
9435
9436 * Add a $gcc_devteam_warn option to Configure. The idea is that any code
9437 committed to OpenSSL should pass this lot as a minimum.
9438
9439 *Steve Henson*
9440
9441 * Add session ticket override functionality for use by EAP-FAST.
9442
9443 *Jouni Malinen <j@w1.fi>*
9444
9445 * Modify HMAC functions to return a value. Since these can be implemented
9446 in an ENGINE errors can occur.
9447
9448 *Steve Henson*
9449
9450 * Type-checked OBJ_bsearch_ex.
9451
9452 *Ben Laurie*
9453
9454 * Type-checked OBJ_bsearch. Also some constification necessitated
9455 by type-checking. Still to come: TXT_DB, bsearch(?),
9456 OBJ_bsearch_ex, qsort, CRYPTO_EX_DATA, ASN1_VALUE, ASN1_STRING,
9457 CONF_VALUE.
9458
9459 *Ben Laurie*
9460
9461 * New function OPENSSL_gmtime_adj() to add a specific number of days and
9462 seconds to a tm structure directly, instead of going through OS
9463 specific date routines. This avoids any issues with OS routines such
257e9d03 9464 as the year 2038 bug. New `*_adj()` functions for ASN1 time structures
5f8e6c50
DMSP
9465 and X509_time_adj_ex() to cover the extended range. The existing
9466 X509_time_adj() is still usable and will no longer have any date issues.
9467
9468 *Steve Henson*
9469
9470 * Delta CRL support. New use deltas option which will attempt to locate
9471 and search any appropriate delta CRLs available.
9472
9473 This work was sponsored by Google.
9474
9475 *Steve Henson*
9476
9477 * Support for CRLs partitioned by reason code. Reorganise CRL processing
9478 code and add additional score elements. Validate alternate CRL paths
9479 as part of the CRL checking and indicate a new error "CRL path validation
9480 error" in this case. Applications wanting additional details can use
9481 the verify callback and check the new "parent" field. If this is not
9482 NULL CRL path validation is taking place. Existing applications won't
9483 see this because it requires extended CRL support which is off by
9484 default.
9485
9486 This work was sponsored by Google.
9487
9488 *Steve Henson*
9489
9490 * Support for freshest CRL extension.
9491
9492 This work was sponsored by Google.
9493
9494 *Steve Henson*
9495
9496 * Initial indirect CRL support. Currently only supported in the CRLs
9497 passed directly and not via lookup. Process certificate issuer
9498 CRL entry extension and lookup CRL entries by bother issuer name
9499 and serial number. Check and process CRL issuer entry in IDP extension.
9500
9501 This work was sponsored by Google.
9502
9503 *Steve Henson*
9504
9505 * Add support for distinct certificate and CRL paths. The CRL issuer
9506 certificate is validated separately in this case. Only enabled if
9507 an extended CRL support flag is set: this flag will enable additional
9508 CRL functionality in future.
9509
9510 This work was sponsored by Google.
9511
9512 *Steve Henson*
9513
9514 * Add support for policy mappings extension.
9515
9516 This work was sponsored by Google.
9517
9518 *Steve Henson*
9519
9520 * Fixes to pathlength constraint, self issued certificate handling,
9521 policy processing to align with RFC3280 and PKITS tests.
9522
9523 This work was sponsored by Google.
9524
9525 *Steve Henson*
9526
9527 * Support for name constraints certificate extension. DN, email, DNS
9528 and URI types are currently supported.
9529
9530 This work was sponsored by Google.
9531
9532 *Steve Henson*
9533
9534 * To cater for systems that provide a pointer-based thread ID rather
9535 than numeric, deprecate the current numeric thread ID mechanism and
9536 replace it with a structure and associated callback type. This
9537 mechanism allows a numeric "hash" to be extracted from a thread ID in
9538 either case, and on platforms where pointers are larger than 'long',
9539 mixing is done to help ensure the numeric 'hash' is usable even if it
9540 can't be guaranteed unique. The default mechanism is to use "&errno"
9541 as a pointer-based thread ID to distinguish between threads.
9542
9543 Applications that want to provide their own thread IDs should now use
9544 CRYPTO_THREADID_set_callback() to register a callback that will call
9545 either CRYPTO_THREADID_set_numeric() or CRYPTO_THREADID_set_pointer().
9546
9547 Note that ERR_remove_state() is now deprecated, because it is tied
9548 to the assumption that thread IDs are numeric. ERR_remove_state(0)
9549 to free the current thread's error state should be replaced by
9550 ERR_remove_thread_state(NULL).
9551
9552 (This new approach replaces the functions CRYPTO_set_idptr_callback(),
9553 CRYPTO_get_idptr_callback(), and CRYPTO_thread_idptr() that existed in
9554 OpenSSL 0.9.9-dev between June 2006 and August 2008. Also, if an
9555 application was previously providing a numeric thread callback that
9556 was inappropriate for distinguishing threads, then uniqueness might
9557 have been obtained with &errno that happened immediately in the
9558 intermediate development versions of OpenSSL; this is no longer the
9559 case, the numeric thread callback will now override the automatic use
9560 of &errno.)
9561
9562 *Geoff Thorpe, with help from Bodo Moeller*
9563
9564 * Initial support for different CRL issuing certificates. This covers a
9565 simple case where the self issued certificates in the chain exist and
9566 the real CRL issuer is higher in the existing chain.
9567
9568 This work was sponsored by Google.
9569
9570 *Steve Henson*
9571
9572 * Removed effectively defunct crypto/store from the build.
9573
9574 *Ben Laurie*
9575
9576 * Revamp of STACK to provide stronger type-checking. Still to come:
9577 TXT_DB, bsearch(?), OBJ_bsearch, qsort, CRYPTO_EX_DATA, ASN1_VALUE,
9578 ASN1_STRING, CONF_VALUE.
9579
9580 *Ben Laurie*
9581
9582 * Add a new SSL_MODE_RELEASE_BUFFERS mode flag to release unused buffer
9583 RAM on SSL connections. This option can save about 34k per idle SSL.
9584
9585 *Nick Mathewson*
9586
9587 * Revamp of LHASH to provide stronger type-checking. Still to come:
9588 STACK, TXT_DB, bsearch, qsort.
9589
9590 *Ben Laurie*
9591
9592 * Initial support for Cryptographic Message Syntax (aka CMS) based
9593 on RFC3850, RFC3851 and RFC3852. New cms directory and cms utility,
9594 support for data, signedData, compressedData, digestedData and
9595 encryptedData, envelopedData types included. Scripts to check against
9596 RFC4134 examples draft and interop and consistency checks of many
9597 content types and variants.
9598
9599 *Steve Henson*
9600
9601 * Add options to enc utility to support use of zlib compression BIO.
9602
9603 *Steve Henson*
9604
9605 * Extend mk1mf to support importing of options and assembly language
9606 files from Configure script, currently only included in VC-WIN32.
9607 The assembly language rules can now optionally generate the source
9608 files from the associated perl scripts.
9609
9610 *Steve Henson*
9611
9612 * Implement remaining functionality needed to support GOST ciphersuites.
9613 Interop testing has been performed using CryptoPro implementations.
9614
9615 *Victor B. Wagner <vitus@cryptocom.ru>*
9616
9617 * s390x assembler pack.
9618
9619 *Andy Polyakov*
9620
9621 * ARMv4 assembler pack. ARMv4 refers to v4 and later ISA, not CPU
9622 "family."
9623
9624 *Andy Polyakov*
9625
9626 * Implement Opaque PRF Input TLS extension as specified in
9627 draft-rescorla-tls-opaque-prf-input-00.txt. Since this is not an
9628 official specification yet and no extension type assignment by
9629 IANA exists, this extension (for now) will have to be explicitly
9630 enabled when building OpenSSL by providing the extension number
9631 to use. For example, specify an option
9632
9633 -DTLSEXT_TYPE_opaque_prf_input=0x9527
9634
9635 to the "config" or "Configure" script to enable the extension,
9636 assuming extension number 0x9527 (which is a completely arbitrary
9637 and unofficial assignment based on the MD5 hash of the Internet
9638 Draft). Note that by doing so, you potentially lose
9639 interoperability with other TLS implementations since these might
9640 be using the same extension number for other purposes.
9641
9642 SSL_set_tlsext_opaque_prf_input(ssl, src, len) is used to set the
9643 opaque PRF input value to use in the handshake. This will create
9644 an internal copy of the length-'len' string at 'src', and will
9645 return non-zero for success.
9646
9647 To get more control and flexibility, provide a callback function
9648 by using
9649
9650 SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx, cb)
9651 SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx, arg)
9652
9653 where
9654
9655 int (*cb)(SSL *, void *peerinput, size_t len, void *arg);
9656 void *arg;
9657
9658 Callback function 'cb' will be called in handshakes, and is
9659 expected to use SSL_set_tlsext_opaque_prf_input() as appropriate.
9660 Argument 'arg' is for application purposes (the value as given to
9661 SSL_CTX_set_tlsext_opaque_prf_input_callback_arg() will directly
9662 be provided to the callback function). The callback function
9663 has to return non-zero to report success: usually 1 to use opaque
9664 PRF input just if possible, or 2 to enforce use of the opaque PRF
9665 input. In the latter case, the library will abort the handshake
9666 if opaque PRF input is not successfully negotiated.
9667
9668 Arguments 'peerinput' and 'len' given to the callback function
9669 will always be NULL and 0 in the case of a client. A server will
9670 see the client's opaque PRF input through these variables if
9671 available (NULL and 0 otherwise). Note that if the server
9672 provides an opaque PRF input, the length must be the same as the
9673 length of the client's opaque PRF input.
9674
9675 Note that the callback function will only be called when creating
9676 a new session (session resumption can resume whatever was
9677 previously negotiated), and will not be called in SSL 2.0
9678 handshakes; thus, SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) or
9679 SSL_set_options(ssl, SSL_OP_NO_SSLv2) is especially recommended
9680 for applications that need to enforce opaque PRF input.
9681
5f8e6c50
DMSP
9682 *Bodo Moeller*
9683
9684 * Update ssl code to support digests other than SHA1+MD5 for handshake
9685 MAC.
9686
5f8e6c50
DMSP
9687 *Victor B. Wagner <vitus@cryptocom.ru>*
9688
9689 * Add RFC4507 support to OpenSSL. This includes the corrections in
9690 RFC4507bis. The encrypted ticket format is an encrypted encoded
9691 SSL_SESSION structure, that way new session features are automatically
9692 supported.
9693
9694 If a client application caches session in an SSL_SESSION structure
9695 support is transparent because tickets are now stored in the encoded
9696 SSL_SESSION.
9697
9698 The SSL_CTX structure automatically generates keys for ticket
9699 protection in servers so again support should be possible
9700 with no application modification.
9701
9702 If a client or server wishes to disable RFC4507 support then the option
9703 SSL_OP_NO_TICKET can be set.
9704
9705 Add a TLS extension debugging callback to allow the contents of any client
9706 or server extensions to be examined.
9707
9708 This work was sponsored by Google.
9709
9710 *Steve Henson*
9711
9712 * Final changes to avoid use of pointer pointer casts in OpenSSL.
9713 OpenSSL should now compile cleanly on gcc 4.2
9714
9715 *Peter Hartley <pdh@utter.chaos.org.uk>, Steve Henson*
9716
9717 * Update SSL library to use new EVP_PKEY MAC API. Include generic MAC
9718 support including streaming MAC support: this is required for GOST
9719 ciphersuite support.
9720
9721 *Victor B. Wagner <vitus@cryptocom.ru>, Steve Henson*
9722
9723 * Add option -stream to use PKCS#7 streaming in smime utility. New
9724 function i2d_PKCS7_bio_stream() and PEM_write_PKCS7_bio_stream()
9725 to output in BER and PEM format.
9726
9727 *Steve Henson*
9728
9729 * Experimental support for use of HMAC via EVP_PKEY interface. This
257e9d03 9730 allows HMAC to be handled via the `EVP_DigestSign*()` interface. The
5f8e6c50
DMSP
9731 EVP_PKEY "key" in this case is the HMAC key, potentially allowing
9732 ENGINE support for HMAC keys which are unextractable. New -mac and
9733 -macopt options to dgst utility.
9734
9735 *Steve Henson*
9736
9737 * New option -sigopt to dgst utility. Update dgst to use
257e9d03 9738 `EVP_Digest{Sign,Verify}*`. These two changes make it possible to use
5f8e6c50
DMSP
9739 alternative signing parameters such as X9.31 or PSS in the dgst
9740 utility.
9741
9742 *Steve Henson*
9743
9744 * Change ssl_cipher_apply_rule(), the internal function that does
9745 the work each time a ciphersuite string requests enabling
9746 ("foo+bar"), moving ("+foo+bar"), disabling ("-foo+bar", or
9747 removing ("!foo+bar") a class of ciphersuites: Now it maintains
9748 the order of disabled ciphersuites such that those ciphersuites
9749 that most recently went from enabled to disabled not only stay
9750 in order with respect to each other, but also have higher priority
9751 than other disabled ciphersuites the next time ciphersuites are
9752 enabled again.
9753
9754 This means that you can now say, e.g., "PSK:-PSK:HIGH" to enable
9755 the same ciphersuites as with "HIGH" alone, but in a specific
9756 order where the PSK ciphersuites come first (since they are the
9757 most recently disabled ciphersuites when "HIGH" is parsed).
9758
9759 Also, change ssl_create_cipher_list() (using this new
9760 functionality) such that between otherwise identical
9761 ciphersuites, ephemeral ECDH is preferred over ephemeral DH in
9762 the default order.
9763
9764 *Bodo Moeller*
9765
9766 * Change ssl_create_cipher_list() so that it automatically
9767 arranges the ciphersuites in reasonable order before starting
9768 to process the rule string. Thus, the definition for "DEFAULT"
9769 (SSL_DEFAULT_CIPHER_LIST) now is just "ALL:!aNULL:!eNULL", but
ec2bfb7d 9770 remains equivalent to `"AES:ALL:!aNULL:!eNULL:+aECDH:+kRSA:+RC4:@STRENGTH"`.
5f8e6c50
DMSP
9771 This makes it much easier to arrive at a reasonable default order
9772 in applications for which anonymous ciphers are OK (meaning
9773 that you can't actually use DEFAULT).
9774
9775 *Bodo Moeller; suggested by Victor Duchovni*
9776
9777 * Split the SSL/TLS algorithm mask (as used for ciphersuite string
9778 processing) into multiple integers instead of setting
9779 "SSL_MKEY_MASK" bits, "SSL_AUTH_MASK" bits, "SSL_ENC_MASK",
9780 "SSL_MAC_MASK", and "SSL_SSL_MASK" bits all in a single integer.
9781 (These masks as well as the individual bit definitions are hidden
9782 away into the non-exported interface ssl/ssl_locl.h, so this
9783 change to the definition of the SSL_CIPHER structure shouldn't
9784 affect applications.) This give us more bits for each of these
9785 categories, so there is no longer a need to coagulate AES128 and
9786 AES256 into a single algorithm bit, and to coagulate Camellia128
9787 and Camellia256 into a single algorithm bit, which has led to all
9788 kinds of kludges.
9789
9790 Thus, among other things, the kludge introduced in 0.9.7m and
9791 0.9.8e for masking out AES256 independently of AES128 or masking
9792 out Camellia256 independently of AES256 is not needed here in 0.9.9.
9793
9794 With the change, we also introduce new ciphersuite aliases that
9795 so far were missing: "AES128", "AES256", "CAMELLIA128", and
9796 "CAMELLIA256".
9797
9798 *Bodo Moeller*
9799
9800 * Add support for dsa-with-SHA224 and dsa-with-SHA256.
9801 Use the leftmost N bytes of the signature input if the input is
9802 larger than the prime q (with N being the size in bytes of q).
9803
9804 *Nils Larsch*
9805
9806 * Very *very* experimental PKCS#7 streaming encoder support. Nothing uses
9807 it yet and it is largely untested.
9808
9809 *Steve Henson*
9810
9811 * Add support for the ecdsa-with-SHA224/256/384/512 signature types.
9812
9813 *Nils Larsch*
9814
9815 * Initial incomplete changes to avoid need for function casts in OpenSSL
9816 some compilers (gcc 4.2 and later) reject their use. Safestack is
9817 reimplemented. Update ASN1 to avoid use of legacy functions.
9818
9819 *Steve Henson*
9820
9821 * Win32/64 targets are linked with Winsock2.
9822
9823 *Andy Polyakov*
9824
9825 * Add an X509_CRL_METHOD structure to allow CRL processing to be redirected
9826 to external functions. This can be used to increase CRL handling
9827 efficiency especially when CRLs are very large by (for example) storing
9828 the CRL revoked certificates in a database.
9829
9830 *Steve Henson*
9831
9832 * Overhaul of by_dir code. Add support for dynamic loading of CRLs so
9833 new CRLs added to a directory can be used. New command line option
9834 -verify_return_error to s_client and s_server. This causes real errors
9835 to be returned by the verify callback instead of carrying on no matter
9836 what. This reflects the way a "real world" verify callback would behave.
9837
9838 *Steve Henson*
9839
9840 * GOST engine, supporting several GOST algorithms and public key formats.
9841 Kindly donated by Cryptocom.
9842
9843 *Cryptocom*
9844
9845 * Partial support for Issuing Distribution Point CRL extension. CRLs
9846 partitioned by DP are handled but no indirect CRL or reason partitioning
9847 (yet). Complete overhaul of CRL handling: now the most suitable CRL is
9848 selected via a scoring technique which handles IDP and AKID in CRLs.
9849
9850 *Steve Henson*
9851
9852 * New X509_STORE_CTX callbacks lookup_crls() and lookup_certs() which
9853 will ultimately be used for all verify operations: this will remove the
9854 X509_STORE dependency on certificate verification and allow alternative
9855 lookup methods. X509_STORE based implementations of these two callbacks.
9856
9857 *Steve Henson*
9858
9859 * Allow multiple CRLs to exist in an X509_STORE with matching issuer names.
9860 Modify get_crl() to find a valid (unexpired) CRL if possible.
9861
9862 *Steve Henson*
9863
9864 * New function X509_CRL_match() to check if two CRLs are identical. Normally
9865 this would be called X509_CRL_cmp() but that name is already used by
9866 a function that just compares CRL issuer names. Cache several CRL
9867 extensions in X509_CRL structure and cache CRLDP in X509.
9868
9869 *Steve Henson*
9870
9871 * Store a "canonical" representation of X509_NAME structure (ASN1 Name)
9872 this maps equivalent X509_NAME structures into a consistent structure.
9873 Name comparison can then be performed rapidly using memcmp().
9874
9875 *Steve Henson*
9876
9877 * Non-blocking OCSP request processing. Add -timeout option to ocsp
9878 utility.
9879
9880 *Steve Henson*
9881
9882 * Allow digests to supply their own micalg string for S/MIME type using
9883 the ctrl EVP_MD_CTRL_MICALG.
9884
9885 *Steve Henson*
9886
9887 * During PKCS7 signing pass the PKCS7 SignerInfo structure to the
9888 EVP_PKEY_METHOD before and after signing via the EVP_PKEY_CTRL_PKCS7_SIGN
9889 ctrl. It can then customise the structure before and/or after signing
9890 if necessary.
9891
9892 *Steve Henson*
9893
9894 * New function OBJ_add_sigid() to allow application defined signature OIDs
9895 to be added to OpenSSLs internal tables. New function OBJ_sigid_free()
9896 to free up any added signature OIDs.
9897
9898 *Steve Henson*
9899
9900 * New functions EVP_CIPHER_do_all(), EVP_CIPHER_do_all_sorted(),
9901 EVP_MD_do_all() and EVP_MD_do_all_sorted() to enumerate internal
9902 digest and cipher tables. New options added to openssl utility:
9903 list-message-digest-algorithms and list-cipher-algorithms.
9904
9905 *Steve Henson*
9906
9907 * Change the array representation of binary polynomials: the list
9908 of degrees of non-zero coefficients is now terminated with -1.
9909 Previously it was terminated with 0, which was also part of the
9910 value; thus, the array representation was not applicable to
9911 polynomials where t^0 has coefficient zero. This change makes
9912 the array representation useful in a more general context.
9913
9914 *Douglas Stebila*
9915
9916 * Various modifications and fixes to SSL/TLS cipher string
9917 handling. For ECC, the code now distinguishes between fixed ECDH
9918 with RSA certificates on the one hand and with ECDSA certificates
9919 on the other hand, since these are separate ciphersuites. The
9920 unused code for Fortezza ciphersuites has been removed.
9921
9922 For consistency with EDH, ephemeral ECDH is now called "EECDH"
9923 (not "ECDHE"). For consistency with the code for DH
9924 certificates, use of ECDH certificates is now considered ECDH
9925 authentication, not RSA or ECDSA authentication (the latter is
9926 merely the CA's signing algorithm and not actively used in the
9927 protocol).
9928
9929 The temporary ciphersuite alias "ECCdraft" is no longer
9930 available, and ECC ciphersuites are no longer excluded from "ALL"
9931 and "DEFAULT". The following aliases now exist for RFC 4492
9932 ciphersuites, most of these by analogy with the DH case:
9933
9934 kECDHr - ECDH cert, signed with RSA
9935 kECDHe - ECDH cert, signed with ECDSA
9936 kECDH - ECDH cert (signed with either RSA or ECDSA)
9937 kEECDH - ephemeral ECDH
9938 ECDH - ECDH cert or ephemeral ECDH
9939
9940 aECDH - ECDH cert
9941 aECDSA - ECDSA cert
9942 ECDSA - ECDSA cert
9943
9944 AECDH - anonymous ECDH
9945 EECDH - non-anonymous ephemeral ECDH (equivalent to "kEECDH:-AECDH")
9946
5f8e6c50
DMSP
9947 *Bodo Moeller*
9948
9949 * Add additional S/MIME capabilities for AES and GOST ciphers if supported.
9950 Use correct micalg parameters depending on digest(s) in signed message.
9951
9952 *Steve Henson*
9953
9954 * Add engine support for EVP_PKEY_ASN1_METHOD. Add functions to process
9955 an ENGINE asn1 method. Support ENGINE lookups in the ASN1 code.
9956
9957 *Steve Henson*
9958
9959 * Initial engine support for EVP_PKEY_METHOD. New functions to permit
9960 an engine to register a method. Add ENGINE lookups for methods and
9961 functional reference processing.
9962
9963 *Steve Henson*
9964
257e9d03
RS
9965 * New functions `EVP_Digest{Sign,Verify)*`. These are enhanced versions of
9966 `EVP_{Sign,Verify}*` which allow an application to customise the signature
5f8e6c50
DMSP
9967 process.
9968
9969 *Steve Henson*
9970
9971 * New -resign option to smime utility. This adds one or more signers
9972 to an existing PKCS#7 signedData structure. Also -md option to use an
9973 alternative message digest algorithm for signing.
9974
9975 *Steve Henson*
9976
9977 * Tidy up PKCS#7 routines and add new functions to make it easier to
9978 create PKCS7 structures containing multiple signers. Update smime
9979 application to support multiple signers.
9980
9981 *Steve Henson*
9982
9983 * New -macalg option to pkcs12 utility to allow setting of an alternative
9984 digest MAC.
9985
9986 *Steve Henson*
9987
9988 * Initial support for PKCS#5 v2.0 PRFs other than default SHA1 HMAC.
9989 Reorganize PBE internals to lookup from a static table using NIDs,
9990 add support for HMAC PBE OID translation. Add a EVP_CIPHER ctrl:
9991 EVP_CTRL_PBE_PRF_NID this allows a cipher to specify an alternative
9992 PRF which will be automatically used with PBES2.
9993
9994 *Steve Henson*
9995
9996 * Replace the algorithm specific calls to generate keys in "req" with the
9997 new API.
9998
9999 *Steve Henson*
10000
10001 * Update PKCS#7 enveloped data routines to use new API. This is now
10002 supported by any public key method supporting the encrypt operation. A
10003 ctrl is added to allow the public key algorithm to examine or modify
10004 the PKCS#7 RecipientInfo structure if it needs to: for RSA this is
10005 a no op.
10006
10007 *Steve Henson*
10008
10009 * Add a ctrl to asn1 method to allow a public key algorithm to express
10010 a default digest type to use. In most cases this will be SHA1 but some
10011 algorithms (such as GOST) need to specify an alternative digest. The
10012 return value indicates how strong the preference is 1 means optional and
10013 2 is mandatory (that is it is the only supported type). Modify
10014 ASN1_item_sign() to accept a NULL digest argument to indicate it should
10015 use the default md. Update openssl utilities to use the default digest
10016 type for signing if it is not explicitly indicated.
10017
10018 *Steve Henson*
10019
10020 * Use OID cross reference table in ASN1_sign() and ASN1_verify(). New
10021 EVP_MD flag EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. This uses the relevant
10022 signing method from the key type. This effectively removes the link
10023 between digests and public key types.
10024
10025 *Steve Henson*
10026
10027 * Add an OID cross reference table and utility functions. Its purpose is to
10028 translate between signature OIDs such as SHA1WithrsaEncryption and SHA1,
10029 rsaEncryption. This will allow some of the algorithm specific hackery
10030 needed to use the correct OID to be removed.
10031
10032 *Steve Henson*
10033
10034 * Remove algorithm specific dependencies when setting PKCS7_SIGNER_INFO
10035 structures for PKCS7_sign(). They are now set up by the relevant public
10036 key ASN1 method.
10037
10038 *Steve Henson*
10039
10040 * Add provisional EC pkey method with support for ECDSA and ECDH.
10041
10042 *Steve Henson*
10043
10044 * Add support for key derivation (agreement) in the API, DH method and
10045 pkeyutl.
10046
10047 *Steve Henson*
10048
10049 * Add DSA pkey method and DH pkey methods, extend DH ASN1 method to support
10050 public and private key formats. As a side effect these add additional
10051 command line functionality not previously available: DSA signatures can be
10052 generated and verified using pkeyutl and DH key support and generation in
10053 pkey, genpkey.
10054
10055 *Steve Henson*
10056
10057 * BeOS support.
10058
10059 *Oliver Tappe <zooey@hirschkaefer.de>*
10060
10061 * New make target "install_html_docs" installs HTML renditions of the
10062 manual pages.
10063
10064 *Oliver Tappe <zooey@hirschkaefer.de>*
10065
10066 * New utility "genpkey" this is analogous to "genrsa" etc except it can
10067 generate keys for any algorithm. Extend and update EVP_PKEY_METHOD to
10068 support key and parameter generation and add initial key generation
10069 functionality for RSA.
10070
10071 *Steve Henson*
10072
10073 * Add functions for main EVP_PKEY_method operations. The undocumented
257e9d03
RS
10074 functions `EVP_PKEY_{encrypt,decrypt}` have been renamed to
10075 `EVP_PKEY_{encrypt,decrypt}_old`.
5f8e6c50
DMSP
10076
10077 *Steve Henson*
10078
10079 * Initial definitions for EVP_PKEY_METHOD. This will be a high level public
10080 key API, doesn't do much yet.
10081
10082 *Steve Henson*
10083
10084 * New function EVP_PKEY_asn1_get0_info() to retrieve information about
10085 public key algorithms. New option to openssl utility:
10086 "list-public-key-algorithms" to print out info.
10087
10088 *Steve Henson*
10089
10090 * Implement the Supported Elliptic Curves Extension for
10091 ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
10092
10093 *Douglas Stebila*
10094
10095 * Don't free up OIDs in OBJ_cleanup() if they are in use by EVP_MD or
10096 EVP_CIPHER structures to avoid later problems in EVP_cleanup().
10097
10098 *Steve Henson*
10099
10100 * New utilities pkey and pkeyparam. These are similar to algorithm specific
10101 utilities such as rsa, dsa, dsaparam etc except they process any key
10102 type.
10103
10104 *Steve Henson*
10105
10106 * Transfer public key printing routines to EVP_PKEY_ASN1_METHOD. New
10107 functions EVP_PKEY_print_public(), EVP_PKEY_print_private(),
10108 EVP_PKEY_print_param() to print public key data from an EVP_PKEY
10109 structure.
10110
10111 *Steve Henson*
10112
10113 * Initial support for pluggable public key ASN1.
10114 De-spaghettify the public key ASN1 handling. Move public and private
10115 key ASN1 handling to a new EVP_PKEY_ASN1_METHOD structure. Relocate
10116 algorithm specific handling to a single module within the relevant
10117 algorithm directory. Add functions to allow (near) opaque processing
10118 of public and private key structures.
10119
10120 *Steve Henson*
10121
10122 * Implement the Supported Point Formats Extension for
10123 ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
10124
10125 *Douglas Stebila*
10126
10127 * Add initial support for RFC 4279 PSK TLS ciphersuites. Add members
10128 for the psk identity [hint] and the psk callback functions to the
10129 SSL_SESSION, SSL and SSL_CTX structure.
10130
10131 New ciphersuites:
10132 PSK-RC4-SHA, PSK-3DES-EDE-CBC-SHA, PSK-AES128-CBC-SHA,
10133 PSK-AES256-CBC-SHA
10134
10135 New functions:
10136 SSL_CTX_use_psk_identity_hint
10137 SSL_get_psk_identity_hint
10138 SSL_get_psk_identity
10139 SSL_use_psk_identity_hint
10140
5f8e6c50
DMSP
10141 *Mika Kousa and Pasi Eronen of Nokia Corporation*
10142
10143 * Add RFC 3161 compliant time stamp request creation, response generation
10144 and response verification functionality.
10145
10146 *Zoltán Glózik <zglozik@opentsa.org>, The OpenTSA Project*
10147
10148 * Add initial support for TLS extensions, specifically for the server_name
10149 extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now
d7f3a2cc 10150 have new members for a hostname. The SSL data structure has an
257e9d03 10151 additional member `SSL_CTX *initial_ctx` so that new sessions can be
5f8e6c50
DMSP
10152 stored in that context to allow for session resumption, even after the
10153 SSL has been switched to a new SSL_CTX in reaction to a client's
10154 server_name extension.
10155
10156 New functions (subject to change):
10157
10158 SSL_get_servername()
10159 SSL_get_servername_type()
10160 SSL_set_SSL_CTX()
10161
10162 New CTRL codes and macros (subject to change):
10163
10164 SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
10165 - SSL_CTX_set_tlsext_servername_callback()
10166 SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
10167 - SSL_CTX_set_tlsext_servername_arg()
10168 SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name()
10169
10170 openssl s_client has a new '-servername ...' option.
10171
10172 openssl s_server has new options '-servername_host ...', '-cert2 ...',
10173 '-key2 ...', '-servername_fatal' (subject to change). This allows
d7f3a2cc 10174 testing the HostName extension for a specific single hostname ('-cert'
5f8e6c50
DMSP
10175 and '-key' remain fallbacks for handshakes without HostName
10176 negotiation). If the unrecognized_name alert has to be sent, this by
10177 default is a warning; it becomes fatal with the '-servername_fatal'
10178 option.
10179
5f8e6c50
DMSP
10180 *Peter Sylvester, Remy Allais, Christophe Renou*
10181
10182 * Whirlpool hash implementation is added.
10183
10184 *Andy Polyakov*
10185
10186 * BIGNUM code on 64-bit SPARCv9 targets is switched from bn(64,64) to
10187 bn(64,32). Because of instruction set limitations it doesn't have
10188 any negative impact on performance. This was done mostly in order
10189 to make it possible to share assembler modules, such as bn_mul_mont
10190 implementations, between 32- and 64-bit builds without hassle.
10191
10192 *Andy Polyakov*
10193
10194 * Move code previously exiled into file crypto/ec/ec2_smpt.c
10195 to ec2_smpl.c, and no longer require the OPENSSL_EC_BIN_PT_COMP
10196 macro.
10197
10198 *Bodo Moeller*
10199
10200 * New candidate for BIGNUM assembler implementation, bn_mul_mont,
10201 dedicated Montgomery multiplication procedure, is introduced.
10202 BN_MONT_CTX is modified to allow bn_mul_mont to reach for higher
10203 "64-bit" performance on certain 32-bit targets.
10204
10205 *Andy Polyakov*
10206
10207 * New option SSL_OP_NO_COMP to disable use of compression selectively
10208 in SSL structures. New SSL ctrl to set maximum send fragment size.
10209 Save memory by setting the I/O buffer sizes dynamically instead of
10210 using the maximum available value.
10211
10212 *Steve Henson*
10213
10214 * New option -V for 'openssl ciphers'. This prints the ciphersuite code
10215 in addition to the text details.
10216
10217 *Bodo Moeller*
10218
10219 * Very, very preliminary EXPERIMENTAL support for printing of general
10220 ASN1 structures. This currently produces rather ugly output and doesn't
10221 handle several customised structures at all.
10222
10223 *Steve Henson*
10224
10225 * Integrated support for PVK file format and some related formats such
10226 as MS PUBLICKEYBLOB and PRIVATEKEYBLOB. Command line switches to support
10227 these in the 'rsa' and 'dsa' utilities.
10228
10229 *Steve Henson*
10230
10231 * Support for PKCS#1 RSAPublicKey format on rsa utility command line.
10232
10233 *Steve Henson*
10234
10235 * Remove the ancient ASN1_METHOD code. This was only ever used in one
10236 place for the (very old) "NETSCAPE" format certificates which are now
10237 handled using new ASN1 code equivalents.
10238
10239 *Steve Henson*
10240
10241 * Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD
10242 pointer and make the SSL_METHOD parameter in SSL_CTX_new,
10243 SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'.
10244
10245 *Nils Larsch*
10246
10247 * Modify CRL distribution points extension code to print out previously
10248 unsupported fields. Enhance extension setting code to allow setting of
10249 all fields.
10250
10251 *Steve Henson*
10252
10253 * Add print and set support for Issuing Distribution Point CRL extension.
10254
10255 *Steve Henson*
10256
10257 * Change 'Configure' script to enable Camellia by default.
10258
10259 *NTT*
10260
44652c16
DMSP
10261OpenSSL 0.9.x
10262-------------
10263
257e9d03 10264### Changes between 0.9.8m and 0.9.8n [24 Mar 2010]
5f8e6c50
DMSP
10265
10266 * When rejecting SSL/TLS records due to an incorrect version number, never
10267 update s->server with a new major version number. As of
10268 - OpenSSL 0.9.8m if 'short' is a 16-bit type,
10269 - OpenSSL 0.9.8f if 'short' is longer than 16 bits,
10270 the previous behavior could result in a read attempt at NULL when
10271 receiving specific incorrect SSL/TLS records once record payload
d8dc8538 10272 protection is active. ([CVE-2010-0740])
5f8e6c50
DMSP
10273
10274 *Bodo Moeller, Adam Langley <agl@chromium.org>*
10275
10276 * Fix for CVE-2010-0433 where some kerberos enabled versions of OpenSSL
10277 could be crashed if the relevant tables were not present (e.g. chrooted).
10278
10279 *Tomas Hoger <thoger@redhat.com>*
10280
257e9d03 10281### Changes between 0.9.8l and 0.9.8m [25 Feb 2010]
5f8e6c50 10282
d8dc8538 10283 * Always check bn_wexpand() return values for failure. ([CVE-2009-3245])
5f8e6c50
DMSP
10284
10285 *Martin Olsson, Neel Mehta*
10286
10287 * Fix X509_STORE locking: Every 'objs' access requires a lock (to
10288 accommodate for stack sorting, always a write lock!).
10289
10290 *Bodo Moeller*
10291
10292 * On some versions of WIN32 Heap32Next is very slow. This can cause
10293 excessive delays in the RAND_poll(): over a minute. As a workaround
10294 include a time check in the inner Heap32Next loop too.
10295
10296 *Steve Henson*
10297
10298 * The code that handled flushing of data in SSL/TLS originally used the
10299 BIO_CTRL_INFO ctrl to see if any data was pending first. This caused
10300 the problem outlined in PR#1949. The fix suggested there however can
10301 trigger problems with buggy BIO_CTRL_WPENDING (e.g. some versions
10302 of Apache). So instead simplify the code to flush unconditionally.
10303 This should be fine since flushing with no data to flush is a no op.
10304
10305 *Steve Henson*
10306
10307 * Handle TLS versions 2.0 and later properly and correctly use the
10308 highest version of TLS/SSL supported. Although TLS >= 2.0 is some way
10309 off ancient servers have a habit of sticking around for a while...
10310
10311 *Steve Henson*
10312
10313 * Modify compression code so it frees up structures without using the
10314 ex_data callbacks. This works around a problem where some applications
10315 call CRYPTO_cleanup_all_ex_data() before application exit (e.g. when
10316 restarting) then use compression (e.g. SSL with compression) later.
10317 This results in significant per-connection memory leaks and
10318 has caused some security issues including CVE-2008-1678 and
10319 CVE-2009-4355.
10320
10321 *Steve Henson*
10322
10323 * Constify crypto/cast (i.e., <openssl/cast.h>): a CAST_KEY doesn't
10324 change when encrypting or decrypting.
10325
10326 *Bodo Moeller*
10327
10328 * Add option SSL_OP_LEGACY_SERVER_CONNECT which will allow clients to
10329 connect and renegotiate with servers which do not support RI.
10330 Until RI is more widely deployed this option is enabled by default.
10331
10332 *Steve Henson*
10333
10334 * Add "missing" ssl ctrls to clear options and mode.
10335
10336 *Steve Henson*
10337
10338 * If client attempts to renegotiate and doesn't support RI respond with
10339 a no_renegotiation alert as required by RFC5746. Some renegotiating
10340 TLS clients will continue a connection gracefully when they receive
10341 the alert. Unfortunately OpenSSL mishandled this alert and would hang
10342 waiting for a server hello which it will never receive. Now we treat a
10343 received no_renegotiation alert as a fatal error. This is because
10344 applications requesting a renegotiation might well expect it to succeed
10345 and would have no code in place to handle the server denying it so the
10346 only safe thing to do is to terminate the connection.
10347
10348 *Steve Henson*
10349
10350 * Add ctrl macro SSL_get_secure_renegotiation_support() which returns 1 if
10351 peer supports secure renegotiation and 0 otherwise. Print out peer
10352 renegotiation support in s_client/s_server.
10353
10354 *Steve Henson*
10355
10356 * Replace the highly broken and deprecated SPKAC certification method with
10357 the updated NID creation version. This should correctly handle UTF8.
10358
10359 *Steve Henson*
10360
10361 * Implement RFC5746. Re-enable renegotiation but require the extension
10362 as needed. Unfortunately, SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION
10363 turns out to be a bad idea. It has been replaced by
10364 SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION which can be set with
10365 SSL_CTX_set_options(). This is really not recommended unless you
10366 know what you are doing.
10367
10368 *Eric Rescorla <ekr@networkresonance.com>, Ben Laurie, Steve Henson*
10369
10370 * Fixes to stateless session resumption handling. Use initial_ctx when
10371 issuing and attempting to decrypt tickets in case it has changed during
10372 servername handling. Use a non-zero length session ID when attempting
10373 stateless session resumption: this makes it possible to determine if
10374 a resumption has occurred immediately after receiving server hello
10375 (several places in OpenSSL subtly assume this) instead of later in
10376 the handshake.
10377
10378 *Steve Henson*
10379
10380 * The functions ENGINE_ctrl(), OPENSSL_isservice(),
10381 CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error
10382 fixes for a few places where the return code is not checked
10383 correctly.
10384
10385 *Julia Lawall <julia@diku.dk>*
10386
10387 * Add --strict-warnings option to Configure script to include devteam
10388 warnings in other configurations.
10389
10390 *Steve Henson*
10391
10392 * Add support for --libdir option and LIBDIR variable in makefiles. This
10393 makes it possible to install openssl libraries in locations which
10394 have names other than "lib", for example "/usr/lib64" which some
10395 systems need.
10396
10397 *Steve Henson, based on patch from Jeremy Utley*
10398
10399 * Don't allow the use of leading 0x80 in OIDs. This is a violation of
10400 X690 8.9.12 and can produce some misleading textual output of OIDs.
10401
10402 *Steve Henson, reported by Dan Kaminsky*
10403
10404 * Delete MD2 from algorithm tables. This follows the recommendation in
10405 several standards that it is not used in new applications due to
10406 several cryptographic weaknesses. For binary compatibility reasons
10407 the MD2 API is still compiled in by default.
10408
10409 *Steve Henson*
10410
10411 * Add compression id to {d2i,i2d}_SSL_SESSION so it is correctly saved
10412 and restored.
10413
10414 *Steve Henson*
10415
10416 * Rename uni2asc and asc2uni functions to OPENSSL_uni2asc and
10417 OPENSSL_asc2uni conditionally on Netware platforms to avoid a name
10418 clash.
10419
10420 *Guenter <lists@gknw.net>*
10421
10422 * Fix the server certificate chain building code to use X509_verify_cert(),
10423 it used to have an ad-hoc builder which was unable to cope with anything
10424 other than a simple chain.
10425
10426 *David Woodhouse <dwmw2@infradead.org>, Steve Henson*
10427
10428 * Don't check self signed certificate signatures in X509_verify_cert()
10429 by default (a flag can override this): it just wastes time without
10430 adding any security. As a useful side effect self signed root CAs
10431 with non-FIPS digests are now usable in FIPS mode.
10432
10433 *Steve Henson*
10434
10435 * In dtls1_process_out_of_seq_message() the check if the current message
10436 is already buffered was missing. For every new message was memory
10437 allocated, allowing an attacker to perform an denial of service attack
10438 with sending out of seq handshake messages until there is no memory
10439 left. Additionally every future message was buffered, even if the
10440 sequence number made no sense and would be part of another handshake.
10441 So only messages with sequence numbers less than 10 in advance will be
d8dc8538 10442 buffered. ([CVE-2009-1378])
5f8e6c50
DMSP
10443
10444 *Robin Seggelmann, discovered by Daniel Mentz*
10445
10446 * Records are buffered if they arrive with a future epoch to be
10447 processed after finishing the corresponding handshake. There is
10448 currently no limitation to this buffer allowing an attacker to perform
10449 a DOS attack with sending records with future epochs until there is no
10450 memory left. This patch adds the pqueue_size() function to determine
10451 the size of a buffer and limits the record buffer to 100 entries.
d8dc8538 10452 ([CVE-2009-1377])
5f8e6c50
DMSP
10453
10454 *Robin Seggelmann, discovered by Daniel Mentz*
10455
10456 * Keep a copy of frag->msg_header.frag_len so it can be used after the
d8dc8538 10457 parent structure is freed. ([CVE-2009-1379])
5f8e6c50
DMSP
10458
10459 *Daniel Mentz*
10460
10461 * Handle non-blocking I/O properly in SSL_shutdown() call.
10462
10463 *Darryl Miles <darryl-mailinglists@netbauds.net>*
10464
257e9d03 10465 * Add `2.5.4.*` OIDs
5f8e6c50
DMSP
10466
10467 *Ilya O. <vrghost@gmail.com>*
10468
257e9d03 10469### Changes between 0.9.8k and 0.9.8l [5 Nov 2009]
5f8e6c50
DMSP
10470
10471 * Disable renegotiation completely - this fixes a severe security
d8dc8538 10472 problem ([CVE-2009-3555]) at the cost of breaking all
5f8e6c50
DMSP
10473 renegotiation. Renegotiation can be re-enabled by setting
10474 SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION in s3->flags at
10475 run-time. This is really not recommended unless you know what
10476 you're doing.
10477
10478 *Ben Laurie*
10479
257e9d03 10480### Changes between 0.9.8j and 0.9.8k [25 Mar 2009]
5f8e6c50
DMSP
10481
10482 * Don't set val to NULL when freeing up structures, it is freed up by
257e9d03 10483 underlying code. If `sizeof(void *) > sizeof(long)` this can result in
d8dc8538 10484 zeroing past the valid field. ([CVE-2009-0789])
5f8e6c50
DMSP
10485
10486 *Paolo Ganci <Paolo.Ganci@AdNovum.CH>*
10487
10488 * Fix bug where return value of CMS_SignerInfo_verify_content() was not
10489 checked correctly. This would allow some invalid signed attributes to
d8dc8538 10490 appear to verify correctly. ([CVE-2009-0591])
5f8e6c50
DMSP
10491
10492 *Ivan Nestlerode <inestlerode@us.ibm.com>*
10493
10494 * Reject UniversalString and BMPString types with invalid lengths. This
10495 prevents a crash in ASN1_STRING_print_ex() which assumes the strings have
d8dc8538 10496 a legal length. ([CVE-2009-0590])
5f8e6c50
DMSP
10497
10498 *Steve Henson*
10499
10500 * Set S/MIME signing as the default purpose rather than setting it
10501 unconditionally. This allows applications to override it at the store
10502 level.
10503
10504 *Steve Henson*
10505
10506 * Permit restricted recursion of ASN1 strings. This is needed in practice
10507 to handle some structures.
10508
10509 *Steve Henson*
10510
10511 * Improve efficiency of mem_gets: don't search whole buffer each time
10512 for a '\n'
10513
10514 *Jeremy Shapiro <jnshapir@us.ibm.com>*
10515
10516 * New -hex option for openssl rand.
10517
10518 *Matthieu Herrb*
10519
10520 * Print out UTF8String and NumericString when parsing ASN1.
10521
10522 *Steve Henson*
10523
10524 * Support NumericString type for name components.
10525
10526 *Steve Henson*
10527
10528 * Allow CC in the environment to override the automatically chosen
10529 compiler. Note that nothing is done to ensure flags work with the
10530 chosen compiler.
10531
10532 *Ben Laurie*
10533
257e9d03 10534### Changes between 0.9.8i and 0.9.8j [07 Jan 2009]
5f8e6c50
DMSP
10535
10536 * Properly check EVP_VerifyFinal() and similar return values
d8dc8538 10537 ([CVE-2008-5077]).
5f8e6c50
DMSP
10538
10539 *Ben Laurie, Bodo Moeller, Google Security Team*
10540
10541 * Enable TLS extensions by default.
10542
10543 *Ben Laurie*
10544
10545 * Allow the CHIL engine to be loaded, whether the application is
10546 multithreaded or not. (This does not release the developer from the
10547 obligation to set up the dynamic locking callbacks.)
10548
10549 *Sander Temme <sander@temme.net>*
10550
10551 * Use correct exit code if there is an error in dgst command.
10552
10553 *Steve Henson; problem pointed out by Roland Dirlewanger*
10554
10555 * Tweak Configure so that you need to say "experimental-jpake" to enable
10556 JPAKE, and need to use -DOPENSSL_EXPERIMENTAL_JPAKE in applications.
10557
10558 *Bodo Moeller*
10559
10560 * Add experimental JPAKE support, including demo authentication in
10561 s_client and s_server.
10562
10563 *Ben Laurie*
10564
10565 * Set the comparison function in v3_addr_canonize().
10566
10567 *Rob Austein <sra@hactrn.net>*
10568
10569 * Add support for XMPP STARTTLS in s_client.
10570
10571 *Philip Paeps <philip@freebsd.org>*
10572
10573 * Change the server-side SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG behavior
10574 to ensure that even with this option, only ciphersuites in the
10575 server's preference list will be accepted. (Note that the option
10576 applies only when resuming a session, so the earlier behavior was
10577 just about the algorithm choice for symmetric cryptography.)
10578
10579 *Bodo Moeller*
10580
257e9d03 10581### Changes between 0.9.8h and 0.9.8i [15 Sep 2008]
5f8e6c50
DMSP
10582
10583 * Fix NULL pointer dereference if a DTLS server received
d8dc8538 10584 ChangeCipherSpec as first record ([CVE-2009-1386]).
5f8e6c50
DMSP
10585
10586 *PR #1679*
10587
10588 * Fix a state transition in s3_srvr.c and d1_srvr.c
257e9d03 10589 (was using SSL3_ST_CW_CLNT_HELLO_B, should be `..._ST_SW_SRVR_...`).
5f8e6c50
DMSP
10590
10591 *Nagendra Modadugu*
10592
10593 * The fix in 0.9.8c that supposedly got rid of unsafe
10594 double-checked locking was incomplete for RSA blinding,
10595 addressing just one layer of what turns out to have been
10596 doubly unsafe triple-checked locking.
10597
10598 So now fix this for real by retiring the MONT_HELPER macro
10599 in crypto/rsa/rsa_eay.c.
10600
5f8e6c50
DMSP
10601 *Bodo Moeller; problem pointed out by Marius Schilder*
10602
10603 * Various precautionary measures:
10604
10605 - Avoid size_t integer overflow in HASH_UPDATE (md32_common.h).
10606
10607 - Avoid a buffer overflow in d2i_SSL_SESSION() (ssl_asn1.c).
10608 (NB: This would require knowledge of the secret session ticket key
10609 to exploit, in which case you'd be SOL either way.)
10610
10611 - Change bn_nist.c so that it will properly handle input BIGNUMs
10612 outside the expected range.
10613
10614 - Enforce the 'num' check in BN_div() (bn_div.c) for non-BN_DEBUG
10615 builds.
10616
5f8e6c50
DMSP
10617 *Neel Mehta, Bodo Moeller*
10618
10619 * Allow engines to be "soft loaded" - i.e. optionally don't die if
10620 the load fails. Useful for distros.
10621
10622 *Ben Laurie and the FreeBSD team*
10623
10624 * Add support for Local Machine Keyset attribute in PKCS#12 files.
10625
10626 *Steve Henson*
10627
10628 * Fix BN_GF2m_mod_arr() top-bit cleanup code.
10629
10630 *Huang Ying*
10631
10632 * Expand ENGINE to support engine supplied SSL client certificate functions.
10633
10634 This work was sponsored by Logica.
10635
10636 *Steve Henson*
10637
10638 * Add CryptoAPI ENGINE to support use of RSA and DSA keys held in Windows
10639 keystores. Support for SSL/TLS client authentication too.
10640 Not compiled unless enable-capieng specified to Configure.
10641
10642 This work was sponsored by Logica.
10643
10644 *Steve Henson*
10645
10646 * Fix bug in X509_ATTRIBUTE creation: don't set attribute using
10647 ASN1_TYPE_set1 if MBSTRING flag set. This bug would crash certain
10648 attribute creation routines such as certificate requests and PKCS#12
10649 files.
10650
10651 *Steve Henson*
10652
257e9d03 10653### Changes between 0.9.8g and 0.9.8h [28 May 2008]
5f8e6c50
DMSP
10654
10655 * Fix flaw if 'Server Key exchange message' is omitted from a TLS
10656 handshake which could lead to a client crash as found using the
d8dc8538 10657 Codenomicon TLS test suite ([CVE-2008-1672])
5f8e6c50
DMSP
10658
10659 *Steve Henson, Mark Cox*
10660
10661 * Fix double free in TLS server name extensions which could lead to
d8dc8538 10662 a remote crash found by Codenomicon TLS test suite ([CVE-2008-0891])
5f8e6c50
DMSP
10663
10664 *Joe Orton*
10665
10666 * Clear error queue in SSL_CTX_use_certificate_chain_file()
10667
10668 Clear the error queue to ensure that error entries left from
10669 older function calls do not interfere with the correct operation.
10670
10671 *Lutz Jaenicke, Erik de Castro Lopo*
10672
10673 * Remove root CA certificates of commercial CAs:
10674
10675 The OpenSSL project does not recommend any specific CA and does not
10676 have any policy with respect to including or excluding any CA.
d7f3a2cc 10677 Therefore, it does not make any sense to ship an arbitrary selection
5f8e6c50
DMSP
10678 of root CA certificates with the OpenSSL software.
10679
10680 *Lutz Jaenicke*
10681
10682 * RSA OAEP patches to fix two separate invalid memory reads.
10683 The first one involves inputs when 'lzero' is greater than
10684 'SHA_DIGEST_LENGTH' (it would read about SHA_DIGEST_LENGTH bytes
10685 before the beginning of from). The second one involves inputs where
10686 the 'db' section contains nothing but zeroes (there is a one-byte
10687 invalid read after the end of 'db').
10688
10689 *Ivan Nestlerode <inestlerode@us.ibm.com>*
10690
10691 * Partial backport from 0.9.9-dev:
10692
10693 Introduce bn_mul_mont (dedicated Montgomery multiplication
10694 procedure) as a candidate for BIGNUM assembler implementation.
10695 While 0.9.9-dev uses assembler for various architectures, only
10696 x86_64 is available by default here in the 0.9.8 branch, and
10697 32-bit x86 is available through a compile-time setting.
10698
10699 To try the 32-bit x86 assembler implementation, use Configure
10700 option "enable-montasm" (which exists only for this backport).
10701
10702 As "enable-montasm" for 32-bit x86 disclaims code stability
10703 anyway, in this constellation we activate additional code
10704 backported from 0.9.9-dev for further performance improvements,
10705 namely BN_from_montgomery_word. (To enable this otherwise,
44652c16 10706 e.g. x86_64, try `-DMONT_FROM_WORD___NON_DEFAULT_0_9_8_BUILD`.)
5f8e6c50 10707
5f8e6c50
DMSP
10708 *Andy Polyakov (backport partially by Bodo Moeller)*
10709
10710 * Add TLS session ticket callback. This allows an application to set
10711 TLS ticket cipher and HMAC keys rather than relying on hardcoded fixed
10712 values. This is useful for key rollover for example where several key
10713 sets may exist with different names.
10714
10715 *Steve Henson*
10716
10717 * Reverse ENGINE-internal logic for caching default ENGINE handles.
10718 This was broken until now in 0.9.8 releases, such that the only way
10719 a registered ENGINE could be used (assuming it initialises
10720 successfully on the host) was to explicitly set it as the default
10721 for the relevant algorithms. This is in contradiction with 0.9.7
10722 behaviour and the documentation. With this fix, when an ENGINE is
10723 registered into a given algorithm's table of implementations, the
10724 'uptodate' flag is reset so that auto-discovery will be used next
10725 time a new context for that algorithm attempts to select an
10726 implementation.
10727
10728 *Ian Lister (tweaked by Geoff Thorpe)*
10729
10730 * Backport of CMS code to OpenSSL 0.9.8. This differs from the 0.9.9
10731 implementation in the following ways:
10732
10733 Lack of EVP_PKEY_ASN1_METHOD means algorithm parameters have to be
10734 hard coded.
10735
10736 Lack of BER streaming support means one pass streaming processing is
10737 only supported if data is detached: setting the streaming flag is
10738 ignored for embedded content.
10739
10740 CMS support is disabled by default and must be explicitly enabled
10741 with the enable-cms configuration option.
10742
10743 *Steve Henson*
10744
10745 * Update the GMP engine glue to do direct copies between BIGNUM and
10746 mpz_t when openssl and GMP use the same limb size. Otherwise the
10747 existing "conversion via a text string export" trick is still used.
10748
10749 *Paul Sheer <paulsheer@gmail.com>*
10750
10751 * Zlib compression BIO. This is a filter BIO which compressed and
10752 uncompresses any data passed through it.
10753
10754 *Steve Henson*
10755
10756 * Add AES_wrap_key() and AES_unwrap_key() functions to implement
10757 RFC3394 compatible AES key wrapping.
10758
10759 *Steve Henson*
10760
10761 * Add utility functions to handle ASN1 structures. ASN1_STRING_set0():
10762 sets string data without copying. X509_ALGOR_set0() and
10763 X509_ALGOR_get0(): set and retrieve X509_ALGOR (AlgorithmIdentifier)
10764 data. Attribute function X509at_get0_data_by_OBJ(): retrieves data
10765 from an X509_ATTRIBUTE structure optionally checking it occurs only
10766 once. ASN1_TYPE_set1(): set and ASN1_TYPE structure copying supplied
10767 data.
10768
10769 *Steve Henson*
10770
10771 * Fix BN flag handling in RSA_eay_mod_exp() and BN_MONT_CTX_set()
10772 to get the expected BN_FLG_CONSTTIME behavior.
10773
10774 *Bodo Moeller (Google)*
10775
10776 * Netware support:
10777
10778 - fixed wrong usage of ioctlsocket() when build for LIBC BSD sockets
10779 - fixed do_tests.pl to run the test suite with CLIB builds too (CLIB_OPT)
10780 - added some more tests to do_tests.pl
10781 - fixed RunningProcess usage so that it works with newer LIBC NDKs too
10782 - removed usage of BN_LLONG for CLIB builds to avoid runtime dependency
10783 - added new Configure targets netware-clib-bsdsock, netware-clib-gcc,
10784 netware-clib-bsdsock-gcc, netware-libc-bsdsock-gcc
10785 - various changes to netware.pl to enable gcc-cross builds on Win32
10786 platform
10787 - changed crypto/bio/b_sock.c to work with macro functions (CLIB BSD)
10788 - various changes to fix missing prototype warnings
10789 - fixed x86nasm.pl to create correct asm files for NASM COFF output
10790 - added AES, WHIRLPOOL and CPUID assembler code to build files
10791 - added missing AES assembler make rules to mk1mf.pl
ec2bfb7d 10792 - fixed order of includes in `apps/ocsp.c` so that `e_os.h` settings apply
5f8e6c50
DMSP
10793
10794 *Guenter Knauf <eflash@gmx.net>*
10795
10796 * Implement certificate status request TLS extension defined in RFC3546.
10797 A client can set the appropriate parameters and receive the encoded
10798 OCSP response via a callback. A server can query the supplied parameters
10799 and set the encoded OCSP response in the callback. Add simplified examples
10800 to s_client and s_server.
10801
10802 *Steve Henson*
10803
257e9d03 10804### Changes between 0.9.8f and 0.9.8g [19 Oct 2007]
5f8e6c50
DMSP
10805
10806 * Fix various bugs:
10807 + Binary incompatibility of ssl_ctx_st structure
10808 + DTLS interoperation with non-compliant servers
10809 + Don't call get_session_cb() without proposed session
10810 + Fix ia64 assembler code
10811
10812 *Andy Polyakov, Steve Henson*
10813
257e9d03 10814### Changes between 0.9.8e and 0.9.8f [11 Oct 2007]
5f8e6c50
DMSP
10815
10816 * DTLS Handshake overhaul. There were longstanding issues with
10817 OpenSSL DTLS implementation, which were making it impossible for
10818 RFC 4347 compliant client to communicate with OpenSSL server.
10819 Unfortunately just fixing these incompatibilities would "cut off"
10820 pre-0.9.8f clients. To allow for hassle free upgrade post-0.9.8e
10821 server keeps tolerating non RFC compliant syntax. The opposite is
10822 not true, 0.9.8f client can not communicate with earlier server.
10823 This update even addresses CVE-2007-4995.
10824
10825 *Andy Polyakov*
10826
10827 * Changes to avoid need for function casts in OpenSSL: some compilers
10828 (gcc 4.2 and later) reject their use.
10829 *Kurt Roeckx <kurt@roeckx.be>, Peter Hartley <pdh@utter.chaos.org.uk>,
10830 Steve Henson*
10831
10832 * Add RFC4507 support to OpenSSL. This includes the corrections in
10833 RFC4507bis. The encrypted ticket format is an encrypted encoded
10834 SSL_SESSION structure, that way new session features are automatically
10835 supported.
10836
10837 If a client application caches session in an SSL_SESSION structure
10838 support is transparent because tickets are now stored in the encoded
10839 SSL_SESSION.
10840
10841 The SSL_CTX structure automatically generates keys for ticket
10842 protection in servers so again support should be possible
10843 with no application modification.
10844
10845 If a client or server wishes to disable RFC4507 support then the option
10846 SSL_OP_NO_TICKET can be set.
10847
10848 Add a TLS extension debugging callback to allow the contents of any client
10849 or server extensions to be examined.
10850
10851 This work was sponsored by Google.
10852
10853 *Steve Henson*
10854
10855 * Add initial support for TLS extensions, specifically for the server_name
10856 extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now
d7f3a2cc 10857 have new members for a hostname. The SSL data structure has an
257e9d03 10858 additional member `SSL_CTX *initial_ctx` so that new sessions can be
5f8e6c50
DMSP
10859 stored in that context to allow for session resumption, even after the
10860 SSL has been switched to a new SSL_CTX in reaction to a client's
10861 server_name extension.
10862
10863 New functions (subject to change):
10864
10865 SSL_get_servername()
10866 SSL_get_servername_type()
10867 SSL_set_SSL_CTX()
10868
10869 New CTRL codes and macros (subject to change):
10870
10871 SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
10872 - SSL_CTX_set_tlsext_servername_callback()
10873 SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
10874 - SSL_CTX_set_tlsext_servername_arg()
10875 SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name()
10876
10877 openssl s_client has a new '-servername ...' option.
10878
10879 openssl s_server has new options '-servername_host ...', '-cert2 ...',
10880 '-key2 ...', '-servername_fatal' (subject to change). This allows
d7f3a2cc 10881 testing the HostName extension for a specific single hostname ('-cert'
5f8e6c50
DMSP
10882 and '-key' remain fallbacks for handshakes without HostName
10883 negotiation). If the unrecognized_name alert has to be sent, this by
10884 default is a warning; it becomes fatal with the '-servername_fatal'
10885 option.
10886
5f8e6c50
DMSP
10887 *Peter Sylvester, Remy Allais, Christophe Renou, Steve Henson*
10888
10889 * Add AES and SSE2 assembly language support to VC++ build.
10890
10891 *Steve Henson*
10892
10893 * Mitigate attack on final subtraction in Montgomery reduction.
10894
10895 *Andy Polyakov*
10896
10897 * Fix crypto/ec/ec_mult.c to work properly with scalars of value 0
10898 (which previously caused an internal error).
10899
10900 *Bodo Moeller*
10901
10902 * Squeeze another 10% out of IGE mode when in != out.
10903
10904 *Ben Laurie*
10905
10906 * AES IGE mode speedup.
10907
10908 *Dean Gaudet (Google)*
10909
10910 * Add the Korean symmetric 128-bit cipher SEED (see
257e9d03 10911 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>) and
5f8e6c50
DMSP
10912 add SEED ciphersuites from RFC 4162:
10913
10914 TLS_RSA_WITH_SEED_CBC_SHA = "SEED-SHA"
10915 TLS_DHE_DSS_WITH_SEED_CBC_SHA = "DHE-DSS-SEED-SHA"
10916 TLS_DHE_RSA_WITH_SEED_CBC_SHA = "DHE-RSA-SEED-SHA"
10917 TLS_DH_anon_WITH_SEED_CBC_SHA = "ADH-SEED-SHA"
10918
10919 To minimize changes between patchlevels in the OpenSSL 0.9.8
10920 series, SEED remains excluded from compilation unless OpenSSL
10921 is configured with 'enable-seed'.
10922
10923 *KISA, Bodo Moeller*
10924
10925 * Mitigate branch prediction attacks, which can be practical if a
10926 single processor is shared, allowing a spy process to extract
10927 information. For detailed background information, see
257e9d03 10928 <http://eprint.iacr.org/2007/039> (O. Aciicmez, S. Gueron,
5f8e6c50
DMSP
10929 J.-P. Seifert, "New Branch Prediction Vulnerabilities in OpenSSL
10930 and Necessary Software Countermeasures"). The core of the change
10931 are new versions BN_div_no_branch() and
10932 BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(),
10933 respectively, which are slower, but avoid the security-relevant
10934 conditional branches. These are automatically called by BN_div()
10935 and BN_mod_inverse() if the flag BN_FLG_CONSTTIME is set for one
10936 of the input BIGNUMs. Also, BN_is_bit_set() has been changed to
10937 remove a conditional branch.
10938
10939 BN_FLG_CONSTTIME is the new name for the previous
10940 BN_FLG_EXP_CONSTTIME flag, since it now affects more than just
10941 modular exponentiation. (Since OpenSSL 0.9.7h, setting this flag
10942 in the exponent causes BN_mod_exp_mont() to use the alternative
10943 implementation in BN_mod_exp_mont_consttime().) The old name
10944 remains as a deprecated alias.
10945
10946 Similarly, RSA_FLAG_NO_EXP_CONSTTIME is replaced by a more general
10947 RSA_FLAG_NO_CONSTTIME flag since the RSA implementation now uses
10948 constant-time implementations for more than just exponentiation.
10949 Here too the old name is kept as a deprecated alias.
10950
10951 BN_BLINDING_new() will now use BN_dup() for the modulus so that
10952 the BN_BLINDING structure gets an independent copy of the
257e9d03 10953 modulus. This means that the previous `BIGNUM *m` argument to
5f8e6c50 10954 BN_BLINDING_new() and to BN_BLINDING_create_param() now
257e9d03 10955 essentially becomes `const BIGNUM *m`, although we can't actually
5f8e6c50
DMSP
10956 change this in the header file before 0.9.9. It allows
10957 RSA_setup_blinding() to use BN_with_flags() on the modulus to
10958 enable BN_FLG_CONSTTIME.
10959
5f8e6c50
DMSP
10960 *Matthew D Wood (Intel Corp)*
10961
10962 * In the SSL/TLS server implementation, be strict about session ID
10963 context matching (which matters if an application uses a single
10964 external cache for different purposes). Previously,
10965 out-of-context reuse was forbidden only if SSL_VERIFY_PEER was
10966 set. This did ensure strict client verification, but meant that,
10967 with applications using a single external cache for quite
10968 different requirements, clients could circumvent ciphersuite
10969 restrictions for a given session ID context by starting a session
10970 in a different context.
10971
10972 *Bodo Moeller*
10973
10974 * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that
10975 a ciphersuite string such as "DEFAULT:RSA" cannot enable
10976 authentication-only ciphersuites.
10977
10978 *Bodo Moeller*
10979
10980 * Update the SSL_get_shared_ciphers() fix CVE-2006-3738 which was
10981 not complete and could lead to a possible single byte overflow
d8dc8538 10982 ([CVE-2007-5135]) [Ben Laurie]
5f8e6c50 10983
257e9d03 10984### Changes between 0.9.8d and 0.9.8e [23 Feb 2007]
5f8e6c50
DMSP
10985
10986 * Since AES128 and AES256 (and similarly Camellia128 and
10987 Camellia256) share a single mask bit in the logic of
10988 ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a
10989 kludge to work properly if AES128 is available and AES256 isn't
10990 (or if Camellia128 is available and Camellia256 isn't).
10991
10992 *Victor Duchovni*
10993
10994 * Fix the BIT STRING encoding generated by crypto/ec/ec_asn1.c
10995 (within i2d_ECPrivateKey, i2d_ECPKParameters, i2d_ECParameters):
10996 When a point or a seed is encoded in a BIT STRING, we need to
10997 prevent the removal of trailing zero bits to get the proper DER
10998 encoding. (By default, crypto/asn1/a_bitstr.c assumes the case
10999 of a NamedBitList, for which trailing 0 bits need to be removed.)
11000
11001 *Bodo Moeller*
11002
11003 * Have SSL/TLS server implementation tolerate "mismatched" record
11004 protocol version while receiving ClientHello even if the
11005 ClientHello is fragmented. (The server can't insist on the
11006 particular protocol version it has chosen before the ServerHello
11007 message has informed the client about his choice.)
11008
11009 *Bodo Moeller*
11010
11011 * Add RFC 3779 support.
11012
11013 *Rob Austein for ARIN, Ben Laurie*
11014
11015 * Load error codes if they are not already present instead of using a
11016 static variable. This allows them to be cleanly unloaded and reloaded.
11017 Improve header file function name parsing.
11018
11019 *Steve Henson*
11020
11021 * extend SMTP and IMAP protocol emulation in s_client to use EHLO
11022 or CAPABILITY handshake as required by RFCs.
11023
11024 *Goetz Babin-Ebell*
11025
257e9d03 11026### Changes between 0.9.8c and 0.9.8d [28 Sep 2006]
5f8e6c50
DMSP
11027
11028 * Introduce limits to prevent malicious keys being able to
d8dc8538 11029 cause a denial of service. ([CVE-2006-2940])
5f8e6c50
DMSP
11030
11031 *Steve Henson, Bodo Moeller*
11032
11033 * Fix ASN.1 parsing of certain invalid structures that can result
d8dc8538 11034 in a denial of service. ([CVE-2006-2937]) [Steve Henson]
5f8e6c50
DMSP
11035
11036 * Fix buffer overflow in SSL_get_shared_ciphers() function.
d8dc8538 11037 ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team]
5f8e6c50
DMSP
11038
11039 * Fix SSL client code which could crash if connecting to a
d8dc8538 11040 malicious SSLv2 server. ([CVE-2006-4343])
5f8e6c50
DMSP
11041
11042 *Tavis Ormandy and Will Drewry, Google Security Team*
11043
11044 * Since 0.9.8b, ciphersuite strings naming explicit ciphersuites
11045 match only those. Before that, "AES256-SHA" would be interpreted
11046 as a pattern and match "AES128-SHA" too (since AES128-SHA got
11047 the same strength classification in 0.9.7h) as we currently only
11048 have a single AES bit in the ciphersuite description bitmap.
11049 That change, however, also applied to ciphersuite strings such as
11050 "RC4-MD5" that intentionally matched multiple ciphersuites --
11051 namely, SSL 2.0 ciphersuites in addition to the more common ones
11052 from SSL 3.0/TLS 1.0.
11053
11054 So we change the selection algorithm again: Naming an explicit
11055 ciphersuite selects this one ciphersuite, and any other similar
11056 ciphersuite (same bitmap) from *other* protocol versions.
11057 Thus, "RC4-MD5" again will properly select both the SSL 2.0
11058 ciphersuite and the SSL 3.0/TLS 1.0 ciphersuite.
11059
11060 Since SSL 2.0 does not have any ciphersuites for which the
11061 128/256 bit distinction would be relevant, this works for now.
11062 The proper fix will be to use different bits for AES128 and
11063 AES256, which would have avoided the problems from the beginning;
11064 however, bits are scarce, so we can only do this in a new release
11065 (not just a patchlevel) when we can change the SSL_CIPHER
11066 definition to split the single 'unsigned long mask' bitmap into
11067 multiple values to extend the available space.
11068
5f8e6c50
DMSP
11069 *Bodo Moeller*
11070
257e9d03 11071### Changes between 0.9.8b and 0.9.8c [05 Sep 2006]
5f8e6c50
DMSP
11072
11073 * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher
d8dc8538 11074 ([CVE-2006-4339]) [Ben Laurie and Google Security Team]
5f8e6c50
DMSP
11075
11076 * Add AES IGE and biIGE modes.
11077
11078 *Ben Laurie*
11079
11080 * Change the Unix randomness entropy gathering to use poll() when
11081 possible instead of select(), since the latter has some
11082 undesirable limitations.
11083
11084 *Darryl Miles via Richard Levitte and Bodo Moeller*
11085
11086 * Disable "ECCdraft" ciphersuites more thoroughly. Now special
11087 treatment in ssl/ssl_ciph.s makes sure that these ciphersuites
11088 cannot be implicitly activated as part of, e.g., the "AES" alias.
11089 However, please upgrade to OpenSSL 0.9.9[-dev] for
11090 non-experimental use of the ECC ciphersuites to get TLS extension
11091 support, which is required for curve and point format negotiation
11092 to avoid potential handshake problems.
11093
11094 *Bodo Moeller*
11095
11096 * Disable rogue ciphersuites:
11097
257e9d03
RS
11098 - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5")
11099 - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5")
11100 - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5")
5f8e6c50
DMSP
11101
11102 The latter two were purportedly from
11103 draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really
11104 appear there.
11105
11106 Also deactivate the remaining ciphersuites from
11107 draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as
11108 unofficial, and the ID has long expired.
11109
11110 *Bodo Moeller*
11111
11112 * Fix RSA blinding Heisenbug (problems sometimes occurred on
11113 dual-core machines) and other potential thread-safety issues.
11114
11115 *Bodo Moeller*
11116
11117 * Add the symmetric cipher Camellia (128-bit, 192-bit, 256-bit key
11118 versions), which is now available for royalty-free use
257e9d03 11119 (see <http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html>).
5f8e6c50
DMSP
11120 Also, add Camellia TLS ciphersuites from RFC 4132.
11121
11122 To minimize changes between patchlevels in the OpenSSL 0.9.8
11123 series, Camellia remains excluded from compilation unless OpenSSL
11124 is configured with 'enable-camellia'.
11125
11126 *NTT*
11127
11128 * Disable the padding bug check when compression is in use. The padding
11129 bug check assumes the first packet is of even length, this is not
11130 necessarily true if compression is enabled and can result in false
11131 positives causing handshake failure. The actual bug test is ancient
11132 code so it is hoped that implementations will either have fixed it by
11133 now or any which still have the bug do not support compression.
11134
11135 *Steve Henson*
11136
257e9d03 11137### Changes between 0.9.8a and 0.9.8b [04 May 2006]
5f8e6c50
DMSP
11138
11139 * When applying a cipher rule check to see if string match is an explicit
11140 cipher suite and only match that one cipher suite if it is.
11141
11142 *Steve Henson*
11143
11144 * Link in manifests for VC++ if needed.
11145
11146 *Austin Ziegler <halostatue@gmail.com>*
11147
11148 * Update support for ECC-based TLS ciphersuites according to
11149 draft-ietf-tls-ecc-12.txt with proposed changes (but without
11150 TLS extensions, which are supported starting with the 0.9.9
11151 branch, not in the OpenSSL 0.9.8 branch).
11152
11153 *Douglas Stebila*
11154
11155 * New functions EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free() to support
11156 opaque EVP_CIPHER_CTX handling.
11157
11158 *Steve Henson*
11159
11160 * Fixes and enhancements to zlib compression code. We now only use
44652c16 11161 "zlib1.dll" and use the default `__cdecl` calling convention on Win32
5f8e6c50 11162 to conform with the standards mentioned here:
257e9d03 11163 <http://www.zlib.net/DLL_FAQ.txt>
5f8e6c50
DMSP
11164 Static zlib linking now works on Windows and the new --with-zlib-include
11165 --with-zlib-lib options to Configure can be used to supply the location
11166 of the headers and library. Gracefully handle case where zlib library
11167 can't be loaded.
11168
11169 *Steve Henson*
11170
11171 * Several fixes and enhancements to the OID generation code. The old code
11172 sometimes allowed invalid OIDs (1.X for X >= 40 for example), couldn't
11173 handle numbers larger than ULONG_MAX, truncated printing and had a
11174 non standard OBJ_obj2txt() behaviour.
11175
11176 *Steve Henson*
11177
11178 * Add support for building of engines under engine/ as shared libraries
11179 under VC++ build system.
11180
11181 *Steve Henson*
11182
11183 * Corrected the numerous bugs in the Win32 path splitter in DSO.
11184 Hopefully, we will not see any false combination of paths any more.
11185
11186 *Richard Levitte*
11187
257e9d03 11188### Changes between 0.9.8 and 0.9.8a [11 Oct 2005]
5f8e6c50
DMSP
11189
11190 * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING
11191 (part of SSL_OP_ALL). This option used to disable the
11192 countermeasure against man-in-the-middle protocol-version
11193 rollback in the SSL 2.0 server implementation, which is a bad
d8dc8538 11194 idea. ([CVE-2005-2969])
5f8e6c50
DMSP
11195
11196 *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center
11197 for Information Security, National Institute of Advanced Industrial
257e9d03 11198 Science and Technology [AIST], Japan)*
5f8e6c50
DMSP
11199
11200 * Add two function to clear and return the verify parameter flags.
11201
11202 *Steve Henson*
11203
11204 * Keep cipherlists sorted in the source instead of sorting them at
11205 runtime, thus removing the need for a lock.
11206
11207 *Nils Larsch*
11208
11209 * Avoid some small subgroup attacks in Diffie-Hellman.
11210
11211 *Nick Mathewson and Ben Laurie*
11212
11213 * Add functions for well-known primes.
11214
11215 *Nick Mathewson*
11216
11217 * Extended Windows CE support.
11218
11219 *Satoshi Nakamura and Andy Polyakov*
11220
11221 * Initialize SSL_METHOD structures at compile time instead of during
11222 runtime, thus removing the need for a lock.
11223
11224 *Steve Henson*
11225
11226 * Make PKCS7_decrypt() work even if no certificate is supplied by
11227 attempting to decrypt each encrypted key in turn. Add support to
11228 smime utility.
11229
11230 *Steve Henson*
11231
257e9d03 11232### Changes between 0.9.7h and 0.9.8 [05 Jul 2005]
5f8e6c50
DMSP
11233
11234[NB: OpenSSL 0.9.7i and later 0.9.7 patch levels were released after
11235OpenSSL 0.9.8.]
11236
11237 * Add libcrypto.pc and libssl.pc for those who feel they need them.
11238
11239 *Richard Levitte*
11240
11241 * Change CA.sh and CA.pl so they don't bundle the CSR and the private
11242 key into the same file any more.
11243
11244 *Richard Levitte*
11245
11246 * Add initial support for Win64, both IA64 and AMD64/x64 flavors.
11247
11248 *Andy Polyakov*
11249
11250 * Add -utf8 command line and config file option to 'ca'.
11251
11252 *Stefan <stf@udoma.org*
11253
11254 * Removed the macro des_crypt(), as it seems to conflict with some
11255 libraries. Use DES_crypt().
11256
11257 *Richard Levitte*
11258
11259 * Correct naming of the 'chil' and '4758cca' ENGINEs. This
11260 involves renaming the source and generated shared-libs for
11261 both. The engines will accept the corrected or legacy ids
11262 ('ncipher' and '4758_cca' respectively) when binding. NB,
11263 this only applies when building 'shared'.
11264
11265 *Corinna Vinschen <vinschen@redhat.com> and Geoff Thorpe*
11266
11267 * Add attribute functions to EVP_PKEY structure. Modify
11268 PKCS12_create() to recognize a CSP name attribute and
11269 use it. Make -CSP option work again in pkcs12 utility.
11270
11271 *Steve Henson*
11272
11273 * Add new functionality to the bn blinding code:
11274 - automatic re-creation of the BN_BLINDING parameters after
11275 a fixed number of uses (currently 32)
11276 - add new function for parameter creation
11277 - introduce flags to control the update behaviour of the
11278 BN_BLINDING parameters
11279 - hide BN_BLINDING structure
11280 Add a second BN_BLINDING slot to the RSA structure to improve
11281 performance when a single RSA object is shared among several
11282 threads.
11283
11284 *Nils Larsch*
11285
11286 * Add support for DTLS.
11287
11288 *Nagendra Modadugu <nagendra@cs.stanford.edu> and Ben Laurie*
11289
11290 * Add support for DER encoded private keys (SSL_FILETYPE_ASN1)
11291 to SSL_CTX_use_PrivateKey_file() and SSL_use_PrivateKey_file()
11292
11293 *Walter Goulet*
11294
11295 * Remove buggy and incomplete DH cert support from
11296 ssl/ssl_rsa.c and ssl/s3_both.c
11297
11298 *Nils Larsch*
11299
11300 * Use SHA-1 instead of MD5 as the default digest algorithm for
ec2bfb7d 11301 the `apps/openssl` commands.
5f8e6c50
DMSP
11302
11303 *Nils Larsch*
11304
11305 * Compile clean with "-Wall -Wmissing-prototypes
11306 -Wstrict-prototypes -Wmissing-declarations -Werror". Currently
11307 DEBUG_SAFESTACK must also be set.
11308
11309 *Ben Laurie*
11310
11311 * Change ./Configure so that certain algorithms can be disabled by default.
11312 The new counterpiece to "no-xxx" is "enable-xxx".
11313
11314 The patented RC5 and MDC2 algorithms will now be disabled unless
11315 "enable-rc5" and "enable-mdc2", respectively, are specified.
11316
11317 (IDEA remains enabled despite being patented. This is because IDEA
11318 is frequently required for interoperability, and there is no license
11319 fee for non-commercial use. As before, "no-idea" can be used to
11320 avoid this algorithm.)
11321
5f8e6c50
DMSP
11322 *Bodo Moeller*
11323
11324 * Add processing of proxy certificates (see RFC 3820). This work was
11325 sponsored by KTH (The Royal Institute of Technology in Stockholm) and
11326 EGEE (Enabling Grids for E-science in Europe).
11327
11328 *Richard Levitte*
11329
11330 * RC4 performance overhaul on modern architectures/implementations, such
11331 as Intel P4, IA-64 and AMD64.
11332
11333 *Andy Polyakov*
11334
11335 * New utility extract-section.pl. This can be used specify an alternative
11336 section number in a pod file instead of having to treat each file as
11337 a separate case in Makefile. This can be done by adding two lines to the
11338 pod file:
11339
11340 =for comment openssl_section:XXX
11341
11342 The blank line is mandatory.
11343
5f8e6c50
DMSP
11344 *Steve Henson*
11345
11346 * New arguments -certform, -keyform and -pass for s_client and s_server
11347 to allow alternative format key and certificate files and passphrase
11348 sources.
11349
11350 *Steve Henson*
11351
11352 * New structure X509_VERIFY_PARAM which combines current verify parameters,
11353 update associated structures and add various utility functions.
11354
11355 Add new policy related verify parameters, include policy checking in
11356 standard verify code. Enhance 'smime' application with extra parameters
11357 to support policy checking and print out.
11358
11359 *Steve Henson*
11360
11361 * Add a new engine to support VIA PadLock ACE extensions in the VIA C3
11362 Nehemiah processors. These extensions support AES encryption in hardware
11363 as well as RNG (though RNG support is currently disabled).
11364
11365 *Michal Ludvig <michal@logix.cz>, with help from Andy Polyakov*
11366
257e9d03 11367 * Deprecate `BN_[get|set]_params()` functions (they were ignored internally).
5f8e6c50
DMSP
11368
11369 *Geoff Thorpe*
11370
11371 * New FIPS 180-2 algorithms, SHA-224/-256/-384/-512 are implemented.
11372
11373 *Andy Polyakov and a number of other people*
11374
11375 * Improved PowerPC platform support. Most notably BIGNUM assembler
11376 implementation contributed by IBM.
11377
11378 *Suresh Chari, Peter Waltenberg, Andy Polyakov*
11379
11380 * The new 'RSA_generate_key_ex' function now takes a BIGNUM for the public
11381 exponent rather than 'unsigned long'. There is a corresponding change to
11382 the new 'rsa_keygen' element of the RSA_METHOD structure.
11383
11384 *Jelte Jansen, Geoff Thorpe*
11385
11386 * Functionality for creating the initial serial number file is now
11387 moved from CA.pl to the 'ca' utility with a new option -create_serial.
11388
11389 (Before OpenSSL 0.9.7e, CA.pl used to initialize the serial
11390 number file to 1, which is bound to cause problems. To avoid
11391 the problems while respecting compatibility between different 0.9.7
11392 patchlevels, 0.9.7e employed 'openssl x509 -next_serial' in
11393 CA.pl for serial number initialization. With the new release 0.9.8,
11394 we can fix the problem directly in the 'ca' utility.)
11395
11396 *Steve Henson*
11397
11398 * Reduced header interdependencies by declaring more opaque objects in
11399 ossl_typ.h. As a consequence, including some headers (eg. engine.h) will
11400 give fewer recursive includes, which could break lazy source code - so
11401 this change is covered by the OPENSSL_NO_DEPRECATED symbol. As always,
11402 developers should define this symbol when building and using openssl to
11403 ensure they track the recommended behaviour, interfaces, [etc], but
11404 backwards-compatible behaviour prevails when this isn't defined.
11405
11406 *Geoff Thorpe*
11407
11408 * New function X509_POLICY_NODE_print() which prints out policy nodes.
11409
11410 *Steve Henson*
11411
11412 * Add new EVP function EVP_CIPHER_CTX_rand_key and associated functionality.
11413 This will generate a random key of the appropriate length based on the
11414 cipher context. The EVP_CIPHER can provide its own random key generation
11415 routine to support keys of a specific form. This is used in the des and
11416 3des routines to generate a key of the correct parity. Update S/MIME
11417 code to use new functions and hence generate correct parity DES keys.
11418 Add EVP_CHECK_DES_KEY #define to return an error if the key is not
11419 valid (weak or incorrect parity).
11420
11421 *Steve Henson*
11422
11423 * Add a local set of CRLs that can be used by X509_verify_cert() as well
11424 as looking them up. This is useful when the verified structure may contain
11425 CRLs, for example PKCS#7 signedData. Modify PKCS7_verify() to use any CRLs
11426 present unless the new PKCS7_NO_CRL flag is asserted.
11427
11428 *Steve Henson*
11429
11430 * Extend ASN1 oid configuration module. It now additionally accepts the
11431 syntax:
11432
11433 shortName = some long name, 1.2.3.4
11434
11435 *Steve Henson*
11436
11437 * Reimplemented the BN_CTX implementation. There is now no more static
11438 limitation on the number of variables it can handle nor the depth of the
11439 "stack" handling for BN_CTX_start()/BN_CTX_end() pairs. The stack
11440 information can now expand as required, and rather than having a single
11441 static array of bignums, BN_CTX now uses a linked-list of such arrays
11442 allowing it to expand on demand whilst maintaining the usefulness of
11443 BN_CTX's "bundling".
11444
11445 *Geoff Thorpe*
11446
11447 * Add a missing BN_CTX parameter to the 'rsa_mod_exp' callback in RSA_METHOD
11448 to allow all RSA operations to function using a single BN_CTX.
11449
11450 *Geoff Thorpe*
11451
11452 * Preliminary support for certificate policy evaluation and checking. This
11453 is initially intended to pass the tests outlined in "Conformance Testing
11454 of Relying Party Client Certificate Path Processing Logic" v1.07.
11455
11456 *Steve Henson*
11457
11458 * bn_dup_expand() has been deprecated, it was introduced in 0.9.7 and
11459 remained unused and not that useful. A variety of other little bignum
11460 tweaks and fixes have also been made continuing on from the audit (see
11461 below).
11462
11463 *Geoff Thorpe*
11464
11465 * Constify all or almost all d2i, c2i, s2i and r2i functions, along with
11466 associated ASN1, EVP and SSL functions and old ASN1 macros.
11467
11468 *Richard Levitte*
11469
11470 * BN_zero() only needs to set 'top' and 'neg' to zero for correct results,
11471 and this should never fail. So the return value from the use of
11472 BN_set_word() (which can fail due to needless expansion) is now deprecated;
11473 if OPENSSL_NO_DEPRECATED is defined, BN_zero() is a void macro.
11474
11475 *Geoff Thorpe*
11476
11477 * BN_CTX_get() should return zero-valued bignums, providing the same
11478 initialised value as BN_new().
11479
11480 *Geoff Thorpe, suggested by Ulf Möller*
11481
11482 * Support for inhibitAnyPolicy certificate extension.
11483
11484 *Steve Henson*
11485
11486 * An audit of the BIGNUM code is underway, for which debugging code is
11487 enabled when BN_DEBUG is defined. This makes stricter enforcements on what
11488 is considered valid when processing BIGNUMs, and causes execution to
11489 assert() when a problem is discovered. If BN_DEBUG_RAND is defined,
11490 further steps are taken to deliberately pollute unused data in BIGNUM
11491 structures to try and expose faulty code further on. For now, openssl will
11492 (in its default mode of operation) continue to tolerate the inconsistent
11493 forms that it has tolerated in the past, but authors and packagers should
11494 consider trying openssl and their own applications when compiled with
11495 these debugging symbols defined. It will help highlight potential bugs in
11496 their own code, and will improve the test coverage for OpenSSL itself. At
11497 some point, these tighter rules will become openssl's default to improve
11498 maintainability, though the assert()s and other overheads will remain only
11499 in debugging configurations. See bn.h for more details.
11500
11501 *Geoff Thorpe, Nils Larsch, Ulf Möller*
11502
11503 * BN_CTX_init() has been deprecated, as BN_CTX is an opaque structure
11504 that can only be obtained through BN_CTX_new() (which implicitly
11505 initialises it). The presence of this function only made it possible
11506 to overwrite an existing structure (and cause memory leaks).
11507
11508 *Geoff Thorpe*
11509
11510 * Because of the callback-based approach for implementing LHASH as a
11511 template type, lh_insert() adds opaque objects to hash-tables and
11512 lh_doall() or lh_doall_arg() are typically used with a destructor callback
11513 to clean up those corresponding objects before destroying the hash table
11514 (and losing the object pointers). So some over-zealous constifications in
11515 LHASH have been relaxed so that lh_insert() does not take (nor store) the
257e9d03 11516 objects as "const" and the `lh_doall[_arg]` callback wrappers are not
5f8e6c50
DMSP
11517 prototyped to have "const" restrictions on the object pointers they are
11518 given (and so aren't required to cast them away any more).
11519
11520 *Geoff Thorpe*
11521
11522 * The tmdiff.h API was so ugly and minimal that our own timing utility
11523 (speed) prefers to use its own implementation. The two implementations
11524 haven't been consolidated as yet (volunteers?) but the tmdiff API has had
257e9d03
RS
11525 its object type properly exposed (MS_TM) instead of casting to/from
11526 `char *`. This may still change yet if someone realises MS_TM and
11527 `ms_time_***`
5f8e6c50
DMSP
11528 aren't necessarily the greatest nomenclatures - but this is what was used
11529 internally to the implementation so I've used that for now.
11530
11531 *Geoff Thorpe*
11532
11533 * Ensure that deprecated functions do not get compiled when
11534 OPENSSL_NO_DEPRECATED is defined. Some "openssl" subcommands and a few of
11535 the self-tests were still using deprecated key-generation functions so
11536 these have been updated also.
11537
11538 *Geoff Thorpe*
11539
11540 * Reorganise PKCS#7 code to separate the digest location functionality
11541 into PKCS7_find_digest(), digest addition into PKCS7_bio_add_digest().
11542 New function PKCS7_set_digest() to set the digest type for PKCS#7
11543 digestedData type. Add additional code to correctly generate the
11544 digestedData type and add support for this type in PKCS7 initialization
11545 functions.
11546
11547 *Steve Henson*
11548
11549 * New function PKCS7_set0_type_other() this initializes a PKCS7
11550 structure of type "other".
11551
11552 *Steve Henson*
11553
11554 * Fix prime generation loop in crypto/bn/bn_prime.pl by making
11555 sure the loop does correctly stop and breaking ("division by zero")
11556 modulus operations are not performed. The (pre-generated) prime
11557 table crypto/bn/bn_prime.h was already correct, but it could not be
11558 re-generated on some platforms because of the "division by zero"
11559 situation in the script.
11560
11561 *Ralf S. Engelschall*
11562
11563 * Update support for ECC-based TLS ciphersuites according to
11564 draft-ietf-tls-ecc-03.txt: the KDF1 key derivation function with
11565 SHA-1 now is only used for "small" curves (where the
11566 representation of a field element takes up to 24 bytes); for
11567 larger curves, the field element resulting from ECDH is directly
11568 used as premaster secret.
11569
11570 *Douglas Stebila (Sun Microsystems Laboratories)*
11571
11572 * Add code for kP+lQ timings to crypto/ec/ectest.c, and add SEC2
11573 curve secp160r1 to the tests.
11574
11575 *Douglas Stebila (Sun Microsystems Laboratories)*
11576
11577 * Add the possibility to load symbols globally with DSO.
11578
11579 *Götz Babin-Ebell <babin-ebell@trustcenter.de> via Richard Levitte*
11580
11581 * Add the functions ERR_set_mark() and ERR_pop_to_mark() for better
11582 control of the error stack.
11583
11584 *Richard Levitte*
11585
11586 * Add support for STORE in ENGINE.
11587
11588 *Richard Levitte*
11589
11590 * Add the STORE type. The intention is to provide a common interface
11591 to certificate and key stores, be they simple file-based stores, or
11592 HSM-type store, or LDAP stores, or...
11593 NOTE: The code is currently UNTESTED and isn't really used anywhere.
11594
11595 *Richard Levitte*
11596
11597 * Add a generic structure called OPENSSL_ITEM. This can be used to
11598 pass a list of arguments to any function as well as provide a way
11599 for a function to pass data back to the caller.
11600
11601 *Richard Levitte*
11602
11603 * Add the functions BUF_strndup() and BUF_memdup(). BUF_strndup()
11604 works like BUF_strdup() but can be used to duplicate a portion of
11605 a string. The copy gets NUL-terminated. BUF_memdup() duplicates
11606 a memory area.
11607
11608 *Richard Levitte*
11609
11610 * Add the function sk_find_ex() which works like sk_find(), but will
11611 return an index to an element even if an exact match couldn't be
11612 found. The index is guaranteed to point at the element where the
11613 searched-for key would be inserted to preserve sorting order.
11614
11615 *Richard Levitte*
11616
11617 * Add the function OBJ_bsearch_ex() which works like OBJ_bsearch() but
11618 takes an extra flags argument for optional functionality. Currently,
11619 the following flags are defined:
11620
11621 OBJ_BSEARCH_VALUE_ON_NOMATCH
11622 This one gets OBJ_bsearch_ex() to return a pointer to the first
11623 element where the comparing function returns a negative or zero
11624 number.
11625
11626 OBJ_BSEARCH_FIRST_VALUE_ON_MATCH
11627 This one gets OBJ_bsearch_ex() to return a pointer to the first
11628 element where the comparing function returns zero. This is useful
11629 if there are more than one element where the comparing function
11630 returns zero.
11631
11632 *Richard Levitte*
11633
11634 * Make it possible to create self-signed certificates with 'openssl ca'
11635 in such a way that the self-signed certificate becomes part of the
11636 CA database and uses the same mechanisms for serial number generation
11637 as all other certificate signing. The new flag '-selfsign' enables
11638 this functionality. Adapt CA.sh and CA.pl.in.
11639
11640 *Richard Levitte*
11641
11642 * Add functionality to check the public key of a certificate request
11643 against a given private. This is useful to check that a certificate
11644 request can be signed by that key (self-signing).
11645
11646 *Richard Levitte*
11647
11648 * Make it possible to have multiple active certificates with the same
11649 subject in the CA index file. This is done only if the keyword
11650 'unique_subject' is set to 'no' in the main CA section (default
11651 if 'CA_default') of the configuration file. The value is saved
11652 with the database itself in a separate index attribute file,
11653 named like the index file with '.attr' appended to the name.
11654
11655 *Richard Levitte*
11656
11657 * Generate multi-valued AVAs using '+' notation in config files for
11658 req and dirName.
11659
11660 *Steve Henson*
11661
11662 * Support for nameConstraints certificate extension.
11663
11664 *Steve Henson*
11665
11666 * Support for policyConstraints certificate extension.
11667
11668 *Steve Henson*
11669
11670 * Support for policyMappings certificate extension.
11671
11672 *Steve Henson*
11673
11674 * Make sure the default DSA_METHOD implementation only uses its
11675 dsa_mod_exp() and/or bn_mod_exp() handlers if they are non-NULL,
11676 and change its own handlers to be NULL so as to remove unnecessary
11677 indirection. This lets alternative implementations fallback to the
11678 default implementation more easily.
11679
11680 *Geoff Thorpe*
11681
11682 * Support for directoryName in GeneralName related extensions
11683 in config files.
11684
11685 *Steve Henson*
11686
11687 * Make it possible to link applications using Makefile.shared.
11688 Make that possible even when linking against static libraries!
11689
11690 *Richard Levitte*
11691
11692 * Support for single pass processing for S/MIME signing. This now
11693 means that S/MIME signing can be done from a pipe, in addition
11694 cleartext signing (multipart/signed type) is effectively streaming
11695 and the signed data does not need to be all held in memory.
11696
11697 This is done with a new flag PKCS7_STREAM. When this flag is set
11698 PKCS7_sign() only initializes the PKCS7 structure and the actual signing
11699 is done after the data is output (and digests calculated) in
11700 SMIME_write_PKCS7().
11701
11702 *Steve Henson*
11703
11704 * Add full support for -rpath/-R, both in shared libraries and
11705 applications, at least on the platforms where it's known how
11706 to do it.
11707
11708 *Richard Levitte*
11709
11710 * In crypto/ec/ec_mult.c, implement fast point multiplication with
11711 precomputation, based on wNAF splitting: EC_GROUP_precompute_mult()
11712 will now compute a table of multiples of the generator that
11713 makes subsequent invocations of EC_POINTs_mul() or EC_POINT_mul()
11714 faster (notably in the case of a single point multiplication,
11715 scalar * generator).
11716
11717 *Nils Larsch, Bodo Moeller*
11718
11719 * IPv6 support for certificate extensions. The various extensions
11720 which use the IP:a.b.c.d can now take IPv6 addresses using the
11721 formats of RFC1884 2.2 . IPv6 addresses are now also displayed
11722 correctly.
11723
11724 *Steve Henson*
11725
11726 * Added an ENGINE that implements RSA by performing private key
11727 exponentiations with the GMP library. The conversions to and from
11728 GMP's mpz_t format aren't optimised nor are any montgomery forms
11729 cached, and on x86 it appears OpenSSL's own performance has caught up.
11730 However there are likely to be other architectures where GMP could
11731 provide a boost. This ENGINE is not built in by default, but it can be
11732 specified at Configure time and should be accompanied by the necessary
11733 linker additions, eg;
11734 ./config -DOPENSSL_USE_GMP -lgmp
11735
11736 *Geoff Thorpe*
11737
11738 * "openssl engine" will not display ENGINE/DSO load failure errors when
11739 testing availability of engines with "-t" - the old behaviour is
11740 produced by increasing the feature's verbosity with "-tt".
11741
11742 *Geoff Thorpe*
11743
11744 * ECDSA routines: under certain error conditions uninitialized BN objects
11745 could be freed. Solution: make sure initialization is performed early
11746 enough. (Reported and fix supplied by Nils Larsch <nla@trustcenter.de>
11747 via PR#459)
11748
11749 *Lutz Jaenicke*
11750
11751 * Key-generation can now be implemented in RSA_METHOD, DSA_METHOD
11752 and DH_METHOD (eg. by ENGINE implementations) to override the normal
11753 software implementations. For DSA and DH, parameter generation can
11754 also be overridden by providing the appropriate method callbacks.
11755
11756 *Geoff Thorpe*
11757
11758 * Change the "progress" mechanism used in key-generation and
11759 primality testing to functions that take a new BN_GENCB pointer in
257e9d03 11760 place of callback/argument pairs. The new API functions have `_ex`
5f8e6c50
DMSP
11761 postfixes and the older functions are reimplemented as wrappers for
11762 the new ones. The OPENSSL_NO_DEPRECATED symbol can be used to hide
11763 declarations of the old functions to help (graceful) attempts to
11764 migrate to the new functions. Also, the new key-generation API
11765 functions operate on a caller-supplied key-structure and return
11766 success/failure rather than returning a key or NULL - this is to
11767 help make "keygen" another member function of RSA_METHOD etc.
11768
11769 Example for using the new callback interface:
11770
11771 int (*my_callback)(int a, int b, BN_GENCB *cb) = ...;
11772 void *my_arg = ...;
11773 BN_GENCB my_cb;
11774
11775 BN_GENCB_set(&my_cb, my_callback, my_arg);
11776
11777 return BN_is_prime_ex(some_bignum, BN_prime_checks, NULL, &cb);
11778 /* For the meaning of a, b in calls to my_callback(), see the
11779 * documentation of the function that calls the callback.
11780 * cb will point to my_cb; my_arg can be retrieved as cb->arg.
11781 * my_callback should return 1 if it wants BN_is_prime_ex()
11782 * to continue, or 0 to stop.
11783 */
11784
11785 *Geoff Thorpe*
11786
11787 * Change the ZLIB compression method to be stateful, and make it
11788 available to TLS with the number defined in
11789 draft-ietf-tls-compression-04.txt.
11790
11791 *Richard Levitte*
11792
11793 * Add the ASN.1 structures and functions for CertificatePair, which
11794 is defined as follows (according to X.509_4thEditionDraftV6.pdf):
11795
11796 CertificatePair ::= SEQUENCE {
11797 forward [0] Certificate OPTIONAL,
11798 reverse [1] Certificate OPTIONAL,
11799 -- at least one of the pair shall be present -- }
11800
11801 Also implement the PEM functions to read and write certificate
11802 pairs, and defined the PEM tag as "CERTIFICATE PAIR".
11803
11804 This needed to be defined, mostly for the sake of the LDAP
11805 attribute crossCertificatePair, but may prove useful elsewhere as
11806 well.
11807
11808 *Richard Levitte*
11809
11810 * Make it possible to inhibit symlinking of shared libraries in
11811 Makefile.shared, for Cygwin's sake.
11812
11813 *Richard Levitte*
11814
11815 * Extend the BIGNUM API by creating a function
11816 void BN_set_negative(BIGNUM *a, int neg);
11817 and a macro that behave like
11818 int BN_is_negative(const BIGNUM *a);
11819
11820 to avoid the need to access 'a->neg' directly in applications.
11821
11822 *Nils Larsch*
11823
11824 * Implement fast modular reduction for pseudo-Mersenne primes
11825 used in NIST curves (crypto/bn/bn_nist.c, crypto/ec/ecp_nist.c).
11826 EC_GROUP_new_curve_GFp() will now automatically use this
11827 if applicable.
11828
11829 *Nils Larsch <nla@trustcenter.de>*
11830
11831 * Add new lock type (CRYPTO_LOCK_BN).
11832
11833 *Bodo Moeller*
11834
11835 * Change the ENGINE framework to automatically load engines
11836 dynamically from specific directories unless they could be
11837 found to already be built in or loaded. Move all the
11838 current engines except for the cryptodev one to a new
11839 directory engines/.
11840 The engines in engines/ are built as shared libraries if
11841 the "shared" options was given to ./Configure or ./config.
11842 Otherwise, they are inserted in libcrypto.a.
11843 /usr/local/ssl/engines is the default directory for dynamic
11844 engines, but that can be overridden at configure time through
11845 the usual use of --prefix and/or --openssldir, and at run
11846 time with the environment variable OPENSSL_ENGINES.
11847
11848 *Geoff Thorpe and Richard Levitte*
11849
11850 * Add Makefile.shared, a helper makefile to build shared
11851 libraries. Adapt Makefile.org.
11852
11853 *Richard Levitte*
11854
11855 * Add version info to Win32 DLLs.
11856
11857 *Peter 'Luna' Runestig" <peter@runestig.com>*
11858
11859 * Add new 'medium level' PKCS#12 API. Certificates and keys
11860 can be added using this API to created arbitrary PKCS#12
4d49b685 11861 files while avoiding the low-level API.
5f8e6c50
DMSP
11862
11863 New options to PKCS12_create(), key or cert can be NULL and
11864 will then be omitted from the output file. The encryption
11865 algorithm NIDs can be set to -1 for no encryption, the mac
11866 iteration count can be set to 0 to omit the mac.
11867
11868 Enhance pkcs12 utility by making the -nokeys and -nocerts
11869 options work when creating a PKCS#12 file. New option -nomac
11870 to omit the mac, NONE can be set for an encryption algorithm.
11871 New code is modified to use the enhanced PKCS12_create()
4d49b685 11872 instead of the low-level API.
5f8e6c50
DMSP
11873
11874 *Steve Henson*
11875
11876 * Extend ASN1 encoder to support indefinite length constructed
11877 encoding. This can output sequences tags and octet strings in
11878 this form. Modify pk7_asn1.c to support indefinite length
11879 encoding. This is experimental and needs additional code to
11880 be useful, such as an ASN1 bio and some enhanced streaming
11881 PKCS#7 code.
11882
11883 Extend template encode functionality so that tagging is passed
11884 down to the template encoder.
11885
11886 *Steve Henson*
11887
11888 * Let 'openssl req' fail if an argument to '-newkey' is not
11889 recognized instead of using RSA as a default.
11890
11891 *Bodo Moeller*
11892
11893 * Add support for ECC-based ciphersuites from draft-ietf-tls-ecc-01.txt.
11894 As these are not official, they are not included in "ALL";
11895 the "ECCdraft" ciphersuite group alias can be used to select them.
11896
11897 *Vipul Gupta and Sumit Gupta (Sun Microsystems Laboratories)*
11898
11899 * Add ECDH engine support.
11900
11901 *Nils Gura and Douglas Stebila (Sun Microsystems Laboratories)*
11902
11903 * Add ECDH in new directory crypto/ecdh/.
11904
11905 *Douglas Stebila (Sun Microsystems Laboratories)*
11906
11907 * Let BN_rand_range() abort with an error after 100 iterations
11908 without success (which indicates a broken PRNG).
11909
11910 *Bodo Moeller*
11911
11912 * Change BN_mod_sqrt() so that it verifies that the input value
11913 is really the square of the return value. (Previously,
11914 BN_mod_sqrt would show GIGO behaviour.)
11915
11916 *Bodo Moeller*
11917
11918 * Add named elliptic curves over binary fields from X9.62, SECG,
11919 and WAP/WTLS; add OIDs that were still missing.
11920
257e9d03 11921 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
11922
11923 * Extend the EC library for elliptic curves over binary fields
11924 (new files ec2_smpl.c, ec2_smpt.c, ec2_mult.c in crypto/ec/).
11925 New EC_METHOD:
11926
11927 EC_GF2m_simple_method
11928
11929 New API functions:
11930
11931 EC_GROUP_new_curve_GF2m
11932 EC_GROUP_set_curve_GF2m
11933 EC_GROUP_get_curve_GF2m
11934 EC_POINT_set_affine_coordinates_GF2m
11935 EC_POINT_get_affine_coordinates_GF2m
11936 EC_POINT_set_compressed_coordinates_GF2m
11937
11938 Point compression for binary fields is disabled by default for
11939 patent reasons (compile with OPENSSL_EC_BIN_PT_COMP defined to
11940 enable it).
11941
11942 As binary polynomials are represented as BIGNUMs, various members
11943 of the EC_GROUP and EC_POINT data structures can be shared
11944 between the implementations for prime fields and binary fields;
257e9d03
RS
11945 the above `..._GF2m functions` (except for EX_GROUP_new_curve_GF2m)
11946 are essentially identical to their `..._GFp` counterparts.
11947 (For simplicity, the `..._GFp` prefix has been dropped from
5f8e6c50
DMSP
11948 various internal method names.)
11949
11950 An internal 'field_div' method (similar to 'field_mul' and
11951 'field_sqr') has been added; this is used only for binary fields.
11952
257e9d03 11953 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
11954
11955 * Optionally dispatch EC_POINT_mul(), EC_POINT_precompute_mult()
11956 through methods ('mul', 'precompute_mult').
11957
11958 The generic implementations (now internally called 'ec_wNAF_mul'
11959 and 'ec_wNAF_precomputed_mult') remain the default if these
11960 methods are undefined.
11961
257e9d03 11962 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
11963
11964 * New function EC_GROUP_get_degree, which is defined through
11965 EC_METHOD. For curves over prime fields, this returns the bit
11966 length of the modulus.
11967
257e9d03 11968 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
11969
11970 * New functions EC_GROUP_dup, EC_POINT_dup.
11971 (These simply call ..._new and ..._copy).
11972
257e9d03 11973 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
11974
11975 * Add binary polynomial arithmetic software in crypto/bn/bn_gf2m.c.
11976 Polynomials are represented as BIGNUMs (where the sign bit is not
11977 used) in the following functions [macros]:
11978
11979 BN_GF2m_add
11980 BN_GF2m_sub [= BN_GF2m_add]
11981 BN_GF2m_mod [wrapper for BN_GF2m_mod_arr]
11982 BN_GF2m_mod_mul [wrapper for BN_GF2m_mod_mul_arr]
11983 BN_GF2m_mod_sqr [wrapper for BN_GF2m_mod_sqr_arr]
11984 BN_GF2m_mod_inv
11985 BN_GF2m_mod_exp [wrapper for BN_GF2m_mod_exp_arr]
11986 BN_GF2m_mod_sqrt [wrapper for BN_GF2m_mod_sqrt_arr]
11987 BN_GF2m_mod_solve_quad [wrapper for BN_GF2m_mod_solve_quad_arr]
11988 BN_GF2m_cmp [= BN_ucmp]
11989
11990 (Note that only the 'mod' functions are actually for fields GF(2^m).
11991 BN_GF2m_add() is misnomer, but this is for the sake of consistency.)
11992
11993 For some functions, an the irreducible polynomial defining a
11994 field can be given as an 'unsigned int[]' with strictly
11995 decreasing elements giving the indices of those bits that are set;
11996 i.e., p[] represents the polynomial
11997 f(t) = t^p[0] + t^p[1] + ... + t^p[k]
11998 where
11999 p[0] > p[1] > ... > p[k] = 0.
12000 This applies to the following functions:
12001
12002 BN_GF2m_mod_arr
12003 BN_GF2m_mod_mul_arr
12004 BN_GF2m_mod_sqr_arr
12005 BN_GF2m_mod_inv_arr [wrapper for BN_GF2m_mod_inv]
12006 BN_GF2m_mod_div_arr [wrapper for BN_GF2m_mod_div]
12007 BN_GF2m_mod_exp_arr
12008 BN_GF2m_mod_sqrt_arr
12009 BN_GF2m_mod_solve_quad_arr
12010 BN_GF2m_poly2arr
12011 BN_GF2m_arr2poly
12012
12013 Conversion can be performed by the following functions:
12014
12015 BN_GF2m_poly2arr
12016 BN_GF2m_arr2poly
12017
12018 bntest.c has additional tests for binary polynomial arithmetic.
12019
12020 Two implementations for BN_GF2m_mod_div() are available.
12021 The default algorithm simply uses BN_GF2m_mod_inv() and
12022 BN_GF2m_mod_mul(). The alternative algorithm is compiled in only
12023 if OPENSSL_SUN_GF2M_DIV is defined (patent pending; read the
12024 copyright notice in crypto/bn/bn_gf2m.c before enabling it).
12025
257e9d03 12026 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)*
5f8e6c50
DMSP
12027
12028 * Add new error code 'ERR_R_DISABLED' that can be used when some
12029 functionality is disabled at compile-time.
12030
12031 *Douglas Stebila <douglas.stebila@sun.com>*
12032
12033 * Change default behaviour of 'openssl asn1parse' so that more
12034 information is visible when viewing, e.g., a certificate:
12035
12036 Modify asn1_parse2 (crypto/asn1/asn1_par.c) so that in non-'dump'
12037 mode the content of non-printable OCTET STRINGs is output in a
12038 style similar to INTEGERs, but with '[HEX DUMP]' prepended to
12039 avoid the appearance of a printable string.
12040
12041 *Nils Larsch <nla@trustcenter.de>*
12042
12043 * Add 'asn1_flag' and 'asn1_form' member to EC_GROUP with access
12044 functions
12045 EC_GROUP_set_asn1_flag()
12046 EC_GROUP_get_asn1_flag()
12047 EC_GROUP_set_point_conversion_form()
12048 EC_GROUP_get_point_conversion_form()
12049 These control ASN1 encoding details:
12050 - Curves (i.e., groups) are encoded explicitly unless asn1_flag
12051 has been set to OPENSSL_EC_NAMED_CURVE.
12052 - Points are encoded in uncompressed form by default; options for
12053 asn1_for are as for point2oct, namely
12054 POINT_CONVERSION_COMPRESSED
12055 POINT_CONVERSION_UNCOMPRESSED
12056 POINT_CONVERSION_HYBRID
12057
12058 Also add 'seed' and 'seed_len' members to EC_GROUP with access
12059 functions
12060 EC_GROUP_set_seed()
12061 EC_GROUP_get0_seed()
12062 EC_GROUP_get_seed_len()
12063 This is used only for ASN1 purposes (so far).
12064
12065 *Nils Larsch <nla@trustcenter.de>*
12066
12067 * Add 'field_type' member to EC_METHOD, which holds the NID
12068 of the appropriate field type OID. The new function
12069 EC_METHOD_get_field_type() returns this value.
12070
12071 *Nils Larsch <nla@trustcenter.de>*
12072
12073 * Add functions
12074 EC_POINT_point2bn()
12075 EC_POINT_bn2point()
12076 EC_POINT_point2hex()
12077 EC_POINT_hex2point()
12078 providing useful interfaces to EC_POINT_point2oct() and
12079 EC_POINT_oct2point().
12080
12081 *Nils Larsch <nla@trustcenter.de>*
12082
12083 * Change internals of the EC library so that the functions
12084 EC_GROUP_set_generator()
12085 EC_GROUP_get_generator()
12086 EC_GROUP_get_order()
12087 EC_GROUP_get_cofactor()
12088 are implemented directly in crypto/ec/ec_lib.c and not dispatched
12089 to methods, which would lead to unnecessary code duplication when
12090 adding different types of curves.
12091
12092 *Nils Larsch <nla@trustcenter.de> with input by Bodo Moeller*
12093
12094 * Implement compute_wNAF (crypto/ec/ec_mult.c) without BIGNUM
12095 arithmetic, and such that modified wNAFs are generated
12096 (which avoid length expansion in many cases).
12097
12098 *Bodo Moeller*
12099
12100 * Add a function EC_GROUP_check_discriminant() (defined via
12101 EC_METHOD) that verifies that the curve discriminant is non-zero.
12102
12103 Add a function EC_GROUP_check() that makes some sanity tests
12104 on a EC_GROUP, its generator and order. This includes
12105 EC_GROUP_check_discriminant().
12106
12107 *Nils Larsch <nla@trustcenter.de>*
12108
12109 * Add ECDSA in new directory crypto/ecdsa/.
12110
12111 Add applications 'openssl ecparam' and 'openssl ecdsa'
12112 (these are based on 'openssl dsaparam' and 'openssl dsa').
12113
12114 ECDSA support is also included in various other files across the
12115 library. Most notably,
12116 - 'openssl req' now has a '-newkey ecdsa:file' option;
12117 - EVP_PKCS82PKEY (crypto/evp/evp_pkey.c) now can handle ECDSA;
12118 - X509_PUBKEY_get (crypto/asn1/x_pubkey.c) and
12119 d2i_PublicKey (crypto/asn1/d2i_pu.c) have been modified to make
12120 them suitable for ECDSA where domain parameters must be
12121 extracted before the specific public key;
12122 - ECDSA engine support has been added.
12123
12124 *Nils Larsch <nla@trustcenter.de>*
12125
12126 * Include some named elliptic curves, and add OIDs from X9.62,
12127 SECG, and WAP/WTLS. Each curve can be obtained from the new
12128 function
12129 EC_GROUP_new_by_curve_name(),
12130 and the list of available named curves can be obtained with
12131 EC_get_builtin_curves().
12132 Also add a 'curve_name' member to EC_GROUP objects, which can be
12133 accessed via
12134 EC_GROUP_set_curve_name()
12135 EC_GROUP_get_curve_name()
12136
12137 *Nils Larsch <larsch@trustcenter.de, Bodo Moeller*
12138
12139 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
12140 was actually never needed) and in BN_mul(). The removal in BN_mul()
12141 required a small change in bn_mul_part_recursive() and the addition
12142 of the functions bn_cmp_part_words(), bn_sub_part_words() and
12143 bn_add_part_words(), which do the same thing as bn_cmp_words(),
12144 bn_sub_words() and bn_add_words() except they take arrays with
12145 differing sizes.
12146
12147 *Richard Levitte*
12148
257e9d03 12149### Changes between 0.9.7l and 0.9.7m [23 Feb 2007]
5f8e6c50
DMSP
12150
12151 * Cleanse PEM buffers before freeing them since they may contain
12152 sensitive data.
12153
12154 *Benjamin Bennett <ben@psc.edu>*
12155
12156 * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that
12157 a ciphersuite string such as "DEFAULT:RSA" cannot enable
12158 authentication-only ciphersuites.
12159
12160 *Bodo Moeller*
12161
12162 * Since AES128 and AES256 share a single mask bit in the logic of
12163 ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a
12164 kludge to work properly if AES128 is available and AES256 isn't.
12165
12166 *Victor Duchovni*
12167
12168 * Expand security boundary to match 1.1.1 module.
12169
12170 *Steve Henson*
12171
12172 * Remove redundant features: hash file source, editing of test vectors
12173 modify fipsld to use external fips_premain.c signature.
12174
12175 *Steve Henson*
12176
12177 * New perl script mkfipsscr.pl to create shell scripts or batch files to
12178 run algorithm test programs.
12179
12180 *Steve Henson*
12181
12182 * Make algorithm test programs more tolerant of whitespace.
12183
12184 *Steve Henson*
12185
12186 * Have SSL/TLS server implementation tolerate "mismatched" record
12187 protocol version while receiving ClientHello even if the
12188 ClientHello is fragmented. (The server can't insist on the
12189 particular protocol version it has chosen before the ServerHello
12190 message has informed the client about his choice.)
12191
12192 *Bodo Moeller*
12193
12194 * Load error codes if they are not already present instead of using a
12195 static variable. This allows them to be cleanly unloaded and reloaded.
12196
12197 *Steve Henson*
12198
257e9d03 12199### Changes between 0.9.7k and 0.9.7l [28 Sep 2006]
5f8e6c50
DMSP
12200
12201 * Introduce limits to prevent malicious keys being able to
d8dc8538 12202 cause a denial of service. ([CVE-2006-2940])
5f8e6c50
DMSP
12203
12204 *Steve Henson, Bodo Moeller*
12205
12206 * Fix ASN.1 parsing of certain invalid structures that can result
d8dc8538 12207 in a denial of service. ([CVE-2006-2937]) [Steve Henson]
5f8e6c50
DMSP
12208
12209 * Fix buffer overflow in SSL_get_shared_ciphers() function.
d8dc8538 12210 ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team]
5f8e6c50
DMSP
12211
12212 * Fix SSL client code which could crash if connecting to a
d8dc8538 12213 malicious SSLv2 server. ([CVE-2006-4343])
5f8e6c50
DMSP
12214
12215 *Tavis Ormandy and Will Drewry, Google Security Team*
12216
12217 * Change ciphersuite string processing so that an explicit
12218 ciphersuite selects this one ciphersuite (so that "AES256-SHA"
12219 will no longer include "AES128-SHA"), and any other similar
12220 ciphersuite (same bitmap) from *other* protocol versions (so that
12221 "RC4-MD5" will still include both the SSL 2.0 ciphersuite and the
12222 SSL 3.0/TLS 1.0 ciphersuite). This is a backport combining
12223 changes from 0.9.8b and 0.9.8d.
12224
12225 *Bodo Moeller*
12226
257e9d03 12227### Changes between 0.9.7j and 0.9.7k [05 Sep 2006]
5f8e6c50
DMSP
12228
12229 * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher
d8dc8538 12230 ([CVE-2006-4339]) [Ben Laurie and Google Security Team]
5f8e6c50
DMSP
12231
12232 * Change the Unix randomness entropy gathering to use poll() when
12233 possible instead of select(), since the latter has some
12234 undesirable limitations.
12235
12236 *Darryl Miles via Richard Levitte and Bodo Moeller*
12237
12238 * Disable rogue ciphersuites:
12239
257e9d03
RS
12240 - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5")
12241 - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5")
12242 - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5")
5f8e6c50
DMSP
12243
12244 The latter two were purportedly from
12245 draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really
12246 appear there.
12247
12248 Also deactivate the remaining ciphersuites from
12249 draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as
12250 unofficial, and the ID has long expired.
12251
12252 *Bodo Moeller*
12253
12254 * Fix RSA blinding Heisenbug (problems sometimes occurred on
12255 dual-core machines) and other potential thread-safety issues.
12256
12257 *Bodo Moeller*
12258
257e9d03 12259### Changes between 0.9.7i and 0.9.7j [04 May 2006]
5f8e6c50
DMSP
12260
12261 * Adapt fipsld and the build system to link against the validated FIPS
12262 module in FIPS mode.
12263
12264 *Steve Henson*
12265
12266 * Fixes for VC++ 2005 build under Windows.
12267
12268 *Steve Henson*
12269
12270 * Add new Windows build target VC-32-GMAKE for VC++. This uses GNU make
12271 from a Windows bash shell such as MSYS. It is autodetected from the
12272 "config" script when run from a VC++ environment. Modify standard VC++
12273 build to use fipscanister.o from the GNU make build.
12274
12275 *Steve Henson*
12276
257e9d03 12277### Changes between 0.9.7h and 0.9.7i [14 Oct 2005]
5f8e6c50
DMSP
12278
12279 * Wrapped the definition of EVP_MAX_MD_SIZE in a #ifdef OPENSSL_FIPS.
12280 The value now differs depending on if you build for FIPS or not.
12281 BEWARE! A program linked with a shared FIPSed libcrypto can't be
12282 safely run with a non-FIPSed libcrypto, as it may crash because of
12283 the difference induced by this change.
12284
12285 *Andy Polyakov*
12286
257e9d03 12287### Changes between 0.9.7g and 0.9.7h [11 Oct 2005]
5f8e6c50
DMSP
12288
12289 * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING
12290 (part of SSL_OP_ALL). This option used to disable the
12291 countermeasure against man-in-the-middle protocol-version
12292 rollback in the SSL 2.0 server implementation, which is a bad
d8dc8538 12293 idea. ([CVE-2005-2969])
5f8e6c50
DMSP
12294
12295 *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center
12296 for Information Security, National Institute of Advanced Industrial
257e9d03 12297 Science and Technology [AIST, Japan)]*
5f8e6c50
DMSP
12298
12299 * Minimal support for X9.31 signatures and PSS padding modes. This is
12300 mainly for FIPS compliance and not fully integrated at this stage.
12301
12302 *Steve Henson*
12303
12304 * For DSA signing, unless DSA_FLAG_NO_EXP_CONSTTIME is set, perform
12305 the exponentiation using a fixed-length exponent. (Otherwise,
12306 the information leaked through timing could expose the secret key
12307 after many signatures; cf. Bleichenbacher's attack on DSA with
12308 biased k.)
12309
12310 *Bodo Moeller*
12311
12312 * Make a new fixed-window mod_exp implementation the default for
12313 RSA, DSA, and DH private-key operations so that the sequence of
12314 squares and multiplies and the memory access pattern are
12315 independent of the particular secret key. This will mitigate
12316 cache-timing and potential related attacks.
12317
12318 BN_mod_exp_mont_consttime() is the new exponentiation implementation,
12319 and this is automatically used by BN_mod_exp_mont() if the new flag
12320 BN_FLG_EXP_CONSTTIME is set for the exponent. RSA, DSA, and DH
12321 will use this BN flag for private exponents unless the flag
12322 RSA_FLAG_NO_EXP_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME, or
12323 DH_FLAG_NO_EXP_CONSTTIME, respectively, is set.
12324
5f8e6c50
DMSP
12325 *Matthew D Wood (Intel Corp), with some changes by Bodo Moeller*
12326
12327 * Change the client implementation for SSLv23_method() and
12328 SSLv23_client_method() so that is uses the SSL 3.0/TLS 1.0
12329 Client Hello message format if the SSL_OP_NO_SSLv2 option is set.
12330 (Previously, the SSL 2.0 backwards compatible Client Hello
12331 message format would be used even with SSL_OP_NO_SSLv2.)
12332
12333 *Bodo Moeller*
12334
12335 * Add support for smime-type MIME parameter in S/MIME messages which some
12336 clients need.
12337
12338 *Steve Henson*
12339
12340 * New function BN_MONT_CTX_set_locked() to set montgomery parameters in
12341 a threadsafe manner. Modify rsa code to use new function and add calls
12342 to dsa and dh code (which had race conditions before).
12343
12344 *Steve Henson*
12345
12346 * Include the fixed error library code in the C error file definitions
12347 instead of fixing them up at runtime. This keeps the error code
12348 structures constant.
12349
12350 *Steve Henson*
12351
257e9d03 12352### Changes between 0.9.7f and 0.9.7g [11 Apr 2005]
5f8e6c50
DMSP
12353
12354[NB: OpenSSL 0.9.7h and later 0.9.7 patch levels were released after
12355OpenSSL 0.9.8.]
12356
12357 * Fixes for newer kerberos headers. NB: the casts are needed because
12358 the 'length' field is signed on one version and unsigned on another
12359 with no (?) obvious way to tell the difference, without these VC++
12360 complains. Also the "definition" of FAR (blank) is no longer included
12361 nor is the error ENOMEM. KRB5_PRIVATE has to be set to 1 to pick up
12362 some needed definitions.
12363
12364 *Steve Henson*
12365
12366 * Undo Cygwin change.
12367
12368 *Ulf Möller*
12369
12370 * Added support for proxy certificates according to RFC 3820.
12371 Because they may be a security thread to unaware applications,
12372 they must be explicitly allowed in run-time. See
12373 docs/HOWTO/proxy_certificates.txt for further information.
12374
12375 *Richard Levitte*
12376
257e9d03 12377### Changes between 0.9.7e and 0.9.7f [22 Mar 2005]
5f8e6c50
DMSP
12378
12379 * Use (SSL_RANDOM_VALUE - 4) bytes of pseudo random data when generating
12380 server and client random values. Previously
12381 (SSL_RANDOM_VALUE - sizeof(time_t)) would be used which would result in
12382 less random data when sizeof(time_t) > 4 (some 64 bit platforms).
12383
12384 This change has negligible security impact because:
12385
12386 1. Server and client random values still have 24 bytes of pseudo random
12387 data.
12388
12389 2. Server and client random values are sent in the clear in the initial
12390 handshake.
12391
12392 3. The master secret is derived using the premaster secret (48 bytes in
12393 size for static RSA ciphersuites) as well as client server and random
12394 values.
12395
12396 The OpenSSL team would like to thank the UK NISCC for bringing this issue
12397 to our attention.
12398
12399 *Stephen Henson, reported by UK NISCC*
12400
12401 * Use Windows randomness collection on Cygwin.
12402
12403 *Ulf Möller*
12404
12405 * Fix hang in EGD/PRNGD query when communication socket is closed
12406 prematurely by EGD/PRNGD.
12407
12408 *Darren Tucker <dtucker@zip.com.au> via Lutz Jänicke, resolves #1014*
12409
12410 * Prompt for pass phrases when appropriate for PKCS12 input format.
12411
12412 *Steve Henson*
12413
12414 * Back-port of selected performance improvements from development
12415 branch, as well as improved support for PowerPC platforms.
12416
12417 *Andy Polyakov*
12418
12419 * Add lots of checks for memory allocation failure, error codes to indicate
12420 failure and freeing up memory if a failure occurs.
12421
12422 *Nauticus Networks SSL Team <openssl@nauticusnet.com>, Steve Henson*
12423
12424 * Add new -passin argument to dgst.
12425
12426 *Steve Henson*
12427
12428 * Perform some character comparisons of different types in X509_NAME_cmp:
12429 this is needed for some certificates that re-encode DNs into UTF8Strings
12430 (in violation of RFC3280) and can't or won't issue name rollover
12431 certificates.
12432
12433 *Steve Henson*
12434
12435 * Make an explicit check during certificate validation to see that
12436 the CA setting in each certificate on the chain is correct. As a
12437 side effect always do the following basic checks on extensions,
12438 not just when there's an associated purpose to the check:
12439
257e9d03
RS
12440 - if there is an unhandled critical extension (unless the user
12441 has chosen to ignore this fault)
12442 - if the path length has been exceeded (if one is set at all)
12443 - that certain extensions fit the associated purpose (if one has
12444 been given)
5f8e6c50
DMSP
12445
12446 *Richard Levitte*
12447
257e9d03 12448### Changes between 0.9.7d and 0.9.7e [25 Oct 2004]
5f8e6c50
DMSP
12449
12450 * Avoid a race condition when CRLs are checked in a multi threaded
12451 environment. This would happen due to the reordering of the revoked
12452 entries during signature checking and serial number lookup. Now the
12453 encoding is cached and the serial number sort performed under a lock.
12454 Add new STACK function sk_is_sorted().
12455
12456 *Steve Henson*
12457
12458 * Add Delta CRL to the extension code.
12459
12460 *Steve Henson*
12461
12462 * Various fixes to s3_pkt.c so alerts are sent properly.
12463
12464 *David Holmes <d.holmes@f5.com>*
12465
12466 * Reduce the chances of duplicate issuer name and serial numbers (in
12467 violation of RFC3280) using the OpenSSL certificate creation utilities.
12468 This is done by creating a random 64 bit value for the initial serial
12469 number when a serial number file is created or when a self signed
12470 certificate is created using 'openssl req -x509'. The initial serial
12471 number file is created using 'openssl x509 -next_serial' in CA.pl
12472 rather than being initialized to 1.
12473
12474 *Steve Henson*
12475
257e9d03 12476### Changes between 0.9.7c and 0.9.7d [17 Mar 2004]
5f8e6c50
DMSP
12477
12478 * Fix null-pointer assignment in do_change_cipher_spec() revealed
d8dc8538 12479 by using the Codenomicon TLS Test Tool ([CVE-2004-0079])
5f8e6c50
DMSP
12480
12481 *Joe Orton, Steve Henson*
12482
12483 * Fix flaw in SSL/TLS handshaking when using Kerberos ciphersuites
d8dc8538 12484 ([CVE-2004-0112])
5f8e6c50
DMSP
12485
12486 *Joe Orton, Steve Henson*
12487
12488 * Make it possible to have multiple active certificates with the same
12489 subject in the CA index file. This is done only if the keyword
12490 'unique_subject' is set to 'no' in the main CA section (default
12491 if 'CA_default') of the configuration file. The value is saved
12492 with the database itself in a separate index attribute file,
12493 named like the index file with '.attr' appended to the name.
12494
12495 *Richard Levitte*
12496
12497 * X509 verify fixes. Disable broken certificate workarounds when
12498 X509_V_FLAGS_X509_STRICT is set. Check CRL issuer has cRLSign set if
12499 keyUsage extension present. Don't accept CRLs with unhandled critical
12500 extensions: since verify currently doesn't process CRL extensions this
12501 rejects a CRL with *any* critical extensions. Add new verify error codes
12502 for these cases.
12503
12504 *Steve Henson*
12505
12506 * When creating an OCSP nonce use an OCTET STRING inside the extnValue.
12507 A clarification of RFC2560 will require the use of OCTET STRINGs and
12508 some implementations cannot handle the current raw format. Since OpenSSL
12509 copies and compares OCSP nonces as opaque blobs without any attempt at
12510 parsing them this should not create any compatibility issues.
12511
12512 *Steve Henson*
12513
12514 * New md flag EVP_MD_CTX_FLAG_REUSE this allows md_data to be reused when
12515 calling EVP_MD_CTX_copy_ex() to avoid calling OPENSSL_malloc(). Without
12516 this HMAC (and other) operations are several times slower than OpenSSL
12517 < 0.9.7.
12518
12519 *Steve Henson*
12520
12521 * Print out GeneralizedTime and UTCTime in ASN1_STRING_print_ex().
12522
12523 *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>*
12524
12525 * Use the correct content when signing type "other".
12526
12527 *Steve Henson*
12528
257e9d03 12529### Changes between 0.9.7b and 0.9.7c [30 Sep 2003]
5f8e6c50
DMSP
12530
12531 * Fix various bugs revealed by running the NISCC test suite:
12532
12533 Stop out of bounds reads in the ASN1 code when presented with
12534 invalid tags (CVE-2003-0543 and CVE-2003-0544).
12535
d8dc8538 12536 Free up ASN1_TYPE correctly if ANY type is invalid ([CVE-2003-0545]).
5f8e6c50
DMSP
12537
12538 If verify callback ignores invalid public key errors don't try to check
12539 certificate signature with the NULL public key.
12540
5f8e6c50
DMSP
12541 *Steve Henson*
12542
12543 * New -ignore_err option in ocsp application to stop the server
12544 exiting on the first error in a request.
12545
12546 *Steve Henson*
12547
12548 * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate
12549 if the server requested one: as stated in TLS 1.0 and SSL 3.0
12550 specifications.
12551
12552 *Steve Henson*
12553
12554 * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional
12555 extra data after the compression methods not only for TLS 1.0
12556 but also for SSL 3.0 (as required by the specification).
12557
12558 *Bodo Moeller; problem pointed out by Matthias Loepfe*
12559
12560 * Change X509_certificate_type() to mark the key as exported/exportable
12561 when it's 512 *bits* long, not 512 bytes.
12562
12563 *Richard Levitte*
12564
12565 * Change AES_cbc_encrypt() so it outputs exact multiple of
12566 blocks during encryption.
12567
12568 *Richard Levitte*
12569
12570 * Various fixes to base64 BIO and non blocking I/O. On write
12571 flushes were not handled properly if the BIO retried. On read
12572 data was not being buffered properly and had various logic bugs.
12573 This also affects blocking I/O when the data being decoded is a
12574 certain size.
12575
12576 *Steve Henson*
12577
12578 * Various S/MIME bugfixes and compatibility changes:
12579 output correct application/pkcs7 MIME type if
12580 PKCS7_NOOLDMIMETYPE is set. Tolerate some broken signatures.
12581 Output CR+LF for EOL if PKCS7_CRLFEOL is set (this makes opening
12582 of files as .eml work). Correctly handle very long lines in MIME
12583 parser.
12584
12585 *Steve Henson*
12586
257e9d03 12587### Changes between 0.9.7a and 0.9.7b [10 Apr 2003]
5f8e6c50
DMSP
12588
12589 * Countermeasure against the Klima-Pokorny-Rosa extension of
12590 Bleichbacher's attack on PKCS #1 v1.5 padding: treat
12591 a protocol version number mismatch like a decryption error
12592 in ssl3_get_client_key_exchange (ssl/s3_srvr.c).
12593
12594 *Bodo Moeller*
12595
12596 * Turn on RSA blinding by default in the default implementation
12597 to avoid a timing attack. Applications that don't want it can call
12598 RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING.
12599 They would be ill-advised to do so in most cases.
12600
12601 *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller*
12602
12603 * Change RSA blinding code so that it works when the PRNG is not
12604 seeded (in this case, the secret RSA exponent is abused as
12605 an unpredictable seed -- if it is not unpredictable, there
12606 is no point in blinding anyway). Make RSA blinding thread-safe
12607 by remembering the creator's thread ID in rsa->blinding and
12608 having all other threads use local one-time blinding factors
12609 (this requires more computation than sharing rsa->blinding, but
12610 avoids excessive locking; and if an RSA object is not shared
12611 between threads, blinding will still be very fast).
12612
12613 *Bodo Moeller*
12614
12615 * Fixed a typo bug that would cause ENGINE_set_default() to set an
12616 ENGINE as defaults for all supported algorithms irrespective of
12617 the 'flags' parameter. 'flags' is now honoured, so applications
12618 should make sure they are passing it correctly.
12619
12620 *Geoff Thorpe*
12621
12622 * Target "mingw" now allows native Windows code to be generated in
12623 the Cygwin environment as well as with the MinGW compiler.
12624
12625 *Ulf Moeller*
12626
257e9d03 12627### Changes between 0.9.7 and 0.9.7a [19 Feb 2003]
5f8e6c50
DMSP
12628
12629 * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked
12630 via timing by performing a MAC computation even if incorrect
12631 block cipher padding has been found. This is a countermeasure
12632 against active attacks where the attacker has to distinguish
d8dc8538 12633 between bad padding and a MAC verification error. ([CVE-2003-0078])
5f8e6c50
DMSP
12634
12635 *Bodo Moeller; problem pointed out by Brice Canvel (EPFL),
12636 Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and
12637 Martin Vuagnoux (EPFL, Ilion)*
12638
12639 * Make the no-err option work as intended. The intention with no-err
12640 is not to have the whole error stack handling routines removed from
12641 libcrypto, it's only intended to remove all the function name and
12642 reason texts, thereby removing some of the footprint that may not
12643 be interesting if those errors aren't displayed anyway.
12644
12645 NOTE: it's still possible for any application or module to have its
12646 own set of error texts inserted. The routines are there, just not
12647 used by default when no-err is given.
12648
12649 *Richard Levitte*
12650
12651 * Add support for FreeBSD on IA64.
12652
12653 *dirk.meyer@dinoex.sub.org via Richard Levitte, resolves #454*
12654
12655 * Adjust DES_cbc_cksum() so it returns the same value as the MIT
12656 Kerberos function mit_des_cbc_cksum(). Before this change,
12657 the value returned by DES_cbc_cksum() was like the one from
12658 mit_des_cbc_cksum(), except the bytes were swapped.
12659
12660 *Kevin Greaney <Kevin.Greaney@hp.com> and Richard Levitte*
12661
12662 * Allow an application to disable the automatic SSL chain building.
12663 Before this a rather primitive chain build was always performed in
12664 ssl3_output_cert_chain(): an application had no way to send the
12665 correct chain if the automatic operation produced an incorrect result.
12666
12667 Now the chain builder is disabled if either:
12668
12669 1. Extra certificates are added via SSL_CTX_add_extra_chain_cert().
12670
12671 2. The mode flag SSL_MODE_NO_AUTO_CHAIN is set.
12672
12673 The reasoning behind this is that an application would not want the
12674 auto chain building to take place if extra chain certificates are
12675 present and it might also want a means of sending no additional
12676 certificates (for example the chain has two certificates and the
12677 root is omitted).
12678
12679 *Steve Henson*
12680
12681 * Add the possibility to build without the ENGINE framework.
12682
12683 *Steven Reddie <smr@essemer.com.au> via Richard Levitte*
12684
12685 * Under Win32 gmtime() can return NULL: check return value in
12686 OPENSSL_gmtime(). Add error code for case where gmtime() fails.
12687
12688 *Steve Henson*
12689
12690 * DSA routines: under certain error conditions uninitialized BN objects
12691 could be freed. Solution: make sure initialization is performed early
12692 enough. (Reported and fix supplied by Ivan D Nestlerode <nestler@MIT.EDU>,
12693 Nils Larsch <nla@trustcenter.de> via PR#459)
12694
12695 *Lutz Jaenicke*
12696
12697 * Another fix for SSLv2 session ID handling: the session ID was incorrectly
12698 checked on reconnect on the client side, therefore session resumption
12699 could still fail with a "ssl session id is different" error. This
12700 behaviour is masked when SSL_OP_ALL is used due to
12701 SSL_OP_MICROSOFT_SESS_ID_BUG being set.
12702 Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as
12703 followup to PR #377.
12704
12705 *Lutz Jaenicke*
12706
12707 * IA-32 assembler support enhancements: unified ELF targets, support
12708 for SCO/Caldera platforms, fix for Cygwin shared build.
12709
12710 *Andy Polyakov*
12711
12712 * Add support for FreeBSD on sparc64. As a consequence, support for
12713 FreeBSD on non-x86 processors is separate from x86 processors on
12714 the config script, much like the NetBSD support.
12715
12716 *Richard Levitte & Kris Kennaway <kris@obsecurity.org>*
12717
257e9d03 12718### Changes between 0.9.6h and 0.9.7 [31 Dec 2002]
5f8e6c50
DMSP
12719
12720[NB: OpenSSL 0.9.6i and later 0.9.6 patch levels were released after
12721OpenSSL 0.9.7.]
12722
12723 * Fix session ID handling in SSLv2 client code: the SERVER FINISHED
12724 code (06) was taken as the first octet of the session ID and the last
12725 octet was ignored consequently. As a result SSLv2 client side session
12726 caching could not have worked due to the session ID mismatch between
12727 client and server.
12728 Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as
12729 PR #377.
12730
12731 *Lutz Jaenicke*
12732
12733 * Change the declaration of needed Kerberos libraries to use EX_LIBS
12734 instead of the special (and badly supported) LIBKRB5. LIBKRB5 is
12735 removed entirely.
12736
12737 *Richard Levitte*
12738
12739 * The hw_ncipher.c engine requires dynamic locks. Unfortunately, it
12740 seems that in spite of existing for more than a year, many application
12741 author have done nothing to provide the necessary callbacks, which
12742 means that this particular engine will not work properly anywhere.
12743 This is a very unfortunate situation which forces us, in the name
12744 of usability, to give the hw_ncipher.c a static lock, which is part
12745 of libcrypto.
12746 NOTE: This is for the 0.9.7 series ONLY. This hack will never
12747 appear in 0.9.8 or later. We EXPECT application authors to have
12748 dealt properly with this when 0.9.8 is released (unless we actually
12749 make such changes in the libcrypto locking code that changes will
12750 have to be made anyway).
12751
12752 *Richard Levitte*
12753
12754 * In asn1_d2i_read_bio() repeatedly call BIO_read() until all content
12755 octets have been read, EOF or an error occurs. Without this change
12756 some truncated ASN1 structures will not produce an error.
12757
12758 *Steve Henson*
12759
12760 * Disable Heimdal support, since it hasn't been fully implemented.
12761 Still give the possibility to force the use of Heimdal, but with
12762 warnings and a request that patches get sent to openssl-dev.
12763
12764 *Richard Levitte*
12765
12766 * Add the VC-CE target, introduce the WINCE sysname, and add
12767 INSTALL.WCE and appropriate conditionals to make it build.
12768
12769 *Steven Reddie <smr@essemer.com.au> via Richard Levitte*
12770
12771 * Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and
12772 cygssl-x.y.z.dll, where x, y and z are the major, minor and
12773 edit numbers of the version.
12774
12775 *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte*
12776
12777 * Introduce safe string copy and catenation functions
12778 (BUF_strlcpy() and BUF_strlcat()).
12779
12780 *Ben Laurie (CHATS) and Richard Levitte*
12781
12782 * Avoid using fixed-size buffers for one-line DNs.
12783
12784 *Ben Laurie (CHATS)*
12785
12786 * Add BUF_MEM_grow_clean() to avoid information leakage when
12787 resizing buffers containing secrets, and use where appropriate.
12788
12789 *Ben Laurie (CHATS)*
12790
12791 * Avoid using fixed size buffers for configuration file location.
12792
12793 *Ben Laurie (CHATS)*
12794
12795 * Avoid filename truncation for various CA files.
12796
12797 *Ben Laurie (CHATS)*
12798
12799 * Use sizeof in preference to magic numbers.
12800
12801 *Ben Laurie (CHATS)*
12802
12803 * Avoid filename truncation in cert requests.
12804
12805 *Ben Laurie (CHATS)*
12806
12807 * Add assertions to check for (supposedly impossible) buffer
12808 overflows.
12809
12810 *Ben Laurie (CHATS)*
12811
12812 * Don't cache truncated DNS entries in the local cache (this could
12813 potentially lead to a spoofing attack).
12814
12815 *Ben Laurie (CHATS)*
12816
12817 * Fix various buffers to be large enough for hex/decimal
12818 representations in a platform independent manner.
12819
12820 *Ben Laurie (CHATS)*
12821
12822 * Add CRYPTO_realloc_clean() to avoid information leakage when
12823 resizing buffers containing secrets, and use where appropriate.
12824
12825 *Ben Laurie (CHATS)*
12826
12827 * Add BIO_indent() to avoid much slightly worrying code to do
12828 indents.
12829
12830 *Ben Laurie (CHATS)*
12831
12832 * Convert sprintf()/BIO_puts() to BIO_printf().
12833
12834 *Ben Laurie (CHATS)*
12835
12836 * buffer_gets() could terminate with the buffer only half
12837 full. Fixed.
12838
12839 *Ben Laurie (CHATS)*
12840
12841 * Add assertions to prevent user-supplied crypto functions from
12842 overflowing internal buffers by having large block sizes, etc.
12843
12844 *Ben Laurie (CHATS)*
12845
12846 * New OPENSSL_assert() macro (similar to assert(), but enabled
12847 unconditionally).
12848
12849 *Ben Laurie (CHATS)*
12850
12851 * Eliminate unused copy of key in RC4.
12852
12853 *Ben Laurie (CHATS)*
12854
12855 * Eliminate unused and incorrectly sized buffers for IV in pem.h.
12856
12857 *Ben Laurie (CHATS)*
12858
12859 * Fix off-by-one error in EGD path.
12860
12861 *Ben Laurie (CHATS)*
12862
12863 * If RANDFILE path is too long, ignore instead of truncating.
12864
12865 *Ben Laurie (CHATS)*
12866
12867 * Eliminate unused and incorrectly sized X.509 structure
12868 CBCParameter.
12869
12870 *Ben Laurie (CHATS)*
12871
12872 * Eliminate unused and dangerous function knumber().
12873
12874 *Ben Laurie (CHATS)*
12875
12876 * Eliminate unused and dangerous structure, KSSL_ERR.
12877
12878 *Ben Laurie (CHATS)*
12879
12880 * Protect against overlong session ID context length in an encoded
12881 session object. Since these are local, this does not appear to be
12882 exploitable.
12883
12884 *Ben Laurie (CHATS)*
12885
12886 * Change from security patch (see 0.9.6e below) that did not affect
12887 the 0.9.6 release series:
12888
12889 Remote buffer overflow in SSL3 protocol - an attacker could
12890 supply an oversized master key in Kerberos-enabled versions.
d8dc8538 12891 ([CVE-2002-0657])
5f8e6c50
DMSP
12892
12893 *Ben Laurie (CHATS)*
12894
12895 * Change the SSL kerb5 codes to match RFC 2712.
12896
12897 *Richard Levitte*
12898
12899 * Make -nameopt work fully for req and add -reqopt switch.
12900
12901 *Michael Bell <michael.bell@rz.hu-berlin.de>, Steve Henson*
12902
12903 * The "block size" for block ciphers in CFB and OFB mode should be 1.
12904
12905 *Steve Henson, reported by Yngve Nysaeter Pettersen <yngve@opera.com>*
12906
12907 * Make sure tests can be performed even if the corresponding algorithms
12908 have been removed entirely. This was also the last step to make
12909 OpenSSL compilable with DJGPP under all reasonable conditions.
12910
12911 *Richard Levitte, Doug Kaufman <dkaufman@rahul.net>*
12912
12913 * Add cipher selection rules COMPLEMENTOFALL and COMPLEMENTOFDEFAULT
12914 to allow version independent disabling of normally unselected ciphers,
12915 which may be activated as a side-effect of selecting a single cipher.
12916
12917 (E.g., cipher list string "RSA" enables ciphersuites that are left
12918 out of "ALL" because they do not provide symmetric encryption.
12919 "RSA:!COMPLEMEMENTOFALL" avoids these unsafe ciphersuites.)
12920
12921 *Lutz Jaenicke, Bodo Moeller*
12922
12923 * Add appropriate support for separate platform-dependent build
12924 directories. The recommended way to make a platform-dependent
12925 build directory is the following (tested on Linux), maybe with
12926 some local tweaks:
12927
12928 # Place yourself outside of the OpenSSL source tree. In
12929 # this example, the environment variable OPENSSL_SOURCE
12930 # is assumed to contain the absolute OpenSSL source directory.
12931 mkdir -p objtree/"`uname -s`-`uname -r`-`uname -m`"
12932 cd objtree/"`uname -s`-`uname -r`-`uname -m`"
12933 (cd $OPENSSL_SOURCE; find . -type f) | while read F; do
12934 mkdir -p `dirname $F`
12935 ln -s $OPENSSL_SOURCE/$F $F
12936 done
12937
12938 To be absolutely sure not to disturb the source tree, a "make clean"
12939 is a good thing. If it isn't successful, don't worry about it,
12940 it probably means the source directory is very clean.
12941
12942 *Richard Levitte*
12943
12944 * Make sure any ENGINE control commands make local copies of string
12945 pointers passed to them whenever necessary. Otherwise it is possible
12946 the caller may have overwritten (or deallocated) the original string
12947 data when a later ENGINE operation tries to use the stored values.
12948
12949 *Götz Babin-Ebell <babinebell@trustcenter.de>*
12950
12951 * Improve diagnostics in file reading and command-line digests.
12952
12953 *Ben Laurie aided and abetted by Solar Designer <solar@openwall.com>*
12954
12955 * Add AES modes CFB and OFB to the object database. Correct an
12956 error in AES-CFB decryption.
12957
12958 *Richard Levitte*
12959
12960 * Remove most calls to EVP_CIPHER_CTX_cleanup() in evp_enc.c, this
12961 allows existing EVP_CIPHER_CTX structures to be reused after
257e9d03 12962 calling `EVP_*Final()`. This behaviour is used by encryption
5f8e6c50
DMSP
12963 BIOs and some applications. This has the side effect that
12964 applications must explicitly clean up cipher contexts with
12965 EVP_CIPHER_CTX_cleanup() or they will leak memory.
12966
12967 *Steve Henson*
12968
12969 * Check the values of dna and dnb in bn_mul_recursive before calling
12970 bn_mul_comba (a non zero value means the a or b arrays do not contain
12971 n2 elements) and fallback to bn_mul_normal if either is not zero.
12972
12973 *Steve Henson*
12974
12975 * Fix escaping of non-ASCII characters when using the -subj option
12976 of the "openssl req" command line tool. (Robert Joop <joop@fokus.gmd.de>)
12977
12978 *Lutz Jaenicke*
12979
12980 * Make object definitions compliant to LDAP (RFC2256): SN is the short
12981 form for "surname", serialNumber has no short form.
12982 Use "mail" as the short name for "rfc822Mailbox" according to RFC2798;
12983 therefore remove "mail" short name for "internet 7".
12984 The OID for unique identifiers in X509 certificates is
12985 x500UniqueIdentifier, not uniqueIdentifier.
12986 Some more OID additions. (Michael Bell <michael.bell@rz.hu-berlin.de>)
12987
12988 *Lutz Jaenicke*
12989
12990 * Add an "init" command to the ENGINE config module and auto initialize
12991 ENGINEs. Without any "init" command the ENGINE will be initialized
12992 after all ctrl commands have been executed on it. If init=1 the
12993 ENGINE is initialized at that point (ctrls before that point are run
12994 on the uninitialized ENGINE and after on the initialized one). If
12995 init=0 then the ENGINE will not be initialized at all.
12996
12997 *Steve Henson*
12998
12999 * Fix the 'app_verify_callback' interface so that the user-defined
13000 argument is actually passed to the callback: In the
13001 SSL_CTX_set_cert_verify_callback() prototype, the callback
13002 declaration has been changed from
13003 int (*cb)()
13004 into
13005 int (*cb)(X509_STORE_CTX *,void *);
13006 in ssl_verify_cert_chain (ssl/ssl_cert.c), the call
13007 i=s->ctx->app_verify_callback(&ctx)
13008 has been changed into
13009 i=s->ctx->app_verify_callback(&ctx, s->ctx->app_verify_arg).
13010
13011 To update applications using SSL_CTX_set_cert_verify_callback(),
13012 a dummy argument can be added to their callback functions.
13013
13014 *D. K. Smetters <smetters@parc.xerox.com>*
13015
13016 * Added the '4758cca' ENGINE to support IBM 4758 cards.
13017
13018 *Maurice Gittens <maurice@gittens.nl>, touchups by Geoff Thorpe*
13019
13020 * Add and OPENSSL_LOAD_CONF define which will cause
13021 OpenSSL_add_all_algorithms() to load the openssl.cnf config file.
13022 This allows older applications to transparently support certain
13023 OpenSSL features: such as crypto acceleration and dynamic ENGINE loading.
13024 Two new functions OPENSSL_add_all_algorithms_noconf() which will never
13025 load the config file and OPENSSL_add_all_algorithms_conf() which will
13026 always load it have also been added.
13027
13028 *Steve Henson*
13029
13030 * Add the OFB, CFB and CTR (all with 128 bit feedback) to AES.
13031 Adjust NIDs and EVP layer.
13032
13033 *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte*
13034
13035 * Config modules support in openssl utility.
13036
13037 Most commands now load modules from the config file,
13038 though in a few (such as version) this isn't done
13039 because it couldn't be used for anything.
13040
13041 In the case of ca and req the config file used is
13042 the same as the utility itself: that is the -config
13043 command line option can be used to specify an
13044 alternative file.
13045
13046 *Steve Henson*
13047
13048 * Move default behaviour from OPENSSL_config(). If appname is NULL
13049 use "openssl_conf" if filename is NULL use default openssl config file.
13050
13051 *Steve Henson*
13052
13053 * Add an argument to OPENSSL_config() to allow the use of an alternative
13054 config section name. Add a new flag to tolerate a missing config file
13055 and move code to CONF_modules_load_file().
13056
13057 *Steve Henson*
13058
13059 * Support for crypto accelerator cards from Accelerated Encryption
13060 Processing, www.aep.ie. (Use engine 'aep')
13061 The support was copied from 0.9.6c [engine] and adapted/corrected
13062 to work with the new engine framework.
13063
13064 *AEP Inc. and Richard Levitte*
13065
13066 * Support for SureWare crypto accelerator cards from Baltimore
13067 Technologies. (Use engine 'sureware')
13068 The support was copied from 0.9.6c [engine] and adapted
13069 to work with the new engine framework.
13070
13071 *Richard Levitte*
13072
13073 * Have the CHIL engine fork-safe (as defined by nCipher) and actually
13074 make the newer ENGINE framework commands for the CHIL engine work.
13075
13076 *Toomas Kiisk <vix@cyber.ee> and Richard Levitte*
13077
13078 * Make it possible to produce shared libraries on ReliantUNIX.
13079
13080 *Robert Dahlem <Robert.Dahlem@ffm2.siemens.de> via Richard Levitte*
13081
13082 * Add the configuration target debug-linux-ppro.
13083 Make 'openssl rsa' use the general key loading routines
ec2bfb7d 13084 implemented in `apps.c`, and make those routines able to
5f8e6c50
DMSP
13085 handle the key format FORMAT_NETSCAPE and the variant
13086 FORMAT_IISSGC.
13087
13088 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
13089
13090 * Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
13091
13092 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
13093
13094 * Add -keyform to rsautl, and document -engine.
13095
13096 *Richard Levitte, inspired by Toomas Kiisk <vix@cyber.ee>*
13097
13098 * Change BIO_new_file (crypto/bio/bss_file.c) to use new
13099 BIO_R_NO_SUCH_FILE error code rather than the generic
13100 ERR_R_SYS_LIB error code if fopen() fails with ENOENT.
13101
13102 *Ben Laurie*
13103
13104 * Add new functions
13105 ERR_peek_last_error
13106 ERR_peek_last_error_line
13107 ERR_peek_last_error_line_data.
13108 These are similar to
13109 ERR_peek_error
13110 ERR_peek_error_line
13111 ERR_peek_error_line_data,
13112 but report on the latest error recorded rather than the first one
13113 still in the error queue.
13114
13115 *Ben Laurie, Bodo Moeller*
13116
13117 * default_algorithms option in ENGINE config module. This allows things
13118 like:
13119 default_algorithms = ALL
13120 default_algorithms = RSA, DSA, RAND, CIPHERS, DIGESTS
13121
13122 *Steve Henson*
13123
13124 * Preliminary ENGINE config module.
13125
13126 *Steve Henson*
13127
13128 * New experimental application configuration code.
13129
13130 *Steve Henson*
13131
13132 * Change the AES code to follow the same name structure as all other
13133 symmetric ciphers, and behave the same way. Move everything to
13134 the directory crypto/aes, thereby obsoleting crypto/rijndael.
13135
13136 *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte*
13137
13138 * SECURITY: remove unsafe setjmp/signal interaction from ui_openssl.c.
13139
13140 *Ben Laurie and Theo de Raadt*
13141
13142 * Add option to output public keys in req command.
13143
13144 *Massimiliano Pala madwolf@openca.org*
13145
13146 * Use wNAFs in EC_POINTs_mul() for improved efficiency
13147 (up to about 10% better than before for P-192 and P-224).
13148
13149 *Bodo Moeller*
13150
13151 * New functions/macros
13152
13153 SSL_CTX_set_msg_callback(ctx, cb)
13154 SSL_CTX_set_msg_callback_arg(ctx, arg)
13155 SSL_set_msg_callback(ssl, cb)
13156 SSL_set_msg_callback_arg(ssl, arg)
13157
13158 to request calling a callback function
13159
13160 void cb(int write_p, int version, int content_type,
13161 const void *buf, size_t len, SSL *ssl, void *arg)
13162
13163 whenever a protocol message has been completely received
13164 (write_p == 0) or sent (write_p == 1). Here 'version' is the
13165 protocol version according to which the SSL library interprets
13166 the current protocol message (SSL2_VERSION, SSL3_VERSION, or
13167 TLS1_VERSION). 'content_type' is 0 in the case of SSL 2.0, or
13168 the content type as defined in the SSL 3.0/TLS 1.0 protocol
13169 specification (change_cipher_spec(20), alert(21), handshake(22)).
13170 'buf' and 'len' point to the actual message, 'ssl' to the
13171 SSL object, and 'arg' is the application-defined value set by
13172 SSL[_CTX]_set_msg_callback_arg().
13173
13174 'openssl s_client' and 'openssl s_server' have new '-msg' options
13175 to enable a callback that displays all protocol messages.
13176
13177 *Bodo Moeller*
13178
13179 * Change the shared library support so shared libraries are built as
13180 soon as the corresponding static library is finished, and thereby get
13181 openssl and the test programs linked against the shared library.
13182 This still only happens when the keyword "shard" has been given to
13183 the configuration scripts.
13184
13185 NOTE: shared library support is still an experimental thing, and
13186 backward binary compatibility is still not guaranteed.
13187
13188 *"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> and Richard Levitte*
13189
13190 * Add support for Subject Information Access extension.
13191
13192 *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>*
13193
13194 * Make BUF_MEM_grow() behaviour more consistent: Initialise to zero
13195 additional bytes when new memory had to be allocated, not just
13196 when reusing an existing buffer.
13197
13198 *Bodo Moeller*
13199
13200 * New command line and configuration option 'utf8' for the req command.
13201 This allows field values to be specified as UTF8 strings.
13202
13203 *Steve Henson*
13204
13205 * Add -multi and -mr options to "openssl speed" - giving multiple parallel
13206 runs for the former and machine-readable output for the latter.
13207
13208 *Ben Laurie*
13209
13210 * Add '-noemailDN' option to 'openssl ca'. This prevents inclusion
13211 of the e-mail address in the DN (i.e., it will go into a certificate
13212 extension only). The new configuration file option 'email_in_dn = no'
13213 has the same effect.
13214
13215 *Massimiliano Pala madwolf@openca.org*
13216
257e9d03
RS
13217 * Change all functions with names starting with `des_` to be starting
13218 with `DES_` instead. Add wrappers that are compatible with libdes,
13219 but are named `_ossl_old_des_*`. Finally, add macros that map the
13220 `des_*` symbols to the corresponding `_ossl_old_des_*` if libdes
5f8e6c50 13221 compatibility is desired. If OpenSSL 0.9.6c compatibility is
257e9d03 13222 desired, the `des_*` symbols will be mapped to `DES_*`, with one
5f8e6c50
DMSP
13223 exception.
13224
13225 Since we provide two compatibility mappings, the user needs to
13226 define the macro OPENSSL_DES_LIBDES_COMPATIBILITY if libdes
13227 compatibility is desired. The default (i.e., when that macro
13228 isn't defined) is OpenSSL 0.9.6c compatibility.
13229
13230 There are also macros that enable and disable the support of old
13231 des functions altogether. Those are OPENSSL_ENABLE_OLD_DES_SUPPORT
13232 and OPENSSL_DISABLE_OLD_DES_SUPPORT. If none or both of those
13233 are defined, the default will apply: to support the old des routines.
13234
13235 In either case, one must include openssl/des.h to get the correct
13236 definitions. Do not try to just include openssl/des_old.h, that
13237 won't work.
13238
13239 NOTE: This is a major break of an old API into a new one. Software
257e9d03 13240 authors are encouraged to switch to the `DES_` style functions. Some
5f8e6c50
DMSP
13241 time in the future, des_old.h and the libdes compatibility functions
13242 will be disable (i.e. OPENSSL_DISABLE_OLD_DES_SUPPORT will be the
13243 default), and then completely removed.
13244
13245 *Richard Levitte*
13246
13247 * Test for certificates which contain unsupported critical extensions.
13248 If such a certificate is found during a verify operation it is
13249 rejected by default: this behaviour can be overridden by either
13250 handling the new error X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION or
13251 by setting the verify flag X509_V_FLAG_IGNORE_CRITICAL. A new function
13252 X509_supported_extension() has also been added which returns 1 if a
13253 particular extension is supported.
13254
13255 *Steve Henson*
13256
13257 * Modify the behaviour of EVP cipher functions in similar way to digests
13258 to retain compatibility with existing code.
13259
13260 *Steve Henson*
13261
13262 * Modify the behaviour of EVP_DigestInit() and EVP_DigestFinal() to retain
13263 compatibility with existing code. In particular the 'ctx' parameter does
13264 not have to be to be initialized before the call to EVP_DigestInit() and
13265 it is tidied up after a call to EVP_DigestFinal(). New function
13266 EVP_DigestFinal_ex() which does not tidy up the ctx. Similarly function
13267 EVP_MD_CTX_copy() changed to not require the destination to be
13268 initialized valid and new function EVP_MD_CTX_copy_ex() added which
13269 requires the destination to be valid.
13270
13271 Modify all the OpenSSL digest calls to use EVP_DigestInit_ex(),
13272 EVP_DigestFinal_ex() and EVP_MD_CTX_copy_ex().
13273
13274 *Steve Henson*
13275
13276 * Change ssl3_get_message (ssl/s3_both.c) and the functions using it
13277 so that complete 'Handshake' protocol structures are kept in memory
13278 instead of overwriting 'msg_type' and 'length' with 'body' data.
13279
13280 *Bodo Moeller*
13281
13282 * Add an implementation of SSL_add_dir_cert_subjects_to_stack for Win32.
13283
13284 *Massimo Santin via Richard Levitte*
13285
13286 * Major restructuring to the underlying ENGINE code. This includes
13287 reduction of linker bloat, separation of pure "ENGINE" manipulation
13288 (initialisation, etc) from functionality dealing with implementations
13289 of specific crypto interfaces. This change also introduces integrated
13290 support for symmetric ciphers and digest implementations - so ENGINEs
13291 can now accelerate these by providing EVP_CIPHER and EVP_MD
036cbb6b
DDO
13292 implementations of their own. This is detailed in
13293 [crypto/engine/README.md](crypto/engine/README.md)
5f8e6c50
DMSP
13294 as it couldn't be adequately described here. However, there are a few
13295 API changes worth noting - some RSA, DSA, DH, and RAND functions that
13296 were changed in the original introduction of ENGINE code have now
13297 reverted back - the hooking from this code to ENGINE is now a good
13298 deal more passive and at run-time, operations deal directly with
13299 RSA_METHODs, DSA_METHODs (etc) as they did before, rather than
13300 dereferencing through an ENGINE pointer any more. Also, the ENGINE
257e9d03 13301 functions dealing with `BN_MOD_EXP[_CRT]` handlers have been removed -
5f8e6c50
DMSP
13302 they were not being used by the framework as there is no concept of a
13303 BIGNUM_METHOD and they could not be generalised to the new
13304 'ENGINE_TABLE' mechanism that underlies the new code. Similarly,
13305 ENGINE_cpy() has been removed as it cannot be consistently defined in
13306 the new code.
13307
13308 *Geoff Thorpe*
13309
13310 * Change ASN1_GENERALIZEDTIME_check() to allow fractional seconds.
13311
13312 *Steve Henson*
13313
13314 * Change mkdef.pl to sort symbols that get the same entry number,
257e9d03 13315 and make sure the automatically generated functions `ERR_load_*`
5f8e6c50
DMSP
13316 become part of libeay.num as well.
13317
13318 *Richard Levitte*
13319
13320 * New function SSL_renegotiate_pending(). This returns true once
13321 renegotiation has been requested (either SSL_renegotiate() call
13322 or HelloRequest/ClientHello received from the peer) and becomes
13323 false once a handshake has been completed.
13324 (For servers, SSL_renegotiate() followed by SSL_do_handshake()
13325 sends a HelloRequest, but does not ensure that a handshake takes
13326 place. SSL_renegotiate_pending() is useful for checking if the
13327 client has followed the request.)
13328
13329 *Bodo Moeller*
13330
13331 * New SSL option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION.
13332 By default, clients may request session resumption even during
13333 renegotiation (if session ID contexts permit); with this option,
13334 session resumption is possible only in the first handshake.
13335
13336 SSL_OP_ALL is now 0x00000FFFL instead of 0x000FFFFFL. This makes
13337 more bits available for options that should not be part of
13338 SSL_OP_ALL (such as SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION).
13339
13340 *Bodo Moeller*
13341
13342 * Add some demos for certificate and certificate request creation.
13343
13344 *Steve Henson*
13345
13346 * Make maximum certificate chain size accepted from the peer application
257e9d03 13347 settable (`SSL*_get/set_max_cert_list()`), as proposed by
5f8e6c50
DMSP
13348 "Douglas E. Engert" <deengert@anl.gov>.
13349
13350 *Lutz Jaenicke*
13351
13352 * Add support for shared libraries for Unixware-7
13353 (Boyd Lynn Gerber <gerberb@zenez.com>).
13354
13355 *Lutz Jaenicke*
13356
13357 * Add a "destroy" handler to ENGINEs that allows structural cleanup to
13358 be done prior to destruction. Use this to unload error strings from
13359 ENGINEs that load their own error strings. NB: This adds two new API
13360 functions to "get" and "set" this destroy handler in an ENGINE.
13361
13362 *Geoff Thorpe*
13363
13364 * Alter all existing ENGINE implementations (except "openssl" and
13365 "openbsd") to dynamically instantiate their own error strings. This
13366 makes them more flexible to be built both as statically-linked ENGINEs
13367 and self-contained shared-libraries loadable via the "dynamic" ENGINE.
13368 Also, add stub code to each that makes building them as self-contained
036cbb6b 13369 shared-libraries easier (see [README-Engine.md](README-Engine.md)).
5f8e6c50
DMSP
13370
13371 *Geoff Thorpe*
13372
13373 * Add a "dynamic" ENGINE that provides a mechanism for binding ENGINE
13374 implementations into applications that are completely implemented in
13375 self-contained shared-libraries. The "dynamic" ENGINE exposes control
13376 commands that can be used to configure what shared-library to load and
13377 to control aspects of the way it is handled. Also, made an update to
036cbb6b
DDO
13378 the [README-Engine.md](README-Engine.md) file
13379 that brings its information up-to-date and
5f8e6c50
DMSP
13380 provides some information and instructions on the "dynamic" ENGINE
13381 (ie. how to use it, how to build "dynamic"-loadable ENGINEs, etc).
13382
13383 *Geoff Thorpe*
13384
13385 * Make it possible to unload ranges of ERR strings with a new
13386 "ERR_unload_strings" function.
13387
13388 *Geoff Thorpe*
13389
13390 * Add a copy() function to EVP_MD.
13391
13392 *Ben Laurie*
13393
13394 * Make EVP_MD routines take a context pointer instead of just the
13395 md_data void pointer.
13396
13397 *Ben Laurie*
13398
13399 * Add flags to EVP_MD and EVP_MD_CTX. EVP_MD_FLAG_ONESHOT indicates
13400 that the digest can only process a single chunk of data
13401 (typically because it is provided by a piece of
13402 hardware). EVP_MD_CTX_FLAG_ONESHOT indicates that the application
13403 is only going to provide a single chunk of data, and hence the
13404 framework needn't accumulate the data for oneshot drivers.
13405
13406 *Ben Laurie*
13407
13408 * As with "ERR", make it possible to replace the underlying "ex_data"
13409 functions. This change also alters the storage and management of global
13410 ex_data state - it's now all inside ex_data.c and all "class" code (eg.
13411 RSA, BIO, SSL_CTX, etc) no longer stores its own STACKS and per-class
13412 index counters. The API functions that use this state have been changed
13413 to take a "class_index" rather than pointers to the class's local STACK
13414 and counter, and there is now an API function to dynamically create new
13415 classes. This centralisation allows us to (a) plug a lot of the
13416 thread-safety problems that existed, and (b) makes it possible to clean
13417 up all allocated state using "CRYPTO_cleanup_all_ex_data()". W.r.t. (b)
13418 such data would previously have always leaked in application code and
13419 workarounds were in place to make the memory debugging turn a blind eye
13420 to it. Application code that doesn't use this new function will still
13421 leak as before, but their memory debugging output will announce it now
13422 rather than letting it slide.
13423
13424 Besides the addition of CRYPTO_cleanup_all_ex_data(), another API change
13425 induced by the "ex_data" overhaul is that X509_STORE_CTX_init() now
13426 has a return value to indicate success or failure.
13427
13428 *Geoff Thorpe*
13429
13430 * Make it possible to replace the underlying "ERR" functions such that the
13431 global state (2 LHASH tables and 2 locks) is only used by the "default"
13432 implementation. This change also adds two functions to "get" and "set"
13433 the implementation prior to it being automatically set the first time
13434 any other ERR function takes place. Ie. an application can call "get",
13435 pass the return value to a module it has just loaded, and that module
13436 can call its own "set" function using that value. This means the
13437 module's "ERR" operations will use (and modify) the error state in the
13438 application and not in its own statically linked copy of OpenSSL code.
13439
13440 *Geoff Thorpe*
13441
257e9d03 13442 * Give DH, DSA, and RSA types their own `*_up_ref()` function to increment
5f8e6c50
DMSP
13443 reference counts. This performs normal REF_PRINT/REF_CHECK macros on
13444 the operation, and provides a more encapsulated way for external code
13445 (crypto/evp/ and ssl/) to do this. Also changed the evp and ssl code
13446 to use these functions rather than manually incrementing the counts.
13447
13448 Also rename "DSO_up()" function to more descriptive "DSO_up_ref()".
13449
13450 *Geoff Thorpe*
13451
13452 * Add EVP test program.
13453
13454 *Ben Laurie*
13455
13456 * Add symmetric cipher support to ENGINE. Expect the API to change!
13457
13458 *Ben Laurie*
13459
13460 * New CRL functions: X509_CRL_set_version(), X509_CRL_set_issuer_name()
13461 X509_CRL_set_lastUpdate(), X509_CRL_set_nextUpdate(), X509_CRL_sort(),
13462 X509_REVOKED_set_serialNumber(), and X509_REVOKED_set_revocationDate().
13463 These allow a CRL to be built without having to access X509_CRL fields
13464 directly. Modify 'ca' application to use new functions.
13465
13466 *Steve Henson*
13467
13468 * Move SSL_OP_TLS_ROLLBACK_BUG out of the SSL_OP_ALL list of recommended
13469 bug workarounds. Rollback attack detection is a security feature.
13470 The problem will only arise on OpenSSL servers when TLSv1 is not
13471 available (sslv3_server_method() or SSL_OP_NO_TLSv1).
13472 Software authors not wanting to support TLSv1 will have special reasons
13473 for their choice and can explicitly enable this option.
13474
13475 *Bodo Moeller, Lutz Jaenicke*
13476
13477 * Rationalise EVP so it can be extended: don't include a union of
13478 cipher/digest structures, add init/cleanup functions for EVP_MD_CTX
13479 (similar to those existing for EVP_CIPHER_CTX).
13480 Usage example:
13481
13482 EVP_MD_CTX md;
13483
13484 EVP_MD_CTX_init(&md); /* new function call */
13485 EVP_DigestInit(&md, EVP_sha1());
13486 EVP_DigestUpdate(&md, in, len);
13487 EVP_DigestFinal(&md, out, NULL);
13488 EVP_MD_CTX_cleanup(&md); /* new function call */
13489
5f8e6c50
DMSP
13490 *Ben Laurie*
13491
13492 * Make DES key schedule conform to the usual scheme, as well as
13493 correcting its structure. This means that calls to DES functions
13494 now have to pass a pointer to a des_key_schedule instead of a
13495 plain des_key_schedule (which was actually always a pointer
13496 anyway): E.g.,
13497
13498 des_key_schedule ks;
13499
13500 des_set_key_checked(..., &ks);
13501 des_ncbc_encrypt(..., &ks, ...);
13502
13503 (Note that a later change renames 'des_...' into 'DES_...'.)
13504
13505 *Ben Laurie*
13506
13507 * Initial reduction of linker bloat: the use of some functions, such as
13508 PEM causes large amounts of unused functions to be linked in due to
13509 poor organisation. For example pem_all.c contains every PEM function
13510 which has a knock on effect of linking in large amounts of (unused)
13511 ASN1 code. Grouping together similar functions and splitting unrelated
13512 functions prevents this.
13513
13514 *Steve Henson*
13515
13516 * Cleanup of EVP macros.
13517
13518 *Ben Laurie*
13519
257e9d03
RS
13520 * Change historical references to `{NID,SN,LN}_des_ede` and ede3 to add the
13521 correct `_ecb suffix`.
5f8e6c50
DMSP
13522
13523 *Ben Laurie*
13524
13525 * Add initial OCSP responder support to ocsp application. The
13526 revocation information is handled using the text based index
13527 use by the ca application. The responder can either handle
13528 requests generated internally, supplied in files (for example
13529 via a CGI script) or using an internal minimal server.
13530
13531 *Steve Henson*
13532
13533 * Add configuration choices to get zlib compression for TLS.
13534
13535 *Richard Levitte*
13536
13537 * Changes to Kerberos SSL for RFC 2712 compliance:
257e9d03
RS
13538 1. Implemented real KerberosWrapper, instead of just using
13539 KRB5 AP_REQ message. [Thanks to Simon Wilkinson <sxw@sxw.org.uk>]
13540 2. Implemented optional authenticator field of KerberosWrapper.
5f8e6c50
DMSP
13541
13542 Added openssl-style ASN.1 macros for Kerberos ticket, ap_req,
13543 and authenticator structs; see crypto/krb5/.
13544
13545 Generalized Kerberos calls to support multiple Kerberos libraries.
257e9d03
RS
13546 *Vern Staats <staatsvr@asc.hpc.mil>, Jeffrey Altman <jaltman@columbia.edu>
13547 via Richard Levitte*
5f8e6c50
DMSP
13548
13549 * Cause 'openssl speed' to use fully hard-coded DSA keys as it
13550 already does with RSA. testdsa.h now has 'priv_key/pub_key'
13551 values for each of the key sizes rather than having just
13552 parameters (and 'speed' generating keys each time).
13553
13554 *Geoff Thorpe*
13555
13556 * Speed up EVP routines.
13557 Before:
13558crypt
13559pe 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
13560s-cbc 4408.85k 5560.51k 5778.46k 5862.20k 5825.16k
13561s-cbc 4389.55k 5571.17k 5792.23k 5846.91k 5832.11k
13562s-cbc 4394.32k 5575.92k 5807.44k 5848.37k 5841.30k
13563crypt
13564s-cbc 3482.66k 5069.49k 5496.39k 5614.16k 5639.28k
13565s-cbc 3480.74k 5068.76k 5510.34k 5609.87k 5635.52k
13566s-cbc 3483.72k 5067.62k 5504.60k 5708.01k 5724.80k
13567 After:
13568crypt
13569s-cbc 4660.16k 5650.19k 5807.19k 5827.13k 5783.32k
13570crypt
13571s-cbc 3624.96k 5258.21k 5530.91k 5624.30k 5628.26k
13572
13573 *Ben Laurie*
13574
13575 * Added the OS2-EMX target.
13576
13577 *"Brian Havard" <brianh@kheldar.apana.org.au> and Richard Levitte*
13578
ec2bfb7d 13579 * Rewrite commands to use `NCONF` routines instead of the old `CONF`.
3e3ad3c5 13580 New functions to support `NCONF` routines in extension code.
ec2bfb7d
DDO
13581 New function `CONF_set_nconf()`
13582 to allow functions which take an `NCONF` to also handle the old `LHASH`
13583 structure: this means that the old `CONF` compatible routines can be
13584 retained (in particular w.rt. extensions) without having to duplicate the
13585 code. New function `X509V3_add_ext_nconf_sk()` to add extensions to a stack.
5f8e6c50
DMSP
13586
13587 *Steve Henson*
13588
13589 * Enhance the general user interface with mechanisms for inner control
13590 and with possibilities to have yes/no kind of prompts.
13591
13592 *Richard Levitte*
13593
4d49b685 13594 * Change all calls to low-level digest routines in the library and
5f8e6c50
DMSP
13595 applications to use EVP. Add missing calls to HMAC_cleanup() and
13596 don't assume HMAC_CTX can be copied using memcpy().
13597
13598 *Verdon Walker <VWalker@novell.com>, Steve Henson*
13599
13600 * Add the possibility to control engines through control names but with
13601 arbitrary arguments instead of just a string.
13602 Change the key loaders to take a UI_METHOD instead of a callback
13603 function pointer. NOTE: this breaks binary compatibility with earlier
13604 versions of OpenSSL [engine].
13605 Adapt the nCipher code for these new conditions and add a card insertion
13606 callback.
13607
13608 *Richard Levitte*
13609
13610 * Enhance the general user interface with mechanisms to better support
13611 dialog box interfaces, application-defined prompts, the possibility
13612 to use defaults (for example default passwords from somewhere else)
13613 and interrupts/cancellations.
13614
13615 *Richard Levitte*
13616
13617 * Tidy up PKCS#12 attribute handling. Add support for the CSP name
13618 attribute in PKCS#12 files, add new -CSP option to pkcs12 utility.
13619
13620 *Steve Henson*
13621
13622 * Fix a memory leak in 'sk_dup()' in the case reallocation fails. (Also
13623 tidy up some unnecessarily weird code in 'sk_new()').
13624
13625 *Geoff, reported by Diego Tartara <dtartara@novamens.com>*
13626
13627 * Change the key loading routines for ENGINEs to use the same kind
13628 callback (pem_password_cb) as all other routines that need this
13629 kind of callback.
13630
13631 *Richard Levitte*
13632
13633 * Increase ENTROPY_NEEDED to 32 bytes, as Rijndael can operate with
13634 256 bit (=32 byte) keys. Of course seeding with more entropy bytes
13635 than this minimum value is recommended.
13636
13637 *Lutz Jaenicke*
13638
13639 * New random seeder for OpenVMS, using the system process statistics
13640 that are easily reachable.
13641
13642 *Richard Levitte*
13643
13644 * Windows apparently can't transparently handle global
13645 variables defined in DLLs. Initialisations such as:
13646
13647 const ASN1_ITEM *it = &ASN1_INTEGER_it;
13648
13649 won't compile. This is used by the any applications that need to
13650 declare their own ASN1 modules. This was fixed by adding the option
13651 EXPORT_VAR_AS_FN to all Win32 platforms, although this isn't strictly
13652 needed for static libraries under Win32.
13653
13654 *Steve Henson*
13655
13656 * New functions X509_PURPOSE_set() and X509_TRUST_set() to handle
13657 setting of purpose and trust fields. New X509_STORE trust and
13658 purpose functions and tidy up setting in other SSL functions.
13659
13660 *Steve Henson*
13661
13662 * Add copies of X509_STORE_CTX fields and callbacks to X509_STORE
13663 structure. These are inherited by X509_STORE_CTX when it is
13664 initialised. This allows various defaults to be set in the
13665 X509_STORE structure (such as flags for CRL checking and custom
13666 purpose or trust settings) for functions which only use X509_STORE_CTX
13667 internally such as S/MIME.
13668
13669 Modify X509_STORE_CTX_purpose_inherit() so it only sets purposes and
13670 trust settings if they are not set in X509_STORE. This allows X509_STORE
13671 purposes and trust (in S/MIME for example) to override any set by default.
13672
13673 Add command line options for CRL checking to smime, s_client and s_server
13674 applications.
13675
13676 *Steve Henson*
13677
13678 * Initial CRL based revocation checking. If the CRL checking flag(s)
13679 are set then the CRL is looked up in the X509_STORE structure and
13680 its validity and signature checked, then if the certificate is found
13681 in the CRL the verify fails with a revoked error.
13682
13683 Various new CRL related callbacks added to X509_STORE_CTX structure.
13684
13685 Command line options added to 'verify' application to support this.
13686
13687 This needs some additional work, such as being able to handle multiple
13688 CRLs with different times, extension based lookup (rather than just
13689 by subject name) and ultimately more complete V2 CRL extension
13690 handling.
13691
13692 *Steve Henson*
13693
13694 * Add a general user interface API (crypto/ui/). This is designed
13695 to replace things like des_read_password and friends (backward
13696 compatibility functions using this new API are provided).
13697 The purpose is to remove prompting functions from the DES code
13698 section as well as provide for prompting through dialog boxes in
13699 a window system and the like.
13700
13701 *Richard Levitte*
13702
13703 * Add "ex_data" support to ENGINE so implementations can add state at a
13704 per-structure level rather than having to store it globally.
13705
13706 *Geoff*
13707
13708 * Make it possible for ENGINE structures to be copied when retrieved by
13709 ENGINE_by_id() if the ENGINE specifies a new flag: ENGINE_FLAGS_BY_ID_COPY.
13710 This causes the "original" ENGINE structure to act like a template,
13711 analogous to the RSA vs. RSA_METHOD type of separation. Because of this
13712 operational state can be localised to each ENGINE structure, despite the
13713 fact they all share the same "methods". New ENGINE structures returned in
13714 this case have no functional references and the return value is the single
13715 structural reference. This matches the single structural reference returned
13716 by ENGINE_by_id() normally, when it is incremented on the pre-existing
13717 ENGINE structure.
13718
13719 *Geoff*
13720
13721 * Fix ASN1 decoder when decoding type ANY and V_ASN1_OTHER: since this
13722 needs to match any other type at all we need to manually clear the
13723 tag cache.
13724
13725 *Steve Henson*
13726
13727 * Changes to the "openssl engine" utility to include;
13728 - verbosity levels ('-v', '-vv', and '-vvv') that provide information
13729 about an ENGINE's available control commands.
13730 - executing control commands from command line arguments using the
13731 '-pre' and '-post' switches. '-post' is only used if '-t' is
13732 specified and the ENGINE is successfully initialised. The syntax for
13733 the individual commands are colon-separated, for example;
13734 openssl engine chil -pre FORK_CHECK:0 -pre SO_PATH:/lib/test.so
13735
13736 *Geoff*
13737
13738 * New dynamic control command support for ENGINEs. ENGINEs can now
13739 declare their own commands (numbers), names (strings), descriptions,
13740 and input types for run-time discovery by calling applications. A
13741 subset of these commands are implicitly classed as "executable"
13742 depending on their input type, and only these can be invoked through
13743 the new string-based API function ENGINE_ctrl_cmd_string(). (Eg. this
13744 can be based on user input, config files, etc). The distinction is
13745 that "executable" commands cannot return anything other than a boolean
13746 result and can only support numeric or string input, whereas some
13747 discoverable commands may only be for direct use through
13748 ENGINE_ctrl(), eg. supporting the exchange of binary data, function
13749 pointers, or other custom uses. The "executable" commands are to
13750 support parameterisations of ENGINE behaviour that can be
13751 unambiguously defined by ENGINEs and used consistently across any
13752 OpenSSL-based application. Commands have been added to all the
13753 existing hardware-supporting ENGINEs, noticeably "SO_PATH" to allow
13754 control over shared-library paths without source code alterations.
13755
13756 *Geoff*
13757
13758 * Changed all ENGINE implementations to dynamically allocate their
13759 ENGINEs rather than declaring them statically. Apart from this being
13760 necessary with the removal of the ENGINE_FLAGS_MALLOCED distinction,
13761 this also allows the implementations to compile without using the
13762 internal engine_int.h header.
13763
13764 *Geoff*
13765
13766 * Minor adjustment to "rand" code. RAND_get_rand_method() now returns a
13767 'const' value. Any code that should be able to modify a RAND_METHOD
13768 should already have non-const pointers to it (ie. they should only
13769 modify their own ones).
13770
13771 *Geoff*
13772
13773 * Made a variety of little tweaks to the ENGINE code.
13774 - "atalla" and "ubsec" string definitions were moved from header files
13775 to C code. "nuron" string definitions were placed in variables
13776 rather than hard-coded - allowing parameterisation of these values
13777 later on via ctrl() commands.
13778 - Removed unused "#if 0"'d code.
13779 - Fixed engine list iteration code so it uses ENGINE_free() to release
13780 structural references.
13781 - Constified the RAND_METHOD element of ENGINE structures.
13782 - Constified various get/set functions as appropriate and added
13783 missing functions (including a catch-all ENGINE_cpy that duplicates
13784 all ENGINE values onto a new ENGINE except reference counts/state).
13785 - Removed NULL parameter checks in get/set functions. Setting a method
13786 or function to NULL is a way of cancelling out a previously set
13787 value. Passing a NULL ENGINE parameter is just plain stupid anyway
13788 and doesn't justify the extra error symbols and code.
13789 - Deprecate the ENGINE_FLAGS_MALLOCED define and move the area for
13790 flags from engine_int.h to engine.h.
13791 - Changed prototypes for ENGINE handler functions (init(), finish(),
13792 ctrl(), key-load functions, etc) to take an (ENGINE*) parameter.
13793
13794 *Geoff*
13795
13796 * Implement binary inversion algorithm for BN_mod_inverse in addition
13797 to the algorithm using long division. The binary algorithm can be
13798 used only if the modulus is odd. On 32-bit systems, it is faster
13799 only for relatively small moduli (roughly 20-30% for 128-bit moduli,
13800 roughly 5-15% for 256-bit moduli), so we use it only for moduli
13801 up to 450 bits. In 64-bit environments, the binary algorithm
13802 appears to be advantageous for much longer moduli; here we use it
13803 for moduli up to 2048 bits.
13804
13805 *Bodo Moeller*
13806
13807 * Rewrite CHOICE field setting in ASN1_item_ex_d2i(). The old code
13808 could not support the combine flag in choice fields.
13809
13810 *Steve Henson*
13811
13812 * Add a 'copy_extensions' option to the 'ca' utility. This copies
13813 extensions from a certificate request to the certificate.
13814
13815 *Steve Henson*
13816
13817 * Allow multiple 'certopt' and 'nameopt' options to be separated
13818 by commas. Add 'namopt' and 'certopt' options to the 'ca' config
13819 file: this allows the display of the certificate about to be
13820 signed to be customised, to allow certain fields to be included
13821 or excluded and extension details. The old system didn't display
13822 multicharacter strings properly, omitted fields not in the policy
13823 and couldn't display additional details such as extensions.
13824
13825 *Steve Henson*
13826
13827 * Function EC_POINTs_mul for multiple scalar multiplication
13828 of an arbitrary number of elliptic curve points
13829 \sum scalars[i]*points[i],
13830 optionally including the generator defined for the EC_GROUP:
13831 scalar*generator + \sum scalars[i]*points[i].
13832
13833 EC_POINT_mul is a simple wrapper function for the typical case
13834 that the point list has just one item (besides the optional
13835 generator).
13836
13837 *Bodo Moeller*
13838
13839 * First EC_METHODs for curves over GF(p):
13840
13841 EC_GFp_simple_method() uses the basic BN_mod_mul and BN_mod_sqr
13842 operations and provides various method functions that can also
13843 operate with faster implementations of modular arithmetic.
13844
13845 EC_GFp_mont_method() reuses most functions that are part of
13846 EC_GFp_simple_method, but uses Montgomery arithmetic.
13847
13848 *Bodo Moeller; point addition and point doubling
13849 implementation directly derived from source code provided by
13850 Lenka Fibikova <fibikova@exp-math.uni-essen.de>*
13851
13852 * Framework for elliptic curves (crypto/ec/ec.h, crypto/ec/ec_lcl.h,
13853 crypto/ec/ec_lib.c):
13854
13855 Curves are EC_GROUP objects (with an optional group generator)
13856 based on EC_METHODs that are built into the library.
13857
13858 Points are EC_POINT objects based on EC_GROUP objects.
13859
13860 Most of the framework would be able to handle curves over arbitrary
13861 finite fields, but as there are no obvious types for fields other
13862 than GF(p), some functions are limited to that for now.
13863
13864 *Bodo Moeller*
13865
13866 * Add the -HTTP option to s_server. It is similar to -WWW, but requires
13867 that the file contains a complete HTTP response.
13868
13869 *Richard Levitte*
13870
13871 * Add the ec directory to mkdef.pl and mkfiles.pl. In mkdef.pl
13872 change the def and num file printf format specifier from "%-40sXXX"
13873 to "%-39s XXX". The latter will always guarantee a space after the
13874 field while the former will cause them to run together if the field
13875 is 40 of more characters long.
13876
13877 *Steve Henson*
13878
13879 * Constify the cipher and digest 'method' functions and structures
13880 and modify related functions to take constant EVP_MD and EVP_CIPHER
13881 pointers.
13882
13883 *Steve Henson*
13884
13885 * Hide BN_CTX structure details in bn_lcl.h instead of publishing them
13886 in <openssl/bn.h>. Also further increase BN_CTX_NUM to 32.
13887
13888 *Bodo Moeller*
13889
257e9d03 13890 * Modify `EVP_Digest*()` routines so they now return values. Although the
5f8e6c50
DMSP
13891 internal software routines can never fail additional hardware versions
13892 might.
13893
13894 *Steve Henson*
13895
13896 * Clean up crypto/err/err.h and change some error codes to avoid conflicts:
13897
13898 Previously ERR_R_FATAL was too small and coincided with ERR_LIB_PKCS7
13899 (= ERR_R_PKCS7_LIB); it is now 64 instead of 32.
13900
13901 ASN1 error codes
13902 ERR_R_NESTED_ASN1_ERROR
13903 ...
13904 ERR_R_MISSING_ASN1_EOS
13905 were 4 .. 9, conflicting with
13906 ERR_LIB_RSA (= ERR_R_RSA_LIB)
13907 ...
13908 ERR_LIB_PEM (= ERR_R_PEM_LIB).
13909 They are now 58 .. 63 (i.e., just below ERR_R_FATAL).
13910
13911 Add new error code 'ERR_R_INTERNAL_ERROR'.
13912
13913 *Bodo Moeller*
13914
13915 * Don't overuse locks in crypto/err/err.c: For data retrieval, CRYPTO_r_lock
13916 suffices.
13917
13918 *Bodo Moeller*
13919
13920 * New option '-subj arg' for 'openssl req' and 'openssl ca'. This
13921 sets the subject name for a new request or supersedes the
13922 subject name in a given request. Formats that can be parsed are
13923 'CN=Some Name, OU=myOU, C=IT'
13924 and
13925 'CN=Some Name/OU=myOU/C=IT'.
13926
13927 Add options '-batch' and '-verbose' to 'openssl req'.
13928
13929 *Massimiliano Pala <madwolf@hackmasters.net>*
13930
13931 * Introduce the possibility to access global variables through
13932 functions on platform were that's the best way to handle exporting
13933 global variables in shared libraries. To enable this functionality,
13934 one must configure with "EXPORT_VAR_AS_FN" or defined the C macro
13935 "OPENSSL_EXPORT_VAR_AS_FUNCTION" in crypto/opensslconf.h (the latter
13936 is normally done by Configure or something similar).
13937
13938 To implement a global variable, use the macro OPENSSL_IMPLEMENT_GLOBAL
13939 in the source file (foo.c) like this:
13940
13941 OPENSSL_IMPLEMENT_GLOBAL(int,foo)=1;
13942 OPENSSL_IMPLEMENT_GLOBAL(double,bar);
13943
13944 To declare a global variable, use the macros OPENSSL_DECLARE_GLOBAL
13945 and OPENSSL_GLOBAL_REF in the header file (foo.h) like this:
13946
13947 OPENSSL_DECLARE_GLOBAL(int,foo);
13948 #define foo OPENSSL_GLOBAL_REF(foo)
13949 OPENSSL_DECLARE_GLOBAL(double,bar);
13950 #define bar OPENSSL_GLOBAL_REF(bar)
13951
13952 The #defines are very important, and therefore so is including the
13953 header file everywhere where the defined globals are used.
13954
13955 The macro OPENSSL_EXPORT_VAR_AS_FUNCTION also affects the definition
13956 of ASN.1 items, but that structure is a bit different.
13957
13958 The largest change is in util/mkdef.pl which has been enhanced with
13959 better and easier to understand logic to choose which symbols should
13960 go into the Windows .def files as well as a number of fixes and code
13961 cleanup (among others, algorithm keywords are now sorted
13962 lexicographically to avoid constant rewrites).
13963
13964 *Richard Levitte*
13965
13966 * In BN_div() keep a copy of the sign of 'num' before writing the
13967 result to 'rm' because if rm==num the value will be overwritten
13968 and produce the wrong result if 'num' is negative: this caused
13969 problems with BN_mod() and BN_nnmod().
13970
13971 *Steve Henson*
13972
13973 * Function OCSP_request_verify(). This checks the signature on an
13974 OCSP request and verifies the signer certificate. The signer
13975 certificate is just checked for a generic purpose and OCSP request
13976 trust settings.
13977
13978 *Steve Henson*
13979
13980 * Add OCSP_check_validity() function to check the validity of OCSP
13981 responses. OCSP responses are prepared in real time and may only
13982 be a few seconds old. Simply checking that the current time lies
13983 between thisUpdate and nextUpdate max reject otherwise valid responses
13984 caused by either OCSP responder or client clock inaccuracy. Instead
13985 we allow thisUpdate and nextUpdate to fall within a certain period of
13986 the current time. The age of the response can also optionally be
13987 checked. Two new options -validity_period and -status_age added to
13988 ocsp utility.
13989
13990 *Steve Henson*
13991
13992 * If signature or public key algorithm is unrecognized print out its
13993 OID rather that just UNKNOWN.
13994
13995 *Steve Henson*
13996
13997 * Change OCSP_cert_to_id() to tolerate a NULL subject certificate and
13998 OCSP_cert_id_new() a NULL serialNumber. This allows a partial certificate
13999 ID to be generated from the issuer certificate alone which can then be
14000 passed to OCSP_id_issuer_cmp().
14001
14002 *Steve Henson*
14003
14004 * New compilation option ASN1_ITEM_FUNCTIONS. This causes the new
14005 ASN1 modules to export functions returning ASN1_ITEM pointers
14006 instead of the ASN1_ITEM structures themselves. This adds several
14007 new macros which allow the underlying ASN1 function/structure to
14008 be accessed transparently. As a result code should not use ASN1_ITEM
14009 references directly (such as &X509_it) but instead use the relevant
14010 macros (such as ASN1_ITEM_rptr(X509)). This option is to allow
14011 use of the new ASN1 code on platforms where exporting structures
14012 is problematical (for example in shared libraries) but exporting
14013 functions returning pointers to structures is not.
14014
14015 *Steve Henson*
14016
14017 * Add support for overriding the generation of SSL/TLS session IDs.
14018 These callbacks can be registered either in an SSL_CTX or per SSL.
14019 The purpose of this is to allow applications to control, if they wish,
14020 the arbitrary values chosen for use as session IDs, particularly as it
14021 can be useful for session caching in multiple-server environments. A
14022 command-line switch for testing this (and any client code that wishes
14023 to use such a feature) has been added to "s_server".
14024
14025 *Geoff Thorpe, Lutz Jaenicke*
14026
14027 * Modify mkdef.pl to recognise and parse preprocessor conditionals
1dc1ea18
DDO
14028 of the form `#if defined(...) || defined(...) || ...` and
14029 `#if !defined(...) && !defined(...) && ...`. This also avoids
5f8e6c50
DMSP
14030 the growing number of special cases it was previously handling.
14031
14032 *Richard Levitte*
14033
14034 * Make all configuration macros available for application by making
14035 sure they are available in opensslconf.h, by giving them names starting
257e9d03 14036 with `OPENSSL_` to avoid conflicts with other packages and by making
5f8e6c50
DMSP
14037 sure e_os2.h will cover all platform-specific cases together with
14038 opensslconf.h.
14039 Additionally, it is now possible to define configuration/platform-
14040 specific names (called "system identities"). In the C code, these
257e9d03
RS
14041 are prefixed with `OPENSSL_SYSNAME_`. e_os2.h will create another
14042 macro with the name beginning with `OPENSSL_SYS_`, which is determined
14043 from `OPENSSL_SYSNAME_*` or compiler-specific macros depending on
5f8e6c50
DMSP
14044 what is available.
14045
14046 *Richard Levitte*
14047
14048 * New option -set_serial to 'req' and 'x509' this allows the serial
14049 number to use to be specified on the command line. Previously self
14050 signed certificates were hard coded with serial number 0 and the
14051 CA options of 'x509' had to use a serial number in a file which was
14052 auto incremented.
14053
14054 *Steve Henson*
14055
14056 * New options to 'ca' utility to support V2 CRL entry extensions.
14057 Currently CRL reason, invalidity date and hold instruction are
14058 supported. Add new CRL extensions to V3 code and some new objects.
14059
14060 *Steve Henson*
14061
14062 * New function EVP_CIPHER_CTX_set_padding() this is used to
14063 disable standard block padding (aka PKCS#5 padding) in the EVP
14064 API, which was previously mandatory. This means that the data is
14065 not padded in any way and so the total length much be a multiple
14066 of the block size, otherwise an error occurs.
14067
14068 *Steve Henson*
14069
14070 * Initial (incomplete) OCSP SSL support.
14071
14072 *Steve Henson*
14073
14074 * New function OCSP_parse_url(). This splits up a URL into its host,
14075 port and path components: primarily to parse OCSP URLs. New -url
14076 option to ocsp utility.
14077
14078 *Steve Henson*
14079
14080 * New nonce behavior. The return value of OCSP_check_nonce() now
14081 reflects the various checks performed. Applications can decide
14082 whether to tolerate certain situations such as an absent nonce
14083 in a response when one was present in a request: the ocsp application
14084 just prints out a warning. New function OCSP_add1_basic_nonce()
14085 this is to allow responders to include a nonce in a response even if
14086 the request is nonce-less.
14087
14088 *Steve Henson*
14089
ec2bfb7d 14090 * Disable stdin buffering in `load_cert()` (`apps/apps.c`) so that no certs are
5f8e6c50 14091 skipped when using openssl x509 multiple times on a single input file,
257e9d03 14092 e.g. `(openssl x509 -out cert1; openssl x509 -out cert2) <certs`.
5f8e6c50
DMSP
14093
14094 *Bodo Moeller*
14095
14096 * Make ASN1_UTCTIME_set_string() and ASN1_GENERALIZEDTIME_set_string()
14097 set string type: to handle setting ASN1_TIME structures. Fix ca
14098 utility to correctly initialize revocation date of CRLs.
14099
14100 *Steve Henson*
14101
14102 * New option SSL_OP_CIPHER_SERVER_PREFERENCE allows the server to override
14103 the clients preferred ciphersuites and rather use its own preferences.
14104 Should help to work around M$ SGC (Server Gated Cryptography) bug in
14105 Internet Explorer by ensuring unchanged hash method during stepup.
14106 (Also replaces the broken/deactivated SSL_OP_NON_EXPORT_FIRST option.)
14107
14108 *Lutz Jaenicke*
14109
14110 * Make mkdef.pl recognise all DECLARE_ASN1 macros, change rijndael
14111 to aes and add a new 'exist' option to print out symbols that don't
14112 appear to exist.
14113
14114 *Steve Henson*
14115
14116 * Additional options to ocsp utility to allow flags to be set and
14117 additional certificates supplied.
14118
14119 *Steve Henson*
14120
14121 * Add the option -VAfile to 'openssl ocsp', so the user can give the
14122 OCSP client a number of certificate to only verify the response
14123 signature against.
14124
14125 *Richard Levitte*
14126
14127 * Update Rijndael code to version 3.0 and change EVP AES ciphers to
14128 handle the new API. Currently only ECB, CBC modes supported. Add new
14129 AES OIDs.
14130
14131 Add TLS AES ciphersuites as described in RFC3268, "Advanced
14132 Encryption Standard (AES) Ciphersuites for Transport Layer
14133 Security (TLS)". (In beta versions of OpenSSL 0.9.7, these were
14134 not enabled by default and were not part of the "ALL" ciphersuite
14135 alias because they were not yet official; they could be
14136 explicitly requested by specifying the "AESdraft" ciphersuite
14137 group alias. In the final release of OpenSSL 0.9.7, the group
14138 alias is called "AES" and is part of "ALL".)
14139
14140 *Ben Laurie, Steve Henson, Bodo Moeller*
14141
14142 * New function OCSP_copy_nonce() to copy nonce value (if present) from
14143 request to response.
14144
14145 *Steve Henson*
14146
14147 * Functions for OCSP responders. OCSP_request_onereq_count(),
14148 OCSP_request_onereq_get0(), OCSP_onereq_get0_id() and OCSP_id_get0_info()
14149 extract information from a certificate request. OCSP_response_create()
14150 creates a response and optionally adds a basic response structure.
14151 OCSP_basic_add1_status() adds a complete single response to a basic
14152 response and returns the OCSP_SINGLERESP structure just added (to allow
14153 extensions to be included for example). OCSP_basic_add1_cert() adds a
14154 certificate to a basic response and OCSP_basic_sign() signs a basic
14155 response with various flags. New helper functions ASN1_TIME_check()
14156 (checks validity of ASN1_TIME structure) and ASN1_TIME_to_generalizedtime()
14157 (converts ASN1_TIME to GeneralizedTime).
14158
14159 *Steve Henson*
14160
14161 * Various new functions. EVP_Digest() combines EVP_Digest{Init,Update,Final}()
14162 in a single operation. X509_get0_pubkey_bitstr() extracts the public_key
14163 structure from a certificate. X509_pubkey_digest() digests the public_key
14164 contents: this is used in various key identifiers.
14165
14166 *Steve Henson*
14167
14168 * Make sk_sort() tolerate a NULL argument.
14169
14170 *Steve Henson reported by Massimiliano Pala <madwolf@comune.modena.it>*
14171
14172 * New OCSP verify flag OCSP_TRUSTOTHER. When set the "other" certificates
14173 passed by the function are trusted implicitly. If any of them signed the
14174 response then it is assumed to be valid and is not verified.
14175
14176 *Steve Henson*
14177
14178 * In PKCS7_set_type() initialise content_type in PKCS7_ENC_CONTENT
14179 to data. This was previously part of the PKCS7 ASN1 code. This
14180 was causing problems with OpenSSL created PKCS#12 and PKCS#7 structures.
14181 *Steve Henson, reported by Kenneth R. Robinette
14182 <support@securenetterm.com>*
14183
14184 * Add CRYPTO_push_info() and CRYPTO_pop_info() calls to new ASN1
14185 routines: without these tracing memory leaks is very painful.
14186 Fix leaks in PKCS12 and PKCS7 routines.
14187
14188 *Steve Henson*
14189
14190 * Make X509_time_adj() cope with the new behaviour of ASN1_TIME_new().
14191 Previously it initialised the 'type' argument to V_ASN1_UTCTIME which
14192 effectively meant GeneralizedTime would never be used. Now it
14193 is initialised to -1 but X509_time_adj() now has to check the value
14194 and use ASN1_TIME_set() if the value is not V_ASN1_UTCTIME or
14195 V_ASN1_GENERALIZEDTIME, without this it always uses GeneralizedTime.
14196 *Steve Henson, reported by Kenneth R. Robinette
14197 <support@securenetterm.com>*
14198
14199 * Fixes to BN_to_ASN1_INTEGER when bn is zero. This would previously
14200 result in a zero length in the ASN1_INTEGER structure which was
14201 not consistent with the structure when d2i_ASN1_INTEGER() was used
14202 and would cause ASN1_INTEGER_cmp() to fail. Enhance s2i_ASN1_INTEGER()
14203 to cope with hex and negative integers. Fix bug in i2a_ASN1_INTEGER()
14204 where it did not print out a minus for negative ASN1_INTEGER.
14205
14206 *Steve Henson*
14207
14208 * Add summary printout to ocsp utility. The various functions which
14209 convert status values to strings have been renamed to:
14210 OCSP_response_status_str(), OCSP_cert_status_str() and
14211 OCSP_crl_reason_str() and are no longer static. New options
14212 to verify nonce values and to disable verification. OCSP response
14213 printout format cleaned up.
14214
14215 *Steve Henson*
14216
14217 * Add additional OCSP certificate checks. These are those specified
14218 in RFC2560. This consists of two separate checks: the CA of the
14219 certificate being checked must either be the OCSP signer certificate
14220 or the issuer of the OCSP signer certificate. In the latter case the
14221 OCSP signer certificate must contain the OCSP signing extended key
14222 usage. This check is performed by attempting to match the OCSP
14223 signer or the OCSP signer CA to the issuerNameHash and issuerKeyHash
14224 in the OCSP_CERTID structures of the response.
14225
14226 *Steve Henson*
14227
14228 * Initial OCSP certificate verification added to OCSP_basic_verify()
14229 and related routines. This uses the standard OpenSSL certificate
14230 verify routines to perform initial checks (just CA validity) and
14231 to obtain the certificate chain. Then additional checks will be
14232 performed on the chain. Currently the root CA is checked to see
14233 if it is explicitly trusted for OCSP signing. This is used to set
14234 a root CA as a global signing root: that is any certificate that
14235 chains to that CA is an acceptable OCSP signing certificate.
14236
14237 *Steve Henson*
14238
14239 * New '-extfile ...' option to 'openssl ca' for reading X.509v3
14240 extensions from a separate configuration file.
14241 As when reading extensions from the main configuration file,
14242 the '-extensions ...' option may be used for specifying the
14243 section to use.
14244
14245 *Massimiliano Pala <madwolf@comune.modena.it>*
14246
14247 * New OCSP utility. Allows OCSP requests to be generated or
14248 read. The request can be sent to a responder and the output
44652c16 14249 parsed, outputted or printed in text form. Not complete yet:
5f8e6c50
DMSP
14250 still needs to check the OCSP response validity.
14251
14252 *Steve Henson*
14253
14254 * New subcommands for 'openssl ca':
257e9d03 14255 `openssl ca -status <serial>` prints the status of the cert with
5f8e6c50 14256 the given serial number (according to the index file).
257e9d03 14257 `openssl ca -updatedb` updates the expiry status of certificates
5f8e6c50
DMSP
14258 in the index file.
14259
14260 *Massimiliano Pala <madwolf@comune.modena.it>*
14261
14262 * New '-newreq-nodes' command option to CA.pl. This is like
14263 '-newreq', but calls 'openssl req' with the '-nodes' option
14264 so that the resulting key is not encrypted.
14265
14266 *Damien Miller <djm@mindrot.org>*
14267
14268 * New configuration for the GNU Hurd.
14269
14270 *Jonathan Bartlett <johnnyb@wolfram.com> via Richard Levitte*
14271
14272 * Initial code to implement OCSP basic response verify. This
14273 is currently incomplete. Currently just finds the signer's
14274 certificate and verifies the signature on the response.
14275
14276 *Steve Henson*
14277
14278 * New SSLeay_version code SSLEAY_DIR to determine the compiled-in
14279 value of OPENSSLDIR. This is available via the new '-d' option
14280 to 'openssl version', and is also included in 'openssl version -a'.
14281
14282 *Bodo Moeller*
14283
14284 * Allowing defining memory allocation callbacks that will be given
14285 file name and line number information in additional arguments
257e9d03 14286 (a `const char*` and an int). The basic functionality remains, as
5f8e6c50
DMSP
14287 well as the original possibility to just replace malloc(),
14288 realloc() and free() by functions that do not know about these
14289 additional arguments. To register and find out the current
14290 settings for extended allocation functions, the following
14291 functions are provided:
14292
14293 CRYPTO_set_mem_ex_functions
14294 CRYPTO_set_locked_mem_ex_functions
14295 CRYPTO_get_mem_ex_functions
14296 CRYPTO_get_locked_mem_ex_functions
14297
14298 These work the same way as CRYPTO_set_mem_functions and friends.
257e9d03 14299 `CRYPTO_get_[locked_]mem_functions` now writes 0 where such an
5f8e6c50 14300 extended allocation function is enabled.
257e9d03 14301 Similarly, `CRYPTO_get_[locked_]mem_ex_functions` writes 0 where
5f8e6c50
DMSP
14302 a conventional allocation function is enabled.
14303
14304 *Richard Levitte, Bodo Moeller*
14305
14306 * Finish off removing the remaining LHASH function pointer casts.
14307 There should no longer be any prototype-casting required when using
14308 the LHASH abstraction, and any casts that remain are "bugs". See
14309 the callback types and macros at the head of lhash.h for details
14310 (and "OBJ_cleanup" in crypto/objects/obj_dat.c as an example).
14311
14312 *Geoff Thorpe*
14313
14314 * Add automatic query of EGD sockets in RAND_poll() for the unix variant.
14315 If /dev/[u]random devices are not available or do not return enough
14316 entropy, EGD style sockets (served by EGD or PRNGD) will automatically
14317 be queried.
14318 The locations /var/run/egd-pool, /dev/egd-pool, /etc/egd-pool, and
14319 /etc/entropy will be queried once each in this sequence, querying stops
14320 when enough entropy was collected without querying more sockets.
14321
14322 *Lutz Jaenicke*
14323
14324 * Change the Unix RAND_poll() variant to be able to poll several
14325 random devices, as specified by DEVRANDOM, until a sufficient amount
14326 of data has been collected. We spend at most 10 ms on each file
14327 (select timeout) and read in non-blocking mode. DEVRANDOM now
14328 defaults to the list "/dev/urandom", "/dev/random", "/dev/srandom"
14329 (previously it was just the string "/dev/urandom"), so on typical
14330 platforms the 10 ms delay will never occur.
14331 Also separate out the Unix variant to its own file, rand_unix.c.
14332 For VMS, there's a currently-empty rand_vms.c.
14333
14334 *Richard Levitte*
14335
14336 * Move OCSP client related routines to ocsp_cl.c. These
14337 provide utility functions which an application needing
14338 to issue a request to an OCSP responder and analyse the
14339 response will typically need: as opposed to those which an
14340 OCSP responder itself would need which will be added later.
14341
14342 OCSP_request_sign() signs an OCSP request with an API similar
14343 to PKCS7_sign(). OCSP_response_status() returns status of OCSP
14344 response. OCSP_response_get1_basic() extracts basic response
14345 from response. OCSP_resp_find_status(): finds and extracts status
14346 information from an OCSP_CERTID structure (which will be created
14347 when the request structure is built). These are built from lower
14348 level functions which work on OCSP_SINGLERESP structures but
14349 won't normally be used unless the application wishes to examine
14350 extensions in the OCSP response for example.
14351
14352 Replace nonce routines with a pair of functions.
14353 OCSP_request_add1_nonce() adds a nonce value and optionally
14354 generates a random value. OCSP_check_nonce() checks the
14355 validity of the nonce in an OCSP response.
14356
14357 *Steve Henson*
14358
14359 * Change function OCSP_request_add() to OCSP_request_add0_id().
14360 This doesn't copy the supplied OCSP_CERTID and avoids the
14361 need to free up the newly created id. Change return type
14362 to OCSP_ONEREQ to return the internal OCSP_ONEREQ structure.
14363 This can then be used to add extensions to the request.
14364 Deleted OCSP_request_new(), since most of its functionality
14365 is now in OCSP_REQUEST_new() (and the case insensitive name
14366 clash) apart from the ability to set the request name which
14367 will be added elsewhere.
14368
14369 *Steve Henson*
14370
14371 * Update OCSP API. Remove obsolete extensions argument from
14372 various functions. Extensions are now handled using the new
14373 OCSP extension code. New simple OCSP HTTP function which
14374 can be used to send requests and parse the response.
14375
14376 *Steve Henson*
14377
14378 * Fix the PKCS#7 (S/MIME) code to work with new ASN1. Two new
14379 ASN1_ITEM structures help with sign and verify. PKCS7_ATTR_SIGN
14380 uses the special reorder version of SET OF to sort the attributes
14381 and reorder them to match the encoded order. This resolves a long
14382 standing problem: a verify on a PKCS7 structure just after signing
14383 it used to fail because the attribute order did not match the
14384 encoded order. PKCS7_ATTR_VERIFY does not reorder the attributes:
14385 it uses the received order. This is necessary to tolerate some broken
14386 software that does not order SET OF. This is handled by encoding
14387 as a SEQUENCE OF but using implicit tagging (with UNIVERSAL class)
14388 to produce the required SET OF.
14389
14390 *Steve Henson*
14391
14392 * Have mk1mf.pl generate the macros OPENSSL_BUILD_SHLIBCRYPTO and
14393 OPENSSL_BUILD_SHLIBSSL and use them appropriately in the header
14394 files to get correct declarations of the ASN.1 item variables.
14395
14396 *Richard Levitte*
14397
14398 * Rewrite of PKCS#12 code to use new ASN1 functionality. Replace many
14399 PKCS#12 macros with real functions. Fix two unrelated ASN1 bugs:
14400 asn1_check_tlen() would sometimes attempt to use 'ctx' when it was
14401 NULL and ASN1_TYPE was not dereferenced properly in asn1_ex_c2i().
14402 New ASN1 macro: DECLARE_ASN1_ITEM() which just declares the relevant
14403 ASN1_ITEM and no wrapper functions.
14404
14405 *Steve Henson*
14406
14407 * New functions or ASN1_item_d2i_fp() and ASN1_item_d2i_bio(). These
14408 replace the old function pointer based I/O routines. Change most of
257e9d03 14409 the `*_d2i_bio()` and `*_d2i_fp()` functions to use these.
5f8e6c50
DMSP
14410
14411 *Steve Henson*
14412
14413 * Enhance mkdef.pl to be more accepting about spacing in C preprocessor
14414 lines, recognize more "algorithms" that can be deselected, and make
14415 it complain about algorithm deselection that isn't recognised.
14416
14417 *Richard Levitte*
14418
14419 * New ASN1 functions to handle dup, sign, verify, digest, pack and
14420 unpack operations in terms of ASN1_ITEM. Modify existing wrappers
14421 to use new functions. Add NO_ASN1_OLD which can be set to remove
14422 some old style ASN1 functions: this can be used to determine if old
14423 code will still work when these eventually go away.
14424
14425 *Steve Henson*
14426
14427 * New extension functions for OCSP structures, these follow the
14428 same conventions as certificates and CRLs.
14429
14430 *Steve Henson*
14431
14432 * New function X509V3_add1_i2d(). This automatically encodes and
14433 adds an extension. Its behaviour can be customised with various
14434 flags to append, replace or delete. Various wrappers added for
14435 certificates and CRLs.
14436
14437 *Steve Henson*
14438
14439 * Fix to avoid calling the underlying ASN1 print routine when
14440 an extension cannot be parsed. Correct a typo in the
14441 OCSP_SERVICELOC extension. Tidy up print OCSP format.
14442
14443 *Steve Henson*
14444
14445 * Make mkdef.pl parse some of the ASN1 macros and add appropriate
14446 entries for variables.
14447
14448 *Steve Henson*
14449
ec2bfb7d 14450 * Add functionality to `apps/openssl.c` for detecting locking
5f8e6c50
DMSP
14451 problems: As the program is single-threaded, all we have
14452 to do is register a locking callback using an array for
14453 storing which locks are currently held by the program.
14454
14455 *Bodo Moeller*
14456
14457 * Use a lock around the call to CRYPTO_get_ex_new_index() in
14458 SSL_get_ex_data_X509_STORE_idx(), which is used in
14459 ssl_verify_cert_chain() and thus can be called at any time
14460 during TLS/SSL handshakes so that thread-safety is essential.
14461 Unfortunately, the ex_data design is not at all suited
14462 for multi-threaded use, so it probably should be abolished.
14463
14464 *Bodo Moeller*
14465
14466 * Added Broadcom "ubsec" ENGINE to OpenSSL.
14467
14468 *Broadcom, tweaked and integrated by Geoff Thorpe*
14469
14470 * Move common extension printing code to new function
14471 X509V3_print_extensions(). Reorganise OCSP print routines and
14472 implement some needed OCSP ASN1 functions. Add OCSP extensions.
14473
14474 *Steve Henson*
14475
14476 * New function X509_signature_print() to remove duplication in some
14477 print routines.
14478
14479 *Steve Henson*
14480
14481 * Add a special meaning when SET OF and SEQUENCE OF flags are both
14482 set (this was treated exactly the same as SET OF previously). This
14483 is used to reorder the STACK representing the structure to match the
14484 encoding. This will be used to get round a problem where a PKCS7
14485 structure which was signed could not be verified because the STACK
14486 order did not reflect the encoded order.
14487
14488 *Steve Henson*
14489
14490 * Reimplement the OCSP ASN1 module using the new code.
14491
14492 *Steve Henson*
14493
14494 * Update the X509V3 code to permit the use of an ASN1_ITEM structure
14495 for its ASN1 operations. The old style function pointers still exist
14496 for now but they will eventually go away.
14497
14498 *Steve Henson*
14499
14500 * Merge in replacement ASN1 code from the ASN1 branch. This almost
14501 completely replaces the old ASN1 functionality with a table driven
14502 encoder and decoder which interprets an ASN1_ITEM structure describing
14503 the ASN1 module. Compatibility with the existing ASN1 API (i2d,d2i) is
14504 largely maintained. Almost all of the old asn1_mac.h macro based ASN1
14505 has also been converted to the new form.
14506
14507 *Steve Henson*
14508
14509 * Change BN_mod_exp_recp so that negative moduli are tolerated
14510 (the sign is ignored). Similarly, ignore the sign in BN_MONT_CTX_set
14511 so that BN_mod_exp_mont and BN_mod_exp_mont_word work
14512 for negative moduli.
14513
14514 *Bodo Moeller*
14515
14516 * Fix BN_uadd and BN_usub: Always return non-negative results instead
14517 of not touching the result's sign bit.
14518
14519 *Bodo Moeller*
14520
14521 * BN_div bugfix: If the result is 0, the sign (res->neg) must not be
14522 set.
14523
14524 *Bodo Moeller*
14525
14526 * Changed the LHASH code to use prototypes for callbacks, and created
14527 macros to declare and implement thin (optionally static) functions
14528 that provide type-safety and avoid function pointer casting for the
14529 type-specific callbacks.
14530
14531 *Geoff Thorpe*
14532
14533 * Added Kerberos Cipher Suites to be used with TLS, as written in
14534 RFC 2712.
14535 *Veers Staats <staatsvr@asc.hpc.mil>,
257e9d03 14536 Jeffrey Altman <jaltman@columbia.edu>, via Richard Levitte*
5f8e6c50
DMSP
14537
14538 * Reformat the FAQ so the different questions and answers can be divided
14539 in sections depending on the subject.
14540
14541 *Richard Levitte*
14542
14543 * Have the zlib compression code load ZLIB.DLL dynamically under
14544 Windows.
14545
14546 *Richard Levitte*
14547
14548 * New function BN_mod_sqrt for computing square roots modulo a prime
14549 (using the probabilistic Tonelli-Shanks algorithm unless
14550 p == 3 (mod 4) or p == 5 (mod 8), which are cases that can
14551 be handled deterministically).
14552
14553 *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller*
14554
14555 * Make BN_mod_inverse faster by explicitly handling small quotients
14556 in the Euclid loop. (Speed gain about 20% for small moduli [256 or
14557 512 bits], about 30% for larger ones [1024 or 2048 bits].)
14558
14559 *Bodo Moeller*
14560
14561 * New function BN_kronecker.
14562
14563 *Bodo Moeller*
14564
14565 * Fix BN_gcd so that it works on negative inputs; the result is
14566 positive unless both parameters are zero.
14567 Previously something reasonably close to an infinite loop was
14568 possible because numbers could be growing instead of shrinking
14569 in the implementation of Euclid's algorithm.
14570
14571 *Bodo Moeller*
14572
14573 * Fix BN_is_word() and BN_is_one() macros to take into account the
14574 sign of the number in question.
14575
14576 Fix BN_is_word(a,w) to work correctly for w == 0.
14577
14578 The old BN_is_word(a,w) macro is now called BN_abs_is_word(a,w)
14579 because its test if the absolute value of 'a' equals 'w'.
14580 Note that BN_abs_is_word does *not* handle w == 0 reliably;
14581 it exists mostly for use in the implementations of BN_is_zero(),
14582 BN_is_one(), and BN_is_word().
14583
14584 *Bodo Moeller*
14585
14586 * New function BN_swap.
14587
14588 *Bodo Moeller*
14589
14590 * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that
14591 the exponentiation functions are more likely to produce reasonable
14592 results on negative inputs.
14593
14594 *Bodo Moeller*
14595
14596 * Change BN_mod_mul so that the result is always non-negative.
14597 Previously, it could be negative if one of the factors was negative;
14598 I don't think anyone really wanted that behaviour.
14599
14600 *Bodo Moeller*
14601
1dc1ea18
DDO
14602 * Move `BN_mod_...` functions into new file `crypto/bn/bn_mod.c`
14603 (except for exponentiation, which stays in `crypto/bn/bn_exp.c`,
14604 and `BN_mod_mul_reciprocal`, which stays in `crypto/bn/bn_recp.c`)
5f8e6c50
DMSP
14605 and add new functions:
14606
14607 BN_nnmod
14608 BN_mod_sqr
14609 BN_mod_add
14610 BN_mod_add_quick
14611 BN_mod_sub
14612 BN_mod_sub_quick
14613 BN_mod_lshift1
14614 BN_mod_lshift1_quick
14615 BN_mod_lshift
14616 BN_mod_lshift_quick
14617
14618 These functions always generate non-negative results.
14619
1dc1ea18
DDO
14620 `BN_nnmod` otherwise is `like BN_mod` (if `BN_mod` computes a remainder `r`
14621 such that `|m| < r < 0`, `BN_nnmod` will output `rem + |m|` instead).
5f8e6c50 14622
1dc1ea18
DDO
14623 `BN_mod_XXX_quick(r, a, [b,] m)` generates the same result as
14624 `BN_mod_XXX(r, a, [b,] m, ctx)`, but requires that `a` [and `b`]
14625 be reduced modulo `m`.
5f8e6c50
DMSP
14626
14627 *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller*
14628
1dc1ea18 14629<!--
5f8e6c50
DMSP
14630 The following entry accidentally appeared in the CHANGES file
14631 distributed with OpenSSL 0.9.7. The modifications described in
14632 it do *not* apply to OpenSSL 0.9.7.
14633
14634 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
14635 was actually never needed) and in BN_mul(). The removal in BN_mul()
14636 required a small change in bn_mul_part_recursive() and the addition
14637 of the functions bn_cmp_part_words(), bn_sub_part_words() and
14638 bn_add_part_words(), which do the same thing as bn_cmp_words(),
14639 bn_sub_words() and bn_add_words() except they take arrays with
14640 differing sizes.
14641
14642 *Richard Levitte*
1dc1ea18 14643-->
5f8e6c50
DMSP
14644
14645 * In 'openssl passwd', verify passwords read from the terminal
14646 unless the '-salt' option is used (which usually means that
14647 verification would just waste user's time since the resulting
14648 hash is going to be compared with some given password hash)
14649 or the new '-noverify' option is used.
14650
14651 This is an incompatible change, but it does not affect
14652 non-interactive use of 'openssl passwd' (passwords on the command
14653 line, '-stdin' option, '-in ...' option) and thus should not
14654 cause any problems.
14655
14656 *Bodo Moeller*
14657
14658 * Remove all references to RSAref, since there's no more need for it.
14659
14660 *Richard Levitte*
14661
14662 * Make DSO load along a path given through an environment variable
14663 (SHLIB_PATH) with shl_load().
14664
14665 *Richard Levitte*
14666
14667 * Constify the ENGINE code as a result of BIGNUM constification.
14668 Also constify the RSA code and most things related to it. In a
14669 few places, most notable in the depth of the ASN.1 code, ugly
14670 casts back to non-const were required (to be solved at a later
14671 time)
14672
14673 *Richard Levitte*
14674
14675 * Make it so the openssl application has all engines loaded by default.
14676
14677 *Richard Levitte*
14678
14679 * Constify the BIGNUM routines a little more.
14680
14681 *Richard Levitte*
14682
14683 * Add the following functions:
14684
14685 ENGINE_load_cswift()
14686 ENGINE_load_chil()
14687 ENGINE_load_atalla()
14688 ENGINE_load_nuron()
14689 ENGINE_load_builtin_engines()
14690
14691 That way, an application can itself choose if external engines that
14692 are built-in in OpenSSL shall ever be used or not. The benefit is
14693 that applications won't have to be linked with libdl or other dso
14694 libraries unless it's really needed.
14695
14696 Changed 'openssl engine' to load all engines on demand.
14697 Changed the engine header files to avoid the duplication of some
14698 declarations (they differed!).
14699
14700 *Richard Levitte*
14701
14702 * 'openssl engine' can now list capabilities.
14703
14704 *Richard Levitte*
14705
14706 * Better error reporting in 'openssl engine'.
14707
14708 *Richard Levitte*
14709
14710 * Never call load_dh_param(NULL) in s_server.
14711
14712 *Bodo Moeller*
14713
14714 * Add engine application. It can currently list engines by name and
14715 identity, and test if they are actually available.
14716
14717 *Richard Levitte*
14718
14719 * Improve RPM specification file by forcing symbolic linking and making
14720 sure the installed documentation is also owned by root.root.
14721
14722 *Damien Miller <djm@mindrot.org>*
14723
14724 * Give the OpenSSL applications more possibilities to make use of
14725 keys (public as well as private) handled by engines.
14726
14727 *Richard Levitte*
14728
14729 * Add OCSP code that comes from CertCo.
14730
14731 *Richard Levitte*
14732
14733 * Add VMS support for the Rijndael code.
14734
14735 *Richard Levitte*
14736
14737 * Added untested support for Nuron crypto accelerator.
14738
14739 *Ben Laurie*
14740
14741 * Add support for external cryptographic devices. This code was
14742 previously distributed separately as the "engine" branch.
14743
14744 *Geoff Thorpe, Richard Levitte*
14745
14746 * Rework the filename-translation in the DSO code. It is now possible to
14747 have far greater control over how a "name" is turned into a filename
14748 depending on the operating environment and any oddities about the
14749 different shared library filenames on each system.
14750
14751 *Geoff Thorpe*
14752
14753 * Support threads on FreeBSD-elf in Configure.
14754
14755 *Richard Levitte*
14756
14757 * Fix for SHA1 assembly problem with MASM: it produces
14758 warnings about corrupt line number information when assembling
14759 with debugging information. This is caused by the overlapping
14760 of two sections.
14761
14762 *Bernd Matthes <mainbug@celocom.de>, Steve Henson*
14763
14764 * NCONF changes.
14765 NCONF_get_number() has no error checking at all. As a replacement,
257e9d03 14766 NCONF_get_number_e() is defined (`_e` for "error checking") and is
5f8e6c50
DMSP
14767 promoted strongly. The old NCONF_get_number is kept around for
14768 binary backward compatibility.
14769 Make it possible for methods to load from something other than a BIO,
14770 by providing a function pointer that is given a name instead of a BIO.
14771 For example, this could be used to load configuration data from an
14772 LDAP server.
14773
14774 *Richard Levitte*
14775
14776 * Fix for non blocking accept BIOs. Added new I/O special reason
14777 BIO_RR_ACCEPT to cover this case. Previously use of accept BIOs
14778 with non blocking I/O was not possible because no retry code was
14779 implemented. Also added new SSL code SSL_WANT_ACCEPT to cover
14780 this case.
14781
14782 *Steve Henson*
14783
14784 * Added the beginnings of Rijndael support.
14785
14786 *Ben Laurie*
14787
14788 * Fix for bug in DirectoryString mask setting. Add support for
14789 X509_NAME_print_ex() in 'req' and X509_print_ex() function
14790 to allow certificate printing to more controllable, additional
14791 'certopt' option to 'x509' to allow new printing options to be
14792 set.
14793
14794 *Steve Henson*
14795
14796 * Clean old EAY MD5 hack from e_os.h.
14797
14798 *Richard Levitte*
14799
257e9d03 14800### Changes between 0.9.6l and 0.9.6m [17 Mar 2004]
5f8e6c50
DMSP
14801
14802 * Fix null-pointer assignment in do_change_cipher_spec() revealed
d8dc8538 14803 by using the Codenomicon TLS Test Tool ([CVE-2004-0079])
5f8e6c50
DMSP
14804
14805 *Joe Orton, Steve Henson*
14806
257e9d03 14807### Changes between 0.9.6k and 0.9.6l [04 Nov 2003]
5f8e6c50
DMSP
14808
14809 * Fix additional bug revealed by the NISCC test suite:
14810
14811 Stop bug triggering large recursion when presented with
d8dc8538 14812 certain ASN.1 tags ([CVE-2003-0851])
5f8e6c50
DMSP
14813
14814 *Steve Henson*
14815
257e9d03 14816### Changes between 0.9.6j and 0.9.6k [30 Sep 2003]
5f8e6c50
DMSP
14817
14818 * Fix various bugs revealed by running the NISCC test suite:
14819
14820 Stop out of bounds reads in the ASN1 code when presented with
14821 invalid tags (CVE-2003-0543 and CVE-2003-0544).
14822
14823 If verify callback ignores invalid public key errors don't try to check
14824 certificate signature with the NULL public key.
14825
5f8e6c50
DMSP
14826 *Steve Henson*
14827
14828 * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate
14829 if the server requested one: as stated in TLS 1.0 and SSL 3.0
14830 specifications.
14831
14832 *Steve Henson*
14833
14834 * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional
14835 extra data after the compression methods not only for TLS 1.0
14836 but also for SSL 3.0 (as required by the specification).
14837
14838 *Bodo Moeller; problem pointed out by Matthias Loepfe*
14839
14840 * Change X509_certificate_type() to mark the key as exported/exportable
14841 when it's 512 *bits* long, not 512 bytes.
14842
14843 *Richard Levitte*
14844
257e9d03 14845### Changes between 0.9.6i and 0.9.6j [10 Apr 2003]
5f8e6c50
DMSP
14846
14847 * Countermeasure against the Klima-Pokorny-Rosa extension of
14848 Bleichbacher's attack on PKCS #1 v1.5 padding: treat
14849 a protocol version number mismatch like a decryption error
14850 in ssl3_get_client_key_exchange (ssl/s3_srvr.c).
14851
14852 *Bodo Moeller*
14853
14854 * Turn on RSA blinding by default in the default implementation
14855 to avoid a timing attack. Applications that don't want it can call
14856 RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING.
14857 They would be ill-advised to do so in most cases.
14858
14859 *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller*
14860
14861 * Change RSA blinding code so that it works when the PRNG is not
14862 seeded (in this case, the secret RSA exponent is abused as
14863 an unpredictable seed -- if it is not unpredictable, there
14864 is no point in blinding anyway). Make RSA blinding thread-safe
14865 by remembering the creator's thread ID in rsa->blinding and
14866 having all other threads use local one-time blinding factors
14867 (this requires more computation than sharing rsa->blinding, but
14868 avoids excessive locking; and if an RSA object is not shared
14869 between threads, blinding will still be very fast).
14870
14871 *Bodo Moeller*
14872
257e9d03 14873### Changes between 0.9.6h and 0.9.6i [19 Feb 2003]
5f8e6c50
DMSP
14874
14875 * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked
14876 via timing by performing a MAC computation even if incorrect
14877 block cipher padding has been found. This is a countermeasure
14878 against active attacks where the attacker has to distinguish
d8dc8538 14879 between bad padding and a MAC verification error. ([CVE-2003-0078])
5f8e6c50
DMSP
14880
14881 *Bodo Moeller; problem pointed out by Brice Canvel (EPFL),
14882 Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and
14883 Martin Vuagnoux (EPFL, Ilion)*
14884
257e9d03 14885### Changes between 0.9.6g and 0.9.6h [5 Dec 2002]
5f8e6c50
DMSP
14886
14887 * New function OPENSSL_cleanse(), which is used to cleanse a section of
14888 memory from its contents. This is done with a counter that will
14889 place alternating values in each byte. This can be used to solve
14890 two issues: 1) the removal of calls to memset() by highly optimizing
14891 compilers, and 2) cleansing with other values than 0, since those can
14892 be read through on certain media, for example a swap space on disk.
14893
14894 *Geoff Thorpe*
14895
14896 * Bugfix: client side session caching did not work with external caching,
14897 because the session->cipher setting was not restored when reloading
14898 from the external cache. This problem was masked, when
14899 SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG (part of SSL_OP_ALL) was set.
14900 (Found by Steve Haslam <steve@araqnid.ddts.net>.)
14901
14902 *Lutz Jaenicke*
14903
14904 * Fix client_certificate (ssl/s2_clnt.c): The permissible total
14905 length of the REQUEST-CERTIFICATE message is 18 .. 34, not 17 .. 33.
14906
14907 *Zeev Lieber <zeev-l@yahoo.com>*
14908
14909 * Undo an undocumented change introduced in 0.9.6e which caused
14910 repeated calls to OpenSSL_add_all_ciphers() and
14911 OpenSSL_add_all_digests() to be ignored, even after calling
14912 EVP_cleanup().
14913
14914 *Richard Levitte*
14915
14916 * Change the default configuration reader to deal with last line not
14917 being properly terminated.
14918
14919 *Richard Levitte*
14920
14921 * Change X509_NAME_cmp() so it applies the special rules on handling
14922 DN values that are of type PrintableString, as well as RDNs of type
14923 emailAddress where the value has the type ia5String.
14924
14925 *stefank@valicert.com via Richard Levitte*
14926
14927 * Add a SSL_SESS_CACHE_NO_INTERNAL_STORE flag to take over half
14928 the job SSL_SESS_CACHE_NO_INTERNAL_LOOKUP was inconsistently
14929 doing, define a new flag (SSL_SESS_CACHE_NO_INTERNAL) to be
14930 the bitwise-OR of the two for use by the majority of applications
14931 wanting this behaviour, and update the docs. The documented
14932 behaviour and actual behaviour were inconsistent and had been
14933 changing anyway, so this is more a bug-fix than a behavioural
14934 change.
14935
14936 *Geoff Thorpe, diagnosed by Nadav Har'El*
14937
14938 * Don't impose a 16-byte length minimum on session IDs in ssl/s3_clnt.c
14939 (the SSL 3.0 and TLS 1.0 specifications allow any length up to 32 bytes).
14940
14941 *Bodo Moeller*
14942
14943 * Fix initialization code race conditions in
14944 SSLv23_method(), SSLv23_client_method(), SSLv23_server_method(),
14945 SSLv2_method(), SSLv2_client_method(), SSLv2_server_method(),
14946 SSLv3_method(), SSLv3_client_method(), SSLv3_server_method(),
14947 TLSv1_method(), TLSv1_client_method(), TLSv1_server_method(),
14948 ssl2_get_cipher_by_char(),
14949 ssl3_get_cipher_by_char().
14950
14951 *Patrick McCormick <patrick@tellme.com>, Bodo Moeller*
14952
14953 * Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after
14954 the cached sessions are flushed, as the remove_cb() might use ex_data
14955 contents. Bug found by Sam Varshavchik <mrsam@courier-mta.com>
14956 (see [openssl.org #212]).
14957
14958 *Geoff Thorpe, Lutz Jaenicke*
14959
14960 * Fix typo in OBJ_txt2obj which incorrectly passed the content
14961 length, instead of the encoding length to d2i_ASN1_OBJECT.
14962
14963 *Steve Henson*
14964
257e9d03 14965### Changes between 0.9.6f and 0.9.6g [9 Aug 2002]
5f8e6c50
DMSP
14966
14967 * [In 0.9.6g-engine release:]
257e9d03 14968 Fix crypto/engine/vendor_defns/cswift.h for WIN32 (use `_stdcall`).
5f8e6c50
DMSP
14969
14970 *Lynn Gazis <lgazis@rainbow.com>*
14971
257e9d03 14972### Changes between 0.9.6e and 0.9.6f [8 Aug 2002]
5f8e6c50
DMSP
14973
14974 * Fix ASN1 checks. Check for overflow by comparing with LONG_MAX
14975 and get fix the header length calculation.
14976 *Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>,
257e9d03 14977 Alon Kantor <alonk@checkpoint.com> (and others), Steve Henson*
5f8e6c50
DMSP
14978
14979 * Use proper error handling instead of 'assertions' in buffer
14980 overflow checks added in 0.9.6e. This prevents DoS (the
14981 assertions could call abort()).
14982
14983 *Arne Ansper <arne@ats.cyber.ee>, Bodo Moeller*
14984
257e9d03 14985### Changes between 0.9.6d and 0.9.6e [30 Jul 2002]
5f8e6c50
DMSP
14986
14987 * Add various sanity checks to asn1_get_length() to reject
14988 the ASN1 length bytes if they exceed sizeof(long), will appear
14989 negative or the content length exceeds the length of the
14990 supplied buffer.
14991
14992 *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>*
14993
14994 * Fix cipher selection routines: ciphers without encryption had no flags
14995 for the cipher strength set and where therefore not handled correctly
14996 by the selection routines (PR #130).
14997
14998 *Lutz Jaenicke*
14999
15000 * Fix EVP_dsa_sha macro.
15001
15002 *Nils Larsch*
15003
15004 * New option
15005 SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
15006 for disabling the SSL 3.0/TLS 1.0 CBC vulnerability countermeasure
15007 that was added in OpenSSL 0.9.6d.
15008
15009 As the countermeasure turned out to be incompatible with some
15010 broken SSL implementations, the new option is part of SSL_OP_ALL.
15011 SSL_OP_ALL is usually employed when compatibility with weird SSL
15012 implementations is desired (e.g. '-bugs' option to 's_client' and
15013 's_server'), so the new option is automatically set in many
15014 applications.
15015
15016 *Bodo Moeller*
15017
15018 * Changes in security patch:
15019
15020 Changes marked "(CHATS)" were sponsored by the Defense Advanced
15021 Research Projects Agency (DARPA) and Air Force Research Laboratory,
15022 Air Force Materiel Command, USAF, under agreement number
15023 F30602-01-2-0537.
15024
15025 * Add various sanity checks to asn1_get_length() to reject
15026 the ASN1 length bytes if they exceed sizeof(long), will appear
15027 negative or the content length exceeds the length of the
d8dc8538 15028 supplied buffer. ([CVE-2002-0659])
5f8e6c50
DMSP
15029
15030 *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>*
15031
15032 * Assertions for various potential buffer overflows, not known to
15033 happen in practice.
15034
15035 *Ben Laurie (CHATS)*
15036
15037 * Various temporary buffers to hold ASCII versions of integers were
d8dc8538 15038 too small for 64 bit platforms. ([CVE-2002-0655])
257e9d03 15039 *Matthew Byng-Maddick <mbm@aldigital.co.uk> and Ben Laurie (CHATS)>*
5f8e6c50
DMSP
15040
15041 * Remote buffer overflow in SSL3 protocol - an attacker could
d8dc8538 15042 supply an oversized session ID to a client. ([CVE-2002-0656])
5f8e6c50 15043
44652c16 15044 *Ben Laurie (CHATS)*
5f8e6c50
DMSP
15045
15046 * Remote buffer overflow in SSL2 protocol - an attacker could
d8dc8538 15047 supply an oversized client master key. ([CVE-2002-0656])
5f8e6c50
DMSP
15048
15049 *Ben Laurie (CHATS)*
15050
257e9d03 15051### Changes between 0.9.6c and 0.9.6d [9 May 2002]
5f8e6c50
DMSP
15052
15053 * Fix crypto/asn1/a_sign.c so that 'parameters' is omitted (not
15054 encoded as NULL) with id-dsa-with-sha1.
15055
15056 *Nils Larsch <nla@trustcenter.de>; problem pointed out by Bodo Moeller*
15057
ec2bfb7d 15058 * Check various `X509_...()` return values in `apps/req.c`.
5f8e6c50
DMSP
15059
15060 *Nils Larsch <nla@trustcenter.de>*
15061
15062 * Fix BASE64 decode (EVP_DecodeUpdate) for data with CR/LF ended lines:
15063 an end-of-file condition would erroneously be flagged, when the CRLF
15064 was just at the end of a processed block. The bug was discovered when
15065 processing data through a buffering memory BIO handing the data to a
15066 BASE64-decoding BIO. Bug fund and patch submitted by Pavel Tsekov
15067 <ptsekov@syntrex.com> and Nedelcho Stanev.
15068
15069 *Lutz Jaenicke*
15070
15071 * Implement a countermeasure against a vulnerability recently found
15072 in CBC ciphersuites in SSL 3.0/TLS 1.0: Send an empty fragment
15073 before application data chunks to avoid the use of known IVs
15074 with data potentially chosen by the attacker.
15075
15076 *Bodo Moeller*
15077
15078 * Fix length checks in ssl3_get_client_hello().
15079
15080 *Bodo Moeller*
15081
15082 * TLS/SSL library bugfix: use s->s3->in_read_app_data differently
15083 to prevent ssl3_read_internal() from incorrectly assuming that
15084 ssl3_read_bytes() found application data while handshake
15085 processing was enabled when in fact s->s3->in_read_app_data was
15086 merely automatically cleared during the initial handshake.
15087
15088 *Bodo Moeller; problem pointed out by Arne Ansper <arne@ats.cyber.ee>*
15089
15090 * Fix object definitions for Private and Enterprise: they were not
15091 recognized in their shortname (=lowercase) representation. Extend
15092 obj_dat.pl to issue an error when using undefined keywords instead
15093 of silently ignoring the problem (Svenning Sorensen
15094 <sss@sss.dnsalias.net>).
15095
15096 *Lutz Jaenicke*
15097
15098 * Fix DH_generate_parameters() so that it works for 'non-standard'
15099 generators, i.e. generators other than 2 and 5. (Previously, the
15100 code did not properly initialise the 'add' and 'rem' values to
15101 BN_generate_prime().)
15102
15103 In the new general case, we do not insist that 'generator' is
15104 actually a primitive root: This requirement is rather pointless;
15105 a generator of the order-q subgroup is just as good, if not
15106 better.
15107
15108 *Bodo Moeller*
15109
15110 * Map new X509 verification errors to alerts. Discovered and submitted by
15111 Tom Wu <tom@arcot.com>.
15112
15113 *Lutz Jaenicke*
15114
15115 * Fix ssl3_pending() (ssl/s3_lib.c) to prevent SSL_pending() from
15116 returning non-zero before the data has been completely received
15117 when using non-blocking I/O.
15118
15119 *Bodo Moeller; problem pointed out by John Hughes*
15120
15121 * Some of the ciphers missed the strength entry (SSL_LOW etc).
15122
15123 *Ben Laurie, Lutz Jaenicke*
15124
15125 * Fix bug in SSL_clear(): bad sessions were not removed (found by
15126 Yoram Zahavi <YoramZ@gilian.com>).
15127
15128 *Lutz Jaenicke*
15129
15130 * Add information about CygWin 1.3 and on, and preserve proper
15131 configuration for the versions before that.
15132
15133 *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte*
15134
15135 * Make removal from session cache (SSL_CTX_remove_session()) more robust:
15136 check whether we deal with a copy of a session and do not delete from
15137 the cache in this case. Problem reported by "Izhar Shoshani Levi"
15138 <izhar@checkpoint.com>.
15139
15140 *Lutz Jaenicke*
15141
15142 * Do not store session data into the internal session cache, if it
15143 is never intended to be looked up (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP
15144 flag is set). Proposed by Aslam <aslam@funk.com>.
15145
15146 *Lutz Jaenicke*
15147
15148 * Have ASN1_BIT_STRING_set_bit() really clear a bit when the requested
15149 value is 0.
15150
15151 *Richard Levitte*
15152
15153 * [In 0.9.6d-engine release:]
15154 Fix a crashbug and a logic bug in hwcrhk_load_pubkey().
15155
15156 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte*
15157
15158 * Add the configuration target linux-s390x.
15159
15160 *Neale Ferguson <Neale.Ferguson@SoftwareAG-USA.com> via Richard Levitte*
15161
15162 * The earlier bugfix for the SSL3_ST_SW_HELLO_REQ_C case of
15163 ssl3_accept (ssl/s3_srvr.c) incorrectly used a local flag
15164 variable as an indication that a ClientHello message has been
15165 received. As the flag value will be lost between multiple
15166 invocations of ssl3_accept when using non-blocking I/O, the
15167 function may not be aware that a handshake has actually taken
15168 place, thus preventing a new session from being added to the
15169 session cache.
15170
15171 To avoid this problem, we now set s->new_session to 2 instead of
15172 using a local variable.
15173
15174 *Lutz Jaenicke, Bodo Moeller*
15175
15176 * Bugfix: Return -1 from ssl3_get_server_done (ssl3/s3_clnt.c)
15177 if the SSL_R_LENGTH_MISMATCH error is detected.
15178
15179 *Geoff Thorpe, Bodo Moeller*
15180
15181 * New 'shared_ldflag' column in Configure platform table.
15182
15183 *Richard Levitte*
15184
15185 * Fix EVP_CIPHER_mode macro.
15186
15187 *"Dan S. Camper" <dan@bti.net>*
15188
15189 * Fix ssl3_read_bytes (ssl/s3_pkt.c): To ignore messages of unknown
15190 type, we must throw them away by setting rr->length to 0.
15191
15192 *D P Chang <dpc@qualys.com>*
15193
257e9d03 15194### Changes between 0.9.6b and 0.9.6c [21 dec 2001]
5f8e6c50
DMSP
15195
15196 * Fix BN_rand_range bug pointed out by Dominikus Scherkl
15197 <Dominikus.Scherkl@biodata.com>. (The previous implementation
257e9d03
RS
15198 worked incorrectly for those cases where range = `10..._2` and
15199 `3*range` is two bits longer than range.)
5f8e6c50
DMSP
15200
15201 *Bodo Moeller*
15202
15203 * Only add signing time to PKCS7 structures if it is not already
15204 present.
15205
15206 *Steve Henson*
15207
15208 * Fix crypto/objects/objects.h: "ld-ce" should be "id-ce",
15209 OBJ_ld_ce should be OBJ_id_ce.
15210 Also some ip-pda OIDs in crypto/objects/objects.txt were
15211 incorrect (cf. RFC 3039).
15212
15213 *Matt Cooper, Frederic Giudicelli, Bodo Moeller*
15214
15215 * Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid()
15216 returns early because it has nothing to do.
15217
15218 *Andy Schneider <andy.schneider@bjss.co.uk>*
15219
15220 * [In 0.9.6c-engine release:]
15221 Fix mutex callback return values in crypto/engine/hw_ncipher.c.
15222
15223 *Andy Schneider <andy.schneider@bjss.co.uk>*
15224
15225 * [In 0.9.6c-engine release:]
15226 Add support for Cryptographic Appliance's keyserver technology.
15227 (Use engine 'keyclient')
15228
15229 *Cryptographic Appliances and Geoff Thorpe*
15230
15231 * Add a configuration entry for OS/390 Unix. The C compiler 'c89'
15232 is called via tools/c89.sh because arguments have to be
15233 rearranged (all '-L' options must appear before the first object
15234 modules).
15235
15236 *Richard Shapiro <rshapiro@abinitio.com>*
15237
15238 * [In 0.9.6c-engine release:]
15239 Add support for Broadcom crypto accelerator cards, backported
15240 from 0.9.7.
15241
15242 *Broadcom, Nalin Dahyabhai <nalin@redhat.com>, Mark Cox*
15243
15244 * [In 0.9.6c-engine release:]
15245 Add support for SureWare crypto accelerator cards from
15246 Baltimore Technologies. (Use engine 'sureware')
15247
15248 *Baltimore Technologies and Mark Cox*
15249
15250 * [In 0.9.6c-engine release:]
15251 Add support for crypto accelerator cards from Accelerated
15252 Encryption Processing, www.aep.ie. (Use engine 'aep')
15253
15254 *AEP Inc. and Mark Cox*
15255
15256 * Add a configuration entry for gcc on UnixWare.
15257
15258 *Gary Benson <gbenson@redhat.com>*
15259
15260 * Change ssl/s2_clnt.c and ssl/s2_srvr.c so that received handshake
15261 messages are stored in a single piece (fixed-length part and
15262 variable-length part combined) and fix various bugs found on the way.
15263
15264 *Bodo Moeller*
15265
15266 * Disable caching in BIO_gethostbyname(), directly use gethostbyname()
15267 instead. BIO_gethostbyname() does not know what timeouts are
15268 appropriate, so entries would stay in cache even when they have
15269 become invalid.
257e9d03 15270 *Bodo Moeller; problem pointed out by Rich Salz <rsalz@zolera.com>*
5f8e6c50
DMSP
15271
15272 * Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when
15273 faced with a pathologically small ClientHello fragment that does
15274 not contain client_version: Instead of aborting with an error,
15275 simply choose the highest available protocol version (i.e.,
15276 TLS 1.0 unless it is disabled). In practice, ClientHello
15277 messages are never sent like this, but this change gives us
15278 strictly correct behaviour at least for TLS.
15279
44652c16 15280 *Bodo Moeller*
5f8e6c50
DMSP
15281
15282 * Fix SSL handshake functions and SSL_clear() such that SSL_clear()
15283 never resets s->method to s->ctx->method when called from within
15284 one of the SSL handshake functions.
15285
15286 *Bodo Moeller; problem pointed out by Niko Baric*
15287
15288 * In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert
15289 (sent using the client's version number) if client_version is
15290 smaller than the protocol version in use. Also change
15291 ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if
15292 the client demanded SSL 3.0 but only TLS 1.0 is enabled; then
15293 the client will at least see that alert.
15294
15295 *Bodo Moeller*
15296
15297 * Fix ssl3_get_message (ssl/s3_both.c) to handle message fragmentation
15298 correctly.
15299
15300 *Bodo Moeller*
15301
15302 * Avoid infinite loop in ssl3_get_message (ssl/s3_both.c) if a
15303 client receives HelloRequest while in a handshake.
15304
15305 *Bodo Moeller; bug noticed by Andy Schneider <andy.schneider@bjss.co.uk>*
15306
15307 * Bugfix in ssl3_accept (ssl/s3_srvr.c): Case SSL3_ST_SW_HELLO_REQ_C
15308 should end in 'break', not 'goto end' which circumvents various
15309 cleanups done in state SSL_ST_OK. But session related stuff
15310 must be disabled for SSL_ST_OK in the case that we just sent a
15311 HelloRequest.
15312
15313 Also avoid some overhead by not calling ssl_init_wbio_buffer()
15314 before just sending a HelloRequest.
15315
15316 *Bodo Moeller, Eric Rescorla <ekr@rtfm.com>*
15317
15318 * Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don't
15319 reveal whether illegal block cipher padding was found or a MAC
15320 verification error occurred. (Neither SSLerr() codes nor alerts
15321 are directly visible to potential attackers, but the information
15322 may leak via logfiles.)
15323
15324 Similar changes are not required for the SSL 2.0 implementation
15325 because the number of padding bytes is sent in clear for SSL 2.0,
15326 and the extra bytes are just ignored. However ssl/s2_pkt.c
15327 failed to verify that the purported number of padding bytes is in
15328 the legal range.
15329
15330 *Bodo Moeller*
15331
15332 * Add OpenUNIX-8 support including shared libraries
15333 (Boyd Lynn Gerber <gerberb@zenez.com>).
15334
15335 *Lutz Jaenicke*
15336
15337 * Improve RSA_padding_check_PKCS1_OAEP() check again to avoid
15338 'wristwatch attack' using huge encoding parameters (cf.
15339 James H. Manger's CRYPTO 2001 paper). Note that the
15340 RSA_PKCS1_OAEP_PADDING case of RSA_private_decrypt() does not use
15341 encoding parameters and hence was not vulnerable.
15342
15343 *Bodo Moeller*
15344
15345 * BN_sqr() bug fix.
15346
15347 *Ulf Möller, reported by Jim Ellis <jim.ellis@cavium.com>*
15348
15349 * Rabin-Miller test analyses assume uniformly distributed witnesses,
15350 so use BN_pseudo_rand_range() instead of using BN_pseudo_rand()
15351 followed by modular reduction.
15352
15353 *Bodo Moeller; pointed out by Adam Young <AYoung1@NCSUS.JNJ.COM>*
15354
15355 * Add BN_pseudo_rand_range() with obvious functionality: BN_rand_range()
15356 equivalent based on BN_pseudo_rand() instead of BN_rand().
15357
15358 *Bodo Moeller*
15359
15360 * s3_srvr.c: allow sending of large client certificate lists (> 16 kB).
15361 This function was broken, as the check for a new client hello message
15362 to handle SGC did not allow these large messages.
15363 (Tracked down by "Douglas E. Engert" <deengert@anl.gov>.)
15364
15365 *Lutz Jaenicke*
15366
257e9d03 15367 * Add alert descriptions for TLSv1 to `SSL_alert_desc_string[_long]()`.
5f8e6c50
DMSP
15368
15369 *Lutz Jaenicke*
15370
15371 * Fix buggy behaviour of BIO_get_num_renegotiates() and BIO_ctrl()
15372 for BIO_C_GET_WRITE_BUF_SIZE ("Stephen Hinton" <shinton@netopia.com>).
15373
15374 *Lutz Jaenicke*
15375
15376 * Rework the configuration and shared library support for Tru64 Unix.
15377 The configuration part makes use of modern compiler features and
15378 still retains old compiler behavior for those that run older versions
15379 of the OS. The shared library support part includes a variant that
15380 uses the RPATH feature, and is available through the special
15381 configuration target "alpha-cc-rpath", which will never be selected
15382 automatically.
15383
15384 *Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> via Richard Levitte*
15385
15386 * In ssl3_get_key_exchange (ssl/s3_clnt.c), call ssl3_get_message()
15387 with the same message size as in ssl3_get_certificate_request().
15388 Otherwise, if no ServerKeyExchange message occurs, CertificateRequest
15389 messages might inadvertently be reject as too long.
15390
15391 *Petr Lampa <lampa@fee.vutbr.cz>*
15392
15393 * Enhanced support for IA-64 Unix platforms (well, Linux and HP-UX).
15394
15395 *Andy Polyakov*
15396
15397 * Modified SSL library such that the verify_callback that has been set
44652c16 15398 specifically for an SSL object with SSL_set_verify() is actually being
5f8e6c50
DMSP
15399 used. Before the change, a verify_callback set with this function was
15400 ignored and the verify_callback() set in the SSL_CTX at the time of
15401 the call was used. New function X509_STORE_CTX_set_verify_cb() introduced
15402 to allow the necessary settings.
15403
15404 *Lutz Jaenicke*
15405
15406 * Initialize static variable in crypto/dsa/dsa_lib.c and crypto/dh/dh_lib.c
15407 explicitly to NULL, as at least on Solaris 8 this seems not always to be
15408 done automatically (in contradiction to the requirements of the C
15409 standard). This made problems when used from OpenSSH.
15410
15411 *Lutz Jaenicke*
15412
15413 * In OpenSSL 0.9.6a and 0.9.6b, crypto/dh/dh_key.c ignored
15414 dh->length and always used
15415
15416 BN_rand_range(priv_key, dh->p).
15417
15418 BN_rand_range() is not necessary for Diffie-Hellman, and this
15419 specific range makes Diffie-Hellman unnecessarily inefficient if
15420 dh->length (recommended exponent length) is much smaller than the
15421 length of dh->p. We could use BN_rand_range() if the order of
15422 the subgroup was stored in the DH structure, but we only have
15423 dh->length.
15424
15425 So switch back to
15426
15427 BN_rand(priv_key, l, ...)
15428
15429 where 'l' is dh->length if this is defined, or BN_num_bits(dh->p)-1
15430 otherwise.
15431
15432 *Bodo Moeller*
15433
15434 * In
15435
15436 RSA_eay_public_encrypt
15437 RSA_eay_private_decrypt
15438 RSA_eay_private_encrypt (signing)
15439 RSA_eay_public_decrypt (signature verification)
15440
15441 (default implementations for RSA_public_encrypt,
15442 RSA_private_decrypt, RSA_private_encrypt, RSA_public_decrypt),
15443 always reject numbers >= n.
15444
15445 *Bodo Moeller*
15446
15447 * In crypto/rand/md_rand.c, use a new short-time lock CRYPTO_LOCK_RAND2
15448 to synchronize access to 'locking_thread'. This is necessary on
15449 systems where access to 'locking_thread' (an 'unsigned long'
15450 variable) is not atomic.
15451
15452 *Bodo Moeller*
15453
15454 * In crypto/rand/md_rand.c, set 'locking_thread' to current thread's ID
15455 *before* setting the 'crypto_lock_rand' flag. The previous code had
15456 a race condition if 0 is a valid thread ID.
15457
15458 *Travis Vitek <vitek@roguewave.com>*
15459
15460 * Add support for shared libraries under Irix.
15461
15462 *Albert Chin-A-Young <china@thewrittenword.com>*
15463
15464 * Add configuration option to build on Linux on both big-endian and
15465 little-endian MIPS.
15466
15467 *Ralf Baechle <ralf@uni-koblenz.de>*
15468
15469 * Add the possibility to create shared libraries on HP-UX.
15470
15471 *Richard Levitte*
15472
257e9d03 15473### Changes between 0.9.6a and 0.9.6b [9 Jul 2001]
5f8e6c50
DMSP
15474
15475 * Change ssleay_rand_bytes (crypto/rand/md_rand.c)
15476 to avoid a SSLeay/OpenSSL PRNG weakness pointed out by
15477 Markku-Juhani O. Saarinen <markku-juhani.saarinen@nokia.com>:
15478 PRNG state recovery was possible based on the output of
15479 one PRNG request appropriately sized to gain knowledge on
15480 'md' followed by enough consecutive 1-byte PRNG requests
15481 to traverse all of 'state'.
15482
15483 1. When updating 'md_local' (the current thread's copy of 'md')
15484 during PRNG output generation, hash all of the previous
15485 'md_local' value, not just the half used for PRNG output.
15486
15487 2. Make the number of bytes from 'state' included into the hash
15488 independent from the number of PRNG bytes requested.
15489
15490 The first measure alone would be sufficient to avoid
15491 Markku-Juhani's attack. (Actually it had never occurred
15492 to me that the half of 'md_local' used for chaining was the
15493 half from which PRNG output bytes were taken -- I had always
15494 assumed that the secret half would be used.) The second
15495 measure makes sure that additional data from 'state' is never
15496 mixed into 'md_local' in small portions; this heuristically
15497 further strengthens the PRNG.
15498
15499 *Bodo Moeller*
15500
15501 * Fix crypto/bn/asm/mips3.s.
15502
15503 *Andy Polyakov*
15504
15505 * When only the key is given to "enc", the IV is undefined. Print out
15506 an error message in this case.
15507
15508 *Lutz Jaenicke*
15509
15510 * Handle special case when X509_NAME is empty in X509 printing routines.
15511
15512 *Steve Henson*
15513
15514 * In dsa_do_verify (crypto/dsa/dsa_ossl.c), verify that r and s are
15515 positive and less than q.
15516
15517 *Bodo Moeller*
15518
257e9d03 15519 * Don't change `*pointer` in CRYPTO_add_lock() is add_lock_callback is
5f8e6c50
DMSP
15520 used: it isn't thread safe and the add_lock_callback should handle
15521 that itself.
15522
15523 *Paul Rose <Paul.Rose@bridge.com>*
15524
15525 * Verify that incoming data obeys the block size in
15526 ssl3_enc (ssl/s3_enc.c) and tls1_enc (ssl/t1_enc.c).
15527
15528 *Bodo Moeller*
15529
15530 * Fix OAEP check.
15531
15532 *Ulf Möller, Bodo Möller*
15533
15534 * The countermeasure against Bleichbacher's attack on PKCS #1 v1.5
15535 RSA encryption was accidentally removed in s3_srvr.c in OpenSSL 0.9.5
15536 when fixing the server behaviour for backwards-compatible 'client
15537 hello' messages. (Note that the attack is impractical against
15538 SSL 3.0 and TLS 1.0 anyway because length and version checking
15539 means that the probability of guessing a valid ciphertext is
15540 around 2^-40; see section 5 in Bleichenbacher's CRYPTO '98
15541 paper.)
15542
15543 Before 0.9.5, the countermeasure (hide the error by generating a
15544 random 'decryption result') did not work properly because
15545 ERR_clear_error() was missing, meaning that SSL_get_error() would
15546 detect the supposedly ignored error.
15547
15548 Both problems are now fixed.
15549
15550 *Bodo Moeller*
15551
15552 * In crypto/bio/bf_buff.c, increase DEFAULT_BUFFER_SIZE to 4096
15553 (previously it was 1024).
15554
15555 *Bodo Moeller*
15556
15557 * Fix for compatibility mode trust settings: ignore trust settings
15558 unless some valid trust or reject settings are present.
15559
15560 *Steve Henson*
15561
15562 * Fix for blowfish EVP: its a variable length cipher.
15563
15564 *Steve Henson*
15565
15566 * Fix various bugs related to DSA S/MIME verification. Handle missing
15567 parameters in DSA public key structures and return an error in the
15568 DSA routines if parameters are absent.
15569
15570 *Steve Henson*
15571
15572 * In versions up to 0.9.6, RAND_file_name() resorted to file ".rnd"
15573 in the current directory if neither $RANDFILE nor $HOME was set.
15574 RAND_file_name() in 0.9.6a returned NULL in this case. This has
15575 caused some confusion to Windows users who haven't defined $HOME.
15576 Thus RAND_file_name() is changed again: e_os.h can define a
15577 DEFAULT_HOME, which will be used if $HOME is not set.
15578 For Windows, we use "C:"; on other platforms, we still require
15579 environment variables.
15580
15581 * Move 'if (!initialized) RAND_poll()' into regions protected by
15582 CRYPTO_LOCK_RAND. This is not strictly necessary, but avoids
15583 having multiple threads call RAND_poll() concurrently.
15584
15585 *Bodo Moeller*
15586
15587 * In crypto/rand/md_rand.c, replace 'add_do_not_lock' flag by a
15588 combination of a flag and a thread ID variable.
15589 Otherwise while one thread is in ssleay_rand_bytes (which sets the
15590 flag), *other* threads can enter ssleay_add_bytes without obeying
15591 the CRYPTO_LOCK_RAND lock (and may even illegally release the lock
15592 that they do not hold after the first thread unsets add_do_not_lock).
15593
15594 *Bodo Moeller*
15595
15596 * Change bctest again: '-x' expressions are not available in all
15597 versions of 'test'.
15598
15599 *Bodo Moeller*
15600
257e9d03 15601### Changes between 0.9.6 and 0.9.6a [5 Apr 2001]
5f8e6c50
DMSP
15602
15603 * Fix a couple of memory leaks in PKCS7_dataDecode()
15604
15605 *Steve Henson, reported by Heyun Zheng <hzheng@atdsprint.com>*
15606
15607 * Change Configure and Makefiles to provide EXE_EXT, which will contain
15608 the default extension for executables, if any. Also, make the perl
15609 scripts that use symlink() to test if it really exists and use "cp"
15610 if it doesn't. All this made OpenSSL compilable and installable in
15611 CygWin.
15612
15613 *Richard Levitte*
15614
15615 * Fix for asn1_GetSequence() for indefinite length constructed data.
15616 If SEQUENCE is length is indefinite just set c->slen to the total
15617 amount of data available.
15618
15619 *Steve Henson, reported by shige@FreeBSD.org*
15620
15621 *This change does not apply to 0.9.7.*
15622
15623 * Change bctest to avoid here-documents inside command substitution
15624 (workaround for FreeBSD /bin/sh bug).
15625 For compatibility with Ultrix, avoid shell functions (introduced
15626 in the bctest version that searches along $PATH).
15627
15628 *Bodo Moeller*
15629
15630 * Rename 'des_encrypt' to 'des_encrypt1'. This avoids the clashes
15631 with des_encrypt() defined on some operating systems, like Solaris
15632 and UnixWare.
15633
15634 *Richard Levitte*
15635
15636 * Check the result of RSA-CRT (see D. Boneh, R. DeMillo, R. Lipton:
15637 On the Importance of Eliminating Errors in Cryptographic
15638 Computations, J. Cryptology 14 (2001) 2, 101-119,
257e9d03 15639 <http://theory.stanford.edu/~dabo/papers/faults.ps.gz>).
5f8e6c50
DMSP
15640
15641 *Ulf Moeller*
15642
15643 * MIPS assembler BIGNUM division bug fix.
15644
15645 *Andy Polyakov*
15646
15647 * Disabled incorrect Alpha assembler code.
15648
15649 *Richard Levitte*
15650
15651 * Fix PKCS#7 decode routines so they correctly update the length
15652 after reading an EOC for the EXPLICIT tag.
15653
15654 *Steve Henson*
15655
15656 *This change does not apply to 0.9.7.*
15657
15658 * Fix bug in PKCS#12 key generation routines. This was triggered
15659 if a 3DES key was generated with a 0 initial byte. Include
15660 PKCS12_BROKEN_KEYGEN compilation option to retain the old
15661 (but broken) behaviour.
15662
15663 *Steve Henson*
15664
15665 * Enhance bctest to search for a working bc along $PATH and print
15666 it when found.
15667
15668 *Tim Rice <tim@multitalents.net> via Richard Levitte*
15669
15670 * Fix memory leaks in err.c: free err_data string if necessary;
15671 don't write to the wrong index in ERR_set_error_data.
15672
15673 *Bodo Moeller*
15674
15675 * Implement ssl23_peek (analogous to ssl23_read), which previously
15676 did not exist.
15677
15678 *Bodo Moeller*
15679
257e9d03 15680 * Replace rdtsc with `_emit` statements for VC++ version 5.
5f8e6c50
DMSP
15681
15682 *Jeremy Cooper <jeremy@baymoo.org>*
15683
15684 * Make it possible to reuse SSLv2 sessions.
15685
15686 *Richard Levitte*
15687
15688 * In copy_email() check for >= 0 as a return value for
15689 X509_NAME_get_index_by_NID() since 0 is a valid index.
15690
15691 *Steve Henson reported by Massimiliano Pala <madwolf@opensca.org>*
15692
15693 * Avoid coredump with unsupported or invalid public keys by checking if
15694 X509_get_pubkey() fails in PKCS7_verify(). Fix memory leak when
15695 PKCS7_verify() fails with non detached data.
15696
15697 *Steve Henson*
15698
15699 * Don't use getenv in library functions when run as setuid/setgid.
15700 New function OPENSSL_issetugid().
15701
15702 *Ulf Moeller*
15703
15704 * Avoid false positives in memory leak detection code (crypto/mem_dbg.c)
15705 due to incorrect handling of multi-threading:
15706
15707 1. Fix timing glitch in the MemCheck_off() portion of CRYPTO_mem_ctrl().
15708
15709 2. Fix logical glitch in is_MemCheck_on() aka CRYPTO_is_mem_check_on().
15710
15711 3. Count how many times MemCheck_off() has been called so that
15712 nested use can be treated correctly. This also avoids
15713 inband-signalling in the previous code (which relied on the
15714 assumption that thread ID 0 is impossible).
15715
15716 *Bodo Moeller*
15717
15718 * Add "-rand" option also to s_client and s_server.
15719
15720 *Lutz Jaenicke*
15721
15722 * Fix CPU detection on Irix 6.x.
15723 *Kurt Hockenbury <khockenb@stevens-tech.edu> and
257e9d03 15724 "Bruce W. Forsberg" <bruce.forsberg@baesystems.com>*
5f8e6c50
DMSP
15725
15726 * Fix X509_NAME bug which produced incorrect encoding if X509_NAME
15727 was empty.
15728
15729 *Steve Henson*
15730
15731 *This change does not apply to 0.9.7.*
15732
15733 * Use the cached encoding of an X509_NAME structure rather than
15734 copying it. This is apparently the reason for the libsafe "errors"
15735 but the code is actually correct.
15736
15737 *Steve Henson*
15738
15739 * Add new function BN_rand_range(), and fix DSA_sign_setup() to prevent
15740 Bleichenbacher's DSA attack.
15741 Extend BN_[pseudo_]rand: As before, top=1 forces the highest two bits
15742 to be set and top=0 forces the highest bit to be set; top=-1 is new
15743 and leaves the highest bit random.
15744
15745 *Ulf Moeller, Bodo Moeller*
15746
257e9d03 15747 * In the `NCONF_...`-based implementations for `CONF_...` queries
5f8e6c50
DMSP
15748 (crypto/conf/conf_lib.c), if the input LHASH is NULL, avoid using
15749 a temporary CONF structure with the data component set to NULL
15750 (which gives segmentation faults in lh_retrieve).
15751 Instead, use NULL for the CONF pointer in CONF_get_string and
15752 CONF_get_number (which may use environment variables) and directly
15753 return NULL from CONF_get_section.
15754
15755 *Bodo Moeller*
15756
15757 * Fix potential buffer overrun for EBCDIC.
15758
15759 *Ulf Moeller*
15760
15761 * Tolerate nonRepudiation as being valid for S/MIME signing and certSign
15762 keyUsage if basicConstraints absent for a CA.
15763
15764 *Steve Henson*
15765
15766 * Make SMIME_write_PKCS7() write mail header values with a format that
15767 is more generally accepted (no spaces before the semicolon), since
15768 some programs can't parse those values properly otherwise. Also make
15769 sure BIO's that break lines after each write do not create invalid
15770 headers.
15771
15772 *Richard Levitte*
15773
15774 * Make the CRL encoding routines work with empty SEQUENCE OF. The
15775 macros previously used would not encode an empty SEQUENCE OF
15776 and break the signature.
15777
15778 *Steve Henson*
15779
15780 *This change does not apply to 0.9.7.*
15781
15782 * Zero the premaster secret after deriving the master secret in
15783 DH ciphersuites.
15784
15785 *Steve Henson*
15786
15787 * Add some EVP_add_digest_alias registrations (as found in
15788 OpenSSL_add_all_digests()) to SSL_library_init()
15789 aka OpenSSL_add_ssl_algorithms(). This provides improved
15790 compatibility with peers using X.509 certificates
15791 with unconventional AlgorithmIdentifier OIDs.
15792
15793 *Bodo Moeller*
15794
15795 * Fix for Irix with NO_ASM.
15796
15797 *"Bruce W. Forsberg" <bruce.forsberg@baesystems.com>*
15798
15799 * ./config script fixes.
15800
15801 *Ulf Moeller, Richard Levitte*
15802
15803 * Fix 'openssl passwd -1'.
15804
15805 *Bodo Moeller*
15806
15807 * Change PKCS12_key_gen_asc() so it can cope with non null
15808 terminated strings whose length is passed in the passlen
15809 parameter, for example from PEM callbacks. This was done
15810 by adding an extra length parameter to asc2uni().
15811
15812 *Steve Henson, reported by <oddissey@samsung.co.kr>*
15813
15814 * Fix C code generated by 'openssl dsaparam -C': If a BN_bin2bn
15815 call failed, free the DSA structure.
15816
15817 *Bodo Moeller*
15818
15819 * Fix to uni2asc() to cope with zero length Unicode strings.
15820 These are present in some PKCS#12 files.
15821
15822 *Steve Henson*
15823
15824 * Increase s2->wbuf allocation by one byte in ssl2_new (ssl/s2_lib.c).
15825 Otherwise do_ssl_write (ssl/s2_pkt.c) will write beyond buffer limits
15826 when writing a 32767 byte record.
15827
15828 *Bodo Moeller; problem reported by Eric Day <eday@concentric.net>*
15829
257e9d03
RS
15830 * In `RSA_eay_public_{en,ed}crypt` and RSA_eay_mod_exp (rsa_eay.c),
15831 obtain lock CRYPTO_LOCK_RSA before setting `rsa->_method_mod_{n,p,q}`.
5f8e6c50
DMSP
15832
15833 (RSA objects have a reference count access to which is protected
15834 by CRYPTO_LOCK_RSA [see rsa_lib.c, s3_srvr.c, ssl_cert.c, ssl_rsa.c],
15835 so they are meant to be shared between threads.)
15836 *Bodo Moeller, Geoff Thorpe; original patch submitted by
15837 "Reddie, Steven" <Steven.Reddie@ca.com>*
15838
15839 * Fix a deadlock in CRYPTO_mem_leaks().
15840
15841 *Bodo Moeller*
15842
15843 * Use better test patterns in bntest.
15844
15845 *Ulf Möller*
15846
15847 * rand_win.c fix for Borland C.
15848
15849 *Ulf Möller*
15850
15851 * BN_rshift bugfix for n == 0.
15852
15853 *Bodo Moeller*
15854
15855 * Add a 'bctest' script that checks for some known 'bc' bugs
15856 so that 'make test' does not abort just because 'bc' is broken.
15857
15858 *Bodo Moeller*
15859
15860 * Store verify_result within SSL_SESSION also for client side to
15861 avoid potential security hole. (Re-used sessions on the client side
15862 always resulted in verify_result==X509_V_OK, not using the original
15863 result of the server certificate verification.)
15864
15865 *Lutz Jaenicke*
15866
15867 * Fix ssl3_pending: If the record in s->s3->rrec is not of type
15868 SSL3_RT_APPLICATION_DATA, return 0.
15869 Similarly, change ssl2_pending to return 0 if SSL_in_init(s) is true.
15870
15871 *Bodo Moeller*
15872
15873 * Fix SSL_peek:
15874 Both ssl2_peek and ssl3_peek, which were totally broken in earlier
15875 releases, have been re-implemented by renaming the previous
15876 implementations of ssl2_read and ssl3_read to ssl2_read_internal
15877 and ssl3_read_internal, respectively, and adding 'peek' parameters
15878 to them. The new ssl[23]_{read,peek} functions are calls to
15879 ssl[23]_read_internal with the 'peek' flag set appropriately.
15880 A 'peek' parameter has also been added to ssl3_read_bytes, which
15881 does the actual work for ssl3_read_internal.
15882
15883 *Bodo Moeller*
15884
15885 * Initialise "ex_data" member of RSA/DSA/DH structures prior to calling
15886 the method-specific "init()" handler. Also clean up ex_data after
15887 calling the method-specific "finish()" handler. Previously, this was
15888 happening the other way round.
15889
15890 *Geoff Thorpe*
15891
15892 * Increase BN_CTX_NUM (the number of BIGNUMs in a BN_CTX) to 16.
15893 The previous value, 12, was not always sufficient for BN_mod_exp().
15894
15895 *Bodo Moeller*
15896
15897 * Make sure that shared libraries get the internal name engine with
15898 the full version number and not just 0. This should mark the
15899 shared libraries as not backward compatible. Of course, this should
15900 be changed again when we can guarantee backward binary compatibility.
15901
15902 *Richard Levitte*
15903
15904 * Fix typo in get_cert_by_subject() in by_dir.c
15905
15906 *Jean-Marc Desperrier <jean-marc.desperrier@certplus.com>*
15907
15908 * Rework the system to generate shared libraries:
15909
15910 - Make note of the expected extension for the shared libraries and
15911 if there is a need for symbolic links from for example libcrypto.so.0
15912 to libcrypto.so.0.9.7. There is extended info in Configure for
15913 that.
15914
15915 - Make as few rebuilds of the shared libraries as possible.
15916
15917 - Still avoid linking the OpenSSL programs with the shared libraries.
15918
15919 - When installing, install the shared libraries separately from the
15920 static ones.
15921
15922 *Richard Levitte*
15923
15924 * Fix SSL_CTX_set_read_ahead macro to actually use its argument.
15925
15926 Copy SSL_CTX's read_ahead flag to SSL object directly in SSL_new
15927 and not in SSL_clear because the latter is also used by the
15928 accept/connect functions; previously, the settings made by
15929 SSL_set_read_ahead would be lost during the handshake.
15930
15931 *Bodo Moeller; problems reported by Anders Gertz <gertz@epact.se>*
15932
15933 * Correct util/mkdef.pl to be selective about disabled algorithms.
15934 Previously, it would create entries for disabled algorithms no
15935 matter what.
15936
15937 *Richard Levitte*
15938
15939 * Added several new manual pages for SSL_* function.
15940
15941 *Lutz Jaenicke*
15942
257e9d03 15943### Changes between 0.9.5a and 0.9.6 [24 Sep 2000]
5f8e6c50
DMSP
15944
15945 * In ssl23_get_client_hello, generate an error message when faced
15946 with an initial SSL 3.0/TLS record that is too small to contain the
15947 first two bytes of the ClientHello message, i.e. client_version.
15948 (Note that this is a pathologic case that probably has never happened
15949 in real life.) The previous approach was to use the version number
15950 from the record header as a substitute; but our protocol choice
15951 should not depend on that one because it is not authenticated
15952 by the Finished messages.
15953
15954 *Bodo Moeller*
15955
15956 * More robust randomness gathering functions for Windows.
15957
15958 *Jeffrey Altman <jaltman@columbia.edu>*
15959
15960 * For compatibility reasons if the flag X509_V_FLAG_ISSUER_CHECK is
15961 not set then we don't setup the error code for issuer check errors
15962 to avoid possibly overwriting other errors which the callback does
15963 handle. If an application does set the flag then we assume it knows
15964 what it is doing and can handle the new informational codes
15965 appropriately.
15966
15967 *Steve Henson*
15968
15969 * Fix for a nasty bug in ASN1_TYPE handling. ASN1_TYPE is used for
15970 a general "ANY" type, as such it should be able to decode anything
15971 including tagged types. However it didn't check the class so it would
15972 wrongly interpret tagged types in the same way as their universal
15973 counterpart and unknown types were just rejected. Changed so that the
15974 tagged and unknown types are handled in the same way as a SEQUENCE:
15975 that is the encoding is stored intact. There is also a new type
15976 "V_ASN1_OTHER" which is used when the class is not universal, in this
15977 case we have no idea what the actual type is so we just lump them all
15978 together.
15979
15980 *Steve Henson*
15981
15982 * On VMS, stdout may very well lead to a file that is written to
15983 in a record-oriented fashion. That means that every write() will
15984 write a separate record, which will be read separately by the
15985 programs trying to read from it. This can be very confusing.
15986
15987 The solution is to put a BIO filter in the way that will buffer
15988 text until a linefeed is reached, and then write everything a
15989 line at a time, so every record written will be an actual line,
15990 not chunks of lines and not (usually doesn't happen, but I've
15991 seen it once) several lines in one record. BIO_f_linebuffer() is
15992 the answer.
15993
15994 Currently, it's a VMS-only method, because that's where it has
15995 been tested well enough.
15996
15997 *Richard Levitte*
15998
15999 * Remove 'optimized' squaring variant in BN_mod_mul_montgomery,
16000 it can return incorrect results.
16001 (Note: The buggy variant was not enabled in OpenSSL 0.9.5a,
16002 but it was in 0.9.6-beta[12].)
16003
16004 *Bodo Moeller*
16005
16006 * Disable the check for content being present when verifying detached
16007 signatures in pk7_smime.c. Some versions of Netscape (wrongly)
16008 include zero length content when signing messages.
16009
16010 *Steve Henson*
16011
16012 * New BIO_shutdown_wr macro, which invokes the BIO_C_SHUTDOWN_WR
16013 BIO_ctrl (for BIO pairs).
16014
16015 *Bodo Möller*
16016
16017 * Add DSO method for VMS.
16018
16019 *Richard Levitte*
16020
16021 * Bug fix: Montgomery multiplication could produce results with the
16022 wrong sign.
16023
16024 *Ulf Möller*
16025
16026 * Add RPM specification openssl.spec and modify it to build three
16027 packages. The default package contains applications, application
16028 documentation and run-time libraries. The devel package contains
16029 include files, static libraries and function documentation. The
16030 doc package contains the contents of the doc directory. The original
16031 openssl.spec was provided by Damien Miller <djm@mindrot.org>.
16032
16033 *Richard Levitte*
16034
16035 * Add a large number of documentation files for many SSL routines.
16036
16037 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>*
16038
16039 * Add a configuration entry for Sony News 4.
16040
16041 *NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>*
16042
16043 * Don't set the two most significant bits to one when generating a
16044 random number < q in the DSA library.
16045
16046 *Ulf Möller*
16047
16048 * New SSL API mode 'SSL_MODE_AUTO_RETRY'. This disables the default
16049 behaviour that SSL_read may result in SSL_ERROR_WANT_READ (even if
16050 the underlying transport is blocking) if a handshake took place.
16051 (The default behaviour is needed by applications such as s_client
16052 and s_server that use select() to determine when to use SSL_read;
16053 but for applications that know in advance when to expect data, it
16054 just makes things more complicated.)
16055
16056 *Bodo Moeller*
16057
16058 * Add RAND_egd_bytes(), which gives control over the number of bytes read
16059 from EGD.
16060
16061 *Ben Laurie*
16062
257e9d03 16063 * Add a few more EBCDIC conditionals that make `req` and `x509`
5f8e6c50
DMSP
16064 work better on such systems.
16065
16066 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
16067
16068 * Add two demo programs for PKCS12_parse() and PKCS12_create().
16069 Update PKCS12_parse() so it copies the friendlyName and the
16070 keyid to the certificates aux info.
16071
16072 *Steve Henson*
16073
16074 * Fix bug in PKCS7_verify() which caused an infinite loop
16075 if there was more than one signature.
16076
16077 *Sven Uszpelkat <su@celocom.de>*
16078
16079 * Major change in util/mkdef.pl to include extra information
16080 about each symbol, as well as presenting variables as well
16081 as functions. This change means that there's n more need
16082 to rebuild the .num files when some algorithms are excluded.
16083
16084 *Richard Levitte*
16085
16086 * Allow the verify time to be set by an application,
16087 rather than always using the current time.
16088
16089 *Steve Henson*
16090
16091 * Phase 2 verify code reorganisation. The certificate
16092 verify code now looks up an issuer certificate by a
16093 number of criteria: subject name, authority key id
16094 and key usage. It also verifies self signed certificates
16095 by the same criteria. The main comparison function is
16096 X509_check_issued() which performs these checks.
16097
16098 Lot of changes were necessary in order to support this
16099 without completely rewriting the lookup code.
16100
16101 Authority and subject key identifier are now cached.
16102
16103 The LHASH 'certs' is X509_STORE has now been replaced
16104 by a STACK_OF(X509_OBJECT). This is mainly because an
16105 LHASH can't store or retrieve multiple objects with
16106 the same hash value.
16107
16108 As a result various functions (which were all internal
16109 use only) have changed to handle the new X509_STORE
16110 structure. This will break anything that messed round
16111 with X509_STORE internally.
16112
16113 The functions X509_STORE_add_cert() now checks for an
16114 exact match, rather than just subject name.
16115
16116 The X509_STORE API doesn't directly support the retrieval
16117 of multiple certificates matching a given criteria, however
16118 this can be worked round by performing a lookup first
16119 (which will fill the cache with candidate certificates)
16120 and then examining the cache for matches. This is probably
16121 the best we can do without throwing out X509_LOOKUP
16122 entirely (maybe later...).
16123
16124 The X509_VERIFY_CTX structure has been enhanced considerably.
16125
16126 All certificate lookup operations now go via a get_issuer()
16127 callback. Although this currently uses an X509_STORE it
16128 can be replaced by custom lookups. This is a simple way
16129 to bypass the X509_STORE hackery necessary to make this
16130 work and makes it possible to use more efficient techniques
16131 in future. A very simple version which uses a simple
16132 STACK for its trusted certificate store is also provided
16133 using X509_STORE_CTX_trusted_stack().
16134
16135 The verify_cb() and verify() callbacks now have equivalents
16136 in the X509_STORE_CTX structure.
16137
16138 X509_STORE_CTX also has a 'flags' field which can be used
16139 to customise the verify behaviour.
16140
16141 *Steve Henson*
16142
16143 * Add new PKCS#7 signing option PKCS7_NOSMIMECAP which
16144 excludes S/MIME capabilities.
16145
16146 *Steve Henson*
16147
16148 * When a certificate request is read in keep a copy of the
16149 original encoding of the signed data and use it when outputting
16150 again. Signatures then use the original encoding rather than
16151 a decoded, encoded version which may cause problems if the
16152 request is improperly encoded.
16153
16154 *Steve Henson*
16155
16156 * For consistency with other BIO_puts implementations, call
16157 buffer_write(b, ...) directly in buffer_puts instead of calling
16158 BIO_write(b, ...).
16159
16160 In BIO_puts, increment b->num_write as in BIO_write.
16161
16162 *Peter.Sylvester@EdelWeb.fr*
16163
16164 * Fix BN_mul_word for the case where the word is 0. (We have to use
16165 BN_zero, we may not return a BIGNUM with an array consisting of
16166 words set to zero.)
16167
16168 *Bodo Moeller*
16169
16170 * Avoid calling abort() from within the library when problems are
16171 detected, except if preprocessor symbols have been defined
16172 (such as REF_CHECK, BN_DEBUG etc.).
16173
16174 *Bodo Moeller*
16175
16176 * New openssl application 'rsautl'. This utility can be
4d49b685 16177 used for low-level RSA operations. DER public key
5f8e6c50
DMSP
16178 BIO/fp routines also added.
16179
16180 *Steve Henson*
16181
16182 * New Configure entry and patches for compiling on QNX 4.
16183
16184 *Andreas Schneider <andreas@ds3.etech.fh-hamburg.de>*
16185
16186 * A demo state-machine implementation was sponsored by
257e9d03 16187 Nuron (<http://www.nuron.com/>) and is now available in
5f8e6c50
DMSP
16188 demos/state_machine.
16189
16190 *Ben Laurie*
16191
16192 * New options added to the 'dgst' utility for signature
16193 generation and verification.
16194
16195 *Steve Henson*
16196
16197 * Unrecognized PKCS#7 content types are now handled via a
16198 catch all ASN1_TYPE structure. This allows unsupported
16199 types to be stored as a "blob" and an application can
16200 encode and decode it manually.
16201
16202 *Steve Henson*
16203
16204 * Fix various signed/unsigned issues to make a_strex.c
16205 compile under VC++.
16206
16207 *Oscar Jacobsson <oscar.jacobsson@celocom.com>*
16208
16209 * ASN1 fixes. i2d_ASN1_OBJECT was not returning the correct
16210 length if passed a buffer. ASN1_INTEGER_to_BN failed
16211 if passed a NULL BN and its argument was negative.
16212
16213 *Steve Henson, pointed out by Sven Heiberg <sven@tartu.cyber.ee>*
16214
16215 * Modification to PKCS#7 encoding routines to output definite
16216 length encoding. Since currently the whole structures are in
16217 memory there's not real point in using indefinite length
16218 constructed encoding. However if OpenSSL is compiled with
16219 the flag PKCS7_INDEFINITE_ENCODING the old form is used.
16220
16221 *Steve Henson*
16222
16223 * Added BIO_vprintf() and BIO_vsnprintf().
16224
16225 *Richard Levitte*
16226
16227 * Added more prefixes to parse for in the strings written
16228 through a logging bio, to cover all the levels that are available
16229 through syslog. The prefixes are now:
16230
16231 PANIC, EMERG, EMR => LOG_EMERG
16232 ALERT, ALR => LOG_ALERT
16233 CRIT, CRI => LOG_CRIT
16234 ERROR, ERR => LOG_ERR
16235 WARNING, WARN, WAR => LOG_WARNING
16236 NOTICE, NOTE, NOT => LOG_NOTICE
16237 INFO, INF => LOG_INFO
16238 DEBUG, DBG => LOG_DEBUG
16239
16240 and as before, if none of those prefixes are present at the
16241 beginning of the string, LOG_ERR is chosen.
16242
257e9d03 16243 On Win32, the `LOG_*` levels are mapped according to this:
5f8e6c50
DMSP
16244
16245 LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR => EVENTLOG_ERROR_TYPE
16246 LOG_WARNING => EVENTLOG_WARNING_TYPE
16247 LOG_NOTICE, LOG_INFO, LOG_DEBUG => EVENTLOG_INFORMATION_TYPE
16248
5f8e6c50
DMSP
16249 *Richard Levitte*
16250
16251 * Made it possible to reconfigure with just the configuration
16252 argument "reconf" or "reconfigure". The command line arguments
16253 are stored in Makefile.ssl in the variable CONFIGURE_ARGS,
16254 and are retrieved from there when reconfiguring.
16255
16256 *Richard Levitte*
16257
16258 * MD4 implemented.
16259
16260 *Assar Westerlund <assar@sics.se>, Richard Levitte*
16261
16262 * Add the arguments -CAfile and -CApath to the pkcs12 utility.
16263
16264 *Richard Levitte*
16265
16266 * The obj_dat.pl script was messing up the sorting of object
16267 names. The reason was that it compared the quoted version
16268 of strings as a result "OCSP" > "OCSP Signing" because
16269 " > SPACE. Changed script to store unquoted versions of
16270 names and add quotes on output. It was also omitting some
16271 names from the lookup table if they were given a default
16272 value (that is if SN is missing it is given the same
16273 value as LN and vice versa), these are now added on the
16274 grounds that if an object has a name we should be able to
16275 look it up. Finally added warning output when duplicate
16276 short or long names are found.
16277
16278 *Steve Henson*
16279
16280 * Changes needed for Tandem NSK.
16281
16282 *Scott Uroff <scott@xypro.com>*
16283
16284 * Fix SSL 2.0 rollback checking: Due to an off-by-one error in
16285 RSA_padding_check_SSLv23(), special padding was never detected
16286 and thus the SSL 3.0/TLS 1.0 countermeasure against protocol
16287 version rollback attacks was not effective.
16288
16289 In s23_clnt.c, don't use special rollback-attack detection padding
16290 (RSA_SSLV23_PADDING) if SSL 2.0 is the only protocol enabled in the
16291 client; similarly, in s23_srvr.c, don't do the rollback check if
16292 SSL 2.0 is the only protocol enabled in the server.
16293
16294 *Bodo Moeller*
16295
16296 * Make it possible to get hexdumps of unprintable data with 'openssl
16297 asn1parse'. By implication, the functions ASN1_parse_dump() and
16298 BIO_dump_indent() are added.
16299
16300 *Richard Levitte*
16301
16302 * New functions ASN1_STRING_print_ex() and X509_NAME_print_ex()
16303 these print out strings and name structures based on various
16304 flags including RFC2253 support and proper handling of
16305 multibyte characters. Added options to the 'x509' utility
16306 to allow the various flags to be set.
16307
16308 *Steve Henson*
16309
16310 * Various fixes to use ASN1_TIME instead of ASN1_UTCTIME.
16311 Also change the functions X509_cmp_current_time() and
16312 X509_gmtime_adj() work with an ASN1_TIME structure,
16313 this will enable certificates using GeneralizedTime in validity
16314 dates to be checked.
16315
16316 *Steve Henson*
16317
16318 * Make the NEG_PUBKEY_BUG code (which tolerates invalid
16319 negative public key encodings) on by default,
16320 NO_NEG_PUBKEY_BUG can be set to disable it.
16321
16322 *Steve Henson*
16323
16324 * New function c2i_ASN1_OBJECT() which acts on ASN1_OBJECT
16325 content octets. An i2c_ASN1_OBJECT is unnecessary because
16326 the encoding can be trivially obtained from the structure.
16327
16328 *Steve Henson*
16329
257e9d03
RS
16330 * crypto/err.c locking bugfix: Use write locks (`CRYPTO_w_[un]lock`),
16331 not read locks (`CRYPTO_r_[un]lock`).
5f8e6c50
DMSP
16332
16333 *Bodo Moeller*
16334
16335 * A first attempt at creating official support for shared
16336 libraries through configuration. I've kept it so the
16337 default is static libraries only, and the OpenSSL programs
16338 are always statically linked for now, but there are
16339 preparations for dynamic linking in place.
16340 This has been tested on Linux and Tru64.
16341
16342 *Richard Levitte*
16343
16344 * Randomness polling function for Win9x, as described in:
16345 Peter Gutmann, Software Generation of Practically Strong
16346 Random Numbers.
16347
16348 *Ulf Möller*
16349
16350 * Fix so PRNG is seeded in req if using an already existing
16351 DSA key.
16352
16353 *Steve Henson*
16354
16355 * New options to smime application. -inform and -outform
16356 allow alternative formats for the S/MIME message including
16357 PEM and DER. The -content option allows the content to be
16358 specified separately. This should allow things like Netscape
16359 form signing output easier to verify.
16360
16361 *Steve Henson*
16362
16363 * Fix the ASN1 encoding of tags using the 'long form'.
16364
16365 *Steve Henson*
16366
257e9d03 16367 * New ASN1 functions, `i2c_*` and `c2i_*` for INTEGER and BIT
5f8e6c50
DMSP
16368 STRING types. These convert content octets to and from the
16369 underlying type. The actual tag and length octets are
16370 already assumed to have been read in and checked. These
16371 are needed because all other string types have virtually
16372 identical handling apart from the tag. By having versions
16373 of the ASN1 functions that just operate on content octets
16374 IMPLICIT tagging can be handled properly. It also allows
16375 the ASN1_ENUMERATED code to be cut down because ASN1_ENUMERATED
16376 and ASN1_INTEGER are identical apart from the tag.
16377
16378 *Steve Henson*
16379
16380 * Change the handling of OID objects as follows:
16381
16382 - New object identifiers are inserted in objects.txt, following
1dc1ea18 16383 the syntax given in [crypto/objects/README.md](crypto/objects/README.md).
5f8e6c50
DMSP
16384 - objects.pl is used to process obj_mac.num and create a new
16385 obj_mac.h.
16386 - obj_dat.pl is used to create a new obj_dat.h, using the data in
16387 obj_mac.h.
16388
16389 This is currently kind of a hack, and the perl code in objects.pl
16390 isn't very elegant, but it works as I intended. The simplest way
16391 to check that it worked correctly is to look in obj_dat.h and
16392 check the array nid_objs and make sure the objects haven't moved
16393 around (this is important!). Additions are OK, as well as
16394 consistent name changes.
16395
16396 *Richard Levitte*
16397
16398 * Add BSD-style MD5-based passwords to 'openssl passwd' (option '-1').
16399
16400 *Bodo Moeller*
16401
16402 * Addition of the command line parameter '-rand file' to 'openssl req'.
16403 The given file adds to whatever has already been seeded into the
16404 random pool through the RANDFILE configuration file option or
16405 environment variable, or the default random state file.
16406
16407 *Richard Levitte*
16408
16409 * mkstack.pl now sorts each macro group into lexical order.
16410 Previously the output order depended on the order the files
16411 appeared in the directory, resulting in needless rewriting
16412 of safestack.h .
16413
16414 *Steve Henson*
16415
16416 * Patches to make OpenSSL compile under Win32 again. Mostly
16417 work arounds for the VC++ problem that it treats func() as
16418 func(void). Also stripped out the parts of mkdef.pl that
16419 added extra typesafe functions: these no longer exist.
16420
16421 *Steve Henson*
16422
16423 * Reorganisation of the stack code. The macros are now all
16424 collected in safestack.h . Each macro is defined in terms of
257e9d03 16425 a "stack macro" of the form `SKM_<name>(type, a, b)`. The
5f8e6c50
DMSP
16426 DEBUG_SAFESTACK is now handled in terms of function casts,
16427 this has the advantage of retaining type safety without the
16428 use of additional functions. If DEBUG_SAFESTACK is not defined
16429 then the non typesafe macros are used instead. Also modified the
16430 mkstack.pl script to handle the new form. Needs testing to see
16431 if which (if any) compilers it chokes and maybe make DEBUG_SAFESTACK
16432 the default if no major problems. Similar behaviour for ASN1_SET_OF
16433 and PKCS12_STACK_OF.
16434
16435 *Steve Henson*
16436
16437 * When some versions of IIS use the 'NET' form of private key the
16438 key derivation algorithm is different. Normally MD5(password) is
16439 used as a 128 bit RC4 key. In the modified case
16440 MD5(MD5(password) + "SGCKEYSALT") is used instead. Added some
16441 new functions i2d_RSA_NET(), d2i_RSA_NET() etc which are the same
16442 as the old Netscape_RSA functions except they have an additional
16443 'sgckey' parameter which uses the modified algorithm. Also added
16444 an -sgckey command line option to the rsa utility. Thanks to
16445 Adrian Peck <bertie@ncipher.com> for posting details of the modified
16446 algorithm to openssl-dev.
16447
16448 *Steve Henson*
16449
16450 * The evp_local.h macros were using 'c.##kname' which resulted in
16451 invalid expansion on some systems (SCO 5.0.5 for example).
16452 Corrected to 'c.kname'.
16453
16454 *Phillip Porch <root@theporch.com>*
16455
16456 * New X509_get1_email() and X509_REQ_get1_email() functions that return
16457 a STACK of email addresses from a certificate or request, these look
16458 in the subject name and the subject alternative name extensions and
16459 omit any duplicate addresses.
16460
16461 *Steve Henson*
16462
16463 * Re-implement BN_mod_exp2_mont using independent (and larger) windows.
16464 This makes DSA verification about 2 % faster.
16465
16466 *Bodo Moeller*
16467
257e9d03 16468 * Increase maximum window size in `BN_mod_exp_...` to 6 bits instead of 5
5f8e6c50
DMSP
16469 (meaning that now 2^5 values will be precomputed, which is only 4 KB
16470 plus overhead for 1024 bit moduli).
16471 This makes exponentiations about 0.5 % faster for 1024 bit
16472 exponents (as measured by "openssl speed rsa2048").
16473
16474 *Bodo Moeller*
16475
16476 * Rename memory handling macros to avoid conflicts with other
16477 software:
16478 Malloc => OPENSSL_malloc
16479 Malloc_locked => OPENSSL_malloc_locked
16480 Realloc => OPENSSL_realloc
16481 Free => OPENSSL_free
16482
16483 *Richard Levitte*
16484
16485 * New function BN_mod_exp_mont_word for small bases (roughly 15%
16486 faster than BN_mod_exp_mont, i.e. 7% for a full DH exchange).
16487
16488 *Bodo Moeller*
16489
16490 * CygWin32 support.
16491
16492 *John Jarvie <jjarvie@newsguy.com>*
16493
16494 * The type-safe stack code has been rejigged. It is now only compiled
16495 in when OpenSSL is configured with the DEBUG_SAFESTACK option and
16496 by default all type-specific stack functions are "#define"d back to
16497 standard stack functions. This results in more streamlined output
16498 but retains the type-safety checking possibilities of the original
16499 approach.
16500
16501 *Geoff Thorpe*
16502
16503 * The STACK code has been cleaned up, and certain type declarations
16504 that didn't make a lot of sense have been brought in line. This has
16505 also involved a cleanup of sorts in safestack.h to more correctly
16506 map type-safe stack functions onto their plain stack counterparts.
16507 This work has also resulted in a variety of "const"ifications of
257e9d03 16508 lots of the code, especially `_cmp` operations which should normally
5f8e6c50
DMSP
16509 be prototyped with "const" parameters anyway.
16510
16511 *Geoff Thorpe*
16512
16513 * When generating bytes for the first time in md_rand.c, 'stir the pool'
16514 by seeding with STATE_SIZE dummy bytes (with zero entropy count).
16515 (The PRNG state consists of two parts, the large pool 'state' and 'md',
16516 where all of 'md' is used each time the PRNG is used, but 'state'
16517 is used only indexed by a cyclic counter. As entropy may not be
16518 well distributed from the beginning, 'md' is important as a
16519 chaining variable. However, the output function chains only half
16520 of 'md', i.e. 80 bits. ssleay_rand_add, on the other hand, chains
16521 all of 'md', and seeding with STATE_SIZE dummy bytes will result
16522 in all of 'state' being rewritten, with the new values depending
16523 on virtually all of 'md'. This overcomes the 80 bit limitation.)
16524
16525 *Bodo Moeller*
16526
16527 * In ssl/s2_clnt.c and ssl/s3_clnt.c, call ERR_clear_error() when
16528 the handshake is continued after ssl_verify_cert_chain();
16529 otherwise, if SSL_VERIFY_NONE is set, remaining error codes
16530 can lead to 'unexplainable' connection aborts later.
16531
16532 *Bodo Moeller; problem tracked down by Lutz Jaenicke*
16533
16534 * Major EVP API cipher revision.
16535 Add hooks for extra EVP features. This allows various cipher
16536 parameters to be set in the EVP interface. Support added for variable
16537 key length ciphers via the EVP_CIPHER_CTX_set_key_length() function and
16538 setting of RC2 and RC5 parameters.
16539
16540 Modify EVP_OpenInit() and EVP_SealInit() to cope with variable key length
16541 ciphers.
16542
16543 Remove lots of duplicated code from the EVP library. For example *every*
16544 cipher init() function handles the 'iv' in the same way according to the
16545 cipher mode. They also all do nothing if the 'key' parameter is NULL and
16546 for CFB and OFB modes they zero ctx->num.
16547
16548 New functionality allows removal of S/MIME code RC2 hack.
16549
16550 Most of the routines have the same form and so can be declared in terms
16551 of macros.
16552
16553 By shifting this to the top level EVP_CipherInit() it can be removed from
16554 all individual ciphers. If the cipher wants to handle IVs or keys
16555 differently it can set the EVP_CIPH_CUSTOM_IV or EVP_CIPH_ALWAYS_CALL_INIT
16556 flags.
16557
16558 Change lots of functions like EVP_EncryptUpdate() to now return a
16559 value: although software versions of the algorithms cannot fail
16560 any installed hardware versions can.
16561
16562 *Steve Henson*
16563
16564 * Implement SSL_OP_TLS_ROLLBACK_BUG: In ssl3_get_client_key_exchange, if
16565 this option is set, tolerate broken clients that send the negotiated
16566 protocol version number instead of the requested protocol version
16567 number.
16568
16569 *Bodo Moeller*
16570
257e9d03 16571 * Call dh_tmp_cb (set by `..._TMP_DH_CB`) with correct 'is_export' flag;
5f8e6c50
DMSP
16572 i.e. non-zero for export ciphersuites, zero otherwise.
16573 Previous versions had this flag inverted, inconsistent with
16574 rsa_tmp_cb (..._TMP_RSA_CB).
16575
16576 *Bodo Moeller; problem reported by Amit Chopra*
16577
16578 * Add missing DSA library text string. Work around for some IIS
16579 key files with invalid SEQUENCE encoding.
16580
16581 *Steve Henson*
16582
16583 * Add a document (doc/standards.txt) that list all kinds of standards
16584 and so on that are implemented in OpenSSL.
16585
16586 *Richard Levitte*
16587
16588 * Enhance c_rehash script. Old version would mishandle certificates
16589 with the same subject name hash and wouldn't handle CRLs at all.
16590 Added -fingerprint option to crl utility, to support new c_rehash
16591 features.
16592
16593 *Steve Henson*
16594
16595 * Eliminate non-ANSI declarations in crypto.h and stack.h.
16596
16597 *Ulf Möller*
16598
16599 * Fix for SSL server purpose checking. Server checking was
16600 rejecting certificates which had extended key usage present
16601 but no ssl client purpose.
16602
16603 *Steve Henson, reported by Rene Grosser <grosser@hisolutions.com>*
16604
16605 * Make PKCS#12 code work with no password. The PKCS#12 spec
16606 is a little unclear about how a blank password is handled.
16607 Since the password in encoded as a BMPString with terminating
16608 double NULL a zero length password would end up as just the
16609 double NULL. However no password at all is different and is
16610 handled differently in the PKCS#12 key generation code. NS
16611 treats a blank password as zero length. MSIE treats it as no
16612 password on export: but it will try both on import. We now do
16613 the same: PKCS12_parse() tries zero length and no password if
16614 the password is set to "" or NULL (NULL is now a valid password:
16615 it wasn't before) as does the pkcs12 application.
16616
16617 *Steve Henson*
16618
ec2bfb7d 16619 * Bugfixes in `apps/x509.c`: Avoid a memory leak; and don't use
5f8e6c50
DMSP
16620 perror when PEM_read_bio_X509_REQ fails, the error message must
16621 be obtained from the error queue.
16622
16623 *Bodo Moeller*
16624
16625 * Avoid 'thread_hash' memory leak in crypto/err/err.c by freeing
16626 it in ERR_remove_state if appropriate, and change ERR_get_state
16627 accordingly to avoid race conditions (this is necessary because
16628 thread_hash is no longer constant once set).
16629
16630 *Bodo Moeller*
16631
16632 * Bugfix for linux-elf makefile.one.
16633
16634 *Ulf Möller*
16635
16636 * RSA_get_default_method() will now cause a default
16637 RSA_METHOD to be chosen if one doesn't exist already.
16638 Previously this was only set during a call to RSA_new()
16639 or RSA_new_method(NULL) meaning it was possible for
16640 RSA_get_default_method() to return NULL.
16641
16642 *Geoff Thorpe*
16643
16644 * Added native name translation to the existing DSO code
16645 that will convert (if the flag to do so is set) filenames
16646 that are sufficiently small and have no path information
16647 into a canonical native form. Eg. "blah" converted to
16648 "libblah.so" or "blah.dll" etc.
16649
16650 *Geoff Thorpe*
16651
16652 * New function ERR_error_string_n(e, buf, len) which is like
16653 ERR_error_string(e, buf), but writes at most 'len' bytes
16654 including the 0 terminator. For ERR_error_string_n, 'buf'
16655 may not be NULL.
16656
16657 *Damien Miller <djm@mindrot.org>, Bodo Moeller*
16658
16659 * CONF library reworked to become more general. A new CONF
16660 configuration file reader "class" is implemented as well as a
257e9d03
RS
16661 new functions (`NCONF_*`, for "New CONF") to handle it. The now
16662 old `CONF_*` functions are still there, but are reimplemented to
5f8e6c50
DMSP
16663 work in terms of the new functions. Also, a set of functions
16664 to handle the internal storage of the configuration data is
16665 provided to make it easier to write new configuration file
16666 reader "classes" (I can definitely see something reading a
257e9d03 16667 configuration file in XML format, for example), called `_CONF_*`,
5f8e6c50
DMSP
16668 or "the configuration storage API"...
16669
16670 The new configuration file reading functions are:
16671
16672 NCONF_new, NCONF_free, NCONF_load, NCONF_load_fp, NCONF_load_bio,
16673 NCONF_get_section, NCONF_get_string, NCONF_get_numbre
16674
16675 NCONF_default, NCONF_WIN32
16676
16677 NCONF_dump_fp, NCONF_dump_bio
16678
16679 NCONF_default and NCONF_WIN32 are method (or "class") choosers,
16680 NCONF_new creates a new CONF object. This works in the same way
16681 as other interfaces in OpenSSL, like the BIO interface.
257e9d03 16682 `NCONF_dump_*` dump the internal storage of the configuration file,
5f8e6c50 16683 which is useful for debugging. All other functions take the same
257e9d03
RS
16684 arguments as the old `CONF_*` functions with the exception of the
16685 first that must be a `CONF *` instead of a `LHASH *`.
5f8e6c50 16686
257e9d03 16687 To make it easier to use the new classes with the old `CONF_*` functions,
5f8e6c50
DMSP
16688 the function CONF_set_default_method is provided.
16689
16690 *Richard Levitte*
16691
16692 * Add '-tls1' option to 'openssl ciphers', which was already
16693 mentioned in the documentation but had not been implemented.
16694 (This option is not yet really useful because even the additional
16695 experimental TLS 1.0 ciphers are currently treated as SSL 3.0 ciphers.)
16696
16697 *Bodo Moeller*
16698
16699 * Initial DSO code added into libcrypto for letting OpenSSL (and
16700 OpenSSL-based applications) load shared libraries and bind to
16701 them in a portable way.
16702
16703 *Geoff Thorpe, with contributions from Richard Levitte*
16704
257e9d03 16705### Changes between 0.9.5 and 0.9.5a [1 Apr 2000]
5f8e6c50
DMSP
16706
16707 * Make sure _lrotl and _lrotr are only used with MSVC.
16708
16709 * Use lock CRYPTO_LOCK_RAND correctly in ssleay_rand_status
16710 (the default implementation of RAND_status).
16711
16712 * Rename openssl x509 option '-crlext', which was added in 0.9.5,
16713 to '-clrext' (= clear extensions), as intended and documented.
16714 *Bodo Moeller; inconsistency pointed out by Michael Attili
16715 <attili@amaxo.com>*
16716
16717 * Fix for HMAC. It wasn't zeroing the rest of the block if the key length
16718 was larger than the MD block size.
16719
16720 *Steve Henson, pointed out by Yost William <YostW@tce.com>*
16721
16722 * Modernise PKCS12_parse() so it uses STACK_OF(X509) for its ca argument
16723 fix a leak when the ca argument was passed as NULL. Stop X509_PUBKEY_set()
16724 using the passed key: if the passed key was a private key the result
16725 of X509_print(), for example, would be to print out all the private key
16726 components.
16727
16728 *Steve Henson*
16729
16730 * des_quad_cksum() byte order bug fix.
16731 *Ulf Möller, using the problem description in krb4-0.9.7, where
257e9d03 16732 the solution is attributed to Derrick J Brashear <shadow@DEMENTIA.ORG>*
5f8e6c50
DMSP
16733
16734 * Fix so V_ASN1_APP_CHOOSE works again: however its use is strongly
16735 discouraged.
16736
16737 *Steve Henson, pointed out by Brian Korver <briank@cs.stanford.edu>*
16738
16739 * For easily testing in shell scripts whether some command
16740 'openssl XXX' exists, the new pseudo-command 'openssl no-XXX'
16741 returns with exit code 0 iff no command of the given name is available.
16742 'no-XXX' is printed in this case, 'XXX' otherwise. In both cases,
16743 the output goes to stdout and nothing is printed to stderr.
16744 Additional arguments are always ignored.
16745
16746 Since for each cipher there is a command of the same name,
16747 the 'no-cipher' compilation switches can be tested this way.
16748
16749 ('openssl no-XXX' is not able to detect pseudo-commands such
16750 as 'quit', 'list-XXX-commands', or 'no-XXX' itself.)
16751
16752 *Bodo Moeller*
16753
16754 * Update test suite so that 'make test' succeeds in 'no-rsa' configuration.
16755
16756 *Bodo Moeller*
16757
16758 * For SSL_[CTX_]set_tmp_dh, don't create a DH key if SSL_OP_SINGLE_DH_USE
16759 is set; it will be thrown away anyway because each handshake creates
16760 its own key.
16761 ssl_cert_dup, which is used by SSL_new, now copies DH keys in addition
16762 to parameters -- in previous versions (since OpenSSL 0.9.3) the
16763 'default key' from SSL_CTX_set_tmp_dh would always be lost, meaning
16764 you effectively got SSL_OP_SINGLE_DH_USE when using this macro.
16765
16766 *Bodo Moeller*
16767
16768 * New s_client option -ign_eof: EOF at stdin is ignored, and
16769 'Q' and 'R' lose their special meanings (quit/renegotiate).
16770 This is part of what -quiet does; unlike -quiet, -ign_eof
16771 does not suppress any output.
16772
16773 *Richard Levitte*
16774
16775 * Add compatibility options to the purpose and trust code. The
16776 purpose X509_PURPOSE_ANY is "any purpose" which automatically
16777 accepts a certificate or CA, this was the previous behaviour,
16778 with all the associated security issues.
16779
16780 X509_TRUST_COMPAT is the old trust behaviour: only and
16781 automatically trust self signed roots in certificate store. A
16782 new trust setting X509_TRUST_DEFAULT is used to specify that
16783 a purpose has no associated trust setting and it should instead
16784 use the value in the default purpose.
16785
16786 *Steve Henson*
16787
16788 * Fix the PKCS#8 DSA private key code so it decodes keys again
16789 and fix a memory leak.
16790
16791 *Steve Henson*
16792
16793 * In util/mkerr.pl (which implements 'make errors'), preserve
16794 reason strings from the previous version of the .c file, as
16795 the default to have only downcase letters (and digits) in
16796 automatically generated reasons codes is not always appropriate.
16797
16798 *Bodo Moeller*
16799
16800 * In ERR_load_ERR_strings(), build an ERR_LIB_SYS error reason table
16801 using strerror. Previously, ERR_reason_error_string() returned
16802 library names as reason strings for SYSerr; but SYSerr is a special
16803 case where small numbers are errno values, not library numbers.
16804
16805 *Bodo Moeller*
16806
16807 * Add '-dsaparam' option to 'openssl dhparam' application. This
16808 converts DSA parameters into DH parameters. (When creating parameters,
16809 DSA_generate_parameters is used.)
16810
16811 *Bodo Moeller*
16812
16813 * Include 'length' (recommended exponent length) in C code generated
16814 by 'openssl dhparam -C'.
16815
16816 *Bodo Moeller*
16817
16818 * The second argument to set_label in perlasm was already being used
16819 so couldn't be used as a "file scope" flag. Moved to third argument
16820 which was free.
16821
16822 *Steve Henson*
16823
16824 * In PEM_ASN1_write_bio and some other functions, use RAND_pseudo_bytes
16825 instead of RAND_bytes for encryption IVs and salts.
16826
16827 *Bodo Moeller*
16828
16829 * Include RAND_status() into RAND_METHOD instead of implementing
16830 it only for md_rand.c Otherwise replacing the PRNG by calling
16831 RAND_set_rand_method would be impossible.
16832
16833 *Bodo Moeller*
16834
16835 * Don't let DSA_generate_key() enter an infinite loop if the random
16836 number generation fails.
16837
16838 *Bodo Moeller*
16839
16840 * New 'rand' application for creating pseudo-random output.
16841
16842 *Bodo Moeller*
16843
16844 * Added configuration support for Linux/IA64
16845
16846 *Rolf Haberrecker <rolf@suse.de>*
16847
16848 * Assembler module support for Mingw32.
16849
16850 *Ulf Möller*
16851
16852 * Shared library support for HPUX (in shlib/).
16853
16854 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE> and Anonymous*
16855
16856 * Shared library support for Solaris gcc.
16857
16858 *Lutz Behnke <behnke@trustcenter.de>*
16859
257e9d03 16860### Changes between 0.9.4 and 0.9.5 [28 Feb 2000]
5f8e6c50
DMSP
16861
16862 * PKCS7_encrypt() was adding text MIME headers twice because they
16863 were added manually and by SMIME_crlf_copy().
16864
16865 *Steve Henson*
16866
16867 * In bntest.c don't call BN_rand with zero bits argument.
16868
16869 *Steve Henson, pointed out by Andrew W. Gray <agray@iconsinc.com>*
16870
16871 * BN_mul bugfix: In bn_mul_part_recursion() only the a>a[n] && b>b[n]
16872 case was implemented. This caused BN_div_recp() to fail occasionally.
16873
16874 *Ulf Möller*
16875
16876 * Add an optional second argument to the set_label() in the perl
16877 assembly language builder. If this argument exists and is set
16878 to 1 it signals that the assembler should use a symbol whose
16879 scope is the entire file, not just the current function. This
16880 is needed with MASM which uses the format label:: for this scope.
16881
16882 *Steve Henson, pointed out by Peter Runestig <peter@runestig.com>*
16883
16884 * Change the ASN1 types so they are typedefs by default. Before
16885 almost all types were #define'd to ASN1_STRING which was causing
16886 STACK_OF() problems: you couldn't declare STACK_OF(ASN1_UTF8STRING)
16887 for example.
16888
16889 *Steve Henson*
16890
16891 * Change names of new functions to the new get1/get0 naming
16892 convention: After 'get1', the caller owns a reference count
257e9d03 16893 and has to call `..._free`; 'get0' returns a pointer to some
5f8e6c50
DMSP
16894 data structure without incrementing reference counters.
16895 (Some of the existing 'get' functions increment a reference
16896 counter, some don't.)
16897 Similarly, 'set1' and 'add1' functions increase reference
16898 counters or duplicate objects.
16899
16900 *Steve Henson*
16901
16902 * Allow for the possibility of temp RSA key generation failure:
16903 the code used to assume it always worked and crashed on failure.
16904
16905 *Steve Henson*
16906
16907 * Fix potential buffer overrun problem in BIO_printf().
16908 *Ulf Möller, using public domain code by Patrick Powell; problem
257e9d03 16909 pointed out by David Sacerdote <das33@cornell.edu>*
5f8e6c50
DMSP
16910
16911 * Support EGD <http://www.lothar.com/tech/crypto/>. New functions
16912 RAND_egd() and RAND_status(). In the command line application,
16913 the EGD socket can be specified like a seed file using RANDFILE
16914 or -rand.
16915
16916 *Ulf Möller*
16917
16918 * Allow the string CERTIFICATE to be tolerated in PKCS#7 structures.
16919 Some CAs (e.g. Verisign) distribute certificates in this form.
16920
16921 *Steve Henson*
16922
16923 * Remove the SSL_ALLOW_ADH compile option and set the default cipher
16924 list to exclude them. This means that no special compilation option
16925 is needed to use anonymous DH: it just needs to be included in the
16926 cipher list.
16927
16928 *Steve Henson*
16929
16930 * Change the EVP_MD_CTX_type macro so its meaning consistent with
16931 EVP_MD_type. The old functionality is available in a new macro called
16932 EVP_MD_md(). Change code that uses it and update docs.
16933
16934 *Steve Henson*
16935
257e9d03
RS
16936 * `..._ctrl` functions now have corresponding `..._callback_ctrl` functions
16937 where the `void *` argument is replaced by a function pointer argument.
16938 Previously `void *` was abused to point to functions, which works on
5f8e6c50
DMSP
16939 many platforms, but is not correct. As these functions are usually
16940 called by macros defined in OpenSSL header files, most source code
16941 should work without changes.
16942
16943 *Richard Levitte*
16944
257e9d03 16945 * `<openssl/opensslconf.h>` (which is created by Configure) now contains
5f8e6c50
DMSP
16946 sections with information on -D... compiler switches used for
16947 compiling the library so that applications can see them. To enable
257e9d03 16948 one of these sections, a pre-processor symbol `OPENSSL_..._DEFINES`
5f8e6c50
DMSP
16949 must be defined. E.g.,
16950 #define OPENSSL_ALGORITHM_DEFINES
16951 #include <openssl/opensslconf.h>
257e9d03 16952 defines all pertinent `NO_<algo>` symbols, such as NO_IDEA, NO_RSA, etc.
5f8e6c50
DMSP
16953
16954 *Richard Levitte, Ulf and Bodo Möller*
16955
16956 * Bugfix: Tolerate fragmentation and interleaving in the SSL 3/TLS
16957 record layer.
16958
16959 *Bodo Moeller*
16960
16961 * Change the 'other' type in certificate aux info to a STACK_OF
16962 X509_ALGOR. Although not an AlgorithmIdentifier as such it has
16963 the required ASN1 format: arbitrary types determined by an OID.
16964
16965 *Steve Henson*
16966
16967 * Add some PEM_write_X509_REQ_NEW() functions and a command line
16968 argument to 'req'. This is not because the function is newer or
16969 better than others it just uses the work 'NEW' in the certificate
16970 request header lines. Some software needs this.
16971
16972 *Steve Henson*
16973
16974 * Reorganise password command line arguments: now passwords can be
16975 obtained from various sources. Delete the PEM_cb function and make
16976 it the default behaviour: i.e. if the callback is NULL and the
16977 usrdata argument is not NULL interpret it as a null terminated pass
16978 phrase. If usrdata and the callback are NULL then the pass phrase
16979 is prompted for as usual.
16980
16981 *Steve Henson*
16982
16983 * Add support for the Compaq Atalla crypto accelerator. If it is installed,
16984 the support is automatically enabled. The resulting binaries will
16985 autodetect the card and use it if present.
16986
16987 *Ben Laurie and Compaq Inc.*
16988
16989 * Work around for Netscape hang bug. This sends certificate request
16990 and server done in one record. Since this is perfectly legal in the
16991 SSL/TLS protocol it isn't a "bug" option and is on by default. See
16992 the bugs/SSLv3 entry for more info.
16993
16994 *Steve Henson*
16995
16996 * HP-UX tune-up: new unified configs, HP C compiler bug workaround.
16997
16998 *Andy Polyakov*
16999
17000 * Add -rand argument to smime and pkcs12 applications and read/write
17001 of seed file.
17002
17003 *Steve Henson*
17004
17005 * New 'passwd' tool for crypt(3) and apr1 password hashes.
17006
17007 *Bodo Moeller*
17008
17009 * Add command line password options to the remaining applications.
17010
17011 *Steve Henson*
17012
17013 * Bug fix for BN_div_recp() for numerators with an even number of
17014 bits.
17015
17016 *Ulf Möller*
17017
17018 * More tests in bntest.c, and changed test_bn output.
17019
17020 *Ulf Möller*
17021
17022 * ./config recognizes MacOS X now.
17023
17024 *Andy Polyakov*
17025
17026 * Bug fix for BN_div() when the first words of num and divisor are
257e9d03 17027 equal (it gave wrong results if `(rem=(n1-q*d0)&BN_MASK2) < d0)`.
5f8e6c50
DMSP
17028
17029 *Ulf Möller*
17030
17031 * Add support for various broken PKCS#8 formats, and command line
17032 options to produce them.
17033
17034 *Steve Henson*
17035
17036 * New functions BN_CTX_start(), BN_CTX_get() and BT_CTX_end() to
17037 get temporary BIGNUMs from a BN_CTX.
17038
17039 *Ulf Möller*
17040
17041 * Correct return values in BN_mod_exp_mont() and BN_mod_exp2_mont()
17042 for p == 0.
17043
17044 *Ulf Möller*
17045
257e9d03 17046 * Change the `SSLeay_add_all_*()` functions to `OpenSSL_add_all_*()` and
5f8e6c50
DMSP
17047 include a #define from the old name to the new. The original intent
17048 was that statically linked binaries could for example just call
17049 SSLeay_add_all_ciphers() to just add ciphers to the table and not
17050 link with digests. This never worked because SSLeay_add_all_digests()
17051 and SSLeay_add_all_ciphers() were in the same source file so calling
17052 one would link with the other. They are now in separate source files.
17053
17054 *Steve Henson*
17055
17056 * Add a new -notext option to 'ca' and a -pubkey option to 'spkac'.
17057
17058 *Steve Henson*
17059
17060 * Use a less unusual form of the Miller-Rabin primality test (it used
17061 a binary algorithm for exponentiation integrated into the Miller-Rabin
17062 loop, our standard modexp algorithms are faster).
17063
17064 *Bodo Moeller*
17065
17066 * Support for the EBCDIC character set completed.
17067
17068 *Martin Kraemer <Martin.Kraemer@Mch.SNI.De>*
17069
17070 * Source code cleanups: use const where appropriate, eliminate casts,
257e9d03 17071 use `void *` instead of `char *` in lhash.
5f8e6c50
DMSP
17072
17073 *Ulf Möller*
17074
17075 * Bugfix: ssl3_send_server_key_exchange was not restartable
17076 (the state was not changed to SSL3_ST_SW_KEY_EXCH_B, and because of
17077 this the server could overwrite ephemeral keys that the client
17078 has already seen).
17079
17080 *Bodo Moeller*
17081
17082 * Turn DSA_is_prime into a macro that calls BN_is_prime,
17083 using 50 iterations of the Rabin-Miller test.
17084
17085 DSA_generate_parameters now uses BN_is_prime_fasttest (with 50
17086 iterations of the Rabin-Miller test as required by the appendix
17087 to FIPS PUB 186[-1]) instead of DSA_is_prime.
17088 As BN_is_prime_fasttest includes trial division, DSA parameter
17089 generation becomes much faster.
17090
17091 This implies a change for the callback functions in DSA_is_prime
17092 and DSA_generate_parameters: The callback function is called once
17093 for each positive witness in the Rabin-Miller test, not just
17094 occasionally in the inner loop; and the parameters to the
17095 callback function now provide an iteration count for the outer
17096 loop rather than for the current invocation of the inner loop.
17097 DSA_generate_parameters additionally can call the callback
17098 function with an 'iteration count' of -1, meaning that a
17099 candidate has passed the trial division test (when q is generated
17100 from an application-provided seed, trial division is skipped).
17101
17102 *Bodo Moeller*
17103
17104 * New function BN_is_prime_fasttest that optionally does trial
17105 division before starting the Rabin-Miller test and has
17106 an additional BN_CTX * argument (whereas BN_is_prime always
17107 has to allocate at least one BN_CTX).
17108 'callback(1, -1, cb_arg)' is called when a number has passed the
17109 trial division stage.
17110
17111 *Bodo Moeller*
17112
17113 * Fix for bug in CRL encoding. The validity dates weren't being handled
17114 as ASN1_TIME.
17115
17116 *Steve Henson*
17117
17118 * New -pkcs12 option to CA.pl script to write out a PKCS#12 file.
17119
17120 *Steve Henson*
17121
17122 * New function BN_pseudo_rand().
17123
17124 *Ulf Möller*
17125
17126 * Clean up BN_mod_mul_montgomery(): replace the broken (and unreadable)
17127 bignum version of BN_from_montgomery() with the working code from
17128 SSLeay 0.9.0 (the word based version is faster anyway), and clean up
17129 the comments.
17130
17131 *Ulf Möller*
17132
17133 * Avoid a race condition in s2_clnt.c (function get_server_hello) that
17134 made it impossible to use the same SSL_SESSION data structure in
17135 SSL2 clients in multiple threads.
17136
17137 *Bodo Moeller*
17138
17139 * The return value of RAND_load_file() no longer counts bytes obtained
17140 by stat(). RAND_load_file(..., -1) is new and uses the complete file
17141 to seed the PRNG (previously an explicit byte count was required).
17142
17143 *Ulf Möller, Bodo Möller*
17144
17145 * Clean up CRYPTO_EX_DATA functions, some of these didn't have prototypes
257e9d03 17146 used `char *` instead of `void *` and had casts all over the place.
5f8e6c50
DMSP
17147
17148 *Steve Henson*
17149
17150 * Make BN_generate_prime() return NULL on error if ret!=NULL.
17151
17152 *Ulf Möller*
17153
17154 * Retain source code compatibility for BN_prime_checks macro:
17155 BN_is_prime(..., BN_prime_checks, ...) now uses
17156 BN_prime_checks_for_size to determine the appropriate number of
17157 Rabin-Miller iterations.
17158
17159 *Ulf Möller*
17160
17161 * Diffie-Hellman uses "safe" primes: DH_check() return code renamed to
17162 DH_CHECK_P_NOT_SAFE_PRIME.
17163 (Check if this is true? OpenPGP calls them "strong".)
17164
17165 *Ulf Möller*
17166
17167 * Merge the functionality of "dh" and "gendh" programs into a new program
17168 "dhparam". The old programs are retained for now but will handle DH keys
17169 (instead of parameters) in future.
17170
17171 *Steve Henson*
17172
17173 * Make the ciphers, s_server and s_client programs check the return values
17174 when a new cipher list is set.
17175
17176 *Steve Henson*
17177
17178 * Enhance the SSL/TLS cipher mechanism to correctly handle the TLS 56bit
17179 ciphers. Before when the 56bit ciphers were enabled the sorting was
17180 wrong.
17181
17182 The syntax for the cipher sorting has been extended to support sorting by
17183 cipher-strength (using the strength_bits hard coded in the tables).
ec2bfb7d 17184 The new command is `@STRENGTH` (see also `doc/apps/ciphers.pod`).
5f8e6c50
DMSP
17185
17186 Fix a bug in the cipher-command parser: when supplying a cipher command
17187 string with an "undefined" symbol (neither command nor alphanumeric
17188 *A-Za-z0-9*, ssl_set_cipher_list used to hang in an endless loop. Now
17189 an error is flagged.
17190
17191 Due to the strength-sorting extension, the code of the
17192 ssl_create_cipher_list() function was completely rearranged. I hope that
17193 the readability was also increased :-)
17194
17195 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>*
17196
17197 * Minor change to 'x509' utility. The -CAcreateserial option now uses 1
17198 for the first serial number and places 2 in the serial number file. This
17199 avoids problems when the root CA is created with serial number zero and
17200 the first user certificate has the same issuer name and serial number
17201 as the root CA.
17202
17203 *Steve Henson*
17204
17205 * Fixes to X509_ATTRIBUTE utilities, change the 'req' program so it uses
17206 the new code. Add documentation for this stuff.
17207
17208 *Steve Henson*
17209
17210 * Changes to X509_ATTRIBUTE utilities. These have been renamed from
257e9d03 17211 `X509_*()` to `X509at_*()` on the grounds that they don't handle X509
5f8e6c50
DMSP
17212 structures and behave in an analogous way to the X509v3 functions:
17213 they shouldn't be called directly but wrapper functions should be used
17214 instead.
17215
17216 So we also now have some wrapper functions that call the X509at functions
17217 when passed certificate requests. (TO DO: similar things can be done with
17218 PKCS#7 signed and unsigned attributes, PKCS#12 attributes and a few other
17219 things. Some of these need some d2i or i2d and print functionality
17220 because they handle more complex structures.)
17221
17222 *Steve Henson*
17223
17224 * Add missing #ifndefs that caused missing symbols when building libssl
17225 as a shared library without RSA. Use #ifndef NO_SSL2 instead of
257e9d03 17226 NO_RSA in `ssl/s2*.c`.
5f8e6c50
DMSP
17227
17228 *Kris Kennaway <kris@hub.freebsd.org>, modified by Ulf Möller*
17229
17230 * Precautions against using the PRNG uninitialized: RAND_bytes() now
17231 has a return value which indicates the quality of the random data
17232 (1 = ok, 0 = not seeded). Also an error is recorded on the thread's
17233 error queue. New function RAND_pseudo_bytes() generates output that is
17234 guaranteed to be unique but not unpredictable. RAND_add is like
17235 RAND_seed, but takes an extra argument for an entropy estimate
17236 (RAND_seed always assumes full entropy).
17237
17238 *Ulf Möller*
17239
17240 * Do more iterations of Rabin-Miller probable prime test (specifically,
17241 3 for 1024-bit primes, 6 for 512-bit primes, 12 for 256-bit primes
17242 instead of only 2 for all lengths; see BN_prime_checks_for_size definition
17243 in crypto/bn/bn_prime.c for the complete table). This guarantees a
17244 false-positive rate of at most 2^-80 for random input.
17245
17246 *Bodo Moeller*
17247
17248 * Rewrite ssl3_read_n (ssl/s3_pkt.c) avoiding a couple of bugs.
17249
17250 *Bodo Moeller*
17251
17252 * New function X509_CTX_rget_chain() (renamed to X509_CTX_get1_chain
17253 in the 0.9.5 release), this returns the chain
17254 from an X509_CTX structure with a dup of the stack and all
17255 the X509 reference counts upped: so the stack will exist
17256 after X509_CTX_cleanup() has been called. Modify pkcs12.c
17257 to use this.
17258
17259 Also make SSL_SESSION_print() print out the verify return
17260 code.
17261
17262 *Steve Henson*
17263
17264 * Add manpage for the pkcs12 command. Also change the default
17265 behaviour so MAC iteration counts are used unless the new
17266 -nomaciter option is used. This improves file security and
17267 only older versions of MSIE (4.0 for example) need it.
17268
17269 *Steve Henson*
17270
17271 * Honor the no-xxx Configure options when creating .DEF files.
17272
17273 *Ulf Möller*
17274
17275 * Add PKCS#10 attributes to field table: challengePassword,
17276 unstructuredName and unstructuredAddress. These are taken from
17277 draft PKCS#9 v2.0 but are compatible with v1.2 provided no
17278 international characters are used.
17279
17280 More changes to X509_ATTRIBUTE code: allow the setting of types
17281 based on strings. Remove the 'loc' parameter when adding
17282 attributes because these will be a SET OF encoding which is sorted
17283 in ASN1 order.
17284
17285 *Steve Henson*
17286
17287 * Initial changes to the 'req' utility to allow request generation
17288 automation. This will allow an application to just generate a template
17289 file containing all the field values and have req construct the
17290 request.
17291
17292 Initial support for X509_ATTRIBUTE handling. Stacks of these are
17293 used all over the place including certificate requests and PKCS#7
17294 structures. They are currently handled manually where necessary with
17295 some primitive wrappers for PKCS#7. The new functions behave in a
17296 manner analogous to the X509 extension functions: they allow
17297 attributes to be looked up by NID and added.
17298
17299 Later something similar to the X509V3 code would be desirable to
17300 automatically handle the encoding, decoding and printing of the
17301 more complex types. The string types like challengePassword can
17302 be handled by the string table functions.
17303
17304 Also modified the multi byte string table handling. Now there is
17305 a 'global mask' which masks out certain types. The table itself
17306 can use the flag STABLE_NO_MASK to ignore the mask setting: this
17307 is useful when for example there is only one permissible type
17308 (as in countryName) and using the mask might result in no valid
17309 types at all.
17310
17311 *Steve Henson*
17312
17313 * Clean up 'Finished' handling, and add functions SSL_get_finished and
17314 SSL_get_peer_finished to allow applications to obtain the latest
17315 Finished messages sent to the peer or expected from the peer,
17316 respectively. (SSL_get_peer_finished is usually the Finished message
17317 actually received from the peer, otherwise the protocol will be aborted.)
17318
17319 As the Finished message are message digests of the complete handshake
17320 (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
17321 be used for external authentication procedures when the authentication
17322 provided by SSL/TLS is not desired or is not enough.
17323
17324 *Bodo Moeller*
17325
17326 * Enhanced support for Alpha Linux is added. Now ./config checks if
17327 the host supports BWX extension and if Compaq C is present on the
17328 $PATH. Just exploiting of the BWX extension results in 20-30%
17329 performance kick for some algorithms, e.g. DES and RC4 to mention
17330 a couple. Compaq C in turn generates ~20% faster code for MD5 and
17331 SHA1.
17332
17333 *Andy Polyakov*
17334
17335 * Add support for MS "fast SGC". This is arguably a violation of the
17336 SSL3/TLS protocol. Netscape SGC does two handshakes: the first with
17337 weak crypto and after checking the certificate is SGC a second one
17338 with strong crypto. MS SGC stops the first handshake after receiving
17339 the server certificate message and sends a second client hello. Since
17340 a server will typically do all the time consuming operations before
17341 expecting any further messages from the client (server key exchange
17342 is the most expensive) there is little difference between the two.
17343
17344 To get OpenSSL to support MS SGC we have to permit a second client
17345 hello message after we have sent server done. In addition we have to
17346 reset the MAC if we do get this second client hello.
17347
17348 *Steve Henson*
17349
17350 * Add a function 'd2i_AutoPrivateKey()' this will automatically decide
17351 if a DER encoded private key is RSA or DSA traditional format. Changed
17352 d2i_PrivateKey_bio() to use it. This is only needed for the "traditional"
17353 format DER encoded private key. Newer code should use PKCS#8 format which
17354 has the key type encoded in the ASN1 structure. Added DER private key
17355 support to pkcs8 application.
17356
17357 *Steve Henson*
17358
17359 * SSL 3/TLS 1 servers now don't request certificates when an anonymous
17360 ciphersuites has been selected (as required by the SSL 3/TLS 1
17361 specifications). Exception: When SSL_VERIFY_FAIL_IF_NO_PEER_CERT
17362 is set, we interpret this as a request to violate the specification
17363 (the worst that can happen is a handshake failure, and 'correct'
17364 behaviour would result in a handshake failure anyway).
17365
17366 *Bodo Moeller*
17367
17368 * In SSL_CTX_add_session, take into account that there might be multiple
17369 SSL_SESSION structures with the same session ID (e.g. when two threads
17370 concurrently obtain them from an external cache).
17371 The internal cache can handle only one SSL_SESSION with a given ID,
17372 so if there's a conflict, we now throw out the old one to achieve
17373 consistency.
17374
17375 *Bodo Moeller*
17376
17377 * Add OIDs for idea and blowfish in CBC mode. This will allow both
17378 to be used in PKCS#5 v2.0 and S/MIME. Also add checking to
17379 some routines that use cipher OIDs: some ciphers do not have OIDs
17380 defined and so they cannot be used for S/MIME and PKCS#5 v2.0 for
17381 example.
17382
17383 *Steve Henson*
17384
17385 * Simplify the trust setting structure and code. Now we just have
17386 two sequences of OIDs for trusted and rejected settings. These will
17387 typically have values the same as the extended key usage extension
17388 and any application specific purposes.
17389
17390 The trust checking code now has a default behaviour: it will just
17391 check for an object with the same NID as the passed id. Functions can
17392 be provided to override either the default behaviour or the behaviour
17393 for a given id. SSL client, server and email already have functions
17394 in place for compatibility: they check the NID and also return "trusted"
17395 if the certificate is self signed.
17396
17397 *Steve Henson*
17398
17399 * Add d2i,i2d bio/fp functions for PrivateKey: these convert the
17400 traditional format into an EVP_PKEY structure.
17401
17402 *Steve Henson*
17403
17404 * Add a password callback function PEM_cb() which either prompts for
17405 a password if usr_data is NULL or otherwise assumes it is a null
17406 terminated password. Allow passwords to be passed on command line
17407 environment or config files in a few more utilities.
17408
17409 *Steve Henson*
17410
17411 * Add a bunch of DER and PEM functions to handle PKCS#8 format private
17412 keys. Add some short names for PKCS#8 PBE algorithms and allow them
17413 to be specified on the command line for the pkcs8 and pkcs12 utilities.
17414 Update documentation.
17415
17416 *Steve Henson*
17417
17418 * Support for ASN1 "NULL" type. This could be handled before by using
17419 ASN1_TYPE but there wasn't any function that would try to read a NULL
17420 and produce an error if it couldn't. For compatibility we also have
17421 ASN1_NULL_new() and ASN1_NULL_free() functions but these are faked and
17422 don't allocate anything because they don't need to.
17423
17424 *Steve Henson*
17425
17426 * Initial support for MacOS is now provided. Examine INSTALL.MacOS
17427 for details.
17428
17429 *Andy Polyakov, Roy Woods <roy@centicsystems.ca>*
17430
17431 * Rebuild of the memory allocation routines used by OpenSSL code and
17432 possibly others as well. The purpose is to make an interface that
17433 provide hooks so anyone can build a separate set of allocation and
17434 deallocation routines to be used by OpenSSL, for example memory
17435 pool implementations, or something else, which was previously hard
17436 since Malloc(), Realloc() and Free() were defined as macros having
17437 the values malloc, realloc and free, respectively (except for Win32
17438 compilations). The same is provided for memory debugging code.
17439 OpenSSL already comes with functionality to find memory leaks, but
17440 this gives people a chance to debug other memory problems.
17441
17442 With these changes, a new set of functions and macros have appeared:
17443
17444 CRYPTO_set_mem_debug_functions() [F]
17445 CRYPTO_get_mem_debug_functions() [F]
17446 CRYPTO_dbg_set_options() [F]
17447 CRYPTO_dbg_get_options() [F]
17448 CRYPTO_malloc_debug_init() [M]
17449
17450 The memory debug functions are NULL by default, unless the library
17451 is compiled with CRYPTO_MDEBUG or friends is defined. If someone
17452 wants to debug memory anyway, CRYPTO_malloc_debug_init() (which
17453 gives the standard debugging functions that come with OpenSSL) or
17454 CRYPTO_set_mem_debug_functions() (tells OpenSSL to use functions
17455 provided by the library user) must be used. When the standard
17456 debugging functions are used, CRYPTO_dbg_set_options can be used to
17457 request additional information:
17458 CRYPTO_dbg_set_options(V_CYRPTO_MDEBUG_xxx) corresponds to setting
17459 the CRYPTO_MDEBUG_xxx macro when compiling the library.
17460
17461 Also, things like CRYPTO_set_mem_functions will always give the
17462 expected result (the new set of functions is used for allocation
17463 and deallocation) at all times, regardless of platform and compiler
17464 options.
17465
17466 To finish it up, some functions that were never use in any other
17467 way than through macros have a new API and new semantic:
17468
17469 CRYPTO_dbg_malloc()
17470 CRYPTO_dbg_realloc()
17471 CRYPTO_dbg_free()
17472
17473 All macros of value have retained their old syntax.
17474
17475 *Richard Levitte and Bodo Moeller*
17476
17477 * Some S/MIME fixes. The OID for SMIMECapabilities was wrong, the
17478 ordering of SMIMECapabilities wasn't in "strength order" and there
17479 was a missing NULL in the AlgorithmIdentifier for the SHA1 signature
17480 algorithm.
17481
17482 *Steve Henson*
17483
17484 * Some ASN1 types with illegal zero length encoding (INTEGER,
17485 ENUMERATED and OBJECT IDENTIFIER) choked the ASN1 routines.
17486
17487 *Frans Heymans <fheymans@isaserver.be>, modified by Steve Henson*
17488
17489 * Merge in my S/MIME library for OpenSSL. This provides a simple
17490 S/MIME API on top of the PKCS#7 code, a MIME parser (with enough
17491 functionality to handle multipart/signed properly) and a utility
17492 called 'smime' to call all this stuff. This is based on code I
17493 originally wrote for Celo who have kindly allowed it to be
17494 included in OpenSSL.
17495
17496 *Steve Henson*
17497
17498 * Add variants des_set_key_checked and des_set_key_unchecked of
17499 des_set_key (aka des_key_sched). Global variable des_check_key
17500 decides which of these is called by des_set_key; this way
17501 des_check_key behaves as it always did, but applications and
17502 the library itself, which was buggy for des_check_key == 1,
17503 have a cleaner way to pick the version they need.
17504
17505 *Bodo Moeller*
17506
17507 * New function PKCS12_newpass() which changes the password of a
17508 PKCS12 structure.
17509
17510 *Steve Henson*
17511
17512 * Modify X509_TRUST and X509_PURPOSE so it also uses a static and
17513 dynamic mix. In both cases the ids can be used as an index into the
17514 table. Also modified the X509_TRUST_add() and X509_PURPOSE_add()
17515 functions so they accept a list of the field values and the
17516 application doesn't need to directly manipulate the X509_TRUST
17517 structure.
17518
17519 *Steve Henson*
17520
17521 * Modify the ASN1_STRING_TABLE stuff so it also uses bsearch and doesn't
17522 need initialising.
17523
17524 *Steve Henson*
17525
17526 * Modify the way the V3 extension code looks up extensions. This now
17527 works in a similar way to the object code: we have some "standard"
17528 extensions in a static table which is searched with OBJ_bsearch()
17529 and the application can add dynamic ones if needed. The file
17530 crypto/x509v3/ext_dat.h now has the info: this file needs to be
17531 updated whenever a new extension is added to the core code and kept
17532 in ext_nid order. There is a simple program 'tabtest.c' which checks
17533 this. New extensions are not added too often so this file can readily
17534 be maintained manually.
17535
17536 There are two big advantages in doing things this way. The extensions
17537 can be looked up immediately and no longer need to be "added" using
17538 X509V3_add_standard_extensions(): this function now does nothing.
257e9d03
RS
17539 Side note: I get *lots* of email saying the extension code doesn't
17540 work because people forget to call this function.
5f8e6c50
DMSP
17541 Also no dynamic allocation is done unless new extensions are added:
17542 so if we don't add custom extensions there is no need to call
17543 X509V3_EXT_cleanup().
17544
17545 *Steve Henson*
17546
17547 * Modify enc utility's salting as follows: make salting the default. Add a
17548 magic header, so unsalted files fail gracefully instead of just decrypting
17549 to garbage. This is because not salting is a big security hole, so people
17550 should be discouraged from doing it.
17551
17552 *Ben Laurie*
17553
17554 * Fixes and enhancements to the 'x509' utility. It allowed a message
17555 digest to be passed on the command line but it only used this
17556 parameter when signing a certificate. Modified so all relevant
17557 operations are affected by the digest parameter including the
17558 -fingerprint and -x509toreq options. Also -x509toreq choked if a
17559 DSA key was used because it didn't fix the digest.
17560
17561 *Steve Henson*
17562
17563 * Initial certificate chain verify code. Currently tests the untrusted
17564 certificates for consistency with the verify purpose (which is set
17565 when the X509_STORE_CTX structure is set up) and checks the pathlength.
17566
17567 There is a NO_CHAIN_VERIFY compilation option to keep the old behaviour:
17568 this is because it will reject chains with invalid extensions whereas
17569 every previous version of OpenSSL and SSLeay made no checks at all.
17570
17571 Trust code: checks the root CA for the relevant trust settings. Trust
17572 settings have an initial value consistent with the verify purpose: e.g.
17573 if the verify purpose is for SSL client use it expects the CA to be
17574 trusted for SSL client use. However the default value can be changed to
17575 permit custom trust settings: one example of this would be to only trust
17576 certificates from a specific "secure" set of CAs.
17577
17578 Also added X509_STORE_CTX_new() and X509_STORE_CTX_free() functions
17579 which should be used for version portability: especially since the
17580 verify structure is likely to change more often now.
17581
17582 SSL integration. Add purpose and trust to SSL_CTX and SSL and functions
17583 to set them. If not set then assume SSL clients will verify SSL servers
17584 and vice versa.
17585
17586 Two new options to the verify program: -untrusted allows a set of
17587 untrusted certificates to be passed in and -purpose which sets the
17588 intended purpose of the certificate. If a purpose is set then the
17589 new chain verify code is used to check extension consistency.
17590
17591 *Steve Henson*
17592
17593 * Support for the authority information access extension.
17594
17595 *Steve Henson*
17596
17597 * Modify RSA and DSA PEM read routines to transparently handle
17598 PKCS#8 format private keys. New *_PUBKEY_* functions that handle
17599 public keys in a format compatible with certificate
17600 SubjectPublicKeyInfo structures. Unfortunately there were already
17601 functions called *_PublicKey_* which used various odd formats so
17602 these are retained for compatibility: however the DSA variants were
17603 never in a public release so they have been deleted. Changed dsa/rsa
17604 utilities to handle the new format: note no releases ever handled public
17605 keys so we should be OK.
17606
17607 The primary motivation for this change is to avoid the same fiasco
17608 that dogs private keys: there are several incompatible private key
17609 formats some of which are standard and some OpenSSL specific and
17610 require various evil hacks to allow partial transparent handling and
17611 even then it doesn't work with DER formats. Given the option anything
17612 other than PKCS#8 should be dumped: but the other formats have to
17613 stay in the name of compatibility.
17614
17615 With public keys and the benefit of hindsight one standard format
17616 is used which works with EVP_PKEY, RSA or DSA structures: though
17617 it clearly returns an error if you try to read the wrong kind of key.
17618
17619 Added a -pubkey option to the 'x509' utility to output the public key.
257e9d03
RS
17620 Also rename the `EVP_PKEY_get_*()` to `EVP_PKEY_rget_*()`
17621 (renamed to `EVP_PKEY_get1_*()` in the OpenSSL 0.9.5 release) and add
17622 `EVP_PKEY_rset_*()` functions (renamed to `EVP_PKEY_set1_*()`)
17623 that do the same as the `EVP_PKEY_assign_*()` except they up the
5f8e6c50
DMSP
17624 reference count of the added key (they don't "swallow" the
17625 supplied key).
17626
17627 *Steve Henson*
17628
17629 * Fixes to crypto/x509/by_file.c the code to read in certificates and
17630 CRLs would fail if the file contained no certificates or no CRLs:
17631 added a new function to read in both types and return the number
17632 read: this means that if none are read it will be an error. The
17633 DER versions of the certificate and CRL reader would always fail
17634 because it isn't possible to mix certificates and CRLs in DER format
17635 without choking one or the other routine. Changed this to just read
17636 a certificate: this is the best we can do. Also modified the code
ec2bfb7d 17637 in `apps/verify.c` to take notice of return codes: it was previously
5f8e6c50
DMSP
17638 attempting to read in certificates from NULL pointers and ignoring
17639 any errors: this is one reason why the cert and CRL reader seemed
17640 to work. It doesn't check return codes from the default certificate
17641 routines: these may well fail if the certificates aren't installed.
17642
17643 *Steve Henson*
17644
17645 * Code to support otherName option in GeneralName.
17646
17647 *Steve Henson*
17648
17649 * First update to verify code. Change the verify utility
17650 so it warns if it is passed a self signed certificate:
17651 for consistency with the normal behaviour. X509_verify
17652 has been modified to it will now verify a self signed
17653 certificate if *exactly* the same certificate appears
17654 in the store: it was previously impossible to trust a
17655 single self signed certificate. This means that:
17656 openssl verify ss.pem
17657 now gives a warning about a self signed certificate but
17658 openssl verify -CAfile ss.pem ss.pem
17659 is OK.
17660
17661 *Steve Henson*
17662
17663 * For servers, store verify_result in SSL_SESSION data structure
17664 (and add it to external session representation).
17665 This is needed when client certificate verifications fails,
17666 but an application-provided verification callback (set by
17667 SSL_CTX_set_cert_verify_callback) allows accepting the session
17668 anyway (i.e. leaves x509_store_ctx->error != X509_V_OK
17669 but returns 1): When the session is reused, we have to set
17670 ssl->verify_result to the appropriate error code to avoid
17671 security holes.
17672
17673 *Bodo Moeller, problem pointed out by Lutz Jaenicke*
17674
17675 * Fix a bug in the new PKCS#7 code: it didn't consider the
17676 case in PKCS7_dataInit() where the signed PKCS7 structure
17677 didn't contain any existing data because it was being created.
17678
17679 *Po-Cheng Chen <pocheng@nst.com.tw>, slightly modified by Steve Henson*
17680
17681 * Add a salt to the key derivation routines in enc.c. This
17682 forms the first 8 bytes of the encrypted file. Also add a
17683 -S option to allow a salt to be input on the command line.
17684
17685 *Steve Henson*
17686
17687 * New function X509_cmp(). Oddly enough there wasn't a function
17688 to compare two certificates. We do this by working out the SHA1
17689 hash and comparing that. X509_cmp() will be needed by the trust
17690 code.
17691
17692 *Steve Henson*
17693
17694 * SSL_get1_session() is like SSL_get_session(), but increments
17695 the reference count in the SSL_SESSION returned.
17696
17697 *Geoff Thorpe <geoff@eu.c2.net>*
17698
17699 * Fix for 'req': it was adding a null to request attributes.
17700 Also change the X509_LOOKUP and X509_INFO code to handle
17701 certificate auxiliary information.
17702
17703 *Steve Henson*
17704
17705 * Add support for 40 and 64 bit RC2 and RC4 algorithms: document
17706 the 'enc' command.
17707
17708 *Steve Henson*
17709
17710 * Add the possibility to add extra information to the memory leak
17711 detecting output, to form tracebacks, showing from where each
17712 allocation was originated: CRYPTO_push_info("constant string") adds
17713 the string plus current file name and line number to a per-thread
17714 stack, CRYPTO_pop_info() does the obvious, CRYPTO_remove_all_info()
17715 is like calling CYRPTO_pop_info() until the stack is empty.
17716 Also updated memory leak detection code to be multi-thread-safe.
17717
17718 *Richard Levitte*
17719
17720 * Add options -text and -noout to pkcs7 utility and delete the
17721 encryption options which never did anything. Update docs.
17722
17723 *Steve Henson*
17724
17725 * Add options to some of the utilities to allow the pass phrase
17726 to be included on either the command line (not recommended on
17727 OSes like Unix) or read from the environment. Update the
17728 manpages and fix a few bugs.
17729
17730 *Steve Henson*
17731
17732 * Add a few manpages for some of the openssl commands.
17733
17734 *Steve Henson*
17735
17736 * Fix the -revoke option in ca. It was freeing up memory twice,
17737 leaking and not finding already revoked certificates.
17738
17739 *Steve Henson*
17740
17741 * Extensive changes to support certificate auxiliary information.
17742 This involves the use of X509_CERT_AUX structure and X509_AUX
17743 functions. An X509_AUX function such as PEM_read_X509_AUX()
17744 can still read in a certificate file in the usual way but it
17745 will also read in any additional "auxiliary information". By
17746 doing things this way a fair degree of compatibility can be
17747 retained: existing certificates can have this information added
17748 using the new 'x509' options.
17749
17750 Current auxiliary information includes an "alias" and some trust
17751 settings. The trust settings will ultimately be used in enhanced
17752 certificate chain verification routines: currently a certificate
17753 can only be trusted if it is self signed and then it is trusted
17754 for all purposes.
17755
17756 *Steve Henson*
17757
257e9d03 17758 * Fix assembler for Alpha (tested only on DEC OSF not Linux or `*BSD`).
5f8e6c50
DMSP
17759 The problem was that one of the replacement routines had not been working
17760 since SSLeay releases. For now the offending routine has been replaced
17761 with non-optimised assembler. Even so, this now gives around 95%
17762 performance improvement for 1024 bit RSA signs.
17763
17764 *Mark Cox*
17765
17766 * Hack to fix PKCS#7 decryption when used with some unorthodox RC2
17767 handling. Most clients have the effective key size in bits equal to
17768 the key length in bits: so a 40 bit RC2 key uses a 40 bit (5 byte) key.
17769 A few however don't do this and instead use the size of the decrypted key
17770 to determine the RC2 key length and the AlgorithmIdentifier to determine
17771 the effective key length. In this case the effective key length can still
17772 be 40 bits but the key length can be 168 bits for example. This is fixed
17773 by manually forcing an RC2 key into the EVP_PKEY structure because the
17774 EVP code can't currently handle unusual RC2 key sizes: it always assumes
17775 the key length and effective key length are equal.
17776
17777 *Steve Henson*
17778
17779 * Add a bunch of functions that should simplify the creation of
17780 X509_NAME structures. Now you should be able to do:
17781 X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC, "Steve", -1, -1, 0);
17782 and have it automatically work out the correct field type and fill in
17783 the structures. The more adventurous can try:
17784 X509_NAME_add_entry_by_txt(nm, field, MBSTRING_UTF8, str, -1, -1, 0);
17785 and it will (hopefully) work out the correct multibyte encoding.
17786
17787 *Steve Henson*
17788
17789 * Change the 'req' utility to use the new field handling and multibyte
17790 copy routines. Before the DN field creation was handled in an ad hoc
17791 way in req, ca, and x509 which was rather broken and didn't support
17792 BMPStrings or UTF8Strings. Since some software doesn't implement
17793 BMPStrings or UTF8Strings yet, they can be enabled using the config file
17794 using the dirstring_type option. See the new comment in the default
17795 openssl.cnf for more info.
17796
17797 *Steve Henson*
17798
17799 * Make crypto/rand/md_rand.c more robust:
17800 - Assure unique random numbers after fork().
17801 - Make sure that concurrent threads access the global counter and
17802 md serializably so that we never lose entropy in them
17803 or use exactly the same state in multiple threads.
17804 Access to the large state is not always serializable because
17805 the additional locking could be a performance killer, and
17806 md should be large enough anyway.
17807
17808 *Bodo Moeller*
17809
ec2bfb7d 17810 * New file `apps/app_rand.c` with commonly needed functionality
5f8e6c50
DMSP
17811 for handling the random seed file.
17812
17813 Use the random seed file in some applications that previously did not:
17814 ca,
17815 dsaparam -genkey (which also ignored its '-rand' option),
17816 s_client,
17817 s_server,
17818 x509 (when signing).
17819 Except on systems with /dev/urandom, it is crucial to have a random
17820 seed file at least for key creation, DSA signing, and for DH exchanges;
17821 for RSA signatures we could do without one.
17822
17823 gendh and gendsa (unlike genrsa) used to read only the first byte
17824 of each file listed in the '-rand' option. The function as previously
17825 found in genrsa is now in app_rand.c and is used by all programs
17826 that support '-rand'.
17827
17828 *Bodo Moeller*
17829
17830 * In RAND_write_file, use mode 0600 for creating files;
17831 don't just chmod when it may be too late.
17832
17833 *Bodo Moeller*
17834
17835 * Report an error from X509_STORE_load_locations
17836 when X509_LOOKUP_load_file or X509_LOOKUP_add_dir failed.
17837
17838 *Bill Perry*
17839
17840 * New function ASN1_mbstring_copy() this copies a string in either
17841 ASCII, Unicode, Universal (4 bytes per character) or UTF8 format
17842 into an ASN1_STRING type. A mask of permissible types is passed
17843 and it chooses the "minimal" type to use or an error if not type
17844 is suitable.
17845
17846 *Steve Henson*
17847
17848 * Add function equivalents to the various macros in asn1.h. The old
257e9d03
RS
17849 macros are retained with an `M_` prefix. Code inside the library can
17850 use the `M_` macros. External code (including the openssl utility)
5f8e6c50
DMSP
17851 should *NOT* in order to be "shared library friendly".
17852
17853 *Steve Henson*
17854
17855 * Add various functions that can check a certificate's extensions
17856 to see if it usable for various purposes such as SSL client,
17857 server or S/MIME and CAs of these types. This is currently
17858 VERY EXPERIMENTAL but will ultimately be used for certificate chain
17859 verification. Also added a -purpose flag to x509 utility to
17860 print out all the purposes.
17861
17862 *Steve Henson*
17863
17864 * Add a CRYPTO_EX_DATA to X509 certificate structure and associated
17865 functions.
17866
17867 *Steve Henson*
17868
257e9d03 17869 * New `X509V3_{X509,CRL,REVOKED}_get_d2i()` functions. These will search
5f8e6c50
DMSP
17870 for, obtain and decode and extension and obtain its critical flag.
17871 This allows all the necessary extension code to be handled in a
17872 single function call.
17873
17874 *Steve Henson*
17875
17876 * RC4 tune-up featuring 30-40% performance improvement on most RISC
17877 platforms. See crypto/rc4/rc4_enc.c for further details.
17878
17879 *Andy Polyakov*
17880
17881 * New -noout option to asn1parse. This causes no output to be produced
17882 its main use is when combined with -strparse and -out to extract data
17883 from a file (which may not be in ASN.1 format).
17884
17885 *Steve Henson*
17886
17887 * Fix for pkcs12 program. It was hashing an invalid certificate pointer
17888 when producing the local key id.
17889
17890 *Richard Levitte <levitte@stacken.kth.se>*
17891
17892 * New option -dhparam in s_server. This allows a DH parameter file to be
17893 stated explicitly. If it is not stated then it tries the first server
17894 certificate file. The previous behaviour hard coded the filename
17895 "server.pem".
17896
17897 *Steve Henson*
17898
17899 * Add -pubin and -pubout options to the rsa and dsa commands. These allow
17900 a public key to be input or output. For example:
17901 openssl rsa -in key.pem -pubout -out pubkey.pem
17902 Also added necessary DSA public key functions to handle this.
17903
17904 *Steve Henson*
17905
17906 * Fix so PKCS7_dataVerify() doesn't crash if no certificates are contained
17907 in the message. This was handled by allowing
17908 X509_find_by_issuer_and_serial() to tolerate a NULL passed to it.
17909
17910 *Steve Henson, reported by Sampo Kellomaki <sampo@mail.neuronio.pt>*
17911
17912 * Fix for bug in d2i_ASN1_bytes(): other ASN1 functions add an extra null
17913 to the end of the strings whereas this didn't. This would cause problems
17914 if strings read with d2i_ASN1_bytes() were later modified.
17915
17916 *Steve Henson, reported by Arne Ansper <arne@ats.cyber.ee>*
17917
17918 * Fix for base64 decode bug. When a base64 bio reads only one line of
17919 data and it contains EOF it will end up returning an error. This is
17920 caused by input 46 bytes long. The cause is due to the way base64
17921 BIOs find the start of base64 encoded data. They do this by trying a
17922 trial decode on each line until they find one that works. When they
17923 do a flag is set and it starts again knowing it can pass all the
17924 data directly through the decoder. Unfortunately it doesn't reset
17925 the context it uses. This means that if EOF is reached an attempt
17926 is made to pass two EOFs through the context and this causes the
17927 resulting error. This can also cause other problems as well. As is
17928 usual with these problems it takes *ages* to find and the fix is
17929 trivial: move one line.
17930
257e9d03 17931 *Steve Henson, reported by ian@uns.ns.ac.yu (Ivan Nejgebauer)*
5f8e6c50
DMSP
17932
17933 * Ugly workaround to get s_client and s_server working under Windows. The
17934 old code wouldn't work because it needed to select() on sockets and the
17935 tty (for keypresses and to see if data could be written). Win32 only
17936 supports select() on sockets so we select() with a 1s timeout on the
17937 sockets and then see if any characters are waiting to be read, if none
17938 are present then we retry, we also assume we can always write data to
17939 the tty. This isn't nice because the code then blocks until we've
17940 received a complete line of data and it is effectively polling the
17941 keyboard at 1s intervals: however it's quite a bit better than not
17942 working at all :-) A dedicated Windows application might handle this
17943 with an event loop for example.
17944
17945 *Steve Henson*
17946
17947 * Enhance RSA_METHOD structure. Now there are two extra methods, rsa_sign
17948 and rsa_verify. When the RSA_FLAGS_SIGN_VER option is set these functions
17949 will be called when RSA_sign() and RSA_verify() are used. This is useful
17950 if rsa_pub_dec() and rsa_priv_enc() equivalents are not available.
17951 For this to work properly RSA_public_decrypt() and RSA_private_encrypt()
17952 should *not* be used: RSA_sign() and RSA_verify() must be used instead.
17953 This necessitated the support of an extra signature type NID_md5_sha1
17954 for SSL signatures and modifications to the SSL library to use it instead
17955 of calling RSA_public_decrypt() and RSA_private_encrypt().
17956
17957 *Steve Henson*
17958
17959 * Add new -verify -CAfile and -CApath options to the crl program, these
17960 will lookup a CRL issuers certificate and verify the signature in a
17961 similar way to the verify program. Tidy up the crl program so it
17962 no longer accesses structures directly. Make the ASN1 CRL parsing a bit
17963 less strict. It will now permit CRL extensions even if it is not
17964 a V2 CRL: this will allow it to tolerate some broken CRLs.
17965
17966 *Steve Henson*
17967
17968 * Initialize all non-automatic variables each time one of the openssl
17969 sub-programs is started (this is necessary as they may be started
17970 multiple times from the "OpenSSL>" prompt).
17971
17972 *Lennart Bang, Bodo Moeller*
17973
17974 * Preliminary compilation option RSA_NULL which disables RSA crypto without
17975 removing all other RSA functionality (this is what NO_RSA does). This
17976 is so (for example) those in the US can disable those operations covered
17977 by the RSA patent while allowing storage and parsing of RSA keys and RSA
17978 key generation.
17979
17980 *Steve Henson*
17981
17982 * Non-copying interface to BIO pairs.
17983 (still largely untested)
17984
17985 *Bodo Moeller*
17986
17987 * New function ASN1_tag2str() to convert an ASN1 tag to a descriptive
17988 ASCII string. This was handled independently in various places before.
17989
17990 *Steve Henson*
17991
17992 * New functions UTF8_getc() and UTF8_putc() that parse and generate
17993 UTF8 strings a character at a time.
17994
17995 *Steve Henson*
17996
17997 * Use client_version from client hello to select the protocol
17998 (s23_srvr.c) and for RSA client key exchange verification
17999 (s3_srvr.c), as required by the SSL 3.0/TLS 1.0 specifications.
18000
18001 *Bodo Moeller*
18002
18003 * Add various utility functions to handle SPKACs, these were previously
18004 handled by poking round in the structure internals. Added new function
18005 NETSCAPE_SPKI_print() to print out SPKAC and a new utility 'spkac' to
18006 print, verify and generate SPKACs. Based on an original idea from
18007 Massimiliano Pala <madwolf@comune.modena.it> but extensively modified.
18008
18009 *Steve Henson*
18010
18011 * RIPEMD160 is operational on all platforms and is back in 'make test'.
18012
18013 *Andy Polyakov*
18014
18015 * Allow the config file extension section to be overwritten on the
18016 command line. Based on an original idea from Massimiliano Pala
18017 <madwolf@comune.modena.it>. The new option is called -extensions
18018 and can be applied to ca, req and x509. Also -reqexts to override
18019 the request extensions in req and -crlexts to override the crl extensions
18020 in ca.
18021
18022 *Steve Henson*
18023
18024 * Add new feature to the SPKAC handling in ca. Now you can include
18025 the same field multiple times by preceding it by "XXXX." for example:
18026 1.OU="Unit name 1"
18027 2.OU="Unit name 2"
18028 this is the same syntax as used in the req config file.
18029
18030 *Steve Henson*
18031
18032 * Allow certificate extensions to be added to certificate requests. These
18033 are specified in a 'req_extensions' option of the req section of the
18034 config file. They can be printed out with the -text option to req but
18035 are otherwise ignored at present.
18036
18037 *Steve Henson*
18038
18039 * Fix a horrible bug in enc_read() in crypto/evp/bio_enc.c: if the first
18040 data read consists of only the final block it would not decrypted because
18041 EVP_CipherUpdate() would correctly report zero bytes had been decrypted.
18042 A misplaced 'break' also meant the decrypted final block might not be
18043 copied until the next read.
18044
18045 *Steve Henson*
18046
18047 * Initial support for DH_METHOD. Again based on RSA_METHOD. Also added
18048 a few extra parameters to the DH structure: these will be useful if
18049 for example we want the value of 'q' or implement X9.42 DH.
18050
18051 *Steve Henson*
18052
18053 * Initial support for DSA_METHOD. This is based on the RSA_METHOD and
18054 provides hooks that allow the default DSA functions or functions on a
18055 "per key" basis to be replaced. This allows hardware acceleration and
18056 hardware key storage to be handled without major modification to the
4d49b685 18057 library. Also added low-level modexp hooks and CRYPTO_EX structure and
5f8e6c50
DMSP
18058 associated functions.
18059
18060 *Steve Henson*
18061
18062 * Add a new flag to memory BIOs, BIO_FLAG_MEM_RDONLY. This marks the BIO
18063 as "read only": it can't be written to and the buffer it points to will
18064 not be freed. Reading from a read only BIO is much more efficient than
18065 a normal memory BIO. This was added because there are several times when
18066 an area of memory needs to be read from a BIO. The previous method was
18067 to create a memory BIO and write the data to it, this results in two
18068 copies of the data and an O(n^2) reading algorithm. There is a new
18069 function BIO_new_mem_buf() which creates a read only memory BIO from
18070 an area of memory. Also modified the PKCS#7 routines to use read only
18071 memory BIOs.
18072
18073 *Steve Henson*
18074
18075 * Bugfix: ssl23_get_client_hello did not work properly when called in
18076 state SSL23_ST_SR_CLNT_HELLO_B, i.e. when the first 7 bytes of
18077 a SSLv2-compatible client hello for SSLv3 or TLSv1 could be read,
18078 but a retry condition occurred while trying to read the rest.
18079
18080 *Bodo Moeller*
18081
18082 * The PKCS7_ENC_CONTENT_new() function was setting the content type as
18083 NID_pkcs7_encrypted by default: this was wrong since this should almost
18084 always be NID_pkcs7_data. Also modified the PKCS7_set_type() to handle
18085 the encrypted data type: this is a more sensible place to put it and it
18086 allows the PKCS#12 code to be tidied up that duplicated this
18087 functionality.
18088
18089 *Steve Henson*
18090
18091 * Changed obj_dat.pl script so it takes its input and output files on
18092 the command line. This should avoid shell escape redirection problems
18093 under Win32.
18094
18095 *Steve Henson*
18096
18097 * Initial support for certificate extension requests, these are included
18098 in things like Xenroll certificate requests. Included functions to allow
18099 extensions to be obtained and added.
18100
18101 *Steve Henson*
18102
18103 * -crlf option to s_client and s_server for sending newlines as
18104 CRLF (as required by many protocols).
18105
18106 *Bodo Moeller*
18107
257e9d03 18108### Changes between 0.9.3a and 0.9.4 [09 Aug 1999]
5f8e6c50
DMSP
18109
18110 * Install libRSAglue.a when OpenSSL is built with RSAref.
18111
18112 *Ralf S. Engelschall*
18113
257e9d03 18114 * A few more `#ifndef NO_FP_API / #endif` pairs for consistency.
5f8e6c50
DMSP
18115
18116 *Andrija Antonijevic <TheAntony2@bigfoot.com>*
18117
18118 * Fix -startdate and -enddate (which was missing) arguments to 'ca'
18119 program.
18120
18121 *Steve Henson*
18122
18123 * New function DSA_dup_DH, which duplicates DSA parameters/keys as
18124 DH parameters/keys (q is lost during that conversion, but the resulting
18125 DH parameters contain its length).
18126
18127 For 1024-bit p, DSA_generate_parameters followed by DSA_dup_DH is
18128 much faster than DH_generate_parameters (which creates parameters
257e9d03 18129 where `p = 2*q + 1`), and also the smaller q makes DH computations
5f8e6c50
DMSP
18130 much more efficient (160-bit exponentiation instead of 1024-bit
18131 exponentiation); so this provides a convenient way to support DHE
18132 ciphersuites in SSL/TLS servers (see ssl/ssltest.c). It is of
18133 utter importance to use
18134 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
18135 or
18136 SSL_set_options(s_ctx, SSL_OP_SINGLE_DH_USE);
18137 when such DH parameters are used, because otherwise small subgroup
18138 attacks may become possible!
18139
18140 *Bodo Moeller*
18141
18142 * Avoid memory leak in i2d_DHparams.
18143
18144 *Bodo Moeller*
18145
18146 * Allow the -k option to be used more than once in the enc program:
18147 this allows the same encrypted message to be read by multiple recipients.
18148
18149 *Steve Henson*
18150
18151 * New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts
18152 an ASN1_OBJECT to a text string. If the "no_name" parameter is set then
18153 it will always use the numerical form of the OID, even if it has a short
18154 or long name.
18155
18156 *Steve Henson*
18157
18158 * Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp
18159 method only got called if p,q,dmp1,dmq1,iqmp components were present,
18160 otherwise bn_mod_exp was called. In the case of hardware keys for example
18161 no private key components need be present and it might store extra data
18162 in the RSA structure, which cannot be accessed from bn_mod_exp.
18163 By setting RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for
18164 private key operations.
18165
18166 *Steve Henson*
18167
18168 * Added support for SPARC Linux.
18169
18170 *Andy Polyakov*
18171
18172 * pem_password_cb function type incompatibly changed from
18173 typedef int pem_password_cb(char *buf, int size, int rwflag);
18174 to
18175 ....(char *buf, int size, int rwflag, void *userdata);
18176 so that applications can pass data to their callbacks:
257e9d03 18177 The `PEM[_ASN1]_{read,write}...` functions and macros now take an
5f8e6c50
DMSP
18178 additional void * argument, which is just handed through whenever
18179 the password callback is called.
18180
18181 *Damien Miller <dmiller@ilogic.com.au>; tiny changes by Bodo Moeller*
18182
18183 New function SSL_CTX_set_default_passwd_cb_userdata.
18184
18185 Compatibility note: As many C implementations push function arguments
18186 onto the stack in reverse order, the new library version is likely to
18187 interoperate with programs that have been compiled with the old
18188 pem_password_cb definition (PEM_whatever takes some data that
18189 happens to be on the stack as its last argument, and the callback
18190 just ignores this garbage); but there is no guarantee whatsoever that
18191 this will work.
18192
18193 * The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=...
18194 (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused
18195 problems not only on Windows, but also on some Unix platforms.
18196 To avoid problematic command lines, these definitions are now in an
18197 auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl
18198 for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds).
18199
18200 *Bodo Moeller*
18201
18202 * MIPS III/IV assembler module is reimplemented.
18203
18204 *Andy Polyakov*
18205
18206 * More DES library cleanups: remove references to srand/rand and
18207 delete an unused file.
18208
18209 *Ulf Möller*
18210
18211 * Add support for the free Netwide assembler (NASM) under Win32,
18212 since not many people have MASM (ml) and it can be hard to obtain.
18213 This is currently experimental but it seems to work OK and pass all
18214 the tests. Check out INSTALL.W32 for info.
18215
18216 *Steve Henson*
18217
18218 * Fix memory leaks in s3_clnt.c: All non-anonymous SSL3/TLS1 connections
18219 without temporary keys kept an extra copy of the server key,
18220 and connections with temporary keys did not free everything in case
18221 of an error.
18222
18223 *Bodo Moeller*
18224
18225 * New function RSA_check_key and new openssl rsa option -check
18226 for verifying the consistency of RSA keys.
18227
18228 *Ulf Moeller, Bodo Moeller*
18229
18230 * Various changes to make Win32 compile work:
18231 1. Casts to avoid "loss of data" warnings in p5_crpt2.c
18232 2. Change unsigned int to int in b_dump.c to avoid "signed/unsigned
18233 comparison" warnings.
257e9d03 18234 3. Add `sk_<TYPE>_sort` to DEF file generator and do make update.
5f8e6c50
DMSP
18235
18236 *Steve Henson*
18237
18238 * Add a debugging option to PKCS#5 v2 key generation function: when
18239 you #define DEBUG_PKCS5V2 passwords, salts, iteration counts and
18240 derived keys are printed to stderr.
18241
18242 *Steve Henson*
18243
18244 * Copy the flags in ASN1_STRING_dup().
18245
18246 *Roman E. Pavlov <pre@mo.msk.ru>*
18247
18248 * The x509 application mishandled signing requests containing DSA
18249 keys when the signing key was also DSA and the parameters didn't match.
18250
18251 It was supposed to omit the parameters when they matched the signing key:
18252 the verifying software was then supposed to automatically use the CA's
18253 parameters if they were absent from the end user certificate.
18254
18255 Omitting parameters is no longer recommended. The test was also
18256 the wrong way round! This was probably due to unusual behaviour in
18257 EVP_cmp_parameters() which returns 1 if the parameters match.
18258 This meant that parameters were omitted when they *didn't* match and
18259 the certificate was useless. Certificates signed with 'ca' didn't have
18260 this bug.
18261
18262 *Steve Henson, reported by Doug Erickson <Doug.Erickson@Part.NET>*
18263
18264 * Memory leak checking (-DCRYPTO_MDEBUG) had some problems.
18265 The interface is as follows:
18266 Applications can use
18267 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) aka MemCheck_start(),
18268 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) aka MemCheck_stop();
18269 "off" is now the default.
18270 The library internally uses
18271 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) aka MemCheck_off(),
18272 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) aka MemCheck_on()
18273 to disable memory-checking temporarily.
18274
18275 Some inconsistent states that previously were possible (and were
18276 even the default) are now avoided.
18277
18278 -DCRYPTO_MDEBUG_TIME is new and additionally stores the current time
18279 with each memory chunk allocated; this is occasionally more helpful
18280 than just having a counter.
18281
18282 -DCRYPTO_MDEBUG_THREAD is also new and adds the thread ID.
18283
18284 -DCRYPTO_MDEBUG_ALL enables all of the above, plus any future
18285 extensions.
18286
18287 *Bodo Moeller*
18288
18289 * Introduce "mode" for SSL structures (with defaults in SSL_CTX),
18290 which largely parallels "options", but is for changing API behaviour,
18291 whereas "options" are about protocol behaviour.
18292 Initial "mode" flags are:
18293
18294 SSL_MODE_ENABLE_PARTIAL_WRITE Allow SSL_write to report success when
18295 a single record has been written.
18296 SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER Don't insist that SSL_write
18297 retries use the same buffer location.
18298 (But all of the contents must be
18299 copied!)
18300
18301 *Bodo Moeller*
18302
18303 * Bugfix: SSL_set_options ignored its parameter, only SSL_CTX_set_options
18304 worked.
18305
18306 * Fix problems with no-hmac etc.
18307
18308 *Ulf Möller, pointed out by Brian Wellington <bwelling@tislabs.com>*
18309
18310 * New functions RSA_get_default_method(), RSA_set_method() and
18311 RSA_get_method(). These allows replacement of RSA_METHODs without having
18312 to mess around with the internals of an RSA structure.
18313
18314 *Steve Henson*
18315
18316 * Fix memory leaks in DSA_do_sign and DSA_is_prime.
18317 Also really enable memory leak checks in openssl.c and in some
18318 test programs.
18319
18320 *Chad C. Mulligan, Bodo Moeller*
18321
18322 * Fix a bug in d2i_ASN1_INTEGER() and i2d_ASN1_INTEGER() which can mess
18323 up the length of negative integers. This has now been simplified to just
18324 store the length when it is first determined and use it later, rather
18325 than trying to keep track of where data is copied and updating it to
18326 point to the end.
257e9d03 18327 *Steve Henson, reported by Brien Wheeler <bwheeler@authentica-security.com>*
5f8e6c50
DMSP
18328
18329 * Add a new function PKCS7_signatureVerify. This allows the verification
18330 of a PKCS#7 signature but with the signing certificate passed to the
18331 function itself. This contrasts with PKCS7_dataVerify which assumes the
18332 certificate is present in the PKCS#7 structure. This isn't always the
18333 case: certificates can be omitted from a PKCS#7 structure and be
18334 distributed by "out of band" means (such as a certificate database).
18335
18336 *Steve Henson*
18337
257e9d03 18338 * Complete the `PEM_*` macros with DECLARE_PEM versions to replace the
5f8e6c50
DMSP
18339 function prototypes in pem.h, also change util/mkdef.pl to add the
18340 necessary function names.
18341
18342 *Steve Henson*
18343
18344 * mk1mf.pl (used by Windows builds) did not properly read the
18345 options set by Configure in the top level Makefile, and Configure
18346 was not even able to write more than one option correctly.
18347 Fixed, now "no-idea no-rc5 -DCRYPTO_MDEBUG" etc. works as intended.
18348
18349 *Bodo Moeller*
18350
18351 * New functions CONF_load_bio() and CONF_load_fp() to allow a config
18352 file to be loaded from a BIO or FILE pointer. The BIO version will
18353 for example allow memory BIOs to contain config info.
18354
18355 *Steve Henson*
18356
18357 * New function "CRYPTO_num_locks" that returns CRYPTO_NUM_LOCKS.
18358 Whoever hopes to achieve shared-library compatibility across versions
18359 must use this, not the compile-time macro.
18360 (Exercise 0.9.4: Which is the minimum library version required by
18361 such programs?)
18362 Note: All this applies only to multi-threaded programs, others don't
18363 need locks.
18364
18365 *Bodo Moeller*
18366
18367 * Add missing case to s3_clnt.c state machine -- one of the new SSL tests
18368 through a BIO pair triggered the default case, i.e.
18369 SSLerr(...,SSL_R_UNKNOWN_STATE).
18370
18371 *Bodo Moeller*
18372
18373 * New "BIO pair" concept (crypto/bio/bss_bio.c) so that applications
18374 can use the SSL library even if none of the specific BIOs is
18375 appropriate.
18376
18377 *Bodo Moeller*
18378
18379 * Fix a bug in i2d_DSAPublicKey() which meant it returned the wrong value
18380 for the encoded length.
18381
18382 *Jeon KyoungHo <khjeon@sds.samsung.co.kr>*
18383
18384 * Add initial documentation of the X509V3 functions.
18385
18386 *Steve Henson*
18387
18388 * Add a new pair of functions PEM_write_PKCS8PrivateKey() and
18389 PEM_write_bio_PKCS8PrivateKey() that are equivalent to
18390 PEM_write_PrivateKey() and PEM_write_bio_PrivateKey() but use the more
18391 secure PKCS#8 private key format with a high iteration count.
18392
18393 *Steve Henson*
18394
18395 * Fix determination of Perl interpreter: A perl or perl5
257e9d03 18396 *directory* in $PATH was also accepted as the interpreter.
5f8e6c50
DMSP
18397
18398 *Ralf S. Engelschall*
18399
18400 * Fix demos/sign/sign.c: well there wasn't anything strictly speaking
18401 wrong with it but it was very old and did things like calling
18402 PEM_ASN1_read() directly and used MD5 for the hash not to mention some
18403 unusual formatting.
18404
18405 *Steve Henson*
18406
18407 * Fix demos/selfsign.c: it used obsolete and deleted functions, changed
18408 to use the new extension code.
18409
18410 *Steve Henson*
18411
18412 * Implement the PEM_read/PEM_write functions in crypto/pem/pem_all.c
18413 with macros. This should make it easier to change their form, add extra
18414 arguments etc. Fix a few PEM prototypes which didn't have cipher as a
18415 constant.
18416
18417 *Steve Henson*
18418
18419 * Add to configuration table a new entry that can specify an alternative
18420 name for unistd.h (for pre-POSIX systems); we need this for NeXTstep,
18421 according to Mark Crispin <MRC@Panda.COM>.
18422
18423 *Bodo Moeller*
18424
5f8e6c50
DMSP
18425 * DES CBC did not update the IV. Weird.
18426
18427 *Ben Laurie*
18428lse
18429 des_cbc_encrypt does not update the IV, but des_ncbc_encrypt does.
18430 Changing the behaviour of the former might break existing programs --
18431 where IV updating is needed, des_ncbc_encrypt can be used.
18432ndif
18433
18434 * When bntest is run from "make test" it drives bc to check its
18435 calculations, as well as internally checking them. If an internal check
18436 fails, it needs to cause bc to give a non-zero result or make test carries
18437 on without noticing the failure. Fixed.
18438
18439 *Ben Laurie*
18440
18441 * DES library cleanups.
18442
18443 *Ulf Möller*
18444
18445 * Add support for PKCS#5 v2.0 PBE algorithms. This will permit PKCS#8 to be
18446 used with any cipher unlike PKCS#5 v1.5 which can at most handle 64 bit
18447 ciphers. NOTE: although the key derivation function has been verified
18448 against some published test vectors it has not been extensively tested
18449 yet. Added a -v2 "cipher" option to pkcs8 application to allow the use
18450 of v2.0.
18451
18452 *Steve Henson*
18453
18454 * Instead of "mkdir -p", which is not fully portable, use new
18455 Perl script "util/mkdir-p.pl".
18456
18457 *Bodo Moeller*
18458
18459 * Rewrite the way password based encryption (PBE) is handled. It used to
18460 assume that the ASN1 AlgorithmIdentifier parameter was a PBEParameter
18461 structure. This was true for the PKCS#5 v1.5 and PKCS#12 PBE algorithms
18462 but doesn't apply to PKCS#5 v2.0 where it can be something else. Now
18463 the 'parameter' field of the AlgorithmIdentifier is passed to the
18464 underlying key generation function so it must do its own ASN1 parsing.
18465 This has also changed the EVP_PBE_CipherInit() function which now has a
18466 'parameter' argument instead of literal salt and iteration count values
18467 and the function EVP_PBE_ALGOR_CipherInit() has been deleted.
18468
18469 *Steve Henson*
18470
18471 * Support for PKCS#5 v1.5 compatible password based encryption algorithms
18472 and PKCS#8 functionality. New 'pkcs8' application linked to openssl.
18473 Needed to change the PEM_STRING_EVP_PKEY value which was just "PRIVATE
18474 KEY" because this clashed with PKCS#8 unencrypted string. Since this
18475 value was just used as a "magic string" and not used directly its
18476 value doesn't matter.
18477
18478 *Steve Henson*
18479
18480 * Introduce some semblance of const correctness to BN. Shame C doesn't
18481 support mutable.
18482
18483 *Ben Laurie*
18484
18485 * "linux-sparc64" configuration (ultrapenguin).
18486
18487 *Ray Miller <ray.miller@oucs.ox.ac.uk>*
18488 "linux-sparc" configuration.
18489
18490 *Christian Forster <fo@hawo.stw.uni-erlangen.de>*
18491
18492 * config now generates no-xxx options for missing ciphers.
18493
18494 *Ulf Möller*
18495
18496 * Support the EBCDIC character set (work in progress).
18497 File ebcdic.c not yet included because it has a different license.
18498
18499 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
18500
18501 * Support BS2000/OSD-POSIX.
18502
18503 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>*
18504
257e9d03 18505 * Make callbacks for key generation use `void *` instead of `char *`.
5f8e6c50
DMSP
18506
18507 *Ben Laurie*
18508
18509 * Make S/MIME samples compile (not yet tested).
18510
18511 *Ben Laurie*
18512
18513 * Additional typesafe stacks.
18514
18515 *Ben Laurie*
18516
18517 * New configuration variants "bsdi-elf-gcc" (BSD/OS 4.x).
18518
18519 *Bodo Moeller*
18520
257e9d03 18521### Changes between 0.9.3 and 0.9.3a [29 May 1999]
5f8e6c50
DMSP
18522
18523 * New configuration variant "sco5-gcc".
18524
18525 * Updated some demos.
18526
18527 *Sean O Riordain, Wade Scholine*
18528
18529 * Add missing BIO_free at exit of pkcs12 application.
18530
18531 *Wu Zhigang*
18532
18533 * Fix memory leak in conf.c.
18534
18535 *Steve Henson*
18536
18537 * Updates for Win32 to assembler version of MD5.
18538
18539 *Steve Henson*
18540
ec2bfb7d 18541 * Set #! path to perl in `apps/der_chop` to where we found it
5f8e6c50
DMSP
18542 instead of using a fixed path.
18543
18544 *Bodo Moeller*
18545
18546 * SHA library changes for irix64-mips4-cc.
18547
18548 *Andy Polyakov*
18549
18550 * Improvements for VMS support.
18551
18552 *Richard Levitte*
18553
257e9d03 18554### Changes between 0.9.2b and 0.9.3 [24 May 1999]
5f8e6c50
DMSP
18555
18556 * Bignum library bug fix. IRIX 6 passes "make test" now!
18557 This also avoids the problems with SC4.2 and unpatched SC5.
18558
18559 *Andy Polyakov <appro@fy.chalmers.se>*
18560
18561 * New functions sk_num, sk_value and sk_set to replace the previous macros.
18562 These are required because of the typesafe stack would otherwise break
18563 existing code. If old code used a structure member which used to be STACK
18564 and is now STACK_OF (for example cert in a PKCS7_SIGNED structure) with
18565 sk_num or sk_value it would produce an error because the num, data members
18566 are not present in STACK_OF. Now it just produces a warning. sk_set
18567 replaces the old method of assigning a value to sk_value
18568 (e.g. sk_value(x, i) = y) which the library used in a few cases. Any code
18569 that does this will no longer work (and should use sk_set instead) but
18570 this could be regarded as a "questionable" behaviour anyway.
18571
18572 *Steve Henson*
18573
18574 * Fix most of the other PKCS#7 bugs. The "experimental" code can now
18575 correctly handle encrypted S/MIME data.
18576
18577 *Steve Henson*
18578
18579 * Change type of various DES function arguments from des_cblock
18580 (which means, in function argument declarations, pointer to char)
18581 to des_cblock * (meaning pointer to array with 8 char elements),
18582 which allows the compiler to do more typechecking; it was like
18583 that back in SSLeay, but with lots of ugly casts.
18584
18585 Introduce new type const_des_cblock.
18586
18587 *Bodo Moeller*
18588
18589 * Reorganise the PKCS#7 library and get rid of some of the more obvious
18590 problems: find RecipientInfo structure that matches recipient certificate
18591 and initialise the ASN1 structures properly based on passed cipher.
18592
18593 *Steve Henson*
18594
18595 * Belatedly make the BN tests actually check the results.
18596
18597 *Ben Laurie*
18598
18599 * Fix the encoding and decoding of negative ASN1 INTEGERS and conversion
18600 to and from BNs: it was completely broken. New compilation option
18601 NEG_PUBKEY_BUG to allow for some broken certificates that encode public
18602 key elements as negative integers.
18603
18604 *Steve Henson*
18605
18606 * Reorganize and speed up MD5.
18607
18608 *Andy Polyakov <appro@fy.chalmers.se>*
18609
18610 * VMS support.
18611
18612 *Richard Levitte <richard@levitte.org>*
18613
18614 * New option -out to asn1parse to allow the parsed structure to be
18615 output to a file. This is most useful when combined with the -strparse
18616 option to examine the output of things like OCTET STRINGS.
18617
18618 *Steve Henson*
18619
18620 * Make SSL library a little more fool-proof by not requiring any longer
257e9d03
RS
18621 that `SSL_set_{accept,connect}_state` be called before
18622 `SSL_{accept,connect}` may be used (`SSL_set_..._state` is omitted
5f8e6c50
DMSP
18623 in many applications because usually everything *appeared* to work as
18624 intended anyway -- now it really works as intended).
18625
18626 *Bodo Moeller*
18627
18628 * Move openssl.cnf out of lib/.
18629
18630 *Ulf Möller*
18631
257e9d03 18632 * Fix various things to let OpenSSL even pass "egcc -pipe -O2 -Wall
5f8e6c50 18633 -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes
257e9d03 18634 -Wmissing-declarations -Wnested-externs -Winline" with EGCS 1.1.2+
5f8e6c50
DMSP
18635
18636 *Ralf S. Engelschall*
18637
18638 * Various fixes to the EVP and PKCS#7 code. It may now be able to
18639 handle PKCS#7 enveloped data properly.
18640
18641 *Sebastian Akerman <sak@parallelconsulting.com>, modified by Steve*
18642
18643 * Create a duplicate of the SSL_CTX's CERT in SSL_new instead of
18644 copying pointers. The cert_st handling is changed by this in
18645 various ways (and thus what used to be known as ctx->default_cert
257e9d03 18646 is now called ctx->cert, since we don't resort to `s->ctx->[default_]cert`
5f8e6c50
DMSP
18647 any longer when s->cert does not give us what we need).
18648 ssl_cert_instantiate becomes obsolete by this change.
18649 As soon as we've got the new code right (possibly it already is?),
18650 we have solved a couple of bugs of the earlier code where s->cert
18651 was used as if it could not have been shared with other SSL structures.
18652
18653 Note that using the SSL API in certain dirty ways now will result
18654 in different behaviour than observed with earlier library versions:
257e9d03 18655 Changing settings for an `SSL_CTX *ctx` after having done s = SSL_new(ctx)
5f8e6c50
DMSP
18656 does not influence s as it used to.
18657
18658 In order to clean up things more thoroughly, inside SSL_SESSION
18659 we don't use CERT any longer, but a new structure SESS_CERT
18660 that holds per-session data (if available); currently, this is
18661 the peer's certificate chain and, for clients, the server's certificate
18662 and temporary key. CERT holds only those values that can have
18663 meaningful defaults in an SSL_CTX.
18664
18665 *Bodo Moeller*
18666
18667 * New function X509V3_EXT_i2d() to create an X509_EXTENSION structure
18668 from the internal representation. Various PKCS#7 fixes: remove some
18669 evil casts and set the enc_dig_alg field properly based on the signing
18670 key type.
18671
18672 *Steve Henson*
18673
18674 * Allow PKCS#12 password to be set from the command line or the
18675 environment. Let 'ca' get its config file name from the environment
18676 variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req'
18677 and 'x509').
18678
18679 *Steve Henson*
18680
18681 * Allow certificate policies extension to use an IA5STRING for the
18682 organization field. This is contrary to the PKIX definition but
18683 VeriSign uses it and IE5 only recognises this form. Document 'x509'
18684 extension option.
18685
18686 *Steve Henson*
18687
18688 * Add PEDANTIC compiler flag to allow compilation with gcc -pedantic,
18689 without disallowing inline assembler and the like for non-pedantic builds.
18690
18691 *Ben Laurie*
18692
18693 * Support Borland C++ builder.
18694
18695 *Janez Jere <jj@void.si>, modified by Ulf Möller*
18696
18697 * Support Mingw32.
18698
18699 *Ulf Möller*
18700
18701 * SHA-1 cleanups and performance enhancements.
18702
18703 *Andy Polyakov <appro@fy.chalmers.se>*
18704
18705 * Sparc v8plus assembler for the bignum library.
18706
18707 *Andy Polyakov <appro@fy.chalmers.se>*
18708
18709 * Accept any -xxx and +xxx compiler options in Configure.
18710
18711 *Ulf Möller*
18712
18713 * Update HPUX configuration.
18714
18715 *Anonymous*
18716
257e9d03 18717 * Add missing `sk_<type>_unshift()` function to safestack.h
5f8e6c50
DMSP
18718
18719 *Ralf S. Engelschall*
18720
18721 * New function SSL_CTX_use_certificate_chain_file that sets the
18722 "extra_cert"s in addition to the certificate. (This makes sense
18723 only for "PEM" format files, as chains as a whole are not
18724 DER-encoded.)
18725
18726 *Bodo Moeller*
18727
18728 * Support verify_depth from the SSL API.
18729 x509_vfy.c had what can be considered an off-by-one-error:
18730 Its depth (which was not part of the external interface)
18731 was actually counting the number of certificates in a chain;
18732 now it really counts the depth.
18733
18734 *Bodo Moeller*
18735
18736 * Bugfix in crypto/x509/x509_cmp.c: The SSLerr macro was used
18737 instead of X509err, which often resulted in confusing error
18738 messages since the error codes are not globally unique
18739 (e.g. an alleged error in ssl3_accept when a certificate
18740 didn't match the private key).
18741
18742 * New function SSL_CTX_set_session_id_context that allows to set a default
18743 value (so that you don't need SSL_set_session_id_context for each
18744 connection using the SSL_CTX).
18745
18746 *Bodo Moeller*
18747
18748 * OAEP decoding bug fix.
18749
18750 *Ulf Möller*
18751
18752 * Support INSTALL_PREFIX for package builders, as proposed by
18753 David Harris.
18754
18755 *Bodo Moeller*
18756
18757 * New Configure options "threads" and "no-threads". For systems
18758 where the proper compiler options are known (currently Solaris
18759 and Linux), "threads" is the default.
18760
18761 *Bodo Moeller*
18762
18763 * New script util/mklink.pl as a faster substitute for util/mklink.sh.
18764
18765 *Bodo Moeller*
18766
18767 * Install various scripts to $(OPENSSLDIR)/misc, not to
18768 $(INSTALLTOP)/bin -- they shouldn't clutter directories
18769 such as /usr/local/bin.
18770
18771 *Bodo Moeller*
18772
18773 * "make linux-shared" to build shared libraries.
18774
18775 *Niels Poppe <niels@netbox.org>*
18776
257e9d03 18777 * New Configure option `no-<cipher>` (rsa, idea, rc5, ...).
5f8e6c50
DMSP
18778
18779 *Ulf Möller*
18780
18781 * Add the PKCS#12 API documentation to openssl.txt. Preliminary support for
18782 extension adding in x509 utility.
18783
18784 *Steve Henson*
18785
18786 * Remove NOPROTO sections and error code comments.
18787
18788 *Ulf Möller*
18789
18790 * Partial rewrite of the DEF file generator to now parse the ANSI
18791 prototypes.
18792
18793 *Steve Henson*
18794
18795 * New Configure options --prefix=DIR and --openssldir=DIR.
18796
18797 *Ulf Möller*
18798
18799 * Complete rewrite of the error code script(s). It is all now handled
18800 by one script at the top level which handles error code gathering,
18801 header rewriting and C source file generation. It should be much better
18802 than the old method: it now uses a modified version of Ulf's parser to
18803 read the ANSI prototypes in all header files (thus the old K&R definitions
18804 aren't needed for error creation any more) and do a better job of
44652c16 18805 translating function codes into names. The old 'ASN1 error code embedded
5f8e6c50
DMSP
18806 in a comment' is no longer necessary and it doesn't use .err files which
18807 have now been deleted. Also the error code call doesn't have to appear all
18808 on one line (which resulted in some large lines...).
18809
18810 *Steve Henson*
18811
257e9d03 18812 * Change #include filenames from `<foo.h>` to `<openssl/foo.h>`.
5f8e6c50
DMSP
18813
18814 *Bodo Moeller*
18815
18816 * Change behaviour of ssl2_read when facing length-0 packets: Don't return
18817 0 (which usually indicates a closed connection), but continue reading.
18818
18819 *Bodo Moeller*
18820
18821 * Fix some race conditions.
18822
18823 *Bodo Moeller*
18824
18825 * Add support for CRL distribution points extension. Add Certificate
18826 Policies and CRL distribution points documentation.
18827
18828 *Steve Henson*
18829
18830 * Move the autogenerated header file parts to crypto/opensslconf.h.
18831
18832 *Ulf Möller*
18833
18834 * Fix new 56-bit DES export ciphersuites: they were using 7 bytes instead of
18835 8 of keying material. Merlin has also confirmed interop with this fix
18836 between OpenSSL and Baltimore C/SSL 2.0 and J/SSL 2.0.
18837
18838 *Merlin Hughes <merlin@baltimore.ie>*
18839
18840 * Fix lots of warnings.
18841
18842 *Richard Levitte <levitte@stacken.kth.se>*
18843
18844 * In add_cert_dir() in crypto/x509/by_dir.c, break out of the loop if
18845 the directory spec didn't end with a LIST_SEPARATOR_CHAR.
18846
18847 *Richard Levitte <levitte@stacken.kth.se>*
18848
18849 * Fix problems with sizeof(long) == 8.
18850
18851 *Andy Polyakov <appro@fy.chalmers.se>*
18852
18853 * Change functions to ANSI C.
18854
18855 *Ulf Möller*
18856
18857 * Fix typos in error codes.
18858
18859 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>, Ulf Möller*
18860
18861 * Remove defunct assembler files from Configure.
18862
18863 *Ulf Möller*
18864
18865 * SPARC v8 assembler BIGNUM implementation.
18866
18867 *Andy Polyakov <appro@fy.chalmers.se>*
18868
18869 * Support for Certificate Policies extension: both print and set.
18870 Various additions to support the r2i method this uses.
18871
18872 *Steve Henson*
18873
18874 * A lot of constification, and fix a bug in X509_NAME_oneline() that could
18875 return a const string when you are expecting an allocated buffer.
18876
18877 *Ben Laurie*
18878
18879 * Add support for ASN1 types UTF8String and VISIBLESTRING, also the CHOICE
18880 types DirectoryString and DisplayText.
18881
18882 *Steve Henson*
18883
18884 * Add code to allow r2i extensions to access the configuration database,
18885 add an LHASH database driver and add several ctx helper functions.
18886
18887 *Steve Henson*
18888
18889 * Fix an evil bug in bn_expand2() which caused various BN functions to
18890 fail when they extended the size of a BIGNUM.
18891
18892 *Steve Henson*
18893
18894 * Various utility functions to handle SXNet extension. Modify mkdef.pl to
18895 support typesafe stack.
18896
18897 *Steve Henson*
18898
18899 * Fix typo in SSL_[gs]et_options().
18900
18901 *Nils Frostberg <nils@medcom.se>*
18902
18903 * Delete various functions and files that belonged to the (now obsolete)
18904 old X509V3 handling code.
18905
18906 *Steve Henson*
18907
18908 * New Configure option "rsaref".
18909
18910 *Ulf Möller*
18911
18912 * Don't auto-generate pem.h.
18913
18914 *Bodo Moeller*
18915
18916 * Introduce type-safe ASN.1 SETs.
18917
18918 *Ben Laurie*
18919
18920 * Convert various additional casted stacks to type-safe STACK_OF() variants.
18921
18922 *Ben Laurie, Ralf S. Engelschall, Steve Henson*
18923
18924 * Introduce type-safe STACKs. This will almost certainly break lots of code
18925 that links with OpenSSL (well at least cause lots of warnings), but fear
18926 not: the conversion is trivial, and it eliminates loads of evil casts. A
18927 few STACKed things have been converted already. Feel free to convert more.
18928 In the fullness of time, I'll do away with the STACK type altogether.
18929
18930 *Ben Laurie*
18931
257e9d03
RS
18932 * Add `openssl ca -revoke <certfile>` facility which revokes a certificate
18933 specified in `<certfile>` by updating the entry in the index.txt file.
5f8e6c50
DMSP
18934 This way one no longer has to edit the index.txt file manually for
18935 revoking a certificate. The -revoke option does the gory details now.
18936
18937 *Massimiliano Pala <madwolf@openca.org>, Ralf S. Engelschall*
18938
257e9d03
RS
18939 * Fix `openssl crl -noout -text` combination where `-noout` killed the
18940 `-text` option at all and this way the `-noout -text` combination was
18941 inconsistent in `openssl crl` with the friends in `openssl x509|rsa|dsa`.
5f8e6c50
DMSP
18942
18943 *Ralf S. Engelschall*
18944
18945 * Make sure a corresponding plain text error message exists for the
18946 X509_V_ERR_CERT_REVOKED/23 error number which can occur when a
18947 verify callback function determined that a certificate was revoked.
18948
18949 *Ralf S. Engelschall*
18950
257e9d03 18951 * Bugfix: In test/testenc, don't test `openssl <cipher>` for
5f8e6c50
DMSP
18952 ciphers that were excluded, e.g. by -DNO_IDEA. Also, test
18953 all available ciphers including rc5, which was forgotten until now.
18954 In order to let the testing shell script know which algorithms
18955 are available, a new (up to now undocumented) command
257e9d03 18956 `openssl list-cipher-commands` is used.
5f8e6c50
DMSP
18957
18958 *Bodo Moeller*
18959
18960 * Bugfix: s_client occasionally would sleep in select() when
18961 it should have checked SSL_pending() first.
18962
18963 *Bodo Moeller*
18964
18965 * New functions DSA_do_sign and DSA_do_verify to provide access to
18966 the raw DSA values prior to ASN.1 encoding.
18967
18968 *Ulf Möller*
18969
18970 * Tweaks to Configure
18971
18972 *Niels Poppe <niels@netbox.org>*
18973
18974 * Add support for PKCS#5 v2.0 ASN1 PBES2 structures. No other support,
18975 yet...
18976
18977 *Steve Henson*
18978
18979 * New variables $(RANLIB) and $(PERL) in the Makefiles.
18980
18981 *Ulf Möller*
18982
18983 * New config option to avoid instructions that are illegal on the 80386.
18984 The default code is faster, but requires at least a 486.
18985
18986 *Ulf Möller*
18987
18988 * Got rid of old SSL2_CLIENT_VERSION (inconsistently used) and
18989 SSL2_SERVER_VERSION (not used at all) macros, which are now the
18990 same as SSL2_VERSION anyway.
18991
18992 *Bodo Moeller*
18993
18994 * New "-showcerts" option for s_client.
18995
18996 *Bodo Moeller*
18997
18998 * Still more PKCS#12 integration. Add pkcs12 application to openssl
18999 application. Various cleanups and fixes.
19000
19001 *Steve Henson*
19002
19003 * More PKCS#12 integration. Add new pkcs12 directory with Makefile.ssl and
19004 modify error routines to work internally. Add error codes and PBE init
19005 to library startup routines.
19006
19007 *Steve Henson*
19008
19009 * Further PKCS#12 integration. Added password based encryption, PKCS#8 and
19010 packing functions to asn1 and evp. Changed function names and error
19011 codes along the way.
19012
19013 *Steve Henson*
19014
19015 * PKCS12 integration: and so it begins... First of several patches to
19016 slowly integrate PKCS#12 functionality into OpenSSL. Add PKCS#12
19017 objects to objects.h
19018
19019 *Steve Henson*
19020
19021 * Add a new 'indent' option to some X509V3 extension code. Initial ASN1
19022 and display support for Thawte strong extranet extension.
19023
19024 *Steve Henson*
19025
19026 * Add LinuxPPC support.
19027
19028 *Jeff Dubrule <igor@pobox.org>*
19029
19030 * Get rid of redundant BN file bn_mulw.c, and rename bn_div64 to
19031 bn_div_words in alpha.s.
19032
19033 *Hannes Reinecke <H.Reinecke@hw.ac.uk> and Ben Laurie*
19034
19035 * Make sure the RSA OAEP test is skipped under -DRSAref because
19036 OAEP isn't supported when OpenSSL is built with RSAref.
19037
19038 *Ulf Moeller <ulf@fitug.de>*
19039
19040 * Move definitions of IS_SET/IS_SEQUENCE inside crypto/asn1/asn1.h
19041 so they no longer are missing under -DNOPROTO.
19042
19043 *Soren S. Jorvang <soren@t.dk>*
19044
257e9d03 19045### Changes between 0.9.1c and 0.9.2b [22 Mar 1999]
5f8e6c50
DMSP
19046
19047 * Make SSL_get_peer_cert_chain() work in servers. Unfortunately, it still
19048 doesn't work when the session is reused. Coming soon!
19049
19050 *Ben Laurie*
19051
19052 * Fix a security hole, that allows sessions to be reused in the wrong
19053 context thus bypassing client cert protection! All software that uses
19054 client certs and session caches in multiple contexts NEEDS PATCHING to
19055 allow session reuse! A fuller solution is in the works.
19056
19057 *Ben Laurie, problem pointed out by Holger Reif, Bodo Moeller (and ???)*
19058
19059 * Some more source tree cleanups (removed obsolete files
19060 crypto/bf/asm/bf586.pl, test/test.txt and crypto/sha/asm/f.s; changed
19061 permission on "config" script to be executable) and a fix for the INSTALL
19062 document.
19063
19064 *Ulf Moeller <ulf@fitug.de>*
19065
19066 * Remove some legacy and erroneous uses of malloc, free instead of
19067 Malloc, Free.
19068
19069 *Lennart Bang <lob@netstream.se>, with minor changes by Steve*
19070
19071 * Make rsa_oaep_test return non-zero on error.
19072
19073 *Ulf Moeller <ulf@fitug.de>*
19074
19075 * Add support for native Solaris shared libraries. Configure
19076 solaris-sparc-sc4-pic, make, then run shlib/solaris-sc4.sh. It'd be nice
19077 if someone would make that last step automatic.
19078
19079 *Matthias Loepfe <Matthias.Loepfe@AdNovum.CH>*
19080
19081 * ctx_size was not built with the right compiler during "make links". Fixed.
19082
19083 *Ben Laurie*
19084
19085 * Change the meaning of 'ALL' in the cipher list. It now means "everything
19086 except NULL ciphers". This means the default cipher list will no longer
19087 enable NULL ciphers. They need to be specifically enabled e.g. with
19088 the string "DEFAULT:eNULL".
19089
19090 *Steve Henson*
19091
19092 * Fix to RSA private encryption routines: if p < q then it would
19093 occasionally produce an invalid result. This will only happen with
19094 externally generated keys because OpenSSL (and SSLeay) ensure p > q.
19095
19096 *Steve Henson*
19097
19098 * Be less restrictive and allow also `perl util/perlpath.pl
1dc1ea18
DDO
19099 /path/to/bin/perl` in addition to `perl util/perlpath.pl /path/to/bin`,
19100 because this way one can also use an interpreter named `perl5` (which is
5f8e6c50 19101 usually the name of Perl 5.xxx on platforms where an Perl 4.x is still
1dc1ea18 19102 installed as `perl`).
5f8e6c50
DMSP
19103
19104 *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
19105
19106 * Let util/clean-depend.pl work also with older Perl 5.00x versions.
19107
19108 *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
19109
19110 * Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add
19111 advapi32.lib to Win32 build and change the pem test comparison
19112 to fc.exe (thanks to Ulrich Kroener <kroneru@yahoo.com> for the
19113 suggestion). Fix misplaced ASNI prototypes and declarations in evp.h
19114 and crypto/des/ede_cbcm_enc.c.
19115
19116 *Steve Henson*
19117
19118 * DES quad checksum was broken on big-endian architectures. Fixed.
19119
19120 *Ben Laurie*
19121
19122 * Comment out two functions in bio.h that aren't implemented. Fix up the
19123 Win32 test batch file so it (might) work again. The Win32 test batch file
19124 is horrible: I feel ill....
19125
19126 *Steve Henson*
19127
19128 * Move various #ifdefs around so NO_SYSLOG, NO_DIRENT etc are now selected
19129 in e_os.h. Audit of header files to check ANSI and non ANSI
19130 sections: 10 functions were absent from non ANSI section and not exported
19131 from Windows DLLs. Fixed up libeay.num for new functions.
19132
19133 *Steve Henson*
19134
1dc1ea18 19135 * Make `openssl version` output lines consistent.
5f8e6c50
DMSP
19136
19137 *Ralf S. Engelschall*
19138
19139 * Fix Win32 symbol export lists for BIO functions: Added
19140 BIO_get_ex_new_index, BIO_get_ex_num, BIO_get_ex_data and BIO_set_ex_data
19141 to ms/libeay{16,32}.def.
19142
19143 *Ralf S. Engelschall*
19144
19145 * Second round of fixing the OpenSSL perl/ stuff. It now at least compiled
19146 fine under Unix and passes some trivial tests I've now added. But the
19147 whole stuff is horribly incomplete, so a README.1ST with a disclaimer was
19148 added to make sure no one expects that this stuff really works in the
19149 OpenSSL 0.9.2 release. Additionally I've started to clean the XS sources
19150 up and fixed a few little bugs and inconsistencies in OpenSSL.{pm,xs} and
19151 openssl_bio.xs.
19152
19153 *Ralf S. Engelschall*
19154
19155 * Fix the generation of two part addresses in perl.
19156
19157 *Kenji Miyake <kenji@miyake.org>, integrated by Ben Laurie*
19158
19159 * Add config entry for Linux on MIPS.
19160
19161 *John Tobey <jtobey@channel1.com>*
19162
19163 * Make links whenever Configure is run, unless we are on Windoze.
19164
19165 *Ben Laurie*
19166
19167 * Permit extensions to be added to CRLs using crl_section in openssl.cnf.
19168 Currently only issuerAltName and AuthorityKeyIdentifier make any sense
19169 in CRLs.
19170
19171 *Steve Henson*
19172
19173 * Add a useful kludge to allow package maintainers to specify compiler and
19174 other platforms details on the command line without having to patch the
257e9d03
RS
19175 Configure script every time: One now can use
19176 `perl Configure <id>:<details>`,
19177 i.e. platform ids are allowed to have details appended
5f8e6c50 19178 to them (separated by colons). This is treated as there would be a static
257e9d03
RS
19179 pre-configured entry in Configure's %table under key `<id>` with value
19180 `<details>` and `perl Configure <id>` is called. So, when you want to
5f8e6c50 19181 perform a quick test-compile under FreeBSD 3.1 with pgcc and without
257e9d03 19182 assembler stuff you can use `perl Configure "FreeBSD-elf:pgcc:-O6:::"`
5f8e6c50
DMSP
19183 now, which overrides the FreeBSD-elf entry on-the-fly.
19184
19185 *Ralf S. Engelschall*
19186
19187 * Disable new TLS1 ciphersuites by default: they aren't official yet.
19188
19189 *Ben Laurie*
19190
19191 * Allow DSO flags like -fpic, -fPIC, -KPIC etc. to be specified
1dc1ea18 19192 on the `perl Configure ...` command line. This way one can compile
5f8e6c50
DMSP
19193 OpenSSL libraries with Position Independent Code (PIC) which is needed
19194 for linking it into DSOs.
19195
19196 *Ralf S. Engelschall*
19197
19198 * Remarkably, export ciphers were totally broken and no-one had noticed!
19199 Fixed.
19200
19201 *Ben Laurie*
19202
19203 * Cleaned up the LICENSE document: The official contact for any license
19204 questions now is the OpenSSL core team under openssl-core@openssl.org.
19205 And add a paragraph about the dual-license situation to make sure people
19206 recognize that _BOTH_ the OpenSSL license _AND_ the SSLeay license apply
19207 to the OpenSSL toolkit.
19208
19209 *Ralf S. Engelschall*
19210
1dc1ea18
DDO
19211 * General source tree makefile cleanups: Made `making xxx in yyy...`
19212 display consistent in the source tree and replaced `/bin/rm` by `rm`.
19213 Additionally cleaned up the `make links` target: Remove unnecessary
5f8e6c50
DMSP
19214 semicolons, subsequent redundant removes, inline point.sh into mklink.sh
19215 to speed processing and no longer clutter the display with confusing
19216 stuff. Instead only the actually done links are displayed.
19217
19218 *Ralf S. Engelschall*
19219
19220 * Permit null encryption ciphersuites, used for authentication only. It used
19221 to be necessary to set the preprocessor define SSL_ALLOW_ENULL to do this.
19222 It is now necessary to set SSL_FORBID_ENULL to prevent the use of null
19223 encryption.
19224
19225 *Ben Laurie*
19226
19227 * Add a bunch of fixes to the PKCS#7 stuff. It used to sometimes reorder
19228 signed attributes when verifying signatures (this would break them),
19229 the detached data encoding was wrong and public keys obtained using
19230 X509_get_pubkey() weren't freed.
19231
19232 *Steve Henson*
19233
19234 * Add text documentation for the BUFFER functions. Also added a work around
19235 to a Win95 console bug. This was triggered by the password read stuff: the
19236 last character typed gets carried over to the next fread(). If you were
19237 generating a new cert request using 'req' for example then the last
19238 character of the passphrase would be CR which would then enter the first
19239 field as blank.
19240
19241 *Steve Henson*
19242
257e9d03 19243 * Added the new 'Includes OpenSSL Cryptography Software' button as
5f8e6c50
DMSP
19244 doc/openssl_button.{gif,html} which is similar in style to the old SSLeay
19245 button and can be used by applications based on OpenSSL to show the
19246 relationship to the OpenSSL project.
19247
19248 *Ralf S. Engelschall*
19249
19250 * Remove confusing variables in function signatures in files
19251 ssl/ssl_lib.c and ssl/ssl.h.
19252
19253 *Lennart Bong <lob@kulthea.stacken.kth.se>*
19254
19255 * Don't install bss_file.c under PREFIX/include/
19256
19257 *Lennart Bong <lob@kulthea.stacken.kth.se>*
19258
19259 * Get the Win32 compile working again. Modify mkdef.pl so it can handle
19260 functions that return function pointers and has support for NT specific
19261 stuff. Fix mk1mf.pl and VC-32.pl to support NT differences also. Various
19262 #ifdef WIN32 and WINNTs sprinkled about the place and some changes from
19263 unsigned to signed types: this was killing the Win32 compile.
19264
19265 *Steve Henson*
19266
19267 * Add new certificate file to stack functions,
19268 SSL_add_dir_cert_subjects_to_stack() and
19269 SSL_add_file_cert_subjects_to_stack(). These largely supplant
19270 SSL_load_client_CA_file(), and can be used to add multiple certs easily
19271 to a stack (usually this is then handed to SSL_CTX_set_client_CA_list()).
19272 This means that Apache-SSL and similar packages don't have to mess around
19273 to add as many CAs as they want to the preferred list.
19274
19275 *Ben Laurie*
19276
19277 * Experiment with doxygen documentation. Currently only partially applied to
19278 ssl/ssl_lib.c.
257e9d03 19279 See <http://www.stack.nl/~dimitri/doxygen/index.html>, and run doxygen with
5f8e6c50
DMSP
19280 openssl.doxy as the configuration file.
19281
19282 *Ben Laurie*
19283
19284 * Get rid of remaining C++-style comments which strict C compilers hate.
19285
19286 *Ralf S. Engelschall, pointed out by Carlos Amengual*
19287
19288 * Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not
19289 compiled in by default: it has problems with large keys.
19290
19291 *Steve Henson*
19292
19293 * Add a bunch of SSL_xxx() functions for configuring the temporary RSA and
19294 DH private keys and/or callback functions which directly correspond to
19295 their SSL_CTX_xxx() counterparts but work on a per-connection basis. This
19296 is needed for applications which have to configure certificates on a
19297 per-connection basis (e.g. Apache+mod_ssl) instead of a per-context basis
19298 (e.g. s_server).
19299 For the RSA certificate situation is makes no difference, but
19300 for the DSA certificate situation this fixes the "no shared cipher"
19301 problem where the OpenSSL cipher selection procedure failed because the
19302 temporary keys were not overtaken from the context and the API provided
19303 no way to reconfigure them.
19304 The new functions now let applications reconfigure the stuff and they
19305 are in detail: SSL_need_tmp_RSA, SSL_set_tmp_rsa, SSL_set_tmp_dh,
19306 SSL_set_tmp_rsa_callback and SSL_set_tmp_dh_callback. Additionally a new
19307 non-public-API function ssl_cert_instantiate() is used as a helper
19308 function and also to reduce code redundancy inside ssl_rsa.c.
19309
19310 *Ralf S. Engelschall*
19311
19312 * Move s_server -dcert and -dkey options out of the undocumented feature
19313 area because they are useful for the DSA situation and should be
19314 recognized by the users.
19315
19316 *Ralf S. Engelschall*
19317
19318 * Fix the cipher decision scheme for export ciphers: the export bits are
19319 *not* within SSL_MKEY_MASK or SSL_AUTH_MASK, they are within
19320 SSL_EXP_MASK. So, the original variable has to be used instead of the
19321 already masked variable.
19322
19323 *Richard Levitte <levitte@stacken.kth.se>*
19324
257e9d03 19325 * Fix `port` variable from `int` to `unsigned int` in crypto/bio/b_sock.c
5f8e6c50
DMSP
19326
19327 *Richard Levitte <levitte@stacken.kth.se>*
19328
19329 * Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal()
257e9d03
RS
19330 from `int` to `unsigned int` because it is a length and initialized by
19331 EVP_DigestFinal() which expects an `unsigned int *`.
5f8e6c50
DMSP
19332
19333 *Richard Levitte <levitte@stacken.kth.se>*
19334
19335 * Don't hard-code path to Perl interpreter on shebang line of Configure
19336 script. Instead use the usual Shell->Perl transition trick.
19337
19338 *Ralf S. Engelschall*
19339
1dc1ea18 19340 * Make `openssl x509 -noout -modulus`' functional also for DSA certificates
5f8e6c50 19341 (in addition to RSA certificates) to match the behaviour of `openssl dsa
1dc1ea18
DDO
19342 -noout -modulus` as it's already the case for `openssl rsa -noout
19343 -modulus`. For RSA the -modulus is the real "modulus" while for DSA
5f8e6c50 19344 currently the public key is printed (a decision which was already done by
1dc1ea18 19345 `openssl dsa -modulus` in the past) which serves a similar purpose.
5f8e6c50
DMSP
19346 Additionally the NO_RSA no longer completely removes the whole -modulus
19347 option; it now only avoids using the RSA stuff. Same applies to NO_DSA
19348 now, too.
19349
19350 *Ralf S. Engelschall*
19351
19352 * Add Arne Ansper's reliable BIO - this is an encrypted, block-digested
19353 BIO. See the source (crypto/evp/bio_ok.c) for more info.
19354
19355 *Arne Ansper <arne@ats.cyber.ee>*
19356
19357 * Dump the old yucky req code that tried (and failed) to allow raw OIDs
19358 to be added. Now both 'req' and 'ca' can use new objects defined in the
19359 config file.
19360
19361 *Steve Henson*
19362
19363 * Add cool BIO that does syslog (or event log on NT).
19364
19365 *Arne Ansper <arne@ats.cyber.ee>, integrated by Ben Laurie*
19366
19367 * Add support for new TLS ciphersuites, TLS_RSA_EXPORT56_WITH_RC4_56_MD5,
19368 TLS_RSA_EXPORT56_WITH_RC2_CBC_56_MD5 and
19369 TLS_RSA_EXPORT56_WITH_DES_CBC_SHA, as specified in "56-bit Export Cipher
19370 Suites For TLS", draft-ietf-tls-56-bit-ciphersuites-00.txt.
19371
19372 *Ben Laurie*
19373
19374 * Add preliminary config info for new extension code.
19375
19376 *Steve Henson*
19377
19378 * Make RSA_NO_PADDING really use no padding.
19379
19380 *Ulf Moeller <ulf@fitug.de>*
19381
19382 * Generate errors when private/public key check is done.
19383
19384 *Ben Laurie*
19385
19386 * Overhaul for 'crl' utility. New function X509_CRL_print. Partial support
19387 for some CRL extensions and new objects added.
19388
19389 *Steve Henson*
19390
19391 * Really fix the ASN1 IMPLICIT bug this time... Partial support for private
19392 key usage extension and fuller support for authority key id.
19393
19394 *Steve Henson*
19395
19396 * Add OAEP encryption for the OpenSSL crypto library. OAEP is the improved
19397 padding method for RSA, which is recommended for new applications in PKCS
19398 #1 v2.0 (RFC 2437, October 1998).
19399 OAEP (Optimal Asymmetric Encryption Padding) has better theoretical
19400 foundations than the ad-hoc padding used in PKCS #1 v1.5. It is secure
19401 against Bleichbacher's attack on RSA.
19402 *Ulf Moeller <ulf@fitug.de>, reformatted, corrected and integrated by
257e9d03 19403 Ben Laurie*
5f8e6c50
DMSP
19404
19405 * Updates to the new SSL compression code
19406
19407 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
19408
19409 * Fix so that the version number in the master secret, when passed
19410 via RSA, checks that if TLS was proposed, but we roll back to SSLv3
19411 (because the server will not accept higher), that the version number
19412 is 0x03,0x01, not 0x03,0x00
19413
19414 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
19415
ec2bfb7d
DDO
19416 * Run extensive memory leak checks on SSL commands. Fixed *lots* of memory
19417 leaks in `ssl/` relating to new `X509_get_pubkey()` behaviour. Also fixes
19418 in `apps/` and an unrelated leak in `crypto/dsa/dsa_vrf.c`.
5f8e6c50
DMSP
19419
19420 *Steve Henson*
19421
19422 * Support for RAW extensions where an arbitrary extension can be
ec2bfb7d 19423 created by including its DER encoding. See `apps/openssl.cnf` for
5f8e6c50
DMSP
19424 an example.
19425
19426 *Steve Henson*
19427
19428 * Make sure latest Perl versions don't interpret some generated C array
19429 code as Perl array code in the crypto/err/err_genc.pl script.
19430
19431 *Lars Weber <3weber@informatik.uni-hamburg.de>*
19432
19433 * Modify ms/do_ms.bat to not generate assembly language makefiles since
19434 not many people have the assembler. Various Win32 compilation fixes and
19435 update to the INSTALL.W32 file with (hopefully) more accurate Win32
19436 build instructions.
19437
19438 *Steve Henson*
19439
19440 * Modify configure script 'Configure' to automatically create crypto/date.h
19441 file under Win32 and also build pem.h from pem.org. New script
19442 util/mkfiles.pl to create the MINFO file on environments that can't do a
19443 'make files': perl util/mkfiles.pl >MINFO should work.
19444
19445 *Steve Henson*
19446
19447 * Major rework of DES function declarations, in the pursuit of correctness
19448 and purity. As a result, many evil casts evaporated, and some weirdness,
19449 too. You may find this causes warnings in your code. Zapping your evil
19450 casts will probably fix them. Mostly.
19451
19452 *Ben Laurie*
19453
19454 * Fix for a typo in asn1.h. Bug fix to object creation script
19455 obj_dat.pl. It considered a zero in an object definition to mean
19456 "end of object": none of the objects in objects.h have any zeros
19457 so it wasn't spotted.
19458
19459 *Steve Henson, reported by Erwann ABALEA <eabalea@certplus.com>*
19460
19461 * Add support for Triple DES Cipher Block Chaining with Output Feedback
19462 Masking (CBCM). In the absence of test vectors, the best I have been able
19463 to do is check that the decrypt undoes the encrypt, so far. Send me test
19464 vectors if you have them.
19465
19466 *Ben Laurie*
19467
19468 * Correct calculation of key length for export ciphers (too much space was
19469 allocated for null ciphers). This has not been tested!
19470
19471 *Ben Laurie*
19472
19473 * Modifications to the mkdef.pl for Win32 DEF file creation. The usage
19474 message is now correct (it understands "crypto" and "ssl" on its
19475 command line). There is also now an "update" option. This will update
19476 the util/ssleay.num and util/libeay.num files with any new functions.
19477 If you do a:
19478 perl util/mkdef.pl crypto ssl update
19479 it will update them.
19480
19481 *Steve Henson*
19482
257e9d03 19483 * Overhauled the Perl interface:
5f8e6c50
DMSP
19484 - ported BN stuff to OpenSSL's different BN library
19485 - made the perl/ source tree CVS-aware
19486 - renamed the package from SSLeay to OpenSSL (the files still contain
19487 their history because I've copied them in the repository)
19488 - removed obsolete files (the test scripts will be replaced
19489 by better Test::Harness variants in the future)
19490
19491 *Ralf S. Engelschall*
19492
19493 * First cut for a very conservative source tree cleanup:
19494 1. merge various obsolete readme texts into doc/ssleay.txt
19495 where we collect the old documents and readme texts.
19496 2. remove the first part of files where I'm already sure that we no
19497 longer need them because of three reasons: either they are just temporary
19498 files which were left by Eric or they are preserved original files where
19499 I've verified that the diff is also available in the CVS via "cvs diff
19500 -rSSLeay_0_8_1b" or they were renamed (as it was definitely the case for
19501 the crypto/md/ stuff).
19502
19503 *Ralf S. Engelschall*
19504
19505 * More extension code. Incomplete support for subject and issuer alt
19506 name, issuer and authority key id. Change the i2v function parameters
19507 and add an extra 'crl' parameter in the X509V3_CTX structure: guess
19508 what that's for :-) Fix to ASN1 macro which messed up
19509 IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED.
19510
19511 *Steve Henson*
19512
19513 * Preliminary support for ENUMERATED type. This is largely copied from the
19514 INTEGER code.
19515
19516 *Steve Henson*
19517
19518 * Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy.
19519
19520 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
19521
257e9d03 19522 * Make sure `make rehash` target really finds the `openssl` program.
5f8e6c50
DMSP
19523
19524 *Ralf S. Engelschall, Matthias Loepfe <Matthias.Loepfe@adnovum.ch>*
19525
19526 * Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd
19527 like to hear about it if this slows down other processors.
19528
19529 *Ben Laurie*
19530
19531 * Add CygWin32 platform information to Configure script.
19532
19533 *Alan Batie <batie@aahz.jf.intel.com>*
19534
257e9d03 19535 * Fixed ms/32all.bat script: `no_asm` -> `no-asm`
5f8e6c50
DMSP
19536
19537 *Rainer W. Gerling <gerling@mpg-gv.mpg.de>*
19538
19539 * New program nseq to manipulate netscape certificate sequences
19540
19541 *Steve Henson*
19542
19543 * Modify crl2pkcs7 so it supports multiple -certfile arguments. Fix a
19544 few typos.
19545
19546 *Steve Henson*
19547
19548 * Fixes to BN code. Previously the default was to define BN_RECURSION
19549 but the BN code had some problems that would cause failures when
19550 doing certificate verification and some other functions.
19551
19552 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)*
19553
19554 * Add ASN1 and PEM code to support netscape certificate sequences.
19555
19556 *Steve Henson*
19557
19558 * Add ASN1 and PEM code to support netscape certificate sequences.
19559
19560 *Steve Henson*
19561
19562 * Add several PKIX and private extended key usage OIDs.
19563
19564 *Steve Henson*
19565
19566 * Modify the 'ca' program to handle the new extension code. Modify
19567 openssl.cnf for new extension format, add comments.
19568
19569 *Steve Henson*
19570
19571 * More X509 V3 changes. Fix typo in v3_bitstr.c. Add support to 'req'
19572 and add a sample to openssl.cnf so req -x509 now adds appropriate
19573 CA extensions.
19574
19575 *Steve Henson*
19576
19577 * Continued X509 V3 changes. Add to other makefiles, integrate with the
19578 error code, add initial support to X509_print() and x509 application.
19579
19580 *Steve Henson*
19581
19582 * Takes a deep breath and start adding X509 V3 extension support code. Add
19583 files in crypto/x509v3. Move original stuff to crypto/x509v3/old. All this
19584 stuff is currently isolated and isn't even compiled yet.
19585
19586 *Steve Henson*
19587
19588 * Continuing patches for GeneralizedTime. Fix up certificate and CRL
19589 ASN1 to use ASN1_TIME and modify print routines to use ASN1_TIME_print.
19590 Removed the versions check from X509 routines when loading extensions:
19591 this allows certain broken certificates that don't set the version
19592 properly to be processed.
19593
19594 *Steve Henson*
19595
19596 * Deal with irritating shit to do with dependencies, in YAAHW (Yet Another
19597 Ad Hoc Way) - Makefile.ssls now all contain local dependencies, which
19598 can still be regenerated with "make depend".
19599
19600 *Ben Laurie*
19601
19602 * Spelling mistake in C version of CAST-128.
19603
19604 *Ben Laurie, reported by Jeremy Hylton <jeremy@cnri.reston.va.us>*
19605
19606 * Changes to the error generation code. The perl script err-code.pl
19607 now reads in the old error codes and retains the old numbers, only
19608 adding new ones if necessary. It also only changes the .err files if new
19609 codes are added. The makefiles have been modified to only insert errors
19610 when needed (to avoid needlessly modifying header files). This is done
19611 by only inserting errors if the .err file is newer than the auto generated
19612 C file. To rebuild all the error codes from scratch (the old behaviour)
19613 either modify crypto/Makefile.ssl to pass the -regen flag to err_code.pl
19614 or delete all the .err files.
19615
19616 *Steve Henson*
19617
19618 * CAST-128 was incorrectly implemented for short keys. The C version has
19619 been fixed, but is untested. The assembler versions are also fixed, but
19620 new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing
19621 to regenerate it if needed.
19622 *Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun
19623 Hagino <itojun@kame.net>*
19624
19625 * File was opened incorrectly in randfile.c.
19626
19627 *Ulf Möller <ulf@fitug.de>*
19628
19629 * Beginning of support for GeneralizedTime. d2i, i2d, check and print
19630 functions. Also ASN1_TIME suite which is a CHOICE of UTCTime or
19631 GeneralizedTime. ASN1_TIME is the proper type used in certificates et
19632 al: it's just almost always a UTCTime. Note this patch adds new error
19633 codes so do a "make errors" if there are problems.
19634
19635 *Steve Henson*
19636
19637 * Correct Linux 1 recognition in config.
19638
19639 *Ulf Möller <ulf@fitug.de>*
19640
19641 * Remove pointless MD5 hash when using DSA keys in ca.
19642
19643 *Anonymous <nobody@replay.com>*
19644
19645 * Generate an error if given an empty string as a cert directory. Also
19646 generate an error if handed NULL (previously returned 0 to indicate an
19647 error, but didn't set one).
19648
19649 *Ben Laurie, reported by Anonymous <nobody@replay.com>*
19650
19651 * Add prototypes to SSL methods. Make SSL_write's buffer const, at last.
19652
19653 *Ben Laurie*
19654
19655 * Fix the dummy function BN_ref_mod_exp() in rsaref.c to have the correct
19656 parameters. This was causing a warning which killed off the Win32 compile.
19657
19658 *Steve Henson*
19659
19660 * Remove C++ style comments from crypto/bn/bn_local.h.
19661
19662 *Neil Costigan <neil.costigan@celocom.com>*
19663
19664 * The function OBJ_txt2nid was broken. It was supposed to return a nid
19665 based on a text string, looking up short and long names and finally
19666 "dot" format. The "dot" format stuff didn't work. Added new function
19667 OBJ_txt2obj to do the same but return an ASN1_OBJECT and rewrote
19668 OBJ_txt2nid to use it. OBJ_txt2obj can also return objects even if the
19669 OID is not part of the table.
19670
19671 *Steve Henson*
19672
19673 * Add prototypes to X509 lookup/verify methods, fixing a bug in
19674 X509_LOOKUP_by_alias().
19675
19676 *Ben Laurie*
19677
19678 * Sort openssl functions by name.
19679
19680 *Ben Laurie*
19681
ec2bfb7d 19682 * Get the `gendsa` command working and add it to the `list` command. Remove
5f8e6c50
DMSP
19683 encryption from sample DSA keys (in case anyone is interested the password
19684 was "1234").
19685
19686 *Steve Henson*
19687
257e9d03 19688 * Make *all* `*_free` functions accept a NULL pointer.
5f8e6c50
DMSP
19689
19690 *Frans Heymans <fheymans@isaserver.be>*
19691
19692 * If a DH key is generated in s3_srvr.c, don't blow it by trying to use
19693 NULL pointers.
19694
19695 *Anonymous <nobody@replay.com>*
19696
19697 * s_server should send the CAfile as acceptable CAs, not its own cert.
19698
19699 *Bodo Moeller <3moeller@informatik.uni-hamburg.de>*
19700
ec2bfb7d 19701 * Don't blow it for numeric `-newkey` arguments to `apps/req`.
5f8e6c50
DMSP
19702
19703 *Bodo Moeller <3moeller@informatik.uni-hamburg.de>*
19704
19705 * Temp key "for export" tests were wrong in s3_srvr.c.
19706
19707 *Anonymous <nobody@replay.com>*
19708
19709 * Add prototype for temp key callback functions
19710 SSL_CTX_set_tmp_{rsa,dh}_callback().
19711
19712 *Ben Laurie*
19713
19714 * Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and
19715 DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey().
19716
19717 *Steve Henson*
19718
19719 * X509_name_add_entry() freed the wrong thing after an error.
19720
19721 *Arne Ansper <arne@ats.cyber.ee>*
19722
19723 * rsa_eay.c would attempt to free a NULL context.
19724
19725 *Arne Ansper <arne@ats.cyber.ee>*
19726
19727 * BIO_s_socket() had a broken should_retry() on Windoze.
19728
19729 *Arne Ansper <arne@ats.cyber.ee>*
19730
19731 * BIO_f_buffer() didn't pass on BIO_CTRL_FLUSH.
19732
19733 *Arne Ansper <arne@ats.cyber.ee>*
19734
19735 * Make sure the already existing X509_STORE->depth variable is initialized
19736 in X509_STORE_new(), but document the fact that this variable is still
19737 unused in the certificate verification process.
19738
19739 *Ralf S. Engelschall*
19740
ec2bfb7d 19741 * Fix the various library and `apps/` files to free up pkeys obtained from
5f8e6c50
DMSP
19742 X509_PUBKEY_get() et al. Also allow x509.c to handle netscape extensions.
19743
19744 *Steve Henson*
19745
19746 * Fix reference counting in X509_PUBKEY_get(). This makes
19747 demos/maurice/example2.c work, amongst others, probably.
19748
19749 *Steve Henson and Ben Laurie*
19750
ec2bfb7d 19751 * First cut of a cleanup for `apps/`. First the `ssleay` program is now named
257e9d03 19752 `openssl` and second, the shortcut symlinks for the `openssl <command>`
5f8e6c50 19753 are no longer created. This way we have a single and consistent command
257e9d03 19754 line interface `openssl <command>`, similar to `cvs <command>`.
5f8e6c50
DMSP
19755
19756 *Ralf S. Engelschall, Paul Sutton and Ben Laurie*
19757
19758 * ca.c: move test for DSA keys inside #ifndef NO_DSA. Make pubkey
19759 BIT STRING wrapper always have zero unused bits.
19760
19761 *Steve Henson*
19762
19763 * Add CA.pl, perl version of CA.sh, add extended key usage OID.
19764
19765 *Steve Henson*
19766
19767 * Make the top-level INSTALL documentation easier to understand.
19768
19769 *Paul Sutton*
19770
19771 * Makefiles updated to exit if an error occurs in a sub-directory
19772 make (including if user presses ^C) [Paul Sutton]
19773
19774 * Make Montgomery context stuff explicit in RSA data structure.
19775
19776 *Ben Laurie*
19777
19778 * Fix build order of pem and err to allow for generated pem.h.
19779
19780 *Ben Laurie*
19781
19782 * Fix renumbering bug in X509_NAME_delete_entry().
19783
19784 *Ben Laurie*
19785
19786 * Enhanced the err-ins.pl script so it makes the error library number
19787 global and can add a library name. This is needed for external ASN1 and
19788 other error libraries.
19789
19790 *Steve Henson*
19791
19792 * Fixed sk_insert which never worked properly.
19793
19794 *Steve Henson*
19795
19796 * Fix ASN1 macros so they can handle indefinite length constructed
19797 EXPLICIT tags. Some non standard certificates use these: they can now
19798 be read in.
19799
19800 *Steve Henson*
19801
19802 * Merged the various old/obsolete SSLeay documentation files (doc/xxx.doc)
19803 into a single doc/ssleay.txt bundle. This way the information is still
19804 preserved but no longer messes up this directory. Now it's new room for
19805 the new set of documentation files.
19806
19807 *Ralf S. Engelschall*
19808
19809 * SETs were incorrectly DER encoded. This was a major pain, because they
19810 shared code with SEQUENCEs, which aren't coded the same. This means that
19811 almost everything to do with SETs or SEQUENCEs has either changed name or
19812 number of arguments.
19813
19814 *Ben Laurie, based on a partial fix by GP Jayan <gp@nsj.co.jp>*
19815
19816 * Fix test data to work with the above.
19817
19818 *Ben Laurie*
19819
19820 * Fix the RSA header declarations that hid a bug I fixed in 0.9.0b but
19821 was already fixed by Eric for 0.9.1 it seems.
19822
19823 *Ben Laurie - pointed out by Ulf Möller <ulf@fitug.de>*
19824
19825 * Autodetect FreeBSD3.
19826
19827 *Ben Laurie*
19828
19829 * Fix various bugs in Configure. This affects the following platforms:
19830 nextstep
19831 ncr-scde
19832 unixware-2.0
19833 unixware-2.0-pentium
19834 sco5-cc.
19835
19836 *Ben Laurie*
19837
19838 * Eliminate generated files from CVS. Reorder tests to regenerate files
19839 before they are needed.
19840
19841 *Ben Laurie*
19842
19843 * Generate Makefile.ssl from Makefile.org (to keep CVS happy).
19844
19845 *Ben Laurie*
19846
257e9d03 19847### Changes between 0.9.1b and 0.9.1c [23-Dec-1998]
5f8e6c50
DMSP
19848
19849 * Added OPENSSL_VERSION_NUMBER to crypto/crypto.h and
19850 changed SSLeay to OpenSSL in version strings.
19851
19852 *Ralf S. Engelschall*
19853
19854 * Some fixups to the top-level documents.
19855
19856 *Paul Sutton*
19857
19858 * Fixed the nasty bug where rsaref.h was not found under compile-time
19859 because the symlink to include/ was missing.
19860
19861 *Ralf S. Engelschall*
19862
19863 * Incorporated the popular no-RSA/DSA-only patches
a63fa5f7 19864 which allow to compile an RSA-free SSLeay.
5f8e6c50
DMSP
19865
19866 *Andrew Cooke / Interrader Ldt., Ralf S. Engelschall*
19867
257e9d03 19868 * Fixed nasty rehash problem under `make -f Makefile.ssl links`
5f8e6c50
DMSP
19869 when "ssleay" is still not found.
19870
19871 *Ralf S. Engelschall*
19872
19873 * Added more platforms to Configure: Cray T3E, HPUX 11,
19874
19875 *Ralf S. Engelschall, Beckmann <beckman@acl.lanl.gov>*
19876
19877 * Updated the README file.
19878
19879 *Ralf S. Engelschall*
19880
19881 * Added various .cvsignore files in the CVS repository subdirs
19882 to make a "cvs update" really silent.
19883
19884 *Ralf S. Engelschall*
19885
19886 * Recompiled the error-definition header files and added
19887 missing symbols to the Win32 linker tables.
19888
19889 *Ralf S. Engelschall*
19890
19891 * Cleaned up the top-level documents;
19892 o new files: CHANGES and LICENSE
19893 o merged VERSION, HISTORY* and README* files a CHANGES.SSLeay
19894 o merged COPYRIGHT into LICENSE
19895 o removed obsolete TODO file
19896 o renamed MICROSOFT to INSTALL.W32
19897
19898 *Ralf S. Engelschall*
19899
19900 * Removed dummy files from the 0.9.1b source tree:
19901 crypto/asn1/x crypto/bio/cd crypto/bio/fg crypto/bio/grep crypto/bio/vi
19902 crypto/bn/asm/......add.c crypto/bn/asm/a.out crypto/dsa/f crypto/md5/f
19903 crypto/pem/gmon.out crypto/perlasm/f crypto/pkcs7/build crypto/rsa/f
19904 crypto/sha/asm/f crypto/threads/f ms/zzz ssl/f ssl/f.mak test/f
19905 util/f.mak util/pl/f util/pl/f.mak crypto/bf/bf_locl.old apps/f
19906
19907 *Ralf S. Engelschall*
19908
19909 * Added various platform portability fixes.
19910
19911 *Mark J. Cox*
19912
19913 * The Genesis of the OpenSSL rpject:
19914 We start with the latest (unreleased) SSLeay version 0.9.1b which Eric A.
19915 Young and Tim J. Hudson created while they were working for C2Net until
19916 summer 1998.
19917
19918 *The OpenSSL Project*
19919
257e9d03 19920### Changes between 0.9.0b and 0.9.1b [not released]
5f8e6c50
DMSP
19921
19922 * Updated a few CA certificates under certs/
19923
19924 *Eric A. Young*
19925
19926 * Changed some BIGNUM api stuff.
19927
19928 *Eric A. Young*
19929
19930 * Various platform ports: OpenBSD, Ultrix, IRIX 64bit, NetBSD,
19931 DGUX x86, Linux Alpha, etc.
19932
19933 *Eric A. Young*
19934
19935 * New COMP library [crypto/comp/] for SSL Record Layer Compression:
19936 RLE (dummy implemented) and ZLIB (really implemented when ZLIB is
19937 available).
19938
19939 *Eric A. Young*
19940
19941 * Add -strparse option to asn1pars program which parses nested
19942 binary structures
19943
19944 *Dr Stephen Henson <shenson@bigfoot.com>*
19945
19946 * Added "oid_file" to ssleay.cnf for "ca" and "req" programs.
19947
19948 *Eric A. Young*
19949
19950 * DSA fix for "ca" program.
19951
19952 *Eric A. Young*
19953
19954 * Added "-genkey" option to "dsaparam" program.
19955
19956 *Eric A. Young*
19957
19958 * Added RIPE MD160 (rmd160) message digest.
19959
19960 *Eric A. Young*
19961
19962 * Added -a (all) option to "ssleay version" command.
19963
19964 *Eric A. Young*
19965
19966 * Added PLATFORM define which is the id given to Configure.
19967
19968 *Eric A. Young*
19969
19970 * Added MemCheck_XXXX functions to crypto/mem.c for memory checking.
19971
19972 *Eric A. Young*
19973
19974 * Extended the ASN.1 parser routines.
19975
19976 *Eric A. Young*
19977
19978 * Extended BIO routines to support REUSEADDR, seek, tell, etc.
19979
19980 *Eric A. Young*
19981
19982 * Added a BN_CTX to the BN library.
19983
19984 *Eric A. Young*
19985
19986 * Fixed the weak key values in DES library
19987
19988 *Eric A. Young*
19989
19990 * Changed API in EVP library for cipher aliases.
19991
19992 *Eric A. Young*
19993
19994 * Added support for RC2/64bit cipher.
19995
19996 *Eric A. Young*
19997
19998 * Converted the lhash library to the crypto/mem.c functions.
19999
20000 *Eric A. Young*
20001
20002 * Added more recognized ASN.1 object ids.
20003
20004 *Eric A. Young*
20005
20006 * Added more RSA padding checks for SSL/TLS.
20007
20008 *Eric A. Young*
20009
20010 * Added BIO proxy/filter functionality.
20011
20012 *Eric A. Young*
20013
20014 * Added extra_certs to SSL_CTX which can be used
20015 send extra CA certificates to the client in the CA cert chain sending
20016 process. It can be configured with SSL_CTX_add_extra_chain_cert().
20017
20018 *Eric A. Young*
20019
20020 * Now Fortezza is denied in the authentication phase because
20021 this is key exchange mechanism is not supported by SSLeay at all.
20022
20023 *Eric A. Young*
20024
20025 * Additional PKCS1 checks.
20026
20027 *Eric A. Young*
20028
20029 * Support the string "TLSv1" for all TLS v1 ciphers.
20030
20031 *Eric A. Young*
20032
20033 * Added function SSL_get_ex_data_X509_STORE_CTX_idx() which gives the
20034 ex_data index of the SSL context in the X509_STORE_CTX ex_data.
20035
20036 *Eric A. Young*
20037
20038 * Fixed a few memory leaks.
20039
20040 *Eric A. Young*
20041
20042 * Fixed various code and comment typos.
20043
20044 *Eric A. Young*
20045
20046 * A minor bug in ssl/s3_clnt.c where there would always be 4 0
20047 bytes sent in the client random.
20048
20049 *Edward Bishop <ebishop@spyglass.com>*
44652c16 20050
44652c16
DMSP
20051<!-- Links -->
20052
4ec53ad6 20053[CVE-2023-3446]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-3446
1e398bec 20054[CVE-2023-2975]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-2975
18f82df5 20055[RFC 2578 (STD 58), section 3.5]: https://datatracker.ietf.org/doc/html/rfc2578#section-3.5
d63b3e79 20056[CVE-2023-2650]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-2650
72dfe465 20057[CVE-2023-1255]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-1255
5ab3f71a 20058[CVE-2023-0466]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0466
986f9a67
MC
20059[CVE-2023-0465]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0465
20060[CVE-2023-0464]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0464
5f14b5bc
TM
20061[CVE-2023-0401]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0401
20062[CVE-2023-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0286
20063[CVE-2023-0217]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0217
20064[CVE-2023-0216]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0216
20065[CVE-2023-0215]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0215
20066[CVE-2022-4450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4450
20067[CVE-2022-4304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4304
20068[CVE-2022-4203]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4203
20069[CVE-2022-3996]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-3996
20070[CVE-2022-2274]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-2274
1472127d 20071[CVE-2022-2097]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-2097
1e13198f 20072[CVE-2020-1971]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1971
6ffc3127 20073[CVE-2020-1967]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1967
44652c16
DMSP
20074[CVE-2019-1563]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1563
20075[CVE-2019-1559]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1559
20076[CVE-2019-1552]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1552
20077[CVE-2019-1551]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1551
20078[CVE-2019-1549]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1549
20079[CVE-2019-1547]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1547
20080[CVE-2019-1543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1543
20081[CVE-2018-5407]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-5407
20082[CVE-2018-0739]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0739
20083[CVE-2018-0737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0737
20084[CVE-2018-0735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0735
20085[CVE-2018-0734]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0734
20086[CVE-2018-0733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0733
20087[CVE-2018-0732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0732
20088[CVE-2017-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3738
20089[CVE-2017-3737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3737
20090[CVE-2017-3736]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3736
20091[CVE-2017-3735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3735
20092[CVE-2017-3733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3733
20093[CVE-2017-3732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3732
20094[CVE-2017-3731]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3731
20095[CVE-2017-3730]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3730
20096[CVE-2016-7055]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7055
20097[CVE-2016-7054]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7054
20098[CVE-2016-7053]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7053
20099[CVE-2016-7052]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7052
20100[CVE-2016-6309]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6309
20101[CVE-2016-6308]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6308
20102[CVE-2016-6307]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6307
20103[CVE-2016-6306]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6306
20104[CVE-2016-6305]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6305
20105[CVE-2016-6304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6304
20106[CVE-2016-6303]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6303
20107[CVE-2016-6302]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6302
20108[CVE-2016-2183]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2183
20109[CVE-2016-2182]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2182
20110[CVE-2016-2181]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2181
20111[CVE-2016-2180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2180
20112[CVE-2016-2179]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2179
20113[CVE-2016-2178]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2178
20114[CVE-2016-2177]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2177
20115[CVE-2016-2176]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2176
20116[CVE-2016-2109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2109
20117[CVE-2016-2107]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2107
20118[CVE-2016-2106]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2106
20119[CVE-2016-2105]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2105
20120[CVE-2016-0800]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0800
20121[CVE-2016-0799]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0799
20122[CVE-2016-0798]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0798
20123[CVE-2016-0797]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0797
20124[CVE-2016-0705]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0705
20125[CVE-2016-0702]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0702
20126[CVE-2016-0701]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0701
20127[CVE-2015-3197]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3197
20128[CVE-2015-3196]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3196
20129[CVE-2015-3195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3195
20130[CVE-2015-3194]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3194
20131[CVE-2015-3193]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3193
20132[CVE-2015-1793]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1793
20133[CVE-2015-1792]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1792
20134[CVE-2015-1791]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1791
20135[CVE-2015-1790]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1790
20136[CVE-2015-1789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1789
20137[CVE-2015-1788]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1788
20138[CVE-2015-1787]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1787
20139[CVE-2015-0293]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0293
20140[CVE-2015-0291]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0291
20141[CVE-2015-0290]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0290
20142[CVE-2015-0289]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0289
20143[CVE-2015-0288]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0288
20144[CVE-2015-0287]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0287
20145[CVE-2015-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0286
20146[CVE-2015-0285]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0285
20147[CVE-2015-0209]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0209
20148[CVE-2015-0208]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0208
20149[CVE-2015-0207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0207
20150[CVE-2015-0206]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0206
20151[CVE-2015-0205]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0205
20152[CVE-2015-0204]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0204
20153[CVE-2014-8275]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-8275
20154[CVE-2014-5139]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-5139
20155[CVE-2014-3572]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3572
20156[CVE-2014-3571]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3571
20157[CVE-2014-3570]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3570
20158[CVE-2014-3569]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3569
20159[CVE-2014-3568]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3568
20160[CVE-2014-3567]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3567
20161[CVE-2014-3566]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3566
20162[CVE-2014-3513]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3513
20163[CVE-2014-3512]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3512
20164[CVE-2014-3511]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3511
20165[CVE-2014-3510]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3510
20166[CVE-2014-3509]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3509
20167[CVE-2014-3508]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3508
20168[CVE-2014-3507]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3507
20169[CVE-2014-3506]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3506
20170[CVE-2014-3505]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3505
20171[CVE-2014-3470]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3470
20172[CVE-2014-0224]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0224
20173[CVE-2014-0221]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0221
20174[CVE-2014-0195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0195
20175[CVE-2014-0160]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0160
20176[CVE-2014-0076]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0076
20177[CVE-2013-6450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-6450
20178[CVE-2013-4353]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-4353
20179[CVE-2013-0169]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0169
20180[CVE-2013-0166]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0166
20181[CVE-2012-2686]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2686
20182[CVE-2012-2333]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2333
20183[CVE-2012-2110]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2110
20184[CVE-2012-0884]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0884
20185[CVE-2012-0050]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0050
20186[CVE-2012-0027]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0027
20187[CVE-2011-4619]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4619
20188[CVE-2011-4577]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4577
20189[CVE-2011-4576]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4576
20190[CVE-2011-4109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4109
20191[CVE-2011-4108]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4108
20192[CVE-2011-3210]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3210
20193[CVE-2011-3207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3207
20194[CVE-2011-0014]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-0014
20195[CVE-2010-4252]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4252
20196[CVE-2010-4180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4180
20197[CVE-2010-3864]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-3864
20198[CVE-2010-1633]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-1633
20199[CVE-2010-0740]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0740
20200[CVE-2010-0433]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0433
20201[CVE-2009-4355]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-4355
20202[CVE-2009-3555]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3555
20203[CVE-2009-3245]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3245
20204[CVE-2009-1386]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1386
20205[CVE-2009-1379]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1379
20206[CVE-2009-1378]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1378
20207[CVE-2009-1377]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1377
20208[CVE-2009-0789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0789
20209[CVE-2009-0591]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0591
20210[CVE-2009-0590]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0590
20211[CVE-2008-5077]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-5077
20212[CVE-2008-1678]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1678
20213[CVE-2008-1672]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1672
20214[CVE-2008-0891]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-0891
20215[CVE-2007-5135]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-5135
20216[CVE-2007-4995]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-4995
20217[CVE-2006-4343]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4343
20218[CVE-2006-4339]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4339
20219[CVE-2006-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-3738
20220[CVE-2006-2940]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2940
20221[CVE-2006-2937]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2937
20222[CVE-2005-2969]: https://www.openssl.org/news/vulnerabilities.html#CVE-2005-2969
20223[CVE-2004-0112]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0112
20224[CVE-2004-0079]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0079
20225[CVE-2003-0851]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0851
20226[CVE-2003-0545]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0545
20227[CVE-2003-0544]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0544
20228[CVE-2003-0543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0543
20229[CVE-2003-0078]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0078
20230[CVE-2002-0659]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0659
20231[CVE-2002-0657]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0657
20232[CVE-2002-0656]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0656
20233[CVE-2002-0655]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0655