]>
Commit | Line | Data |
---|---|---|
5f8e6c50 DMSP |
1 | OpenSSL CHANGES |
2 | =============== | |
3 | ||
addbd743 HL |
4 | This is a detailed breakdown of significant changes. For a high-level overview |
5 | of changes in each release, see [NEWS.md](./NEWS.md). | |
6 | ||
7 | For a full list of changes, see the [git commit log][log] and pick the | |
8 | appropriate release branch. | |
5f8e6c50 DMSP |
9 | |
10 | [log]: https://github.com/openssl/openssl/commits/ | |
11 | ||
44652c16 DMSP |
12 | OpenSSL Releases |
13 | ---------------- | |
14 | ||
186b3f6a | 15 | - [OpenSSL 3.3](#openssl-33) |
45ada6b9 | 16 | - [OpenSSL 3.2](#openssl-32) |
3c53032a | 17 | - [OpenSSL 3.1](#openssl-31) |
44652c16 DMSP |
18 | - [OpenSSL 3.0](#openssl-30) |
19 | - [OpenSSL 1.1.1](#openssl-111) | |
20 | - [OpenSSL 1.1.0](#openssl-110) | |
21 | - [OpenSSL 1.0.2](#openssl-102) | |
22 | - [OpenSSL 1.0.1](#openssl-101) | |
23 | - [OpenSSL 1.0.0](#openssl-100) | |
24 | - [OpenSSL 0.9.x](#openssl-09x) | |
25 | ||
186b3f6a RL |
26 | OpenSSL 3.3 |
27 | ----------- | |
28 | ||
29 | ### Changes between 3.2 and 3.3 [xx XXX xxxx] | |
30 | ||
0873e6f6 MC |
31 | * The EVP_PKEY_fromdata function has been augmented to allow for the derivation |
32 | of CRT (Chinese Remainder Theorem) parameters when requested. See the | |
de18dc3a | 33 | OSSL_PKEY_PARAM_RSA_DERIVE_FROM_PQ param in the EVP_PKEY-RSA documentation. |
0873e6f6 MC |
34 | |
35 | *Neil Horman* | |
36 | ||
9277ed0a NH |
37 | * The activate and soft_load configuration settings for providers in |
38 | openssl.cnf have been updated to require a value of [1|yes|true|on] | |
39 | (in lower or UPPER case) to enable the setting. Conversely a value | |
40 | of [0|no|false|off] will disable the setting. All other values, or the | |
41 | omission of a value for these settings will result in an error. | |
506ff206 NH |
42 | |
43 | *Neil Horman* | |
44 | ||
4e5bf933 JS |
45 | * Added `-set_issuer` and `-set_subject` options to `openssl x509` to |
46 | override the Issuer and Subject when creating a certificate. The `-subj` | |
47 | option now is an alias for `-set_subject`. | |
48 | ||
49 | *Job Snijders, George Michaelson* | |
50 | ||
98d6016a TM |
51 | * OPENSSL_sk_push() and sk_<TYPE>_push() functions now return 0 instead of -1 |
52 | if called with a NULL stack argument. | |
53 | ||
54 | *Tomáš Mráz* | |
55 | ||
e580f06d JM |
56 | * In `openssl speed`, changed the default hash function used with `hmac` from |
57 | `md5` to `sha256`. | |
58 | ||
59 | *James Muir* | |
60 | ||
7c6577ba DDO |
61 | * Added several new features of CMPv3 defined in RFC 9480 and RFC 9483: |
62 | - `certProfile` request message header and respective `-profile` CLI option | |
bedffe17 | 63 | - support for delayed delivery of all types of response messages |
7c6577ba DDO |
64 | |
65 | *David von Oheimb* | |
66 | ||
10264b53 RL |
67 | * The build of exporters (such as `.pc` files for pkg-config) cleaned up to |
68 | be less hard coded in the build file templates, and to allow easier | |
69 | addition of more exporters. With that, an exporter for CMake is also | |
70 | added. | |
71 | ||
72 | *Richard Levitte* | |
73 | ||
7cf75e5c | 74 | * The BLAKE2s hash algorithm matches BLAKE2b's support |
75 | for configurable output length. | |
76 | ||
77 | *Ahelenia Ziemiańska* | |
186b3f6a | 78 | |
dfc836c3 MM |
79 | * New option `SSL_OP_PREFER_NO_DHE_KEX`, which allows configuring a TLS1.3 |
80 | server to prefer session resumption using PSK-only key exchange over PSK | |
81 | with DHE, if both are available. | |
82 | ||
83 | *Markus Minichmayr, Tapkey GmbH* | |
84 | ||
f231cc85 HL |
85 | * New API `SSL_write_ex2`, which can be used to send an end-of-stream (FIN) |
86 | condition in an optimised way when using QUIC. | |
87 | ||
88 | *Hugo Landau* | |
89 | ||
99fb31c1 RB |
90 | * New atexit configuration switch, which controls whether the OPENSSL_cleanup |
91 | is registered when libcrypto is unloaded. This is turned off on NonStop | |
92 | configurations because of loader differences on that platform compared to | |
93 | Linux. | |
94 | ||
95 | *Randall S. Becker* | |
96 | ||
de60b122 | 97 | * Support for qlog for tracing QUIC connections has been added. |
d8b405a2 | 98 | |
de60b122 HL |
99 | The qlog output from OpenSSL currently uses a pre-standard draft version of |
100 | qlog. The output from OpenSSL will change in incompatible ways in future | |
d8b405a2 HL |
101 | releases, and is not subject to any format stability or compatibility |
102 | guarantees at this time; therefore this functionality must currently be | |
103 | enabled with the build-time option `enable-unstable-qlog`. See the | |
104 | openssl-qlog(7) manpage for details. | |
f8fdc73e HL |
105 | |
106 | *Hugo Landau* | |
107 | ||
a1446ff2 HL |
108 | * Added APIs to allow configuring the negotiated idle timeout for QUIC |
109 | connections, and to allow determining the number of additional streams | |
110 | that can currently be created for a QUIC connection. | |
111 | ||
112 | *Hugo Landau* | |
113 | ||
45ada6b9 | 114 | OpenSSL 3.2 |
27272657 RL |
115 | ----------- |
116 | ||
5dc2b72d TM |
117 | ### Changes between 3.2.0 and 3.2.1 [xx XXX xxxx] |
118 | ||
0873e6f6 MC |
119 | * A file in PKCS12 format can contain certificates and keys and may come from |
120 | an untrusted source. The PKCS12 specification allows certain fields to be | |
121 | NULL, but OpenSSL did not correctly check for this case. A fix has been | |
122 | applied to prevent a NULL pointer dereference that results in OpenSSL | |
123 | crashing. If an application processes PKCS12 files from an untrusted source | |
124 | using the OpenSSL APIs then that application will be vulnerable to this | |
125 | issue prior to this fix. | |
126 | ||
127 | OpenSSL APIs that were vulnerable to this are: PKCS12_parse(), | |
128 | PKCS12_unpack_p7data(), PKCS12_unpack_p7encdata(), PKCS12_unpack_authsafes() | |
129 | and PKCS12_newpass(). | |
130 | ||
131 | We have also fixed a similar issue in SMIME_write_PKCS7(). However since this | |
132 | function is related to writing data we do not consider it security | |
133 | significant. | |
134 | ||
135 | ([CVE-2024-0727]) | |
136 | ||
137 | *Matt Caswell* | |
138 | ||
38b2508f TM |
139 | * When function EVP_PKEY_public_check() is called on RSA public keys, |
140 | a computation is done to confirm that the RSA modulus, n, is composite. | |
141 | For valid RSA keys, n is a product of two or more large primes and this | |
142 | computation completes quickly. However, if n is an overly large prime, | |
143 | then this computation would take a long time. | |
144 | ||
145 | An application that calls EVP_PKEY_public_check() and supplies an RSA key | |
146 | obtained from an untrusted source could be vulnerable to a Denial of Service | |
147 | attack. | |
148 | ||
149 | The function EVP_PKEY_public_check() is not called from other OpenSSL | |
150 | functions however it is called from the OpenSSL pkey command line | |
151 | application. For that reason that application is also vulnerable if used | |
152 | with the "-pubin" and "-check" options on untrusted data. | |
153 | ||
154 | To resolve this issue RSA keys larger than OPENSSL_RSA_MAX_MODULUS_BITS will | |
155 | now fail the check immediately with an RSA_R_MODULUS_TOO_LARGE error reason. | |
156 | ||
157 | ([CVE-2023-6237]) | |
158 | ||
159 | *Tomáš Mráz* | |
160 | ||
1d490694 RL |
161 | * Restore the encoding of SM2 PrivateKeyInfo and SubjectPublicKeyInfo to |
162 | have the contained AlgorithmIdentifier.algorithm set to id-ecPublicKey | |
163 | rather than SM2. | |
164 | ||
165 | *Richard Levitte* | |
166 | ||
858c7bc2 TM |
167 | * The POLY1305 MAC (message authentication code) implementation in OpenSSL |
168 | for PowerPC CPUs saves the contents of vector registers in different | |
169 | order than they are restored. Thus the contents of some of these vector | |
170 | registers is corrupted when returning to the caller. The vulnerable code is | |
171 | used only on newer PowerPC processors supporting the PowerISA 2.07 | |
172 | instructions. | |
173 | ||
174 | The consequences of this kind of internal application state corruption can | |
175 | be various - from no consequences, if the calling application does not | |
176 | depend on the contents of non-volatile XMM registers at all, to the worst | |
177 | consequences, where the attacker could get complete control of the | |
178 | application process. However unless the compiler uses the vector registers | |
179 | for storing pointers, the most likely consequence, if any, would be an | |
180 | incorrect result of some application dependent calculations or a crash | |
181 | leading to a denial of service. | |
182 | ||
183 | ([CVE-2023-6129]) | |
184 | ||
185 | *Rohan McLure* | |
186 | ||
afb19f07 MC |
187 | * Disable building QUIC server utility when OpenSSL is configured with |
188 | `no-apps`. | |
189 | ||
190 | *Vitalii Koshura* | |
191 | ||
192 | ### Changes between 3.1 and 3.2.0 [23 Nov 2023] | |
193 | ||
0873e6f6 MC |
194 | * Fix excessive time spent in DH check / generation with large Q parameter |
195 | value. | |
196 | ||
197 | Applications that use the functions DH_generate_key() to generate an | |
198 | X9.42 DH key may experience long delays. Likewise, applications that use | |
199 | DH_check_pub_key(), DH_check_pub_key_ex() or EVP_PKEY_public_check() | |
200 | to check an X9.42 DH key or X9.42 DH parameters may experience long delays. | |
201 | Where the key or parameters that are being checked have been obtained from | |
202 | an untrusted source this may lead to a Denial of Service. | |
203 | ||
204 | ([CVE-2023-5678]) | |
205 | ||
206 | *Richard Levitte* | |
207 | ||
19641b48 | 208 | * The BLAKE2b hash algorithm supports a configurable output length |
209 | by setting the "size" parameter. | |
210 | ||
211 | *Čestmír Kalina and Tomáš Mráz* | |
212 | ||
636ee1d0 EK |
213 | * Enable extra Arm64 optimization on Windows for GHASH, RAND and AES. |
214 | ||
215 | *Evgeny Karpov* | |
216 | ||
3f8b7b98 TM |
217 | * Added a function to delete objects from store by URI - OSSL_STORE_delete() |
218 | and the corresponding provider-storemgmt API function | |
219 | OSSL_FUNC_store_delete(). | |
220 | ||
221 | *Dmitry Belyavskiy* | |
222 | ||
223 | * Added OSSL_FUNC_store_open_ex() provider-storemgmt API function to pass | |
224 | a passphrase callback when opening a store. | |
225 | ||
226 | *Simo Sorce* | |
227 | ||
3859a027 | 228 | * Changed the default salt length used by PBES2 KDF's (PBKDF2 and scrypt) |
229 | from 8 bytes to 16 bytes. | |
230 | The PKCS5 (RFC 8018) standard uses a 64 bit salt length for PBE, and | |
231 | recommends a minimum of 64 bits for PBES2. For FIPS compliance PBKDF2 | |
232 | requires a salt length of 128 bits. This affects OpenSSL command line | |
233 | applications such as "genrsa" and "pkcs8" and API's such as | |
234 | PEM_write_bio_PrivateKey() that are reliant on the default value. | |
e3994583 | 235 | The additional commandline option 'saltlen' has been added to the |
236 | OpenSSL command line applications for "pkcs8" and "enc" to allow the | |
237 | salt length to be set to a non default value. | |
3859a027 | 238 | |
239 | *Shane Lontis* | |
240 | ||
305dc68a TM |
241 | * Changed the default value of the `ess_cert_id_alg` configuration |
242 | option which is used to calculate the TSA's public key certificate | |
243 | identifier. The default algorithm is updated to be sha256 instead | |
244 | of sha1. | |
245 | ||
246 | *Małgorzata Olszówka* | |
247 | ||
6399d785 XY |
248 | * Added optimization for SM2 algorithm on aarch64. It uses a huge precomputed |
249 | table for point multiplication of the base point, which increases the size of | |
250 | libcrypto from 4.4 MB to 4.9 MB. A new configure option `no-sm2-precomp` has | |
251 | been added to disable the precomputed table. | |
252 | ||
253 | *Xu Yizhou* | |
254 | ||
8a764202 MC |
255 | * Added client side support for QUIC |
256 | ||
7542bdbf TM |
257 | *Hugo Landau, Matt Caswell, Paul Dale, Tomáš Mráz, Richard Levitte* |
258 | ||
259 | * Added multiple tutorials on the OpenSSL library and in particular | |
260 | on writing various clients (using TLS and QUIC protocols) with libssl. | |
261 | ||
262 | *Matt Caswell* | |
263 | ||
264 | * Added secp384r1 implementation using Solinas' reduction to improve | |
265 | speed of the NIST P-384 elliptic curve. To enable the implementation | |
266 | the build option `enable-ec_nistp_64_gcc_128` must be used. | |
267 | ||
268 | *Rohan McLure* | |
269 | ||
270 | * Improved RFC7468 compliance of the asn1parse command. | |
271 | ||
272 | *Matthias St. Pierre* | |
8a764202 | 273 | |
81bafac5 FD |
274 | * Added SHA256/192 algorithm support. |
275 | ||
276 | *Fergus Dall* | |
277 | ||
7542bdbf TM |
278 | * Added support for securely getting root CA certificate update in |
279 | CMP. | |
280 | ||
281 | *David von Oheimb* | |
282 | ||
283 | * Improved contention on global write locks by using more read locks where | |
284 | appropriate. | |
285 | ||
286 | *Matt Caswell* | |
287 | ||
288 | * Improved performance of OSSL_PARAM lookups in performance critical | |
289 | provider functions. | |
290 | ||
291 | *Paul Dale* | |
292 | ||
293 | * Added the SSL_get0_group_name() function to provide access to the | |
294 | name of the group used for the TLS key exchange. | |
295 | ||
296 | *Alex Bozarth* | |
297 | ||
298 | * Provide a new configure option `no-http` that can be used to disable the | |
299 | HTTP support. Provide new configure options `no-apps` and `no-docs` to | |
300 | disable building the openssl command line application and the documentation. | |
6b1f763c VK |
301 | |
302 | *Vladimír Kotal* | |
303 | ||
7542bdbf TM |
304 | * Provide a new configure option `no-ecx` that can be used to disable the |
305 | X25519, X448, and EdDSA support. | |
306 | ||
307 | *Yi Li* | |
308 | ||
309 | * When multiple OSSL_KDF_PARAM_INFO parameters are passed to | |
310 | the EVP_KDF_CTX_set_params() function they are now concatenated not just | |
311 | for the HKDF algorithm but also for SSKDF and X9.63 KDF algorithms. | |
312 | ||
313 | *Paul Dale* | |
314 | ||
315 | * Added OSSL_FUNC_keymgmt_im/export_types_ex() provider functions that get | |
316 | the provider context as a parameter. | |
317 | ||
318 | *Ingo Franzki* | |
319 | ||
cee0628e JC |
320 | * TLS round-trip time calculation was added by a Brigham Young University |
321 | Capstone team partnering with Sandia National Laboratories. A new function | |
322 | in ssl_lib titled SSL_get_handshake_rtt will calculate and retrieve this | |
323 | value. | |
324 | ||
325 | *Jairus Christensen* | |
326 | ||
90ae2c13 MC |
327 | * Added the "-quic" option to s_client to enable connectivity to QUIC servers. |
328 | QUIC requires the use of ALPN, so this must be specified via the "-alpn" | |
329 | option. Use of the "advanced" s_client command command via the "-adv" option | |
330 | is recommended. | |
331 | ||
332 | *Matt Caswell* | |
333 | ||
b21306b9 MC |
334 | * Added an "advanced" command mode to s_client. Use this with the "-adv" |
335 | option. The old "basic" command mode recognises certain letters that must | |
336 | always appear at the start of a line and cannot be escaped. The advanced | |
337 | command mode enables commands to be entered anywhere and there is an | |
338 | escaping mechanism. After starting s_client with "-adv" type "{help}" | |
339 | to show a list of available commands. | |
340 | ||
341 | *Matt Caswell* | |
342 | ||
3c95ef22 TS |
343 | * Add Raw Public Key (RFC7250) support. Authentication is supported |
344 | by matching keys against either local policy (TLSA records synthesised | |
345 | from the expected keys) or DANE (TLSA records obtained by the | |
346 | application from DNS). TLSA records will also match the same key in | |
347 | the server certificate, should RPK use not happen to be negotiated. | |
348 | ||
349 | *Todd Short* | |
350 | ||
7542bdbf TM |
351 | * Added support for modular exponentiation and CRT offloading for the |
352 | S390x architecture. | |
353 | ||
354 | *Juergen Christ* | |
355 | ||
356 | * Added further assembler code for the RISC-V architecture. | |
357 | ||
358 | *Christoph Müllner* | |
359 | ||
360 | * Added EC_GROUP_to_params() which creates an OSSL_PARAM array | |
a8aad913 OM |
361 | from a given EC_GROUP. |
362 | ||
363 | *Oliver Mihatsch* | |
364 | ||
7542bdbf TM |
365 | * Improved support for non-default library contexts and property queries |
366 | when parsing PKCS#12 files. | |
367 | ||
368 | *Shane Lontis* | |
369 | ||
370 | * Implemented support for all five instances of EdDSA from RFC8032: | |
371 | Ed25519, Ed25519ctx, Ed25519ph, Ed448, and Ed448ph. | |
372 | The streaming is not yet supported for the HashEdDSA variants | |
373 | (Ed25519ph and Ed448ph). | |
374 | ||
375 | *James Muir* | |
376 | ||
377 | * Added SM4 optimization for ARM processors using ASIMD and AES HW | |
378 | instructions. | |
379 | ||
380 | *Xu Yizhou* | |
381 | ||
382 | * Implemented SM4-XTS support. | |
383 | ||
384 | *Xu Yizhou* | |
385 | ||
386 | * Added platform-agnostic OSSL_sleep() function. | |
387 | ||
388 | *Richard Levitte* | |
389 | ||
390 | * Implemented deterministic ECDSA signatures (RFC6979) support. | |
391 | ||
392 | *Shane Lontis* | |
393 | ||
394 | * Implemented AES-GCM-SIV (RFC8452) support. | |
395 | ||
396 | *Todd Short* | |
397 | ||
ee58915c MB |
398 | * Added support for pluggable (provider-based) TLS signature algorithms. |
399 | This enables TLS 1.3 authentication operations with algorithms embedded | |
400 | in providers not included by default in OpenSSL. In combination with | |
401 | the already available pluggable KEM and X.509 support, this enables | |
402 | for example suitable providers to deliver post-quantum or quantum-safe | |
403 | cryptography to OpenSSL users. | |
404 | ||
405 | *Michael Baentsch* | |
406 | ||
7542bdbf TM |
407 | * Added support for pluggable (provider-based) CMS signature algorithms. |
408 | This enables CMS sign and verify operations with algorithms embedded | |
409 | in providers not included by default in OpenSSL. | |
410 | ||
411 | *Michael Baentsch* | |
412 | ||
ad062480 SF |
413 | * Added support for Hybrid Public Key Encryption (HPKE) as defined |
414 | in RFC9180. HPKE is required for TLS Encrypted ClientHello (ECH), | |
415 | Message Layer Security (MLS) and other IETF specifications. | |
416 | HPKE can also be used by other applications that require | |
417 | encrypting "to" an ECDH public key. External APIs are defined in | |
418 | include/openssl/hpke.h and documented in doc/man3/OSSL_HPKE_CTX_new.pod | |
419 | ||
420 | *Stephen Farrell* | |
421 | ||
7542bdbf TM |
422 | * Implemented HPKE DHKEM support in providers used by HPKE (RFC9180) |
423 | API. | |
424 | ||
425 | *Shane Lontis* | |
426 | ||
b67cb09f TS |
427 | * Add support for certificate compression (RFC8879), including |
428 | library support for Brotli and Zstandard compression. | |
429 | ||
430 | *Todd Short* | |
431 | ||
e869c867 GW |
432 | * Add the ability to add custom attributes to PKCS12 files. Add a new API |
433 | PKCS12_create_ex2, identical to the existing PKCS12_create_ex but allows | |
434 | for a user specified callback and optional argument. | |
435 | Added a new PKCS12_SAFEBAG_set0_attr, which allows for a new attr to be | |
436 | added to the existing STACK_OF attrs. | |
437 | ||
438 | *Graham Woodward* | |
439 | ||
7542bdbf | 440 | * Major refactor of the libssl record layer. |
ce602bb0 MC |
441 | |
442 | *Matt Caswell* | |
443 | ||
e393064e K |
444 | * Add a mac salt length option for the pkcs12 command. |
445 | ||
446 | *Xinping Chen* | |
447 | ||
a425c0fe KK |
448 | * Add more SRTP protection profiles from RFC8723 and RFC8269. |
449 | ||
450 | *Kijin Kim* | |
451 | ||
7c78932b DU |
452 | * Extended Kernel TLS (KTLS) to support TLS 1.3 receive offload. |
453 | ||
454 | *Daiki Ueno, John Baldwin and Dmitry Podgorny* | |
455 | ||
a3e53d56 TS |
456 | * Add support for TCP Fast Open (RFC7413) to macOS, Linux, and FreeBSD where |
457 | supported and enabled. | |
458 | ||
459 | *Todd Short* | |
460 | ||
b139a956 NT |
461 | * Add ciphersuites based on DHE_PSK (RFC 4279) and ECDHE_PSK (RFC 5489) |
462 | to the list of ciphersuites providing Perfect Forward Secrecy as | |
463 | required by SECLEVEL >= 3. | |
464 | ||
465 | *Dmitry Belyavskiy, Nicola Tuveri* | |
466 | ||
cbb1cda6 DDO |
467 | * Add new SSL APIs to aid in efficiently implementing TLS/SSL fingerprinting. |
468 | The SSL_CTRL_GET_IANA_GROUPS control code, exposed as the | |
469 | SSL_get0_iana_groups() function-like macro, retrieves the list of | |
470 | supported groups sent by the peer. | |
471 | The function SSL_client_hello_get_extension_order() populates | |
472 | a caller-supplied array with the list of extension types present in the | |
473 | ClientHello, in order of appearance. | |
13a53fbf PL |
474 | |
475 | *Phus Lu* | |
476 | ||
1d28ada1 DS |
477 | * Fixed PEM_write_bio_PKCS8PrivateKey() and PEM_write_bio_PKCS8PrivateKey_nid() |
478 | to make it possible to use empty passphrase strings. | |
59ccb72c DS |
479 | |
480 | *Darshan Sen* | |
481 | ||
7542bdbf TM |
482 | * The PKCS12_parse() function now supports MAC-less PKCS12 files. |
483 | ||
484 | *Daniel Fiala* | |
485 | ||
486 | * Added ASYNC_set_mem_functions() and ASYNC_get_mem_functions() calls to be able | |
487 | to change functions used for allocating the memory of asynchronous call stack. | |
488 | ||
489 | *Arran Cudbard-Bell* | |
490 | ||
491 | * Added support for signed BIGNUMs in the OSSL_PARAM APIs. | |
492 | ||
493 | *Richard Levitte* | |
494 | ||
495 | * A failure exit code is returned when using the openssl x509 command to check | |
496 | certificate attributes and the checks fail. | |
497 | ||
498 | *Rami Khaldi* | |
499 | ||
a4c4090c MC |
500 | * The default SSL/TLS security level has been changed from 1 to 2. RSA, |
501 | DSA and DH keys of 1024 bits and above and less than 2048 bits and ECC keys | |
502 | of 160 bits and above and less than 224 bits were previously accepted by | |
503 | default but are now no longer allowed. By default TLS compression was | |
504 | already disabled in previous OpenSSL versions. At security level 2 it cannot | |
505 | be enabled. | |
506 | ||
507 | *Matt Caswell* | |
508 | ||
d1b26ddb EL |
509 | * The SSL_CTX_set_cipher_list family functions now accept ciphers using their |
510 | IANA standard names. | |
511 | ||
512 | *Erik Lax* | |
513 | ||
c8ffd220 P |
514 | * The PVK key derivation function has been moved from b2i_PVK_bio_ex() into |
515 | the legacy crypto provider as an EVP_KDF. Applications requiring this KDF | |
516 | will need to load the legacy crypto provider. | |
517 | ||
518 | *Paul Dale* | |
7542bdbf | 519 | |
e0710222 P |
520 | * CCM8 cipher suites in TLS have been downgraded to security level zero |
521 | because they use a short authentication tag which lowers their strength. | |
1a473d1c P |
522 | |
523 | *Paul Dale* | |
524 | ||
537976de | 525 | * Subject or issuer names in X.509 objects are now displayed as UTF-8 strings |
d8d19107 | 526 | by default. Also spaces surrounding `=` in DN output are removed. |
537976de DB |
527 | |
528 | *Dmitry Belyavskiy* | |
27272657 | 529 | |
3fa6dbd1 DDO |
530 | * Add X.509 certificate codeSigning purpose and related checks on key usage and |
531 | extended key usage of the leaf certificate according to the CA/Browser Forum. | |
532 | ||
533 | * Lutz Jänicke* | |
534 | ||
342e3652 DDO |
535 | * The `x509`, `ca`, and `req` apps now produce X.509 v3 certificates. |
536 | The `-x509v1` option of `req` prefers generation of X.509 v1 certificates. | |
537 | `X509_sign()` and `X509_sign_ctx()` make sure that the certificate has | |
538 | X.509 version 3 if the certificate information includes X.509 extensions. | |
539 | ||
540 | *David von Oheimb* | |
541 | ||
cbb1cda6 DDO |
542 | * Fix and extend certificate handling and the apps `x509`, `verify` etc. |
543 | such as adding a trace facility for debugging certificate chain building. | |
544 | ||
545 | *David von Oheimb* | |
546 | ||
547 | * Various fixes and extensions to the CMP+CRMF implementation and the `cmp` app | |
548 | in particular supporting requests for central key generation, generalized | |
549 | polling, and various types of genm/genp exchanges defined in CMP Updates. | |
550 | ||
551 | *David von Oheimb* | |
552 | ||
553 | * Fixes and extensions to the HTTP client and to the HTTP server in `apps/` | |
554 | like correcting the TLS and proxy support and adding tracing for debugging. | |
555 | ||
556 | *David von Oheimb* | |
557 | ||
558 | * Extended the CMS API for handling `CMS_SignedData` and `CMS_EnvelopedData`. | |
559 | ||
560 | *David von Oheimb* | |
561 | ||
7542bdbf TM |
562 | * `CMS_add0_cert()` and `CMS_add1_cert()` no longer throw an error if |
563 | a certificate to be added is already present. `CMS_sign_ex()` and | |
564 | `CMS_sign()` now ignore any duplicate certificates in their `certs` argument | |
565 | and no longer throw an error for them. | |
65def9de DDO |
566 | |
567 | *David von Oheimb* | |
568 | ||
cbb1cda6 DDO |
569 | * Fixed and extended `util/check-format.pl` for checking adherence to the |
570 | coding style <https://www.openssl.org/policies/technical/coding-style.html>. | |
571 | The checks are meanwhile more complete and yield fewer false positives. | |
572 | ||
573 | *David von Oheimb* | |
574 | ||
7542bdbf TM |
575 | * Added BIO_s_dgram_pair() and BIO_s_dgram_mem() that provide memory-based |
576 | BIOs with datagram semantics and support for BIO_sendmmsg() and BIO_recvmmsg() | |
577 | calls. They can be used as the transport BIOs for QUIC. | |
578 | ||
579 | *Hugo Landau, Matt Caswell and Tomáš Mráz* | |
580 | ||
664e096c HL |
581 | * Add new BIO_sendmmsg() and BIO_recvmmsg() BIO methods which allow |
582 | sending and receiving multiple messages in a single call. An implementation | |
583 | is provided for BIO_dgram. For further details, see BIO_sendmmsg(3). | |
584 | ||
585 | *Hugo Landau* | |
586 | ||
606e0426 HL |
587 | * Support for loading root certificates from the Windows certificate store |
588 | has been added. The support is in the form of a store which recognises the | |
dfdbc113 HL |
589 | URI string of `org.openssl.winstore://`. This URI scheme currently takes no |
590 | arguments. This store is built by default and can be disabled using the new | |
591 | compile-time option `no-winstore`. This store is not currently used by | |
592 | default and must be loaded explicitly using the above store URI. It is | |
593 | expected to be loaded by default in the future. | |
021859bf HL |
594 | |
595 | *Hugo Landau* | |
596 | ||
34c2f90d TZ |
597 | * Enable KTLS with the TLS 1.3 CCM mode ciphersuites. Note that some linux |
598 | kernel versions that support KTLS have a known bug in CCM processing. That | |
599 | has been fixed in stable releases starting from 5.4.164, 5.10.84, 5.15.7, | |
600 | and all releases since 5.16. KTLS with CCM ciphersuites should be only used | |
601 | on these releases. | |
602 | ||
603 | *Tianjia Zhang* | |
604 | ||
7542bdbf TM |
605 | * Added `-ktls` option to `s_server` and `s_client` commands to enable the |
606 | KTLS support. | |
607 | ||
608 | *Tianjia Zhang* | |
609 | ||
cd715b7e MM |
610 | * Zerocopy KTLS sendfile() support on Linux. |
611 | ||
612 | *Maxim Mikityanskiy* | |
613 | ||
7542bdbf TM |
614 | * The OBJ_ calls are now thread safe using a global lock. |
615 | ||
616 | *Paul Dale* | |
617 | ||
618 | * New parameter `-digest` for openssl cms command allowing signing | |
619 | pre-computed digests and new CMS API functions supporting that | |
620 | functionality. | |
621 | ||
622 | *Viktor Söderqvist* | |
623 | ||
624 | * OPENSSL_malloc() and other allocation functions now raise errors on | |
625 | allocation failures. The callers do not need to explicitly raise errors | |
626 | unless they want to for tracing purposes. | |
627 | ||
628 | *David von Oheimb* | |
629 | ||
c3aed7e4 HK |
630 | * Added and enabled by default implicit rejection in RSA PKCS#1 v1.5 |
631 | decryption as a protection against Bleichenbacher-like attacks. | |
632 | The RSA decryption API will now return a randomly generated deterministic | |
633 | message instead of an error in case it detects an error when checking | |
634 | padding during PKCS#1 v1.5 decryption. This is a general protection against | |
635 | issues like CVE-2020-25659 and CVE-2020-25657. This protection can be | |
636 | disabled by calling | |
637 | `EVP_PKEY_CTX_ctrl_str(ctx, "rsa_pkcs1_implicit_rejection". "0")` | |
638 | on the RSA decryption context. | |
639 | ||
640 | *Hubert Kario* | |
641 | ||
7542bdbf TM |
642 | * Added support for Brainpool curves in TLS-1.3. |
643 | ||
644 | *Bernd Edlinger and Matt Caswell* | |
645 | ||
646 | * Added OpenBSD specific build targets. | |
647 | ||
648 | *David Carlier* | |
649 | ||
6dfa998f | 650 | * Support for Argon2d, Argon2i, Argon2id KDFs has been added along with |
7542bdbf | 651 | a basic thread pool implementation for select platforms. |
6dfa998f ČK |
652 | |
653 | *Čestmír Kalina* | |
654 | ||
3c53032a TM |
655 | OpenSSL 3.1 |
656 | ----------- | |
657 | ||
96ee2c38 TM |
658 | ### Changes between 3.1.3 and 3.1.4 [24 Oct 2023] |
659 | ||
660 | * Fix incorrect key and IV resizing issues when calling EVP_EncryptInit_ex2(), | |
1e6e682a P |
661 | EVP_DecryptInit_ex2() or EVP_CipherInit_ex2() with OSSL_PARAM parameters |
662 | that alter the key or IV length ([CVE-2023-5363]). | |
663 | ||
664 | *Paul Dale* | |
665 | ||
666 | ### Changes between 3.1.2 and 3.1.3 [19 Sep 2023] | |
02f84b02 | 667 | |
0be7510f TM |
668 | * Fix POLY1305 MAC implementation corrupting XMM registers on Windows. |
669 | ||
670 | The POLY1305 MAC (message authentication code) implementation in OpenSSL | |
671 | does not save the contents of non-volatile XMM registers on Windows 64 | |
672 | platform when calculating the MAC of data larger than 64 bytes. Before | |
673 | returning to the caller all the XMM registers are set to zero rather than | |
674 | restoring their previous content. The vulnerable code is used only on newer | |
675 | x86_64 processors supporting the AVX512-IFMA instructions. | |
676 | ||
677 | The consequences of this kind of internal application state corruption can | |
678 | be various - from no consequences, if the calling application does not | |
679 | depend on the contents of non-volatile XMM registers at all, to the worst | |
680 | consequences, where the attacker could get complete control of the | |
681 | application process. However given the contents of the registers are just | |
682 | zeroized so the attacker cannot put arbitrary values inside, the most likely | |
683 | consequence, if any, would be an incorrect result of some application | |
684 | dependent calculations or a crash leading to a denial of service. | |
685 | ||
686 | ([CVE-2023-4807]) | |
687 | ||
688 | *Bernd Edlinger* | |
02f84b02 | 689 | |
7542bdbf | 690 | ### Changes between 3.1.1 and 3.1.2 [1 Aug 2023] |
7a3d32ae | 691 | |
4b297628 TM |
692 | * Fix excessive time spent checking DH q parameter value. |
693 | ||
694 | The function DH_check() performs various checks on DH parameters. After | |
695 | fixing CVE-2023-3446 it was discovered that a large q parameter value can | |
696 | also trigger an overly long computation during some of these checks. | |
697 | A correct q value, if present, cannot be larger than the modulus p | |
698 | parameter, thus it is unnecessary to perform these checks if q is larger | |
699 | than p. | |
700 | ||
701 | If DH_check() is called with such q parameter value, | |
702 | DH_CHECK_INVALID_Q_VALUE return flag is set and the computationally | |
703 | intensive checks are skipped. | |
704 | ||
705 | ([CVE-2023-3817]) | |
706 | ||
707 | *Tomáš Mráz* | |
708 | ||
709 | * Fix DH_check() excessive time with over sized modulus. | |
4ec53ad6 MC |
710 | |
711 | The function DH_check() performs various checks on DH parameters. One of | |
712 | those checks confirms that the modulus ("p" parameter) is not too large. | |
713 | Trying to use a very large modulus is slow and OpenSSL will not normally use | |
714 | a modulus which is over 10,000 bits in length. | |
715 | ||
716 | However the DH_check() function checks numerous aspects of the key or | |
717 | parameters that have been supplied. Some of those checks use the supplied | |
718 | modulus value even if it has already been found to be too large. | |
719 | ||
720 | A new limit has been added to DH_check of 32,768 bits. Supplying a | |
721 | key/parameters with a modulus over this size will simply cause DH_check() to | |
722 | fail. | |
723 | ||
724 | ([CVE-2023-3446]) | |
725 | ||
726 | *Matt Caswell* | |
727 | ||
1e398bec TM |
728 | * Do not ignore empty associated data entries with AES-SIV. |
729 | ||
730 | The AES-SIV algorithm allows for authentication of multiple associated | |
731 | data entries along with the encryption. To authenticate empty data the | |
732 | application has to call `EVP_EncryptUpdate()` (or `EVP_CipherUpdate()`) | |
733 | with NULL pointer as the output buffer and 0 as the input buffer length. | |
734 | The AES-SIV implementation in OpenSSL just returns success for such call | |
735 | instead of performing the associated data authentication operation. | |
736 | The empty data thus will not be authenticated. ([CVE-2023-2975]) | |
737 | ||
738 | Thanks to Juerg Wullschleger (Google) for discovering the issue. | |
739 | ||
740 | The fix changes the authentication tag value and the ciphertext for | |
741 | applications that use empty associated data entries with AES-SIV. | |
742 | To decrypt data encrypted with previous versions of OpenSSL the application | |
743 | has to skip calls to `EVP_DecryptUpdate()` for empty associated data | |
744 | entries. | |
745 | ||
4b297628 | 746 | *Tomáš Mráz* |
1e398bec | 747 | |
7a3d32ae P |
748 | * When building with the `enable-fips` option and using the resulting |
749 | FIPS provider, TLS 1.2 will, by default, mandate the use of an extended | |
750 | master secret (FIPS 140-3 IG G.Q) and the Hash and HMAC DRBGs will | |
751 | not operate with truncated digests (FIPS 140-3 IG G.R). | |
752 | ||
753 | *Paul Dale* | |
754 | ||
755 | ### Changes between 3.1.0 and 3.1.1 [30 May 2023] | |
83ff6cbd | 756 | |
d63b3e79 RL |
757 | * Mitigate for the time it takes for `OBJ_obj2txt` to translate gigantic |
758 | OBJECT IDENTIFIER sub-identifiers to canonical numeric text form. | |
759 | ||
760 | OBJ_obj2txt() would translate any size OBJECT IDENTIFIER to canonical | |
761 | numeric text form. For gigantic sub-identifiers, this would take a very | |
762 | long time, the time complexity being O(n^2) where n is the size of that | |
763 | sub-identifier. ([CVE-2023-2650]) | |
764 | ||
765 | To mitigitate this, `OBJ_obj2txt()` will only translate an OBJECT | |
766 | IDENTIFIER to canonical numeric text form if the size of that OBJECT | |
767 | IDENTIFIER is 586 bytes or less, and fail otherwise. | |
768 | ||
18f82df5 | 769 | The basis for this restriction is [RFC 2578 (STD 58), section 3.5]. OBJECT |
d63b3e79 RL |
770 | IDENTIFIER values, which stipulates that OBJECT IDENTIFIERS may have at |
771 | most 128 sub-identifiers, and that the maximum value that each sub- | |
772 | identifier may have is 2^32-1 (4294967295 decimal). | |
773 | ||
774 | For each byte of every sub-identifier, only the 7 lower bits are part of | |
775 | the value, so the maximum amount of bytes that an OBJECT IDENTIFIER with | |
776 | these restrictions may occupy is 32 * 128 / 7, which is approximately 586 | |
777 | bytes. | |
778 | ||
d63b3e79 RL |
779 | *Richard Levitte* |
780 | ||
c88e01a9 TM |
781 | * Multiple algorithm implementation fixes for ARM BE platforms. |
782 | ||
783 | *Liu-ErMeng* | |
784 | ||
785 | * Added a -pedantic option to fipsinstall that adjusts the various | |
786 | settings to ensure strict FIPS compliance rather than backwards | |
787 | compatibility. | |
788 | ||
789 | *Paul Dale* | |
790 | ||
72dfe465 | 791 | * Fixed buffer overread in AES-XTS decryption on ARM 64 bit platforms which |
e6990079 TM |
792 | happens if the buffer size is 4 mod 5 in 16 byte AES blocks. This can |
793 | trigger a crash of an application using AES-XTS decryption if the memory | |
794 | just after the buffer being decrypted is not mapped. | |
72dfe465 TM |
795 | Thanks to Anton Romanov (Amazon) for discovering the issue. |
796 | ([CVE-2023-1255]) | |
797 | ||
798 | *Nevine Ebeid* | |
799 | ||
7542bdbf TM |
800 | * Reworked the Fix for the Timing Oracle in RSA Decryption ([CVE-2022-4304]). |
801 | The previous fix for this timing side channel turned out to cause | |
802 | a severe 2-3x performance regression in the typical use case | |
803 | compared to 3.0.7. The new fix uses existing constant time | |
804 | code paths, and restores the previous performance level while | |
805 | fully eliminating all existing timing side channels. | |
806 | The fix was developed by Bernd Edlinger with testing support | |
807 | by Hubert Kario. | |
808 | ||
809 | *Bernd Edlinger* | |
810 | ||
808b30f6 P |
811 | * Add FIPS provider configuration option to disallow the use of |
812 | truncated digests with Hash and HMAC DRBGs (q.v. FIPS 140-3 IG D.R.). | |
813 | The option '-no_drbg_truncated_digests' can optionally be | |
814 | supplied to 'openssl fipsinstall'. | |
815 | ||
816 | *Paul Dale* | |
817 | ||
5ab3f71a TM |
818 | * Corrected documentation of X509_VERIFY_PARAM_add0_policy() to mention |
819 | that it does not enable policy checking. Thanks to David Benjamin for | |
820 | discovering this issue. | |
821 | ([CVE-2023-0466]) | |
822 | ||
823 | *Tomáš Mráz* | |
824 | ||
986f9a67 MC |
825 | * Fixed an issue where invalid certificate policies in leaf certificates are |
826 | silently ignored by OpenSSL and other certificate policy checks are skipped | |
827 | for that certificate. A malicious CA could use this to deliberately assert | |
828 | invalid certificate policies in order to circumvent policy checking on the | |
829 | certificate altogether. | |
830 | ([CVE-2023-0465]) | |
831 | ||
832 | *Matt Caswell* | |
833 | ||
83ff6cbd P |
834 | * Limited the number of nodes created in a policy tree to mitigate |
835 | against CVE-2023-0464. The default limit is set to 1000 nodes, which | |
836 | should be sufficient for most installations. If required, the limit | |
837 | can be adjusted by setting the OPENSSL_POLICY_TREE_NODES_MAX build | |
838 | time define to a desired maximum number of nodes or zero to allow | |
839 | unlimited growth. | |
986f9a67 | 840 | ([CVE-2023-0464]) |
83ff6cbd P |
841 | |
842 | *Paul Dale* | |
843 | ||
844 | ### Changes between 3.0 and 3.1.0 [14 Mar 2023] | |
3c53032a | 845 | |
50ea5cdc | 846 | * Add FIPS provider configuration option to enforce the |
847 | Extended Master Secret (EMS) check during the TLS1_PRF KDF. | |
848 | The option '-ems-check' can optionally be supplied to | |
849 | 'openssl fipsinstall'. | |
850 | ||
851 | *Shane Lontis* | |
852 | ||
d4e105f6 P |
853 | * The FIPS provider includes a few non-approved algorithms for |
854 | backward compatibility purposes and the "fips=yes" property query | |
855 | must be used for all algorithm fetches to ensure FIPS compliance. | |
856 | ||
8c02b98f P |
857 | The algorithms that are included but not approved are Triple DES ECB, |
858 | Triple DES CBC and EdDSA. | |
d4e105f6 P |
859 | |
860 | *Paul Dale* | |
861 | ||
ec3342e7 TM |
862 | * Added support for KMAC in KBKDF. |
863 | ||
864 | *Shane Lontis* | |
865 | ||
3c53032a TM |
866 | * RNDR and RNDRRS support in provider functions to provide |
867 | random number generation for Arm CPUs (aarch64). | |
868 | ||
869 | *Orr Toledano* | |
870 | ||
871 | * s_client and s_server apps now explicitly say when the TLS version | |
872 | does not include the renegotiation mechanism. This avoids confusion | |
873 | between that scenario versus when the TLS version includes secure | |
874 | renegotiation but the peer lacks support for it. | |
875 | ||
876 | *Felipe Gasper* | |
877 | ||
878 | * AES-GCM enabled with AVX512 vAES and vPCLMULQDQ. | |
879 | ||
880 | *Tomasz Kantecki, Andrey Matyukov* | |
881 | ||
882 | * The various OBJ_* functions have been made thread safe. | |
883 | ||
884 | *Paul Dale* | |
885 | ||
886 | * Parallel dual-prime 1536/2048-bit modular exponentiation for | |
887 | AVX512_IFMA capable processors. | |
888 | ||
889 | *Sergey Kirillov, Andrey Matyukov (Intel Corp)* | |
890 | ||
891 | * The functions `OPENSSL_LH_stats`, `OPENSSL_LH_node_stats`, | |
892 | `OPENSSL_LH_node_usage_stats`, `OPENSSL_LH_stats_bio`, | |
893 | `OPENSSL_LH_node_stats_bio` and `OPENSSL_LH_node_usage_stats_bio` are now | |
894 | marked deprecated from OpenSSL 3.1 onwards and can be disabled by defining | |
895 | `OPENSSL_NO_DEPRECATED_3_1`. | |
896 | ||
897 | The macro `DEFINE_LHASH_OF` is now deprecated in favour of the macro | |
898 | `DEFINE_LHASH_OF_EX`, which omits the corresponding type-specific function | |
899 | definitions for these functions regardless of whether | |
900 | `OPENSSL_NO_DEPRECATED_3_1` is defined. | |
901 | ||
902 | Users of `DEFINE_LHASH_OF` may start receiving deprecation warnings for these | |
903 | functions regardless of whether they are using them. It is recommended that | |
904 | users transition to the new macro, `DEFINE_LHASH_OF_EX`. | |
905 | ||
906 | *Hugo Landau* | |
907 | ||
908 | * When generating safe-prime DH parameters set the recommended private key | |
909 | length equivalent to minimum key lengths as in RFC 7919. | |
910 | ||
911 | *Tomáš Mráz* | |
912 | ||
6c73ca4a CL |
913 | * Change the default salt length for PKCS#1 RSASSA-PSS signatures to the |
914 | maximum size that is smaller or equal to the digest length to comply with | |
915 | FIPS 186-4 section 5. This is implemented by a new option | |
916 | `OSSL_PKEY_RSA_PSS_SALT_LEN_AUTO_DIGEST_MAX` ("auto-digestmax") for the | |
917 | `rsa_pss_saltlen` parameter, which is now the default. Signature | |
918 | verification is not affected by this change and continues to work as before. | |
919 | ||
920 | *Clemens Lang* | |
921 | ||
c868d1f9 TM |
922 | OpenSSL 3.0 |
923 | ----------- | |
924 | ||
925 | For OpenSSL 3.0 a [Migration guide][] has been added, so the CHANGES entries | |
926 | listed here are only a brief description. | |
927 | The migration guide contains more detailed information related to new features, | |
928 | breaking changes, and mappings for the large list of deprecated functions. | |
929 | ||
930 | [Migration guide]: https://github.com/openssl/openssl/tree/master/doc/man7/migration_guide.pod | |
931 | ||
5f14b5bc TM |
932 | ### Changes between 3.0.7 and 3.0.8 [7 Feb 2023] |
933 | ||
934 | * Fixed NULL dereference during PKCS7 data verification. | |
935 | ||
936 | A NULL pointer can be dereferenced when signatures are being | |
937 | verified on PKCS7 signed or signedAndEnveloped data. In case the hash | |
938 | algorithm used for the signature is known to the OpenSSL library but | |
939 | the implementation of the hash algorithm is not available the digest | |
940 | initialization will fail. There is a missing check for the return | |
941 | value from the initialization function which later leads to invalid | |
942 | usage of the digest API most likely leading to a crash. | |
943 | ([CVE-2023-0401]) | |
944 | ||
945 | PKCS7 data is processed by the SMIME library calls and also by the | |
946 | time stamp (TS) library calls. The TLS implementation in OpenSSL does | |
947 | not call these functions however third party applications would be | |
948 | affected if they call these functions to verify signatures on untrusted | |
949 | data. | |
950 | ||
951 | *Tomáš Mráz* | |
952 | ||
953 | * Fixed X.400 address type confusion in X.509 GeneralName. | |
954 | ||
955 | There is a type confusion vulnerability relating to X.400 address processing | |
956 | inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING | |
957 | but the public structure definition for GENERAL_NAME incorrectly specified | |
958 | the type of the x400Address field as ASN1_TYPE. This field is subsequently | |
959 | interpreted by the OpenSSL function GENERAL_NAME_cmp as an ASN1_TYPE rather | |
960 | than an ASN1_STRING. | |
961 | ||
962 | When CRL checking is enabled (i.e. the application sets the | |
963 | X509_V_FLAG_CRL_CHECK flag), this vulnerability may allow an attacker to | |
964 | pass arbitrary pointers to a memcmp call, enabling them to read memory | |
965 | contents or enact a denial of service. | |
966 | ([CVE-2023-0286]) | |
967 | ||
968 | *Hugo Landau* | |
969 | ||
970 | * Fixed NULL dereference validating DSA public key. | |
971 | ||
972 | An invalid pointer dereference on read can be triggered when an | |
973 | application tries to check a malformed DSA public key by the | |
974 | EVP_PKEY_public_check() function. This will most likely lead | |
975 | to an application crash. This function can be called on public | |
976 | keys supplied from untrusted sources which could allow an attacker | |
977 | to cause a denial of service attack. | |
978 | ||
979 | The TLS implementation in OpenSSL does not call this function | |
980 | but applications might call the function if there are additional | |
981 | security requirements imposed by standards such as FIPS 140-3. | |
982 | ([CVE-2023-0217]) | |
983 | ||
984 | *Shane Lontis, Tomáš Mráz* | |
985 | ||
986 | * Fixed Invalid pointer dereference in d2i_PKCS7 functions. | |
987 | ||
988 | An invalid pointer dereference on read can be triggered when an | |
989 | application tries to load malformed PKCS7 data with the | |
990 | d2i_PKCS7(), d2i_PKCS7_bio() or d2i_PKCS7_fp() functions. | |
991 | ||
992 | The result of the dereference is an application crash which could | |
993 | lead to a denial of service attack. The TLS implementation in OpenSSL | |
994 | does not call this function however third party applications might | |
995 | call these functions on untrusted data. | |
996 | ([CVE-2023-0216]) | |
997 | ||
998 | *Tomáš Mráz* | |
999 | ||
1000 | * Fixed Use-after-free following BIO_new_NDEF. | |
1001 | ||
1002 | The public API function BIO_new_NDEF is a helper function used for | |
1003 | streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL | |
1004 | to support the SMIME, CMS and PKCS7 streaming capabilities, but may also | |
1005 | be called directly by end user applications. | |
1006 | ||
1007 | The function receives a BIO from the caller, prepends a new BIO_f_asn1 | |
1008 | filter BIO onto the front of it to form a BIO chain, and then returns | |
1009 | the new head of the BIO chain to the caller. Under certain conditions, | |
1010 | for example if a CMS recipient public key is invalid, the new filter BIO | |
1011 | is freed and the function returns a NULL result indicating a failure. | |
1012 | However, in this case, the BIO chain is not properly cleaned up and the | |
1013 | BIO passed by the caller still retains internal pointers to the previously | |
1014 | freed filter BIO. If the caller then goes on to call BIO_pop() on the BIO | |
1015 | then a use-after-free will occur. This will most likely result in a crash. | |
1016 | ([CVE-2023-0215]) | |
1017 | ||
1018 | *Viktor Dukhovni, Matt Caswell* | |
1019 | ||
1020 | * Fixed Double free after calling PEM_read_bio_ex. | |
1021 | ||
1022 | The function PEM_read_bio_ex() reads a PEM file from a BIO and parses and | |
1023 | decodes the "name" (e.g. "CERTIFICATE"), any header data and the payload | |
1024 | data. If the function succeeds then the "name_out", "header" and "data" | |
1025 | arguments are populated with pointers to buffers containing the relevant | |
1026 | decoded data. The caller is responsible for freeing those buffers. It is | |
1027 | possible to construct a PEM file that results in 0 bytes of payload data. | |
1028 | In this case PEM_read_bio_ex() will return a failure code but will populate | |
1029 | the header argument with a pointer to a buffer that has already been freed. | |
1030 | If the caller also frees this buffer then a double free will occur. This | |
1031 | will most likely lead to a crash. | |
1032 | ||
1033 | The functions PEM_read_bio() and PEM_read() are simple wrappers around | |
1034 | PEM_read_bio_ex() and therefore these functions are also directly affected. | |
1035 | ||
1036 | These functions are also called indirectly by a number of other OpenSSL | |
1037 | functions including PEM_X509_INFO_read_bio_ex() and | |
1038 | SSL_CTX_use_serverinfo_file() which are also vulnerable. Some OpenSSL | |
1039 | internal uses of these functions are not vulnerable because the caller does | |
1040 | not free the header argument if PEM_read_bio_ex() returns a failure code. | |
1041 | ([CVE-2022-4450]) | |
1042 | ||
1043 | *Kurt Roeckx, Matt Caswell* | |
1044 | ||
1045 | * Fixed Timing Oracle in RSA Decryption. | |
1046 | ||
1047 | A timing based side channel exists in the OpenSSL RSA Decryption | |
1048 | implementation which could be sufficient to recover a plaintext across | |
1049 | a network in a Bleichenbacher style attack. To achieve a successful | |
1050 | decryption an attacker would have to be able to send a very large number | |
1051 | of trial messages for decryption. The vulnerability affects all RSA padding | |
1052 | modes: PKCS#1 v1.5, RSA-OEAP and RSASVE. | |
1053 | ([CVE-2022-4304]) | |
1054 | ||
1055 | *Dmitry Belyavsky, Hubert Kario* | |
1056 | ||
1057 | * Fixed X.509 Name Constraints Read Buffer Overflow. | |
1058 | ||
1059 | A read buffer overrun can be triggered in X.509 certificate verification, | |
1060 | specifically in name constraint checking. The read buffer overrun might | |
1061 | result in a crash which could lead to a denial of service attack. | |
1062 | In a TLS client, this can be triggered by connecting to a malicious | |
1063 | server. In a TLS server, this can be triggered if the server requests | |
1064 | client authentication and a malicious client connects. | |
1065 | ([CVE-2022-4203]) | |
1066 | ||
1067 | *Viktor Dukhovni* | |
1068 | ||
1069 | * Fixed X.509 Policy Constraints Double Locking security issue. | |
1070 | ||
1071 | If an X.509 certificate contains a malformed policy constraint and | |
1072 | policy processing is enabled, then a write lock will be taken twice | |
1073 | recursively. On some operating systems (most widely: Windows) this | |
1074 | results in a denial of service when the affected process hangs. Policy | |
1075 | processing being enabled on a publicly facing server is not considered | |
1076 | to be a common setup. | |
1077 | ([CVE-2022-3996]) | |
1078 | ||
1079 | *Paul Dale* | |
f66c1272 NT |
1080 | |
1081 | * Our provider implementations of `OSSL_FUNC_KEYMGMT_EXPORT` and | |
1082 | `OSSL_FUNC_KEYMGMT_GET_PARAMS` for EC and SM2 keys now honor | |
1083 | `OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT` as set (and | |
1084 | default to `POINT_CONVERSION_UNCOMPRESSED`) when exporting | |
1085 | `OSSL_PKEY_PARAM_PUB_KEY`, instead of unconditionally using | |
1086 | `POINT_CONVERSION_COMPRESSED` as in previous 3.x releases. | |
1087 | For symmetry, our implementation of `EVP_PKEY_ASN1_METHOD->export_to` | |
1088 | for legacy EC and SM2 keys is also changed similarly to honor the | |
1089 | equivalent conversion format flag as specified in the underlying | |
1090 | `EC_KEY` object being exported to a provider, when this function is | |
1091 | called through `EVP_PKEY_export()`. | |
1092 | ||
1093 | *Nicola Tuveri* | |
1094 | ||
e0fbaf2a TM |
1095 | ### Changes between 3.0.6 and 3.0.7 [1 Nov 2022] |
1096 | ||
1097 | * Fixed two buffer overflows in punycode decoding functions. | |
1098 | ||
1099 | A buffer overrun can be triggered in X.509 certificate verification, | |
1100 | specifically in name constraint checking. Note that this occurs after | |
1101 | certificate chain signature verification and requires either a CA to | |
1102 | have signed the malicious certificate or for the application to continue | |
1103 | certificate verification despite failure to construct a path to a trusted | |
1104 | issuer. | |
1105 | ||
1106 | In a TLS client, this can be triggered by connecting to a malicious | |
1107 | server. In a TLS server, this can be triggered if the server requests | |
1108 | client authentication and a malicious client connects. | |
1109 | ||
1110 | An attacker can craft a malicious email address to overflow | |
1111 | an arbitrary number of bytes containing the `.` character (decimal 46) | |
1112 | on the stack. This buffer overflow could result in a crash (causing a | |
1113 | denial of service). | |
1114 | ([CVE-2022-3786]) | |
1115 | ||
1116 | An attacker can craft a malicious email address to overflow four | |
1117 | attacker-controlled bytes on the stack. This buffer overflow could | |
1118 | result in a crash (causing a denial of service) or potentially remote code | |
1119 | execution depending on stack layout for any given platform/compiler. | |
1120 | ([CVE-2022-3602]) | |
1121 | ||
1122 | *Paul Dale* | |
1123 | ||
1124 | * Removed all references to invalid OSSL_PKEY_PARAM_RSA names for CRT | |
1125 | parameters in OpenSSL code. | |
1126 | Applications should not use the names OSSL_PKEY_PARAM_RSA_FACTOR, | |
1127 | OSSL_PKEY_PARAM_RSA_EXPONENT and OSSL_PKEY_PARAM_RSA_COEFFICIENT. | |
1128 | Use the numbered names such as OSSL_PKEY_PARAM_RSA_FACTOR1 instead. | |
1129 | Using these invalid names may cause algorithms to use slower methods | |
1130 | that ignore the CRT parameters. | |
1131 | ||
1132 | *Shane Lontis* | |
1133 | ||
1134 | * Fixed a regression introduced in 3.0.6 version raising errors on some stack | |
1135 | operations. | |
1136 | ||
1137 | *Tomáš Mráz* | |
1138 | ||
1139 | * Fixed a regression introduced in 3.0.6 version not refreshing the certificate | |
1140 | data to be signed before signing the certificate. | |
1141 | ||
1142 | *Gibeom Gwon* | |
b6553796 TM |
1143 | |
1144 | * Added RIPEMD160 to the default provider. | |
1145 | ||
1146 | *Paul Dale* | |
1147 | ||
e0fbaf2a TM |
1148 | * Ensured that the key share group sent or accepted for the key exchange |
1149 | is allowed for the protocol version. | |
1150 | ||
1151 | *Matt Caswell* | |
1152 | ||
79edcf4d MC |
1153 | ### Changes between 3.0.5 and 3.0.6 [11 Oct 2022] |
1154 | ||
1155 | * OpenSSL supports creating a custom cipher via the legacy | |
1156 | EVP_CIPHER_meth_new() function and associated function calls. This function | |
1157 | was deprecated in OpenSSL 3.0 and application authors are instead encouraged | |
1158 | to use the new provider mechanism in order to implement custom ciphers. | |
1159 | ||
1160 | OpenSSL versions 3.0.0 to 3.0.5 incorrectly handle legacy custom ciphers | |
1161 | passed to the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() and | |
1162 | EVP_CipherInit_ex2() functions (as well as other similarly named encryption | |
1163 | and decryption initialisation functions). Instead of using the custom cipher | |
1164 | directly it incorrectly tries to fetch an equivalent cipher from the | |
1165 | available providers. An equivalent cipher is found based on the NID passed to | |
1166 | EVP_CIPHER_meth_new(). This NID is supposed to represent the unique NID for a | |
1167 | given cipher. However it is possible for an application to incorrectly pass | |
1168 | NID_undef as this value in the call to EVP_CIPHER_meth_new(). When NID_undef | |
1169 | is used in this way the OpenSSL encryption/decryption initialisation function | |
1170 | will match the NULL cipher as being equivalent and will fetch this from the | |
1171 | available providers. This will succeed if the default provider has been | |
1172 | loaded (or if a third party provider has been loaded that offers this | |
1173 | cipher). Using the NULL cipher means that the plaintext is emitted as the | |
1174 | ciphertext. | |
1175 | ||
1176 | Applications are only affected by this issue if they call | |
1177 | EVP_CIPHER_meth_new() using NID_undef and subsequently use it in a call to an | |
1178 | encryption/decryption initialisation function. Applications that only use | |
1179 | SSL/TLS are not impacted by this issue. | |
1180 | ([CVE-2022-3358]) | |
1181 | ||
1182 | *Matt Caswell* | |
1183 | ||
1184 | * Fix LLVM vs Apple LLVM version numbering confusion that caused build failures | |
1185 | on MacOS 10.11 | |
1186 | ||
1187 | *Richard Levitte* | |
1188 | ||
1189 | * Fixed the linux-mips64 Configure target which was missing the | |
1190 | SIXTY_FOUR_BIT bn_ops flag. This was causing heap corruption on that | |
1191 | platform. | |
1192 | ||
1193 | *Adam Joseph* | |
1194 | ||
1195 | * Fix handling of a ticket key callback that returns 0 in TLSv1.3 to not send a | |
1196 | ticket | |
1197 | ||
1198 | *Matt Caswell* | |
1199 | ||
1200 | * Correctly handle a retransmitted ClientHello in DTLS | |
1201 | ||
1202 | *Matt Caswell* | |
1203 | ||
1204 | * Fixed detection of ktls support in cross-compile environment on Linux | |
1205 | ||
1206 | *Tomas Mraz* | |
1207 | ||
1208 | * Fixed some regressions and test failures when running the 3.0.0 FIPS provider | |
1209 | against 3.0.x | |
1210 | ||
1211 | *Paul Dale* | |
1212 | ||
1213 | * Fixed SSL_pending() and SSL_has_pending() with DTLS which were failing to | |
1214 | report correct results in some cases | |
1215 | ||
1216 | *Matt Caswell* | |
1217 | ||
1218 | * Fix UWP builds by defining VirtualLock | |
1219 | ||
1220 | *Charles Milette* | |
1221 | ||
1222 | * For known safe primes use the minimum key length according to RFC 7919. | |
1223 | Longer private key sizes unnecessarily raise the cycles needed to compute the | |
1224 | shared secret without any increase of the real security. This fixes a | |
1225 | regression from 1.1.1 where these shorter keys were generated for the known | |
1226 | safe primes. | |
1227 | ||
1228 | *Tomas Mraz* | |
1229 | ||
1230 | * Added the loongarch64 target | |
1231 | ||
1232 | *Shi Pujin* | |
1233 | ||
1234 | * Fixed EC ASM flag passing. Flags for ASM implementations of EC curves were | |
1235 | only passed to the FIPS provider and not to the default or legacy provider. | |
1236 | ||
1237 | *Juergen Christ* | |
1238 | ||
1239 | * Fixed reported performance degradation on aarch64. Restored the | |
1240 | implementation prior to commit 2621751 ("aes/asm/aesv8-armx.pl: avoid | |
1241 | 32-bit lane assignment in CTR mode") for 64bit targets only, since it is | |
1242 | reportedly 2-17% slower and the silicon errata only affects 32bit targets. | |
1243 | The new algorithm is still used for 32 bit targets. | |
1244 | ||
1245 | *Bernd Edlinger* | |
1246 | ||
1247 | * Added a missing header for memcmp that caused compilation failure on some | |
1248 | platforms | |
1249 | ||
1250 | *Gregor Jasny* | |
1251 | ||
1252 | ### Changes between 3.0.4 and 3.0.5 [5 Jul 2022] | |
1253 | ||
1254 | * The OpenSSL 3.0.4 release introduced a serious bug in the RSA | |
1255 | implementation for X86_64 CPUs supporting the AVX512IFMA instructions. | |
1256 | This issue makes the RSA implementation with 2048 bit private keys | |
1257 | incorrect on such machines and memory corruption will happen during | |
1258 | the computation. As a consequence of the memory corruption an attacker | |
1259 | may be able to trigger a remote code execution on the machine performing | |
1260 | the computation. | |
1261 | ||
1262 | SSL/TLS servers or other servers using 2048 bit RSA private keys running | |
1263 | on machines supporting AVX512IFMA instructions of the X86_64 architecture | |
1264 | are affected by this issue. | |
1265 | ([CVE-2022-2274]) | |
1266 | ||
1267 | *Xi Ruoyao* | |
1268 | ||
1269 | * AES OCB mode for 32-bit x86 platforms using the AES-NI assembly optimised | |
1270 | implementation would not encrypt the entirety of the data under some | |
1271 | circumstances. This could reveal sixteen bytes of data that was | |
1272 | preexisting in the memory that wasn't written. In the special case of | |
1273 | "in place" encryption, sixteen bytes of the plaintext would be revealed. | |
1274 | ||
1275 | Since OpenSSL does not support OCB based cipher suites for TLS and DTLS, | |
1276 | they are both unaffected. | |
1277 | ([CVE-2022-2097]) | |
1278 | ||
1279 | *Alex Chernyakhovsky, David Benjamin, Alejandro Sedeño* | |
1280 | ||
1281 | ### Changes between 3.0.3 and 3.0.4 [21 Jun 2022] | |
de85a9de MC |
1282 | |
1283 | * In addition to the c_rehash shell command injection identified in | |
1284 | CVE-2022-1292, further bugs where the c_rehash script does not | |
1285 | properly sanitise shell metacharacters to prevent command injection have been | |
1286 | fixed. | |
1287 | ||
1288 | When the CVE-2022-1292 was fixed it was not discovered that there | |
1289 | are other places in the script where the file names of certificates | |
1290 | being hashed were possibly passed to a command executed through the shell. | |
1291 | ||
1292 | This script is distributed by some operating systems in a manner where | |
1293 | it is automatically executed. On such operating systems, an attacker | |
1294 | could execute arbitrary commands with the privileges of the script. | |
1295 | ||
1296 | Use of the c_rehash script is considered obsolete and should be replaced | |
1297 | by the OpenSSL rehash command line tool. | |
1298 | (CVE-2022-2068) | |
1299 | ||
1300 | *Daniel Fiala, Tomáš Mráz* | |
8a66b2f9 P |
1301 | |
1302 | * Case insensitive string comparison no longer uses locales. It has instead | |
1303 | been directly implemented. | |
1304 | ||
1305 | *Paul Dale* | |
1306 | ||
de85a9de | 1307 | ### Changes between 3.0.2 and 3.0.3 [3 May 2022] |
77d7b6ee | 1308 | |
8b97bfcc DB |
1309 | * Case insensitive string comparison is reimplemented via new locale-agnostic |
1310 | comparison functions OPENSSL_str[n]casecmp always using the POSIX locale for | |
1311 | comparison. The previous implementation had problems when the Turkish locale | |
1312 | was used. | |
1313 | ||
1314 | *Dmitry Belyavskiy* | |
1315 | ||
73e044bd MC |
1316 | * Fixed a bug in the c_rehash script which was not properly sanitising shell |
1317 | metacharacters to prevent command injection. This script is distributed by | |
1318 | some operating systems in a manner where it is automatically executed. On | |
1319 | such operating systems, an attacker could execute arbitrary commands with the | |
1320 | privileges of the script. | |
1321 | ||
1322 | Use of the c_rehash script is considered obsolete and should be replaced | |
1323 | by the OpenSSL rehash command line tool. | |
1324 | (CVE-2022-1292) | |
1325 | ||
1326 | *Tomáš Mráz* | |
1327 | ||
1328 | * Fixed a bug in the function `OCSP_basic_verify` that verifies the signer | |
1329 | certificate on an OCSP response. The bug caused the function in the case | |
1330 | where the (non-default) flag OCSP_NOCHECKS is used to return a postivie | |
1331 | response (meaning a successful verification) even in the case where the | |
1332 | response signing certificate fails to verify. | |
1333 | ||
1334 | It is anticipated that most users of `OCSP_basic_verify` will not use the | |
1335 | OCSP_NOCHECKS flag. In this case the `OCSP_basic_verify` function will return | |
1336 | a negative value (indicating a fatal error) in the case of a certificate | |
1337 | verification failure. The normal expected return value in this case would be | |
1338 | 0. | |
1339 | ||
1340 | This issue also impacts the command line OpenSSL "ocsp" application. When | |
1341 | verifying an ocsp response with the "-no_cert_checks" option the command line | |
1342 | application will report that the verification is successful even though it | |
1343 | has in fact failed. In this case the incorrect successful response will also | |
1344 | be accompanied by error messages showing the failure and contradicting the | |
1345 | apparently successful result. | |
1346 | ([CVE-2022-1343]) | |
1347 | ||
1348 | *Matt Caswell* | |
1349 | ||
1350 | * Fixed a bug where the RC4-MD5 ciphersuite incorrectly used the | |
1351 | AAD data as the MAC key. This made the MAC key trivially predictable. | |
1352 | ||
1353 | An attacker could exploit this issue by performing a man-in-the-middle attack | |
1354 | to modify data being sent from one endpoint to an OpenSSL 3.0 recipient such | |
1355 | that the modified data would still pass the MAC integrity check. | |
1356 | ||
1357 | Note that data sent from an OpenSSL 3.0 endpoint to a non-OpenSSL 3.0 | |
1358 | endpoint will always be rejected by the recipient and the connection will | |
1359 | fail at that point. Many application protocols require data to be sent from | |
1360 | the client to the server first. Therefore, in such a case, only an OpenSSL | |
1361 | 3.0 server would be impacted when talking to a non-OpenSSL 3.0 client. | |
1362 | ||
1363 | If both endpoints are OpenSSL 3.0 then the attacker could modify data being | |
1364 | sent in both directions. In this case both clients and servers could be | |
1365 | affected, regardless of the application protocol. | |
1366 | ||
1367 | Note that in the absence of an attacker this bug means that an OpenSSL 3.0 | |
1368 | endpoint communicating with a non-OpenSSL 3.0 endpoint will fail to complete | |
1369 | the handshake when using this ciphersuite. | |
1370 | ||
1371 | The confidentiality of data is not impacted by this issue, i.e. an attacker | |
1372 | cannot decrypt data that has been encrypted using this ciphersuite - they can | |
1373 | only modify it. | |
1374 | ||
1375 | In order for this attack to work both endpoints must legitimately negotiate | |
1376 | the RC4-MD5 ciphersuite. This ciphersuite is not compiled by default in | |
1377 | OpenSSL 3.0, and is not available within the default provider or the default | |
1378 | ciphersuite list. This ciphersuite will never be used if TLSv1.3 has been | |
1379 | negotiated. In order for an OpenSSL 3.0 endpoint to use this ciphersuite the | |
1380 | following must have occurred: | |
1381 | ||
1382 | 1) OpenSSL must have been compiled with the (non-default) compile time option | |
1383 | enable-weak-ssl-ciphers | |
1384 | ||
1385 | 2) OpenSSL must have had the legacy provider explicitly loaded (either | |
1386 | through application code or via configuration) | |
1387 | ||
1388 | 3) The ciphersuite must have been explicitly added to the ciphersuite list | |
1389 | ||
1390 | 4) The libssl security level must have been set to 0 (default is 1) | |
1391 | ||
1392 | 5) A version of SSL/TLS below TLSv1.3 must have been negotiated | |
1393 | ||
1394 | 6) Both endpoints must negotiate the RC4-MD5 ciphersuite in preference to any | |
1395 | others that both endpoints have in common | |
1396 | (CVE-2022-1434) | |
1397 | ||
cac25075 | 1398 | *Matt Caswell* |
73e044bd MC |
1399 | |
1400 | * Fix a bug in the OPENSSL_LH_flush() function that breaks reuse of the memory | |
d7f3a2cc | 1401 | occupied by the removed hash table entries. |
73e044bd MC |
1402 | |
1403 | This function is used when decoding certificates or keys. If a long lived | |
1404 | process periodically decodes certificates or keys its memory usage will | |
1405 | expand without bounds and the process might be terminated by the operating | |
1406 | system causing a denial of service. Also traversing the empty hash table | |
1407 | entries will take increasingly more time. | |
1408 | ||
1409 | Typically such long lived processes might be TLS clients or TLS servers | |
1410 | configured to accept client certificate authentication. | |
1411 | (CVE-2022-1473) | |
1412 | ||
cac25075 | 1413 | *Hugo Landau, Aliaksei Levin* |
73e044bd | 1414 | |
77d7b6ee HL |
1415 | * The functions `OPENSSL_LH_stats` and `OPENSSL_LH_stats_bio` now only report |
1416 | the `num_items`, `num_nodes` and `num_alloc_nodes` statistics. All other | |
1417 | statistics are no longer supported. For compatibility, these statistics are | |
1418 | still listed in the output but are now always reported as zero. | |
1419 | ||
1420 | *Hugo Landau* | |
1421 | ||
de85a9de | 1422 | ### Changes between 3.0.1 and 3.0.2 [15 Mar 2022] |
a40398a1 MC |
1423 | |
1424 | * Fixed a bug in the BN_mod_sqrt() function that can cause it to loop forever | |
1425 | for non-prime moduli. | |
1426 | ||
1427 | Internally this function is used when parsing certificates that contain | |
1428 | elliptic curve public keys in compressed form or explicit elliptic curve | |
1429 | parameters with a base point encoded in compressed form. | |
1430 | ||
1431 | It is possible to trigger the infinite loop by crafting a certificate that | |
1432 | has invalid explicit curve parameters. | |
1433 | ||
1434 | Since certificate parsing happens prior to verification of the certificate | |
1435 | signature, any process that parses an externally supplied certificate may thus | |
1436 | be subject to a denial of service attack. The infinite loop can also be | |
1437 | reached when parsing crafted private keys as they can contain explicit | |
1438 | elliptic curve parameters. | |
1439 | ||
1440 | Thus vulnerable situations include: | |
1441 | ||
1442 | - TLS clients consuming server certificates | |
1443 | - TLS servers consuming client certificates | |
1444 | - Hosting providers taking certificates or private keys from customers | |
1445 | - Certificate authorities parsing certification requests from subscribers | |
1446 | - Anything else which parses ASN.1 elliptic curve parameters | |
1447 | ||
1448 | Also any other applications that use the BN_mod_sqrt() where the attacker | |
1449 | can control the parameter values are vulnerable to this DoS issue. | |
1450 | ([CVE-2022-0778]) | |
1451 | ||
1452 | *Tomáš Mráz* | |
1453 | ||
1454 | * Add ciphersuites based on DHE_PSK (RFC 4279) and ECDHE_PSK (RFC 5489) | |
1455 | to the list of ciphersuites providing Perfect Forward Secrecy as | |
1456 | required by SECLEVEL >= 3. | |
1457 | ||
1458 | *Dmitry Belyavskiy, Nicola Tuveri* | |
e180bf64 P |
1459 | |
1460 | * Made the AES constant time code for no-asm configurations | |
1461 | optional due to the resulting 95% performance degradation. | |
1462 | The AES constant time code can be enabled, for no assembly | |
1463 | builds, with: ./config no-asm -DOPENSSL_AES_CONST_TIME | |
1464 | ||
1465 | *Paul Dale* | |
1466 | ||
a40398a1 MC |
1467 | * Fixed PEM_write_bio_PKCS8PrivateKey() to make it possible to use empty |
1468 | passphrase strings. | |
1469 | ||
1470 | *Darshan Sen* | |
1471 | ||
dfb39f73 TM |
1472 | * The negative return value handling of the certificate verification callback |
1473 | was reverted. The replacement is to set the verification retry state with | |
1474 | the SSL_set_retry_verify() function. | |
1475 | ||
1476 | *Tomáš Mráz* | |
1477 | ||
de85a9de | 1478 | ### Changes between 3.0.0 and 3.0.1 [14 Dec 2021] |
32a3b9b7 | 1479 | |
5eef9e1d MC |
1480 | * Fixed invalid handling of X509_verify_cert() internal errors in libssl |
1481 | Internally libssl in OpenSSL calls X509_verify_cert() on the client side to | |
1482 | verify a certificate supplied by a server. That function may return a | |
1483 | negative return value to indicate an internal error (for example out of | |
1484 | memory). Such a negative return value is mishandled by OpenSSL and will cause | |
1485 | an IO function (such as SSL_connect() or SSL_do_handshake()) to not indicate | |
1486 | success and a subsequent call to SSL_get_error() to return the value | |
1487 | SSL_ERROR_WANT_RETRY_VERIFY. This return value is only supposed to be | |
1488 | returned by OpenSSL if the application has previously called | |
1489 | SSL_CTX_set_cert_verify_callback(). Since most applications do not do this | |
1490 | the SSL_ERROR_WANT_RETRY_VERIFY return value from SSL_get_error() will be | |
1491 | totally unexpected and applications may not behave correctly as a result. The | |
1492 | exact behaviour will depend on the application but it could result in | |
1493 | crashes, infinite loops or other similar incorrect responses. | |
1494 | ||
1495 | This issue is made more serious in combination with a separate bug in OpenSSL | |
1496 | 3.0 that will cause X509_verify_cert() to indicate an internal error when | |
1497 | processing a certificate chain. This will occur where a certificate does not | |
1498 | include the Subject Alternative Name extension but where a Certificate | |
1499 | Authority has enforced name constraints. This issue can occur even with valid | |
1500 | chains. | |
1501 | ([CVE-2021-4044]) | |
1502 | ||
1503 | *Matt Caswell* | |
1504 | ||
32a3b9b7 RL |
1505 | * Corrected a few file name and file reference bugs in the build, |
1506 | installation and setup scripts, which lead to installation verification | |
1507 | failures. Slightly enhanced the installation verification script. | |
1508 | ||
1509 | *Richard Levitte* | |
1510 | ||
c868d1f9 TM |
1511 | * Fixed EVP_PKEY_eq() to make it possible to use it with strictly private |
1512 | keys. | |
44652c16 | 1513 | |
c868d1f9 | 1514 | *Richard Levitte* |
b7140b06 | 1515 | |
c868d1f9 TM |
1516 | * Fixed PVK encoder to properly query for the passphrase. |
1517 | ||
1518 | *Tomáš Mráz* | |
1519 | ||
1520 | * Multiple fixes in the OSSL_HTTP API functions. | |
1521 | ||
1522 | *David von Oheimb* | |
1523 | ||
1524 | * Allow sign extension in OSSL_PARAM_allocate_from_text() for the | |
1525 | OSSL_PARAM_INTEGER data type and return error on negative numbers | |
1526 | used with the OSSL_PARAM_UNSIGNED_INTEGER data type. Make | |
1527 | OSSL_PARAM_BLD_push_BN{,_pad}() return an error on negative numbers. | |
1528 | ||
1529 | *Richard Levitte* | |
1530 | ||
1531 | * Allow copying uninitialized digest contexts with EVP_MD_CTX_copy_ex. | |
1532 | ||
1533 | *Tomáš Mráz* | |
1534 | ||
1535 | * Fixed detection of ARMv7 and ARM64 CPU features on FreeBSD. | |
1536 | ||
1537 | *Allan Jude* | |
1538 | ||
c868d1f9 TM |
1539 | * Multiple threading fixes. |
1540 | ||
1541 | *Matt Caswell* | |
1542 | ||
1543 | * Added NULL digest implementation to keep compatibility with 1.1.1 version. | |
1544 | ||
1545 | *Tomáš Mráz* | |
1546 | ||
1547 | * Allow fetching an operation from the provider that owns an unexportable key | |
1548 | as a fallback if that is still allowed by the property query. | |
1549 | ||
1550 | *Richard Levitte* | |
b7140b06 | 1551 | |
de85a9de | 1552 | ### Changes between 1.1.1 and 3.0.0 [7 Sep 2021] |
c7d4d032 | 1553 | |
95a444c9 TM |
1554 | * TLS_MAX_VERSION, DTLS_MAX_VERSION and DTLS_MIN_VERSION constants are now |
1555 | deprecated. | |
1556 | ||
1557 | *Matt Caswell* | |
1558 | ||
1559 | * The `OPENSSL_s390xcap` environment variable can be used to set bits in the | |
1560 | S390X capability vector to zero. This simplifies testing of different code | |
1561 | paths on S390X architecture. | |
1562 | ||
1563 | *Patrick Steuer* | |
1564 | ||
1565 | * Encrypting more than 2^64 TLS records with AES-GCM is disallowed | |
1566 | as per FIPS 140-2 IG A.5 "Key/IV Pair Uniqueness Requirements from | |
1567 | SP 800-38D". The communication will fail at this point. | |
1568 | ||
1569 | *Paul Dale* | |
1570 | ||
1571 | * The EC_GROUP_clear_free() function is deprecated as there is nothing | |
1572 | confidential in EC_GROUP data. | |
1573 | ||
1574 | *Nicola Tuveri* | |
1575 | ||
1576 | * The byte order mark (BOM) character is ignored if encountered at the | |
1577 | beginning of a PEM-formatted file. | |
1578 | ||
1579 | *Dmitry Belyavskiy* | |
1580 | ||
1581 | * Added CMS support for the Russian GOST algorithms. | |
1582 | ||
1583 | *Dmitry Belyavskiy* | |
1584 | ||
6f242d22 TM |
1585 | * Due to move of the implementation of cryptographic operations |
1586 | to the providers, validation of various operation parameters can | |
1587 | be postponed until the actual operation is executed where previously | |
1588 | it happened immediately when an operation parameter was set. | |
1589 | ||
1590 | For example when setting an unsupported curve with | |
1591 | EVP_PKEY_CTX_set_ec_paramgen_curve_nid() this function call will not | |
1592 | fail but later keygen operations with the EVP_PKEY_CTX will fail. | |
1593 | ||
1594 | *OpenSSL team members and many third party contributors* | |
1595 | ||
69222552 | 1596 | * The EVP_get_cipherbyname() function will return NULL for algorithms such as |
1597 | "AES-128-SIV", "AES-128-CBC-CTS" and "CAMELLIA-128-CBC-CTS" which were | |
d7f3a2cc | 1598 | previously only accessible via low-level interfaces. Use EVP_CIPHER_fetch() |
69222552 | 1599 | instead to retrieve these algorithms from a provider. |
1600 | ||
1601 | *Shane Lontis* | |
1602 | ||
bd32bdb8 TM |
1603 | * On build targets where the multilib postfix is set in the build |
1604 | configuration the libdir directory was changing based on whether | |
1605 | the lib directory with the multilib postfix exists on the system | |
1606 | or not. This unpredictable behavior was removed and eventual | |
1607 | multilib postfix is now always added to the default libdir. Use | |
1608 | `--libdir=lib` to override the libdir if adding the postfix is | |
1609 | undesirable. | |
1610 | ||
1611 | *Jan Lána* | |
1612 | ||
e5f8935c P |
1613 | * The triple DES key wrap functionality now conforms to RFC 3217 but is |
1614 | no longer interoperable with OpenSSL 1.1.1. | |
1615 | ||
1616 | *Paul Dale* | |
1617 | ||
0f71b1eb P |
1618 | * The ERR_GET_FUNC() function was removed. With the loss of meaningful |
1619 | function codes, this function can only cause problems for calling | |
1620 | applications. | |
1621 | ||
1622 | *Paul Dale* | |
1623 | ||
8c5bff22 WE |
1624 | * Add a configurable flag to output date formats as ISO 8601. Does not |
1625 | change the default date format. | |
1626 | ||
1627 | *William Edmisten* | |
1628 | ||
f8ab78f6 RS |
1629 | * Version of MSVC earlier than 1300 could get link warnings, which could |
1630 | be suppressed if the undocumented -DI_CAN_LIVE_WITH_LNK4049 was set. | |
1631 | Support for this flag has been removed. | |
1632 | ||
1633 | *Rich Salz* | |
1634 | ||
a935791d RS |
1635 | * Rework and make DEBUG macros consistent. Remove unused -DCONF_DEBUG, |
1636 | -DBN_CTX_DEBUG, and REF_PRINT. Add a new tracing category and use it for | |
1637 | printing reference counts. Rename -DDEBUG_UNUSED to -DUNUSED_RESULT_DEBUG | |
1638 | Fix BN_DEBUG_RAND so it compiles and, when set, force DEBUG_RAND to be set | |
1639 | also. Rename engine_debug_ref to be ENGINE_REF_PRINT also for consistency. | |
1640 | ||
1641 | *Rich Salz* | |
1642 | ||
f04bb0bc RS |
1643 | * The signatures of the functions to get and set options on SSL and |
1644 | SSL_CTX objects changed from "unsigned long" to "uint64_t" type. | |
1645 | Some source code changes may be required. | |
1646 | ||
a935791d | 1647 | *Rich Salz* |
f04bb0bc | 1648 | |
ff234c68 RS |
1649 | * The public definitions of conf_method_st and conf_st have been |
1650 | deprecated. They will be made opaque in a future release. | |
1651 | ||
b3c2ed70 | 1652 | *Rich Salz and Tomáš Mráz* |
ff234c68 | 1653 | |
55373bfd RS |
1654 | * Client-initiated renegotiation is disabled by default. To allow it, use |
1655 | the -client_renegotiation option, the SSL_OP_ALLOW_CLIENT_RENEGOTIATION | |
1656 | flag, or the "ClientRenegotiation" config parameter as appropriate. | |
1657 | ||
a935791d | 1658 | *Rich Salz* |
55373bfd | 1659 | |
f7050588 RS |
1660 | * Add "abspath" and "includedir" pragma's to config files, to prevent, |
1661 | or modify relative pathname inclusion. | |
3fb985fd | 1662 | |
a935791d | 1663 | *Rich Salz* |
3fb985fd | 1664 | |
3b9e4769 | 1665 | * OpenSSL includes a cryptographic module that is intended to be FIPS 140-2 |
b7140b06 | 1666 | validated. Please consult the README-FIPS and |
3b9e4769 DMSP |
1667 | README-PROVIDERS files, as well as the migration guide. |
1668 | ||
3b9e4769 DMSP |
1669 | *OpenSSL team members and many third party contributors* |
1670 | ||
f1ffaaee | 1671 | * For the key types DH and DHX the allowed settable parameters are now different. |
f1ffaaee SL |
1672 | |
1673 | *Shane Lontis* | |
1674 | ||
bee3f389 | 1675 | * The openssl commands that read keys, certificates, and CRLs now |
b7140b06 | 1676 | automatically detect the PEM or DER format of the input files. |
bee3f389 TM |
1677 | |
1678 | *David von Oheimb, Richard Levitte, and Tomáš Mráz* | |
1679 | ||
b7140b06 | 1680 | * Added enhanced PKCS#12 APIs which accept a library context. |
b536880c JS |
1681 | |
1682 | *Jon Spillett* | |
1683 | ||
ae6f65ae MC |
1684 | * The default manual page suffix ($MANSUFFIX) has been changed to "ossl" |
1685 | ||
1686 | *Matt Caswell* | |
1687 | ||
b7140b06 | 1688 | * Added support for Kernel TLS (KTLS). |
6878f430 MC |
1689 | |
1690 | *Boris Pismenny, John Baldwin and Andrew Gallatin* | |
1691 | ||
72d2670b | 1692 | * Support for RFC 5746 secure renegotiation is now required by default for |
b7140b06 | 1693 | SSL or TLS connections to succeed. |
72d2670b BK |
1694 | |
1695 | *Benjamin Kaduk* | |
1696 | ||
9ac653d8 TM |
1697 | * The signature of the `copy` functional parameter of the |
1698 | EVP_PKEY_meth_set_copy() function has changed so its `src` argument is | |
1699 | now `const EVP_PKEY_CTX *` instead of `EVP_PKEY_CTX *`. Similarly | |
1700 | the signature of the `pub_decode` functional parameter of the | |
1701 | EVP_PKEY_asn1_set_public() function has changed so its `pub` argument is | |
1702 | now `const X509_PUBKEY *` instead of `X509_PUBKEY *`. | |
1703 | ||
1704 | *David von Oheimb* | |
1705 | ||
9c1b19eb | 1706 | * The error return values from some control calls (ctrl) have changed. |
9c1b19eb P |
1707 | |
1708 | *Paul Dale* | |
1709 | ||
e454a393 | 1710 | * A public key check is now performed during EVP_PKEY_derive_set_peer(). |
e454a393 SL |
1711 | |
1712 | *Shane Lontis* | |
1713 | ||
31b7f23d TM |
1714 | * Many functions in the EVP_ namespace that are getters of values from |
1715 | implementations or contexts were renamed to include get or get0 in their | |
1716 | names. Old names are provided as macro aliases for compatibility and | |
1717 | are not deprecated. | |
1718 | ||
1719 | *Tomáš Mráz* | |
1720 | ||
0cfbc828 TM |
1721 | * The EVP_PKEY_CTRL_PKCS7_ENCRYPT, EVP_PKEY_CTRL_PKCS7_DECRYPT, |
1722 | EVP_PKEY_CTRL_PKCS7_SIGN, EVP_PKEY_CTRL_CMS_ENCRYPT, | |
1723 | EVP_PKEY_CTRL_CMS_DECRYPT, and EVP_PKEY_CTRL_CMS_SIGN control operations | |
b7140b06 | 1724 | are deprecated. |
0cfbc828 TM |
1725 | |
1726 | *Tomáš Mráz* | |
1727 | ||
2db5834c | 1728 | * The EVP_PKEY_public_check() and EVP_PKEY_param_check() functions now work for |
b7140b06 | 1729 | more key types. |
2db5834c | 1730 | |
28a8d07d | 1731 | * The output from the command line applications may have minor |
b7140b06 | 1732 | changes. |
28a8d07d P |
1733 | |
1734 | *Paul Dale* | |
1735 | ||
b7140b06 | 1736 | * The output from numerous "printing" may have minor changes. |
2db5834c MC |
1737 | |
1738 | *David von Oheimb* | |
1739 | ||
f70863d9 VD |
1740 | * Windows thread synchronization uses read/write primitives (SRWLock) when |
1741 | supported by the OS, otherwise CriticalSection continues to be used. | |
1742 | ||
1743 | *Vincent Drake* | |
1744 | ||
a30823c8 SL |
1745 | * Add filter BIO BIO_f_readbuffer() that allows BIO_tell() and BIO_seek() to |
1746 | work on read only BIO source/sinks that do not support these functions. | |
1747 | This allows piping or redirection of a file BIO using stdin to be buffered | |
1748 | into memory. This is used internally in OSSL_DECODER_from_bio(). | |
1749 | ||
1750 | *Shane Lontis* | |
1751 | ||
f74f416b MC |
1752 | * OSSL_STORE_INFO_get_type() may now return an additional value. In 1.1.1 |
1753 | this function would return one of the values OSSL_STORE_INFO_NAME, | |
1754 | OSSL_STORE_INFO_PKEY, OSSL_STORE_INFO_PARAMS, OSSL_STORE_INFO_CERT or | |
1755 | OSSL_STORE_INFO_CRL. Decoded public keys would previously have been reported | |
1756 | as type OSSL_STORE_INFO_PKEY in 1.1.1. In 3.0 decoded public keys are now | |
1757 | reported as having the new type OSSL_STORE_INFO_PUBKEY. Applications | |
1758 | using this function should be amended to handle the changed return value. | |
1759 | ||
1760 | *Richard Levitte* | |
1761 | ||
6b937ae3 | 1762 | * Improved adherence to Enhanced Security Services (ESS, RFC 2634 and RFC 5035) |
63b64f19 | 1763 | for the TSP and CMS Advanced Electronic Signatures (CAdES) implementations. |
bef876f9 | 1764 | As required by RFC 5035 check both ESSCertID and ESSCertIDv2 if both present. |
6b937ae3 DDO |
1765 | Correct the semantics of checking the validation chain in case ESSCertID{,v2} |
1766 | contains more than one certificate identifier: This means that all | |
1767 | certificates referenced there MUST be part of the validation chain. | |
1768 | ||
1769 | *David von Oheimb* | |
1770 | ||
b7140b06 SL |
1771 | * The implementation of older EVP ciphers related to CAST, IDEA, SEED, RC2, RC4, |
1772 | RC5, DESX and DES have been moved to the legacy provider. | |
c7d4d032 MC |
1773 | |
1774 | *Matt Caswell* | |
1775 | ||
1776 | * The implementation of the EVP digests MD2, MD4, MDC2, WHIRLPOOL and | |
b7140b06 | 1777 | RIPEMD-160 have been moved to the legacy provider. |
c7d4d032 MC |
1778 | |
1779 | *Matt Caswell* | |
1780 | ||
896dcda1 DB |
1781 | * The deprecated function EVP_PKEY_get0() now returns NULL being called for a |
1782 | provided key. | |
8e53d94d | 1783 | |
896dcda1 DB |
1784 | *Dmitry Belyavskiy* |
1785 | ||
1786 | * The deprecated functions EVP_PKEY_get0_RSA(), | |
cc57dc96 MC |
1787 | EVP_PKEY_get0_DSA(), EVP_PKEY_get0_EC_KEY(), EVP_PKEY_get0_DH(), |
1788 | EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and EVP_PKEY_get0_siphash() as | |
b7140b06 SL |
1789 | well as the similarly named "get1" functions behave differently in |
1790 | OpenSSL 3.0. | |
7bc0fdd3 | 1791 | |
cc57dc96 MC |
1792 | *Matt Caswell* |
1793 | ||
4d49b685 | 1794 | * A number of functions handling low-level keys or engines were deprecated |
8e53d94d MC |
1795 | including EVP_PKEY_set1_engine(), EVP_PKEY_get0_engine(), EVP_PKEY_assign(), |
1796 | EVP_PKEY_get0(), EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and | |
b7140b06 | 1797 | EVP_PKEY_get0_siphash(). |
8e53d94d MC |
1798 | |
1799 | *Matt Caswell* | |
1800 | ||
0f183675 JS |
1801 | * PKCS#5 PBKDF1 key derivation has been moved from PKCS5_PBE_keyivgen() into |
1802 | the legacy crypto provider as an EVP_KDF. Applications requiring this KDF | |
1803 | will need to load the legacy crypto provider. This includes these PBE | |
1804 | algorithms which use this KDF: | |
1805 | - NID_pbeWithMD2AndDES_CBC | |
1806 | - NID_pbeWithMD5AndDES_CBC | |
1807 | - NID_pbeWithSHA1AndRC2_CBC | |
1808 | - NID_pbeWithMD2AndRC2_CBC | |
1809 | - NID_pbeWithMD5AndRC2_CBC | |
1810 | - NID_pbeWithSHA1AndDES_CBC | |
1811 | ||
1812 | *Jon Spillett* | |
1813 | ||
0800318a TM |
1814 | * Deprecated obsolete BIO_set_callback(), BIO_get_callback(), and |
1815 | BIO_debug_callback() functions. | |
1816 | ||
1817 | *Tomáš Mráz* | |
1818 | ||
76e48c9d | 1819 | * Deprecated obsolete EVP_PKEY_CTX_get0_dh_kdf_ukm() and |
b7140b06 | 1820 | EVP_PKEY_CTX_get0_ecdh_kdf_ukm() functions. |
44652c16 | 1821 | |
76e48c9d TM |
1822 | *Tomáš Mráz* |
1823 | ||
b7140b06 | 1824 | * The RAND_METHOD APIs have been deprecated. |
12631540 P |
1825 | |
1826 | *Paul Dale* | |
8e53d94d | 1827 | |
b7140b06 | 1828 | * The SRP APIs have been deprecated. |
13888e79 MC |
1829 | |
1830 | *Matt Caswell* | |
1831 | ||
7dd5a00f P |
1832 | * Add a compile time option to prevent the caching of provider fetched |
1833 | algorithms. This is enabled by including the no-cached-fetch option | |
1834 | at configuration time. | |
1835 | ||
1836 | *Paul Dale* | |
76e48c9d | 1837 | |
b7140b06 SL |
1838 | * pkcs12 now uses defaults of PBKDF2, AES and SHA-256, with a MAC iteration |
1839 | count of PKCS12_DEFAULT_ITER. | |
762970bd TM |
1840 | |
1841 | *Tomáš Mráz and Sahana Prasad* | |
1842 | ||
b7140b06 | 1843 | * The openssl speed command does not use low-level API calls anymore. |
f3ccfc76 TM |
1844 | |
1845 | *Tomáš Mráz* | |
1846 | ||
c781eb1c AM |
1847 | * Parallel dual-prime 1024-bit modular exponentiation for AVX512_IFMA |
1848 | capable processors. | |
1849 | ||
1850 | *Ilya Albrekht, Sergey Kirillov, Andrey Matyukov (Intel Corp)* | |
1851 | ||
a763ca11 | 1852 | * Combining the Configure options no-ec and no-dh no longer disables TLSv1.3. |
a763ca11 MC |
1853 | |
1854 | *Matt Caswell* | |
1855 | ||
f5680cd0 MC |
1856 | * Implemented support for fully "pluggable" TLSv1.3 groups. This means that |
1857 | providers may supply their own group implementations (using either the "key | |
1858 | exchange" or the "key encapsulation" methods) which will automatically be | |
1859 | detected and used by libssl. | |
1860 | ||
1861 | *Matt Caswell, Nicola Tuveri* | |
1862 | ||
7ff9fdd4 | 1863 | * The undocumented function X509_certificate_type() has been deprecated; |
7ff9fdd4 RS |
1864 | |
1865 | *Rich Salz* | |
1866 | ||
b7140b06 | 1867 | * Deprecated the obsolete BN_pseudo_rand() and BN_pseudo_rand_range(). |
4d2a6159 TM |
1868 | |
1869 | *Tomáš Mráz* | |
1870 | ||
b0aae913 RS |
1871 | * Removed RSA padding mode for SSLv23 (which was only used for |
1872 | SSLv2). This includes the functions RSA_padding_check_SSLv23() and | |
1873 | RSA_padding_add_SSLv23() and the `-ssl` option in the deprecated | |
1874 | `rsautl` command. | |
1875 | ||
1876 | *Rich Salz* | |
1877 | ||
b7140b06 | 1878 | * Deprecated the obsolete X9.31 RSA key generation related functions. |
c27e7922 | 1879 | |
4672e5de DDO |
1880 | * While a callback function set via `SSL_CTX_set_cert_verify_callback()` |
1881 | is not allowed to return a value > 1, this is no more taken as failure. | |
1882 | ||
1883 | *Viktor Dukhovni and David von Oheimb* | |
1884 | ||
1885 | * Deprecated the obsolete X9.31 RSA key generation related functions | |
1886 | BN_X931_generate_Xpq(), BN_X931_derive_prime_ex(), and | |
1887 | BN_X931_generate_prime_ex(). | |
1888 | ||
66194839 | 1889 | *Tomáš Mráz* |
c27e7922 | 1890 | |
93b39c85 | 1891 | * The default key generation method for the regular 2-prime RSA keys was |
b7140b06 | 1892 | changed to the FIPS 186-4 B.3.6 method. |
93b39c85 TM |
1893 | |
1894 | *Shane Lontis* | |
1895 | ||
1896 | * Deprecated the BN_is_prime_ex() and BN_is_prime_fasttest_ex() functions. | |
93b39c85 TM |
1897 | |
1898 | *Kurt Roeckx* | |
1899 | ||
b7140b06 | 1900 | * Deprecated EVP_MD_CTX_set_update_fn() and EVP_MD_CTX_update_fn(). |
1409b5f6 RS |
1901 | |
1902 | *Rich Salz* | |
1903 | ||
b7140b06 SL |
1904 | * Deprecated the type OCSP_REQ_CTX and the functions OCSP_REQ_CTX_*() and |
1905 | replaced with OSSL_HTTP_REQ_CTX and the functions OSSL_HTTP_REQ_CTX_*(). | |
83b6dc8d | 1906 | |
8f965908 | 1907 | *Rich Salz, Richard Levitte, and David von Oheimb* |
83b6dc8d | 1908 | |
b7140b06 | 1909 | * Deprecated `X509_http_nbio()` and `X509_CRL_http_nbio()`. |
a07b0bfb DDO |
1910 | |
1911 | *David von Oheimb* | |
1912 | ||
b7140b06 | 1913 | * Deprecated `OCSP_parse_url()`. |
7932982b DDO |
1914 | |
1915 | *David von Oheimb* | |
1916 | ||
9e49aff2 | 1917 | * Validation of SM2 keys has been separated from the validation of regular EC |
b7140b06 | 1918 | keys. |
9e49aff2 NT |
1919 | |
1920 | *Nicola Tuveri* | |
1921 | ||
ed37336b NT |
1922 | * Behavior of the `pkey` app is changed, when using the `-check` or `-pubcheck` |
1923 | switches: a validation failure triggers an early exit, returning a failure | |
1924 | exit status to the parent process. | |
1925 | ||
1926 | *Nicola Tuveri* | |
1927 | ||
1c47539a OH |
1928 | * Changed behavior of SSL_CTX_set_ciphersuites() and SSL_set_ciphersuites() |
1929 | to ignore unknown ciphers. | |
1930 | ||
1931 | *Otto Hollmann* | |
1932 | ||
ec2bfb7d DDO |
1933 | * The `-cipher-commands` and `-digest-commands` options |
1934 | of the command line utility `list` have been deprecated. | |
1935 | Instead use the `-cipher-algorithms` and `-digest-algorithms` options. | |
a08489e2 DB |
1936 | |
1937 | *Dmitry Belyavskiy* | |
1938 | ||
f9253152 DDO |
1939 | * Added convenience functions for generating asymmetric key pairs: |
1940 | The 'quick' one-shot (yet somewhat limited) function L<EVP_PKEY_Q_keygen(3)> | |
1941 | and macros for the most common cases: <EVP_RSA_gen(3)> and L<EVP_EC_gen(3)>. | |
1942 | ||
1943 | *David von Oheimb* | |
1944 | ||
d7f3a2cc | 1945 | * All of the low-level EC_KEY functions have been deprecated. |
5b5eea4b | 1946 | |
66194839 | 1947 | *Shane Lontis, Paul Dale, Richard Levitte, and Tomáš Mráz* |
5b5eea4b | 1948 | |
f5a46ed7 | 1949 | * Deprecated all the libcrypto and libssl error string loading |
b7140b06 | 1950 | functions. |
f5a46ed7 RL |
1951 | |
1952 | *Richard Levitte* | |
1953 | ||
1b2a55ff MC |
1954 | * The functions SSL_CTX_set_tmp_dh_callback and SSL_set_tmp_dh_callback, as |
1955 | well as the macros SSL_CTX_set_tmp_dh() and SSL_set_tmp_dh() have been | |
b7140b06 | 1956 | deprecated. |
1b2a55ff MC |
1957 | |
1958 | *Matt Caswell* | |
1959 | ||
ec2bfb7d | 1960 | * The `-crypt` option to the `passwd` command line tool has been removed. |
c87a7f31 P |
1961 | |
1962 | *Paul Dale* | |
1963 | ||
ec2bfb7d | 1964 | * The -C option to the `x509`, `dhparam`, `dsaparam`, and `ecparam` commands |
a18cf8fc | 1965 | were removed. |
1696b890 RS |
1966 | |
1967 | *Rich Salz* | |
1968 | ||
8ea761bf | 1969 | * Add support for AES Key Wrap inverse ciphers to the EVP layer. |
8ea761bf SL |
1970 | |
1971 | *Shane Lontis* | |
1972 | ||
0a737e16 | 1973 | * Deprecated EVP_PKEY_set1_tls_encodedpoint() and |
b7140b06 | 1974 | EVP_PKEY_get1_tls_encodedpoint(). |
0a737e16 MC |
1975 | |
1976 | *Matt Caswell* | |
1977 | ||
372e72b1 | 1978 | * The security callback, which can be customised by application code, supports |
b7140b06 SL |
1979 | the security operation SSL_SECOP_TMP_DH. One location of the "other" parameter |
1980 | was incorrectly passing a DH object. It now passed an EVP_PKEY in all cases. | |
372e72b1 MC |
1981 | |
1982 | *Matt Caswell* | |
1983 | ||
db554ae1 JM |
1984 | * Add PKCS7_get_octet_string() and PKCS7_type_is_other() to the public |
1985 | interface. Their functionality remains unchanged. | |
1986 | ||
1987 | *Jordan Montgomery* | |
1988 | ||
f4bd5105 P |
1989 | * Added new option for 'openssl list', '-providers', which will display the |
1990 | list of loaded providers, their names, version and status. It optionally | |
1991 | displays their gettable parameters. | |
1992 | ||
1993 | *Paul Dale* | |
1994 | ||
b7140b06 | 1995 | * Removed EVP_PKEY_set_alias_type(). |
14711fff RL |
1996 | |
1997 | *Richard Levitte* | |
1998 | ||
ec2bfb7d DDO |
1999 | * Deprecated `EVP_PKEY_CTX_set_rsa_keygen_pubexp()` and introduced |
2000 | `EVP_PKEY_CTX_set1_rsa_keygen_pubexp()`, which is now preferred. | |
3786d748 | 2001 | |
2002 | *Jeremy Walch* | |
2003 | ||
31605414 MC |
2004 | * Changed all "STACK" functions to be macros instead of inline functions. Macro |
2005 | parameters are still checked for type safety at compile time via helper | |
2006 | inline functions. | |
2007 | ||
2008 | *Matt Caswell* | |
2009 | ||
7d615e21 P |
2010 | * Remove the RAND_DRBG API |
2011 | ||
7d615e21 P |
2012 | *Paul Dale and Matthias St. Pierre* |
2013 | ||
ec2bfb7d | 2014 | * Allow `SSL_set1_host()` and `SSL_add1_host()` to take IP literal addresses |
37d898df DW |
2015 | as well as actual hostnames. |
2016 | ||
2017 | *David Woodhouse* | |
2018 | ||
77174598 VD |
2019 | * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently |
2020 | ignore TLS protocol version bounds when configuring DTLS-based contexts, and | |
2021 | conversely, silently ignore DTLS protocol version bounds when configuring | |
2022 | TLS-based contexts. The commands can be repeated to set bounds of both | |
2023 | types. The same applies with the corresponding "min_protocol" and | |
2024 | "max_protocol" command-line switches, in case some application uses both TLS | |
2025 | and DTLS. | |
2026 | ||
2027 | SSL_CTX instances that are created for a fixed protocol version (e.g. | |
ec2bfb7d | 2028 | `TLSv1_server_method()`) also silently ignore version bounds. Previously |
77174598 VD |
2029 | attempts to apply bounds to these protocol versions would result in an |
2030 | error. Now only the "version-flexible" SSL_CTX instances are subject to | |
2031 | limits in configuration files in command-line options. | |
2032 | ||
2033 | *Viktor Dukhovni* | |
2034 | ||
8dab4de5 RL |
2035 | * Deprecated the `ENGINE` API. Engines should be replaced with providers |
2036 | going forward. | |
2037 | ||
2038 | *Paul Dale* | |
2039 | ||
2040 | * Reworked the recorded ERR codes to make better space for system errors. | |
2041 | To distinguish them, the macro `ERR_SYSTEM_ERROR()` indicates if the | |
2042 | given code is a system error (true) or an OpenSSL error (false). | |
2043 | ||
2044 | *Richard Levitte* | |
2045 | ||
2046 | * Reworked the test perl framework to better allow parallel testing. | |
2047 | ||
2048 | *Nicola Tuveri and David von Oheimb* | |
2049 | ||
7cc355c2 SL |
2050 | * Added ciphertext stealing algorithms AES-128-CBC-CTS, AES-192-CBC-CTS and |
2051 | AES-256-CBC-CTS to the providers. CS1, CS2 and CS3 variants are supported. | |
2052 | ||
2053 | *Shane Lontis* | |
2054 | ||
16b0e0fc RL |
2055 | * 'Configure' has been changed to figure out the configuration target if |
2056 | none is given on the command line. Consequently, the 'config' script is | |
2057 | now only a mere wrapper. All documentation is changed to only mention | |
2058 | 'Configure'. | |
2059 | ||
2060 | *Rich Salz and Richard Levitte* | |
2061 | ||
b4250010 DMSP |
2062 | * Added a library context `OSSL_LIB_CTX` that applications as well as |
2063 | other libraries can use to form a separate context within which | |
2064 | libcrypto operations are performed. | |
3bd65f9b | 2065 | |
3bd65f9b RL |
2066 | *Richard Levitte* |
2067 | ||
95a444c9 TM |
2068 | * Added various `_ex` functions to the OpenSSL API that support using |
2069 | a non-default `OSSL_LIB_CTX`. | |
2070 | ||
2071 | *OpenSSL team* | |
2072 | ||
11d3235e TM |
2073 | * Handshake now fails if Extended Master Secret extension is dropped |
2074 | on renegotiation. | |
2075 | ||
66194839 | 2076 | *Tomáš Mráz* |
11d3235e | 2077 | |
b7140b06 | 2078 | * Dropped interactive mode from the `openssl` program. |
eca47139 RL |
2079 | |
2080 | *Richard Levitte* | |
2081 | ||
b7140b06 | 2082 | * Deprecated `EVP_PKEY_cmp()` and `EVP_PKEY_cmp_parameters()`. |
987e3a0e | 2083 | |
c85c5e1a | 2084 | *David von Oheimb and Shane Lontis* |
987e3a0e | 2085 | |
b7140b06 | 2086 | * Deprecated `EC_METHOD_get_field_type()`. |
23ccae80 BB |
2087 | |
2088 | *Billy Bob Brumley* | |
2089 | ||
2090 | * Deprecated EC_GFp_simple_method(), EC_GFp_mont_method(), | |
2091 | EC_GF2m_simple_method(), EC_GFp_nist_method(), EC_GFp_nistp224_method() | |
2092 | EC_GFp_nistp256_method(), and EC_GFp_nistp521_method(). | |
23ccae80 BB |
2093 | |
2094 | *Billy Bob Brumley* | |
2095 | ||
2096 | * Deprecated EC_GROUP_new(), EC_GROUP_method_of(), and EC_POINT_method_of(). | |
23ccae80 BB |
2097 | |
2098 | *Billy Bob Brumley* | |
2099 | ||
9e3c510b F |
2100 | * Add CAdES-BES signature verification support, mostly derived |
2101 | from ESSCertIDv2 TS (RFC 5816) contribution by Marek Klein. | |
2102 | ||
2103 | *Filipe Raimundo da Silva* | |
2104 | ||
2105 | * Add CAdES-BES signature scheme and attributes support (RFC 5126) to CMS API. | |
2106 | ||
2107 | *Antonio Iacono* | |
2108 | ||
34347512 | 2109 | * Added the AuthEnvelopedData content type structure (RFC 5083) with AES-GCM |
b7140b06 | 2110 | parameter (RFC 5084) for the Cryptographic Message Syntax (CMS). |
34347512 JZ |
2111 | |
2112 | *Jakub Zelenka* | |
2113 | ||
b7140b06 | 2114 | * Deprecated EC_POINT_make_affine() and EC_POINTs_make_affine(). |
6b4eb933 | 2115 | |
c2f2db9b BB |
2116 | *Billy Bob Brumley* |
2117 | ||
2118 | * Deprecated EC_GROUP_precompute_mult(), EC_GROUP_have_precompute_mult(), and | |
b7140b06 | 2119 | EC_KEY_precompute_mult(). |
c2f2db9b BB |
2120 | |
2121 | *Billy Bob Brumley* | |
6b4eb933 | 2122 | |
b7140b06 | 2123 | * Deprecated EC_POINTs_mul(). |
4fcd15c1 BB |
2124 | |
2125 | *Billy Bob Brumley* | |
2126 | ||
b7140b06 | 2127 | * Removed FIPS_mode() and FIPS_mode_set(). |
31b069ec SL |
2128 | |
2129 | *Shane Lontis* | |
2130 | ||
b7140b06 | 2131 | * The SSL option SSL_OP_IGNORE_UNEXPECTED_EOF is introduced. |
09b90e0e DB |
2132 | |
2133 | *Dmitry Belyavskiy* | |
2134 | ||
07caec83 | 2135 | * Deprecated EC_POINT_set_Jprojective_coordinates_GFp() and |
b7140b06 | 2136 | EC_POINT_get_Jprojective_coordinates_GFp(). |
07caec83 BB |
2137 | |
2138 | *Billy Bob Brumley* | |
2139 | ||
be19d3ca P |
2140 | * Added OSSL_PARAM_BLD to the public interface. This allows OSSL_PARAM |
2141 | arrays to be more easily constructed via a series of utility functions. | |
2142 | Create a parameter builder using OSSL_PARAM_BLD_new(), add parameters using | |
2143 | the various push functions and finally convert to a passable OSSL_PARAM | |
2144 | array using OSSL_PARAM_BLD_to_param(). | |
2145 | ||
ccb8f0c8 | 2146 | *Paul Dale* |
be19d3ca | 2147 | |
aba03ae5 | 2148 | * The security strength of SHA1 and MD5 based signatures in TLS has been |
b7140b06 | 2149 | reduced. |
aba03ae5 KR |
2150 | |
2151 | *Kurt Roeckx* | |
2152 | ||
8243d8d1 RL |
2153 | * Added EVP_PKEY_set_type_by_keymgmt(), to initialise an EVP_PKEY to |
2154 | contain a provider side internal key. | |
2155 | ||
2156 | *Richard Levitte* | |
2157 | ||
ccb8f0c8 | 2158 | * ASN1_verify(), ASN1_digest() and ASN1_sign() have been deprecated. |
12d99aac RL |
2159 | |
2160 | *Richard Levitte* | |
c50604eb | 2161 | |
036cbb6b | 2162 | * Project text documents not yet having a proper file name extension |
1dc1ea18 DDO |
2163 | (`HACKING`, `LICENSE`, `NOTES*`, `README*`, `VERSION`) have been renamed to |
2164 | `*.md` as far as reasonable, else `*.txt`, for better use with file managers. | |
036cbb6b DDO |
2165 | |
2166 | *David von Oheimb* | |
2167 | ||
1dc1ea18 | 2168 | * The main project documents (README, NEWS, CHANGES, INSTALL, SUPPORT) |
c50604eb DMSP |
2169 | have been converted to Markdown with the goal to produce documents |
2170 | which not only look pretty when viewed online in the browser, but | |
2171 | remain well readable inside a plain text editor. | |
2172 | ||
2173 | To achieve this goal, a 'minimalistic' Markdown style has been applied | |
2174 | which avoids formatting elements that interfere too much with the | |
2175 | reading flow in the text file. For example, it | |
2176 | ||
2177 | * avoids [ATX headings][] and uses [setext headings][] instead | |
2178 | (which works for `<h1>` and `<h2>` headings only). | |
2179 | * avoids [inline links][] and uses [reference links][] instead. | |
2180 | * avoids [fenced code blocks][] and uses [indented code blocks][] instead. | |
2181 | ||
2182 | [ATX headings]: https://github.github.com/gfm/#atx-headings | |
2183 | [setext headings]: https://github.github.com/gfm/#setext-headings | |
2184 | [inline links]: https://github.github.com/gfm/#inline-link | |
2185 | [reference links]: https://github.github.com/gfm/#reference-link | |
2186 | [fenced code blocks]: https://github.github.com/gfm/#fenced-code-blocks | |
2187 | [indented code blocks]: https://github.github.com/gfm/#indented-code-blocks | |
2188 | ||
2189 | *Matthias St. Pierre* | |
2190 | ||
44652c16 DMSP |
2191 | * The test suite is changed to preserve results of each test recipe. |
2192 | A new directory test-runs/ with subdirectories named like the | |
2193 | test recipes are created in the build tree for this purpose. | |
2194 | ||
2195 | *Richard Levitte* | |
2196 | ||
e7774c28 | 2197 | * Added an implementation of CMP and CRMF (RFC 4210, RFC 4211 RFC 6712). |
ec2bfb7d | 2198 | This adds `crypto/cmp/`, `crpyto/crmf/`, `apps/cmp.c`, and `test/cmp_*`. |
8d9a4d83 | 2199 | See L<openssl-cmp(1)> and L<OSSL_CMP_exec_IR_ses(3)> as starting points. |
e7774c28 | 2200 | |
8d9a4d83 | 2201 | *David von Oheimb, Martin Peylo* |
e7774c28 | 2202 | |
ec2bfb7d | 2203 | * Generalized the HTTP client code from `crypto/ocsp/` into `crpyto/http/`. |
8f965908 DDO |
2204 | It supports arbitrary request and response content types, GET redirection, |
2205 | TLS, connections via HTTP(S) proxies, connections and exchange via | |
2206 | user-defined BIOs (allowing implicit connections), persistent connections, | |
2207 | and timeout checks. See L<OSSL_HTTP_transfer(3)> etc. for details. | |
2208 | The legacy OCSP-focused (and only partly documented) API | |
2209 | is retained for backward compatibility, while most of it is deprecated. | |
e7774c28 DDO |
2210 | |
2211 | *David von Oheimb* | |
2212 | ||
16c6534b DDO |
2213 | * Added `util/check-format.pl`, a tool for checking adherence to the |
2214 | OpenSSL coding style <https://www.openssl.org/policies/codingstyle.html>. | |
2215 | The checks performed are incomplete and yield some false positives. | |
2216 | Still the tool should be useful for detecting most typical glitches. | |
2217 | ||
2218 | *David von Oheimb* | |
2219 | ||
ec2bfb7d | 2220 | * `BIO_do_connect()` and `BIO_do_handshake()` have been extended: |
59131529 | 2221 | If domain name resolution yields multiple IP addresses all of them are tried |
ec2bfb7d | 2222 | after `connect()` failures. |
59131529 DDO |
2223 | |
2224 | *David von Oheimb* | |
2225 | ||
d7f3a2cc | 2226 | * All of the low-level RSA functions have been deprecated. |
b47e7bbc | 2227 | |
44652c16 DMSP |
2228 | *Paul Dale* |
2229 | ||
2230 | * X509 certificates signed using SHA1 are no longer allowed at security | |
2231 | level 1 and above. | |
44652c16 DMSP |
2232 | |
2233 | *Kurt Roeckx* | |
2234 | ||
2235 | * The command line utilities dhparam, dsa, gendsa and dsaparam have been | |
b304f856 P |
2236 | modified to use PKEY APIs. These commands are now in maintenance mode |
2237 | and no new features will be added to them. | |
2238 | ||
2239 | *Paul Dale* | |
2240 | ||
2241 | * The command line utility rsautl has been deprecated. | |
b304f856 P |
2242 | |
2243 | *Paul Dale* | |
2244 | ||
2245 | * The command line utilities genrsa and rsa have been modified to use PKEY | |
10203a34 KR |
2246 | APIs. They now write PKCS#8 keys by default. These commands are now in |
2247 | maintenance mode and no new features will be added to them. | |
44652c16 DMSP |
2248 | |
2249 | *Paul Dale* | |
2250 | ||
d7f3a2cc | 2251 | * All of the low-level DH functions have been deprecated. |
59d7ad07 MC |
2252 | |
2253 | *Paul Dale and Matt Caswell* | |
44652c16 | 2254 | |
d7f3a2cc | 2255 | * All of the low-level DSA functions have been deprecated. |
8e53d94d | 2256 | |
44652c16 DMSP |
2257 | *Paul Dale* |
2258 | ||
2259 | * Reworked the treatment of EC EVP_PKEYs with the SM2 curve to | |
b7140b06 | 2260 | automatically become EVP_PKEY_SM2 rather than EVP_PKEY_EC. |
44652c16 DMSP |
2261 | |
2262 | *Richard Levitte* | |
2263 | ||
d7f3a2cc | 2264 | * Deprecated low-level ECDH and ECDSA functions. |
44652c16 DMSP |
2265 | |
2266 | *Paul Dale* | |
2267 | ||
b7140b06 | 2268 | * Deprecated EVP_PKEY_decrypt_old() and EVP_PKEY_encrypt_old(). |
44652c16 DMSP |
2269 | |
2270 | *Richard Levitte* | |
2271 | ||
ed576acd TM |
2272 | * Enhanced the documentation of EVP_PKEY_get_size(), EVP_PKEY_get_bits() |
2273 | and EVP_PKEY_get_security_bits(). Especially EVP_PKEY_get_size() needed | |
44652c16 DMSP |
2274 | a new formulation to include all the things it can be used for, |
2275 | as well as words of caution. | |
2276 | ||
2277 | *Richard Levitte* | |
2278 | ||
2279 | * The SSL_CTX_set_tlsext_ticket_key_cb(3) function has been deprecated. | |
44652c16 DMSP |
2280 | |
2281 | *Paul Dale* | |
2282 | ||
d7f3a2cc | 2283 | * All of the low-level HMAC functions have been deprecated. |
44652c16 | 2284 | |
0a8a6afd | 2285 | *Paul Dale and David von Oheimb* |
44652c16 DMSP |
2286 | |
2287 | * Over two thousand fixes were made to the documentation, including: | |
2288 | - Common options (such as -rand/-writerand, TLS version control, etc) | |
2289 | were refactored and point to newly-enhanced descriptions in openssl.pod. | |
2290 | - Added style conformance for all options (with help from Richard Levitte), | |
2291 | documented all reported missing options, added a CI build to check | |
2292 | that all options are documented and that no unimplemented options | |
2293 | are documented. | |
2294 | - Documented some internals, such as all use of environment variables. | |
2295 | - Addressed all internal broken L<> references. | |
2296 | ||
2297 | *Rich Salz* | |
2298 | ||
d7f3a2cc | 2299 | * All of the low-level CMAC functions have been deprecated. |
44652c16 DMSP |
2300 | |
2301 | *Paul Dale* | |
2302 | ||
1dc8eb5b P |
2303 | * The low-level MD2, MD4, MD5, MDC2, RIPEMD160 and Whirlpool digest |
2304 | functions have been deprecated. | |
44652c16 | 2305 | |
4d49b685 | 2306 | *Paul Dale and David von Oheimb* |
44652c16 | 2307 | |
257e9d03 | 2308 | * Corrected the documentation of the return values from the `EVP_DigestSign*` |
44652c16 DMSP |
2309 | set of functions. The documentation mentioned negative values for some |
2310 | errors, but this was never the case, so the mention of negative values | |
2311 | was removed. | |
2312 | ||
2313 | Code that followed the documentation and thereby check with something | |
2314 | like `EVP_DigestSignInit(...) <= 0` will continue to work undisturbed. | |
2315 | ||
2316 | *Richard Levitte* | |
2317 | ||
d7f3a2cc | 2318 | * All of the low-level cipher functions have been deprecated. |
44652c16 DMSP |
2319 | |
2320 | *Matt Caswell and Paul Dale* | |
5f8e6c50 DMSP |
2321 | |
2322 | * Removed include/openssl/opensslconf.h.in and replaced it with | |
2323 | include/openssl/configuration.h.in, which differs in not including | |
2324 | <openssl/macros.h>. A short header include/openssl/opensslconf.h | |
2325 | was added to include both. | |
44652c16 | 2326 | |
5f8e6c50 DMSP |
2327 | This allows internal hacks where one might need to modify the set |
2328 | of configured macros, for example this if deprecated symbols are | |
2329 | still supposed to be available internally: | |
44652c16 | 2330 | |
5f8e6c50 | 2331 | #include <openssl/configuration.h> |
44652c16 | 2332 | |
5f8e6c50 DMSP |
2333 | #undef OPENSSL_NO_DEPRECATED |
2334 | #define OPENSSL_SUPPRESS_DEPRECATED | |
44652c16 | 2335 | |
5f8e6c50 | 2336 | #include <openssl/macros.h> |
44652c16 | 2337 | |
5f8e6c50 DMSP |
2338 | This should not be used by applications that use the exported |
2339 | symbols, as that will lead to linking errors. | |
44652c16 | 2340 | |
5f8e6c50 DMSP |
2341 | *Richard Levitte* |
2342 | ||
44652c16 DMSP |
2343 | * Fixed an overflow bug in the x64_64 Montgomery squaring procedure |
2344 | used in exponentiation with 512-bit moduli. No EC algorithms are | |
2345 | affected. Analysis suggests that attacks against 2-prime RSA1024, | |
2346 | 3-prime RSA1536, and DSA1024 as a result of this defect would be very | |
2347 | difficult to perform and are not believed likely. Attacks against DH512 | |
2348 | are considered just feasible. However, for an attack the target would | |
a024ab98 | 2349 | have to reuse the DH512 private key, which is not recommended anyway. |
4d49b685 | 2350 | Also applications directly using the low-level API BN_mod_exp may be |
44652c16 | 2351 | affected if they use BN_FLG_CONSTTIME. |
d8dc8538 | 2352 | ([CVE-2019-1551]) |
44652c16 DMSP |
2353 | |
2354 | *Andy Polyakov* | |
5f8e6c50 | 2355 | |
44652c16 DMSP |
2356 | * Most memory-debug features have been deprecated, and the functionality |
2357 | replaced with no-ops. | |
5f8e6c50 | 2358 | |
44652c16 | 2359 | *Rich Salz* |
257e9d03 | 2360 | |
31605414 | 2361 | * Added documentation for the STACK API. |
257e9d03 | 2362 | |
852c2ed2 | 2363 | *Rich Salz* |
5f8e6c50 | 2364 | |
02649104 RL |
2365 | * Introduced a new method type and API, OSSL_ENCODER, to represent |
2366 | generic encoders. These do the same sort of job that PEM writers | |
2367 | and d2i functions do, but with support for methods supplied by | |
2368 | providers, and the possibility for providers to support other | |
2369 | formats as well. | |
2370 | ||
2371 | *Richard Levitte* | |
2372 | ||
2373 | * Introduced a new method type and API, OSSL_DECODER, to represent | |
2374 | generic decoders. These do the same sort of job that PEM readers | |
2375 | and i2d functions do, but with support for methods supplied by | |
2376 | providers, and the possibility for providers to support other | |
2377 | formats as well. | |
5f8e6c50 DMSP |
2378 | |
2379 | *Richard Levitte* | |
2380 | ||
2381 | * Added a .pragma directive to the syntax of configuration files, to | |
2382 | allow varying behavior in a supported and predictable manner. | |
2383 | Currently added pragma: | |
2384 | ||
2385 | .pragma dollarid:on | |
2386 | ||
2387 | This allows dollar signs to be a keyword character unless it's | |
2388 | followed by a opening brace or parenthesis. This is useful for | |
2389 | platforms where dollar signs are commonly used in names, such as | |
2390 | volume names and system directory names on VMS. | |
2391 | ||
2392 | *Richard Levitte* | |
2393 | ||
b7140b06 | 2394 | * Added functionality to create an EVP_PKEY from user data. |
5f8e6c50 DMSP |
2395 | |
2396 | *Richard Levitte* | |
536454e5 | 2397 | |
5f8e6c50 DMSP |
2398 | * Change the interpretation of the '--api' configuration option to |
2399 | mean that this is a desired API compatibility level with no | |
2400 | further meaning. The previous interpretation, that this would | |
2401 | also mean to remove all deprecated symbols up to and including | |
2402 | the given version, no requires that 'no-deprecated' is also used | |
2403 | in the configuration. | |
2404 | ||
2405 | When building applications, the desired API compatibility level | |
2406 | can be set with the OPENSSL_API_COMPAT macro like before. For | |
2407 | API compatibility version below 3.0, the old style numerical | |
2408 | value is valid as before, such as -DOPENSSL_API_COMPAT=0x10100000L. | |
2409 | For version 3.0 and on, the value is expected to be the decimal | |
2410 | value calculated from the major and minor version like this: | |
38c65481 | 2411 | |
5f8e6c50 | 2412 | MAJOR * 10000 + MINOR * 100 |
38c65481 | 2413 | |
5f8e6c50 | 2414 | Examples: |
ea8c77a5 | 2415 | |
5f8e6c50 DMSP |
2416 | -DOPENSSL_API_COMPAT=30000 For 3.0 |
2417 | -DOPENSSL_API_COMPAT=30200 For 3.2 | |
2418 | ||
2419 | To hide declarations that are deprecated up to and including the | |
2420 | given API compatibility level, -DOPENSSL_NO_DEPRECATED must be | |
2421 | given when building the application as well. | |
390c5795 | 2422 | |
5f8e6c50 | 2423 | *Richard Levitte* |
e5641d7f | 2424 | |
5f8e6c50 DMSP |
2425 | * Added the X509_LOOKUP_METHOD called X509_LOOKUP_store, to allow |
2426 | access to certificate and CRL stores via URIs and OSSL_STORE | |
2427 | loaders. | |
e5641d7f | 2428 | |
5f8e6c50 | 2429 | This adds the following functions: |
3ddc06f0 | 2430 | |
5f8e6c50 DMSP |
2431 | - X509_LOOKUP_store() |
2432 | - X509_STORE_load_file() | |
2433 | - X509_STORE_load_path() | |
2434 | - X509_STORE_load_store() | |
2435 | - SSL_add_store_cert_subjects_to_stack() | |
2436 | - SSL_CTX_set_default_verify_store() | |
2437 | - SSL_CTX_load_verify_file() | |
2438 | - SSL_CTX_load_verify_dir() | |
2439 | - SSL_CTX_load_verify_store() | |
e66cb363 | 2440 | |
5f8e6c50 | 2441 | *Richard Levitte* |
732d31be | 2442 | |
5f8e6c50 DMSP |
2443 | * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY. |
2444 | The presence of this system service is determined at run-time. | |
223c59ea | 2445 | |
5f8e6c50 | 2446 | *Richard Levitte* |
173350bc | 2447 | |
5f8e6c50 DMSP |
2448 | * Added functionality to create an EVP_PKEY context based on data |
2449 | for methods from providers. This takes an algorithm name and a | |
2450 | property query string and simply stores them, with the intent | |
2451 | that any operation that uses this context will use those strings | |
2452 | to fetch the needed methods implicitly, thereby making the port | |
2453 | of application written for pre-3.0 OpenSSL easier. | |
acf20c7d | 2454 | |
5f8e6c50 | 2455 | *Richard Levitte* |
3d63b396 | 2456 | |
5f8e6c50 DMSP |
2457 | * The undocumented function NCONF_WIN32() has been deprecated; for |
2458 | conversion details see the HISTORY section of doc/man5/config.pod | |
c2bf7208 | 2459 | |
5f8e6c50 | 2460 | *Rich Salz* |
ba64ae6c | 2461 | |
5f8e6c50 DMSP |
2462 | * Introduced the new functions EVP_DigestSignInit_ex() and |
2463 | EVP_DigestVerifyInit_ex(). The macros EVP_DigestSignUpdate() and | |
2464 | EVP_DigestVerifyUpdate() have been converted to functions. See the man | |
2465 | pages for further details. | |
0e0c6821 | 2466 | |
5f8e6c50 | 2467 | *Matt Caswell* |
e6f418bc | 2468 | |
5f8e6c50 DMSP |
2469 | * Over two thousand fixes were made to the documentation, including: |
2470 | adding missing command flags, better style conformance, documentation | |
2471 | of internals, etc. | |
3d63b396 | 2472 | |
5f8e6c50 | 2473 | *Rich Salz, Richard Levitte* |
3d63b396 | 2474 | |
5f8e6c50 DMSP |
2475 | * s390x assembly pack: add hardware-support for P-256, P-384, P-521, |
2476 | X25519, X448, Ed25519 and Ed448. | |
a25f33d2 | 2477 | |
5f8e6c50 | 2478 | *Patrick Steuer* |
17716680 | 2479 | |
5f8e6c50 DMSP |
2480 | * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just |
2481 | the first value. | |
0e4bc563 | 2482 | |
5f8e6c50 | 2483 | *Jon Spillett* |
e30dd20c | 2484 | |
ec2bfb7d DDO |
2485 | * Deprecated the public definition of `ERR_STATE` as well as the function |
2486 | `ERR_get_state()`. This is done in preparation of making `ERR_STATE` an | |
5f8e6c50 | 2487 | opaque type. |
c05353c5 | 2488 | |
5f8e6c50 | 2489 | *Richard Levitte* |
d741ccad | 2490 | |
5f8e6c50 DMSP |
2491 | * Added ERR functionality to give callers access to the stored function |
2492 | names that have replaced the older function code based functions. | |
aaf35f11 | 2493 | |
af2f14ac RL |
2494 | New functions are ERR_peek_error_func(), ERR_peek_last_error_func(), |
2495 | ERR_peek_error_data(), ERR_peek_last_error_data(), ERR_get_error_all(), | |
2496 | ERR_peek_error_all() and ERR_peek_last_error_all(). | |
2497 | ||
b7140b06 SL |
2498 | Deprecate ERR functions ERR_get_error_line(), ERR_get_error_line_data(), |
2499 | ERR_peek_error_line_data(), ERR_peek_last_error_line_data() and | |
2500 | ERR_func_error_string(). | |
aaf35f11 | 2501 | |
5f8e6c50 | 2502 | *Richard Levitte* |
3ff55e96 | 2503 | |
5f8e6c50 DMSP |
2504 | * Extended testing to be verbose for failing tests only. The make variables |
2505 | VERBOSE_FAILURE or VF can be used to enable this: | |
b6af2c7e | 2506 | |
5f8e6c50 DMSP |
2507 | $ make VF=1 test # Unix |
2508 | $ mms /macro=(VF=1) test ! OpenVMS | |
2509 | $ nmake VF=1 test # Windows | |
77202a85 | 2510 | |
5f8e6c50 | 2511 | *Richard Levitte* |
57f39cc8 | 2512 | |
b9fbacaa DDO |
2513 | * Added the `-copy_extensions` option to the `x509` command for use with |
2514 | `-req` and `-x509toreq`. When given with the `copy` or `copyall` argument, | |
2515 | all extensions in the request are copied to the certificate or vice versa. | |
2516 | ||
2517 | *David von Oheimb*, *Kirill Stefanenkov <kirill_stefanenkov@rambler.ru>* | |
2518 | ||
2519 | * Added the `-copy_extensions` option to the `req` command for use with | |
2520 | `-x509`. When given with the `copy` or `copyall` argument, | |
2521 | all extensions in the certification request are copied to the certificate. | |
b65c5ec8 DDO |
2522 | |
2523 | *David von Oheimb* | |
2524 | ||
b9fbacaa DDO |
2525 | * The `x509`, `req`, and `ca` commands now make sure that X.509v3 certificates |
2526 | they generate are by default RFC 5280 compliant in the following sense: | |
2527 | There is a subjectKeyIdentifier extension with a hash value of the public key | |
2528 | and for not self-signed certs there is an authorityKeyIdentifier extension | |
2529 | with a keyIdentifier field or issuer information identifying the signing key. | |
ec2bfb7d | 2530 | This is done unless some configuration overrides the new default behavior, |
b9fbacaa | 2531 | such as `subjectKeyIdentifier = none` and `authorityKeyIdentifier = none`. |
ec2bfb7d DDO |
2532 | |
2533 | *David von Oheimb* | |
2534 | ||
2535 | * Added several checks to `X509_verify_cert()` according to requirements in | |
0e071fbc DO |
2536 | RFC 5280 in case `X509_V_FLAG_X509_STRICT` is set |
2537 | (which may be done by using the CLI option `-x509_strict`): | |
2538 | * The basicConstraints of CA certificates must be marked critical. | |
2539 | * CA certificates must explicitly include the keyUsage extension. | |
2540 | * If a pathlenConstraint is given the key usage keyCertSign must be allowed. | |
2541 | * The issuer name of any certificate must not be empty. | |
2542 | * The subject name of CA certs, certs with keyUsage crlSign, | |
2543 | and certs without subjectAlternativeName must not be empty. | |
2544 | * If a subjectAlternativeName extension is given it must not be empty. | |
2545 | * The signatureAlgorithm field and the cert signature must be consistent. | |
2546 | * Any given authorityKeyIdentifier and any given subjectKeyIdentifier | |
2547 | must not be marked critical. | |
2548 | * The authorityKeyIdentifier must be given for X.509v3 certs | |
2549 | unless they are self-signed. | |
2550 | * The subjectKeyIdentifier must be given for all X.509v3 CA certs. | |
2551 | ||
2552 | *David von Oheimb* | |
2553 | ||
ec2bfb7d | 2554 | * Certificate verification using `X509_verify_cert()` meanwhile rejects EC keys |
0e071fbc DO |
2555 | with explicit curve parameters (specifiedCurve) as required by RFC 5480. |
2556 | ||
66194839 | 2557 | *Tomáš Mráz* |
0e071fbc | 2558 | |
5f8e6c50 | 2559 | * For built-in EC curves, ensure an EC_GROUP built from the curve name is |
ece9304c | 2560 | used even when parsing explicit parameters, when loading a encoded key |
5f8e6c50 DMSP |
2561 | or calling `EC_GROUP_new_from_ecpkparameters()`/ |
2562 | `EC_GROUP_new_from_ecparameters()`. | |
2563 | This prevents bypass of security hardening and performance gains, | |
2564 | especially for curves with specialized EC_METHODs. | |
2565 | By default, if a key encoded with explicit parameters is loaded and later | |
ece9304c | 2566 | encoded, the output is still encoded with explicit parameters, even if |
5f8e6c50 | 2567 | internally a "named" EC_GROUP is used for computation. |
480af99e | 2568 | |
5f8e6c50 | 2569 | *Nicola Tuveri* |
480af99e | 2570 | |
5f8e6c50 DMSP |
2571 | * Compute ECC cofactors if not provided during EC_GROUP construction. Before |
2572 | this change, EC_GROUP_set_generator would accept order and/or cofactor as | |
2573 | NULL. After this change, only the cofactor parameter can be NULL. It also | |
2574 | does some minimal sanity checks on the passed order. | |
d8dc8538 | 2575 | ([CVE-2019-1547]) |
bab53405 | 2576 | |
5f8e6c50 | 2577 | *Billy Bob Brumley* |
31636a3e | 2578 | |
5f8e6c50 DMSP |
2579 | * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey. |
2580 | An attack is simple, if the first CMS_recipientInfo is valid but the | |
2581 | second CMS_recipientInfo is chosen ciphertext. If the second | |
2582 | recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct | |
2583 | encryption key will be replaced by garbage, and the message cannot be | |
2584 | decoded, but if the RSA decryption fails, the correct encryption key is | |
2585 | used and the recipient will not notice the attack. | |
2586 | As a work around for this potential attack the length of the decrypted | |
2587 | key must be equal to the cipher default key length, in case the | |
d7f3a2cc | 2588 | certificate is not given and all recipientInfo are tried out. |
5f8e6c50 DMSP |
2589 | The old behaviour can be re-enabled in the CMS code by setting the |
2590 | CMS_DEBUG_DECRYPT flag. | |
60aee6ce | 2591 | |
5f8e6c50 | 2592 | *Bernd Edlinger* |
31636a3e | 2593 | |
5f8e6c50 DMSP |
2594 | * Early start up entropy quality from the DEVRANDOM seed source has been |
2595 | improved for older Linux systems. The RAND subsystem will wait for | |
2596 | /dev/random to be producing output before seeding from /dev/urandom. | |
2597 | The seeded state is stored for future library initialisations using | |
2598 | a system global shared memory segment. The shared memory identifier | |
2599 | can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to | |
2600 | the desired value. The default identifier is 114. | |
31636a3e | 2601 | |
5f8e6c50 | 2602 | *Paul Dale* |
7a762197 | 2603 | |
5f8e6c50 DMSP |
2604 | * Revised BN_generate_prime_ex to not avoid factors 2..17863 in p-1 |
2605 | when primes for RSA keys are computed. | |
2606 | Since we previously always generated primes == 2 (mod 3) for RSA keys, | |
2607 | the 2-prime and 3-prime RSA modules were easy to distinguish, since | |
d7f3a2cc | 2608 | `N = p*q = 1 (mod 3)`, but `N = p*q*r = 2 (mod 3)`. Therefore, fingerprinting |
5f8e6c50 DMSP |
2609 | 2-prime vs. 3-prime RSA keys was possible by computing N mod 3. |
2610 | This avoids possible fingerprinting of newly generated RSA modules. | |
6caa4edd | 2611 | |
5f8e6c50 | 2612 | *Bernd Edlinger* |
28b6d502 | 2613 | |
5f8e6c50 DMSP |
2614 | * Correct the extended master secret constant on EBCDIC systems. Without this |
2615 | fix TLS connections between an EBCDIC system and a non-EBCDIC system that | |
2616 | negotiate EMS will fail. Unfortunately this also means that TLS connections | |
2617 | between EBCDIC systems with this fix, and EBCDIC systems without this | |
2618 | fix will fail if they negotiate EMS. | |
d5bbead4 | 2619 | |
5f8e6c50 | 2620 | *Matt Caswell* |
837f2fc7 | 2621 | |
5f8e6c50 DMSP |
2622 | * Changed the library initialisation so that the config file is now loaded |
2623 | by default. This was already the case for libssl. It now occurs for both | |
2624 | libcrypto and libssl. Use the OPENSSL_INIT_NO_LOAD_CONFIG option to | |
ec2bfb7d | 2625 | `OPENSSL_init_crypto()` to suppress automatic loading of a config file. |
6bf79e30 | 2626 | |
5f8e6c50 | 2627 | *Matt Caswell* |
480af99e | 2628 | |
ec2bfb7d DDO |
2629 | * Introduced new error raising macros, `ERR_raise()` and `ERR_raise_data()`, |
2630 | where the former acts as a replacement for `ERR_put_error()`, and the | |
2631 | latter replaces the combination `ERR_put_error()` + `ERR_add_error_data()`. | |
2632 | `ERR_raise_data()` adds more flexibility by taking a format string and | |
5f8e6c50 | 2633 | an arbitrary number of arguments following it, to be processed with |
ec2bfb7d | 2634 | `BIO_snprintf()`. |
e65bcbce | 2635 | |
5f8e6c50 | 2636 | *Richard Levitte* |
db99c525 | 2637 | |
ec2bfb7d | 2638 | * Introduced a new function, `OSSL_PROVIDER_available()`, which can be used |
5f8e6c50 DMSP |
2639 | to check if a named provider is loaded and available. When called, it |
2640 | will also activate all fallback providers if such are still present. | |
db99c525 | 2641 | |
5f8e6c50 | 2642 | *Richard Levitte* |
db99c525 | 2643 | |
5f8e6c50 | 2644 | * Enforce a minimum DH modulus size of 512 bits. |
f8d6be3f | 2645 | |
5f8e6c50 | 2646 | *Bernd Edlinger* |
f8d6be3f | 2647 | |
5f8e6c50 DMSP |
2648 | * Changed DH parameters to generate the order q subgroup instead of 2q. |
2649 | Previously generated DH parameters are still accepted by DH_check | |
2650 | but DH_generate_key works around that by clearing bit 0 of the | |
2651 | private key for those. This avoids leaking bit 0 of the private key. | |
f8d6be3f | 2652 | |
5f8e6c50 | 2653 | *Bernd Edlinger* |
f8d6be3f | 2654 | |
5f8e6c50 | 2655 | * Significantly reduce secure memory usage by the randomness pools. |
f8d6be3f | 2656 | |
5f8e6c50 | 2657 | *Paul Dale* |
f8d6be3f | 2658 | |
257e9d03 | 2659 | * `{CRYPTO,OPENSSL}_mem_debug_{push,pop}` are now no-ops and have been |
5f8e6c50 | 2660 | deprecated. |
1a489c9a | 2661 | |
5f8e6c50 | 2662 | *Rich Salz* |
8528128b | 2663 | |
5f8e6c50 DMSP |
2664 | * A new type, EVP_KEYEXCH, has been introduced to represent key exchange |
2665 | algorithms. An implementation of a key exchange algorithm can be obtained | |
2666 | by using the function EVP_KEYEXCH_fetch(). An EVP_KEYEXCH algorithm can be | |
2667 | used in a call to EVP_PKEY_derive_init_ex() which works in a similar way to | |
2668 | the older EVP_PKEY_derive_init() function. See the man pages for the new | |
2669 | functions for further details. | |
8228fd89 | 2670 | |
5f8e6c50 | 2671 | *Matt Caswell* |
adb92d56 | 2672 | |
5f8e6c50 | 2673 | * The EVP_PKEY_CTX_set_dh_pad() macro has now been converted to a function. |
6bf79e30 | 2674 | |
5f8e6c50 | 2675 | *Matt Caswell* |
adb92d56 | 2676 | |
5f8e6c50 DMSP |
2677 | * Removed the function names from error messages and deprecated the |
2678 | xxx_F_xxx define's. | |
6bf79e30 | 2679 | |
0f71b1eb P |
2680 | *Richard Levitte* |
2681 | ||
5f8e6c50 | 2682 | * Removed NextStep support and the macro OPENSSL_UNISTD |
db99c525 | 2683 | |
5f8e6c50 | 2684 | *Rich Salz* |
94fd382f | 2685 | |
5f8e6c50 DMSP |
2686 | * Removed DES_check_key. Also removed OPENSSL_IMPLEMENT_GLOBAL, |
2687 | OPENSSL_GLOBAL_REF, OPENSSL_DECLARE_GLOBAL. | |
2688 | Also removed "export var as function" capability; we do not export | |
2689 | variables, only functions. | |
e194fe8f | 2690 | |
5f8e6c50 | 2691 | *Rich Salz* |
40a70628 | 2692 | |
5f8e6c50 DMSP |
2693 | * RC5_32_set_key has been changed to return an int type, with 0 indicating |
2694 | an error and 1 indicating success. In previous versions of OpenSSL this | |
2695 | was a void type. If a key was set longer than the maximum possible this | |
2696 | would crash. | |
c2c2e7a4 | 2697 | |
5f8e6c50 | 2698 | *Matt Caswell* |
c2c2e7a4 | 2699 | |
5f8e6c50 | 2700 | * Support SM2 signing and verification schemes with X509 certificate. |
d18ef847 | 2701 | |
5f8e6c50 | 2702 | *Paul Yang* |
d357be38 | 2703 | |
ec2bfb7d | 2704 | * Use SHA256 as the default digest for TS query in the `ts` app. |
b615ad90 | 2705 | |
66194839 | 2706 | *Tomáš Mráz* |
0ebfcc8f | 2707 | |
5f8e6c50 | 2708 | * Change PBKDF2 to conform to SP800-132 instead of the older PKCS5 RFC2898. |
62bad771 | 2709 | |
5f8e6c50 | 2710 | *Shane Lontis* |
1ad2ecb6 | 2711 | |
5f8e6c50 DMSP |
2712 | * Default cipher lists/suites are now available via a function, the |
2713 | #defines are deprecated. | |
bd3576d2 | 2714 | |
5f8e6c50 | 2715 | *Todd Short* |
b64f8256 | 2716 | |
5f8e6c50 DMSP |
2717 | * Add target VC-WIN32-UWP, VC-WIN64A-UWP, VC-WIN32-ARM-UWP and |
2718 | VC-WIN64-ARM-UWP in Windows OneCore target for making building libraries | |
2719 | for Windows Store apps easier. Also, the "no-uplink" option has been added. | |
a9be3af5 | 2720 | |
5f8e6c50 | 2721 | *Kenji Mouri* |
47339f61 | 2722 | |
5f8e6c50 | 2723 | * Join the directories crypto/x509 and crypto/x509v3 |
b0b7b1c5 | 2724 | |
5f8e6c50 | 2725 | *Richard Levitte* |
6d311938 | 2726 | |
5f8e6c50 | 2727 | * Added command 'openssl kdf' that uses the EVP_KDF API. |
90b8bbb8 | 2728 | |
5f8e6c50 | 2729 | *Shane Lontis* |
22a4f969 | 2730 | |
5f8e6c50 | 2731 | * Added command 'openssl mac' that uses the EVP_MAC API. |
41b731f2 | 2732 | |
5f8e6c50 | 2733 | *Shane Lontis* |
e778802f | 2734 | |
5f8e6c50 DMSP |
2735 | * Added OPENSSL_info() to get diverse built-in OpenSSL data, such |
2736 | as default directories. Also added the command 'openssl info' | |
2737 | for scripting purposes. | |
1d48dd00 | 2738 | |
5f8e6c50 | 2739 | *Richard Levitte* |
28a98809 | 2740 | |
5f8e6c50 | 2741 | * The functions AES_ige_encrypt() and AES_bi_ige_encrypt() have been |
b7140b06 | 2742 | deprecated. |
8f7de4f0 | 2743 | |
5f8e6c50 | 2744 | *Matt Caswell* |
5fbe91d8 | 2745 | |
5f8e6c50 | 2746 | * Add prediction resistance to the DRBG reseeding process. |
9263e882 | 2747 | |
5f8e6c50 | 2748 | *Paul Dale* |
f73e07cf | 2749 | |
5f8e6c50 DMSP |
2750 | * Limit the number of blocks in a data unit for AES-XTS to 2^20 as |
2751 | mandated by IEEE Std 1619-2018. | |
f9a25931 | 2752 | |
5f8e6c50 | 2753 | *Paul Dale* |
2f0cd195 | 2754 | |
5f8e6c50 | 2755 | * Added newline escaping functionality to a filename when using openssl dgst. |
257e9d03 | 2756 | This output format is to replicate the output format found in the `*sum` |
5f8e6c50 | 2757 | checksum programs. This aims to preserve backward compatibility. |
268c2102 | 2758 | |
5f8e6c50 | 2759 | *Matt Eaton, Richard Levitte, and Paul Dale* |
fc8ee06b | 2760 | |
5f8e6c50 DMSP |
2761 | * Removed the heartbeat message in DTLS feature, as it has very |
2762 | little usage and doesn't seem to fulfill a valuable purpose. | |
2763 | The configuration option is now deprecated. | |
c7ac31e2 | 2764 | |
5f8e6c50 | 2765 | *Richard Levitte* |
9d892e28 | 2766 | |
5f8e6c50 DMSP |
2767 | * Changed the output of 'openssl {digestname} < file' to display the |
2768 | digest name in its output. | |
9d892e28 | 2769 | |
5f8e6c50 | 2770 | *Richard Levitte* |
ee13f9b1 | 2771 | |
5f8e6c50 | 2772 | * Added a new generic trace API which provides support for enabling |
b7140b06 | 2773 | instrumentation through trace output. |
cb0f35d7 | 2774 | |
5f8e6c50 | 2775 | *Richard Levitte & Matthias St. Pierre* |
cfcf6453 | 2776 | |
5f8e6c50 DMSP |
2777 | * Added build tests for C++. These are generated files that only do one |
2778 | thing, to include one public OpenSSL head file each. This tests that | |
2779 | the public header files can be usefully included in a C++ application. | |
cdbb8c2f | 2780 | |
5f8e6c50 DMSP |
2781 | This test isn't enabled by default. It can be enabled with the option |
2782 | 'enable-buildtest-c++'. | |
06d5b162 | 2783 | |
5f8e6c50 | 2784 | *Richard Levitte* |
c35f549e | 2785 | |
95a444c9 TM |
2786 | * Added KB KDF (EVP_KDF_KB) to EVP_KDF. |
2787 | ||
2788 | *Robbie Harwood* | |
2789 | ||
2790 | * Added SSH KDF (EVP_KDF_SSHKDF) and KRB5 KDF (EVP_KDF_KRB5KDF) to EVP_KDF. | |
2791 | ||
2792 | *Simo Sorce* | |
2793 | ||
2794 | * Added Single Step KDF (EVP_KDF_SS), X963 KDF, and X942 KDF to EVP_KDF. | |
ebc828ca | 2795 | |
5f8e6c50 | 2796 | *Shane Lontis* |
79e259e3 | 2797 | |
95a444c9 | 2798 | * Added KMAC to EVP_MAC. |
56ee3117 | 2799 | |
5f8e6c50 | 2800 | *Shane Lontis* |
6063b27b | 2801 | |
5f8e6c50 DMSP |
2802 | * Added property based algorithm implementation selection framework to |
2803 | the core. | |
6063b27b | 2804 | |
5f8e6c50 | 2805 | *Paul Dale* |
6063b27b | 2806 | |
5f8e6c50 DMSP |
2807 | * Added SCA hardening for modular field inversion in EC_GROUP through |
2808 | a new dedicated field_inv() pointer in EC_METHOD. | |
2809 | This also addresses a leakage affecting conversions from projective | |
2810 | to affine coordinates. | |
792a9002 | 2811 | |
5f8e6c50 | 2812 | *Billy Bob Brumley, Nicola Tuveri* |
792a9002 | 2813 | |
5f8e6c50 DMSP |
2814 | * Added EVP_KDF, an EVP layer KDF API, to simplify adding KDF and PRF |
2815 | implementations. This includes an EVP_PKEY to EVP_KDF bridge for | |
2816 | those algorithms that were already supported through the EVP_PKEY API | |
2817 | (scrypt, TLS1 PRF and HKDF). The low-level KDF functions for PBKDF2 | |
2818 | and scrypt are now wrappers that call EVP_KDF. | |
792a9002 | 2819 | |
5f8e6c50 | 2820 | *David Makepeace* |
ce72df1c | 2821 | |
5f8e6c50 | 2822 | * Build devcrypto engine as a dynamic engine. |
4098e89c | 2823 | |
5f8e6c50 | 2824 | *Eneas U de Queiroz* |
4098e89c | 2825 | |
5f8e6c50 | 2826 | * Add keyed BLAKE2 to EVP_MAC. |
03f8b042 | 2827 | |
5f8e6c50 | 2828 | *Antoine Salon* |
5dcdcd47 | 2829 | |
5f8e6c50 DMSP |
2830 | * Fix a bug in the computation of the endpoint-pair shared secret used |
2831 | by DTLS over SCTP. This breaks interoperability with older versions | |
2832 | of OpenSSL like OpenSSL 1.1.0 and OpenSSL 1.0.2. There is a runtime | |
2833 | switch SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG (off by default) enabling | |
2834 | interoperability with such broken implementations. However, enabling | |
2835 | this switch breaks interoperability with correct implementations. | |
ae82b46f | 2836 | |
5f8e6c50 DMSP |
2837 | * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a |
2838 | re-used X509_PUBKEY object if the second PUBKEY is malformed. | |
8d7ed6ff | 2839 | |
5f8e6c50 | 2840 | *Bernd Edlinger* |
8d7ed6ff | 2841 | |
5f8e6c50 | 2842 | * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0(). |
1b24cca9 | 2843 | |
5f8e6c50 | 2844 | *Richard Levitte* |
9ce5db45 | 2845 | |
18fdebf1 | 2846 | * Changed the license to the Apache License v2.0. |
7f111b8b | 2847 | |
5f8e6c50 | 2848 | *Richard Levitte* |
651d0aff | 2849 | |
5f8e6c50 | 2850 | * Switch to a new version scheme using three numbers MAJOR.MINOR.PATCH. |
13e91dd3 | 2851 | |
5f8e6c50 DMSP |
2852 | - Major releases (indicated by incrementing the MAJOR release number) |
2853 | may introduce incompatible API/ABI changes. | |
2854 | - Minor releases (indicated by incrementing the MINOR release number) | |
2855 | may introduce new features but retain API/ABI compatibility. | |
2856 | - Patch releases (indicated by incrementing the PATCH number) | |
2857 | are intended for bug fixes and other improvements of existing | |
2858 | features only (like improving performance or adding documentation) | |
2859 | and retain API/ABI compatibility. | |
13e91dd3 | 2860 | |
5f8e6c50 | 2861 | *Richard Levitte* |
13e91dd3 | 2862 | |
5f8e6c50 | 2863 | * Add support for RFC5297 SIV mode (siv128), including AES-SIV. |
13e91dd3 | 2864 | |
5f8e6c50 | 2865 | *Todd Short* |
651d0aff | 2866 | |
5f8e6c50 DMSP |
2867 | * Remove the 'dist' target and add a tarball building script. The |
2868 | 'dist' target has fallen out of use, and it shouldn't be | |
2869 | necessary to configure just to create a source distribution. | |
651d0aff | 2870 | |
5f8e6c50 | 2871 | *Richard Levitte* |
651d0aff | 2872 | |
5f8e6c50 DMSP |
2873 | * Recreate the OS390-Unix config target. It no longer relies on a |
2874 | special script like it did for OpenSSL pre-1.1.0. | |
651d0aff | 2875 | |
5f8e6c50 | 2876 | *Richard Levitte* |
651d0aff | 2877 | |
5f8e6c50 DMSP |
2878 | * Instead of having the source directories listed in Configure, add |
2879 | a 'build.info' keyword SUBDIRS to indicate what sub-directories to | |
2880 | look into. | |
651d0aff | 2881 | |
5f8e6c50 | 2882 | *Richard Levitte* |
7f111b8b | 2883 | |
5f8e6c50 | 2884 | * Add GMAC to EVP_MAC. |
1b24cca9 | 2885 | |
5f8e6c50 | 2886 | *Paul Dale* |
651d0aff | 2887 | |
5f8e6c50 | 2888 | * Ported the HMAC, CMAC and SipHash EVP_PKEY_METHODs to EVP_MAC. |
651d0aff | 2889 | |
5f8e6c50 | 2890 | *Richard Levitte* |
651d0aff | 2891 | |
5f8e6c50 DMSP |
2892 | * Added EVP_MAC, an EVP layer MAC API, to simplify adding MAC |
2893 | implementations. This includes a generic EVP_PKEY to EVP_MAC bridge, | |
2894 | to facilitate the continued use of MACs through raw private keys in | |
1dc1ea18 | 2895 | functionality such as `EVP_DigestSign*` and `EVP_DigestVerify*`. |
651d0aff | 2896 | |
5f8e6c50 | 2897 | *Richard Levitte* |
651d0aff | 2898 | |
b7140b06 | 2899 | * Deprecate ECDH_KDF_X9_62(). |
651d0aff | 2900 | |
5f8e6c50 | 2901 | *Antoine Salon* |
651d0aff | 2902 | |
5f8e6c50 DMSP |
2903 | * Added EVP_PKEY_ECDH_KDF_X9_63 and ecdh_KDF_X9_63() as replacements for |
2904 | the EVP_PKEY_ECDH_KDF_X9_62 KDF type and ECDH_KDF_X9_62(). The old names | |
2905 | are retained for backwards compatibility. | |
651d0aff | 2906 | |
5f8e6c50 | 2907 | *Antoine Salon* |
651d0aff | 2908 | |
5f8e6c50 DMSP |
2909 | * AES-XTS mode now enforces that its two keys are different to mitigate |
2910 | the attacked described in "Efficient Instantiations of Tweakable | |
2911 | Blockciphers and Refinements to Modes OCB and PMAC" by Phillip Rogaway. | |
2912 | Details of this attack can be obtained from: | |
257e9d03 | 2913 | <http://web.cs.ucdavis.edu/%7Erogaway/papers/offsets.pdf> |
651d0aff | 2914 | |
5f8e6c50 | 2915 | *Paul Dale* |
651d0aff | 2916 | |
5f8e6c50 DMSP |
2917 | * Rename the object files, i.e. give them other names than in previous |
2918 | versions. Their names now include the name of the final product, as | |
2919 | well as its type mnemonic (bin, lib, shlib). | |
651d0aff | 2920 | |
5f8e6c50 | 2921 | *Richard Levitte* |
651d0aff | 2922 | |
5f8e6c50 DMSP |
2923 | * Added new option for 'openssl list', '-objects', which will display the |
2924 | list of built in objects, i.e. OIDs with names. | |
651d0aff | 2925 | |
5f8e6c50 | 2926 | *Richard Levitte* |
651d0aff | 2927 | |
64713cb1 CN |
2928 | * Added the options `-crl_lastupdate` and `-crl_nextupdate` to `openssl ca`, |
2929 | allowing the `lastUpdate` and `nextUpdate` fields in the generated CRL to | |
2930 | be set explicitly. | |
2931 | ||
2932 | *Chris Novakovic* | |
2933 | ||
5f8e6c50 DMSP |
2934 | * Added support for Linux Kernel TLS data-path. The Linux Kernel data-path |
2935 | improves application performance by removing data copies and providing | |
2936 | applications with zero-copy system calls such as sendfile and splice. | |
651d0aff | 2937 | |
5f8e6c50 | 2938 | *Boris Pismenny* |
651d0aff | 2939 | |
b7140b06 | 2940 | * The SSL option SSL_OP_CLEANSE_PLAINTEXT is introduced. |
163b8016 ME |
2941 | |
2942 | *Martin Elshuber* | |
2943 | ||
fc0aae73 DDO |
2944 | * `PKCS12_parse` now maintains the order of the parsed certificates |
2945 | when outputting them via `*ca` (rather than reversing it). | |
2946 | ||
2947 | *David von Oheimb* | |
2948 | ||
b7140b06 | 2949 | * Deprecated pthread fork support methods. |
9750b4d3 RB |
2950 | |
2951 | *Randall S. Becker* | |
2952 | ||
fc5245a9 HK |
2953 | * Added support for FFDHE key exchange in TLS 1.3. |
2954 | ||
2955 | *Raja Ashok* | |
2956 | ||
8e7d941a RL |
2957 | * Added a new concept for OpenSSL plugability: providers. This |
2958 | functionality is designed to replace the ENGINE API and ENGINE | |
2959 | implementations, and to be much more dynamic, allowing provider | |
2960 | authors to introduce new algorithms among other things, as long as | |
2961 | there's an API that supports the algorithm type. | |
2962 | ||
2963 | With this concept comes a new core API for interaction between | |
2964 | libcrypto and provider implementations. Public libcrypto functions | |
2965 | that want to use providers do so through this core API. | |
2966 | ||
2967 | The main documentation for this core API is found in | |
2968 | doc/man7/provider.pod, doc/man7/provider-base.pod, and they in turn | |
2969 | refer to other manuals describing the API specific for supported | |
2970 | algorithm types (also called operations). | |
2971 | ||
2972 | *The OpenSSL team* | |
2973 | ||
44652c16 DMSP |
2974 | OpenSSL 1.1.1 |
2975 | ------------- | |
2976 | ||
522a32ef OP |
2977 | ### Changes between 1.1.1m and 1.1.1n [xx XXX xxxx] |
2978 | ||
e0d00d79 | 2979 | ### Changes between 1.1.1l and 1.1.1m [14 Dec 2021] |
0e4e4e27 RL |
2980 | |
2981 | * Avoid loading of a dynamic engine twice. | |
2982 | ||
2983 | *Bernd Edlinger* | |
2984 | ||
2985 | * Prioritise DANE TLSA issuer certs over peer certs | |
2986 | ||
2987 | *Viktor Dukhovni* | |
2988 | ||
2989 | * Fixed random API for MacOS prior to 10.12 | |
2990 | ||
2991 | These MacOS versions don't support the CommonCrypto APIs | |
2992 | ||
2993 | *Lenny Primak* | |
2994 | ||
796f4f70 MC |
2995 | ### Changes between 1.1.1k and 1.1.1l [24 Aug 2021] |
2996 | ||
2997 | * Fixed an SM2 Decryption Buffer Overflow. | |
2998 | ||
fdd43643 P |
2999 | In order to decrypt SM2 encrypted data an application is expected to |
3000 | call the API function EVP_PKEY_decrypt(). Typically an application will | |
3001 | call this function twice. The first time, on entry, the "out" parameter | |
3002 | can be NULL and, on exit, the "outlen" parameter is populated with the | |
3003 | buffer size required to hold the decrypted plaintext. The application | |
3004 | can then allocate a sufficiently sized buffer and call EVP_PKEY_decrypt() | |
3005 | again, but this time passing a non-NULL value for the "out" parameter. | |
796f4f70 MC |
3006 | |
3007 | A bug in the implementation of the SM2 decryption code means that the | |
fdd43643 P |
3008 | calculation of the buffer size required to hold the plaintext returned |
3009 | by the first call to EVP_PKEY_decrypt() can be smaller than the actual | |
3010 | size required by the second call. This can lead to a buffer overflow | |
3011 | when EVP_PKEY_decrypt() is called by the application a second time with | |
3012 | a buffer that is too small. | |
3013 | ||
3014 | A malicious attacker who is able present SM2 content for decryption to | |
3015 | an application could cause attacker chosen data to overflow the buffer | |
3016 | by up to a maximum of 62 bytes altering the contents of other data held | |
3017 | after the buffer, possibly changing application behaviour or causing | |
3018 | the application to crash. The location of the buffer is application | |
3019 | dependent but is typically heap allocated. | |
796f4f70 MC |
3020 | ([CVE-2021-3711]) |
3021 | ||
3022 | *Matt Caswell* | |
3023 | ||
fdd43643 P |
3024 | * Fixed various read buffer overruns processing ASN.1 strings |
3025 | ||
3026 | ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING | |
3027 | structure which contains a buffer holding the string data and a field | |
3028 | holding the buffer length. This contrasts with normal C strings which | |
d7f3a2cc | 3029 | are represented as a buffer for the string data which is terminated |
fdd43643 P |
3030 | with a NUL (0) byte. |
3031 | ||
3032 | Although not a strict requirement, ASN.1 strings that are parsed using | |
3033 | OpenSSL's own "d2i" functions (and other similar parsing functions) as | |
3034 | well as any string whose value has been set with the ASN1_STRING_set() | |
3035 | function will additionally NUL terminate the byte array in the | |
3036 | ASN1_STRING structure. | |
3037 | ||
3038 | However, it is possible for applications to directly construct valid | |
3039 | ASN1_STRING structures which do not NUL terminate the byte array by | |
3040 | directly setting the "data" and "length" fields in the ASN1_STRING | |
3041 | array. This can also happen by using the ASN1_STRING_set0() function. | |
3042 | ||
3043 | Numerous OpenSSL functions that print ASN.1 data have been found to | |
3044 | assume that the ASN1_STRING byte array will be NUL terminated, even | |
3045 | though this is not guaranteed for strings that have been directly | |
3046 | constructed. Where an application requests an ASN.1 structure to be | |
3047 | printed, and where that ASN.1 structure contains ASN1_STRINGs that have | |
3048 | been directly constructed by the application without NUL terminating | |
3049 | the "data" field, then a read buffer overrun can occur. | |
3050 | ||
3051 | The same thing can also occur during name constraints processing | |
3052 | of certificates (for example if a certificate has been directly | |
3053 | constructed by the application instead of loading it via the OpenSSL | |
3054 | parsing functions, and the certificate contains non NUL terminated | |
3055 | ASN1_STRING structures). It can also occur in the X509_get1_email(), | |
3056 | X509_REQ_get1_email() and X509_get1_ocsp() functions. | |
3057 | ||
3058 | If a malicious actor can cause an application to directly construct an | |
3059 | ASN1_STRING and then process it through one of the affected OpenSSL | |
3060 | functions then this issue could be hit. This might result in a crash | |
3061 | (causing a Denial of Service attack). It could also result in the | |
3062 | disclosure of private memory contents (such as private keys, or | |
3063 | sensitive plaintext). | |
3064 | ([CVE-2021-3712]) | |
796f4f70 MC |
3065 | |
3066 | *Matt Caswell* | |
3067 | ||
3068 | ### Changes between 1.1.1j and 1.1.1k [25 Mar 2021] | |
5b57aa24 | 3069 | |
468d9d55 MC |
3070 | * Fixed a problem with verifying a certificate chain when using the |
3071 | X509_V_FLAG_X509_STRICT flag. This flag enables additional security checks of | |
3072 | the certificates present in a certificate chain. It is not set by default. | |
3073 | ||
3074 | Starting from OpenSSL version 1.1.1h a check to disallow certificates in | |
3075 | the chain that have explicitly encoded elliptic curve parameters was added | |
3076 | as an additional strict check. | |
3077 | ||
3078 | An error in the implementation of this check meant that the result of a | |
3079 | previous check to confirm that certificates in the chain are valid CA | |
3080 | certificates was overwritten. This effectively bypasses the check | |
3081 | that non-CA certificates must not be able to issue other certificates. | |
3082 | ||
3083 | If a "purpose" has been configured then there is a subsequent opportunity | |
3084 | for checks that the certificate is a valid CA. All of the named "purpose" | |
3085 | values implemented in libcrypto perform this check. Therefore, where | |
3086 | a purpose is set the certificate chain will still be rejected even when the | |
3087 | strict flag has been used. A purpose is set by default in libssl client and | |
3088 | server certificate verification routines, but it can be overridden or | |
3089 | removed by an application. | |
3090 | ||
3091 | In order to be affected, an application must explicitly set the | |
3092 | X509_V_FLAG_X509_STRICT verification flag and either not set a purpose | |
3093 | for the certificate verification or, in the case of TLS client or server | |
3094 | applications, override the default purpose. | |
3095 | ([CVE-2021-3450]) | |
3096 | ||
3097 | *Tomáš Mráz* | |
3098 | ||
3099 | * Fixed an issue where an OpenSSL TLS server may crash if sent a maliciously | |
3100 | crafted renegotiation ClientHello message from a client. If a TLSv1.2 | |
3101 | renegotiation ClientHello omits the signature_algorithms extension (where it | |
3102 | was present in the initial ClientHello), but includes a | |
3103 | signature_algorithms_cert extension then a NULL pointer dereference will | |
3104 | result, leading to a crash and a denial of service attack. | |
3105 | ||
3106 | A server is only vulnerable if it has TLSv1.2 and renegotiation enabled | |
3107 | (which is the default configuration). OpenSSL TLS clients are not impacted by | |
3108 | this issue. | |
3109 | ([CVE-2021-3449]) | |
3110 | ||
3111 | *Peter Kästle and Samuel Sapalski* | |
3112 | ||
c913dbd7 MC |
3113 | ### Changes between 1.1.1i and 1.1.1j [16 Feb 2021] |
3114 | ||
3115 | * Fixed the X509_issuer_and_serial_hash() function. It attempts to | |
3116 | create a unique hash value based on the issuer and serial number data | |
d7f3a2cc | 3117 | contained within an X509 certificate. However, it was failing to correctly |
c913dbd7 MC |
3118 | handle any errors that may occur while parsing the issuer field (which might |
3119 | occur if the issuer field is maliciously constructed). This may subsequently | |
3120 | result in a NULL pointer deref and a crash leading to a potential denial of | |
3121 | service attack. | |
3122 | ([CVE-2021-23841]) | |
3123 | ||
3124 | *Matt Caswell* | |
3125 | ||
3126 | * Fixed the RSA_padding_check_SSLv23() function and the RSA_SSLV23_PADDING | |
3127 | padding mode to correctly check for rollback attacks. This is considered a | |
3128 | bug in OpenSSL 1.1.1 because it does not support SSLv2. In 1.0.2 this is | |
3129 | CVE-2021-23839. | |
3130 | ||
3131 | *Matt Caswell* | |
3132 | ||
3133 | Fixed the EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate | |
3134 | functions. Previously they could overflow the output length argument in some | |
d7f3a2cc | 3135 | cases where the input length is close to the maximum permissible length for |
c913dbd7 MC |
3136 | an integer on the platform. In such cases the return value from the function |
3137 | call would be 1 (indicating success), but the output length value would be | |
3138 | negative. This could cause applications to behave incorrectly or crash. | |
3139 | ([CVE-2021-23840]) | |
3140 | ||
3141 | *Matt Caswell* | |
3142 | ||
3143 | * Fixed SRP_Calc_client_key so that it runs in constant time. The previous | |
5b57aa24 MC |
3144 | implementation called BN_mod_exp without setting BN_FLG_CONSTTIME. This |
3145 | could be exploited in a side channel attack to recover the password. Since | |
3146 | the attack is local host only this is outside of the current OpenSSL | |
3147 | threat model and therefore no CVE is assigned. | |
3148 | ||
3149 | Thanks to Mohammed Sabt and Daniel De Almeida Braga for reporting this | |
3150 | issue. | |
3151 | ||
3152 | *Matt Caswell* | |
3153 | ||
3154 | ### Changes between 1.1.1h and 1.1.1i [8 Dec 2020] | |
6ffc3127 | 3155 | |
1e13198f MC |
3156 | * Fixed NULL pointer deref in the GENERAL_NAME_cmp function |
3157 | This function could crash if both GENERAL_NAMEs contain an EDIPARTYNAME. | |
3158 | If an attacker can control both items being compared then this could lead | |
3159 | to a possible denial of service attack. OpenSSL itself uses the | |
3160 | GENERAL_NAME_cmp function for two purposes: | |
3161 | 1) Comparing CRL distribution point names between an available CRL and a | |
3162 | CRL distribution point embedded in an X509 certificate | |
3163 | 2) When verifying that a timestamp response token signer matches the | |
3164 | timestamp authority name (exposed via the API functions | |
3165 | TS_RESP_verify_response and TS_RESP_verify_token) | |
3166 | ([CVE-2020-1971]) | |
3167 | ||
3168 | *Matt Caswell* | |
6ffc3127 DMSP |
3169 | |
3170 | ### Changes between 1.1.1g and 1.1.1h [22 Sep 2020] | |
3171 | ||
3172 | * Certificates with explicit curve parameters are now disallowed in | |
3173 | verification chains if the X509_V_FLAG_X509_STRICT flag is used. | |
3174 | ||
66194839 | 3175 | *Tomáš Mráz* |
6ffc3127 DMSP |
3176 | |
3177 | * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently | |
3178 | ignore TLS protocol version bounds when configuring DTLS-based contexts, and | |
3179 | conversely, silently ignore DTLS protocol version bounds when configuring | |
3180 | TLS-based contexts. The commands can be repeated to set bounds of both | |
3181 | types. The same applies with the corresponding "min_protocol" and | |
3182 | "max_protocol" command-line switches, in case some application uses both TLS | |
3183 | and DTLS. | |
3184 | ||
3185 | SSL_CTX instances that are created for a fixed protocol version (e.g. | |
3186 | TLSv1_server_method()) also silently ignore version bounds. Previously | |
3187 | attempts to apply bounds to these protocol versions would result in an | |
3188 | error. Now only the "version-flexible" SSL_CTX instances are subject to | |
3189 | limits in configuration files in command-line options. | |
3190 | ||
3191 | *Viktor Dukhovni* | |
3192 | ||
3193 | * Handshake now fails if Extended Master Secret extension is dropped | |
3194 | on renegotiation. | |
3195 | ||
66194839 | 3196 | *Tomáš Mráz* |
6ffc3127 DMSP |
3197 | |
3198 | * The Oracle Developer Studio compiler will start reporting deprecated APIs | |
3199 | ||
3200 | ### Changes between 1.1.1f and 1.1.1g [21 Apr 2020] | |
3201 | ||
3202 | * Fixed segmentation fault in SSL_check_chain() | |
3203 | Server or client applications that call the SSL_check_chain() function | |
3204 | during or after a TLS 1.3 handshake may crash due to a NULL pointer | |
3205 | dereference as a result of incorrect handling of the | |
3206 | "signature_algorithms_cert" TLS extension. The crash occurs if an invalid | |
3207 | or unrecognised signature algorithm is received from the peer. This could | |
3208 | be exploited by a malicious peer in a Denial of Service attack. | |
d8dc8538 | 3209 | ([CVE-2020-1967]) |
6ffc3127 DMSP |
3210 | |
3211 | *Benjamin Kaduk* | |
3212 | ||
3213 | * Added AES consttime code for no-asm configurations | |
3214 | an optional constant time support for AES was added | |
3215 | when building openssl for no-asm. | |
3216 | Enable with: ./config no-asm -DOPENSSL_AES_CONST_TIME | |
3217 | Disable with: ./config no-asm -DOPENSSL_NO_AES_CONST_TIME | |
3218 | At this time this feature is by default disabled. | |
3219 | It will be enabled by default in 3.0. | |
3220 | ||
3221 | *Bernd Edlinger* | |
3222 | ||
3223 | ### Changes between 1.1.1e and 1.1.1f [31 Mar 2020] | |
3224 | ||
3225 | * Revert the change of EOF detection while reading in libssl to avoid | |
3226 | regressions in applications depending on the current way of reporting | |
3227 | the EOF. As the existing method is not fully accurate the change to | |
3228 | reporting the EOF via SSL_ERROR_SSL is kept on the current development | |
3229 | branch and will be present in the 3.0 release. | |
3230 | ||
66194839 | 3231 | *Tomáš Mráz* |
6ffc3127 DMSP |
3232 | |
3233 | * Revised BN_generate_prime_ex to not avoid factors 3..17863 in p-1 | |
3234 | when primes for RSA keys are computed. | |
3235 | Since we previously always generated primes == 2 (mod 3) for RSA keys, | |
3236 | the 2-prime and 3-prime RSA modules were easy to distinguish, since | |
d7f3a2cc | 3237 | N = p*q = 1 (mod 3), but N = p*q*r = 2 (mod 3). Therefore, fingerprinting |
6ffc3127 DMSP |
3238 | 2-prime vs. 3-prime RSA keys was possible by computing N mod 3. |
3239 | This avoids possible fingerprinting of newly generated RSA modules. | |
3240 | ||
3241 | *Bernd Edlinger* | |
8658fedd | 3242 | |
257e9d03 | 3243 | ### Changes between 1.1.1d and 1.1.1e [17 Mar 2020] |
8658fedd DMSP |
3244 | |
3245 | * Properly detect EOF while reading in libssl. Previously if we hit an EOF | |
3246 | while reading in libssl then we would report an error back to the | |
3247 | application (SSL_ERROR_SYSCALL) but errno would be 0. We now add | |
3248 | an error to the stack (which means we instead return SSL_ERROR_SSL) and | |
3249 | therefore give a hint as to what went wrong. | |
3250 | ||
3251 | *Matt Caswell* | |
3252 | ||
3253 | * Check that ed25519 and ed448 are allowed by the security level. Previously | |
3254 | signature algorithms not using an MD were not being checked that they were | |
3255 | allowed by the security level. | |
3256 | ||
3257 | *Kurt Roeckx* | |
3258 | ||
3259 | * Fixed SSL_get_servername() behaviour. The behaviour of SSL_get_servername() | |
3260 | was not quite right. The behaviour was not consistent between resumption | |
3261 | and normal handshakes, and also not quite consistent with historical | |
3262 | behaviour. The behaviour in various scenarios has been clarified and | |
3263 | it has been updated to make it match historical behaviour as closely as | |
3264 | possible. | |
3265 | ||
3266 | *Matt Caswell* | |
44652c16 | 3267 | |
f33ca114 RL |
3268 | * *[VMS only]* The header files that the VMS compilers include automatically, |
3269 | `__DECC_INCLUDE_PROLOGUE.H` and `__DECC_INCLUDE_EPILOGUE.H`, use pragmas | |
3270 | that the C++ compiler doesn't understand. This is a shortcoming in the | |
3271 | compiler, but can be worked around with `__cplusplus` guards. | |
3272 | ||
3273 | C++ applications that use OpenSSL libraries must be compiled using the | |
3274 | qualifier `/NAMES=(AS_IS,SHORTENED)` to be able to use all the OpenSSL | |
3275 | functions. Otherwise, only functions with symbols of less than 31 | |
3276 | characters can be used, as the linker will not be able to successfully | |
3277 | resolve symbols with longer names. | |
3278 | ||
3279 | *Richard Levitte* | |
3280 | ||
44652c16 DMSP |
3281 | * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY. |
3282 | The presence of this system service is determined at run-time. | |
3283 | ||
3284 | *Richard Levitte* | |
3285 | ||
44652c16 DMSP |
3286 | * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just |
3287 | the first value. | |
3288 | ||
3289 | *Jon Spillett* | |
3290 | ||
257e9d03 | 3291 | ### Changes between 1.1.1c and 1.1.1d [10 Sep 2019] |
44652c16 DMSP |
3292 | |
3293 | * Fixed a fork protection issue. OpenSSL 1.1.1 introduced a rewritten random | |
3294 | number generator (RNG). This was intended to include protection in the | |
3295 | event of a fork() system call in order to ensure that the parent and child | |
d7f3a2cc | 3296 | processes did not share the same RNG state. However, this protection was not |
44652c16 DMSP |
3297 | being used in the default case. |
3298 | ||
3299 | A partial mitigation for this issue is that the output from a high | |
3300 | precision timer is mixed into the RNG state so the likelihood of a parent | |
3301 | and child process sharing state is significantly reduced. | |
3302 | ||
3303 | If an application already calls OPENSSL_init_crypto() explicitly using | |
3304 | OPENSSL_INIT_ATFORK then this problem does not occur at all. | |
d8dc8538 | 3305 | ([CVE-2019-1549]) |
44652c16 DMSP |
3306 | |
3307 | *Matthias St. Pierre* | |
3308 | ||
3309 | * For built-in EC curves, ensure an EC_GROUP built from the curve name is | |
ece9304c | 3310 | used even when parsing explicit parameters, when loading a encoded key |
44652c16 DMSP |
3311 | or calling `EC_GROUP_new_from_ecpkparameters()`/ |
3312 | `EC_GROUP_new_from_ecparameters()`. | |
3313 | This prevents bypass of security hardening and performance gains, | |
3314 | especially for curves with specialized EC_METHODs. | |
3315 | By default, if a key encoded with explicit parameters is loaded and later | |
ece9304c | 3316 | encoded, the output is still encoded with explicit parameters, even if |
44652c16 DMSP |
3317 | internally a "named" EC_GROUP is used for computation. |
3318 | ||
3319 | *Nicola Tuveri* | |
3320 | ||
3321 | * Compute ECC cofactors if not provided during EC_GROUP construction. Before | |
3322 | this change, EC_GROUP_set_generator would accept order and/or cofactor as | |
3323 | NULL. After this change, only the cofactor parameter can be NULL. It also | |
3324 | does some minimal sanity checks on the passed order. | |
d8dc8538 | 3325 | ([CVE-2019-1547]) |
44652c16 DMSP |
3326 | |
3327 | *Billy Bob Brumley* | |
3328 | ||
3329 | * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey. | |
3330 | An attack is simple, if the first CMS_recipientInfo is valid but the | |
3331 | second CMS_recipientInfo is chosen ciphertext. If the second | |
3332 | recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct | |
3333 | encryption key will be replaced by garbage, and the message cannot be | |
3334 | decoded, but if the RSA decryption fails, the correct encryption key is | |
3335 | used and the recipient will not notice the attack. | |
3336 | As a work around for this potential attack the length of the decrypted | |
3337 | key must be equal to the cipher default key length, in case the | |
d7f3a2cc | 3338 | certificate is not given and all recipientInfo are tried out. |
44652c16 DMSP |
3339 | The old behaviour can be re-enabled in the CMS code by setting the |
3340 | CMS_DEBUG_DECRYPT flag. | |
d8dc8538 | 3341 | ([CVE-2019-1563]) |
44652c16 DMSP |
3342 | |
3343 | *Bernd Edlinger* | |
3344 | ||
3345 | * Early start up entropy quality from the DEVRANDOM seed source has been | |
3346 | improved for older Linux systems. The RAND subsystem will wait for | |
3347 | /dev/random to be producing output before seeding from /dev/urandom. | |
3348 | The seeded state is stored for future library initialisations using | |
3349 | a system global shared memory segment. The shared memory identifier | |
3350 | can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to | |
3351 | the desired value. The default identifier is 114. | |
3352 | ||
3353 | *Paul Dale* | |
3354 | ||
3355 | * Correct the extended master secret constant on EBCDIC systems. Without this | |
3356 | fix TLS connections between an EBCDIC system and a non-EBCDIC system that | |
3357 | negotiate EMS will fail. Unfortunately this also means that TLS connections | |
3358 | between EBCDIC systems with this fix, and EBCDIC systems without this | |
3359 | fix will fail if they negotiate EMS. | |
3360 | ||
3361 | *Matt Caswell* | |
3362 | ||
3363 | * Use Windows installation paths in the mingw builds | |
3364 | ||
3365 | Mingw isn't a POSIX environment per se, which means that Windows | |
3366 | paths should be used for installation. | |
d8dc8538 | 3367 | ([CVE-2019-1552]) |
44652c16 DMSP |
3368 | |
3369 | *Richard Levitte* | |
3370 | ||
3371 | * Changed DH_check to accept parameters with order q and 2q subgroups. | |
3372 | With order 2q subgroups the bit 0 of the private key is not secret | |
3373 | but DH_generate_key works around that by clearing bit 0 of the | |
3374 | private key for those. This avoids leaking bit 0 of the private key. | |
3375 | ||
3376 | *Bernd Edlinger* | |
3377 | ||
3378 | * Significantly reduce secure memory usage by the randomness pools. | |
3379 | ||
3380 | *Paul Dale* | |
3381 | ||
3382 | * Revert the DEVRANDOM_WAIT feature for Linux systems | |
3383 | ||
3384 | The DEVRANDOM_WAIT feature added a select() call to wait for the | |
3385 | /dev/random device to become readable before reading from the | |
3386 | /dev/urandom device. | |
3387 | ||
3388 | It turned out that this change had negative side effects on | |
3389 | performance which were not acceptable. After some discussion it | |
3390 | was decided to revert this feature and leave it up to the OS | |
3391 | resp. the platform maintainer to ensure a proper initialization | |
3392 | during early boot time. | |
3393 | ||
3394 | *Matthias St. Pierre* | |
3395 | ||
257e9d03 | 3396 | ### Changes between 1.1.1b and 1.1.1c [28 May 2019] |
44652c16 DMSP |
3397 | |
3398 | * Add build tests for C++. These are generated files that only do one | |
3399 | thing, to include one public OpenSSL head file each. This tests that | |
3400 | the public header files can be usefully included in a C++ application. | |
3401 | ||
3402 | This test isn't enabled by default. It can be enabled with the option | |
3403 | 'enable-buildtest-c++'. | |
3404 | ||
3405 | *Richard Levitte* | |
3406 | ||
3407 | * Enable SHA3 pre-hashing for ECDSA and DSA. | |
3408 | ||
3409 | *Patrick Steuer* | |
3410 | ||
3411 | * Change the default RSA, DSA and DH size to 2048 bit instead of 1024. | |
ec2bfb7d DDO |
3412 | This changes the size when using the `genpkey` command when no size is given. |
3413 | It fixes an omission in earlier changes that changed all RSA, DSA and DH | |
3414 | generation commands to use 2048 bits by default. | |
44652c16 DMSP |
3415 | |
3416 | *Kurt Roeckx* | |
3417 | ||
3418 | * Reorganize the manual pages to consistently have RETURN VALUES, | |
3419 | EXAMPLES, SEE ALSO and HISTORY come in that order, and adjust | |
3420 | util/fix-doc-nits accordingly. | |
3421 | ||
3422 | *Paul Yang, Joshua Lock* | |
3423 | ||
3424 | * Add the missing accessor EVP_PKEY_get0_engine() | |
3425 | ||
3426 | *Matt Caswell* | |
3427 | ||
ec2bfb7d | 3428 | * Have commands like `s_client` and `s_server` output the signature scheme |
44652c16 DMSP |
3429 | along with other cipher suite parameters when debugging. |
3430 | ||
3431 | *Lorinczy Zsigmond* | |
3432 | ||
3433 | * Make OPENSSL_config() error agnostic again. | |
3434 | ||
3435 | *Richard Levitte* | |
3436 | ||
3437 | * Do the error handling in RSA decryption constant time. | |
3438 | ||
3439 | *Bernd Edlinger* | |
3440 | ||
3441 | * Prevent over long nonces in ChaCha20-Poly1305. | |
3442 | ||
3443 | ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input | |
3444 | for every encryption operation. RFC 7539 specifies that the nonce value | |
3445 | (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length | |
3446 | and front pads the nonce with 0 bytes if it is less than 12 | |
3447 | bytes. However it also incorrectly allows a nonce to be set of up to 16 | |
3448 | bytes. In this case only the last 12 bytes are significant and any | |
3449 | additional leading bytes are ignored. | |
3450 | ||
3451 | It is a requirement of using this cipher that nonce values are | |
3452 | unique. Messages encrypted using a reused nonce value are susceptible to | |
3453 | serious confidentiality and integrity attacks. If an application changes | |
3454 | the default nonce length to be longer than 12 bytes and then makes a | |
3455 | change to the leading bytes of the nonce expecting the new value to be a | |
3456 | new unique nonce then such an application could inadvertently encrypt | |
3457 | messages with a reused nonce. | |
3458 | ||
3459 | Additionally the ignored bytes in a long nonce are not covered by the | |
3460 | integrity guarantee of this cipher. Any application that relies on the | |
3461 | integrity of these ignored leading bytes of a long nonce may be further | |
3462 | affected. Any OpenSSL internal use of this cipher, including in SSL/TLS, | |
3463 | is safe because no such use sets such a long nonce value. However user | |
3464 | applications that use this cipher directly and set a non-default nonce | |
3465 | length to be longer than 12 bytes may be vulnerable. | |
3466 | ||
3467 | This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk | |
3468 | Greef of Ronomon. | |
d8dc8538 | 3469 | ([CVE-2019-1543]) |
44652c16 DMSP |
3470 | |
3471 | *Matt Caswell* | |
3472 | ||
3473 | * Add DEVRANDOM_WAIT feature for Linux systems | |
3474 | ||
3475 | On older Linux systems where the getrandom() system call is not available, | |
3476 | OpenSSL normally uses the /dev/urandom device for seeding its CSPRNG. | |
3477 | Contrary to getrandom(), the /dev/urandom device will not block during | |
3478 | early boot when the kernel CSPRNG has not been seeded yet. | |
3479 | ||
3480 | To mitigate this known weakness, use select() to wait for /dev/random to | |
3481 | become readable before reading from /dev/urandom. | |
3482 | ||
3483 | * Ensure that SM2 only uses SM3 as digest algorithm | |
3484 | ||
3485 | *Paul Yang* | |
3486 | ||
257e9d03 | 3487 | ### Changes between 1.1.1a and 1.1.1b [26 Feb 2019] |
651d0aff | 3488 | |
5f8e6c50 DMSP |
3489 | * Change the info callback signals for the start and end of a post-handshake |
3490 | message exchange in TLSv1.3. In 1.1.1/1.1.1a we used SSL_CB_HANDSHAKE_START | |
3491 | and SSL_CB_HANDSHAKE_DONE. Experience has shown that many applications get | |
3492 | confused by this and assume that a TLSv1.2 renegotiation has started. This | |
3493 | can break KeyUpdate handling. Instead we no longer signal the start and end | |
3494 | of a post handshake message exchange (although the messages themselves are | |
3495 | still signalled). This could break some applications that were expecting | |
3496 | the old signals. However without this KeyUpdate is not usable for many | |
3497 | applications. | |
651d0aff | 3498 | |
5f8e6c50 | 3499 | *Matt Caswell* |
651d0aff | 3500 | |
257e9d03 | 3501 | ### Changes between 1.1.1 and 1.1.1a [20 Nov 2018] |
651d0aff | 3502 | |
5f8e6c50 | 3503 | * Timing vulnerability in DSA signature generation |
651d0aff | 3504 | |
5f8e6c50 DMSP |
3505 | The OpenSSL DSA signature algorithm has been shown to be vulnerable to a |
3506 | timing side channel attack. An attacker could use variations in the signing | |
3507 | algorithm to recover the private key. | |
651d0aff | 3508 | |
5f8e6c50 | 3509 | This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser. |
d8dc8538 | 3510 | ([CVE-2018-0734]) |
651d0aff | 3511 | |
5f8e6c50 | 3512 | *Paul Dale* |
651d0aff | 3513 | |
5f8e6c50 | 3514 | * Timing vulnerability in ECDSA signature generation |
651d0aff | 3515 | |
5f8e6c50 DMSP |
3516 | The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a |
3517 | timing side channel attack. An attacker could use variations in the signing | |
3518 | algorithm to recover the private key. | |
651d0aff | 3519 | |
5f8e6c50 | 3520 | This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser. |
d8dc8538 | 3521 | ([CVE-2018-0735]) |
651d0aff | 3522 | |
5f8e6c50 | 3523 | *Paul Dale* |
651d0aff | 3524 | |
5f8e6c50 DMSP |
3525 | * Fixed the issue that RAND_add()/RAND_seed() silently discards random input |
3526 | if its length exceeds 4096 bytes. The limit has been raised to a buffer size | |
3527 | of two gigabytes and the error handling improved. | |
651d0aff | 3528 | |
5f8e6c50 DMSP |
3529 | This issue was reported to OpenSSL by Dr. Falko Strenzke. It has been |
3530 | categorized as a normal bug, not a security issue, because the DRBG reseeds | |
3531 | automatically and is fully functional even without additional randomness | |
3532 | provided by the application. | |
3533 | ||
257e9d03 | 3534 | ### Changes between 1.1.0i and 1.1.1 [11 Sep 2018] |
5f8e6c50 DMSP |
3535 | |
3536 | * Add a new ClientHello callback. Provides a callback interface that gives | |
3537 | the application the ability to adjust the nascent SSL object at the | |
3538 | earliest stage of ClientHello processing, immediately after extensions have | |
3539 | been collected but before they have been processed. In particular, this | |
3540 | callback can adjust the supported TLS versions in response to the contents | |
3541 | of the ClientHello | |
3542 | ||
3543 | *Benjamin Kaduk* | |
3544 | ||
3545 | * Add SM2 base algorithm support. | |
3546 | ||
3547 | *Jack Lloyd* | |
3548 | ||
3549 | * s390x assembly pack: add (improved) hardware-support for the following | |
3550 | cryptographic primitives: sha3, shake, aes-gcm, aes-ccm, aes-ctr, aes-ofb, | |
3551 | aes-cfb/cfb8, aes-ecb. | |
3552 | ||
3553 | *Patrick Steuer* | |
3554 | ||
3555 | * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str | |
3556 | parameter is no longer accepted, as it leads to a corrupt table. NULL | |
3557 | pem_str is reserved for alias entries only. | |
3558 | ||
3559 | *Richard Levitte* | |
3560 | ||
3561 | * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder | |
3562 | step for prime curves. The new implementation is based on formulae from | |
3563 | differential addition-and-doubling in homogeneous projective coordinates | |
3564 | from Izu-Takagi "A fast parallel elliptic curve multiplication resistant | |
3565 | against side channel attacks" and Brier-Joye "Weierstrass Elliptic Curves | |
3566 | and Side-Channel Attacks" Eq. (8) for y-coordinate recovery, modified | |
3567 | to work in projective coordinates. | |
3568 | ||
3569 | *Billy Bob Brumley, Nicola Tuveri* | |
3570 | ||
3571 | * Change generating and checking of primes so that the error rate of not | |
3572 | being prime depends on the intended use based on the size of the input. | |
3573 | For larger primes this will result in more rounds of Miller-Rabin. | |
3574 | The maximal error rate for primes with more than 1080 bits is lowered | |
3575 | to 2^-128. | |
3576 | ||
3577 | *Kurt Roeckx, Annie Yousar* | |
3578 | ||
3579 | * Increase the number of Miller-Rabin rounds for DSA key generating to 64. | |
3580 | ||
3581 | *Kurt Roeckx* | |
3582 | ||
3583 | * The 'tsget' script is renamed to 'tsget.pl', to avoid confusion when | |
3584 | moving between systems, and to avoid confusion when a Windows build is | |
3585 | done with mingw vs with MSVC. For POSIX installs, there's still a | |
3586 | symlink or copy named 'tsget' to avoid that confusion as well. | |
3587 | ||
3588 | *Richard Levitte* | |
3589 | ||
3590 | * Revert blinding in ECDSA sign and instead make problematic addition | |
3591 | length-invariant. Switch even to fixed-length Montgomery multiplication. | |
3592 | ||
3593 | *Andy Polyakov* | |
3594 | ||
3595 | * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder | |
3596 | step for binary curves. The new implementation is based on formulae from | |
3597 | differential addition-and-doubling in mixed Lopez-Dahab projective | |
3598 | coordinates, modified to independently blind the operands. | |
3599 | ||
3600 | *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri* | |
3601 | ||
3602 | * Add a scaffold to optionally enhance the Montgomery ladder implementation | |
3603 | for `ec_scalar_mul_ladder` (formerly `ec_mul_consttime`) allowing | |
3604 | EC_METHODs to implement their own specialized "ladder step", to take | |
3605 | advantage of more favorable coordinate systems or more efficient | |
3606 | differential addition-and-doubling algorithms. | |
3607 | ||
3608 | *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri* | |
3609 | ||
3610 | * Modified the random device based seed sources to keep the relevant | |
3611 | file descriptors open rather than reopening them on each access. | |
3612 | This allows such sources to operate in a chroot() jail without | |
3613 | the associated device nodes being available. This behaviour can be | |
3614 | controlled using RAND_keep_random_devices_open(). | |
3615 | ||
3616 | *Paul Dale* | |
3617 | ||
3618 | * Numerous side-channel attack mitigations have been applied. This may have | |
3619 | performance impacts for some algorithms for the benefit of improved | |
3620 | security. Specific changes are noted in this change log by their respective | |
3621 | authors. | |
3622 | ||
3623 | *Matt Caswell* | |
3624 | ||
3625 | * AIX shared library support overhaul. Switch to AIX "natural" way of | |
3626 | handling shared libraries, which means collecting shared objects of | |
3627 | different versions and bitnesses in one common archive. This allows to | |
3628 | mitigate conflict between 1.0 and 1.1 side-by-side installations. It | |
3629 | doesn't affect the way 3rd party applications are linked, only how | |
3630 | multi-version installation is managed. | |
3631 | ||
3632 | *Andy Polyakov* | |
3633 | ||
3634 | * Make ec_group_do_inverse_ord() more robust and available to other | |
3635 | EC cryptosystems, so that irrespective of BN_FLG_CONSTTIME, SCA | |
3636 | mitigations are applied to the fallback BN_mod_inverse(). | |
3637 | When using this function rather than BN_mod_inverse() directly, new | |
3638 | EC cryptosystem implementations are then safer-by-default. | |
3639 | ||
3640 | *Billy Bob Brumley* | |
3641 | ||
3642 | * Add coordinate blinding for EC_POINT and implement projective | |
3643 | coordinate blinding for generic prime curves as a countermeasure to | |
3644 | chosen point SCA attacks. | |
3645 | ||
3646 | *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley* | |
3647 | ||
3648 | * Add blinding to ECDSA and DSA signatures to protect against side channel | |
3649 | attacks discovered by Keegan Ryan (NCC Group). | |
3650 | ||
3651 | *Matt Caswell* | |
3652 | ||
ec2bfb7d | 3653 | * Enforce checking in the `pkeyutl` command to ensure that the input |
5f8e6c50 DMSP |
3654 | length does not exceed the maximum supported digest length when performing |
3655 | a sign, verify or verifyrecover operation. | |
3656 | ||
3657 | *Matt Caswell* | |
3658 | ||
3659 | * SSL_MODE_AUTO_RETRY is enabled by default. Applications that use blocking | |
3660 | I/O in combination with something like select() or poll() will hang. This | |
3661 | can be turned off again using SSL_CTX_clear_mode(). | |
3662 | Many applications do not properly handle non-application data records, and | |
3663 | TLS 1.3 sends more of such records. Setting SSL_MODE_AUTO_RETRY works | |
3664 | around the problems in those applications, but can also break some. | |
3665 | It's recommended to read the manpages about SSL_read(), SSL_write(), | |
3666 | SSL_get_error(), SSL_shutdown(), SSL_CTX_set_mode() and | |
3667 | SSL_CTX_set_read_ahead() again. | |
3668 | ||
3669 | *Kurt Roeckx* | |
3670 | ||
3671 | * When unlocking a pass phrase protected PEM file or PKCS#8 container, we | |
3672 | now allow empty (zero character) pass phrases. | |
3673 | ||
3674 | *Richard Levitte* | |
3675 | ||
3676 | * Apply blinding to binary field modular inversion and remove patent | |
3677 | pending (OPENSSL_SUN_GF2M_DIV) BN_GF2m_mod_div implementation. | |
3678 | ||
3679 | *Billy Bob Brumley* | |
3680 | ||
3681 | * Deprecate ec2_mult.c and unify scalar multiplication code paths for | |
3682 | binary and prime elliptic curves. | |
3683 | ||
3684 | *Billy Bob Brumley* | |
3685 | ||
3686 | * Remove ECDSA nonce padding: EC_POINT_mul is now responsible for | |
3687 | constant time fixed point multiplication. | |
3688 | ||
3689 | *Billy Bob Brumley* | |
3690 | ||
3691 | * Revise elliptic curve scalar multiplication with timing attack | |
3692 | defenses: ec_wNAF_mul redirects to a constant time implementation | |
3693 | when computing fixed point and variable point multiplication (which | |
3694 | in OpenSSL are mostly used with secret scalars in keygen, sign, | |
3695 | ECDH derive operations). | |
3696 | *Billy Bob Brumley, Nicola Tuveri, Cesar Pereida García, | |
3697 | Sohaib ul Hassan* | |
3698 | ||
3699 | * Updated CONTRIBUTING | |
3700 | ||
3701 | *Rich Salz* | |
3702 | ||
3703 | * Updated DRBG / RAND to request nonce and additional low entropy | |
3704 | randomness from the system. | |
3705 | ||
3706 | *Matthias St. Pierre* | |
3707 | ||
3708 | * Updated 'openssl rehash' to use OpenSSL consistent default. | |
3709 | ||
3710 | *Richard Levitte* | |
3711 | ||
3712 | * Moved the load of the ssl_conf module to libcrypto, which helps | |
3713 | loading engines that libssl uses before libssl is initialised. | |
3714 | ||
3715 | *Matt Caswell* | |
3716 | ||
3717 | * Added EVP_PKEY_sign() and EVP_PKEY_verify() for EdDSA | |
3718 | ||
3719 | *Matt Caswell* | |
3720 | ||
3721 | * Fixed X509_NAME_ENTRY_set to get multi-valued RDNs right in all cases. | |
3722 | ||
3723 | *Ingo Schwarze, Rich Salz* | |
3724 | ||
3725 | * Added output of accepting IP address and port for 'openssl s_server' | |
3726 | ||
3727 | *Richard Levitte* | |
3728 | ||
3729 | * Added a new API for TLSv1.3 ciphersuites: | |
3730 | SSL_CTX_set_ciphersuites() | |
3731 | SSL_set_ciphersuites() | |
3732 | ||
3733 | *Matt Caswell* | |
3734 | ||
3735 | * Memory allocation failures consistently add an error to the error | |
3736 | stack. | |
3737 | ||
3738 | *Rich Salz* | |
3739 | ||
3740 | * Don't use OPENSSL_ENGINES and OPENSSL_CONF environment values | |
3741 | in libcrypto when run as setuid/setgid. | |
3742 | ||
3743 | *Bernd Edlinger* | |
3744 | ||
3745 | * Load any config file by default when libssl is used. | |
3746 | ||
3747 | *Matt Caswell* | |
3748 | ||
3749 | * Added new public header file <openssl/rand_drbg.h> and documentation | |
3750 | for the RAND_DRBG API. See manual page RAND_DRBG(7) for an overview. | |
3751 | ||
3752 | *Matthias St. Pierre* | |
3753 | ||
3754 | * QNX support removed (cannot find contributors to get their approval | |
3755 | for the license change). | |
3756 | ||
3757 | *Rich Salz* | |
3758 | ||
3759 | * TLSv1.3 replay protection for early data has been implemented. See the | |
3760 | SSL_read_early_data() man page for further details. | |
3761 | ||
3762 | *Matt Caswell* | |
3763 | ||
3764 | * Separated TLSv1.3 ciphersuite configuration out from TLSv1.2 ciphersuite | |
3765 | configuration. TLSv1.3 ciphersuites are not compatible with TLSv1.2 and | |
3766 | below. Similarly TLSv1.2 ciphersuites are not compatible with TLSv1.3. | |
3767 | In order to avoid issues where legacy TLSv1.2 ciphersuite configuration | |
3768 | would otherwise inadvertently disable all TLSv1.3 ciphersuites the | |
3769 | configuration has been separated out. See the ciphers man page or the | |
3770 | SSL_CTX_set_ciphersuites() man page for more information. | |
3771 | ||
3772 | *Matt Caswell* | |
3773 | ||
3774 | * On POSIX (BSD, Linux, ...) systems the ocsp(1) command running | |
3775 | in responder mode now supports the new "-multi" option, which | |
3776 | spawns the specified number of child processes to handle OCSP | |
3777 | requests. The "-timeout" option now also limits the OCSP | |
3778 | responder's patience to wait to receive the full client request | |
3779 | on a newly accepted connection. Child processes are respawned | |
3780 | as needed, and the CA index file is automatically reloaded | |
3781 | when changed. This makes it possible to run the "ocsp" responder | |
3782 | as a long-running service, making the OpenSSL CA somewhat more | |
3783 | feature-complete. In this mode, most diagnostic messages logged | |
3784 | after entering the event loop are logged via syslog(3) rather than | |
3785 | written to stderr. | |
3786 | ||
3787 | *Viktor Dukhovni* | |
3788 | ||
3789 | * Added support for X448 and Ed448. Heavily based on original work by | |
3790 | Mike Hamburg. | |
3791 | ||
3792 | *Matt Caswell* | |
3793 | ||
3794 | * Extend OSSL_STORE with capabilities to search and to narrow the set of | |
3795 | objects loaded. This adds the functions OSSL_STORE_expect() and | |
3796 | OSSL_STORE_find() as well as needed tools to construct searches and | |
3797 | get the search data out of them. | |
3798 | ||
3799 | *Richard Levitte* | |
3800 | ||
3801 | * Support for TLSv1.3 added. Note that users upgrading from an earlier | |
3802 | version of OpenSSL should review their configuration settings to ensure | |
3803 | that they are still appropriate for TLSv1.3. For further information see: | |
257e9d03 | 3804 | <https://wiki.openssl.org/index.php/TLS1.3> |
5f8e6c50 DMSP |
3805 | |
3806 | *Matt Caswell* | |
3807 | ||
3808 | * Grand redesign of the OpenSSL random generator | |
3809 | ||
3810 | The default RAND method now utilizes an AES-CTR DRBG according to | |
3811 | NIST standard SP 800-90Ar1. The new random generator is essentially | |
3812 | a port of the default random generator from the OpenSSL FIPS 2.0 | |
3813 | object module. It is a hybrid deterministic random bit generator | |
3814 | using an AES-CTR bit stream and which seeds and reseeds itself | |
3815 | automatically using trusted system entropy sources. | |
3816 | ||
3817 | Some of its new features are: | |
3818 | - Support for multiple DRBG instances with seed chaining. | |
3819 | - The default RAND method makes use of a DRBG. | |
3820 | - There is a public and private DRBG instance. | |
3821 | - The DRBG instances are fork-safe. | |
3822 | - Keep all global DRBG instances on the secure heap if it is enabled. | |
3823 | - The public and private DRBG instance are per thread for lock free | |
3824 | operation | |
3825 | ||
3826 | *Paul Dale, Benjamin Kaduk, Kurt Roeckx, Rich Salz, Matthias St. Pierre* | |
3827 | ||
3828 | * Changed Configure so it only says what it does and doesn't dump | |
3829 | so much data. Instead, ./configdata.pm should be used as a script | |
3830 | to display all sorts of configuration data. | |
3831 | ||
3832 | *Richard Levitte* | |
3833 | ||
3834 | * Added processing of "make variables" to Configure. | |
3835 | ||
3836 | *Richard Levitte* | |
3837 | ||
3838 | * Added SHA512/224 and SHA512/256 algorithm support. | |
3839 | ||
3840 | *Paul Dale* | |
3841 | ||
3842 | * The last traces of Netware support, first removed in 1.1.0, have | |
3843 | now been removed. | |
3844 | ||
3845 | *Rich Salz* | |
3846 | ||
3847 | * Get rid of Makefile.shared, and in the process, make the processing | |
3848 | of certain files (rc.obj, or the .def/.map/.opt files produced from | |
3849 | the ordinal files) more visible and hopefully easier to trace and | |
3850 | debug (or make silent). | |
3851 | ||
3852 | *Richard Levitte* | |
3853 | ||
3854 | * Make it possible to have environment variable assignments as | |
3855 | arguments to config / Configure. | |
3856 | ||
3857 | *Richard Levitte* | |
3858 | ||
3859 | * Add multi-prime RSA (RFC 8017) support. | |
3860 | ||
3861 | *Paul Yang* | |
3862 | ||
3863 | * Add SM3 implemented according to GB/T 32905-2016 | |
1dc1ea18 DDO |
3864 | *Jack Lloyd <jack.lloyd@ribose.com>,* |
3865 | *Ronald Tse <ronald.tse@ribose.com>,* | |
3866 | *Erick Borsboom <erick.borsboom@ribose.com>* | |
5f8e6c50 DMSP |
3867 | |
3868 | * Add 'Maximum Fragment Length' TLS extension negotiation and support | |
3869 | as documented in RFC6066. | |
3870 | Based on a patch from Tomasz Moń | |
3871 | ||
3872 | *Filipe Raimundo da Silva* | |
3873 | ||
3874 | * Add SM4 implemented according to GB/T 32907-2016. | |
1dc1ea18 DDO |
3875 | *Jack Lloyd <jack.lloyd@ribose.com>,* |
3876 | *Ronald Tse <ronald.tse@ribose.com>,* | |
3877 | *Erick Borsboom <erick.borsboom@ribose.com>* | |
5f8e6c50 DMSP |
3878 | |
3879 | * Reimplement -newreq-nodes and ERR_error_string_n; the | |
3880 | original author does not agree with the license change. | |
3881 | ||
3882 | *Rich Salz* | |
3883 | ||
3884 | * Add ARIA AEAD TLS support. | |
3885 | ||
3886 | *Jon Spillett* | |
3887 | ||
3888 | * Some macro definitions to support VS6 have been removed. Visual | |
3889 | Studio 6 has not worked since 1.1.0 | |
3890 | ||
3891 | *Rich Salz* | |
3892 | ||
3893 | * Add ERR_clear_last_mark(), to allow callers to clear the last mark | |
3894 | without clearing the errors. | |
3895 | ||
3896 | *Richard Levitte* | |
3897 | ||
3898 | * Add "atfork" functions. If building on a system that without | |
3899 | pthreads, see doc/man3/OPENSSL_fork_prepare.pod for application | |
3900 | requirements. The RAND facility now uses/requires this. | |
3901 | ||
3902 | *Rich Salz* | |
3903 | ||
3904 | * Add SHA3. | |
3905 | ||
3906 | *Andy Polyakov* | |
3907 | ||
3908 | * The UI API becomes a permanent and integral part of libcrypto, i.e. | |
3909 | not possible to disable entirely. However, it's still possible to | |
3910 | disable the console reading UI method, UI_OpenSSL() (use UI_null() | |
3911 | as a fallback). | |
3912 | ||
3913 | To disable, configure with 'no-ui-console'. 'no-ui' is still | |
3914 | possible to use as an alias. Check at compile time with the | |
3915 | macro OPENSSL_NO_UI_CONSOLE. The macro OPENSSL_NO_UI is still | |
3916 | possible to check and is an alias for OPENSSL_NO_UI_CONSOLE. | |
3917 | ||
3918 | *Richard Levitte* | |
3919 | ||
3920 | * Add a STORE module, which implements a uniform and URI based reader of | |
3921 | stores that can contain keys, certificates, CRLs and numerous other | |
3922 | objects. The main API is loosely based on a few stdio functions, | |
3923 | and includes OSSL_STORE_open, OSSL_STORE_load, OSSL_STORE_eof, | |
3924 | OSSL_STORE_error and OSSL_STORE_close. | |
3925 | The implementation uses backends called "loaders" to implement arbitrary | |
3926 | URI schemes. There is one built in "loader" for the 'file' scheme. | |
3927 | ||
3928 | *Richard Levitte* | |
3929 | ||
3930 | * Add devcrypto engine. This has been implemented against cryptodev-linux, | |
3931 | then adjusted to work on FreeBSD 8.4 as well. | |
3932 | Enable by configuring with 'enable-devcryptoeng'. This is done by default | |
3933 | on BSD implementations, as cryptodev.h is assumed to exist on all of them. | |
3934 | ||
3935 | *Richard Levitte* | |
3936 | ||
3937 | * Module names can prefixed with OSSL_ or OPENSSL_. This affects | |
3938 | util/mkerr.pl, which is adapted to allow those prefixes, leading to | |
3939 | error code calls like this: | |
3940 | ||
3941 | OSSL_FOOerr(OSSL_FOO_F_SOMETHING, OSSL_FOO_R_WHATEVER); | |
3942 | ||
3943 | With this change, we claim the namespaces OSSL and OPENSSL in a manner | |
3944 | that can be encoded in C. For the foreseeable future, this will only | |
3945 | affect new modules. | |
3946 | ||
3947 | *Richard Levitte and Tim Hudson* | |
3948 | ||
3949 | * Removed BSD cryptodev engine. | |
3950 | ||
3951 | *Rich Salz* | |
3952 | ||
3953 | * Add a build target 'build_all_generated', to build all generated files | |
3954 | and only that. This can be used to prepare everything that requires | |
3955 | things like perl for a system that lacks perl and then move everything | |
3956 | to that system and do the rest of the build there. | |
3957 | ||
3958 | *Richard Levitte* | |
3959 | ||
3960 | * In the UI interface, make it possible to duplicate the user data. This | |
3961 | can be used by engines that need to retain the data for a longer time | |
3962 | than just the call where this user data is passed. | |
3963 | ||
3964 | *Richard Levitte* | |
3965 | ||
3966 | * Ignore the '-named_curve auto' value for compatibility of applications | |
3967 | with OpenSSL 1.0.2. | |
3968 | ||
66194839 | 3969 | *Tomáš Mráz <tmraz@fedoraproject.org>* |
5f8e6c50 DMSP |
3970 | |
3971 | * Fragmented SSL/TLS alerts are no longer accepted. An alert message is 2 | |
3972 | bytes long. In theory it is permissible in SSLv3 - TLSv1.2 to fragment such | |
3973 | alerts across multiple records (some of which could be empty). In practice | |
3974 | it make no sense to send an empty alert record, or to fragment one. TLSv1.3 | |
44652c16 | 3975 | prohibits this altogether and other libraries (BoringSSL, NSS) do not |
5f8e6c50 | 3976 | support this at all. Supporting it adds significant complexity to the |
44652c16 | 3977 | record layer, and its removal is unlikely to cause interoperability |
5f8e6c50 DMSP |
3978 | issues. |
3979 | ||
3980 | *Matt Caswell* | |
3981 | ||
3982 | * Add the ASN.1 types INT32, UINT32, INT64, UINT64 and variants prefixed | |
3983 | with Z. These are meant to replace LONG and ZLONG and to be size safe. | |
3984 | The use of LONG and ZLONG is discouraged and scheduled for deprecation | |
3985 | in OpenSSL 1.2.0. | |
3986 | ||
3987 | *Richard Levitte* | |
3988 | ||
3989 | * Add the 'z' and 'j' modifiers to BIO_printf() et al formatting string, | |
3990 | 'z' is to be used for [s]size_t, and 'j' - with [u]int64_t. | |
3991 | ||
3992 | *Richard Levitte, Andy Polyakov* | |
3993 | ||
3994 | * Add EC_KEY_get0_engine(), which does for EC_KEY what RSA_get0_engine() | |
3995 | does for RSA, etc. | |
3996 | ||
3997 | *Richard Levitte* | |
3998 | ||
3999 | * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target | |
4000 | platform rather than 'mingw'. | |
4001 | ||
4002 | *Richard Levitte* | |
4003 | ||
4004 | * The functions X509_STORE_add_cert and X509_STORE_add_crl return | |
4005 | success if they are asked to add an object which already exists | |
4006 | in the store. This change cascades to other functions which load | |
4007 | certificates and CRLs. | |
4008 | ||
4009 | *Paul Dale* | |
4010 | ||
4011 | * x86_64 assembly pack: annotate code with DWARF CFI directives to | |
4012 | facilitate stack unwinding even from assembly subroutines. | |
4013 | ||
4014 | *Andy Polyakov* | |
4015 | ||
4016 | * Remove VAX C specific definitions of OPENSSL_EXPORT, OPENSSL_EXTERN. | |
4017 | Also remove OPENSSL_GLOBAL entirely, as it became a no-op. | |
4018 | ||
4019 | *Richard Levitte* | |
4020 | ||
4021 | * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c. | |
4022 | VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1, | |
4023 | which is the minimum version we support. | |
4024 | ||
4025 | *Richard Levitte* | |
4026 | ||
4027 | * Certificate time validation (X509_cmp_time) enforces stricter | |
4028 | compliance with RFC 5280. Fractional seconds and timezone offsets | |
4029 | are no longer allowed. | |
4030 | ||
4031 | *Emilia Käsper* | |
4032 | ||
4033 | * Add support for ARIA | |
4034 | ||
4035 | *Paul Dale* | |
4036 | ||
4037 | * s_client will now send the Server Name Indication (SNI) extension by | |
4038 | default unless the new "-noservername" option is used. The server name is | |
4039 | based on the host provided to the "-connect" option unless overridden by | |
4040 | using "-servername". | |
4041 | ||
4042 | *Matt Caswell* | |
4043 | ||
4044 | * Add support for SipHash | |
4045 | ||
4046 | *Todd Short* | |
4047 | ||
4048 | * OpenSSL now fails if it receives an unrecognised record type in TLS1.0 | |
4049 | or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to | |
4050 | prevent issues where no progress is being made and the peer continually | |
4051 | sends unrecognised record types, using up resources processing them. | |
4052 | ||
4053 | *Matt Caswell* | |
4054 | ||
4055 | * 'openssl passwd' can now produce SHA256 and SHA512 based output, | |
4056 | using the algorithm defined in | |
257e9d03 | 4057 | <https://www.akkadia.org/drepper/SHA-crypt.txt> |
5f8e6c50 DMSP |
4058 | |
4059 | *Richard Levitte* | |
4060 | ||
4061 | * Heartbeat support has been removed; the ABI is changed for now. | |
4062 | ||
4063 | *Richard Levitte, Rich Salz* | |
4064 | ||
4065 | * Support for SSL_OP_NO_ENCRYPT_THEN_MAC in SSL_CONF_cmd. | |
4066 | ||
4067 | *Emilia Käsper* | |
4068 | ||
4069 | * The RSA "null" method, which was partially supported to avoid patent | |
4070 | issues, has been replaced to always returns NULL. | |
4071 | ||
4072 | *Rich Salz* | |
4073 | ||
44652c16 DMSP |
4074 | OpenSSL 1.1.0 |
4075 | ------------- | |
5f8e6c50 | 4076 | |
257e9d03 | 4077 | ### Changes between 1.1.0k and 1.1.0l [10 Sep 2019] |
5f8e6c50 | 4078 | |
44652c16 | 4079 | * For built-in EC curves, ensure an EC_GROUP built from the curve name is |
ece9304c | 4080 | used even when parsing explicit parameters, when loading a encoded key |
44652c16 DMSP |
4081 | or calling `EC_GROUP_new_from_ecpkparameters()`/ |
4082 | `EC_GROUP_new_from_ecparameters()`. | |
4083 | This prevents bypass of security hardening and performance gains, | |
4084 | especially for curves with specialized EC_METHODs. | |
4085 | By default, if a key encoded with explicit parameters is loaded and later | |
ece9304c | 4086 | encoded, the output is still encoded with explicit parameters, even if |
44652c16 | 4087 | internally a "named" EC_GROUP is used for computation. |
5f8e6c50 | 4088 | |
44652c16 | 4089 | *Nicola Tuveri* |
5f8e6c50 | 4090 | |
44652c16 DMSP |
4091 | * Compute ECC cofactors if not provided during EC_GROUP construction. Before |
4092 | this change, EC_GROUP_set_generator would accept order and/or cofactor as | |
4093 | NULL. After this change, only the cofactor parameter can be NULL. It also | |
4094 | does some minimal sanity checks on the passed order. | |
d8dc8538 | 4095 | ([CVE-2019-1547]) |
5f8e6c50 | 4096 | |
44652c16 | 4097 | *Billy Bob Brumley* |
5f8e6c50 | 4098 | |
44652c16 DMSP |
4099 | * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey. |
4100 | An attack is simple, if the first CMS_recipientInfo is valid but the | |
4101 | second CMS_recipientInfo is chosen ciphertext. If the second | |
4102 | recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct | |
4103 | encryption key will be replaced by garbage, and the message cannot be | |
4104 | decoded, but if the RSA decryption fails, the correct encryption key is | |
4105 | used and the recipient will not notice the attack. | |
4106 | As a work around for this potential attack the length of the decrypted | |
4107 | key must be equal to the cipher default key length, in case the | |
d7f3a2cc | 4108 | certificate is not given and all recipientInfo are tried out. |
44652c16 DMSP |
4109 | The old behaviour can be re-enabled in the CMS code by setting the |
4110 | CMS_DEBUG_DECRYPT flag. | |
d8dc8538 | 4111 | ([CVE-2019-1563]) |
44652c16 DMSP |
4112 | |
4113 | *Bernd Edlinger* | |
4114 | ||
4115 | * Use Windows installation paths in the mingw builds | |
4116 | ||
4117 | Mingw isn't a POSIX environment per se, which means that Windows | |
4118 | paths should be used for installation. | |
d8dc8538 | 4119 | ([CVE-2019-1552]) |
44652c16 DMSP |
4120 | |
4121 | *Richard Levitte* | |
4122 | ||
257e9d03 | 4123 | ### Changes between 1.1.0j and 1.1.0k [28 May 2019] |
44652c16 DMSP |
4124 | |
4125 | * Change the default RSA, DSA and DH size to 2048 bit instead of 1024. | |
ec2bfb7d DDO |
4126 | This changes the size when using the `genpkey` command when no size is given. |
4127 | It fixes an omission in earlier changes that changed all RSA, DSA and DH | |
4128 | generation commands to use 2048 bits by default. | |
44652c16 DMSP |
4129 | |
4130 | *Kurt Roeckx* | |
4131 | ||
4132 | * Prevent over long nonces in ChaCha20-Poly1305. | |
4133 | ||
4134 | ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input | |
4135 | for every encryption operation. RFC 7539 specifies that the nonce value | |
4136 | (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length | |
4137 | and front pads the nonce with 0 bytes if it is less than 12 | |
4138 | bytes. However it also incorrectly allows a nonce to be set of up to 16 | |
4139 | bytes. In this case only the last 12 bytes are significant and any | |
4140 | additional leading bytes are ignored. | |
4141 | ||
4142 | It is a requirement of using this cipher that nonce values are | |
4143 | unique. Messages encrypted using a reused nonce value are susceptible to | |
4144 | serious confidentiality and integrity attacks. If an application changes | |
4145 | the default nonce length to be longer than 12 bytes and then makes a | |
4146 | change to the leading bytes of the nonce expecting the new value to be a | |
4147 | new unique nonce then such an application could inadvertently encrypt | |
4148 | messages with a reused nonce. | |
4149 | ||
4150 | Additionally the ignored bytes in a long nonce are not covered by the | |
4151 | integrity guarantee of this cipher. Any application that relies on the | |
4152 | integrity of these ignored leading bytes of a long nonce may be further | |
4153 | affected. Any OpenSSL internal use of this cipher, including in SSL/TLS, | |
4154 | is safe because no such use sets such a long nonce value. However user | |
4155 | applications that use this cipher directly and set a non-default nonce | |
4156 | length to be longer than 12 bytes may be vulnerable. | |
4157 | ||
4158 | This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk | |
4159 | Greef of Ronomon. | |
d8dc8538 | 4160 | ([CVE-2019-1543]) |
44652c16 DMSP |
4161 | |
4162 | *Matt Caswell* | |
4163 | ||
4164 | * Added SCA hardening for modular field inversion in EC_GROUP through | |
4165 | a new dedicated field_inv() pointer in EC_METHOD. | |
4166 | This also addresses a leakage affecting conversions from projective | |
4167 | to affine coordinates. | |
4168 | ||
4169 | *Billy Bob Brumley, Nicola Tuveri* | |
4170 | ||
4171 | * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a | |
4172 | re-used X509_PUBKEY object if the second PUBKEY is malformed. | |
4173 | ||
4174 | *Bernd Edlinger* | |
4175 | ||
4176 | * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0(). | |
4177 | ||
4178 | *Richard Levitte* | |
4179 | ||
4180 | * Remove the 'dist' target and add a tarball building script. The | |
4181 | 'dist' target has fallen out of use, and it shouldn't be | |
4182 | necessary to configure just to create a source distribution. | |
4183 | ||
4184 | *Richard Levitte* | |
4185 | ||
257e9d03 | 4186 | ### Changes between 1.1.0i and 1.1.0j [20 Nov 2018] |
44652c16 DMSP |
4187 | |
4188 | * Timing vulnerability in DSA signature generation | |
4189 | ||
4190 | The OpenSSL DSA signature algorithm has been shown to be vulnerable to a | |
4191 | timing side channel attack. An attacker could use variations in the signing | |
4192 | algorithm to recover the private key. | |
4193 | ||
4194 | This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser. | |
d8dc8538 | 4195 | ([CVE-2018-0734]) |
44652c16 DMSP |
4196 | |
4197 | *Paul Dale* | |
4198 | ||
4199 | * Timing vulnerability in ECDSA signature generation | |
4200 | ||
4201 | The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a | |
4202 | timing side channel attack. An attacker could use variations in the signing | |
4203 | algorithm to recover the private key. | |
4204 | ||
4205 | This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser. | |
d8dc8538 | 4206 | ([CVE-2018-0735]) |
44652c16 DMSP |
4207 | |
4208 | *Paul Dale* | |
4209 | ||
4210 | * Add coordinate blinding for EC_POINT and implement projective | |
4211 | coordinate blinding for generic prime curves as a countermeasure to | |
4212 | chosen point SCA attacks. | |
4213 | ||
4214 | *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley* | |
4215 | ||
257e9d03 | 4216 | ### Changes between 1.1.0h and 1.1.0i [14 Aug 2018] |
44652c16 DMSP |
4217 | |
4218 | * Client DoS due to large DH parameter | |
4219 | ||
4220 | During key agreement in a TLS handshake using a DH(E) based ciphersuite a | |
4221 | malicious server can send a very large prime value to the client. This will | |
4222 | cause the client to spend an unreasonably long period of time generating a | |
4223 | key for this prime resulting in a hang until the client has finished. This | |
4224 | could be exploited in a Denial Of Service attack. | |
4225 | ||
4226 | This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken | |
d8dc8538 | 4227 | ([CVE-2018-0732]) |
44652c16 DMSP |
4228 | |
4229 | *Guido Vranken* | |
4230 | ||
4231 | * Cache timing vulnerability in RSA Key Generation | |
4232 | ||
4233 | The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to | |
4234 | a cache timing side channel attack. An attacker with sufficient access to | |
4235 | mount cache timing attacks during the RSA key generation process could | |
4236 | recover the private key. | |
5f8e6c50 DMSP |
4237 | |
4238 | This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera | |
4239 | Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia. | |
d8dc8538 | 4240 | ([CVE-2018-0737]) |
5f8e6c50 DMSP |
4241 | |
4242 | *Billy Brumley* | |
4243 | ||
4244 | * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str | |
4245 | parameter is no longer accepted, as it leads to a corrupt table. NULL | |
4246 | pem_str is reserved for alias entries only. | |
4247 | ||
4248 | *Richard Levitte* | |
4249 | ||
4250 | * Revert blinding in ECDSA sign and instead make problematic addition | |
4251 | length-invariant. Switch even to fixed-length Montgomery multiplication. | |
4252 | ||
4253 | *Andy Polyakov* | |
4254 | ||
4255 | * Change generating and checking of primes so that the error rate of not | |
4256 | being prime depends on the intended use based on the size of the input. | |
4257 | For larger primes this will result in more rounds of Miller-Rabin. | |
4258 | The maximal error rate for primes with more than 1080 bits is lowered | |
4259 | to 2^-128. | |
4260 | ||
4261 | *Kurt Roeckx, Annie Yousar* | |
4262 | ||
4263 | * Increase the number of Miller-Rabin rounds for DSA key generating to 64. | |
4264 | ||
4265 | *Kurt Roeckx* | |
4266 | ||
4267 | * Add blinding to ECDSA and DSA signatures to protect against side channel | |
4268 | attacks discovered by Keegan Ryan (NCC Group). | |
4269 | ||
4270 | *Matt Caswell* | |
4271 | ||
4272 | * When unlocking a pass phrase protected PEM file or PKCS#8 container, we | |
4273 | now allow empty (zero character) pass phrases. | |
4274 | ||
4275 | *Richard Levitte* | |
4276 | ||
4277 | * Certificate time validation (X509_cmp_time) enforces stricter | |
4278 | compliance with RFC 5280. Fractional seconds and timezone offsets | |
4279 | are no longer allowed. | |
4280 | ||
4281 | *Emilia Käsper* | |
4282 | ||
4283 | * Fixed a text canonicalisation bug in CMS | |
4284 | ||
4285 | Where a CMS detached signature is used with text content the text goes | |
4286 | through a canonicalisation process first prior to signing or verifying a | |
4287 | signature. This process strips trailing space at the end of lines, converts | |
4288 | line terminators to CRLF and removes additional trailing line terminators | |
4289 | at the end of a file. A bug in the canonicalisation process meant that | |
4290 | some characters, such as form-feed, were incorrectly treated as whitespace | |
4291 | and removed. This is contrary to the specification (RFC5485). This fix | |
4292 | could mean that detached text data signed with an earlier version of | |
4293 | OpenSSL 1.1.0 may fail to verify using the fixed version, or text data | |
4294 | signed with a fixed OpenSSL may fail to verify with an earlier version of | |
4295 | OpenSSL 1.1.0. A workaround is to only verify the canonicalised text data | |
4296 | and use the "-binary" flag (for the "cms" command line application) or set | |
4297 | the SMIME_BINARY/PKCS7_BINARY/CMS_BINARY flags (if using CMS_verify()). | |
4298 | ||
4299 | *Matt Caswell* | |
4300 | ||
257e9d03 | 4301 | ### Changes between 1.1.0g and 1.1.0h [27 Mar 2018] |
5f8e6c50 DMSP |
4302 | |
4303 | * Constructed ASN.1 types with a recursive definition could exceed the stack | |
4304 | ||
4305 | Constructed ASN.1 types with a recursive definition (such as can be found | |
4306 | in PKCS7) could eventually exceed the stack given malicious input with | |
4307 | excessive recursion. This could result in a Denial Of Service attack. There | |
4308 | are no such structures used within SSL/TLS that come from untrusted sources | |
4309 | so this is considered safe. | |
4310 | ||
4311 | This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz | |
4312 | project. | |
d8dc8538 | 4313 | ([CVE-2018-0739]) |
5f8e6c50 DMSP |
4314 | |
4315 | *Matt Caswell* | |
4316 | ||
4317 | * Incorrect CRYPTO_memcmp on HP-UX PA-RISC | |
4318 | ||
4319 | Because of an implementation bug the PA-RISC CRYPTO_memcmp function is | |
4320 | effectively reduced to only comparing the least significant bit of each | |
4321 | byte. This allows an attacker to forge messages that would be considered as | |
4322 | authenticated in an amount of tries lower than that guaranteed by the | |
4323 | security claims of the scheme. The module can only be compiled by the | |
4324 | HP-UX assembler, so that only HP-UX PA-RISC targets are affected. | |
4325 | ||
4326 | This issue was reported to OpenSSL on 2nd March 2018 by Peter Waltenberg | |
4327 | (IBM). | |
d8dc8538 | 4328 | ([CVE-2018-0733]) |
5f8e6c50 DMSP |
4329 | |
4330 | *Andy Polyakov* | |
4331 | ||
4332 | * Add a build target 'build_all_generated', to build all generated files | |
4333 | and only that. This can be used to prepare everything that requires | |
4334 | things like perl for a system that lacks perl and then move everything | |
4335 | to that system and do the rest of the build there. | |
4336 | ||
4337 | *Richard Levitte* | |
4338 | ||
4339 | * Backport SSL_OP_NO_RENGOTIATION | |
4340 | ||
4341 | OpenSSL 1.0.2 and below had the ability to disable renegotiation using the | |
4342 | (undocumented) SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS flag. Due to the opacity | |
d7f3a2cc | 4343 | changes this is no longer possible in 1.1.0. Therefore, the new |
5f8e6c50 DMSP |
4344 | SSL_OP_NO_RENEGOTIATION option from 1.1.1-dev has been backported to |
4345 | 1.1.0 to provide equivalent functionality. | |
4346 | ||
4347 | Note that if an application built against 1.1.0h headers (or above) is run | |
4348 | using an older version of 1.1.0 (prior to 1.1.0h) then the option will be | |
4349 | accepted but nothing will happen, i.e. renegotiation will not be prevented. | |
4350 | ||
4351 | *Matt Caswell* | |
4352 | ||
4353 | * Removed the OS390-Unix config target. It relied on a script that doesn't | |
4354 | exist. | |
4355 | ||
4356 | *Rich Salz* | |
4357 | ||
4358 | * rsaz_1024_mul_avx2 overflow bug on x86_64 | |
4359 | ||
4360 | There is an overflow bug in the AVX2 Montgomery multiplication procedure | |
4361 | used in exponentiation with 1024-bit moduli. No EC algorithms are affected. | |
4362 | Analysis suggests that attacks against RSA and DSA as a result of this | |
4363 | defect would be very difficult to perform and are not believed likely. | |
4364 | Attacks against DH1024 are considered just feasible, because most of the | |
4365 | work necessary to deduce information about a private key may be performed | |
4366 | offline. The amount of resources required for such an attack would be | |
4367 | significant. However, for an attack on TLS to be meaningful, the server | |
4368 | would have to share the DH1024 private key among multiple clients, which is | |
4369 | no longer an option since CVE-2016-0701. | |
4370 | ||
4371 | This only affects processors that support the AVX2 but not ADX extensions | |
4372 | like Intel Haswell (4th generation). | |
4373 | ||
4374 | This issue was reported to OpenSSL by David Benjamin (Google). The issue | |
4375 | was originally found via the OSS-Fuzz project. | |
d8dc8538 | 4376 | ([CVE-2017-3738]) |
5f8e6c50 DMSP |
4377 | |
4378 | *Andy Polyakov* | |
4379 | ||
257e9d03 | 4380 | ### Changes between 1.1.0f and 1.1.0g [2 Nov 2017] |
5f8e6c50 DMSP |
4381 | |
4382 | * bn_sqrx8x_internal carry bug on x86_64 | |
4383 | ||
4384 | There is a carry propagating bug in the x86_64 Montgomery squaring | |
4385 | procedure. No EC algorithms are affected. Analysis suggests that attacks | |
4386 | against RSA and DSA as a result of this defect would be very difficult to | |
4387 | perform and are not believed likely. Attacks against DH are considered just | |
4388 | feasible (although very difficult) because most of the work necessary to | |
4389 | deduce information about a private key may be performed offline. The amount | |
4390 | of resources required for such an attack would be very significant and | |
4391 | likely only accessible to a limited number of attackers. An attacker would | |
4392 | additionally need online access to an unpatched system using the target | |
4393 | private key in a scenario with persistent DH parameters and a private | |
4394 | key that is shared between multiple clients. | |
4395 | ||
4396 | This only affects processors that support the BMI1, BMI2 and ADX extensions | |
4397 | like Intel Broadwell (5th generation) and later or AMD Ryzen. | |
4398 | ||
4399 | This issue was reported to OpenSSL by the OSS-Fuzz project. | |
d8dc8538 | 4400 | ([CVE-2017-3736]) |
5f8e6c50 DMSP |
4401 | |
4402 | *Andy Polyakov* | |
4403 | ||
4404 | * Malformed X.509 IPAddressFamily could cause OOB read | |
4405 | ||
4406 | If an X.509 certificate has a malformed IPAddressFamily extension, | |
4407 | OpenSSL could do a one-byte buffer overread. The most likely result | |
4408 | would be an erroneous display of the certificate in text format. | |
4409 | ||
4410 | This issue was reported to OpenSSL by the OSS-Fuzz project. | |
d8dc8538 | 4411 | ([CVE-2017-3735]) |
5f8e6c50 DMSP |
4412 | |
4413 | *Rich Salz* | |
4414 | ||
257e9d03 | 4415 | ### Changes between 1.1.0e and 1.1.0f [25 May 2017] |
5f8e6c50 DMSP |
4416 | |
4417 | * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target | |
4418 | platform rather than 'mingw'. | |
4419 | ||
4420 | *Richard Levitte* | |
4421 | ||
4422 | * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c. | |
4423 | VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1, | |
4424 | which is the minimum version we support. | |
4425 | ||
4426 | *Richard Levitte* | |
4427 | ||
257e9d03 | 4428 | ### Changes between 1.1.0d and 1.1.0e [16 Feb 2017] |
5f8e6c50 DMSP |
4429 | |
4430 | * Encrypt-Then-Mac renegotiation crash | |
4431 | ||
4432 | During a renegotiation handshake if the Encrypt-Then-Mac extension is | |
4433 | negotiated where it was not in the original handshake (or vice-versa) then | |
d7f3a2cc | 4434 | this can cause OpenSSL to crash (dependent on ciphersuite). Both clients |
5f8e6c50 DMSP |
4435 | and servers are affected. |
4436 | ||
4437 | This issue was reported to OpenSSL by Joe Orton (Red Hat). | |
d8dc8538 | 4438 | ([CVE-2017-3733]) |
5f8e6c50 DMSP |
4439 | |
4440 | *Matt Caswell* | |
4441 | ||
257e9d03 | 4442 | ### Changes between 1.1.0c and 1.1.0d [26 Jan 2017] |
5f8e6c50 DMSP |
4443 | |
4444 | * Truncated packet could crash via OOB read | |
4445 | ||
4446 | If one side of an SSL/TLS path is running on a 32-bit host and a specific | |
4447 | cipher is being used, then a truncated packet can cause that host to | |
4448 | perform an out-of-bounds read, usually resulting in a crash. | |
4449 | ||
4450 | This issue was reported to OpenSSL by Robert Święcki of Google. | |
d8dc8538 | 4451 | ([CVE-2017-3731]) |
5f8e6c50 DMSP |
4452 | |
4453 | *Andy Polyakov* | |
4454 | ||
4455 | * Bad (EC)DHE parameters cause a client crash | |
4456 | ||
4457 | If a malicious server supplies bad parameters for a DHE or ECDHE key | |
4458 | exchange then this can result in the client attempting to dereference a | |
4459 | NULL pointer leading to a client crash. This could be exploited in a Denial | |
4460 | of Service attack. | |
4461 | ||
4462 | This issue was reported to OpenSSL by Guido Vranken. | |
d8dc8538 | 4463 | ([CVE-2017-3730]) |
5f8e6c50 DMSP |
4464 | |
4465 | *Matt Caswell* | |
4466 | ||
4467 | * BN_mod_exp may produce incorrect results on x86_64 | |
4468 | ||
4469 | There is a carry propagating bug in the x86_64 Montgomery squaring | |
4470 | procedure. No EC algorithms are affected. Analysis suggests that attacks | |
4471 | against RSA and DSA as a result of this defect would be very difficult to | |
4472 | perform and are not believed likely. Attacks against DH are considered just | |
4473 | feasible (although very difficult) because most of the work necessary to | |
4474 | deduce information about a private key may be performed offline. The amount | |
4475 | of resources required for such an attack would be very significant and | |
4476 | likely only accessible to a limited number of attackers. An attacker would | |
4477 | additionally need online access to an unpatched system using the target | |
4478 | private key in a scenario with persistent DH parameters and a private | |
4479 | key that is shared between multiple clients. For example this can occur by | |
4480 | default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very | |
4481 | similar to CVE-2015-3193 but must be treated as a separate problem. | |
4482 | ||
4483 | This issue was reported to OpenSSL by the OSS-Fuzz project. | |
d8dc8538 | 4484 | ([CVE-2017-3732]) |
5f8e6c50 DMSP |
4485 | |
4486 | *Andy Polyakov* | |
4487 | ||
257e9d03 | 4488 | ### Changes between 1.1.0b and 1.1.0c [10 Nov 2016] |
5f8e6c50 DMSP |
4489 | |
4490 | * ChaCha20/Poly1305 heap-buffer-overflow | |
4491 | ||
257e9d03 | 4492 | TLS connections using `*-CHACHA20-POLY1305` ciphersuites are susceptible to |
5f8e6c50 DMSP |
4493 | a DoS attack by corrupting larger payloads. This can result in an OpenSSL |
4494 | crash. This issue is not considered to be exploitable beyond a DoS. | |
4495 | ||
4496 | This issue was reported to OpenSSL by Robert Święcki (Google Security Team) | |
d8dc8538 | 4497 | ([CVE-2016-7054]) |
5f8e6c50 DMSP |
4498 | |
4499 | *Richard Levitte* | |
4500 | ||
4501 | * CMS Null dereference | |
4502 | ||
4503 | Applications parsing invalid CMS structures can crash with a NULL pointer | |
4504 | dereference. This is caused by a bug in the handling of the ASN.1 CHOICE | |
4505 | type in OpenSSL 1.1.0 which can result in a NULL value being passed to the | |
4506 | structure callback if an attempt is made to free certain invalid encodings. | |
4507 | Only CHOICE structures using a callback which do not handle NULL value are | |
4508 | affected. | |
4509 | ||
4510 | This issue was reported to OpenSSL by Tyler Nighswander of ForAllSecure. | |
d8dc8538 | 4511 | ([CVE-2016-7053]) |
5f8e6c50 DMSP |
4512 | |
4513 | *Stephen Henson* | |
4514 | ||
4515 | * Montgomery multiplication may produce incorrect results | |
4516 | ||
4517 | There is a carry propagating bug in the Broadwell-specific Montgomery | |
4518 | multiplication procedure that handles input lengths divisible by, but | |
4519 | longer than 256 bits. Analysis suggests that attacks against RSA, DSA | |
4520 | and DH private keys are impossible. This is because the subroutine in | |
4521 | question is not used in operations with the private key itself and an input | |
4522 | of the attacker's direct choice. Otherwise the bug can manifest itself as | |
4523 | transient authentication and key negotiation failures or reproducible | |
4524 | erroneous outcome of public-key operations with specially crafted input. | |
4525 | Among EC algorithms only Brainpool P-512 curves are affected and one | |
4526 | presumably can attack ECDH key negotiation. Impact was not analyzed in | |
4527 | detail, because pre-requisites for attack are considered unlikely. Namely | |
4528 | multiple clients have to choose the curve in question and the server has to | |
4529 | share the private key among them, neither of which is default behaviour. | |
4530 | Even then only clients that chose the curve will be affected. | |
4531 | ||
4532 | This issue was publicly reported as transient failures and was not | |
4533 | initially recognized as a security issue. Thanks to Richard Morgan for | |
4534 | providing reproducible case. | |
d8dc8538 | 4535 | ([CVE-2016-7055]) |
5f8e6c50 DMSP |
4536 | |
4537 | *Andy Polyakov* | |
4538 | ||
4539 | * Removed automatic addition of RPATH in shared libraries and executables, | |
4540 | as this was a remainder from OpenSSL 1.0.x and isn't needed any more. | |
4541 | ||
4542 | *Richard Levitte* | |
4543 | ||
257e9d03 | 4544 | ### Changes between 1.1.0a and 1.1.0b [26 Sep 2016] |
5f8e6c50 DMSP |
4545 | |
4546 | * Fix Use After Free for large message sizes | |
4547 | ||
4548 | The patch applied to address CVE-2016-6307 resulted in an issue where if a | |
4549 | message larger than approx 16k is received then the underlying buffer to | |
4550 | store the incoming message is reallocated and moved. Unfortunately a | |
4551 | dangling pointer to the old location is left which results in an attempt to | |
4552 | write to the previously freed location. This is likely to result in a | |
4553 | crash, however it could potentially lead to execution of arbitrary code. | |
4554 | ||
4555 | This issue only affects OpenSSL 1.1.0a. | |
4556 | ||
4557 | This issue was reported to OpenSSL by Robert Święcki. | |
d8dc8538 | 4558 | ([CVE-2016-6309]) |
5f8e6c50 DMSP |
4559 | |
4560 | *Matt Caswell* | |
4561 | ||
257e9d03 | 4562 | ### Changes between 1.1.0 and 1.1.0a [22 Sep 2016] |
5f8e6c50 DMSP |
4563 | |
4564 | * OCSP Status Request extension unbounded memory growth | |
4565 | ||
4566 | A malicious client can send an excessively large OCSP Status Request | |
4567 | extension. If that client continually requests renegotiation, sending a | |
4568 | large OCSP Status Request extension each time, then there will be unbounded | |
4569 | memory growth on the server. This will eventually lead to a Denial Of | |
4570 | Service attack through memory exhaustion. Servers with a default | |
4571 | configuration are vulnerable even if they do not support OCSP. Builds using | |
4572 | the "no-ocsp" build time option are not affected. | |
4573 | ||
4574 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) | |
d8dc8538 | 4575 | ([CVE-2016-6304]) |
5f8e6c50 DMSP |
4576 | |
4577 | *Matt Caswell* | |
4578 | ||
4579 | * SSL_peek() hang on empty record | |
4580 | ||
4581 | OpenSSL 1.1.0 SSL/TLS will hang during a call to SSL_peek() if the peer | |
4582 | sends an empty record. This could be exploited by a malicious peer in a | |
4583 | Denial Of Service attack. | |
4584 | ||
4585 | This issue was reported to OpenSSL by Alex Gaynor. | |
d8dc8538 | 4586 | ([CVE-2016-6305]) |
5f8e6c50 DMSP |
4587 | |
4588 | *Matt Caswell* | |
4589 | ||
4590 | * Excessive allocation of memory in tls_get_message_header() and | |
4591 | dtls1_preprocess_fragment() | |
4592 | ||
4593 | A (D)TLS message includes 3 bytes for its length in the header for the | |
4594 | message. This would allow for messages up to 16Mb in length. Messages of | |
4595 | this length are excessive and OpenSSL includes a check to ensure that a | |
4596 | peer is sending reasonably sized messages in order to avoid too much memory | |
4597 | being consumed to service a connection. A flaw in the logic of version | |
4598 | 1.1.0 means that memory for the message is allocated too early, prior to | |
4599 | the excessive message length check. Due to way memory is allocated in | |
4600 | OpenSSL this could mean an attacker could force up to 21Mb to be allocated | |
4601 | to service a connection. This could lead to a Denial of Service through | |
4602 | memory exhaustion. However, the excessive message length check still takes | |
4603 | place, and this would cause the connection to immediately fail. Assuming | |
4604 | that the application calls SSL_free() on the failed connection in a timely | |
4605 | manner then the 21Mb of allocated memory will then be immediately freed | |
d7f3a2cc | 4606 | again. Therefore, the excessive memory allocation will be transitory in |
5f8e6c50 DMSP |
4607 | nature. This then means that there is only a security impact if: |
4608 | ||
4609 | 1) The application does not call SSL_free() in a timely manner in the event | |
4610 | that the connection fails | |
4611 | or | |
4612 | 2) The application is working in a constrained environment where there is | |
4613 | very little free memory | |
4614 | or | |
4615 | 3) The attacker initiates multiple connection attempts such that there are | |
4616 | multiple connections in a state where memory has been allocated for the | |
4617 | connection; SSL_free() has not yet been called; and there is insufficient | |
4618 | memory to service the multiple requests. | |
4619 | ||
4620 | Except in the instance of (1) above any Denial Of Service is likely to be | |
4621 | transitory because as soon as the connection fails the memory is | |
4622 | subsequently freed again in the SSL_free() call. However there is an | |
4623 | increased risk during this period of application crashes due to the lack of | |
4624 | memory - which would then mean a more serious Denial of Service. | |
4625 | ||
4626 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) | |
4627 | (CVE-2016-6307 and CVE-2016-6308) | |
4628 | ||
4629 | *Matt Caswell* | |
4630 | ||
4631 | * solaris-x86-cc, i.e. 32-bit configuration with vendor compiler, | |
4632 | had to be removed. Primary reason is that vendor assembler can't | |
4633 | assemble our modules with -KPIC flag. As result it, assembly | |
4634 | support, was not even available as option. But its lack means | |
4635 | lack of side-channel resistant code, which is incompatible with | |
4636 | security by todays standards. Fortunately gcc is readily available | |
4637 | prepackaged option, which we firmly point at... | |
4638 | ||
4639 | *Andy Polyakov* | |
4640 | ||
257e9d03 | 4641 | ### Changes between 1.0.2h and 1.1.0 [25 Aug 2016] |
5f8e6c50 DMSP |
4642 | |
4643 | * Windows command-line tool supports UTF-8 opt-in option for arguments | |
4644 | and console input. Setting OPENSSL_WIN32_UTF8 environment variable | |
4645 | (to any value) allows Windows user to access PKCS#12 file generated | |
4646 | with Windows CryptoAPI and protected with non-ASCII password, as well | |
4647 | as files generated under UTF-8 locale on Linux also protected with | |
4648 | non-ASCII password. | |
4649 | ||
4650 | *Andy Polyakov* | |
4651 | ||
d8dc8538 | 4652 | * To mitigate the SWEET32 attack ([CVE-2016-2183]), 3DES cipher suites |
5f8e6c50 DMSP |
4653 | have been disabled by default and removed from DEFAULT, just like RC4. |
4654 | See the RC4 item below to re-enable both. | |
4655 | ||
4656 | *Rich Salz* | |
4657 | ||
4658 | * The method for finding the storage location for the Windows RAND seed file | |
4659 | has changed. First we check %RANDFILE%. If that is not set then we check | |
4660 | the directories %HOME%, %USERPROFILE% and %SYSTEMROOT% in that order. If | |
4661 | all else fails we fall back to C:\. | |
4662 | ||
4663 | *Matt Caswell* | |
4664 | ||
4665 | * The EVP_EncryptUpdate() function has had its return type changed from void | |
4666 | to int. A return of 0 indicates and error while a return of 1 indicates | |
4667 | success. | |
4668 | ||
4669 | *Matt Caswell* | |
4670 | ||
4671 | * The flags RSA_FLAG_NO_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME and | |
4672 | DH_FLAG_NO_EXP_CONSTTIME which previously provided the ability to switch | |
4673 | off the constant time implementation for RSA, DSA and DH have been made | |
4674 | no-ops and deprecated. | |
4675 | ||
4676 | *Matt Caswell* | |
4677 | ||
4678 | * Windows RAND implementation was simplified to only get entropy by | |
4679 | calling CryptGenRandom(). Various other RAND-related tickets | |
4680 | were also closed. | |
4681 | ||
4682 | *Joseph Wylie Yandle, Rich Salz* | |
4683 | ||
257e9d03 RS |
4684 | * The stack and lhash API's were renamed to start with `OPENSSL_SK_` |
4685 | and `OPENSSL_LH_`, respectively. The old names are available | |
5f8e6c50 DMSP |
4686 | with API compatibility. They new names are now completely documented. |
4687 | ||
4688 | *Rich Salz* | |
4689 | ||
4690 | * Unify TYPE_up_ref(obj) methods signature. | |
4691 | SSL_CTX_up_ref(), SSL_up_ref(), X509_up_ref(), EVP_PKEY_up_ref(), | |
4692 | X509_CRL_up_ref(), X509_OBJECT_up_ref_count() methods are now returning an | |
4693 | int (instead of void) like all others TYPE_up_ref() methods. | |
4694 | So now these methods also check the return value of CRYPTO_atomic_add(), | |
4695 | and the validity of object reference counter. | |
4696 | ||
4697 | *fdasilvayy@gmail.com* | |
4698 | ||
4699 | * With Windows Visual Studio builds, the .pdb files are installed | |
4700 | alongside the installed libraries and executables. For a static | |
4701 | library installation, ossl_static.pdb is the associate compiler | |
4702 | generated .pdb file to be used when linking programs. | |
4703 | ||
4704 | *Richard Levitte* | |
4705 | ||
4706 | * Remove openssl.spec. Packaging files belong with the packagers. | |
4707 | ||
4708 | *Richard Levitte* | |
4709 | ||
4710 | * Automatic Darwin/OSX configuration has had a refresh, it will now | |
4711 | recognise x86_64 architectures automatically. You can still decide | |
4712 | to build for a different bitness with the environment variable | |
4713 | KERNEL_BITS (can be 32 or 64), for example: | |
4714 | ||
4715 | KERNEL_BITS=32 ./config | |
4716 | ||
4717 | *Richard Levitte* | |
4718 | ||
4719 | * Change default algorithms in pkcs8 utility to use PKCS#5 v2.0, | |
4720 | 256 bit AES and HMAC with SHA256. | |
4721 | ||
4722 | *Steve Henson* | |
4723 | ||
4724 | * Remove support for MIPS o32 ABI on IRIX (and IRIX only). | |
4725 | ||
4726 | *Andy Polyakov* | |
4727 | ||
4728 | * Triple-DES ciphers have been moved from HIGH to MEDIUM. | |
4729 | ||
4730 | *Rich Salz* | |
4731 | ||
4732 | * To enable users to have their own config files and build file templates, | |
4733 | Configure looks in the directory indicated by the environment variable | |
4734 | OPENSSL_LOCAL_CONFIG_DIR as well as the in-source Configurations/ | |
4735 | directory. On VMS, OPENSSL_LOCAL_CONFIG_DIR is expected to be a logical | |
4736 | name and is used as is. | |
4737 | ||
4738 | *Richard Levitte* | |
4739 | ||
4740 | * The following datatypes were made opaque: X509_OBJECT, X509_STORE_CTX, | |
4741 | X509_STORE, X509_LOOKUP, and X509_LOOKUP_METHOD. The unused type | |
4742 | X509_CERT_FILE_CTX was removed. | |
4743 | ||
4744 | *Rich Salz* | |
4745 | ||
4746 | * "shared" builds are now the default. To create only static libraries use | |
4747 | the "no-shared" Configure option. | |
4748 | ||
4749 | *Matt Caswell* | |
4750 | ||
4751 | * Remove the no-aes, no-hmac, no-rsa, no-sha and no-md5 Configure options. | |
4752 | All of these option have not worked for some while and are fundamental | |
4753 | algorithms. | |
4754 | ||
4755 | *Matt Caswell* | |
4756 | ||
4757 | * Make various cleanup routines no-ops and mark them as deprecated. Most | |
4758 | global cleanup functions are no longer required because they are handled | |
4759 | via auto-deinit (see OPENSSL_init_crypto and OPENSSL_init_ssl man pages). | |
4760 | Explicitly de-initing can cause problems (e.g. where a library that uses | |
4761 | OpenSSL de-inits, but an application is still using it). The affected | |
4762 | functions are CONF_modules_free(), ENGINE_cleanup(), OBJ_cleanup(), | |
4763 | EVP_cleanup(), BIO_sock_cleanup(), CRYPTO_cleanup_all_ex_data(), | |
4764 | RAND_cleanup(), SSL_COMP_free_compression_methods(), ERR_free_strings() and | |
4765 | COMP_zlib_cleanup(). | |
4766 | ||
4767 | *Matt Caswell* | |
4768 | ||
4769 | * --strict-warnings no longer enables runtime debugging options | |
4770 | such as REF_DEBUG. Instead, debug options are automatically | |
4771 | enabled with '--debug' builds. | |
4772 | ||
4773 | *Andy Polyakov, Emilia Käsper* | |
4774 | ||
4775 | * Made DH and DH_METHOD opaque. The structures for managing DH objects | |
4776 | have been moved out of the public header files. New functions for managing | |
4777 | these have been added. | |
4778 | ||
4779 | *Matt Caswell* | |
4780 | ||
4781 | * Made RSA and RSA_METHOD opaque. The structures for managing RSA | |
4782 | objects have been moved out of the public header files. New | |
4783 | functions for managing these have been added. | |
4784 | ||
4785 | *Richard Levitte* | |
4786 | ||
4787 | * Made DSA and DSA_METHOD opaque. The structures for managing DSA objects | |
4788 | have been moved out of the public header files. New functions for managing | |
4789 | these have been added. | |
4790 | ||
4791 | *Matt Caswell* | |
4792 | ||
4793 | * Made BIO and BIO_METHOD opaque. The structures for managing BIOs have been | |
4794 | moved out of the public header files. New functions for managing these | |
4795 | have been added. | |
4796 | ||
4797 | *Matt Caswell* | |
4798 | ||
4799 | * Removed no-rijndael as a config option. Rijndael is an old name for AES. | |
4800 | ||
4801 | *Matt Caswell* | |
4802 | ||
4803 | * Removed the mk1mf build scripts. | |
4804 | ||
4805 | *Richard Levitte* | |
4806 | ||
4807 | * Headers are now wrapped, if necessary, with OPENSSL_NO_xxx, so | |
4808 | it is always safe to #include a header now. | |
4809 | ||
4810 | *Rich Salz* | |
4811 | ||
4812 | * Removed the aged BC-32 config and all its supporting scripts | |
4813 | ||
4814 | *Richard Levitte* | |
4815 | ||
4816 | * Removed support for Ultrix, Netware, and OS/2. | |
4817 | ||
4818 | *Rich Salz* | |
4819 | ||
4820 | * Add support for HKDF. | |
4821 | ||
4822 | *Alessandro Ghedini* | |
4823 | ||
4824 | * Add support for blake2b and blake2s | |
4825 | ||
4826 | *Bill Cox* | |
4827 | ||
4828 | * Added support for "pipelining". Ciphers that have the | |
4829 | EVP_CIPH_FLAG_PIPELINE flag set have a capability to process multiple | |
4830 | encryptions/decryptions simultaneously. There are currently no built-in | |
4831 | ciphers with this property but the expectation is that engines will be able | |
4832 | to offer it to significantly improve throughput. Support has been extended | |
4833 | into libssl so that multiple records for a single connection can be | |
4834 | processed in one go (for >=TLS 1.1). | |
4835 | ||
4836 | *Matt Caswell* | |
4837 | ||
4838 | * Added the AFALG engine. This is an async capable engine which is able to | |
4839 | offload work to the Linux kernel. In this initial version it only supports | |
4840 | AES128-CBC. The kernel must be version 4.1.0 or greater. | |
4841 | ||
4842 | *Catriona Lucey* | |
4843 | ||
4844 | * OpenSSL now uses a new threading API. It is no longer necessary to | |
4845 | set locking callbacks to use OpenSSL in a multi-threaded environment. There | |
4846 | are two supported threading models: pthreads and windows threads. It is | |
4847 | also possible to configure OpenSSL at compile time for "no-threads". The | |
4848 | old threading API should no longer be used. The functions have been | |
4849 | replaced with "no-op" compatibility macros. | |
4850 | ||
4851 | *Alessandro Ghedini, Matt Caswell* | |
4852 | ||
4853 | * Modify behavior of ALPN to invoke callback after SNI/servername | |
4854 | callback, such that updates to the SSL_CTX affect ALPN. | |
4855 | ||
4856 | *Todd Short* | |
4857 | ||
4858 | * Add SSL_CIPHER queries for authentication and key-exchange. | |
4859 | ||
4860 | *Todd Short* | |
4861 | ||
4862 | * Changes to the DEFAULT cipherlist: | |
257e9d03 RS |
4863 | - Prefer (EC)DHE handshakes over plain RSA. |
4864 | - Prefer AEAD ciphers over legacy ciphers. | |
4865 | - Prefer ECDSA over RSA when both certificates are available. | |
4866 | - Prefer TLSv1.2 ciphers/PRF. | |
4867 | - Remove DSS, SEED, IDEA, CAMELLIA, and AES-CCM from the | |
4868 | default cipherlist. | |
5f8e6c50 DMSP |
4869 | |
4870 | *Emilia Käsper* | |
4871 | ||
4872 | * Change the ECC default curve list to be this, in order: x25519, | |
4873 | secp256r1, secp521r1, secp384r1. | |
4874 | ||
4875 | *Rich Salz* | |
4876 | ||
4877 | * RC4 based libssl ciphersuites are now classed as "weak" ciphers and are | |
4878 | disabled by default. They can be re-enabled using the | |
4879 | enable-weak-ssl-ciphers option to Configure. | |
4880 | ||
4881 | *Matt Caswell* | |
4882 | ||
4883 | * If the server has ALPN configured, but supports no protocols that the | |
4884 | client advertises, send a fatal "no_application_protocol" alert. | |
4885 | This behaviour is SHALL in RFC 7301, though it isn't universally | |
4886 | implemented by other servers. | |
4887 | ||
4888 | *Emilia Käsper* | |
4889 | ||
4890 | * Add X25519 support. | |
4891 | Add ASN.1 and EVP_PKEY methods for X25519. This includes support | |
4892 | for public and private key encoding using the format documented in | |
4893 | draft-ietf-curdle-pkix-02. The corresponding EVP_PKEY method supports | |
4894 | key generation and key derivation. | |
4895 | ||
4896 | TLS support complies with draft-ietf-tls-rfc4492bis-08 and uses | |
4897 | X25519(29). | |
4898 | ||
4899 | *Steve Henson* | |
4900 | ||
4901 | * Deprecate SRP_VBASE_get_by_user. | |
4902 | SRP_VBASE_get_by_user had inconsistent memory management behaviour. | |
d8dc8538 | 4903 | In order to fix an unavoidable memory leak ([CVE-2016-0798]), |
5f8e6c50 DMSP |
4904 | SRP_VBASE_get_by_user was changed to ignore the "fake user" SRP |
4905 | seed, even if the seed is configured. | |
4906 | ||
4907 | Users should use SRP_VBASE_get1_by_user instead. Note that in | |
4908 | SRP_VBASE_get1_by_user, caller must free the returned value. Note | |
4909 | also that even though configuring the SRP seed attempts to hide | |
4910 | invalid usernames by continuing the handshake with fake | |
4911 | credentials, this behaviour is not constant time and no strong | |
4912 | guarantees are made that the handshake is indistinguishable from | |
4913 | that of a valid user. | |
4914 | ||
4915 | *Emilia Käsper* | |
4916 | ||
4917 | * Configuration change; it's now possible to build dynamic engines | |
4918 | without having to build shared libraries and vice versa. This | |
ec2bfb7d | 4919 | only applies to the engines in `engines/`, those in `crypto/engine/` |
5f8e6c50 DMSP |
4920 | will always be built into libcrypto (i.e. "static"). |
4921 | ||
4922 | Building dynamic engines is enabled by default; to disable, use | |
4923 | the configuration option "disable-dynamic-engine". | |
4924 | ||
4925 | The only requirements for building dynamic engines are the | |
4926 | presence of the DSO module and building with position independent | |
4927 | code, so they will also automatically be disabled if configuring | |
4928 | with "disable-dso" or "disable-pic". | |
4929 | ||
4930 | The macros OPENSSL_NO_STATIC_ENGINE and OPENSSL_NO_DYNAMIC_ENGINE | |
4931 | are also taken away from openssl/opensslconf.h, as they are | |
4932 | irrelevant. | |
4933 | ||
4934 | *Richard Levitte* | |
4935 | ||
4936 | * Configuration change; if there is a known flag to compile | |
4937 | position independent code, it will always be applied on the | |
4938 | libcrypto and libssl object files, and never on the application | |
4939 | object files. This means other libraries that use routines from | |
4940 | libcrypto / libssl can be made into shared libraries regardless | |
4941 | of how OpenSSL was configured. | |
4942 | ||
4943 | If this isn't desirable, the configuration options "disable-pic" | |
4944 | or "no-pic" can be used to disable the use of PIC. This will | |
4945 | also disable building shared libraries and dynamic engines. | |
4946 | ||
4947 | *Richard Levitte* | |
4948 | ||
4949 | * Removed JPAKE code. It was experimental and has no wide use. | |
4950 | ||
4951 | *Rich Salz* | |
4952 | ||
4953 | * The INSTALL_PREFIX Makefile variable has been renamed to | |
4954 | DESTDIR. That makes for less confusion on what this variable | |
4955 | is for. Also, the configuration option --install_prefix is | |
4956 | removed. | |
4957 | ||
4958 | *Richard Levitte* | |
4959 | ||
4960 | * Heartbeat for TLS has been removed and is disabled by default | |
4961 | for DTLS; configure with enable-heartbeats. Code that uses the | |
4962 | old #define's might need to be updated. | |
4963 | ||
4964 | *Emilia Käsper, Rich Salz* | |
4965 | ||
4966 | * Rename REF_CHECK to REF_DEBUG. | |
4967 | ||
4968 | *Rich Salz* | |
4969 | ||
4970 | * New "unified" build system | |
4971 | ||
4972 | The "unified" build system is aimed to be a common system for all | |
4973 | platforms we support. With it comes new support for VMS. | |
4974 | ||
4975 | This system builds supports building in a different directory tree | |
4976 | than the source tree. It produces one Makefile (for unix family | |
4977 | or lookalikes), or one descrip.mms (for VMS). | |
4978 | ||
4979 | The source of information to make the Makefile / descrip.mms is | |
4980 | small files called 'build.info', holding the necessary | |
4981 | information for each directory with source to compile, and a | |
4982 | template in Configurations, like unix-Makefile.tmpl or | |
4983 | descrip.mms.tmpl. | |
4984 | ||
4985 | With this change, the library names were also renamed on Windows | |
4986 | and on VMS. They now have names that are closer to the standard | |
4987 | on Unix, and include the major version number, and in certain | |
4988 | cases, the architecture they are built for. See "Notes on shared | |
4989 | libraries" in INSTALL. | |
4990 | ||
4991 | We rely heavily on the perl module Text::Template. | |
4992 | ||
4993 | *Richard Levitte* | |
4994 | ||
4995 | * Added support for auto-initialisation and de-initialisation of the library. | |
4996 | OpenSSL no longer requires explicit init or deinit routines to be called, | |
4997 | except in certain circumstances. See the OPENSSL_init_crypto() and | |
4998 | OPENSSL_init_ssl() man pages for further information. | |
4999 | ||
5000 | *Matt Caswell* | |
5001 | ||
5002 | * The arguments to the DTLSv1_listen function have changed. Specifically the | |
5003 | "peer" argument is now expected to be a BIO_ADDR object. | |
5004 | ||
5005 | * Rewrite of BIO networking library. The BIO library lacked consistent | |
5006 | support of IPv6, and adding it required some more extensive | |
5007 | modifications. This introduces the BIO_ADDR and BIO_ADDRINFO types, | |
5008 | which hold all types of addresses and chains of address information. | |
5009 | It also introduces a new API, with functions like BIO_socket, | |
5010 | BIO_connect, BIO_listen, BIO_lookup and a rewrite of BIO_accept. | |
5011 | The source/sink BIOs BIO_s_connect, BIO_s_accept and BIO_s_datagram | |
5012 | have been adapted accordingly. | |
5013 | ||
5014 | *Richard Levitte* | |
5015 | ||
5016 | * RSA_padding_check_PKCS1_type_1 now accepts inputs with and without | |
5017 | the leading 0-byte. | |
5018 | ||
5019 | *Emilia Käsper* | |
5020 | ||
5021 | * CRIME protection: disable compression by default, even if OpenSSL is | |
5022 | compiled with zlib enabled. Applications can still enable compression | |
5023 | by calling SSL_CTX_clear_options(ctx, SSL_OP_NO_COMPRESSION), or by | |
5024 | using the SSL_CONF library to configure compression. | |
5025 | ||
5026 | *Emilia Käsper* | |
5027 | ||
5028 | * The signature of the session callback configured with | |
5029 | SSL_CTX_sess_set_get_cb was changed. The read-only input buffer | |
257e9d03 RS |
5030 | was explicitly marked as `const unsigned char*` instead of |
5031 | `unsigned char*`. | |
5f8e6c50 DMSP |
5032 | |
5033 | *Emilia Käsper* | |
5034 | ||
5035 | * Always DPURIFY. Remove the use of uninitialized memory in the | |
5036 | RNG, and other conditional uses of DPURIFY. This makes -DPURIFY a no-op. | |
5037 | ||
5038 | *Emilia Käsper* | |
5039 | ||
5040 | * Removed many obsolete configuration items, including | |
5041 | DES_PTR, DES_RISC1, DES_RISC2, DES_INT | |
5042 | MD2_CHAR, MD2_INT, MD2_LONG | |
5043 | BF_PTR, BF_PTR2 | |
5044 | IDEA_SHORT, IDEA_LONG | |
5045 | RC2_SHORT, RC2_LONG, RC4_LONG, RC4_CHUNK, RC4_INDEX | |
5046 | ||
5047 | *Rich Salz, with advice from Andy Polyakov* | |
5048 | ||
5049 | * Many BN internals have been moved to an internal header file. | |
5050 | ||
5051 | *Rich Salz with help from Andy Polyakov* | |
5052 | ||
5053 | * Configuration and writing out the results from it has changed. | |
5054 | Files such as Makefile include/openssl/opensslconf.h and are now | |
5055 | produced through general templates, such as Makefile.in and | |
5056 | crypto/opensslconf.h.in and some help from the perl module | |
5057 | Text::Template. | |
5058 | ||
5059 | Also, the center of configuration information is no longer | |
5060 | Makefile. Instead, Configure produces a perl module in | |
5061 | configdata.pm which holds most of the config data (in the hash | |
5062 | table %config), the target data that comes from the target | |
1dc1ea18 | 5063 | configuration in one of the `Configurations/*.conf` files (in |
5f8e6c50 DMSP |
5064 | %target). |
5065 | ||
5066 | *Richard Levitte* | |
5067 | ||
5068 | * To clarify their intended purposes, the Configure options | |
5069 | --prefix and --openssldir change their semantics, and become more | |
5070 | straightforward and less interdependent. | |
5071 | ||
5072 | --prefix shall be used exclusively to give the location INSTALLTOP | |
5073 | where programs, scripts, libraries, include files and manuals are | |
5074 | going to be installed. The default is now /usr/local. | |
5075 | ||
5076 | --openssldir shall be used exclusively to give the default | |
5077 | location OPENSSLDIR where certificates, private keys, CRLs are | |
5078 | managed. This is also where the default openssl.cnf gets | |
5079 | installed. | |
5080 | If the directory given with this option is a relative path, the | |
5081 | values of both the --prefix value and the --openssldir value will | |
5082 | be combined to become OPENSSLDIR. | |
5083 | The default for --openssldir is INSTALLTOP/ssl. | |
5084 | ||
5085 | Anyone who uses --openssldir to specify where OpenSSL is to be | |
5086 | installed MUST change to use --prefix instead. | |
5087 | ||
5088 | *Richard Levitte* | |
5089 | ||
5090 | * The GOST engine was out of date and therefore it has been removed. An up | |
5091 | to date GOST engine is now being maintained in an external repository. | |
257e9d03 | 5092 | See: <https://wiki.openssl.org/index.php/Binaries>. Libssl still retains |
5f8e6c50 DMSP |
5093 | support for GOST ciphersuites (these are only activated if a GOST engine |
5094 | is present). | |
5095 | ||
5096 | *Matt Caswell* | |
5097 | ||
5098 | * EGD is no longer supported by default; use enable-egd when | |
5099 | configuring. | |
5100 | ||
5101 | *Ben Kaduk and Rich Salz* | |
5102 | ||
5103 | * The distribution now has Makefile.in files, which are used to | |
5104 | create Makefile's when Configure is run. *Configure must be run | |
5105 | before trying to build now.* | |
5106 | ||
5107 | *Rich Salz* | |
5108 | ||
5109 | * The return value for SSL_CIPHER_description() for error conditions | |
5110 | has changed. | |
5111 | ||
5112 | *Rich Salz* | |
5113 | ||
5114 | * Support for RFC6698/RFC7671 DANE TLSA peer authentication. | |
5115 | ||
5116 | Obtaining and performing DNSSEC validation of TLSA records is | |
5117 | the application's responsibility. The application provides | |
5118 | the TLSA records of its choice to OpenSSL, and these are then | |
5119 | used to authenticate the peer. | |
5120 | ||
5121 | The TLSA records need not even come from DNS. They can, for | |
5122 | example, be used to implement local end-entity certificate or | |
5123 | trust-anchor "pinning", where the "pin" data takes the form | |
5124 | of TLSA records, which can augment or replace verification | |
5125 | based on the usual WebPKI public certification authorities. | |
5126 | ||
5127 | *Viktor Dukhovni* | |
5128 | ||
5129 | * Revert default OPENSSL_NO_DEPRECATED setting. Instead OpenSSL | |
5130 | continues to support deprecated interfaces in default builds. | |
5131 | However, applications are strongly advised to compile their | |
5132 | source files with -DOPENSSL_API_COMPAT=0x10100000L, which hides | |
5133 | the declarations of all interfaces deprecated in 0.9.8, 1.0.0 | |
5134 | or the 1.1.0 releases. | |
5135 | ||
5136 | In environments in which all applications have been ported to | |
5137 | not use any deprecated interfaces OpenSSL's Configure script | |
5138 | should be used with the --api=1.1.0 option to entirely remove | |
5139 | support for the deprecated features from the library and | |
5140 | unconditionally disable them in the installed headers. | |
5141 | Essentially the same effect can be achieved with the "no-deprecated" | |
5142 | argument to Configure, except that this will always restrict | |
5143 | the build to just the latest API, rather than a fixed API | |
5144 | version. | |
5145 | ||
5146 | As applications are ported to future revisions of the API, | |
5147 | they should update their compile-time OPENSSL_API_COMPAT define | |
5148 | accordingly, but in most cases should be able to continue to | |
5149 | compile with later releases. | |
5150 | ||
5151 | The OPENSSL_API_COMPAT versions for 1.0.0, and 0.9.8 are | |
5152 | 0x10000000L and 0x00908000L, respectively. However those | |
5153 | versions did not support the OPENSSL_API_COMPAT feature, and | |
5154 | so applications are not typically tested for explicit support | |
5155 | of just the undeprecated features of either release. | |
5156 | ||
5157 | *Viktor Dukhovni* | |
5158 | ||
5159 | * Add support for setting the minimum and maximum supported protocol. | |
5160 | It can bet set via the SSL_set_min_proto_version() and | |
5161 | SSL_set_max_proto_version(), or via the SSL_CONF's MinProtocol and | |
5162 | MaxProtocol. It's recommended to use the new APIs to disable | |
5163 | protocols instead of disabling individual protocols using | |
5164 | SSL_set_options() or SSL_CONF's Protocol. This change also | |
5165 | removes support for disabling TLS 1.2 in the OpenSSL TLS | |
5166 | client at compile time by defining OPENSSL_NO_TLS1_2_CLIENT. | |
5167 | ||
5168 | *Kurt Roeckx* | |
5169 | ||
5170 | * Support for ChaCha20 and Poly1305 added to libcrypto and libssl. | |
5171 | ||
5172 | *Andy Polyakov* | |
5173 | ||
5174 | * New EC_KEY_METHOD, this replaces the older ECDSA_METHOD and ECDH_METHOD | |
5175 | and integrates ECDSA and ECDH functionality into EC. Implementations can | |
5176 | now redirect key generation and no longer need to convert to or from | |
5177 | ECDSA_SIG format. | |
5178 | ||
5179 | Note: the ecdsa.h and ecdh.h headers are now no longer needed and just | |
5180 | include the ec.h header file instead. | |
5181 | ||
5182 | *Steve Henson* | |
5183 | ||
5184 | * Remove support for all 40 and 56 bit ciphers. This includes all the export | |
5185 | ciphers who are no longer supported and drops support the ephemeral RSA key | |
5186 | exchange. The LOW ciphers currently doesn't have any ciphers in it. | |
5187 | ||
5188 | *Kurt Roeckx* | |
5189 | ||
5190 | * Made EVP_MD_CTX, EVP_MD, EVP_CIPHER_CTX, EVP_CIPHER and HMAC_CTX | |
5191 | opaque. For HMAC_CTX, the following constructors and destructors | |
5192 | were added: | |
5193 | ||
1dc1ea18 DDO |
5194 | HMAC_CTX *HMAC_CTX_new(void); |
5195 | void HMAC_CTX_free(HMAC_CTX *ctx); | |
5f8e6c50 DMSP |
5196 | |
5197 | For EVP_MD and EVP_CIPHER, complete APIs to create, fill and | |
5198 | destroy such methods has been added. See EVP_MD_meth_new(3) and | |
5199 | EVP_CIPHER_meth_new(3) for documentation. | |
5200 | ||
5201 | Additional changes: | |
1dc1ea18 DDO |
5202 | 1) `EVP_MD_CTX_cleanup()`, `EVP_CIPHER_CTX_cleanup()` and |
5203 | `HMAC_CTX_cleanup()` were removed. `HMAC_CTX_reset()` and | |
5204 | `EVP_MD_CTX_reset()` should be called instead to reinitialise | |
5f8e6c50 DMSP |
5205 | an already created structure. |
5206 | 2) For consistency with the majority of our object creators and | |
1dc1ea18 DDO |
5207 | destructors, `EVP_MD_CTX_(create|destroy)` were renamed to |
5208 | `EVP_MD_CTX_(new|free)`. The old names are retained as macros | |
5f8e6c50 DMSP |
5209 | for deprecated builds. |
5210 | ||
5211 | *Richard Levitte* | |
5212 | ||
5213 | * Added ASYNC support. Libcrypto now includes the async sub-library to enable | |
5214 | cryptographic operations to be performed asynchronously as long as an | |
5215 | asynchronous capable engine is used. See the ASYNC_start_job() man page for | |
5216 | further details. Libssl has also had this capability integrated with the | |
5217 | introduction of the new mode SSL_MODE_ASYNC and associated error | |
5218 | SSL_ERROR_WANT_ASYNC. See the SSL_CTX_set_mode() and SSL_get_error() man | |
5219 | pages. This work was developed in partnership with Intel Corp. | |
5220 | ||
5221 | *Matt Caswell* | |
5222 | ||
5223 | * SSL_{CTX_}set_ecdh_auto() has been removed and ECDH is support is | |
5224 | always enabled now. If you want to disable the support you should | |
5225 | exclude it using the list of supported ciphers. This also means that the | |
5226 | "-no_ecdhe" option has been removed from s_server. | |
5227 | ||
5228 | *Kurt Roeckx* | |
5229 | ||
5230 | * SSL_{CTX}_set_tmp_ecdh() which can set 1 EC curve now internally calls | |
5231 | SSL_{CTX_}set1_curves() which can set a list. | |
5232 | ||
5233 | *Kurt Roeckx* | |
5234 | ||
5235 | * Remove support for SSL_{CTX_}set_tmp_ecdh_callback(). You should set the | |
5236 | curve you want to support using SSL_{CTX_}set1_curves(). | |
5237 | ||
5238 | *Kurt Roeckx* | |
5239 | ||
5240 | * State machine rewrite. The state machine code has been significantly | |
5241 | refactored in order to remove much duplication of code and solve issues | |
036cbb6b DDO |
5242 | with the old code (see [ssl/statem/README.md](ssl/statem/README.md) for |
5243 | further details). This change does have some associated API changes. | |
5244 | Notably the SSL_state() function has been removed and replaced by | |
5245 | SSL_get_state which now returns an "OSSL_HANDSHAKE_STATE" instead of an int. | |
5246 | SSL_set_state() has been removed altogether. The previous handshake states | |
5247 | defined in ssl.h and ssl3.h have also been removed. | |
5f8e6c50 DMSP |
5248 | |
5249 | *Matt Caswell* | |
5250 | ||
5251 | * All instances of the string "ssleay" in the public API were replaced | |
5252 | with OpenSSL (case-matching; e.g., OPENSSL_VERSION for #define's) | |
5253 | Some error codes related to internal RSA_eay API's were renamed. | |
5254 | ||
5255 | *Rich Salz* | |
5256 | ||
5257 | * The demo files in crypto/threads were moved to demo/threads. | |
5258 | ||
5259 | *Rich Salz* | |
5260 | ||
5261 | * Removed obsolete engines: 4758cca, aep, atalla, cswift, nuron, gmp, | |
5262 | sureware and ubsec. | |
5263 | ||
5264 | *Matt Caswell, Rich Salz* | |
5265 | ||
5266 | * New ASN.1 embed macro. | |
5267 | ||
5268 | New ASN.1 macro ASN1_EMBED. This is the same as ASN1_SIMPLE except the | |
5269 | structure is not allocated: it is part of the parent. That is instead of | |
5270 | ||
5271 | FOO *x; | |
5272 | ||
5273 | it must be: | |
5274 | ||
5275 | FOO x; | |
5276 | ||
5277 | This reduces memory fragmentation and make it impossible to accidentally | |
5278 | set a mandatory field to NULL. | |
5279 | ||
5280 | This currently only works for some fields specifically a SEQUENCE, CHOICE, | |
5281 | or ASN1_STRING type which is part of a parent SEQUENCE. Since it is | |
5282 | equivalent to ASN1_SIMPLE it cannot be tagged, OPTIONAL, SET OF or | |
5283 | SEQUENCE OF. | |
5284 | ||
5285 | *Steve Henson* | |
5286 | ||
5287 | * Remove EVP_CHECK_DES_KEY, a compile-time option that never compiled. | |
5288 | ||
5289 | *Emilia Käsper* | |
5290 | ||
5291 | * Removed DES and RC4 ciphersuites from DEFAULT. Also removed RC2 although | |
5292 | in 1.0.2 EXPORT was already removed and the only RC2 ciphersuite is also | |
5293 | an EXPORT one. COMPLEMENTOFDEFAULT has been updated accordingly to add | |
5294 | DES and RC4 ciphersuites. | |
5295 | ||
5296 | *Matt Caswell* | |
5297 | ||
5298 | * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs. | |
5299 | This changes the decoding behaviour for some invalid messages, | |
5300 | though the change is mostly in the more lenient direction, and | |
5301 | legacy behaviour is preserved as much as possible. | |
5302 | ||
5303 | *Emilia Käsper* | |
5304 | ||
5305 | * Fix no-stdio build. | |
1dc1ea18 DDO |
5306 | *David Woodhouse <David.Woodhouse@intel.com> and also* |
5307 | *Ivan Nestlerode <ivan.nestlerode@sonos.com>* | |
5f8e6c50 DMSP |
5308 | |
5309 | * New testing framework | |
5310 | The testing framework has been largely rewritten and is now using | |
5311 | perl and the perl modules Test::Harness and an extended variant of | |
5312 | Test::More called OpenSSL::Test to do its work. All test scripts in | |
5313 | test/ have been rewritten into test recipes, and all direct calls to | |
5314 | executables in test/Makefile have become individual recipes using the | |
5315 | simplified testing OpenSSL::Test::Simple. | |
5316 | ||
5317 | For documentation on our testing modules, do: | |
5318 | ||
5319 | perldoc test/testlib/OpenSSL/Test/Simple.pm | |
5320 | perldoc test/testlib/OpenSSL/Test.pm | |
5321 | ||
5322 | *Richard Levitte* | |
5323 | ||
5324 | * Revamped memory debug; only -DCRYPTO_MDEBUG and -DCRYPTO_MDEBUG_ABORT | |
5325 | are used; the latter aborts on memory leaks (usually checked on exit). | |
5326 | Some undocumented "set malloc, etc., hooks" functions were removed | |
5327 | and others were changed. All are now documented. | |
5328 | ||
5329 | *Rich Salz* | |
5330 | ||
5331 | * In DSA_generate_parameters_ex, if the provided seed is too short, | |
5332 | return an error | |
5333 | ||
5334 | *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>* | |
5335 | ||
5336 | * Rewrite PSK to support ECDHE_PSK, DHE_PSK and RSA_PSK. Add ciphersuites | |
5337 | from RFC4279, RFC4785, RFC5487, RFC5489. | |
5338 | ||
5339 | Thanks to Christian J. Dietrich and Giuseppe D'Angelo for the | |
5340 | original RSA_PSK patch. | |
5341 | ||
5342 | *Steve Henson* | |
5343 | ||
5344 | * Dropped support for the SSL3_FLAGS_DELAY_CLIENT_FINISHED flag. This SSLeay | |
5345 | era flag was never set throughout the codebase (only read). Also removed | |
5346 | SSL3_FLAGS_POP_BUFFER which was only used if | |
5347 | SSL3_FLAGS_DELAY_CLIENT_FINISHED was also set. | |
5348 | ||
5349 | *Matt Caswell* | |
5350 | ||
5351 | * Changed the default name options in the "ca", "crl", "req" and "x509" | |
5352 | to be "oneline" instead of "compat". | |
5353 | ||
5354 | *Richard Levitte* | |
5355 | ||
5356 | * Remove SSL_OP_TLS_BLOCK_PADDING_BUG. This is SSLeay legacy, we're | |
5357 | not aware of clients that still exhibit this bug, and the workaround | |
5358 | hasn't been working properly for a while. | |
5359 | ||
5360 | *Emilia Käsper* | |
5361 | ||
5362 | * The return type of BIO_number_read() and BIO_number_written() as well as | |
5363 | the corresponding num_read and num_write members in the BIO structure has | |
5364 | changed from unsigned long to uint64_t. On platforms where an unsigned | |
5365 | long is 32 bits (e.g. Windows) these counters could overflow if >4Gb is | |
5366 | transferred. | |
5367 | ||
5368 | *Matt Caswell* | |
5369 | ||
5370 | * Given the pervasive nature of TLS extensions it is inadvisable to run | |
5371 | OpenSSL without support for them. It also means that maintaining | |
5372 | the OPENSSL_NO_TLSEXT option within the code is very invasive (and probably | |
d7f3a2cc | 5373 | not well tested). Therefore, the OPENSSL_NO_TLSEXT option has been removed. |
5f8e6c50 DMSP |
5374 | |
5375 | *Matt Caswell* | |
5376 | ||
5377 | * Removed support for the two export grade static DH ciphersuites | |
5378 | EXP-DH-RSA-DES-CBC-SHA and EXP-DH-DSS-DES-CBC-SHA. These two ciphersuites | |
5379 | were newly added (along with a number of other static DH ciphersuites) to | |
5380 | 1.0.2. However the two export ones have *never* worked since they were | |
5381 | introduced. It seems strange in any case to be adding new export | |
5382 | ciphersuites, and given "logjam" it also does not seem correct to fix them. | |
5383 | ||
5384 | *Matt Caswell* | |
5385 | ||
5386 | * Version negotiation has been rewritten. In particular SSLv23_method(), | |
5387 | SSLv23_client_method() and SSLv23_server_method() have been deprecated, | |
5388 | and turned into macros which simply call the new preferred function names | |
5389 | TLS_method(), TLS_client_method() and TLS_server_method(). All new code | |
5390 | should use the new names instead. Also as part of this change the ssl23.h | |
5391 | header file has been removed. | |
5392 | ||
5393 | *Matt Caswell* | |
5394 | ||
5395 | * Support for Kerberos ciphersuites in TLS (RFC2712) has been removed. This | |
5396 | code and the associated standard is no longer considered fit-for-purpose. | |
5397 | ||
5398 | *Matt Caswell* | |
5399 | ||
5400 | * RT2547 was closed. When generating a private key, try to make the | |
5401 | output file readable only by the owner. This behavior change might | |
5402 | be noticeable when interacting with other software. | |
5403 | ||
5404 | * Documented all exdata functions. Added CRYPTO_free_ex_index. | |
5405 | Added a test. | |
5406 | ||
5407 | *Rich Salz* | |
5408 | ||
5409 | * Added HTTP GET support to the ocsp command. | |
5410 | ||
5411 | *Rich Salz* | |
5412 | ||
5413 | * Changed default digest for the dgst and enc commands from MD5 to | |
5414 | sha256 | |
5415 | ||
5416 | *Rich Salz* | |
5417 | ||
5418 | * RAND_pseudo_bytes has been deprecated. Users should use RAND_bytes instead. | |
5419 | ||
5420 | *Matt Caswell* | |
5421 | ||
5422 | * Added support for TLS extended master secret from | |
5423 | draft-ietf-tls-session-hash-03.txt. Thanks for Alfredo Pironti for an | |
5424 | initial patch which was a great help during development. | |
5425 | ||
5426 | *Steve Henson* | |
5427 | ||
5428 | * All libssl internal structures have been removed from the public header | |
5429 | files, and the OPENSSL_NO_SSL_INTERN option has been removed (since it is | |
5430 | now redundant). Users should not attempt to access internal structures | |
5431 | directly. Instead they should use the provided API functions. | |
5432 | ||
5433 | *Matt Caswell* | |
5434 | ||
5435 | * config has been changed so that by default OPENSSL_NO_DEPRECATED is used. | |
5436 | Access to deprecated functions can be re-enabled by running config with | |
5437 | "enable-deprecated". In addition applications wishing to use deprecated | |
5438 | functions must define OPENSSL_USE_DEPRECATED. Note that this new behaviour | |
5439 | will, by default, disable some transitive includes that previously existed | |
5440 | in the header files (e.g. ec.h will no longer, by default, include bn.h) | |
5441 | ||
5442 | *Matt Caswell* | |
5443 | ||
5444 | * Added support for OCB mode. OpenSSL has been granted a patent license | |
5445 | compatible with the OpenSSL license for use of OCB. Details are available | |
257e9d03 | 5446 | at <https://www.openssl.org/source/OCB-patent-grant-OpenSSL.pdf>. Support |
5f8e6c50 DMSP |
5447 | for OCB can be removed by calling config with no-ocb. |
5448 | ||
5449 | *Matt Caswell* | |
5450 | ||
d7f3a2cc | 5451 | * SSLv2 support has been removed. It still supports receiving an SSLv2 |
5f8e6c50 DMSP |
5452 | compatible client hello. |
5453 | ||
5454 | *Kurt Roeckx* | |
5455 | ||
5456 | * Increased the minimal RSA keysize from 256 to 512 bits [Rich Salz], | |
5457 | done while fixing the error code for the key-too-small case. | |
5458 | ||
5459 | *Annie Yousar <a.yousar@informatik.hu-berlin.de>* | |
5460 | ||
5461 | * CA.sh has been removed; use CA.pl instead. | |
5462 | ||
5463 | *Rich Salz* | |
5464 | ||
5465 | * Removed old DES API. | |
5466 | ||
5467 | *Rich Salz* | |
5468 | ||
5469 | * Remove various unsupported platforms: | |
5470 | Sony NEWS4 | |
5471 | BEOS and BEOS_R5 | |
5472 | NeXT | |
5473 | SUNOS | |
5474 | MPE/iX | |
5475 | Sinix/ReliantUNIX RM400 | |
5476 | DGUX | |
5477 | NCR | |
5478 | Tandem | |
5479 | Cray | |
5480 | 16-bit platforms such as WIN16 | |
5481 | ||
5482 | *Rich Salz* | |
5483 | ||
5484 | * Clean up OPENSSL_NO_xxx #define's | |
257e9d03 RS |
5485 | - Use setbuf() and remove OPENSSL_NO_SETVBUF_IONBF |
5486 | - Rename OPENSSL_SYSNAME_xxx to OPENSSL_SYS_xxx | |
5487 | - OPENSSL_NO_EC{DH,DSA} merged into OPENSSL_NO_EC | |
5488 | - OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160 | |
5489 | - OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO | |
5490 | - Remove OPENSSL_NO_BIO OPENSSL_NO_BUFFER OPENSSL_NO_CHAIN_VERIFY | |
5491 | OPENSSL_NO_EVP OPENSSL_NO_FIPS_ERR OPENSSL_NO_HASH_COMP | |
5492 | OPENSSL_NO_LHASH OPENSSL_NO_OBJECT OPENSSL_NO_SPEED OPENSSL_NO_STACK | |
5493 | OPENSSL_NO_X509 OPENSSL_NO_X509_VERIFY | |
5494 | - Remove MS_STATIC; it's a relic from platforms <32 bits. | |
5f8e6c50 DMSP |
5495 | |
5496 | *Rich Salz* | |
5497 | ||
5498 | * Cleaned up dead code | |
5499 | Remove all but one '#ifdef undef' which is to be looked at. | |
5500 | ||
5501 | *Rich Salz* | |
5502 | ||
5503 | * Clean up calling of xxx_free routines. | |
5504 | Just like free(), fix most of the xxx_free routines to accept | |
5505 | NULL. Remove the non-null checks from callers. Save much code. | |
5506 | ||
5507 | *Rich Salz* | |
5508 | ||
5509 | * Add secure heap for storage of private keys (when possible). | |
5510 | Add BIO_s_secmem(), CBIGNUM, etc. | |
5511 | Contributed by Akamai Technologies under our Corporate CLA. | |
5512 | ||
5513 | *Rich Salz* | |
5514 | ||
5515 | * Experimental support for a new, fast, unbiased prime candidate generator, | |
5516 | bn_probable_prime_dh_coprime(). Not currently used by any prime generator. | |
5517 | ||
5518 | *Felix Laurie von Massenbach <felix@erbridge.co.uk>* | |
5519 | ||
5520 | * New output format NSS in the sess_id command line tool. This allows | |
5521 | exporting the session id and the master key in NSS keylog format. | |
5522 | ||
5523 | *Martin Kaiser <martin@kaiser.cx>* | |
5524 | ||
5525 | * Harmonize version and its documentation. -f flag is used to display | |
5526 | compilation flags. | |
5527 | ||
5528 | *mancha <mancha1@zoho.com>* | |
5529 | ||
5530 | * Fix eckey_priv_encode so it immediately returns an error upon a failure | |
5531 | in i2d_ECPrivateKey. Thanks to Ted Unangst for feedback on this issue. | |
5532 | ||
5533 | *mancha <mancha1@zoho.com>* | |
5534 | ||
5535 | * Fix some double frees. These are not thought to be exploitable. | |
5536 | ||
5537 | *mancha <mancha1@zoho.com>* | |
5538 | ||
5539 | * A missing bounds check in the handling of the TLS heartbeat extension | |
5540 | can be used to reveal up to 64k of memory to a connected client or | |
5541 | server. | |
5542 | ||
5543 | Thanks for Neel Mehta of Google Security for discovering this bug and to | |
5544 | Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for | |
d8dc8538 | 5545 | preparing the fix ([CVE-2014-0160]) |
5f8e6c50 DMSP |
5546 | |
5547 | *Adam Langley, Bodo Moeller* | |
5548 | ||
5549 | * Fix for the attack described in the paper "Recovering OpenSSL | |
5550 | ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack" | |
5551 | by Yuval Yarom and Naomi Benger. Details can be obtained from: | |
257e9d03 | 5552 | <http://eprint.iacr.org/2014/140> |
5f8e6c50 DMSP |
5553 | |
5554 | Thanks to Yuval Yarom and Naomi Benger for discovering this | |
d8dc8538 | 5555 | flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076]) |
5f8e6c50 DMSP |
5556 | |
5557 | *Yuval Yarom and Naomi Benger* | |
5558 | ||
5559 | * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file(): | |
5560 | this fixes a limitation in previous versions of OpenSSL. | |
5561 | ||
5562 | *Steve Henson* | |
5563 | ||
5564 | * Experimental encrypt-then-mac support. | |
5565 | ||
5566 | Experimental support for encrypt then mac from | |
5567 | draft-gutmann-tls-encrypt-then-mac-02.txt | |
5568 | ||
5569 | To enable it set the appropriate extension number (0x42 for the test | |
5570 | server) using e.g. -DTLSEXT_TYPE_encrypt_then_mac=0x42 | |
5571 | ||
5572 | For non-compliant peers (i.e. just about everything) this should have no | |
5573 | effect. | |
5574 | ||
5575 | WARNING: EXPERIMENTAL, SUBJECT TO CHANGE. | |
5576 | ||
5f8e6c50 DMSP |
5577 | *Steve Henson* |
5578 | ||
5579 | * Add EVP support for key wrapping algorithms, to avoid problems with | |
5580 | existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in | |
5581 | the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap | |
5582 | algorithms and include tests cases. | |
5583 | ||
5584 | *Steve Henson* | |
5585 | ||
5586 | * Extend CMS code to support RSA-PSS signatures and RSA-OAEP for | |
5587 | enveloped data. | |
5588 | ||
5589 | *Steve Henson* | |
5590 | ||
5591 | * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest, | |
5592 | MGF1 digest and OAEP label. | |
5593 | ||
5594 | *Steve Henson* | |
5595 | ||
5596 | * Make openssl verify return errors. | |
5597 | ||
5598 | *Chris Palmer <palmer@google.com> and Ben Laurie* | |
5599 | ||
5600 | * New function ASN1_TIME_diff to calculate the difference between two | |
5601 | ASN1_TIME structures or one structure and the current time. | |
5602 | ||
5603 | *Steve Henson* | |
5604 | ||
5605 | * Update fips_test_suite to support multiple command line options. New | |
5606 | test to induce all self test errors in sequence and check expected | |
5607 | failures. | |
5608 | ||
5609 | *Steve Henson* | |
5610 | ||
5611 | * Add FIPS_{rsa,dsa,ecdsa}_{sign,verify} functions which digest and | |
5612 | sign or verify all in one operation. | |
5613 | ||
5614 | *Steve Henson* | |
5615 | ||
5616 | * Add fips_algvs: a multicall fips utility incorporating all the algorithm | |
5617 | test programs and fips_test_suite. Includes functionality to parse | |
5618 | the minimal script output of fipsalgest.pl directly. | |
5619 | ||
5620 | *Steve Henson* | |
5621 | ||
5622 | * Add authorisation parameter to FIPS_module_mode_set(). | |
5623 | ||
5624 | *Steve Henson* | |
5625 | ||
5626 | * Add FIPS selftest for ECDH algorithm using P-224 and B-233 curves. | |
5627 | ||
5628 | *Steve Henson* | |
5629 | ||
5630 | * Use separate DRBG fields for internal and external flags. New function | |
5631 | FIPS_drbg_health_check() to perform on demand health checking. Add | |
5632 | generation tests to fips_test_suite with reduced health check interval to | |
5633 | demonstrate periodic health checking. Add "nodh" option to | |
5634 | fips_test_suite to skip very slow DH test. | |
5635 | ||
5636 | *Steve Henson* | |
5637 | ||
5638 | * New function FIPS_get_cipherbynid() to lookup FIPS supported ciphers | |
5639 | based on NID. | |
5640 | ||
5641 | *Steve Henson* | |
5642 | ||
5643 | * More extensive health check for DRBG checking many more failure modes. | |
5644 | New function FIPS_selftest_drbg_all() to handle every possible DRBG | |
5645 | combination: call this in fips_test_suite. | |
5646 | ||
5647 | *Steve Henson* | |
5648 | ||
5649 | * Add support for canonical generation of DSA parameter 'g'. See | |
5650 | FIPS 186-3 A.2.3. | |
5651 | ||
5652 | * Add support for HMAC DRBG from SP800-90. Update DRBG algorithm test and | |
5653 | POST to handle HMAC cases. | |
5654 | ||
5655 | *Steve Henson* | |
5656 | ||
5657 | * Add functions FIPS_module_version() and FIPS_module_version_text() | |
5658 | to return numerical and string versions of the FIPS module number. | |
5659 | ||
5660 | *Steve Henson* | |
5661 | ||
5662 | * Rename FIPS_mode_set and FIPS_mode to FIPS_module_mode_set and | |
5663 | FIPS_module_mode. FIPS_mode and FIPS_mode_set will be implemented | |
5664 | outside the validated module in the FIPS capable OpenSSL. | |
5665 | ||
5666 | *Steve Henson* | |
5667 | ||
5668 | * Minor change to DRBG entropy callback semantics. In some cases | |
5669 | there is no multiple of the block length between min_len and | |
5670 | max_len. Allow the callback to return more than max_len bytes | |
5671 | of entropy but discard any extra: it is the callback's responsibility | |
5672 | to ensure that the extra data discarded does not impact the | |
5673 | requested amount of entropy. | |
5674 | ||
5675 | *Steve Henson* | |
5676 | ||
5677 | * Add PRNG security strength checks to RSA, DSA and ECDSA using | |
5678 | information in FIPS186-3, SP800-57 and SP800-131A. | |
5679 | ||
5680 | *Steve Henson* | |
5681 | ||
5682 | * CCM support via EVP. Interface is very similar to GCM case except we | |
5683 | must supply all data in one chunk (i.e. no update, final) and the | |
5684 | message length must be supplied if AAD is used. Add algorithm test | |
5685 | support. | |
5686 | ||
5687 | *Steve Henson* | |
5688 | ||
5689 | * Initial version of POST overhaul. Add POST callback to allow the status | |
5690 | of POST to be monitored and/or failures induced. Modify fips_test_suite | |
5691 | to use callback. Always run all selftests even if one fails. | |
5692 | ||
5693 | *Steve Henson* | |
5694 | ||
5695 | * XTS support including algorithm test driver in the fips_gcmtest program. | |
5696 | Note: this does increase the maximum key length from 32 to 64 bytes but | |
5697 | there should be no binary compatibility issues as existing applications | |
5698 | will never use XTS mode. | |
5699 | ||
5700 | *Steve Henson* | |
5701 | ||
5702 | * Extensive reorganisation of FIPS PRNG behaviour. Remove all dependencies | |
5703 | to OpenSSL RAND code and replace with a tiny FIPS RAND API which also | |
5704 | performs algorithm blocking for unapproved PRNG types. Also do not | |
5705 | set PRNG type in FIPS_mode_set(): leave this to the application. | |
5706 | Add default OpenSSL DRBG handling: sets up FIPS PRNG and seeds with | |
5707 | the standard OpenSSL PRNG: set additional data to a date time vector. | |
5708 | ||
5709 | *Steve Henson* | |
5710 | ||
1dc1ea18 | 5711 | * Rename old X9.31 PRNG functions of the form `FIPS_rand*` to `FIPS_x931*`. |
5f8e6c50 DMSP |
5712 | This shouldn't present any incompatibility problems because applications |
5713 | shouldn't be using these directly and any that are will need to rethink | |
5714 | anyway as the X9.31 PRNG is now deprecated by FIPS 140-2 | |
5715 | ||
5716 | *Steve Henson* | |
5717 | ||
5718 | * Extensive self tests and health checking required by SP800-90 DRBG. | |
5719 | Remove strength parameter from FIPS_drbg_instantiate and always | |
5720 | instantiate at maximum supported strength. | |
5721 | ||
5722 | *Steve Henson* | |
5723 | ||
5724 | * Add ECDH code to fips module and fips_ecdhvs for primitives only testing. | |
5725 | ||
5726 | *Steve Henson* | |
5727 | ||
5728 | * New algorithm test program fips_dhvs to handle DH primitives only testing. | |
5729 | ||
5730 | *Steve Henson* | |
5731 | ||
5732 | * New function DH_compute_key_padded() to compute a DH key and pad with | |
5733 | leading zeroes if needed: this complies with SP800-56A et al. | |
5734 | ||
5735 | *Steve Henson* | |
5736 | ||
5737 | * Initial implementation of SP800-90 DRBGs for Hash and CTR. Not used by | |
5738 | anything, incomplete, subject to change and largely untested at present. | |
5739 | ||
5740 | *Steve Henson* | |
5741 | ||
5742 | * Modify fipscanisteronly build option to only build the necessary object | |
5743 | files by filtering FIPS_EX_OBJ through a perl script in crypto/Makefile. | |
5744 | ||
5745 | *Steve Henson* | |
5746 | ||
5747 | * Add experimental option FIPSSYMS to give all symbols in | |
5748 | fipscanister.o and FIPS or fips prefix. This will avoid | |
5749 | conflicts with future versions of OpenSSL. Add perl script | |
5750 | util/fipsas.pl to preprocess assembly language source files | |
5751 | and rename any affected symbols. | |
5752 | ||
5753 | *Steve Henson* | |
5754 | ||
5755 | * Add selftest checks and algorithm block of non-fips algorithms in | |
5756 | FIPS mode. Remove DES2 from selftests. | |
5757 | ||
5758 | *Steve Henson* | |
5759 | ||
5760 | * Add ECDSA code to fips module. Add tiny fips_ecdsa_check to just | |
5761 | return internal method without any ENGINE dependencies. Add new | |
5762 | tiny fips sign and verify functions. | |
5763 | ||
5764 | *Steve Henson* | |
5765 | ||
5766 | * New build option no-ec2m to disable characteristic 2 code. | |
5767 | ||
5768 | *Steve Henson* | |
5769 | ||
5770 | * New build option "fipscanisteronly". This only builds fipscanister.o | |
5771 | and (currently) associated fips utilities. Uses the file Makefile.fips | |
5772 | instead of Makefile.org as the prototype. | |
5773 | ||
5774 | *Steve Henson* | |
5775 | ||
5776 | * Add some FIPS mode restrictions to GCM. Add internal IV generator. | |
5777 | Update fips_gcmtest to use IV generator. | |
5778 | ||
5779 | *Steve Henson* | |
5780 | ||
5781 | * Initial, experimental EVP support for AES-GCM. AAD can be input by | |
257e9d03 | 5782 | setting output buffer to NULL. The `*Final` function must be |
5f8e6c50 DMSP |
5783 | called although it will not retrieve any additional data. The tag |
5784 | can be set or retrieved with a ctrl. The IV length is by default 12 | |
5785 | bytes (96 bits) but can be set to an alternative value. If the IV | |
5786 | length exceeds the maximum IV length (currently 16 bytes) it cannot be | |
5787 | set before the key. | |
5788 | ||
5789 | *Steve Henson* | |
5790 | ||
5791 | * New flag in ciphers: EVP_CIPH_FLAG_CUSTOM_CIPHER. This means the | |
5792 | underlying do_cipher function handles all cipher semantics itself | |
5793 | including padding and finalisation. This is useful if (for example) | |
5794 | an ENGINE cipher handles block padding itself. The behaviour of | |
5795 | do_cipher is subtly changed if this flag is set: the return value | |
5796 | is the number of characters written to the output buffer (zero is | |
5797 | no longer an error code) or a negative error code. Also if the | |
5798 | input buffer is NULL and length 0 finalisation should be performed. | |
5799 | ||
5800 | *Steve Henson* | |
5801 | ||
5802 | * If a candidate issuer certificate is already part of the constructed | |
5803 | path ignore it: new debug notification X509_V_ERR_PATH_LOOP for this case. | |
5804 | ||
5805 | *Steve Henson* | |
5806 | ||
5807 | * Improve forward-security support: add functions | |
5808 | ||
5809 | void SSL_CTX_set_not_resumable_session_callback( | |
5810 | SSL_CTX *ctx, int (*cb)(SSL *ssl, int is_forward_secure)) | |
5811 | void SSL_set_not_resumable_session_callback( | |
5812 | SSL *ssl, int (*cb)(SSL *ssl, int is_forward_secure)) | |
5813 | ||
5814 | for use by SSL/TLS servers; the callback function will be called whenever a | |
5815 | new session is created, and gets to decide whether the session may be | |
5816 | cached to make it resumable (return 0) or not (return 1). (As by the | |
5817 | SSL/TLS protocol specifications, the session_id sent by the server will be | |
5818 | empty to indicate that the session is not resumable; also, the server will | |
5819 | not generate RFC 4507 (RFC 5077) session tickets.) | |
5820 | ||
5821 | A simple reasonable callback implementation is to return is_forward_secure. | |
5822 | This parameter will be set to 1 or 0 depending on the ciphersuite selected | |
5823 | by the SSL/TLS server library, indicating whether it can provide forward | |
5824 | security. | |
5825 | ||
5826 | *Emilia Käsper <emilia.kasper@esat.kuleuven.be> (Google)* | |
5827 | ||
5828 | * New -verify_name option in command line utilities to set verification | |
5829 | parameters by name. | |
5830 | ||
5831 | *Steve Henson* | |
5832 | ||
5833 | * Initial CMAC implementation. WARNING: EXPERIMENTAL, API MAY CHANGE. | |
5834 | Add CMAC pkey methods. | |
5835 | ||
5836 | *Steve Henson* | |
5837 | ||
5838 | * Experimental renegotiation in s_server -www mode. If the client | |
5839 | browses /reneg connection is renegotiated. If /renegcert it is | |
5840 | renegotiated requesting a certificate. | |
5841 | ||
5842 | *Steve Henson* | |
5843 | ||
5844 | * Add an "external" session cache for debugging purposes to s_server. This | |
5845 | should help trace issues which normally are only apparent in deployed | |
5846 | multi-process servers. | |
5847 | ||
5848 | *Steve Henson* | |
5849 | ||
5850 | * Extensive audit of libcrypto with DEBUG_UNUSED. Fix many cases where | |
5851 | return value is ignored. NB. The functions RAND_add(), RAND_seed(), | |
5852 | BIO_set_cipher() and some obscure PEM functions were changed so they | |
5853 | can now return an error. The RAND changes required a change to the | |
5854 | RAND_METHOD structure. | |
5855 | ||
5856 | *Steve Henson* | |
5857 | ||
44652c16 | 5858 | * New macro `__owur` for "OpenSSL Warn Unused Result". This makes use of |
5f8e6c50 DMSP |
5859 | a gcc attribute to warn if the result of a function is ignored. This |
5860 | is enable if DEBUG_UNUSED is set. Add to several functions in evp.h | |
5861 | whose return value is often ignored. | |
5862 | ||
5863 | *Steve Henson* | |
5864 | ||
5865 | * New -noct, -requestct, -requirect and -ctlogfile options for s_client. | |
5866 | These allow SCTs (signed certificate timestamps) to be requested and | |
5867 | validated when establishing a connection. | |
5868 | ||
5869 | *Rob Percival <robpercival@google.com>* | |
5870 | ||
44652c16 DMSP |
5871 | OpenSSL 1.0.2 |
5872 | ------------- | |
5f8e6c50 | 5873 | |
257e9d03 | 5874 | ### Changes between 1.0.2s and 1.0.2t [10 Sep 2019] |
5f8e6c50 | 5875 | |
44652c16 | 5876 | * For built-in EC curves, ensure an EC_GROUP built from the curve name is |
ece9304c | 5877 | used even when parsing explicit parameters, when loading a encoded key |
44652c16 DMSP |
5878 | or calling `EC_GROUP_new_from_ecpkparameters()`/ |
5879 | `EC_GROUP_new_from_ecparameters()`. | |
5880 | This prevents bypass of security hardening and performance gains, | |
5881 | especially for curves with specialized EC_METHODs. | |
5882 | By default, if a key encoded with explicit parameters is loaded and later | |
ece9304c | 5883 | encoded, the output is still encoded with explicit parameters, even if |
44652c16 | 5884 | internally a "named" EC_GROUP is used for computation. |
5f8e6c50 | 5885 | |
44652c16 | 5886 | *Nicola Tuveri* |
5f8e6c50 | 5887 | |
44652c16 DMSP |
5888 | * Compute ECC cofactors if not provided during EC_GROUP construction. Before |
5889 | this change, EC_GROUP_set_generator would accept order and/or cofactor as | |
5890 | NULL. After this change, only the cofactor parameter can be NULL. It also | |
5891 | does some minimal sanity checks on the passed order. | |
d8dc8538 | 5892 | ([CVE-2019-1547]) |
5f8e6c50 | 5893 | |
44652c16 | 5894 | *Billy Bob Brumley* |
5f8e6c50 | 5895 | |
44652c16 DMSP |
5896 | * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey. |
5897 | An attack is simple, if the first CMS_recipientInfo is valid but the | |
5898 | second CMS_recipientInfo is chosen ciphertext. If the second | |
5899 | recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct | |
5900 | encryption key will be replaced by garbage, and the message cannot be | |
5901 | decoded, but if the RSA decryption fails, the correct encryption key is | |
5902 | used and the recipient will not notice the attack. | |
5903 | As a work around for this potential attack the length of the decrypted | |
5904 | key must be equal to the cipher default key length, in case the | |
d7f3a2cc | 5905 | certificate is not given and all recipientInfo are tried out. |
44652c16 DMSP |
5906 | The old behaviour can be re-enabled in the CMS code by setting the |
5907 | CMS_DEBUG_DECRYPT flag. | |
d8dc8538 | 5908 | ([CVE-2019-1563]) |
5f8e6c50 | 5909 | |
44652c16 | 5910 | *Bernd Edlinger* |
5f8e6c50 | 5911 | |
44652c16 | 5912 | * Document issue with installation paths in diverse Windows builds |
5f8e6c50 | 5913 | |
44652c16 DMSP |
5914 | '/usr/local/ssl' is an unsafe prefix for location to install OpenSSL |
5915 | binaries and run-time config file. | |
d8dc8538 | 5916 | ([CVE-2019-1552]) |
5f8e6c50 | 5917 | |
44652c16 | 5918 | *Richard Levitte* |
5f8e6c50 | 5919 | |
257e9d03 | 5920 | ### Changes between 1.0.2r and 1.0.2s [28 May 2019] |
5f8e6c50 | 5921 | |
44652c16 | 5922 | * Change the default RSA, DSA and DH size to 2048 bit instead of 1024. |
ec2bfb7d DDO |
5923 | This changes the size when using the `genpkey` command when no size is given. |
5924 | It fixes an omission in earlier changes that changed all RSA, DSA and DH | |
5925 | generation commands to use 2048 bits by default. | |
5f8e6c50 | 5926 | |
44652c16 | 5927 | *Kurt Roeckx* |
5f8e6c50 | 5928 | |
44652c16 | 5929 | * Add FIPS support for Android Arm 64-bit |
5f8e6c50 | 5930 | |
44652c16 DMSP |
5931 | Support for Android Arm 64-bit was added to the OpenSSL FIPS Object |
5932 | Module in Version 2.0.10. For some reason, the corresponding target | |
5933 | 'android64-aarch64' was missing OpenSSL 1.0.2, whence it could not be | |
5934 | built with FIPS support on Android Arm 64-bit. This omission has been | |
5935 | fixed. | |
5f8e6c50 | 5936 | |
44652c16 | 5937 | *Matthias St. Pierre* |
5f8e6c50 | 5938 | |
257e9d03 | 5939 | ### Changes between 1.0.2q and 1.0.2r [26 Feb 2019] |
5f8e6c50 | 5940 | |
44652c16 | 5941 | * 0-byte record padding oracle |
5f8e6c50 | 5942 | |
44652c16 DMSP |
5943 | If an application encounters a fatal protocol error and then calls |
5944 | SSL_shutdown() twice (once to send a close_notify, and once to receive one) | |
5945 | then OpenSSL can respond differently to the calling application if a 0 byte | |
5946 | record is received with invalid padding compared to if a 0 byte record is | |
5947 | received with an invalid MAC. If the application then behaves differently | |
5948 | based on that in a way that is detectable to the remote peer, then this | |
5949 | amounts to a padding oracle that could be used to decrypt data. | |
5f8e6c50 | 5950 | |
44652c16 DMSP |
5951 | In order for this to be exploitable "non-stitched" ciphersuites must be in |
5952 | use. Stitched ciphersuites are optimised implementations of certain | |
5953 | commonly used ciphersuites. Also the application must call SSL_shutdown() | |
5954 | twice even if a protocol error has occurred (applications should not do | |
5955 | this but some do anyway). | |
5f8e6c50 | 5956 | |
44652c16 DMSP |
5957 | This issue was discovered by Juraj Somorovsky, Robert Merget and Nimrod |
5958 | Aviram, with additional investigation by Steven Collison and Andrew | |
5959 | Hourselt. It was reported to OpenSSL on 10th December 2018. | |
d8dc8538 | 5960 | ([CVE-2019-1559]) |
5f8e6c50 DMSP |
5961 | |
5962 | *Matt Caswell* | |
5963 | ||
44652c16 | 5964 | * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0(). |
5f8e6c50 | 5965 | |
44652c16 | 5966 | *Richard Levitte* |
5f8e6c50 | 5967 | |
257e9d03 | 5968 | ### Changes between 1.0.2p and 1.0.2q [20 Nov 2018] |
5f8e6c50 | 5969 | |
44652c16 | 5970 | * Microarchitecture timing vulnerability in ECC scalar multiplication |
5f8e6c50 | 5971 | |
44652c16 DMSP |
5972 | OpenSSL ECC scalar multiplication, used in e.g. ECDSA and ECDH, has been |
5973 | shown to be vulnerable to a microarchitecture timing side channel attack. | |
5974 | An attacker with sufficient access to mount local timing attacks during | |
5975 | ECDSA signature generation could recover the private key. | |
5f8e6c50 | 5976 | |
44652c16 DMSP |
5977 | This issue was reported to OpenSSL on 26th October 2018 by Alejandro |
5978 | Cabrera Aldaya, Billy Brumley, Sohaib ul Hassan, Cesar Pereida Garcia and | |
5979 | Nicola Tuveri. | |
d8dc8538 | 5980 | ([CVE-2018-5407]) |
5f8e6c50 | 5981 | |
44652c16 | 5982 | *Billy Brumley* |
5f8e6c50 | 5983 | |
44652c16 | 5984 | * Timing vulnerability in DSA signature generation |
5f8e6c50 | 5985 | |
44652c16 DMSP |
5986 | The OpenSSL DSA signature algorithm has been shown to be vulnerable to a |
5987 | timing side channel attack. An attacker could use variations in the signing | |
5988 | algorithm to recover the private key. | |
5f8e6c50 | 5989 | |
44652c16 | 5990 | This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser. |
d8dc8538 | 5991 | ([CVE-2018-0734]) |
5f8e6c50 | 5992 | |
44652c16 | 5993 | *Paul Dale* |
5f8e6c50 | 5994 | |
44652c16 DMSP |
5995 | * Resolve a compatibility issue in EC_GROUP handling with the FIPS Object |
5996 | Module, accidentally introduced while backporting security fixes from the | |
5997 | development branch and hindering the use of ECC in FIPS mode. | |
5f8e6c50 | 5998 | |
44652c16 | 5999 | *Nicola Tuveri* |
5f8e6c50 | 6000 | |
257e9d03 | 6001 | ### Changes between 1.0.2o and 1.0.2p [14 Aug 2018] |
5f8e6c50 | 6002 | |
44652c16 | 6003 | * Client DoS due to large DH parameter |
5f8e6c50 | 6004 | |
44652c16 DMSP |
6005 | During key agreement in a TLS handshake using a DH(E) based ciphersuite a |
6006 | malicious server can send a very large prime value to the client. This will | |
6007 | cause the client to spend an unreasonably long period of time generating a | |
6008 | key for this prime resulting in a hang until the client has finished. This | |
6009 | could be exploited in a Denial Of Service attack. | |
5f8e6c50 | 6010 | |
44652c16 | 6011 | This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken |
d8dc8538 | 6012 | ([CVE-2018-0732]) |
5f8e6c50 | 6013 | |
44652c16 | 6014 | *Guido Vranken* |
5f8e6c50 | 6015 | |
44652c16 | 6016 | * Cache timing vulnerability in RSA Key Generation |
5f8e6c50 | 6017 | |
44652c16 DMSP |
6018 | The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to |
6019 | a cache timing side channel attack. An attacker with sufficient access to | |
6020 | mount cache timing attacks during the RSA key generation process could | |
6021 | recover the private key. | |
5f8e6c50 | 6022 | |
44652c16 DMSP |
6023 | This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera |
6024 | Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia. | |
d8dc8538 | 6025 | ([CVE-2018-0737]) |
5f8e6c50 | 6026 | |
44652c16 | 6027 | *Billy Brumley* |
5f8e6c50 | 6028 | |
44652c16 DMSP |
6029 | * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str |
6030 | parameter is no longer accepted, as it leads to a corrupt table. NULL | |
6031 | pem_str is reserved for alias entries only. | |
5f8e6c50 | 6032 | |
44652c16 | 6033 | *Richard Levitte* |
5f8e6c50 | 6034 | |
44652c16 DMSP |
6035 | * Revert blinding in ECDSA sign and instead make problematic addition |
6036 | length-invariant. Switch even to fixed-length Montgomery multiplication. | |
5f8e6c50 | 6037 | |
44652c16 | 6038 | *Andy Polyakov* |
5f8e6c50 | 6039 | |
44652c16 DMSP |
6040 | * Change generating and checking of primes so that the error rate of not |
6041 | being prime depends on the intended use based on the size of the input. | |
6042 | For larger primes this will result in more rounds of Miller-Rabin. | |
6043 | The maximal error rate for primes with more than 1080 bits is lowered | |
6044 | to 2^-128. | |
5f8e6c50 | 6045 | |
44652c16 | 6046 | *Kurt Roeckx, Annie Yousar* |
5f8e6c50 | 6047 | |
44652c16 | 6048 | * Increase the number of Miller-Rabin rounds for DSA key generating to 64. |
5f8e6c50 | 6049 | |
44652c16 | 6050 | *Kurt Roeckx* |
5f8e6c50 | 6051 | |
44652c16 DMSP |
6052 | * Add blinding to ECDSA and DSA signatures to protect against side channel |
6053 | attacks discovered by Keegan Ryan (NCC Group). | |
5f8e6c50 | 6054 | |
44652c16 | 6055 | *Matt Caswell* |
5f8e6c50 | 6056 | |
44652c16 DMSP |
6057 | * When unlocking a pass phrase protected PEM file or PKCS#8 container, we |
6058 | now allow empty (zero character) pass phrases. | |
5f8e6c50 | 6059 | |
44652c16 | 6060 | *Richard Levitte* |
5f8e6c50 | 6061 | |
44652c16 DMSP |
6062 | * Certificate time validation (X509_cmp_time) enforces stricter |
6063 | compliance with RFC 5280. Fractional seconds and timezone offsets | |
6064 | are no longer allowed. | |
5f8e6c50 | 6065 | |
44652c16 | 6066 | *Emilia Käsper* |
5f8e6c50 | 6067 | |
257e9d03 | 6068 | ### Changes between 1.0.2n and 1.0.2o [27 Mar 2018] |
5f8e6c50 | 6069 | |
44652c16 | 6070 | * Constructed ASN.1 types with a recursive definition could exceed the stack |
5f8e6c50 | 6071 | |
44652c16 DMSP |
6072 | Constructed ASN.1 types with a recursive definition (such as can be found |
6073 | in PKCS7) could eventually exceed the stack given malicious input with | |
6074 | excessive recursion. This could result in a Denial Of Service attack. There | |
6075 | are no such structures used within SSL/TLS that come from untrusted sources | |
6076 | so this is considered safe. | |
5f8e6c50 | 6077 | |
44652c16 DMSP |
6078 | This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz |
6079 | project. | |
d8dc8538 | 6080 | ([CVE-2018-0739]) |
5f8e6c50 | 6081 | |
44652c16 | 6082 | *Matt Caswell* |
5f8e6c50 | 6083 | |
257e9d03 | 6084 | ### Changes between 1.0.2m and 1.0.2n [7 Dec 2017] |
5f8e6c50 | 6085 | |
44652c16 | 6086 | * Read/write after SSL object in error state |
5f8e6c50 | 6087 | |
44652c16 DMSP |
6088 | OpenSSL 1.0.2 (starting from version 1.0.2b) introduced an "error state" |
6089 | mechanism. The intent was that if a fatal error occurred during a handshake | |
6090 | then OpenSSL would move into the error state and would immediately fail if | |
6091 | you attempted to continue the handshake. This works as designed for the | |
6092 | explicit handshake functions (SSL_do_handshake(), SSL_accept() and | |
6093 | SSL_connect()), however due to a bug it does not work correctly if | |
6094 | SSL_read() or SSL_write() is called directly. In that scenario, if the | |
6095 | handshake fails then a fatal error will be returned in the initial function | |
6096 | call. If SSL_read()/SSL_write() is subsequently called by the application | |
6097 | for the same SSL object then it will succeed and the data is passed without | |
6098 | being decrypted/encrypted directly from the SSL/TLS record layer. | |
5f8e6c50 | 6099 | |
44652c16 DMSP |
6100 | In order to exploit this issue an application bug would have to be present |
6101 | that resulted in a call to SSL_read()/SSL_write() being issued after having | |
6102 | already received a fatal error. | |
5f8e6c50 | 6103 | |
44652c16 | 6104 | This issue was reported to OpenSSL by David Benjamin (Google). |
d8dc8538 | 6105 | ([CVE-2017-3737]) |
5f8e6c50 DMSP |
6106 | |
6107 | *Matt Caswell* | |
6108 | ||
44652c16 | 6109 | * rsaz_1024_mul_avx2 overflow bug on x86_64 |
5f8e6c50 | 6110 | |
44652c16 DMSP |
6111 | There is an overflow bug in the AVX2 Montgomery multiplication procedure |
6112 | used in exponentiation with 1024-bit moduli. No EC algorithms are affected. | |
6113 | Analysis suggests that attacks against RSA and DSA as a result of this | |
6114 | defect would be very difficult to perform and are not believed likely. | |
6115 | Attacks against DH1024 are considered just feasible, because most of the | |
6116 | work necessary to deduce information about a private key may be performed | |
6117 | offline. The amount of resources required for such an attack would be | |
6118 | significant. However, for an attack on TLS to be meaningful, the server | |
6119 | would have to share the DH1024 private key among multiple clients, which is | |
6120 | no longer an option since CVE-2016-0701. | |
5f8e6c50 | 6121 | |
44652c16 DMSP |
6122 | This only affects processors that support the AVX2 but not ADX extensions |
6123 | like Intel Haswell (4th generation). | |
5f8e6c50 | 6124 | |
44652c16 DMSP |
6125 | This issue was reported to OpenSSL by David Benjamin (Google). The issue |
6126 | was originally found via the OSS-Fuzz project. | |
d8dc8538 | 6127 | ([CVE-2017-3738]) |
5f8e6c50 | 6128 | |
44652c16 | 6129 | *Andy Polyakov* |
5f8e6c50 | 6130 | |
257e9d03 | 6131 | ### Changes between 1.0.2l and 1.0.2m [2 Nov 2017] |
44652c16 DMSP |
6132 | |
6133 | * bn_sqrx8x_internal carry bug on x86_64 | |
5f8e6c50 DMSP |
6134 | |
6135 | There is a carry propagating bug in the x86_64 Montgomery squaring | |
6136 | procedure. No EC algorithms are affected. Analysis suggests that attacks | |
6137 | against RSA and DSA as a result of this defect would be very difficult to | |
6138 | perform and are not believed likely. Attacks against DH are considered just | |
6139 | feasible (although very difficult) because most of the work necessary to | |
6140 | deduce information about a private key may be performed offline. The amount | |
6141 | of resources required for such an attack would be very significant and | |
6142 | likely only accessible to a limited number of attackers. An attacker would | |
6143 | additionally need online access to an unpatched system using the target | |
6144 | private key in a scenario with persistent DH parameters and a private | |
44652c16 | 6145 | key that is shared between multiple clients. |
5f8e6c50 | 6146 | |
44652c16 DMSP |
6147 | This only affects processors that support the BMI1, BMI2 and ADX extensions |
6148 | like Intel Broadwell (5th generation) and later or AMD Ryzen. | |
6149 | ||
6150 | This issue was reported to OpenSSL by the OSS-Fuzz project. | |
d8dc8538 | 6151 | ([CVE-2017-3736]) |
5f8e6c50 DMSP |
6152 | |
6153 | *Andy Polyakov* | |
6154 | ||
44652c16 | 6155 | * Malformed X.509 IPAddressFamily could cause OOB read |
5f8e6c50 | 6156 | |
44652c16 DMSP |
6157 | If an X.509 certificate has a malformed IPAddressFamily extension, |
6158 | OpenSSL could do a one-byte buffer overread. The most likely result | |
6159 | would be an erroneous display of the certificate in text format. | |
5f8e6c50 | 6160 | |
44652c16 | 6161 | This issue was reported to OpenSSL by the OSS-Fuzz project. |
5f8e6c50 | 6162 | |
44652c16 | 6163 | *Rich Salz* |
5f8e6c50 | 6164 | |
257e9d03 | 6165 | ### Changes between 1.0.2k and 1.0.2l [25 May 2017] |
5f8e6c50 | 6166 | |
44652c16 DMSP |
6167 | * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target |
6168 | platform rather than 'mingw'. | |
5f8e6c50 | 6169 | |
44652c16 | 6170 | *Richard Levitte* |
5f8e6c50 | 6171 | |
257e9d03 | 6172 | ### Changes between 1.0.2j and 1.0.2k [26 Jan 2017] |
5f8e6c50 | 6173 | |
44652c16 | 6174 | * Truncated packet could crash via OOB read |
5f8e6c50 | 6175 | |
44652c16 DMSP |
6176 | If one side of an SSL/TLS path is running on a 32-bit host and a specific |
6177 | cipher is being used, then a truncated packet can cause that host to | |
6178 | perform an out-of-bounds read, usually resulting in a crash. | |
5f8e6c50 | 6179 | |
44652c16 | 6180 | This issue was reported to OpenSSL by Robert Święcki of Google. |
d8dc8538 | 6181 | ([CVE-2017-3731]) |
5f8e6c50 | 6182 | |
44652c16 | 6183 | *Andy Polyakov* |
5f8e6c50 | 6184 | |
44652c16 | 6185 | * BN_mod_exp may produce incorrect results on x86_64 |
5f8e6c50 | 6186 | |
44652c16 DMSP |
6187 | There is a carry propagating bug in the x86_64 Montgomery squaring |
6188 | procedure. No EC algorithms are affected. Analysis suggests that attacks | |
6189 | against RSA and DSA as a result of this defect would be very difficult to | |
6190 | perform and are not believed likely. Attacks against DH are considered just | |
6191 | feasible (although very difficult) because most of the work necessary to | |
6192 | deduce information about a private key may be performed offline. The amount | |
6193 | of resources required for such an attack would be very significant and | |
6194 | likely only accessible to a limited number of attackers. An attacker would | |
6195 | additionally need online access to an unpatched system using the target | |
6196 | private key in a scenario with persistent DH parameters and a private | |
6197 | key that is shared between multiple clients. For example this can occur by | |
6198 | default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very | |
6199 | similar to CVE-2015-3193 but must be treated as a separate problem. | |
5f8e6c50 | 6200 | |
44652c16 | 6201 | This issue was reported to OpenSSL by the OSS-Fuzz project. |
d8dc8538 | 6202 | ([CVE-2017-3732]) |
5f8e6c50 | 6203 | |
44652c16 | 6204 | *Andy Polyakov* |
5f8e6c50 | 6205 | |
44652c16 | 6206 | * Montgomery multiplication may produce incorrect results |
5f8e6c50 | 6207 | |
44652c16 DMSP |
6208 | There is a carry propagating bug in the Broadwell-specific Montgomery |
6209 | multiplication procedure that handles input lengths divisible by, but | |
6210 | longer than 256 bits. Analysis suggests that attacks against RSA, DSA | |
6211 | and DH private keys are impossible. This is because the subroutine in | |
6212 | question is not used in operations with the private key itself and an input | |
6213 | of the attacker's direct choice. Otherwise the bug can manifest itself as | |
6214 | transient authentication and key negotiation failures or reproducible | |
6215 | erroneous outcome of public-key operations with specially crafted input. | |
6216 | Among EC algorithms only Brainpool P-512 curves are affected and one | |
6217 | presumably can attack ECDH key negotiation. Impact was not analyzed in | |
6218 | detail, because pre-requisites for attack are considered unlikely. Namely | |
6219 | multiple clients have to choose the curve in question and the server has to | |
6220 | share the private key among them, neither of which is default behaviour. | |
6221 | Even then only clients that chose the curve will be affected. | |
5f8e6c50 | 6222 | |
44652c16 DMSP |
6223 | This issue was publicly reported as transient failures and was not |
6224 | initially recognized as a security issue. Thanks to Richard Morgan for | |
6225 | providing reproducible case. | |
d8dc8538 | 6226 | ([CVE-2016-7055]) |
44652c16 DMSP |
6227 | |
6228 | *Andy Polyakov* | |
6229 | ||
6230 | * OpenSSL now fails if it receives an unrecognised record type in TLS1.0 | |
6231 | or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to | |
6232 | prevent issues where no progress is being made and the peer continually | |
6233 | sends unrecognised record types, using up resources processing them. | |
5f8e6c50 DMSP |
6234 | |
6235 | *Matt Caswell* | |
6236 | ||
257e9d03 | 6237 | ### Changes between 1.0.2i and 1.0.2j [26 Sep 2016] |
5f8e6c50 | 6238 | |
44652c16 | 6239 | * Missing CRL sanity check |
5f8e6c50 | 6240 | |
44652c16 DMSP |
6241 | A bug fix which included a CRL sanity check was added to OpenSSL 1.1.0 |
6242 | but was omitted from OpenSSL 1.0.2i. As a result any attempt to use | |
6243 | CRLs in OpenSSL 1.0.2i will crash with a null pointer exception. | |
5f8e6c50 | 6244 | |
44652c16 | 6245 | This issue only affects the OpenSSL 1.0.2i |
d8dc8538 | 6246 | ([CVE-2016-7052]) |
5f8e6c50 | 6247 | |
44652c16 | 6248 | *Matt Caswell* |
5f8e6c50 | 6249 | |
257e9d03 | 6250 | ### Changes between 1.0.2h and 1.0.2i [22 Sep 2016] |
5f8e6c50 | 6251 | |
44652c16 | 6252 | * OCSP Status Request extension unbounded memory growth |
5f8e6c50 | 6253 | |
44652c16 DMSP |
6254 | A malicious client can send an excessively large OCSP Status Request |
6255 | extension. If that client continually requests renegotiation, sending a | |
6256 | large OCSP Status Request extension each time, then there will be unbounded | |
6257 | memory growth on the server. This will eventually lead to a Denial Of | |
6258 | Service attack through memory exhaustion. Servers with a default | |
6259 | configuration are vulnerable even if they do not support OCSP. Builds using | |
6260 | the "no-ocsp" build time option are not affected. | |
5f8e6c50 | 6261 | |
44652c16 | 6262 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) |
d8dc8538 | 6263 | ([CVE-2016-6304]) |
5f8e6c50 | 6264 | |
44652c16 | 6265 | *Matt Caswell* |
5f8e6c50 | 6266 | |
44652c16 DMSP |
6267 | * In order to mitigate the SWEET32 attack, the DES ciphers were moved from |
6268 | HIGH to MEDIUM. | |
5f8e6c50 | 6269 | |
44652c16 DMSP |
6270 | This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan |
6271 | Leurent (INRIA) | |
d8dc8538 | 6272 | ([CVE-2016-2183]) |
5f8e6c50 | 6273 | |
44652c16 | 6274 | *Rich Salz* |
5f8e6c50 | 6275 | |
44652c16 | 6276 | * OOB write in MDC2_Update() |
5f8e6c50 | 6277 | |
44652c16 DMSP |
6278 | An overflow can occur in MDC2_Update() either if called directly or |
6279 | through the EVP_DigestUpdate() function using MDC2. If an attacker | |
6280 | is able to supply very large amounts of input data after a previous | |
6281 | call to EVP_EncryptUpdate() with a partial block then a length check | |
6282 | can overflow resulting in a heap corruption. | |
5f8e6c50 | 6283 | |
44652c16 DMSP |
6284 | The amount of data needed is comparable to SIZE_MAX which is impractical |
6285 | on most platforms. | |
5f8e6c50 | 6286 | |
44652c16 | 6287 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) |
d8dc8538 | 6288 | ([CVE-2016-6303]) |
5f8e6c50 DMSP |
6289 | |
6290 | *Stephen Henson* | |
6291 | ||
44652c16 | 6292 | * Malformed SHA512 ticket DoS |
5f8e6c50 | 6293 | |
44652c16 DMSP |
6294 | If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a |
6295 | DoS attack where a malformed ticket will result in an OOB read which will | |
6296 | ultimately crash. | |
5f8e6c50 | 6297 | |
44652c16 DMSP |
6298 | The use of SHA512 in TLS session tickets is comparatively rare as it requires |
6299 | a custom server callback and ticket lookup mechanism. | |
5f8e6c50 | 6300 | |
44652c16 | 6301 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) |
d8dc8538 | 6302 | ([CVE-2016-6302]) |
5f8e6c50 | 6303 | |
44652c16 | 6304 | *Stephen Henson* |
5f8e6c50 | 6305 | |
44652c16 | 6306 | * OOB write in BN_bn2dec() |
5f8e6c50 | 6307 | |
44652c16 DMSP |
6308 | The function BN_bn2dec() does not check the return value of BN_div_word(). |
6309 | This can cause an OOB write if an application uses this function with an | |
6310 | overly large BIGNUM. This could be a problem if an overly large certificate | |
6311 | or CRL is printed out from an untrusted source. TLS is not affected because | |
6312 | record limits will reject an oversized certificate before it is parsed. | |
5f8e6c50 | 6313 | |
44652c16 | 6314 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) |
d8dc8538 | 6315 | ([CVE-2016-2182]) |
5f8e6c50 | 6316 | |
44652c16 | 6317 | *Stephen Henson* |
5f8e6c50 | 6318 | |
44652c16 | 6319 | * OOB read in TS_OBJ_print_bio() |
5f8e6c50 | 6320 | |
44652c16 DMSP |
6321 | The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is |
6322 | the total length the OID text representation would use and not the amount | |
6323 | of data written. This will result in OOB reads when large OIDs are | |
6324 | presented. | |
5f8e6c50 | 6325 | |
44652c16 | 6326 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) |
d8dc8538 | 6327 | ([CVE-2016-2180]) |
5f8e6c50 | 6328 | |
44652c16 | 6329 | *Stephen Henson* |
5f8e6c50 | 6330 | |
44652c16 | 6331 | * Pointer arithmetic undefined behaviour |
5f8e6c50 | 6332 | |
44652c16 | 6333 | Avoid some undefined pointer arithmetic |
5f8e6c50 | 6334 | |
44652c16 DMSP |
6335 | A common idiom in the codebase is to check limits in the following manner: |
6336 | "p + len > limit" | |
5f8e6c50 | 6337 | |
44652c16 DMSP |
6338 | Where "p" points to some malloc'd data of SIZE bytes and |
6339 | limit == p + SIZE | |
5f8e6c50 | 6340 | |
44652c16 DMSP |
6341 | "len" here could be from some externally supplied data (e.g. from a TLS |
6342 | message). | |
5f8e6c50 | 6343 | |
44652c16 DMSP |
6344 | The rules of C pointer arithmetic are such that "p + len" is only well |
6345 | defined where len <= SIZE. Therefore the above idiom is actually | |
6346 | undefined behaviour. | |
5f8e6c50 | 6347 | |
44652c16 DMSP |
6348 | For example this could cause problems if some malloc implementation |
6349 | provides an address for "p" such that "p + len" actually overflows for | |
6350 | values of len that are too big and therefore p + len < limit. | |
5f8e6c50 | 6351 | |
44652c16 | 6352 | This issue was reported to OpenSSL by Guido Vranken |
d8dc8538 | 6353 | ([CVE-2016-2177]) |
5f8e6c50 | 6354 | |
44652c16 | 6355 | *Matt Caswell* |
5f8e6c50 | 6356 | |
44652c16 | 6357 | * Constant time flag not preserved in DSA signing |
5f8e6c50 | 6358 | |
44652c16 DMSP |
6359 | Operations in the DSA signing algorithm should run in constant time in |
6360 | order to avoid side channel attacks. A flaw in the OpenSSL DSA | |
6361 | implementation means that a non-constant time codepath is followed for | |
6362 | certain operations. This has been demonstrated through a cache-timing | |
6363 | attack to be sufficient for an attacker to recover the private DSA key. | |
5f8e6c50 | 6364 | |
44652c16 DMSP |
6365 | This issue was reported by César Pereida (Aalto University), Billy Brumley |
6366 | (Tampere University of Technology), and Yuval Yarom (The University of | |
6367 | Adelaide and NICTA). | |
d8dc8538 | 6368 | ([CVE-2016-2178]) |
5f8e6c50 | 6369 | |
44652c16 | 6370 | *César Pereida* |
5f8e6c50 | 6371 | |
44652c16 | 6372 | * DTLS buffered message DoS |
5f8e6c50 | 6373 | |
44652c16 DMSP |
6374 | In a DTLS connection where handshake messages are delivered out-of-order |
6375 | those messages that OpenSSL is not yet ready to process will be buffered | |
6376 | for later use. Under certain circumstances, a flaw in the logic means that | |
6377 | those messages do not get removed from the buffer even though the handshake | |
6378 | has been completed. An attacker could force up to approx. 15 messages to | |
6379 | remain in the buffer when they are no longer required. These messages will | |
6380 | be cleared when the DTLS connection is closed. The default maximum size for | |
d7f3a2cc F |
6381 | a message is 100k. Therefore, the attacker could force an additional 1500k |
6382 | to be consumed per connection. By opening many simultaneous connections an | |
44652c16 | 6383 | attacker could cause a DoS attack through memory exhaustion. |
5f8e6c50 | 6384 | |
44652c16 | 6385 | This issue was reported to OpenSSL by Quan Luo. |
d8dc8538 | 6386 | ([CVE-2016-2179]) |
5f8e6c50 | 6387 | |
44652c16 | 6388 | *Matt Caswell* |
5f8e6c50 | 6389 | |
44652c16 | 6390 | * DTLS replay protection DoS |
5f8e6c50 | 6391 | |
44652c16 DMSP |
6392 | A flaw in the DTLS replay attack protection mechanism means that records |
6393 | that arrive for future epochs update the replay protection "window" before | |
6394 | the MAC for the record has been validated. This could be exploited by an | |
6395 | attacker by sending a record for the next epoch (which does not have to | |
6396 | decrypt or have a valid MAC), with a very large sequence number. This means | |
6397 | that all subsequent legitimate packets are dropped causing a denial of | |
6398 | service for a specific DTLS connection. | |
5f8e6c50 | 6399 | |
44652c16 | 6400 | This issue was reported to OpenSSL by the OCAP audit team. |
d8dc8538 | 6401 | ([CVE-2016-2181]) |
5f8e6c50 | 6402 | |
44652c16 | 6403 | *Matt Caswell* |
5f8e6c50 | 6404 | |
44652c16 | 6405 | * Certificate message OOB reads |
5f8e6c50 | 6406 | |
44652c16 DMSP |
6407 | In OpenSSL 1.0.2 and earlier some missing message length checks can result |
6408 | in OOB reads of up to 2 bytes beyond an allocated buffer. There is a | |
6409 | theoretical DoS risk but this has not been observed in practice on common | |
6410 | platforms. | |
5f8e6c50 | 6411 | |
44652c16 DMSP |
6412 | The messages affected are client certificate, client certificate request |
6413 | and server certificate. As a result the attack can only be performed | |
6414 | against a client or a server which enables client authentication. | |
5f8e6c50 | 6415 | |
44652c16 | 6416 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) |
d8dc8538 | 6417 | ([CVE-2016-6306]) |
5f8e6c50 | 6418 | |
44652c16 | 6419 | *Stephen Henson* |
5f8e6c50 | 6420 | |
257e9d03 | 6421 | ### Changes between 1.0.2g and 1.0.2h [3 May 2016] |
5f8e6c50 | 6422 | |
44652c16 | 6423 | * Prevent padding oracle in AES-NI CBC MAC check |
5f8e6c50 | 6424 | |
44652c16 DMSP |
6425 | A MITM attacker can use a padding oracle attack to decrypt traffic |
6426 | when the connection uses an AES CBC cipher and the server support | |
6427 | AES-NI. | |
5f8e6c50 | 6428 | |
44652c16 | 6429 | This issue was introduced as part of the fix for Lucky 13 padding |
d8dc8538 | 6430 | attack ([CVE-2013-0169]). The padding check was rewritten to be in |
44652c16 DMSP |
6431 | constant time by making sure that always the same bytes are read and |
6432 | compared against either the MAC or padding bytes. But it no longer | |
6433 | checked that there was enough data to have both the MAC and padding | |
6434 | bytes. | |
5f8e6c50 | 6435 | |
44652c16 | 6436 | This issue was reported by Juraj Somorovsky using TLS-Attacker. |
5f8e6c50 | 6437 | |
44652c16 | 6438 | *Kurt Roeckx* |
5f8e6c50 | 6439 | |
44652c16 DMSP |
6440 | * Fix EVP_EncodeUpdate overflow |
6441 | ||
6442 | An overflow can occur in the EVP_EncodeUpdate() function which is used for | |
6443 | Base64 encoding of binary data. If an attacker is able to supply very large | |
6444 | amounts of input data then a length check can overflow resulting in a heap | |
6445 | corruption. | |
6446 | ||
6447 | Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by | |
257e9d03 | 6448 | the `PEM_write_bio*` family of functions. These are mainly used within the |
44652c16 DMSP |
6449 | OpenSSL command line applications, so any application which processes data |
6450 | from an untrusted source and outputs it as a PEM file should be considered | |
6451 | vulnerable to this issue. User applications that call these APIs directly | |
6452 | with large amounts of untrusted data may also be vulnerable. | |
6453 | ||
6454 | This issue was reported by Guido Vranken. | |
d8dc8538 | 6455 | ([CVE-2016-2105]) |
5f8e6c50 DMSP |
6456 | |
6457 | *Matt Caswell* | |
6458 | ||
44652c16 | 6459 | * Fix EVP_EncryptUpdate overflow |
5f8e6c50 | 6460 | |
44652c16 DMSP |
6461 | An overflow can occur in the EVP_EncryptUpdate() function. If an attacker |
6462 | is able to supply very large amounts of input data after a previous call to | |
6463 | EVP_EncryptUpdate() with a partial block then a length check can overflow | |
6464 | resulting in a heap corruption. Following an analysis of all OpenSSL | |
6465 | internal usage of the EVP_EncryptUpdate() function all usage is one of two | |
6466 | forms. The first form is where the EVP_EncryptUpdate() call is known to be | |
6467 | the first called function after an EVP_EncryptInit(), and therefore that | |
6468 | specific call must be safe. The second form is where the length passed to | |
6469 | EVP_EncryptUpdate() can be seen from the code to be some small value and | |
6470 | therefore there is no possibility of an overflow. Since all instances are | |
6471 | one of these two forms, it is believed that there can be no overflows in | |
6472 | internal code due to this problem. It should be noted that | |
6473 | EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths. | |
6474 | Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances | |
6475 | of these calls have also been analysed too and it is believed there are no | |
6476 | instances in internal usage where an overflow could occur. | |
5f8e6c50 | 6477 | |
44652c16 | 6478 | This issue was reported by Guido Vranken. |
d8dc8538 | 6479 | ([CVE-2016-2106]) |
5f8e6c50 DMSP |
6480 | |
6481 | *Matt Caswell* | |
6482 | ||
44652c16 | 6483 | * Prevent ASN.1 BIO excessive memory allocation |
5f8e6c50 | 6484 | |
44652c16 DMSP |
6485 | When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio() |
6486 | a short invalid encoding can cause allocation of large amounts of memory | |
6487 | potentially consuming excessive resources or exhausting memory. | |
5f8e6c50 | 6488 | |
44652c16 DMSP |
6489 | Any application parsing untrusted data through d2i BIO functions is |
6490 | affected. The memory based functions such as d2i_X509() are *not* affected. | |
6491 | Since the memory based functions are used by the TLS library, TLS | |
6492 | applications are not affected. | |
6493 | ||
6494 | This issue was reported by Brian Carpenter. | |
d8dc8538 | 6495 | ([CVE-2016-2109]) |
5f8e6c50 DMSP |
6496 | |
6497 | *Stephen Henson* | |
6498 | ||
44652c16 | 6499 | * EBCDIC overread |
5f8e6c50 | 6500 | |
44652c16 DMSP |
6501 | ASN1 Strings that are over 1024 bytes can cause an overread in applications |
6502 | using the X509_NAME_oneline() function on EBCDIC systems. This could result | |
6503 | in arbitrary stack data being returned in the buffer. | |
5f8e6c50 | 6504 | |
44652c16 | 6505 | This issue was reported by Guido Vranken. |
d8dc8538 | 6506 | ([CVE-2016-2176]) |
5f8e6c50 | 6507 | |
44652c16 | 6508 | *Matt Caswell* |
5f8e6c50 | 6509 | |
44652c16 DMSP |
6510 | * Modify behavior of ALPN to invoke callback after SNI/servername |
6511 | callback, such that updates to the SSL_CTX affect ALPN. | |
5f8e6c50 | 6512 | |
44652c16 | 6513 | *Todd Short* |
5f8e6c50 | 6514 | |
44652c16 DMSP |
6515 | * Remove LOW from the DEFAULT cipher list. This removes singles DES from the |
6516 | default. | |
6517 | ||
6518 | *Kurt Roeckx* | |
6519 | ||
6520 | * Only remove the SSLv2 methods with the no-ssl2-method option. When the | |
6521 | methods are enabled and ssl2 is disabled the methods return NULL. | |
6522 | ||
6523 | *Kurt Roeckx* | |
6524 | ||
257e9d03 | 6525 | ### Changes between 1.0.2f and 1.0.2g [1 Mar 2016] |
44652c16 DMSP |
6526 | |
6527 | * Disable weak ciphers in SSLv3 and up in default builds of OpenSSL. | |
6528 | Builds that are not configured with "enable-weak-ssl-ciphers" will not | |
6529 | provide any "EXPORT" or "LOW" strength ciphers. | |
6530 | ||
6531 | *Viktor Dukhovni* | |
6532 | ||
6533 | * Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2 | |
6534 | is by default disabled at build-time. Builds that are not configured with | |
6535 | "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used, | |
6536 | users who want to negotiate SSLv2 via the version-flexible SSLv23_method() | |
6537 | will need to explicitly call either of: | |
6538 | ||
6539 | SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2); | |
6540 | or | |
6541 | SSL_clear_options(ssl, SSL_OP_NO_SSLv2); | |
6542 | ||
6543 | as appropriate. Even if either of those is used, or the application | |
6544 | explicitly uses the version-specific SSLv2_method() or its client and | |
6545 | server variants, SSLv2 ciphers vulnerable to exhaustive search key | |
6546 | recovery have been removed. Specifically, the SSLv2 40-bit EXPORT | |
6547 | ciphers, and SSLv2 56-bit DES are no longer available. | |
d8dc8538 | 6548 | ([CVE-2016-0800]) |
44652c16 DMSP |
6549 | |
6550 | *Viktor Dukhovni* | |
6551 | ||
6552 | * Fix a double-free in DSA code | |
6553 | ||
6554 | A double free bug was discovered when OpenSSL parses malformed DSA private | |
6555 | keys and could lead to a DoS attack or memory corruption for applications | |
6556 | that receive DSA private keys from untrusted sources. This scenario is | |
6557 | considered rare. | |
6558 | ||
6559 | This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using | |
6560 | libFuzzer. | |
d8dc8538 | 6561 | ([CVE-2016-0705]) |
44652c16 DMSP |
6562 | |
6563 | *Stephen Henson* | |
6564 | ||
6565 | * Disable SRP fake user seed to address a server memory leak. | |
6566 | ||
6567 | Add a new method SRP_VBASE_get1_by_user that handles the seed properly. | |
6568 | ||
6569 | SRP_VBASE_get_by_user had inconsistent memory management behaviour. | |
6570 | In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user | |
6571 | was changed to ignore the "fake user" SRP seed, even if the seed | |
6572 | is configured. | |
6573 | ||
6574 | Users should use SRP_VBASE_get1_by_user instead. Note that in | |
6575 | SRP_VBASE_get1_by_user, caller must free the returned value. Note | |
6576 | also that even though configuring the SRP seed attempts to hide | |
6577 | invalid usernames by continuing the handshake with fake | |
6578 | credentials, this behaviour is not constant time and no strong | |
6579 | guarantees are made that the handshake is indistinguishable from | |
6580 | that of a valid user. | |
d8dc8538 | 6581 | ([CVE-2016-0798]) |
44652c16 DMSP |
6582 | |
6583 | *Emilia Käsper* | |
6584 | ||
6585 | * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption | |
6586 | ||
6587 | In the BN_hex2bn function the number of hex digits is calculated using an | |
1dc1ea18 DDO |
6588 | int value `i`. Later `bn_expand` is called with a value of `i * 4`. For |
6589 | large values of `i` this can result in `bn_expand` not allocating any | |
6590 | memory because `i * 4` is negative. This can leave the internal BIGNUM data | |
44652c16 | 6591 | field as NULL leading to a subsequent NULL ptr deref. For very large values |
1dc1ea18 | 6592 | of `i`, the calculation `i * 4` could be a positive value smaller than `i`. |
44652c16 DMSP |
6593 | In this case memory is allocated to the internal BIGNUM data field, but it |
6594 | is insufficiently sized leading to heap corruption. A similar issue exists | |
6595 | in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn | |
6596 | is ever called by user applications with very large untrusted hex/dec data. | |
6597 | This is anticipated to be a rare occurrence. | |
6598 | ||
6599 | All OpenSSL internal usage of these functions use data that is not expected | |
6600 | to be untrusted, e.g. config file data or application command line | |
6601 | arguments. If user developed applications generate config file data based | |
6602 | on untrusted data then it is possible that this could also lead to security | |
6603 | consequences. This is also anticipated to be rare. | |
6604 | ||
6605 | This issue was reported to OpenSSL by Guido Vranken. | |
d8dc8538 | 6606 | ([CVE-2016-0797]) |
44652c16 DMSP |
6607 | |
6608 | *Matt Caswell* | |
6609 | ||
257e9d03 | 6610 | * Fix memory issues in `BIO_*printf` functions |
44652c16 | 6611 | |
1dc1ea18 | 6612 | The internal `fmtstr` function used in processing a "%s" format string in |
257e9d03 | 6613 | the `BIO_*printf` functions could overflow while calculating the length of a |
44652c16 DMSP |
6614 | string and cause an OOB read when printing very long strings. |
6615 | ||
1dc1ea18 | 6616 | Additionally the internal `doapr_outch` function can attempt to write to an |
44652c16 DMSP |
6617 | OOB memory location (at an offset from the NULL pointer) in the event of a |
6618 | memory allocation failure. In 1.0.2 and below this could be caused where | |
6619 | the size of a buffer to be allocated is greater than INT_MAX. E.g. this | |
6620 | could be in processing a very long "%s" format string. Memory leaks can | |
6621 | also occur. | |
6622 | ||
6623 | The first issue may mask the second issue dependent on compiler behaviour. | |
6624 | These problems could enable attacks where large amounts of untrusted data | |
257e9d03 | 6625 | is passed to the `BIO_*printf` functions. If applications use these functions |
44652c16 DMSP |
6626 | in this way then they could be vulnerable. OpenSSL itself uses these |
6627 | functions when printing out human-readable dumps of ASN.1 data. Therefore | |
6628 | applications that print this data could be vulnerable if the data is from | |
6629 | untrusted sources. OpenSSL command line applications could also be | |
6630 | vulnerable where they print out ASN.1 data, or if untrusted data is passed | |
6631 | as command line arguments. | |
6632 | ||
6633 | Libssl is not considered directly vulnerable. Additionally certificates etc | |
6634 | received via remote connections via libssl are also unlikely to be able to | |
6635 | trigger these issues because of message size limits enforced within libssl. | |
6636 | ||
6637 | This issue was reported to OpenSSL Guido Vranken. | |
d8dc8538 | 6638 | ([CVE-2016-0799]) |
44652c16 DMSP |
6639 | |
6640 | *Matt Caswell* | |
6641 | ||
6642 | * Side channel attack on modular exponentiation | |
6643 | ||
6644 | A side-channel attack was found which makes use of cache-bank conflicts on | |
6645 | the Intel Sandy-Bridge microarchitecture which could lead to the recovery | |
6646 | of RSA keys. The ability to exploit this issue is limited as it relies on | |
6647 | an attacker who has control of code in a thread running on the same | |
6648 | hyper-threaded core as the victim thread which is performing decryptions. | |
6649 | ||
6650 | This issue was reported to OpenSSL by Yuval Yarom, The University of | |
6651 | Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and | |
6652 | Nadia Heninger, University of Pennsylvania with more information at | |
257e9d03 | 6653 | <http://cachebleed.info>. |
d8dc8538 | 6654 | ([CVE-2016-0702]) |
44652c16 DMSP |
6655 | |
6656 | *Andy Polyakov* | |
6657 | ||
ec2bfb7d | 6658 | * Change the `req` command to generate a 2048-bit RSA/DSA key by default, |
44652c16 DMSP |
6659 | if no keysize is specified with default_bits. This fixes an |
6660 | omission in an earlier change that changed all RSA/DSA key generation | |
ec2bfb7d | 6661 | commands to use 2048 bits by default. |
44652c16 DMSP |
6662 | |
6663 | *Emilia Käsper* | |
6664 | ||
257e9d03 RS |
6665 | ### Changes between 1.0.2e and 1.0.2f [28 Jan 2016] |
6666 | ||
44652c16 DMSP |
6667 | * DH small subgroups |
6668 | ||
6669 | Historically OpenSSL only ever generated DH parameters based on "safe" | |
6670 | primes. More recently (in version 1.0.2) support was provided for | |
6671 | generating X9.42 style parameter files such as those required for RFC 5114 | |
6672 | support. The primes used in such files may not be "safe". Where an | |
6673 | application is using DH configured with parameters based on primes that are | |
6674 | not "safe" then an attacker could use this fact to find a peer's private | |
6675 | DH exponent. This attack requires that the attacker complete multiple | |
6676 | handshakes in which the peer uses the same private DH exponent. For example | |
6677 | this could be used to discover a TLS server's private DH exponent if it's | |
6678 | reusing the private DH exponent or it's using a static DH ciphersuite. | |
6679 | ||
6680 | OpenSSL provides the option SSL_OP_SINGLE_DH_USE for ephemeral DH (DHE) in | |
6681 | TLS. It is not on by default. If the option is not set then the server | |
6682 | reuses the same private DH exponent for the life of the server process and | |
6683 | would be vulnerable to this attack. It is believed that many popular | |
6684 | applications do set this option and would therefore not be at risk. | |
6685 | ||
6686 | The fix for this issue adds an additional check where a "q" parameter is | |
6687 | available (as is the case in X9.42 based parameters). This detects the | |
6688 | only known attack, and is the only possible defense for static DH | |
6689 | ciphersuites. This could have some performance impact. | |
6690 | ||
6691 | Additionally the SSL_OP_SINGLE_DH_USE option has been switched on by | |
6692 | default and cannot be disabled. This could have some performance impact. | |
6693 | ||
6694 | This issue was reported to OpenSSL by Antonio Sanso (Adobe). | |
d8dc8538 | 6695 | ([CVE-2016-0701]) |
44652c16 DMSP |
6696 | |
6697 | *Matt Caswell* | |
6698 | ||
6699 | * SSLv2 doesn't block disabled ciphers | |
6700 | ||
6701 | A malicious client can negotiate SSLv2 ciphers that have been disabled on | |
6702 | the server and complete SSLv2 handshakes even if all SSLv2 ciphers have | |
6703 | been disabled, provided that the SSLv2 protocol was not also disabled via | |
6704 | SSL_OP_NO_SSLv2. | |
6705 | ||
6706 | This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram | |
6707 | and Sebastian Schinzel. | |
d8dc8538 | 6708 | ([CVE-2015-3197]) |
44652c16 DMSP |
6709 | |
6710 | *Viktor Dukhovni* | |
6711 | ||
257e9d03 | 6712 | ### Changes between 1.0.2d and 1.0.2e [3 Dec 2015] |
44652c16 DMSP |
6713 | |
6714 | * BN_mod_exp may produce incorrect results on x86_64 | |
6715 | ||
6716 | There is a carry propagating bug in the x86_64 Montgomery squaring | |
6717 | procedure. No EC algorithms are affected. Analysis suggests that attacks | |
6718 | against RSA and DSA as a result of this defect would be very difficult to | |
6719 | perform and are not believed likely. Attacks against DH are considered just | |
6720 | feasible (although very difficult) because most of the work necessary to | |
6721 | deduce information about a private key may be performed offline. The amount | |
6722 | of resources required for such an attack would be very significant and | |
6723 | likely only accessible to a limited number of attackers. An attacker would | |
6724 | additionally need online access to an unpatched system using the target | |
6725 | private key in a scenario with persistent DH parameters and a private | |
6726 | key that is shared between multiple clients. For example this can occur by | |
6727 | default in OpenSSL DHE based SSL/TLS ciphersuites. | |
6728 | ||
6729 | This issue was reported to OpenSSL by Hanno Böck. | |
d8dc8538 | 6730 | ([CVE-2015-3193]) |
44652c16 DMSP |
6731 | |
6732 | *Andy Polyakov* | |
6733 | ||
6734 | * Certificate verify crash with missing PSS parameter | |
6735 | ||
6736 | The signature verification routines will crash with a NULL pointer | |
6737 | dereference if presented with an ASN.1 signature using the RSA PSS | |
6738 | algorithm and absent mask generation function parameter. Since these | |
6739 | routines are used to verify certificate signature algorithms this can be | |
6740 | used to crash any certificate verification operation and exploited in a | |
6741 | DoS attack. Any application which performs certificate verification is | |
6742 | vulnerable including OpenSSL clients and servers which enable client | |
6743 | authentication. | |
6744 | ||
6745 | This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG). | |
d8dc8538 | 6746 | ([CVE-2015-3194]) |
44652c16 DMSP |
6747 | |
6748 | *Stephen Henson* | |
6749 | ||
6750 | * X509_ATTRIBUTE memory leak | |
6751 | ||
6752 | When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak | |
6753 | memory. This structure is used by the PKCS#7 and CMS routines so any | |
6754 | application which reads PKCS#7 or CMS data from untrusted sources is | |
6755 | affected. SSL/TLS is not affected. | |
6756 | ||
6757 | This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using | |
6758 | libFuzzer. | |
d8dc8538 | 6759 | ([CVE-2015-3195]) |
44652c16 DMSP |
6760 | |
6761 | *Stephen Henson* | |
6762 | ||
6763 | * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs. | |
6764 | This changes the decoding behaviour for some invalid messages, | |
6765 | though the change is mostly in the more lenient direction, and | |
6766 | legacy behaviour is preserved as much as possible. | |
6767 | ||
6768 | *Emilia Käsper* | |
6769 | ||
6770 | * In DSA_generate_parameters_ex, if the provided seed is too short, | |
6771 | return an error | |
6772 | ||
6773 | *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>* | |
6774 | ||
257e9d03 | 6775 | ### Changes between 1.0.2c and 1.0.2d [9 Jul 2015] |
44652c16 DMSP |
6776 | |
6777 | * Alternate chains certificate forgery | |
6778 | ||
6779 | During certificate verification, OpenSSL will attempt to find an | |
6780 | alternative certificate chain if the first attempt to build such a chain | |
6781 | fails. An error in the implementation of this logic can mean that an | |
6782 | attacker could cause certain checks on untrusted certificates to be | |
6783 | bypassed, such as the CA flag, enabling them to use a valid leaf | |
6784 | certificate to act as a CA and "issue" an invalid certificate. | |
6785 | ||
6786 | This issue was reported to OpenSSL by Adam Langley/David Benjamin | |
6787 | (Google/BoringSSL). | |
6788 | ||
6789 | *Matt Caswell* | |
6790 | ||
257e9d03 | 6791 | ### Changes between 1.0.2b and 1.0.2c [12 Jun 2015] |
44652c16 DMSP |
6792 | |
6793 | * Fix HMAC ABI incompatibility. The previous version introduced an ABI | |
6794 | incompatibility in the handling of HMAC. The previous ABI has now been | |
6795 | restored. | |
6796 | ||
6797 | *Matt Caswell* | |
6798 | ||
257e9d03 | 6799 | ### Changes between 1.0.2a and 1.0.2b [11 Jun 2015] |
44652c16 DMSP |
6800 | |
6801 | * Malformed ECParameters causes infinite loop | |
6802 | ||
6803 | When processing an ECParameters structure OpenSSL enters an infinite loop | |
6804 | if the curve specified is over a specially malformed binary polynomial | |
6805 | field. | |
6806 | ||
6807 | This can be used to perform denial of service against any | |
6808 | system which processes public keys, certificate requests or | |
6809 | certificates. This includes TLS clients and TLS servers with | |
6810 | client authentication enabled. | |
6811 | ||
6812 | This issue was reported to OpenSSL by Joseph Barr-Pixton. | |
d8dc8538 | 6813 | ([CVE-2015-1788]) |
44652c16 DMSP |
6814 | |
6815 | *Andy Polyakov* | |
6816 | ||
6817 | * Exploitable out-of-bounds read in X509_cmp_time | |
6818 | ||
6819 | X509_cmp_time does not properly check the length of the ASN1_TIME | |
6820 | string and can read a few bytes out of bounds. In addition, | |
6821 | X509_cmp_time accepts an arbitrary number of fractional seconds in the | |
6822 | time string. | |
6823 | ||
6824 | An attacker can use this to craft malformed certificates and CRLs of | |
6825 | various sizes and potentially cause a segmentation fault, resulting in | |
6826 | a DoS on applications that verify certificates or CRLs. TLS clients | |
6827 | that verify CRLs are affected. TLS clients and servers with client | |
6828 | authentication enabled may be affected if they use custom verification | |
6829 | callbacks. | |
6830 | ||
6831 | This issue was reported to OpenSSL by Robert Swiecki (Google), and | |
6832 | independently by Hanno Böck. | |
d8dc8538 | 6833 | ([CVE-2015-1789]) |
44652c16 DMSP |
6834 | |
6835 | *Emilia Käsper* | |
6836 | ||
6837 | * PKCS7 crash with missing EnvelopedContent | |
6838 | ||
6839 | The PKCS#7 parsing code does not handle missing inner EncryptedContent | |
6840 | correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs | |
6841 | with missing content and trigger a NULL pointer dereference on parsing. | |
6842 | ||
6843 | Applications that decrypt PKCS#7 data or otherwise parse PKCS#7 | |
6844 | structures from untrusted sources are affected. OpenSSL clients and | |
6845 | servers are not affected. | |
6846 | ||
6847 | This issue was reported to OpenSSL by Michal Zalewski (Google). | |
d8dc8538 | 6848 | ([CVE-2015-1790]) |
44652c16 DMSP |
6849 | |
6850 | *Emilia Käsper* | |
6851 | ||
6852 | * CMS verify infinite loop with unknown hash function | |
6853 | ||
6854 | When verifying a signedData message the CMS code can enter an infinite loop | |
6855 | if presented with an unknown hash function OID. This can be used to perform | |
6856 | denial of service against any system which verifies signedData messages using | |
6857 | the CMS code. | |
6858 | This issue was reported to OpenSSL by Johannes Bauer. | |
d8dc8538 | 6859 | ([CVE-2015-1792]) |
44652c16 DMSP |
6860 | |
6861 | *Stephen Henson* | |
6862 | ||
6863 | * Race condition handling NewSessionTicket | |
6864 | ||
6865 | If a NewSessionTicket is received by a multi-threaded client when attempting to | |
6866 | reuse a previous ticket then a race condition can occur potentially leading to | |
6867 | a double free of the ticket data. | |
d8dc8538 | 6868 | ([CVE-2015-1791]) |
44652c16 DMSP |
6869 | |
6870 | *Matt Caswell* | |
6871 | ||
6872 | * Only support 256-bit or stronger elliptic curves with the | |
6873 | 'ecdh_auto' setting (server) or by default (client). Of supported | |
6874 | curves, prefer P-256 (both). | |
6875 | ||
6876 | *Emilia Kasper* | |
6877 | ||
257e9d03 | 6878 | ### Changes between 1.0.2 and 1.0.2a [19 Mar 2015] |
44652c16 DMSP |
6879 | |
6880 | * ClientHello sigalgs DoS fix | |
6881 | ||
6882 | If a client connects to an OpenSSL 1.0.2 server and renegotiates with an | |
6883 | invalid signature algorithms extension a NULL pointer dereference will | |
6884 | occur. This can be exploited in a DoS attack against the server. | |
6885 | ||
6886 | This issue was was reported to OpenSSL by David Ramos of Stanford | |
6887 | University. | |
d8dc8538 | 6888 | ([CVE-2015-0291]) |
44652c16 DMSP |
6889 | |
6890 | *Stephen Henson and Matt Caswell* | |
6891 | ||
6892 | * Multiblock corrupted pointer fix | |
6893 | ||
6894 | OpenSSL 1.0.2 introduced the "multiblock" performance improvement. This | |
6895 | feature only applies on 64 bit x86 architecture platforms that support AES | |
6896 | NI instructions. A defect in the implementation of "multiblock" can cause | |
6897 | OpenSSL's internal write buffer to become incorrectly set to NULL when | |
6898 | using non-blocking IO. Typically, when the user application is using a | |
6899 | socket BIO for writing, this will only result in a failed connection. | |
6900 | However if some other BIO is used then it is likely that a segmentation | |
6901 | fault will be triggered, thus enabling a potential DoS attack. | |
6902 | ||
6903 | This issue was reported to OpenSSL by Daniel Danner and Rainer Mueller. | |
d8dc8538 | 6904 | ([CVE-2015-0290]) |
44652c16 DMSP |
6905 | |
6906 | *Matt Caswell* | |
6907 | ||
6908 | * Segmentation fault in DTLSv1_listen fix | |
6909 | ||
6910 | The DTLSv1_listen function is intended to be stateless and processes the | |
6911 | initial ClientHello from many peers. It is common for user code to loop | |
6912 | over the call to DTLSv1_listen until a valid ClientHello is received with | |
6913 | an associated cookie. A defect in the implementation of DTLSv1_listen means | |
6914 | that state is preserved in the SSL object from one invocation to the next | |
6915 | that can lead to a segmentation fault. Errors processing the initial | |
6916 | ClientHello can trigger this scenario. An example of such an error could be | |
6917 | that a DTLS1.0 only client is attempting to connect to a DTLS1.2 only | |
6918 | server. | |
6919 | ||
6920 | This issue was reported to OpenSSL by Per Allansson. | |
d8dc8538 | 6921 | ([CVE-2015-0207]) |
44652c16 DMSP |
6922 | |
6923 | *Matt Caswell* | |
6924 | ||
6925 | * Segmentation fault in ASN1_TYPE_cmp fix | |
6926 | ||
6927 | The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is | |
6928 | made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check | |
6929 | certificate signature algorithm consistency this can be used to crash any | |
6930 | certificate verification operation and exploited in a DoS attack. Any | |
6931 | application which performs certificate verification is vulnerable including | |
6932 | OpenSSL clients and servers which enable client authentication. | |
d8dc8538 | 6933 | ([CVE-2015-0286]) |
44652c16 DMSP |
6934 | |
6935 | *Stephen Henson* | |
6936 | ||
6937 | * Segmentation fault for invalid PSS parameters fix | |
6938 | ||
6939 | The signature verification routines will crash with a NULL pointer | |
6940 | dereference if presented with an ASN.1 signature using the RSA PSS | |
6941 | algorithm and invalid parameters. Since these routines are used to verify | |
6942 | certificate signature algorithms this can be used to crash any | |
6943 | certificate verification operation and exploited in a DoS attack. Any | |
6944 | application which performs certificate verification is vulnerable including | |
6945 | OpenSSL clients and servers which enable client authentication. | |
6946 | ||
6947 | This issue was was reported to OpenSSL by Brian Carpenter. | |
d8dc8538 | 6948 | ([CVE-2015-0208]) |
44652c16 DMSP |
6949 | |
6950 | *Stephen Henson* | |
6951 | ||
6952 | * ASN.1 structure reuse memory corruption fix | |
6953 | ||
6954 | Reusing a structure in ASN.1 parsing may allow an attacker to cause | |
6955 | memory corruption via an invalid write. Such reuse is and has been | |
6956 | strongly discouraged and is believed to be rare. | |
6957 | ||
6958 | Applications that parse structures containing CHOICE or ANY DEFINED BY | |
6959 | components may be affected. Certificate parsing (d2i_X509 and related | |
6960 | functions) are however not affected. OpenSSL clients and servers are | |
6961 | not affected. | |
d8dc8538 | 6962 | ([CVE-2015-0287]) |
44652c16 DMSP |
6963 | |
6964 | *Stephen Henson* | |
6965 | ||
6966 | * PKCS7 NULL pointer dereferences fix | |
6967 | ||
6968 | The PKCS#7 parsing code does not handle missing outer ContentInfo | |
6969 | correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with | |
6970 | missing content and trigger a NULL pointer dereference on parsing. | |
6971 | ||
6972 | Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or | |
6973 | otherwise parse PKCS#7 structures from untrusted sources are | |
6974 | affected. OpenSSL clients and servers are not affected. | |
6975 | ||
6976 | This issue was reported to OpenSSL by Michal Zalewski (Google). | |
d8dc8538 | 6977 | ([CVE-2015-0289]) |
44652c16 DMSP |
6978 | |
6979 | *Emilia Käsper* | |
6980 | ||
6981 | * DoS via reachable assert in SSLv2 servers fix | |
6982 | ||
6983 | A malicious client can trigger an OPENSSL_assert (i.e., an abort) in | |
6984 | servers that both support SSLv2 and enable export cipher suites by sending | |
6985 | a specially crafted SSLv2 CLIENT-MASTER-KEY message. | |
6986 | ||
6987 | This issue was discovered by Sean Burford (Google) and Emilia Käsper | |
6988 | (OpenSSL development team). | |
d8dc8538 | 6989 | ([CVE-2015-0293]) |
44652c16 DMSP |
6990 | |
6991 | *Emilia Käsper* | |
6992 | ||
6993 | * Empty CKE with client auth and DHE fix | |
6994 | ||
6995 | If client auth is used then a server can seg fault in the event of a DHE | |
6996 | ciphersuite being selected and a zero length ClientKeyExchange message | |
6997 | being sent by the client. This could be exploited in a DoS attack. | |
d8dc8538 | 6998 | ([CVE-2015-1787]) |
44652c16 DMSP |
6999 | |
7000 | *Matt Caswell* | |
7001 | ||
7002 | * Handshake with unseeded PRNG fix | |
7003 | ||
7004 | Under certain conditions an OpenSSL 1.0.2 client can complete a handshake | |
7005 | with an unseeded PRNG. The conditions are: | |
7006 | - The client is on a platform where the PRNG has not been seeded | |
7007 | automatically, and the user has not seeded manually | |
7008 | - A protocol specific client method version has been used (i.e. not | |
7009 | SSL_client_methodv23) | |
7010 | - A ciphersuite is used that does not require additional random data from | |
7011 | the PRNG beyond the initial ClientHello client random (e.g. PSK-RC4-SHA). | |
7012 | ||
7013 | If the handshake succeeds then the client random that has been used will | |
7014 | have been generated from a PRNG with insufficient entropy and therefore the | |
7015 | output may be predictable. | |
7016 | ||
7017 | For example using the following command with an unseeded openssl will | |
7018 | succeed on an unpatched platform: | |
7019 | ||
7020 | openssl s_client -psk 1a2b3c4d -tls1_2 -cipher PSK-RC4-SHA | |
d8dc8538 | 7021 | ([CVE-2015-0285]) |
44652c16 DMSP |
7022 | |
7023 | *Matt Caswell* | |
7024 | ||
7025 | * Use After Free following d2i_ECPrivatekey error fix | |
7026 | ||
7027 | A malformed EC private key file consumed via the d2i_ECPrivateKey function | |
7028 | could cause a use after free condition. This, in turn, could cause a double | |
7029 | free in several private key parsing functions (such as d2i_PrivateKey | |
7030 | or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption | |
7031 | for applications that receive EC private keys from untrusted | |
7032 | sources. This scenario is considered rare. | |
7033 | ||
7034 | This issue was discovered by the BoringSSL project and fixed in their | |
7035 | commit 517073cd4b. | |
d8dc8538 | 7036 | ([CVE-2015-0209]) |
44652c16 DMSP |
7037 | |
7038 | *Matt Caswell* | |
7039 | ||
7040 | * X509_to_X509_REQ NULL pointer deref fix | |
7041 | ||
7042 | The function X509_to_X509_REQ will crash with a NULL pointer dereference if | |
7043 | the certificate key is invalid. This function is rarely used in practice. | |
7044 | ||
7045 | This issue was discovered by Brian Carpenter. | |
d8dc8538 | 7046 | ([CVE-2015-0288]) |
44652c16 DMSP |
7047 | |
7048 | *Stephen Henson* | |
7049 | ||
7050 | * Removed the export ciphers from the DEFAULT ciphers | |
7051 | ||
7052 | *Kurt Roeckx* | |
7053 | ||
257e9d03 | 7054 | ### Changes between 1.0.1l and 1.0.2 [22 Jan 2015] |
44652c16 DMSP |
7055 | |
7056 | * Facilitate "universal" ARM builds targeting range of ARM ISAs, e.g. | |
7057 | ARMv5 through ARMv8, as opposite to "locking" it to single one. | |
7058 | So far those who have to target multiple platforms would compromise | |
7059 | and argue that binary targeting say ARMv5 would still execute on | |
7060 | ARMv8. "Universal" build resolves this compromise by providing | |
7061 | near-optimal performance even on newer platforms. | |
7062 | ||
7063 | *Andy Polyakov* | |
7064 | ||
7065 | * Accelerated NIST P-256 elliptic curve implementation for x86_64 | |
7066 | (other platforms pending). | |
7067 | ||
7068 | *Shay Gueron & Vlad Krasnov (Intel Corp), Andy Polyakov* | |
5f8e6c50 DMSP |
7069 | |
7070 | * Add support for the SignedCertificateTimestampList certificate and | |
7071 | OCSP response extensions from RFC6962. | |
7072 | ||
44652c16 DMSP |
7073 | *Rob Stradling* |
7074 | ||
7075 | * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.) | |
7076 | for corner cases. (Certain input points at infinity could lead to | |
7077 | bogus results, with non-infinity inputs mapped to infinity too.) | |
7078 | ||
7079 | *Bodo Moeller* | |
7080 | ||
7081 | * Initial support for PowerISA 2.0.7, first implemented in POWER8. | |
7082 | This covers AES, SHA256/512 and GHASH. "Initial" means that most | |
7083 | common cases are optimized and there still is room for further | |
7084 | improvements. Vector Permutation AES for Altivec is also added. | |
7085 | ||
7086 | *Andy Polyakov* | |
7087 | ||
7088 | * Add support for little-endian ppc64 Linux target. | |
7089 | ||
7090 | *Marcelo Cerri (IBM)* | |
7091 | ||
7092 | * Initial support for AMRv8 ISA crypto extensions. This covers AES, | |
7093 | SHA1, SHA256 and GHASH. "Initial" means that most common cases | |
7094 | are optimized and there still is room for further improvements. | |
7095 | Both 32- and 64-bit modes are supported. | |
7096 | ||
7097 | *Andy Polyakov, Ard Biesheuvel (Linaro)* | |
7098 | ||
7099 | * Improved ARMv7 NEON support. | |
7100 | ||
7101 | *Andy Polyakov* | |
7102 | ||
7103 | * Support for SPARC Architecture 2011 crypto extensions, first | |
7104 | implemented in SPARC T4. This covers AES, DES, Camellia, SHA1, | |
7105 | SHA256/512, MD5, GHASH and modular exponentiation. | |
7106 | ||
7107 | *Andy Polyakov, David Miller* | |
7108 | ||
7109 | * Accelerated modular exponentiation for Intel processors, a.k.a. | |
7110 | RSAZ. | |
7111 | ||
7112 | *Shay Gueron & Vlad Krasnov (Intel Corp)* | |
7113 | ||
7114 | * Support for new and upcoming Intel processors, including AVX2, | |
7115 | BMI and SHA ISA extensions. This includes additional "stitched" | |
7116 | implementations, AESNI-SHA256 and GCM, and multi-buffer support | |
7117 | for TLS encrypt. | |
7118 | ||
7119 | This work was sponsored by Intel Corp. | |
7120 | ||
7121 | *Andy Polyakov* | |
7122 | ||
7123 | * Support for DTLS 1.2. This adds two sets of DTLS methods: DTLS_*_method() | |
7124 | supports both DTLS 1.2 and 1.0 and should use whatever version the peer | |
7125 | supports and DTLSv1_2_*_method() which supports DTLS 1.2 only. | |
7126 | ||
7127 | *Steve Henson* | |
7128 | ||
7129 | * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file(): | |
7130 | this fixes a limitation in previous versions of OpenSSL. | |
7131 | ||
7132 | *Steve Henson* | |
7133 | ||
7134 | * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest, | |
7135 | MGF1 digest and OAEP label. | |
7136 | ||
7137 | *Steve Henson* | |
7138 | ||
7139 | * Add EVP support for key wrapping algorithms, to avoid problems with | |
7140 | existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in | |
7141 | the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap | |
7142 | algorithms and include tests cases. | |
7143 | ||
7144 | *Steve Henson* | |
7145 | ||
7146 | * Add functions to allocate and set the fields of an ECDSA_METHOD | |
7147 | structure. | |
7148 | ||
7149 | *Douglas E. Engert, Steve Henson* | |
7150 | ||
7151 | * New functions OPENSSL_gmtime_diff and ASN1_TIME_diff to find the | |
7152 | difference in days and seconds between two tm or ASN1_TIME structures. | |
7153 | ||
7154 | *Steve Henson* | |
7155 | ||
7156 | * Add -rev test option to s_server to just reverse order of characters | |
7157 | received by client and send back to server. Also prints an abbreviated | |
7158 | summary of the connection parameters. | |
7159 | ||
7160 | *Steve Henson* | |
7161 | ||
7162 | * New option -brief for s_client and s_server to print out a brief summary | |
7163 | of connection parameters. | |
7164 | ||
7165 | *Steve Henson* | |
7166 | ||
7167 | * Add callbacks for arbitrary TLS extensions. | |
7168 | ||
7169 | *Trevor Perrin <trevp@trevp.net> and Ben Laurie* | |
7170 | ||
7171 | * New option -crl_download in several openssl utilities to download CRLs | |
7172 | from CRLDP extension in certificates. | |
7173 | ||
7174 | *Steve Henson* | |
7175 | ||
7176 | * New options -CRL and -CRLform for s_client and s_server for CRLs. | |
7177 | ||
7178 | *Steve Henson* | |
7179 | ||
7180 | * New function X509_CRL_diff to generate a delta CRL from the difference | |
7181 | of two full CRLs. Add support to "crl" utility. | |
7182 | ||
7183 | *Steve Henson* | |
7184 | ||
7185 | * New functions to set lookup_crls function and to retrieve | |
7186 | X509_STORE from X509_STORE_CTX. | |
7187 | ||
7188 | *Steve Henson* | |
7189 | ||
7190 | * Print out deprecated issuer and subject unique ID fields in | |
7191 | certificates. | |
7192 | ||
7193 | *Steve Henson* | |
7194 | ||
7195 | * Extend OCSP I/O functions so they can be used for simple general purpose | |
7196 | HTTP as well as OCSP. New wrapper function which can be used to download | |
7197 | CRLs using the OCSP API. | |
7198 | ||
7199 | *Steve Henson* | |
7200 | ||
7201 | * Delegate command line handling in s_client/s_server to SSL_CONF APIs. | |
7202 | ||
7203 | *Steve Henson* | |
7204 | ||
257e9d03 | 7205 | * `SSL_CONF*` functions. These provide a common framework for application |
44652c16 DMSP |
7206 | configuration using configuration files or command lines. |
7207 | ||
7208 | *Steve Henson* | |
7209 | ||
7210 | * SSL/TLS tracing code. This parses out SSL/TLS records using the | |
7211 | message callback and prints the results. Needs compile time option | |
7212 | "enable-ssl-trace". New options to s_client and s_server to enable | |
7213 | tracing. | |
7214 | ||
7215 | *Steve Henson* | |
7216 | ||
7217 | * New ctrl and macro to retrieve supported points extensions. | |
7218 | Print out extension in s_server and s_client. | |
7219 | ||
7220 | *Steve Henson* | |
7221 | ||
7222 | * New functions to retrieve certificate signature and signature | |
7223 | OID NID. | |
7224 | ||
7225 | *Steve Henson* | |
7226 | ||
7227 | * Add functions to retrieve and manipulate the raw cipherlist sent by a | |
7228 | client to OpenSSL. | |
7229 | ||
7230 | *Steve Henson* | |
7231 | ||
7232 | * New Suite B modes for TLS code. These use and enforce the requirements | |
7233 | of RFC6460: restrict ciphersuites, only permit Suite B algorithms and | |
7234 | only use Suite B curves. The Suite B modes can be set by using the | |
7235 | strings "SUITEB128", "SUITEB192" or "SUITEB128ONLY" for the cipherstring. | |
7236 | ||
7237 | *Steve Henson* | |
7238 | ||
7239 | * New chain verification flags for Suite B levels of security. Check | |
7240 | algorithms are acceptable when flags are set in X509_verify_cert. | |
7241 | ||
7242 | *Steve Henson* | |
7243 | ||
7244 | * Make tls1_check_chain return a set of flags indicating checks passed | |
7245 | by a certificate chain. Add additional tests to handle client | |
7246 | certificates: checks for matching certificate type and issuer name | |
7247 | comparison. | |
7248 | ||
7249 | *Steve Henson* | |
7250 | ||
7251 | * If an attempt is made to use a signature algorithm not in the peer | |
7252 | preference list abort the handshake. If client has no suitable | |
7253 | signature algorithms in response to a certificate request do not | |
7254 | use the certificate. | |
7255 | ||
7256 | *Steve Henson* | |
7257 | ||
7258 | * If server EC tmp key is not in client preference list abort handshake. | |
7259 | ||
7260 | *Steve Henson* | |
7261 | ||
7262 | * Add support for certificate stores in CERT structure. This makes it | |
7263 | possible to have different stores per SSL structure or one store in | |
7264 | the parent SSL_CTX. Include distinct stores for certificate chain | |
7265 | verification and chain building. New ctrl SSL_CTRL_BUILD_CERT_CHAIN | |
7266 | to build and store a certificate chain in CERT structure: returning | |
7267 | an error if the chain cannot be built: this will allow applications | |
7268 | to test if a chain is correctly configured. | |
7269 | ||
7270 | Note: if the CERT based stores are not set then the parent SSL_CTX | |
7271 | store is used to retain compatibility with existing behaviour. | |
7272 | ||
44652c16 DMSP |
7273 | *Steve Henson* |
7274 | ||
7275 | * New function ssl_set_client_disabled to set a ciphersuite disabled | |
7276 | mask based on the current session, check mask when sending client | |
7277 | hello and checking the requested ciphersuite. | |
7278 | ||
7279 | *Steve Henson* | |
7280 | ||
7281 | * New ctrls to retrieve and set certificate types in a certificate | |
7282 | request message. Print out received values in s_client. If certificate | |
7283 | types is not set with custom values set sensible values based on | |
7284 | supported signature algorithms. | |
7285 | ||
7286 | *Steve Henson* | |
7287 | ||
7288 | * Support for distinct client and server supported signature algorithms. | |
7289 | ||
7290 | *Steve Henson* | |
7291 | ||
7292 | * Add certificate callback. If set this is called whenever a certificate | |
7293 | is required by client or server. An application can decide which | |
7294 | certificate chain to present based on arbitrary criteria: for example | |
7295 | supported signature algorithms. Add very simple example to s_server. | |
7296 | This fixes many of the problems and restrictions of the existing client | |
7297 | certificate callback: for example you can now clear an existing | |
7298 | certificate and specify the whole chain. | |
7299 | ||
7300 | *Steve Henson* | |
7301 | ||
7302 | * Add new "valid_flags" field to CERT_PKEY structure which determines what | |
7303 | the certificate can be used for (if anything). Set valid_flags field | |
7304 | in new tls1_check_chain function. Simplify ssl_set_cert_masks which used | |
7305 | to have similar checks in it. | |
7306 | ||
7307 | Add new "cert_flags" field to CERT structure and include a "strict mode". | |
7308 | This enforces some TLS certificate requirements (such as only permitting | |
7309 | certificate signature algorithms contained in the supported algorithms | |
7310 | extension) which some implementations ignore: this option should be used | |
7311 | with caution as it could cause interoperability issues. | |
7312 | ||
7313 | *Steve Henson* | |
7314 | ||
7315 | * Update and tidy signature algorithm extension processing. Work out | |
7316 | shared signature algorithms based on preferences and peer algorithms | |
7317 | and print them out in s_client and s_server. Abort handshake if no | |
7318 | shared signature algorithms. | |
7319 | ||
7320 | *Steve Henson* | |
7321 | ||
7322 | * Add new functions to allow customised supported signature algorithms | |
7323 | for SSL and SSL_CTX structures. Add options to s_client and s_server | |
7324 | to support them. | |
7325 | ||
7326 | *Steve Henson* | |
7327 | ||
7328 | * New function SSL_certs_clear() to delete all references to certificates | |
7329 | from an SSL structure. Before this once a certificate had been added | |
7330 | it couldn't be removed. | |
7331 | ||
7332 | *Steve Henson* | |
7333 | ||
7334 | * Integrate hostname, email address and IP address checking with certificate | |
7335 | verification. New verify options supporting checking in openssl utility. | |
7336 | ||
7337 | *Steve Henson* | |
7338 | ||
7339 | * Fixes and wildcard matching support to hostname and email checking | |
7340 | functions. Add manual page. | |
7341 | ||
7342 | *Florian Weimer (Red Hat Product Security Team)* | |
7343 | ||
7344 | * New functions to check a hostname email or IP address against a | |
7345 | certificate. Add options x509 utility to print results of checks against | |
7346 | a certificate. | |
7347 | ||
7348 | *Steve Henson* | |
7349 | ||
7350 | * Fix OCSP checking. | |
7351 | ||
7352 | *Rob Stradling <rob.stradling@comodo.com> and Ben Laurie* | |
7353 | ||
7354 | * Initial experimental support for explicitly trusted non-root CAs. | |
7355 | OpenSSL still tries to build a complete chain to a root but if an | |
7356 | intermediate CA has a trust setting included that is used. The first | |
7357 | setting is used: whether to trust (e.g., -addtrust option to the x509 | |
7358 | utility) or reject. | |
7359 | ||
7360 | *Steve Henson* | |
7361 | ||
7362 | * Add -trusted_first option which attempts to find certificates in the | |
7363 | trusted store even if an untrusted chain is also supplied. | |
7364 | ||
7365 | *Steve Henson* | |
7366 | ||
7367 | * MIPS assembly pack updates: support for MIPS32r2 and SmartMIPS ASE, | |
7368 | platform support for Linux and Android. | |
7369 | ||
7370 | *Andy Polyakov* | |
7371 | ||
7372 | * Support for linux-x32, ILP32 environment in x86_64 framework. | |
7373 | ||
7374 | *Andy Polyakov* | |
7375 | ||
7376 | * Experimental multi-implementation support for FIPS capable OpenSSL. | |
7377 | When in FIPS mode the approved implementations are used as normal, | |
7378 | when not in FIPS mode the internal unapproved versions are used instead. | |
7379 | This means that the FIPS capable OpenSSL isn't forced to use the | |
7380 | (often lower performance) FIPS implementations outside FIPS mode. | |
7381 | ||
7382 | *Steve Henson* | |
7383 | ||
7384 | * Transparently support X9.42 DH parameters when calling | |
7385 | PEM_read_bio_DHparameters. This means existing applications can handle | |
7386 | the new parameter format automatically. | |
7387 | ||
7388 | *Steve Henson* | |
7389 | ||
7390 | * Initial experimental support for X9.42 DH parameter format: mainly | |
7391 | to support use of 'q' parameter for RFC5114 parameters. | |
7392 | ||
7393 | *Steve Henson* | |
7394 | ||
7395 | * Add DH parameters from RFC5114 including test data to dhtest. | |
7396 | ||
7397 | *Steve Henson* | |
7398 | ||
7399 | * Support for automatic EC temporary key parameter selection. If enabled | |
7400 | the most preferred EC parameters are automatically used instead of | |
7401 | hardcoded fixed parameters. Now a server just has to call: | |
7402 | SSL_CTX_set_ecdh_auto(ctx, 1) and the server will automatically | |
7403 | support ECDH and use the most appropriate parameters. | |
7404 | ||
7405 | *Steve Henson* | |
7406 | ||
7407 | * Enhance and tidy EC curve and point format TLS extension code. Use | |
7408 | static structures instead of allocation if default values are used. | |
7409 | New ctrls to set curves we wish to support and to retrieve shared curves. | |
7410 | Print out shared curves in s_server. New options to s_server and s_client | |
7411 | to set list of supported curves. | |
7412 | ||
7413 | *Steve Henson* | |
7414 | ||
7415 | * New ctrls to retrieve supported signature algorithms and | |
7416 | supported curve values as an array of NIDs. Extend openssl utility | |
7417 | to print out received values. | |
7418 | ||
7419 | *Steve Henson* | |
7420 | ||
7421 | * Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert | |
7422 | between NIDs and the more common NIST names such as "P-256". Enhance | |
7423 | ecparam utility and ECC method to recognise the NIST names for curves. | |
7424 | ||
7425 | *Steve Henson* | |
7426 | ||
7427 | * Enhance SSL/TLS certificate chain handling to support different | |
7428 | chains for each certificate instead of one chain in the parent SSL_CTX. | |
7429 | ||
7430 | *Steve Henson* | |
7431 | ||
7432 | * Support for fixed DH ciphersuite client authentication: where both | |
7433 | server and client use DH certificates with common parameters. | |
7434 | ||
7435 | *Steve Henson* | |
7436 | ||
7437 | * Support for fixed DH ciphersuites: those requiring DH server | |
7438 | certificates. | |
7439 | ||
7440 | *Steve Henson* | |
7441 | ||
7442 | * New function i2d_re_X509_tbs for re-encoding the TBS portion of | |
7443 | the certificate. | |
7444 | Note: Related 1.0.2-beta specific macros X509_get_cert_info, | |
7445 | X509_CINF_set_modified, X509_CINF_get_issuer, X509_CINF_get_extensions and | |
7446 | X509_CINF_get_signature were reverted post internal team review. | |
7447 | ||
44652c16 DMSP |
7448 | OpenSSL 1.0.1 |
7449 | ------------- | |
7450 | ||
257e9d03 | 7451 | ### Changes between 1.0.1t and 1.0.1u [22 Sep 2016] |
44652c16 DMSP |
7452 | |
7453 | * OCSP Status Request extension unbounded memory growth | |
7454 | ||
7455 | A malicious client can send an excessively large OCSP Status Request | |
7456 | extension. If that client continually requests renegotiation, sending a | |
7457 | large OCSP Status Request extension each time, then there will be unbounded | |
7458 | memory growth on the server. This will eventually lead to a Denial Of | |
7459 | Service attack through memory exhaustion. Servers with a default | |
7460 | configuration are vulnerable even if they do not support OCSP. Builds using | |
7461 | the "no-ocsp" build time option are not affected. | |
7462 | ||
7463 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) | |
d8dc8538 | 7464 | ([CVE-2016-6304]) |
44652c16 DMSP |
7465 | |
7466 | *Matt Caswell* | |
7467 | ||
7468 | * In order to mitigate the SWEET32 attack, the DES ciphers were moved from | |
7469 | HIGH to MEDIUM. | |
7470 | ||
7471 | This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan | |
7472 | Leurent (INRIA) | |
d8dc8538 | 7473 | ([CVE-2016-2183]) |
44652c16 DMSP |
7474 | |
7475 | *Rich Salz* | |
7476 | ||
7477 | * OOB write in MDC2_Update() | |
7478 | ||
7479 | An overflow can occur in MDC2_Update() either if called directly or | |
7480 | through the EVP_DigestUpdate() function using MDC2. If an attacker | |
7481 | is able to supply very large amounts of input data after a previous | |
7482 | call to EVP_EncryptUpdate() with a partial block then a length check | |
7483 | can overflow resulting in a heap corruption. | |
7484 | ||
7485 | The amount of data needed is comparable to SIZE_MAX which is impractical | |
7486 | on most platforms. | |
7487 | ||
7488 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) | |
d8dc8538 | 7489 | ([CVE-2016-6303]) |
44652c16 DMSP |
7490 | |
7491 | *Stephen Henson* | |
7492 | ||
7493 | * Malformed SHA512 ticket DoS | |
7494 | ||
7495 | If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a | |
7496 | DoS attack where a malformed ticket will result in an OOB read which will | |
7497 | ultimately crash. | |
7498 | ||
7499 | The use of SHA512 in TLS session tickets is comparatively rare as it requires | |
7500 | a custom server callback and ticket lookup mechanism. | |
7501 | ||
7502 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) | |
d8dc8538 | 7503 | ([CVE-2016-6302]) |
44652c16 DMSP |
7504 | |
7505 | *Stephen Henson* | |
7506 | ||
7507 | * OOB write in BN_bn2dec() | |
7508 | ||
7509 | The function BN_bn2dec() does not check the return value of BN_div_word(). | |
7510 | This can cause an OOB write if an application uses this function with an | |
7511 | overly large BIGNUM. This could be a problem if an overly large certificate | |
7512 | or CRL is printed out from an untrusted source. TLS is not affected because | |
7513 | record limits will reject an oversized certificate before it is parsed. | |
7514 | ||
7515 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) | |
d8dc8538 | 7516 | ([CVE-2016-2182]) |
44652c16 DMSP |
7517 | |
7518 | *Stephen Henson* | |
7519 | ||
7520 | * OOB read in TS_OBJ_print_bio() | |
7521 | ||
7522 | The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is | |
7523 | the total length the OID text representation would use and not the amount | |
7524 | of data written. This will result in OOB reads when large OIDs are | |
7525 | presented. | |
7526 | ||
7527 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) | |
d8dc8538 | 7528 | ([CVE-2016-2180]) |
44652c16 DMSP |
7529 | |
7530 | *Stephen Henson* | |
7531 | ||
7532 | * Pointer arithmetic undefined behaviour | |
7533 | ||
7534 | Avoid some undefined pointer arithmetic | |
7535 | ||
7536 | A common idiom in the codebase is to check limits in the following manner: | |
7537 | "p + len > limit" | |
7538 | ||
7539 | Where "p" points to some malloc'd data of SIZE bytes and | |
7540 | limit == p + SIZE | |
7541 | ||
7542 | "len" here could be from some externally supplied data (e.g. from a TLS | |
7543 | message). | |
7544 | ||
7545 | The rules of C pointer arithmetic are such that "p + len" is only well | |
d7f3a2cc | 7546 | defined where len <= SIZE. Therefore, the above idiom is actually |
44652c16 DMSP |
7547 | undefined behaviour. |
7548 | ||
7549 | For example this could cause problems if some malloc implementation | |
7550 | provides an address for "p" such that "p + len" actually overflows for | |
7551 | values of len that are too big and therefore p + len < limit. | |
7552 | ||
7553 | This issue was reported to OpenSSL by Guido Vranken | |
d8dc8538 | 7554 | ([CVE-2016-2177]) |
44652c16 DMSP |
7555 | |
7556 | *Matt Caswell* | |
7557 | ||
7558 | * Constant time flag not preserved in DSA signing | |
7559 | ||
7560 | Operations in the DSA signing algorithm should run in constant time in | |
7561 | order to avoid side channel attacks. A flaw in the OpenSSL DSA | |
7562 | implementation means that a non-constant time codepath is followed for | |
7563 | certain operations. This has been demonstrated through a cache-timing | |
7564 | attack to be sufficient for an attacker to recover the private DSA key. | |
7565 | ||
7566 | This issue was reported by César Pereida (Aalto University), Billy Brumley | |
7567 | (Tampere University of Technology), and Yuval Yarom (The University of | |
7568 | Adelaide and NICTA). | |
d8dc8538 | 7569 | ([CVE-2016-2178]) |
44652c16 DMSP |
7570 | |
7571 | *César Pereida* | |
7572 | ||
7573 | * DTLS buffered message DoS | |
7574 | ||
7575 | In a DTLS connection where handshake messages are delivered out-of-order | |
7576 | those messages that OpenSSL is not yet ready to process will be buffered | |
7577 | for later use. Under certain circumstances, a flaw in the logic means that | |
7578 | those messages do not get removed from the buffer even though the handshake | |
7579 | has been completed. An attacker could force up to approx. 15 messages to | |
7580 | remain in the buffer when they are no longer required. These messages will | |
7581 | be cleared when the DTLS connection is closed. The default maximum size for | |
d7f3a2cc F |
7582 | a message is 100k. Therefore, the attacker could force an additional 1500k |
7583 | to be consumed per connection. By opening many simultaneous connections an | |
44652c16 DMSP |
7584 | attacker could cause a DoS attack through memory exhaustion. |
7585 | ||
7586 | This issue was reported to OpenSSL by Quan Luo. | |
d8dc8538 | 7587 | ([CVE-2016-2179]) |
44652c16 DMSP |
7588 | |
7589 | *Matt Caswell* | |
7590 | ||
7591 | * DTLS replay protection DoS | |
7592 | ||
7593 | A flaw in the DTLS replay attack protection mechanism means that records | |
7594 | that arrive for future epochs update the replay protection "window" before | |
7595 | the MAC for the record has been validated. This could be exploited by an | |
7596 | attacker by sending a record for the next epoch (which does not have to | |
7597 | decrypt or have a valid MAC), with a very large sequence number. This means | |
7598 | that all subsequent legitimate packets are dropped causing a denial of | |
7599 | service for a specific DTLS connection. | |
7600 | ||
7601 | This issue was reported to OpenSSL by the OCAP audit team. | |
d8dc8538 | 7602 | ([CVE-2016-2181]) |
44652c16 DMSP |
7603 | |
7604 | *Matt Caswell* | |
7605 | ||
7606 | * Certificate message OOB reads | |
7607 | ||
7608 | In OpenSSL 1.0.2 and earlier some missing message length checks can result | |
7609 | in OOB reads of up to 2 bytes beyond an allocated buffer. There is a | |
7610 | theoretical DoS risk but this has not been observed in practice on common | |
7611 | platforms. | |
7612 | ||
7613 | The messages affected are client certificate, client certificate request | |
7614 | and server certificate. As a result the attack can only be performed | |
7615 | against a client or a server which enables client authentication. | |
7616 | ||
7617 | This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) | |
d8dc8538 | 7618 | ([CVE-2016-6306]) |
44652c16 DMSP |
7619 | |
7620 | *Stephen Henson* | |
7621 | ||
257e9d03 | 7622 | ### Changes between 1.0.1s and 1.0.1t [3 May 2016] |
44652c16 DMSP |
7623 | |
7624 | * Prevent padding oracle in AES-NI CBC MAC check | |
7625 | ||
7626 | A MITM attacker can use a padding oracle attack to decrypt traffic | |
7627 | when the connection uses an AES CBC cipher and the server support | |
7628 | AES-NI. | |
7629 | ||
7630 | This issue was introduced as part of the fix for Lucky 13 padding | |
d8dc8538 | 7631 | attack ([CVE-2013-0169]). The padding check was rewritten to be in |
44652c16 DMSP |
7632 | constant time by making sure that always the same bytes are read and |
7633 | compared against either the MAC or padding bytes. But it no longer | |
7634 | checked that there was enough data to have both the MAC and padding | |
7635 | bytes. | |
7636 | ||
7637 | This issue was reported by Juraj Somorovsky using TLS-Attacker. | |
d8dc8538 | 7638 | ([CVE-2016-2107]) |
44652c16 DMSP |
7639 | |
7640 | *Kurt Roeckx* | |
7641 | ||
7642 | * Fix EVP_EncodeUpdate overflow | |
7643 | ||
7644 | An overflow can occur in the EVP_EncodeUpdate() function which is used for | |
7645 | Base64 encoding of binary data. If an attacker is able to supply very large | |
7646 | amounts of input data then a length check can overflow resulting in a heap | |
7647 | corruption. | |
7648 | ||
d7f3a2cc | 7649 | Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by |
257e9d03 | 7650 | the `PEM_write_bio*` family of functions. These are mainly used within the |
44652c16 DMSP |
7651 | OpenSSL command line applications, so any application which processes data |
7652 | from an untrusted source and outputs it as a PEM file should be considered | |
7653 | vulnerable to this issue. User applications that call these APIs directly | |
7654 | with large amounts of untrusted data may also be vulnerable. | |
7655 | ||
7656 | This issue was reported by Guido Vranken. | |
d8dc8538 | 7657 | ([CVE-2016-2105]) |
44652c16 DMSP |
7658 | |
7659 | *Matt Caswell* | |
7660 | ||
7661 | * Fix EVP_EncryptUpdate overflow | |
7662 | ||
7663 | An overflow can occur in the EVP_EncryptUpdate() function. If an attacker | |
7664 | is able to supply very large amounts of input data after a previous call to | |
7665 | EVP_EncryptUpdate() with a partial block then a length check can overflow | |
7666 | resulting in a heap corruption. Following an analysis of all OpenSSL | |
7667 | internal usage of the EVP_EncryptUpdate() function all usage is one of two | |
7668 | forms. The first form is where the EVP_EncryptUpdate() call is known to be | |
7669 | the first called function after an EVP_EncryptInit(), and therefore that | |
7670 | specific call must be safe. The second form is where the length passed to | |
7671 | EVP_EncryptUpdate() can be seen from the code to be some small value and | |
7672 | therefore there is no possibility of an overflow. Since all instances are | |
7673 | one of these two forms, it is believed that there can be no overflows in | |
7674 | internal code due to this problem. It should be noted that | |
7675 | EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths. | |
7676 | Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances | |
7677 | of these calls have also been analysed too and it is believed there are no | |
7678 | instances in internal usage where an overflow could occur. | |
7679 | ||
7680 | This issue was reported by Guido Vranken. | |
d8dc8538 | 7681 | ([CVE-2016-2106]) |
44652c16 DMSP |
7682 | |
7683 | *Matt Caswell* | |
7684 | ||
7685 | * Prevent ASN.1 BIO excessive memory allocation | |
7686 | ||
7687 | When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio() | |
7688 | a short invalid encoding can casuse allocation of large amounts of memory | |
7689 | potentially consuming excessive resources or exhausting memory. | |
7690 | ||
7691 | Any application parsing untrusted data through d2i BIO functions is | |
7692 | affected. The memory based functions such as d2i_X509() are *not* affected. | |
7693 | Since the memory based functions are used by the TLS library, TLS | |
7694 | applications are not affected. | |
7695 | ||
7696 | This issue was reported by Brian Carpenter. | |
d8dc8538 | 7697 | ([CVE-2016-2109]) |
44652c16 DMSP |
7698 | |
7699 | *Stephen Henson* | |
7700 | ||
7701 | * EBCDIC overread | |
7702 | ||
7703 | ASN1 Strings that are over 1024 bytes can cause an overread in applications | |
7704 | using the X509_NAME_oneline() function on EBCDIC systems. This could result | |
7705 | in arbitrary stack data being returned in the buffer. | |
7706 | ||
7707 | This issue was reported by Guido Vranken. | |
d8dc8538 | 7708 | ([CVE-2016-2176]) |
44652c16 DMSP |
7709 | |
7710 | *Matt Caswell* | |
7711 | ||
7712 | * Modify behavior of ALPN to invoke callback after SNI/servername | |
7713 | callback, such that updates to the SSL_CTX affect ALPN. | |
7714 | ||
7715 | *Todd Short* | |
7716 | ||
7717 | * Remove LOW from the DEFAULT cipher list. This removes singles DES from the | |
7718 | default. | |
7719 | ||
7720 | *Kurt Roeckx* | |
7721 | ||
7722 | * Only remove the SSLv2 methods with the no-ssl2-method option. When the | |
7723 | methods are enabled and ssl2 is disabled the methods return NULL. | |
7724 | ||
7725 | *Kurt Roeckx* | |
7726 | ||
257e9d03 | 7727 | ### Changes between 1.0.1r and 1.0.1s [1 Mar 2016] |
44652c16 DMSP |
7728 | |
7729 | * Disable weak ciphers in SSLv3 and up in default builds of OpenSSL. | |
7730 | Builds that are not configured with "enable-weak-ssl-ciphers" will not | |
7731 | provide any "EXPORT" or "LOW" strength ciphers. | |
7732 | ||
7733 | *Viktor Dukhovni* | |
7734 | ||
7735 | * Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2 | |
7736 | is by default disabled at build-time. Builds that are not configured with | |
7737 | "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used, | |
7738 | users who want to negotiate SSLv2 via the version-flexible SSLv23_method() | |
7739 | will need to explicitly call either of: | |
7740 | ||
7741 | SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2); | |
7742 | or | |
7743 | SSL_clear_options(ssl, SSL_OP_NO_SSLv2); | |
7744 | ||
7745 | as appropriate. Even if either of those is used, or the application | |
7746 | explicitly uses the version-specific SSLv2_method() or its client and | |
7747 | server variants, SSLv2 ciphers vulnerable to exhaustive search key | |
7748 | recovery have been removed. Specifically, the SSLv2 40-bit EXPORT | |
7749 | ciphers, and SSLv2 56-bit DES are no longer available. | |
d8dc8538 | 7750 | ([CVE-2016-0800]) |
44652c16 DMSP |
7751 | |
7752 | *Viktor Dukhovni* | |
7753 | ||
7754 | * Fix a double-free in DSA code | |
7755 | ||
7756 | A double free bug was discovered when OpenSSL parses malformed DSA private | |
7757 | keys and could lead to a DoS attack or memory corruption for applications | |
7758 | that receive DSA private keys from untrusted sources. This scenario is | |
7759 | considered rare. | |
7760 | ||
7761 | This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using | |
7762 | libFuzzer. | |
d8dc8538 | 7763 | ([CVE-2016-0705]) |
44652c16 DMSP |
7764 | |
7765 | *Stephen Henson* | |
7766 | ||
7767 | * Disable SRP fake user seed to address a server memory leak. | |
7768 | ||
7769 | Add a new method SRP_VBASE_get1_by_user that handles the seed properly. | |
7770 | ||
7771 | SRP_VBASE_get_by_user had inconsistent memory management behaviour. | |
7772 | In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user | |
7773 | was changed to ignore the "fake user" SRP seed, even if the seed | |
7774 | is configured. | |
7775 | ||
7776 | Users should use SRP_VBASE_get1_by_user instead. Note that in | |
7777 | SRP_VBASE_get1_by_user, caller must free the returned value. Note | |
7778 | also that even though configuring the SRP seed attempts to hide | |
7779 | invalid usernames by continuing the handshake with fake | |
7780 | credentials, this behaviour is not constant time and no strong | |
7781 | guarantees are made that the handshake is indistinguishable from | |
7782 | that of a valid user. | |
d8dc8538 | 7783 | ([CVE-2016-0798]) |
44652c16 DMSP |
7784 | |
7785 | *Emilia Käsper* | |
7786 | ||
7787 | * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption | |
7788 | ||
7789 | In the BN_hex2bn function the number of hex digits is calculated using an | |
1dc1ea18 DDO |
7790 | int value `i`. Later `bn_expand` is called with a value of `i * 4`. For |
7791 | large values of `i` this can result in `bn_expand` not allocating any | |
7792 | memory because `i * 4` is negative. This can leave the internal BIGNUM data | |
44652c16 | 7793 | field as NULL leading to a subsequent NULL ptr deref. For very large values |
1dc1ea18 | 7794 | of `i`, the calculation `i * 4` could be a positive value smaller than `i`. |
44652c16 DMSP |
7795 | In this case memory is allocated to the internal BIGNUM data field, but it |
7796 | is insufficiently sized leading to heap corruption. A similar issue exists | |
7797 | in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn | |
7798 | is ever called by user applications with very large untrusted hex/dec data. | |
7799 | This is anticipated to be a rare occurrence. | |
7800 | ||
7801 | All OpenSSL internal usage of these functions use data that is not expected | |
7802 | to be untrusted, e.g. config file data or application command line | |
7803 | arguments. If user developed applications generate config file data based | |
7804 | on untrusted data then it is possible that this could also lead to security | |
7805 | consequences. This is also anticipated to be rare. | |
7806 | ||
7807 | This issue was reported to OpenSSL by Guido Vranken. | |
d8dc8538 | 7808 | ([CVE-2016-0797]) |
44652c16 DMSP |
7809 | |
7810 | *Matt Caswell* | |
7811 | ||
257e9d03 | 7812 | * Fix memory issues in `BIO_*printf` functions |
44652c16 | 7813 | |
1dc1ea18 | 7814 | The internal `fmtstr` function used in processing a "%s" format string in |
257e9d03 | 7815 | the `BIO_*printf` functions could overflow while calculating the length of a |
44652c16 DMSP |
7816 | string and cause an OOB read when printing very long strings. |
7817 | ||
1dc1ea18 | 7818 | Additionally the internal `doapr_outch` function can attempt to write to an |
44652c16 DMSP |
7819 | OOB memory location (at an offset from the NULL pointer) in the event of a |
7820 | memory allocation failure. In 1.0.2 and below this could be caused where | |
7821 | the size of a buffer to be allocated is greater than INT_MAX. E.g. this | |
7822 | could be in processing a very long "%s" format string. Memory leaks can | |
7823 | also occur. | |
7824 | ||
7825 | The first issue may mask the second issue dependent on compiler behaviour. | |
7826 | These problems could enable attacks where large amounts of untrusted data | |
257e9d03 | 7827 | is passed to the `BIO_*printf` functions. If applications use these functions |
44652c16 DMSP |
7828 | in this way then they could be vulnerable. OpenSSL itself uses these |
7829 | functions when printing out human-readable dumps of ASN.1 data. Therefore | |
7830 | applications that print this data could be vulnerable if the data is from | |
7831 | untrusted sources. OpenSSL command line applications could also be | |
7832 | vulnerable where they print out ASN.1 data, or if untrusted data is passed | |
7833 | as command line arguments. | |
7834 | ||
7835 | Libssl is not considered directly vulnerable. Additionally certificates etc | |
7836 | received via remote connections via libssl are also unlikely to be able to | |
7837 | trigger these issues because of message size limits enforced within libssl. | |
7838 | ||
7839 | This issue was reported to OpenSSL Guido Vranken. | |
d8dc8538 | 7840 | ([CVE-2016-0799]) |
44652c16 DMSP |
7841 | |
7842 | *Matt Caswell* | |
7843 | ||
7844 | * Side channel attack on modular exponentiation | |
7845 | ||
7846 | A side-channel attack was found which makes use of cache-bank conflicts on | |
7847 | the Intel Sandy-Bridge microarchitecture which could lead to the recovery | |
7848 | of RSA keys. The ability to exploit this issue is limited as it relies on | |
7849 | an attacker who has control of code in a thread running on the same | |
7850 | hyper-threaded core as the victim thread which is performing decryptions. | |
7851 | ||
7852 | This issue was reported to OpenSSL by Yuval Yarom, The University of | |
7853 | Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and | |
7854 | Nadia Heninger, University of Pennsylvania with more information at | |
257e9d03 | 7855 | <http://cachebleed.info>. |
d8dc8538 | 7856 | ([CVE-2016-0702]) |
44652c16 DMSP |
7857 | |
7858 | *Andy Polyakov* | |
7859 | ||
ec2bfb7d | 7860 | * Change the req command to generate a 2048-bit RSA/DSA key by default, |
44652c16 DMSP |
7861 | if no keysize is specified with default_bits. This fixes an |
7862 | omission in an earlier change that changed all RSA/DSA key generation | |
ec2bfb7d | 7863 | commands to use 2048 bits by default. |
44652c16 DMSP |
7864 | |
7865 | *Emilia Käsper* | |
7866 | ||
257e9d03 | 7867 | ### Changes between 1.0.1q and 1.0.1r [28 Jan 2016] |
44652c16 DMSP |
7868 | |
7869 | * Protection for DH small subgroup attacks | |
7870 | ||
7871 | As a precautionary measure the SSL_OP_SINGLE_DH_USE option has been | |
7872 | switched on by default and cannot be disabled. This could have some | |
7873 | performance impact. | |
7874 | ||
7875 | *Matt Caswell* | |
7876 | ||
7877 | * SSLv2 doesn't block disabled ciphers | |
7878 | ||
7879 | A malicious client can negotiate SSLv2 ciphers that have been disabled on | |
7880 | the server and complete SSLv2 handshakes even if all SSLv2 ciphers have | |
7881 | been disabled, provided that the SSLv2 protocol was not also disabled via | |
7882 | SSL_OP_NO_SSLv2. | |
7883 | ||
7884 | This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram | |
7885 | and Sebastian Schinzel. | |
d8dc8538 | 7886 | ([CVE-2015-3197]) |
44652c16 DMSP |
7887 | |
7888 | *Viktor Dukhovni* | |
7889 | ||
7890 | * Reject DH handshakes with parameters shorter than 1024 bits. | |
7891 | ||
7892 | *Kurt Roeckx* | |
7893 | ||
257e9d03 | 7894 | ### Changes between 1.0.1p and 1.0.1q [3 Dec 2015] |
44652c16 DMSP |
7895 | |
7896 | * Certificate verify crash with missing PSS parameter | |
7897 | ||
7898 | The signature verification routines will crash with a NULL pointer | |
7899 | dereference if presented with an ASN.1 signature using the RSA PSS | |
7900 | algorithm and absent mask generation function parameter. Since these | |
7901 | routines are used to verify certificate signature algorithms this can be | |
7902 | used to crash any certificate verification operation and exploited in a | |
7903 | DoS attack. Any application which performs certificate verification is | |
7904 | vulnerable including OpenSSL clients and servers which enable client | |
7905 | authentication. | |
7906 | ||
7907 | This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG). | |
d8dc8538 | 7908 | ([CVE-2015-3194]) |
44652c16 DMSP |
7909 | |
7910 | *Stephen Henson* | |
7911 | ||
7912 | * X509_ATTRIBUTE memory leak | |
7913 | ||
7914 | When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak | |
7915 | memory. This structure is used by the PKCS#7 and CMS routines so any | |
7916 | application which reads PKCS#7 or CMS data from untrusted sources is | |
7917 | affected. SSL/TLS is not affected. | |
7918 | ||
7919 | This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using | |
7920 | libFuzzer. | |
d8dc8538 | 7921 | ([CVE-2015-3195]) |
44652c16 DMSP |
7922 | |
7923 | *Stephen Henson* | |
7924 | ||
7925 | * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs. | |
7926 | This changes the decoding behaviour for some invalid messages, | |
7927 | though the change is mostly in the more lenient direction, and | |
7928 | legacy behaviour is preserved as much as possible. | |
7929 | ||
7930 | *Emilia Käsper* | |
7931 | ||
7932 | * In DSA_generate_parameters_ex, if the provided seed is too short, | |
7933 | use a random seed, as already documented. | |
7934 | ||
7935 | *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>* | |
7936 | ||
257e9d03 | 7937 | ### Changes between 1.0.1o and 1.0.1p [9 Jul 2015] |
44652c16 DMSP |
7938 | |
7939 | * Alternate chains certificate forgery | |
7940 | ||
eb4129e1 | 7941 | During certificate verification, OpenSSL will attempt to find an |
44652c16 DMSP |
7942 | alternative certificate chain if the first attempt to build such a chain |
7943 | fails. An error in the implementation of this logic can mean that an | |
7944 | attacker could cause certain checks on untrusted certificates to be | |
7945 | bypassed, such as the CA flag, enabling them to use a valid leaf | |
7946 | certificate to act as a CA and "issue" an invalid certificate. | |
7947 | ||
7948 | This issue was reported to OpenSSL by Adam Langley/David Benjamin | |
7949 | (Google/BoringSSL). | |
d8dc8538 | 7950 | ([CVE-2015-1793]) |
44652c16 DMSP |
7951 | |
7952 | *Matt Caswell* | |
7953 | ||
7954 | * Race condition handling PSK identify hint | |
7955 | ||
7956 | If PSK identity hints are received by a multi-threaded client then | |
7957 | the values are wrongly updated in the parent SSL_CTX structure. This can | |
7958 | result in a race condition potentially leading to a double free of the | |
7959 | identify hint data. | |
d8dc8538 | 7960 | ([CVE-2015-3196]) |
44652c16 DMSP |
7961 | |
7962 | *Stephen Henson* | |
7963 | ||
257e9d03 RS |
7964 | ### Changes between 1.0.1n and 1.0.1o [12 Jun 2015] |
7965 | ||
44652c16 DMSP |
7966 | * Fix HMAC ABI incompatibility. The previous version introduced an ABI |
7967 | incompatibility in the handling of HMAC. The previous ABI has now been | |
7968 | restored. | |
7969 | ||
257e9d03 | 7970 | ### Changes between 1.0.1m and 1.0.1n [11 Jun 2015] |
44652c16 DMSP |
7971 | |
7972 | * Malformed ECParameters causes infinite loop | |
7973 | ||
7974 | When processing an ECParameters structure OpenSSL enters an infinite loop | |
7975 | if the curve specified is over a specially malformed binary polynomial | |
7976 | field. | |
7977 | ||
7978 | This can be used to perform denial of service against any | |
7979 | system which processes public keys, certificate requests or | |
7980 | certificates. This includes TLS clients and TLS servers with | |
7981 | client authentication enabled. | |
7982 | ||
7983 | This issue was reported to OpenSSL by Joseph Barr-Pixton. | |
d8dc8538 | 7984 | ([CVE-2015-1788]) |
44652c16 DMSP |
7985 | |
7986 | *Andy Polyakov* | |
7987 | ||
7988 | * Exploitable out-of-bounds read in X509_cmp_time | |
7989 | ||
7990 | X509_cmp_time does not properly check the length of the ASN1_TIME | |
7991 | string and can read a few bytes out of bounds. In addition, | |
7992 | X509_cmp_time accepts an arbitrary number of fractional seconds in the | |
7993 | time string. | |
7994 | ||
7995 | An attacker can use this to craft malformed certificates and CRLs of | |
7996 | various sizes and potentially cause a segmentation fault, resulting in | |
7997 | a DoS on applications that verify certificates or CRLs. TLS clients | |
7998 | that verify CRLs are affected. TLS clients and servers with client | |
7999 | authentication enabled may be affected if they use custom verification | |
8000 | callbacks. | |
8001 | ||
8002 | This issue was reported to OpenSSL by Robert Swiecki (Google), and | |
8003 | independently by Hanno Böck. | |
d8dc8538 | 8004 | ([CVE-2015-1789]) |
44652c16 DMSP |
8005 | |
8006 | *Emilia Käsper* | |
8007 | ||
8008 | * PKCS7 crash with missing EnvelopedContent | |
8009 | ||
8010 | The PKCS#7 parsing code does not handle missing inner EncryptedContent | |
8011 | correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs | |
8012 | with missing content and trigger a NULL pointer dereference on parsing. | |
8013 | ||
8014 | Applications that decrypt PKCS#7 data or otherwise parse PKCS#7 | |
8015 | structures from untrusted sources are affected. OpenSSL clients and | |
8016 | servers are not affected. | |
5f8e6c50 | 8017 | |
44652c16 | 8018 | This issue was reported to OpenSSL by Michal Zalewski (Google). |
d8dc8538 | 8019 | ([CVE-2015-1790]) |
5f8e6c50 | 8020 | |
44652c16 | 8021 | *Emilia Käsper* |
5f8e6c50 | 8022 | |
44652c16 DMSP |
8023 | * CMS verify infinite loop with unknown hash function |
8024 | ||
8025 | When verifying a signedData message the CMS code can enter an infinite loop | |
8026 | if presented with an unknown hash function OID. This can be used to perform | |
8027 | denial of service against any system which verifies signedData messages using | |
8028 | the CMS code. | |
8029 | This issue was reported to OpenSSL by Johannes Bauer. | |
d8dc8538 | 8030 | ([CVE-2015-1792]) |
44652c16 DMSP |
8031 | |
8032 | *Stephen Henson* | |
8033 | ||
8034 | * Race condition handling NewSessionTicket | |
8035 | ||
8036 | If a NewSessionTicket is received by a multi-threaded client when attempting to | |
8037 | reuse a previous ticket then a race condition can occur potentially leading to | |
8038 | a double free of the ticket data. | |
d8dc8538 | 8039 | ([CVE-2015-1791]) |
44652c16 DMSP |
8040 | |
8041 | *Matt Caswell* | |
8042 | ||
8043 | * Reject DH handshakes with parameters shorter than 768 bits. | |
8044 | ||
8045 | *Kurt Roeckx and Emilia Kasper* | |
8046 | ||
8047 | * dhparam: generate 2048-bit parameters by default. | |
8048 | ||
8049 | *Kurt Roeckx and Emilia Kasper* | |
8050 | ||
257e9d03 | 8051 | ### Changes between 1.0.1l and 1.0.1m [19 Mar 2015] |
44652c16 DMSP |
8052 | |
8053 | * Segmentation fault in ASN1_TYPE_cmp fix | |
8054 | ||
8055 | The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is | |
8056 | made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check | |
8057 | certificate signature algorithm consistency this can be used to crash any | |
8058 | certificate verification operation and exploited in a DoS attack. Any | |
8059 | application which performs certificate verification is vulnerable including | |
8060 | OpenSSL clients and servers which enable client authentication. | |
d8dc8538 | 8061 | ([CVE-2015-0286]) |
44652c16 DMSP |
8062 | |
8063 | *Stephen Henson* | |
8064 | ||
8065 | * ASN.1 structure reuse memory corruption fix | |
8066 | ||
8067 | Reusing a structure in ASN.1 parsing may allow an attacker to cause | |
8068 | memory corruption via an invalid write. Such reuse is and has been | |
8069 | strongly discouraged and is believed to be rare. | |
8070 | ||
8071 | Applications that parse structures containing CHOICE or ANY DEFINED BY | |
8072 | components may be affected. Certificate parsing (d2i_X509 and related | |
8073 | functions) are however not affected. OpenSSL clients and servers are | |
8074 | not affected. | |
d8dc8538 | 8075 | ([CVE-2015-0287]) |
44652c16 DMSP |
8076 | |
8077 | *Stephen Henson* | |
8078 | ||
8079 | * PKCS7 NULL pointer dereferences fix | |
8080 | ||
8081 | The PKCS#7 parsing code does not handle missing outer ContentInfo | |
8082 | correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with | |
8083 | missing content and trigger a NULL pointer dereference on parsing. | |
8084 | ||
8085 | Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or | |
8086 | otherwise parse PKCS#7 structures from untrusted sources are | |
8087 | affected. OpenSSL clients and servers are not affected. | |
8088 | ||
8089 | This issue was reported to OpenSSL by Michal Zalewski (Google). | |
d8dc8538 | 8090 | ([CVE-2015-0289]) |
44652c16 DMSP |
8091 | |
8092 | *Emilia Käsper* | |
8093 | ||
8094 | * DoS via reachable assert in SSLv2 servers fix | |
8095 | ||
8096 | A malicious client can trigger an OPENSSL_assert (i.e., an abort) in | |
8097 | servers that both support SSLv2 and enable export cipher suites by sending | |
8098 | a specially crafted SSLv2 CLIENT-MASTER-KEY message. | |
8099 | ||
8100 | This issue was discovered by Sean Burford (Google) and Emilia Käsper | |
8101 | (OpenSSL development team). | |
d8dc8538 | 8102 | ([CVE-2015-0293]) |
44652c16 DMSP |
8103 | |
8104 | *Emilia Käsper* | |
8105 | ||
8106 | * Use After Free following d2i_ECPrivatekey error fix | |
8107 | ||
8108 | A malformed EC private key file consumed via the d2i_ECPrivateKey function | |
8109 | could cause a use after free condition. This, in turn, could cause a double | |
8110 | free in several private key parsing functions (such as d2i_PrivateKey | |
8111 | or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption | |
8112 | for applications that receive EC private keys from untrusted | |
8113 | sources. This scenario is considered rare. | |
8114 | ||
8115 | This issue was discovered by the BoringSSL project and fixed in their | |
8116 | commit 517073cd4b. | |
d8dc8538 | 8117 | ([CVE-2015-0209]) |
44652c16 DMSP |
8118 | |
8119 | *Matt Caswell* | |
8120 | ||
8121 | * X509_to_X509_REQ NULL pointer deref fix | |
8122 | ||
8123 | The function X509_to_X509_REQ will crash with a NULL pointer dereference if | |
8124 | the certificate key is invalid. This function is rarely used in practice. | |
8125 | ||
8126 | This issue was discovered by Brian Carpenter. | |
d8dc8538 | 8127 | ([CVE-2015-0288]) |
44652c16 DMSP |
8128 | |
8129 | *Stephen Henson* | |
8130 | ||
8131 | * Removed the export ciphers from the DEFAULT ciphers | |
8132 | ||
8133 | *Kurt Roeckx* | |
8134 | ||
257e9d03 | 8135 | ### Changes between 1.0.1k and 1.0.1l [15 Jan 2015] |
44652c16 DMSP |
8136 | |
8137 | * Build fixes for the Windows and OpenVMS platforms | |
8138 | ||
8139 | *Matt Caswell and Richard Levitte* | |
8140 | ||
257e9d03 | 8141 | ### Changes between 1.0.1j and 1.0.1k [8 Jan 2015] |
44652c16 DMSP |
8142 | |
8143 | * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS | |
8144 | message can cause a segmentation fault in OpenSSL due to a NULL pointer | |
8145 | dereference. This could lead to a Denial Of Service attack. Thanks to | |
8146 | Markus Stenberg of Cisco Systems, Inc. for reporting this issue. | |
d8dc8538 | 8147 | ([CVE-2014-3571]) |
44652c16 DMSP |
8148 | |
8149 | *Steve Henson* | |
8150 | ||
8151 | * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the | |
8152 | dtls1_buffer_record function under certain conditions. In particular this | |
8153 | could occur if an attacker sent repeated DTLS records with the same | |
8154 | sequence number but for the next epoch. The memory leak could be exploited | |
8155 | by an attacker in a Denial of Service attack through memory exhaustion. | |
8156 | Thanks to Chris Mueller for reporting this issue. | |
d8dc8538 | 8157 | ([CVE-2015-0206]) |
44652c16 DMSP |
8158 | |
8159 | *Matt Caswell* | |
8160 | ||
8161 | * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is | |
8162 | built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl | |
8163 | method would be set to NULL which could later result in a NULL pointer | |
8164 | dereference. Thanks to Frank Schmirler for reporting this issue. | |
d8dc8538 | 8165 | ([CVE-2014-3569]) |
44652c16 DMSP |
8166 | |
8167 | *Kurt Roeckx* | |
8168 | ||
8169 | * Abort handshake if server key exchange message is omitted for ephemeral | |
8170 | ECDH ciphersuites. | |
8171 | ||
8172 | Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for | |
8173 | reporting this issue. | |
d8dc8538 | 8174 | ([CVE-2014-3572]) |
44652c16 DMSP |
8175 | |
8176 | *Steve Henson* | |
8177 | ||
8178 | * Remove non-export ephemeral RSA code on client and server. This code | |
8179 | violated the TLS standard by allowing the use of temporary RSA keys in | |
8180 | non-export ciphersuites and could be used by a server to effectively | |
8181 | downgrade the RSA key length used to a value smaller than the server | |
8182 | certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at | |
8183 | INRIA or reporting this issue. | |
d8dc8538 | 8184 | ([CVE-2015-0204]) |
44652c16 DMSP |
8185 | |
8186 | *Steve Henson* | |
8187 | ||
8188 | * Fixed issue where DH client certificates are accepted without verification. | |
8189 | An OpenSSL server will accept a DH certificate for client authentication | |
8190 | without the certificate verify message. This effectively allows a client to | |
8191 | authenticate without the use of a private key. This only affects servers | |
8192 | which trust a client certificate authority which issues certificates | |
8193 | containing DH keys: these are extremely rare and hardly ever encountered. | |
8194 | Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting | |
8195 | this issue. | |
d8dc8538 | 8196 | ([CVE-2015-0205]) |
44652c16 DMSP |
8197 | |
8198 | *Steve Henson* | |
8199 | ||
8200 | * Ensure that the session ID context of an SSL is updated when its | |
8201 | SSL_CTX is updated via SSL_set_SSL_CTX. | |
8202 | ||
8203 | The session ID context is typically set from the parent SSL_CTX, | |
8204 | and can vary with the CTX. | |
8205 | ||
8206 | *Adam Langley* | |
8207 | ||
8208 | * Fix various certificate fingerprint issues. | |
8209 | ||
8210 | By using non-DER or invalid encodings outside the signed portion of a | |
8211 | certificate the fingerprint can be changed without breaking the signature. | |
8212 | Although no details of the signed portion of the certificate can be changed | |
8213 | this can cause problems with some applications: e.g. those using the | |
8214 | certificate fingerprint for blacklists. | |
8215 | ||
8216 | 1. Reject signatures with non zero unused bits. | |
8217 | ||
8218 | If the BIT STRING containing the signature has non zero unused bits reject | |
8219 | the signature. All current signature algorithms require zero unused bits. | |
8220 | ||
8221 | 2. Check certificate algorithm consistency. | |
8222 | ||
8223 | Check the AlgorithmIdentifier inside TBS matches the one in the | |
8224 | certificate signature. NB: this will result in signature failure | |
8225 | errors for some broken certificates. | |
8226 | ||
8227 | Thanks to Konrad Kraszewski from Google for reporting this issue. | |
8228 | ||
8229 | 3. Check DSA/ECDSA signatures use DER. | |
8230 | ||
8231 | Re-encode DSA/ECDSA signatures and compare with the original received | |
8232 | signature. Return an error if there is a mismatch. | |
8233 | ||
8234 | This will reject various cases including garbage after signature | |
8235 | (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS | |
8236 | program for discovering this case) and use of BER or invalid ASN.1 INTEGERs | |
8237 | (negative or with leading zeroes). | |
8238 | ||
8239 | Further analysis was conducted and fixes were developed by Stephen Henson | |
8240 | of the OpenSSL core team. | |
8241 | ||
d8dc8538 | 8242 | ([CVE-2014-8275]) |
44652c16 DMSP |
8243 | |
8244 | *Steve Henson* | |
8245 | ||
43a70f02 RS |
8246 | * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect |
8247 | results on some platforms, including x86_64. This bug occurs at random | |
8248 | with a very low probability, and is not known to be exploitable in any | |
8249 | way, though its exact impact is difficult to determine. Thanks to Pieter | |
8250 | Wuille (Blockstream) who reported this issue and also suggested an initial | |
8251 | fix. Further analysis was conducted by the OpenSSL development team and | |
8252 | Adam Langley of Google. The final fix was developed by Andy Polyakov of | |
8253 | the OpenSSL core team. | |
d8dc8538 | 8254 | ([CVE-2014-3570]) |
5f8e6c50 DMSP |
8255 | |
8256 | *Andy Polyakov* | |
8257 | ||
43a70f02 RS |
8258 | * Do not resume sessions on the server if the negotiated protocol |
8259 | version does not match the session's version. Resuming with a different | |
8260 | version, while not strictly forbidden by the RFC, is of questionable | |
8261 | sanity and breaks all known clients. | |
5f8e6c50 | 8262 | |
44652c16 DMSP |
8263 | *David Benjamin, Emilia Käsper* |
8264 | ||
43a70f02 RS |
8265 | * Tighten handling of the ChangeCipherSpec (CCS) message: reject |
8266 | early CCS messages during renegotiation. (Note that because | |
8267 | renegotiation is encrypted, this early CCS was not exploitable.) | |
44652c16 DMSP |
8268 | |
8269 | *Emilia Käsper* | |
8270 | ||
43a70f02 RS |
8271 | * Tighten client-side session ticket handling during renegotiation: |
8272 | ensure that the client only accepts a session ticket if the server sends | |
8273 | the extension anew in the ServerHello. Previously, a TLS client would | |
8274 | reuse the old extension state and thus accept a session ticket if one was | |
8275 | announced in the initial ServerHello. | |
44652c16 | 8276 | |
43a70f02 RS |
8277 | Similarly, ensure that the client requires a session ticket if one |
8278 | was advertised in the ServerHello. Previously, a TLS client would | |
8279 | ignore a missing NewSessionTicket message. | |
44652c16 DMSP |
8280 | |
8281 | *Emilia Käsper* | |
8282 | ||
257e9d03 | 8283 | ### Changes between 1.0.1i and 1.0.1j [15 Oct 2014] |
44652c16 DMSP |
8284 | |
8285 | * SRTP Memory Leak. | |
8286 | ||
8287 | A flaw in the DTLS SRTP extension parsing code allows an attacker, who | |
8288 | sends a carefully crafted handshake message, to cause OpenSSL to fail | |
8289 | to free up to 64k of memory causing a memory leak. This could be | |
8290 | exploited in a Denial Of Service attack. This issue affects OpenSSL | |
8291 | 1.0.1 server implementations for both SSL/TLS and DTLS regardless of | |
8292 | whether SRTP is used or configured. Implementations of OpenSSL that | |
8293 | have been compiled with OPENSSL_NO_SRTP defined are not affected. | |
5f8e6c50 | 8294 | |
44652c16 | 8295 | The fix was developed by the OpenSSL team. |
d8dc8538 | 8296 | ([CVE-2014-3513]) |
5f8e6c50 | 8297 | |
44652c16 | 8298 | *OpenSSL team* |
5f8e6c50 | 8299 | |
44652c16 | 8300 | * Session Ticket Memory Leak. |
5f8e6c50 | 8301 | |
44652c16 DMSP |
8302 | When an OpenSSL SSL/TLS/DTLS server receives a session ticket the |
8303 | integrity of that ticket is first verified. In the event of a session | |
8304 | ticket integrity check failing, OpenSSL will fail to free memory | |
8305 | causing a memory leak. By sending a large number of invalid session | |
8306 | tickets an attacker could exploit this issue in a Denial Of Service | |
8307 | attack. | |
d8dc8538 | 8308 | ([CVE-2014-3567]) |
5f8e6c50 | 8309 | |
44652c16 | 8310 | *Steve Henson* |
5f8e6c50 | 8311 | |
44652c16 | 8312 | * Build option no-ssl3 is incomplete. |
5f8e6c50 | 8313 | |
44652c16 | 8314 | When OpenSSL is configured with "no-ssl3" as a build option, servers |
d7f3a2cc | 8315 | could accept and complete an SSL 3.0 handshake, and clients could be |
44652c16 | 8316 | configured to send them. |
d8dc8538 | 8317 | ([CVE-2014-3568]) |
5f8e6c50 | 8318 | |
44652c16 | 8319 | *Akamai and the OpenSSL team* |
5f8e6c50 | 8320 | |
44652c16 DMSP |
8321 | * Add support for TLS_FALLBACK_SCSV. |
8322 | Client applications doing fallback retries should call | |
8323 | SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV). | |
d8dc8538 | 8324 | ([CVE-2014-3566]) |
5f8e6c50 | 8325 | |
44652c16 | 8326 | *Adam Langley, Bodo Moeller* |
5f8e6c50 | 8327 | |
44652c16 | 8328 | * Add additional DigestInfo checks. |
5f8e6c50 | 8329 | |
44652c16 DMSP |
8330 | Re-encode DigestInto in DER and check against the original when |
8331 | verifying RSA signature: this will reject any improperly encoded | |
8332 | DigestInfo structures. | |
5f8e6c50 | 8333 | |
44652c16 | 8334 | Note: this is a precautionary measure and no attacks are currently known. |
5f8e6c50 | 8335 | |
5f8e6c50 DMSP |
8336 | *Steve Henson* |
8337 | ||
257e9d03 | 8338 | ### Changes between 1.0.1h and 1.0.1i [6 Aug 2014] |
5f8e6c50 | 8339 | |
44652c16 DMSP |
8340 | * Fix SRP buffer overrun vulnerability. Invalid parameters passed to the |
8341 | SRP code can be overrun an internal buffer. Add sanity check that | |
8342 | g, A, B < N to SRP code. | |
5f8e6c50 | 8343 | |
44652c16 DMSP |
8344 | Thanks to Sean Devlin and Watson Ladd of Cryptography Services, NCC |
8345 | Group for discovering this issue. | |
d8dc8538 | 8346 | ([CVE-2014-3512]) |
5f8e6c50 DMSP |
8347 | |
8348 | *Steve Henson* | |
8349 | ||
44652c16 DMSP |
8350 | * A flaw in the OpenSSL SSL/TLS server code causes the server to negotiate |
8351 | TLS 1.0 instead of higher protocol versions when the ClientHello message | |
8352 | is badly fragmented. This allows a man-in-the-middle attacker to force a | |
8353 | downgrade to TLS 1.0 even if both the server and the client support a | |
8354 | higher protocol version, by modifying the client's TLS records. | |
5f8e6c50 | 8355 | |
44652c16 DMSP |
8356 | Thanks to David Benjamin and Adam Langley (Google) for discovering and |
8357 | researching this issue. | |
d8dc8538 | 8358 | ([CVE-2014-3511]) |
5f8e6c50 | 8359 | |
44652c16 | 8360 | *David Benjamin* |
5f8e6c50 | 8361 | |
44652c16 DMSP |
8362 | * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject |
8363 | to a denial of service attack. A malicious server can crash the client | |
8364 | with a null pointer dereference (read) by specifying an anonymous (EC)DH | |
8365 | ciphersuite and sending carefully crafted handshake messages. | |
5f8e6c50 | 8366 | |
44652c16 DMSP |
8367 | Thanks to Felix Gröbert (Google) for discovering and researching this |
8368 | issue. | |
d8dc8538 | 8369 | ([CVE-2014-3510]) |
5f8e6c50 | 8370 | |
44652c16 | 8371 | *Emilia Käsper* |
5f8e6c50 | 8372 | |
44652c16 DMSP |
8373 | * By sending carefully crafted DTLS packets an attacker could cause openssl |
8374 | to leak memory. This can be exploited through a Denial of Service attack. | |
8375 | Thanks to Adam Langley for discovering and researching this issue. | |
d8dc8538 | 8376 | ([CVE-2014-3507]) |
5f8e6c50 | 8377 | |
44652c16 | 8378 | *Adam Langley* |
5f8e6c50 | 8379 | |
44652c16 DMSP |
8380 | * An attacker can force openssl to consume large amounts of memory whilst |
8381 | processing DTLS handshake messages. This can be exploited through a | |
8382 | Denial of Service attack. | |
8383 | Thanks to Adam Langley for discovering and researching this issue. | |
d8dc8538 | 8384 | ([CVE-2014-3506]) |
5f8e6c50 | 8385 | |
44652c16 | 8386 | *Adam Langley* |
5f8e6c50 | 8387 | |
44652c16 DMSP |
8388 | * An attacker can force an error condition which causes openssl to crash |
8389 | whilst processing DTLS packets due to memory being freed twice. This | |
8390 | can be exploited through a Denial of Service attack. | |
8391 | Thanks to Adam Langley and Wan-Teh Chang for discovering and researching | |
8392 | this issue. | |
d8dc8538 | 8393 | ([CVE-2014-3505]) |
5f8e6c50 | 8394 | |
44652c16 | 8395 | *Adam Langley* |
5f8e6c50 | 8396 | |
44652c16 DMSP |
8397 | * If a multithreaded client connects to a malicious server using a resumed |
8398 | session and the server sends an ec point format extension it could write | |
8399 | up to 255 bytes to freed memory. | |
5f8e6c50 | 8400 | |
44652c16 DMSP |
8401 | Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this |
8402 | issue. | |
d8dc8538 | 8403 | ([CVE-2014-3509]) |
5f8e6c50 | 8404 | |
44652c16 | 8405 | *Gabor Tyukasz* |
5f8e6c50 | 8406 | |
44652c16 DMSP |
8407 | * A malicious server can crash an OpenSSL client with a null pointer |
8408 | dereference (read) by specifying an SRP ciphersuite even though it was not | |
8409 | properly negotiated with the client. This can be exploited through a | |
8410 | Denial of Service attack. | |
5f8e6c50 | 8411 | |
44652c16 DMSP |
8412 | Thanks to Joonas Kuorilehto and Riku Hietamäki (Codenomicon) for |
8413 | discovering and researching this issue. | |
d8dc8538 | 8414 | ([CVE-2014-5139]) |
5f8e6c50 DMSP |
8415 | |
8416 | *Steve Henson* | |
8417 | ||
44652c16 DMSP |
8418 | * A flaw in OBJ_obj2txt may cause pretty printing functions such as |
8419 | X509_name_oneline, X509_name_print_ex et al. to leak some information | |
8420 | from the stack. Applications may be affected if they echo pretty printing | |
8421 | output to the attacker. | |
5f8e6c50 | 8422 | |
44652c16 | 8423 | Thanks to Ivan Fratric (Google) for discovering this issue. |
d8dc8538 | 8424 | ([CVE-2014-3508]) |
5f8e6c50 | 8425 | |
44652c16 | 8426 | *Emilia Käsper, and Steve Henson* |
5f8e6c50 | 8427 | |
44652c16 DMSP |
8428 | * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.) |
8429 | for corner cases. (Certain input points at infinity could lead to | |
8430 | bogus results, with non-infinity inputs mapped to infinity too.) | |
5f8e6c50 | 8431 | |
44652c16 | 8432 | *Bodo Moeller* |
5f8e6c50 | 8433 | |
257e9d03 | 8434 | ### Changes between 1.0.1g and 1.0.1h [5 Jun 2014] |
5f8e6c50 | 8435 | |
44652c16 DMSP |
8436 | * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted |
8437 | handshake can force the use of weak keying material in OpenSSL | |
8438 | SSL/TLS clients and servers. | |
5f8e6c50 | 8439 | |
44652c16 | 8440 | Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and |
d8dc8538 | 8441 | researching this issue. ([CVE-2014-0224]) |
5f8e6c50 | 8442 | |
44652c16 | 8443 | *KIKUCHI Masashi, Steve Henson* |
5f8e6c50 | 8444 | |
44652c16 DMSP |
8445 | * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an |
8446 | OpenSSL DTLS client the code can be made to recurse eventually crashing | |
8447 | in a DoS attack. | |
5f8e6c50 | 8448 | |
44652c16 | 8449 | Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue. |
d8dc8538 | 8450 | ([CVE-2014-0221]) |
5f8e6c50 | 8451 | |
44652c16 | 8452 | *Imre Rad, Steve Henson* |
5f8e6c50 | 8453 | |
44652c16 DMSP |
8454 | * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can |
8455 | be triggered by sending invalid DTLS fragments to an OpenSSL DTLS | |
8456 | client or server. This is potentially exploitable to run arbitrary | |
8457 | code on a vulnerable client or server. | |
5f8e6c50 | 8458 | |
d8dc8538 | 8459 | Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195]) |
5f8e6c50 | 8460 | |
44652c16 | 8461 | *Jüri Aedla, Steve Henson* |
5f8e6c50 | 8462 | |
44652c16 DMSP |
8463 | * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites |
8464 | are subject to a denial of service attack. | |
5f8e6c50 | 8465 | |
44652c16 | 8466 | Thanks to Felix Gröbert and Ivan Fratric at Google for discovering |
d8dc8538 | 8467 | this issue. ([CVE-2014-3470]) |
5f8e6c50 | 8468 | |
44652c16 | 8469 | *Felix Gröbert, Ivan Fratric, Steve Henson* |
5f8e6c50 | 8470 | |
44652c16 DMSP |
8471 | * Harmonize version and its documentation. -f flag is used to display |
8472 | compilation flags. | |
5f8e6c50 | 8473 | |
44652c16 | 8474 | *mancha <mancha1@zoho.com>* |
5f8e6c50 | 8475 | |
44652c16 DMSP |
8476 | * Fix eckey_priv_encode so it immediately returns an error upon a failure |
8477 | in i2d_ECPrivateKey. | |
5f8e6c50 | 8478 | |
44652c16 | 8479 | *mancha <mancha1@zoho.com>* |
5f8e6c50 | 8480 | |
44652c16 | 8481 | * Fix some double frees. These are not thought to be exploitable. |
5f8e6c50 | 8482 | |
44652c16 | 8483 | *mancha <mancha1@zoho.com>* |
5f8e6c50 | 8484 | |
257e9d03 | 8485 | ### Changes between 1.0.1f and 1.0.1g [7 Apr 2014] |
5f8e6c50 | 8486 | |
44652c16 DMSP |
8487 | * A missing bounds check in the handling of the TLS heartbeat extension |
8488 | can be used to reveal up to 64k of memory to a connected client or | |
8489 | server. | |
5f8e6c50 | 8490 | |
44652c16 DMSP |
8491 | Thanks for Neel Mehta of Google Security for discovering this bug and to |
8492 | Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for | |
d8dc8538 | 8493 | preparing the fix ([CVE-2014-0160]) |
5f8e6c50 | 8494 | |
44652c16 | 8495 | *Adam Langley, Bodo Moeller* |
5f8e6c50 | 8496 | |
44652c16 DMSP |
8497 | * Fix for the attack described in the paper "Recovering OpenSSL |
8498 | ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack" | |
8499 | by Yuval Yarom and Naomi Benger. Details can be obtained from: | |
257e9d03 | 8500 | <http://eprint.iacr.org/2014/140> |
5f8e6c50 | 8501 | |
44652c16 | 8502 | Thanks to Yuval Yarom and Naomi Benger for discovering this |
d8dc8538 | 8503 | flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076]) |
5f8e6c50 | 8504 | |
44652c16 | 8505 | *Yuval Yarom and Naomi Benger* |
5f8e6c50 | 8506 | |
44652c16 | 8507 | * TLS pad extension: draft-agl-tls-padding-03 |
5f8e6c50 | 8508 | |
44652c16 DMSP |
8509 | Workaround for the "TLS hang bug" (see FAQ and PR#2771): if the |
8510 | TLS client Hello record length value would otherwise be > 255 and | |
8511 | less that 512 pad with a dummy extension containing zeroes so it | |
8512 | is at least 512 bytes long. | |
5f8e6c50 | 8513 | |
44652c16 | 8514 | *Adam Langley, Steve Henson* |
5f8e6c50 | 8515 | |
257e9d03 | 8516 | ### Changes between 1.0.1e and 1.0.1f [6 Jan 2014] |
5f8e6c50 | 8517 | |
44652c16 DMSP |
8518 | * Fix for TLS record tampering bug. A carefully crafted invalid |
8519 | handshake could crash OpenSSL with a NULL pointer exception. | |
8520 | Thanks to Anton Johansson for reporting this issues. | |
d8dc8538 | 8521 | ([CVE-2013-4353]) |
5f8e6c50 | 8522 | |
44652c16 DMSP |
8523 | * Keep original DTLS digest and encryption contexts in retransmission |
8524 | structures so we can use the previous session parameters if they need | |
d8dc8538 | 8525 | to be resent. ([CVE-2013-6450]) |
5f8e6c50 | 8526 | |
44652c16 | 8527 | *Steve Henson* |
5f8e6c50 | 8528 | |
44652c16 DMSP |
8529 | * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which |
8530 | avoids preferring ECDHE-ECDSA ciphers when the client appears to be | |
8531 | Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for | |
8532 | several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug | |
8533 | is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing | |
8534 | 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer. | |
5f8e6c50 | 8535 | |
44652c16 | 8536 | *Rob Stradling, Adam Langley* |
5f8e6c50 | 8537 | |
257e9d03 | 8538 | ### Changes between 1.0.1d and 1.0.1e [11 Feb 2013] |
5f8e6c50 | 8539 | |
44652c16 DMSP |
8540 | * Correct fix for CVE-2013-0169. The original didn't work on AES-NI |
8541 | supporting platforms or when small records were transferred. | |
5f8e6c50 | 8542 | |
44652c16 | 8543 | *Andy Polyakov, Steve Henson* |
5f8e6c50 | 8544 | |
257e9d03 | 8545 | ### Changes between 1.0.1c and 1.0.1d [5 Feb 2013] |
5f8e6c50 | 8546 | |
44652c16 | 8547 | * Make the decoding of SSLv3, TLS and DTLS CBC records constant time. |
5f8e6c50 | 8548 | |
44652c16 DMSP |
8549 | This addresses the flaw in CBC record processing discovered by |
8550 | Nadhem Alfardan and Kenny Paterson. Details of this attack can be found | |
257e9d03 | 8551 | at: <http://www.isg.rhul.ac.uk/tls/> |
5f8e6c50 | 8552 | |
44652c16 DMSP |
8553 | Thanks go to Nadhem Alfardan and Kenny Paterson of the Information |
8554 | Security Group at Royal Holloway, University of London | |
8555 | (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and | |
8556 | Emilia Käsper for the initial patch. | |
d8dc8538 | 8557 | ([CVE-2013-0169]) |
5f8e6c50 | 8558 | |
44652c16 | 8559 | *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson* |
5f8e6c50 | 8560 | |
44652c16 DMSP |
8561 | * Fix flaw in AESNI handling of TLS 1.2 and 1.1 records for CBC mode |
8562 | ciphersuites which can be exploited in a denial of service attack. | |
8563 | Thanks go to and to Adam Langley <agl@chromium.org> for discovering | |
8564 | and detecting this bug and to Wolfgang Ettlinger | |
8565 | <wolfgang.ettlinger@gmail.com> for independently discovering this issue. | |
d8dc8538 | 8566 | ([CVE-2012-2686]) |
5f8e6c50 | 8567 | |
44652c16 | 8568 | *Adam Langley* |
5f8e6c50 | 8569 | |
44652c16 | 8570 | * Return an error when checking OCSP signatures when key is NULL. |
d8dc8538 | 8571 | This fixes a DoS attack. ([CVE-2013-0166]) |
5f8e6c50 DMSP |
8572 | |
8573 | *Steve Henson* | |
8574 | ||
44652c16 | 8575 | * Make openssl verify return errors. |
5f8e6c50 | 8576 | |
44652c16 | 8577 | *Chris Palmer <palmer@google.com> and Ben Laurie* |
5f8e6c50 | 8578 | |
44652c16 DMSP |
8579 | * Call OCSP Stapling callback after ciphersuite has been chosen, so |
8580 | the right response is stapled. Also change SSL_get_certificate() | |
8581 | so it returns the certificate actually sent. | |
257e9d03 | 8582 | See <http://rt.openssl.org/Ticket/Display.html?id=2836>. |
5f8e6c50 | 8583 | |
44652c16 | 8584 | *Rob Stradling <rob.stradling@comodo.com>* |
5f8e6c50 | 8585 | |
44652c16 | 8586 | * Fix possible deadlock when decoding public keys. |
5f8e6c50 DMSP |
8587 | |
8588 | *Steve Henson* | |
8589 | ||
44652c16 DMSP |
8590 | * Don't use TLS 1.0 record version number in initial client hello |
8591 | if renegotiating. | |
5f8e6c50 | 8592 | |
44652c16 | 8593 | *Steve Henson* |
5f8e6c50 | 8594 | |
257e9d03 | 8595 | ### Changes between 1.0.1b and 1.0.1c [10 May 2012] |
5f8e6c50 | 8596 | |
44652c16 DMSP |
8597 | * Sanity check record length before skipping explicit IV in TLS |
8598 | 1.2, 1.1 and DTLS to fix DoS attack. | |
5f8e6c50 | 8599 | |
44652c16 DMSP |
8600 | Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic |
8601 | fuzzing as a service testing platform. | |
d8dc8538 | 8602 | ([CVE-2012-2333]) |
5f8e6c50 DMSP |
8603 | |
8604 | *Steve Henson* | |
8605 | ||
44652c16 DMSP |
8606 | * Initialise tkeylen properly when encrypting CMS messages. |
8607 | Thanks to Solar Designer of Openwall for reporting this issue. | |
5f8e6c50 DMSP |
8608 | |
8609 | *Steve Henson* | |
8610 | ||
44652c16 DMSP |
8611 | * In FIPS mode don't try to use composite ciphers as they are not |
8612 | approved. | |
5f8e6c50 DMSP |
8613 | |
8614 | *Steve Henson* | |
8615 | ||
257e9d03 | 8616 | ### Changes between 1.0.1a and 1.0.1b [26 Apr 2012] |
44652c16 DMSP |
8617 | |
8618 | * OpenSSL 1.0.0 sets SSL_OP_ALL to 0x80000FFFL and OpenSSL 1.0.1 and | |
8619 | 1.0.1a set SSL_OP_NO_TLSv1_1 to 0x00000400L which would unfortunately | |
8620 | mean any application compiled against OpenSSL 1.0.0 headers setting | |
8621 | SSL_OP_ALL would also set SSL_OP_NO_TLSv1_1, unintentionally disabling | |
8622 | TLS 1.1 also. Fix this by changing the value of SSL_OP_NO_TLSv1_1 to | |
8623 | 0x10000000L Any application which was previously compiled against | |
8624 | OpenSSL 1.0.1 or 1.0.1a headers and which cares about SSL_OP_NO_TLSv1_1 | |
8625 | will need to be recompiled as a result. Letting be results in | |
8626 | inability to disable specifically TLS 1.1 and in client context, | |
8627 | in unlike event, limit maximum offered version to TLS 1.0 [see below]. | |
5f8e6c50 DMSP |
8628 | |
8629 | *Steve Henson* | |
8630 | ||
44652c16 DMSP |
8631 | * In order to ensure interoperability SSL_OP_NO_protocolX does not |
8632 | disable just protocol X, but all protocols above X *if* there are | |
8633 | protocols *below* X still enabled. In more practical terms it means | |
8634 | that if application wants to disable TLS1.0 in favor of TLS1.1 and | |
1dc1ea18 DDO |
8635 | above, it's not sufficient to pass `SSL_OP_NO_TLSv1`, one has to pass |
8636 | `SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv3|SSL_OP_NO_SSLv2`. This applies to | |
44652c16 | 8637 | client side. |
5f8e6c50 | 8638 | |
44652c16 | 8639 | *Andy Polyakov* |
5f8e6c50 | 8640 | |
257e9d03 | 8641 | ### Changes between 1.0.1 and 1.0.1a [19 Apr 2012] |
5f8e6c50 | 8642 | |
44652c16 DMSP |
8643 | * Check for potentially exploitable overflows in asn1_d2i_read_bio |
8644 | BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer | |
8645 | in CRYPTO_realloc_clean. | |
5f8e6c50 | 8646 | |
44652c16 DMSP |
8647 | Thanks to Tavis Ormandy, Google Security Team, for discovering this |
8648 | issue and to Adam Langley <agl@chromium.org> for fixing it. | |
d8dc8538 | 8649 | ([CVE-2012-2110]) |
5f8e6c50 | 8650 | |
44652c16 | 8651 | *Adam Langley (Google), Tavis Ormandy, Google Security Team* |
5f8e6c50 | 8652 | |
44652c16 | 8653 | * Don't allow TLS 1.2 SHA-256 ciphersuites in TLS 1.0, 1.1 connections. |
5f8e6c50 | 8654 | |
44652c16 | 8655 | *Adam Langley* |
5f8e6c50 | 8656 | |
44652c16 DMSP |
8657 | * Workarounds for some broken servers that "hang" if a client hello |
8658 | record length exceeds 255 bytes. | |
8659 | ||
8660 | 1. Do not use record version number > TLS 1.0 in initial client | |
8661 | hello: some (but not all) hanging servers will now work. | |
8662 | 2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate | |
8663 | the number of ciphers sent in the client hello. This should be | |
8664 | set to an even number, such as 50, for example by passing: | |
8665 | -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 to config or Configure. | |
8666 | Most broken servers should now work. | |
8667 | 3. If all else fails setting OPENSSL_NO_TLS1_2_CLIENT will disable | |
8668 | TLS 1.2 client support entirely. | |
5f8e6c50 DMSP |
8669 | |
8670 | *Steve Henson* | |
8671 | ||
44652c16 | 8672 | * Fix SEGV in Vector Permutation AES module observed in OpenSSH. |
5f8e6c50 | 8673 | |
44652c16 | 8674 | *Andy Polyakov* |
5f8e6c50 | 8675 | |
257e9d03 | 8676 | ### Changes between 1.0.0h and 1.0.1 [14 Mar 2012] |
44652c16 DMSP |
8677 | |
8678 | * Add compatibility with old MDC2 signatures which use an ASN1 OCTET | |
8679 | STRING form instead of a DigestInfo. | |
5f8e6c50 DMSP |
8680 | |
8681 | *Steve Henson* | |
8682 | ||
44652c16 DMSP |
8683 | * The format used for MDC2 RSA signatures is inconsistent between EVP |
8684 | and the RSA_sign/RSA_verify functions. This was made more apparent when | |
8685 | OpenSSL used RSA_sign/RSA_verify for some RSA signatures in particular | |
8686 | those which went through EVP_PKEY_METHOD in 1.0.0 and later. Detect | |
8687 | the correct format in RSA_verify so both forms transparently work. | |
5f8e6c50 | 8688 | |
44652c16 | 8689 | *Steve Henson* |
5f8e6c50 | 8690 | |
44652c16 DMSP |
8691 | * Some servers which support TLS 1.0 can choke if we initially indicate |
8692 | support for TLS 1.2 and later renegotiate using TLS 1.0 in the RSA | |
8693 | encrypted premaster secret. As a workaround use the maximum permitted | |
8694 | client version in client hello, this should keep such servers happy | |
8695 | and still work with previous versions of OpenSSL. | |
5f8e6c50 | 8696 | |
44652c16 | 8697 | *Steve Henson* |
5f8e6c50 | 8698 | |
44652c16 | 8699 | * Add support for TLS/DTLS heartbeats. |
5f8e6c50 | 8700 | |
44652c16 | 8701 | *Robin Seggelmann <seggelmann@fh-muenster.de>* |
5f8e6c50 | 8702 | |
44652c16 | 8703 | * Add support for SCTP. |
5f8e6c50 | 8704 | |
44652c16 | 8705 | *Robin Seggelmann <seggelmann@fh-muenster.de>* |
5f8e6c50 | 8706 | |
44652c16 | 8707 | * Improved PRNG seeding for VOS. |
5f8e6c50 | 8708 | |
44652c16 | 8709 | *Paul Green <Paul.Green@stratus.com>* |
5f8e6c50 | 8710 | |
44652c16 | 8711 | * Extensive assembler packs updates, most notably: |
5f8e6c50 | 8712 | |
257e9d03 RS |
8713 | - x86[_64]: AES-NI, PCLMULQDQ, RDRAND support; |
8714 | - x86[_64]: SSSE3 support (SHA1, vector-permutation AES); | |
8715 | - x86_64: bit-sliced AES implementation; | |
8716 | - ARM: NEON support, contemporary platforms optimizations; | |
8717 | - s390x: z196 support; | |
8718 | - `*`: GHASH and GF(2^m) multiplication implementations; | |
5f8e6c50 | 8719 | |
44652c16 | 8720 | *Andy Polyakov* |
5f8e6c50 | 8721 | |
44652c16 DMSP |
8722 | * Make TLS-SRP code conformant with RFC 5054 API cleanup |
8723 | (removal of unnecessary code) | |
5f8e6c50 | 8724 | |
44652c16 | 8725 | *Peter Sylvester <peter.sylvester@edelweb.fr>* |
5f8e6c50 | 8726 | |
44652c16 | 8727 | * Add TLS key material exporter from RFC 5705. |
5f8e6c50 | 8728 | |
44652c16 | 8729 | *Eric Rescorla* |
5f8e6c50 | 8730 | |
44652c16 | 8731 | * Add DTLS-SRTP negotiation from RFC 5764. |
5f8e6c50 | 8732 | |
44652c16 | 8733 | *Eric Rescorla* |
5f8e6c50 | 8734 | |
44652c16 | 8735 | * Add Next Protocol Negotiation, |
257e9d03 | 8736 | <http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00>. Can be |
44652c16 DMSP |
8737 | disabled with a no-npn flag to config or Configure. Code donated |
8738 | by Google. | |
5f8e6c50 | 8739 | |
44652c16 | 8740 | *Adam Langley <agl@google.com> and Ben Laurie* |
5f8e6c50 | 8741 | |
44652c16 DMSP |
8742 | * Add optional 64-bit optimized implementations of elliptic curves NIST-P224, |
8743 | NIST-P256, NIST-P521, with constant-time single point multiplication on | |
8744 | typical inputs. Compiler support for the nonstandard type `__uint128_t` is | |
8745 | required to use this (present in gcc 4.4 and later, for 64-bit builds). | |
8746 | Code made available under Apache License version 2.0. | |
5f8e6c50 | 8747 | |
44652c16 DMSP |
8748 | Specify "enable-ec_nistp_64_gcc_128" on the Configure (or config) command |
8749 | line to include this in your build of OpenSSL, and run "make depend" (or | |
8750 | "make update"). This enables the following EC_METHODs: | |
5f8e6c50 | 8751 | |
44652c16 DMSP |
8752 | EC_GFp_nistp224_method() |
8753 | EC_GFp_nistp256_method() | |
8754 | EC_GFp_nistp521_method() | |
5f8e6c50 | 8755 | |
44652c16 DMSP |
8756 | EC_GROUP_new_by_curve_name() will automatically use these (while |
8757 | EC_GROUP_new_curve_GFp() currently prefers the more flexible | |
8758 | implementations). | |
5f8e6c50 | 8759 | |
44652c16 | 8760 | *Emilia Käsper, Adam Langley, Bodo Moeller (Google)* |
5f8e6c50 | 8761 | |
44652c16 DMSP |
8762 | * Use type ossl_ssize_t instead of ssize_t which isn't available on |
8763 | all platforms. Move ssize_t definition from e_os.h to the public | |
8764 | header file e_os2.h as it now appears in public header file cms.h | |
5f8e6c50 | 8765 | |
44652c16 | 8766 | *Steve Henson* |
5f8e6c50 | 8767 | |
44652c16 DMSP |
8768 | * New -sigopt option to the ca, req and x509 utilities. Additional |
8769 | signature parameters can be passed using this option and in | |
8770 | particular PSS. | |
5f8e6c50 | 8771 | |
44652c16 | 8772 | *Steve Henson* |
5f8e6c50 | 8773 | |
44652c16 DMSP |
8774 | * Add RSA PSS signing function. This will generate and set the |
8775 | appropriate AlgorithmIdentifiers for PSS based on those in the | |
8776 | corresponding EVP_MD_CTX structure. No application support yet. | |
5f8e6c50 | 8777 | |
44652c16 | 8778 | *Steve Henson* |
5f8e6c50 | 8779 | |
44652c16 DMSP |
8780 | * Support for companion algorithm specific ASN1 signing routines. |
8781 | New function ASN1_item_sign_ctx() signs a pre-initialised | |
8782 | EVP_MD_CTX structure and sets AlgorithmIdentifiers based on | |
8783 | the appropriate parameters. | |
5f8e6c50 DMSP |
8784 | |
8785 | *Steve Henson* | |
8786 | ||
44652c16 DMSP |
8787 | * Add new algorithm specific ASN1 verification initialisation function |
8788 | to EVP_PKEY_ASN1_METHOD: this is not in EVP_PKEY_METHOD since the ASN1 | |
8789 | handling will be the same no matter what EVP_PKEY_METHOD is used. | |
8790 | Add a PSS handler to support verification of PSS signatures: checked | |
8791 | against a number of sample certificates. | |
5f8e6c50 | 8792 | |
44652c16 | 8793 | *Steve Henson* |
5f8e6c50 | 8794 | |
44652c16 | 8795 | * Add signature printing for PSS. Add PSS OIDs. |
5f8e6c50 | 8796 | |
44652c16 | 8797 | *Steve Henson, Martin Kaiser <lists@kaiser.cx>* |
5f8e6c50 | 8798 | |
44652c16 DMSP |
8799 | * Add algorithm specific signature printing. An individual ASN1 method |
8800 | can now print out signatures instead of the standard hex dump. | |
5f8e6c50 | 8801 | |
44652c16 DMSP |
8802 | More complex signatures (e.g. PSS) can print out more meaningful |
8803 | information. Include DSA version that prints out the signature | |
8804 | parameters r, s. | |
5f8e6c50 | 8805 | |
44652c16 | 8806 | *Steve Henson* |
5f8e6c50 | 8807 | |
44652c16 DMSP |
8808 | * Password based recipient info support for CMS library: implementing |
8809 | RFC3211. | |
5f8e6c50 | 8810 | |
44652c16 | 8811 | *Steve Henson* |
5f8e6c50 | 8812 | |
44652c16 DMSP |
8813 | * Split password based encryption into PBES2 and PBKDF2 functions. This |
8814 | neatly separates the code into cipher and PBE sections and is required | |
8815 | for some algorithms that split PBES2 into separate pieces (such as | |
8816 | password based CMS). | |
5f8e6c50 | 8817 | |
44652c16 | 8818 | *Steve Henson* |
5f8e6c50 | 8819 | |
44652c16 DMSP |
8820 | * Session-handling fixes: |
8821 | - Fix handling of connections that are resuming with a session ID, | |
8822 | but also support Session Tickets. | |
8823 | - Fix a bug that suppressed issuing of a new ticket if the client | |
8824 | presented a ticket with an expired session. | |
8825 | - Try to set the ticket lifetime hint to something reasonable. | |
8826 | - Make tickets shorter by excluding irrelevant information. | |
8827 | - On the client side, don't ignore renewed tickets. | |
5f8e6c50 | 8828 | |
44652c16 | 8829 | *Adam Langley, Bodo Moeller (Google)* |
5f8e6c50 | 8830 | |
44652c16 | 8831 | * Fix PSK session representation. |
5f8e6c50 | 8832 | |
44652c16 | 8833 | *Bodo Moeller* |
5f8e6c50 | 8834 | |
44652c16 | 8835 | * Add RC4-MD5 and AESNI-SHA1 "stitched" implementations. |
5f8e6c50 | 8836 | |
44652c16 | 8837 | This work was sponsored by Intel. |
5f8e6c50 | 8838 | |
44652c16 | 8839 | *Andy Polyakov* |
5f8e6c50 | 8840 | |
44652c16 DMSP |
8841 | * Add GCM support to TLS library. Some custom code is needed to split |
8842 | the IV between the fixed (from PRF) and explicit (from TLS record) | |
8843 | portions. This adds all GCM ciphersuites supported by RFC5288 and | |
257e9d03 | 8844 | RFC5289. Generalise some `AES*` cipherstrings to include GCM and |
44652c16 | 8845 | add a special AESGCM string for GCM only. |
5f8e6c50 | 8846 | |
44652c16 | 8847 | *Steve Henson* |
5f8e6c50 | 8848 | |
44652c16 DMSP |
8849 | * Expand range of ctrls for AES GCM. Permit setting invocation |
8850 | field on decrypt and retrieval of invocation field only on encrypt. | |
5f8e6c50 | 8851 | |
44652c16 | 8852 | *Steve Henson* |
5f8e6c50 | 8853 | |
44652c16 DMSP |
8854 | * Add HMAC ECC ciphersuites from RFC5289. Include SHA384 PRF support. |
8855 | As required by RFC5289 these ciphersuites cannot be used if for | |
8856 | versions of TLS earlier than 1.2. | |
5f8e6c50 | 8857 | |
44652c16 | 8858 | *Steve Henson* |
5f8e6c50 | 8859 | |
44652c16 DMSP |
8860 | * For FIPS capable OpenSSL interpret a NULL default public key method |
8861 | as unset and return the appropriate default but do *not* set the default. | |
8862 | This means we can return the appropriate method in applications that | |
8863 | switch between FIPS and non-FIPS modes. | |
8864 | ||
8865 | *Steve Henson* | |
5f8e6c50 | 8866 | |
44652c16 DMSP |
8867 | * Redirect HMAC and CMAC operations to FIPS module in FIPS mode. If an |
8868 | ENGINE is used then we cannot handle that in the FIPS module so we | |
8869 | keep original code iff non-FIPS operations are allowed. | |
5f8e6c50 DMSP |
8870 | |
8871 | *Steve Henson* | |
8872 | ||
44652c16 | 8873 | * Add -attime option to openssl utilities. |
5f8e6c50 | 8874 | |
44652c16 | 8875 | *Peter Eckersley <pde@eff.org>, Ben Laurie and Steve Henson* |
5f8e6c50 | 8876 | |
44652c16 | 8877 | * Redirect DSA and DH operations to FIPS module in FIPS mode. |
5f8e6c50 DMSP |
8878 | |
8879 | *Steve Henson* | |
8880 | ||
44652c16 DMSP |
8881 | * Redirect ECDSA and ECDH operations to FIPS module in FIPS mode. Also use |
8882 | FIPS EC methods unconditionally for now. | |
5f8e6c50 | 8883 | |
44652c16 | 8884 | *Steve Henson* |
5f8e6c50 | 8885 | |
44652c16 | 8886 | * New build option no-ec2m to disable characteristic 2 code. |
5f8e6c50 | 8887 | |
44652c16 | 8888 | *Steve Henson* |
5f8e6c50 | 8889 | |
44652c16 DMSP |
8890 | * Backport libcrypto audit of return value checking from 1.1.0-dev; not |
8891 | all cases can be covered as some introduce binary incompatibilities. | |
5f8e6c50 | 8892 | |
44652c16 | 8893 | *Steve Henson* |
5f8e6c50 | 8894 | |
44652c16 DMSP |
8895 | * Redirect RSA operations to FIPS module including keygen, |
8896 | encrypt, decrypt, sign and verify. Block use of non FIPS RSA methods. | |
5f8e6c50 | 8897 | |
44652c16 | 8898 | *Steve Henson* |
5f8e6c50 | 8899 | |
4d49b685 | 8900 | * Add similar low-level API blocking to ciphers. |
5f8e6c50 | 8901 | |
44652c16 | 8902 | *Steve Henson* |
5f8e6c50 | 8903 | |
4d49b685 | 8904 | * low-level digest APIs are not approved in FIPS mode: any attempt |
44652c16 | 8905 | to use these will cause a fatal error. Applications that *really* want |
257e9d03 | 8906 | to use them can use the `private_*` version instead. |
5f8e6c50 | 8907 | |
44652c16 | 8908 | *Steve Henson* |
5f8e6c50 | 8909 | |
44652c16 | 8910 | * Redirect cipher operations to FIPS module for FIPS builds. |
5f8e6c50 | 8911 | |
44652c16 | 8912 | *Steve Henson* |
5f8e6c50 | 8913 | |
44652c16 | 8914 | * Redirect digest operations to FIPS module for FIPS builds. |
5f8e6c50 | 8915 | |
44652c16 DMSP |
8916 | *Steve Henson* |
8917 | ||
8918 | * Update build system to add "fips" flag which will link in fipscanister.o | |
8919 | for static and shared library builds embedding a signature if needed. | |
5f8e6c50 DMSP |
8920 | |
8921 | *Steve Henson* | |
8922 | ||
44652c16 DMSP |
8923 | * Output TLS supported curves in preference order instead of numerical |
8924 | order. This is currently hardcoded for the highest order curves first. | |
8925 | This should be configurable so applications can judge speed vs strength. | |
5f8e6c50 | 8926 | |
44652c16 | 8927 | *Steve Henson* |
5f8e6c50 | 8928 | |
44652c16 | 8929 | * Add TLS v1.2 server support for client authentication. |
5f8e6c50 | 8930 | |
44652c16 | 8931 | *Steve Henson* |
5f8e6c50 | 8932 | |
44652c16 DMSP |
8933 | * Add support for FIPS mode in ssl library: disable SSLv3, non-FIPS ciphers |
8934 | and enable MD5. | |
5f8e6c50 | 8935 | |
44652c16 | 8936 | *Steve Henson* |
5f8e6c50 | 8937 | |
44652c16 DMSP |
8938 | * Functions FIPS_mode_set() and FIPS_mode() which call the underlying |
8939 | FIPS modules versions. | |
5f8e6c50 | 8940 | |
44652c16 | 8941 | *Steve Henson* |
5f8e6c50 | 8942 | |
44652c16 DMSP |
8943 | * Add TLS v1.2 client side support for client authentication. Keep cache |
8944 | of handshake records longer as we don't know the hash algorithm to use | |
8945 | until after the certificate request message is received. | |
5f8e6c50 | 8946 | |
44652c16 | 8947 | *Steve Henson* |
5f8e6c50 | 8948 | |
44652c16 DMSP |
8949 | * Initial TLS v1.2 client support. Add a default signature algorithms |
8950 | extension including all the algorithms we support. Parse new signature | |
8951 | format in client key exchange. Relax some ECC signing restrictions for | |
8952 | TLS v1.2 as indicated in RFC5246. | |
5f8e6c50 | 8953 | |
44652c16 | 8954 | *Steve Henson* |
5f8e6c50 | 8955 | |
44652c16 DMSP |
8956 | * Add server support for TLS v1.2 signature algorithms extension. Switch |
8957 | to new signature format when needed using client digest preference. | |
8958 | All server ciphersuites should now work correctly in TLS v1.2. No client | |
8959 | support yet and no support for client certificates. | |
5f8e6c50 | 8960 | |
44652c16 | 8961 | *Steve Henson* |
5f8e6c50 | 8962 | |
44652c16 DMSP |
8963 | * Initial TLS v1.2 support. Add new SHA256 digest to ssl code, switch |
8964 | to SHA256 for PRF when using TLS v1.2 and later. Add new SHA256 based | |
8965 | ciphersuites. At present only RSA key exchange ciphersuites work with | |
8966 | TLS v1.2. Add new option for TLS v1.2 replacing the old and obsolete | |
8967 | SSL_OP_PKCS1_CHECK flags with SSL_OP_NO_TLSv1_2. New TLSv1.2 methods | |
8968 | and version checking. | |
5f8e6c50 | 8969 | |
44652c16 | 8970 | *Steve Henson* |
5f8e6c50 | 8971 | |
44652c16 DMSP |
8972 | * New option OPENSSL_NO_SSL_INTERN. If an application can be compiled |
8973 | with this defined it will not be affected by any changes to ssl internal | |
8974 | structures. Add several utility functions to allow openssl application | |
8975 | to work with OPENSSL_NO_SSL_INTERN defined. | |
5f8e6c50 | 8976 | |
44652c16 | 8977 | *Steve Henson* |
5f8e6c50 | 8978 | |
44652c16 DMSP |
8979 | * A long standing patch to add support for SRP from EdelWeb (Peter |
8980 | Sylvester and Christophe Renou) was integrated. | |
8981 | *Christophe Renou <christophe.renou@edelweb.fr>, Peter Sylvester | |
8982 | <peter.sylvester@edelweb.fr>, Tom Wu <tjw@cs.stanford.edu>, and | |
8983 | Ben Laurie* | |
5f8e6c50 | 8984 | |
44652c16 | 8985 | * Add functions to copy EVP_PKEY_METHOD and retrieve flags and id. |
5f8e6c50 | 8986 | |
44652c16 | 8987 | *Steve Henson* |
5f8e6c50 | 8988 | |
44652c16 DMSP |
8989 | * Permit abbreviated handshakes when renegotiating using the function |
8990 | SSL_renegotiate_abbreviated(). | |
5f8e6c50 | 8991 | |
44652c16 | 8992 | *Robin Seggelmann <seggelmann@fh-muenster.de>* |
5f8e6c50 | 8993 | |
44652c16 DMSP |
8994 | * Add call to ENGINE_register_all_complete() to |
8995 | ENGINE_load_builtin_engines(), so some implementations get used | |
8996 | automatically instead of needing explicit application support. | |
5f8e6c50 | 8997 | |
44652c16 | 8998 | *Steve Henson* |
5f8e6c50 | 8999 | |
44652c16 | 9000 | * Add support for TLS key exporter as described in RFC5705. |
5f8e6c50 | 9001 | |
44652c16 | 9002 | *Robin Seggelmann <seggelmann@fh-muenster.de>, Steve Henson* |
5f8e6c50 | 9003 | |
44652c16 DMSP |
9004 | * Initial TLSv1.1 support. Since TLSv1.1 is very similar to TLS v1.0 only |
9005 | a few changes are required: | |
5f8e6c50 | 9006 | |
44652c16 DMSP |
9007 | Add SSL_OP_NO_TLSv1_1 flag. |
9008 | Add TLSv1_1 methods. | |
9009 | Update version checking logic to handle version 1.1. | |
9010 | Add explicit IV handling (ported from DTLS code). | |
9011 | Add command line options to s_client/s_server. | |
5f8e6c50 | 9012 | |
44652c16 | 9013 | *Steve Henson* |
5f8e6c50 | 9014 | |
44652c16 DMSP |
9015 | OpenSSL 1.0.0 |
9016 | ------------- | |
5f8e6c50 | 9017 | |
257e9d03 | 9018 | ### Changes between 1.0.0s and 1.0.0t [3 Dec 2015] |
5f8e6c50 | 9019 | |
44652c16 | 9020 | * X509_ATTRIBUTE memory leak |
5f8e6c50 | 9021 | |
44652c16 DMSP |
9022 | When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak |
9023 | memory. This structure is used by the PKCS#7 and CMS routines so any | |
9024 | application which reads PKCS#7 or CMS data from untrusted sources is | |
9025 | affected. SSL/TLS is not affected. | |
5f8e6c50 | 9026 | |
44652c16 DMSP |
9027 | This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using |
9028 | libFuzzer. | |
d8dc8538 | 9029 | ([CVE-2015-3195]) |
5f8e6c50 | 9030 | |
44652c16 | 9031 | *Stephen Henson* |
5f8e6c50 | 9032 | |
44652c16 | 9033 | * Race condition handling PSK identify hint |
5f8e6c50 | 9034 | |
44652c16 DMSP |
9035 | If PSK identity hints are received by a multi-threaded client then |
9036 | the values are wrongly updated in the parent SSL_CTX structure. This can | |
9037 | result in a race condition potentially leading to a double free of the | |
9038 | identify hint data. | |
d8dc8538 | 9039 | ([CVE-2015-3196]) |
5f8e6c50 | 9040 | |
44652c16 | 9041 | *Stephen Henson* |
5f8e6c50 | 9042 | |
257e9d03 | 9043 | ### Changes between 1.0.0r and 1.0.0s [11 Jun 2015] |
5f8e6c50 | 9044 | |
44652c16 | 9045 | * Malformed ECParameters causes infinite loop |
5f8e6c50 | 9046 | |
44652c16 DMSP |
9047 | When processing an ECParameters structure OpenSSL enters an infinite loop |
9048 | if the curve specified is over a specially malformed binary polynomial | |
9049 | field. | |
5f8e6c50 | 9050 | |
44652c16 DMSP |
9051 | This can be used to perform denial of service against any |
9052 | system which processes public keys, certificate requests or | |
9053 | certificates. This includes TLS clients and TLS servers with | |
9054 | client authentication enabled. | |
5f8e6c50 | 9055 | |
44652c16 | 9056 | This issue was reported to OpenSSL by Joseph Barr-Pixton. |
d8dc8538 | 9057 | ([CVE-2015-1788]) |
5f8e6c50 | 9058 | |
44652c16 | 9059 | *Andy Polyakov* |
5f8e6c50 | 9060 | |
44652c16 | 9061 | * Exploitable out-of-bounds read in X509_cmp_time |
5f8e6c50 | 9062 | |
44652c16 DMSP |
9063 | X509_cmp_time does not properly check the length of the ASN1_TIME |
9064 | string and can read a few bytes out of bounds. In addition, | |
9065 | X509_cmp_time accepts an arbitrary number of fractional seconds in the | |
9066 | time string. | |
5f8e6c50 | 9067 | |
44652c16 DMSP |
9068 | An attacker can use this to craft malformed certificates and CRLs of |
9069 | various sizes and potentially cause a segmentation fault, resulting in | |
9070 | a DoS on applications that verify certificates or CRLs. TLS clients | |
9071 | that verify CRLs are affected. TLS clients and servers with client | |
9072 | authentication enabled may be affected if they use custom verification | |
9073 | callbacks. | |
5f8e6c50 | 9074 | |
44652c16 DMSP |
9075 | This issue was reported to OpenSSL by Robert Swiecki (Google), and |
9076 | independently by Hanno Böck. | |
d8dc8538 | 9077 | ([CVE-2015-1789]) |
5f8e6c50 | 9078 | |
44652c16 | 9079 | *Emilia Käsper* |
5f8e6c50 | 9080 | |
44652c16 | 9081 | * PKCS7 crash with missing EnvelopedContent |
5f8e6c50 | 9082 | |
44652c16 DMSP |
9083 | The PKCS#7 parsing code does not handle missing inner EncryptedContent |
9084 | correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs | |
9085 | with missing content and trigger a NULL pointer dereference on parsing. | |
5f8e6c50 | 9086 | |
44652c16 DMSP |
9087 | Applications that decrypt PKCS#7 data or otherwise parse PKCS#7 |
9088 | structures from untrusted sources are affected. OpenSSL clients and | |
9089 | servers are not affected. | |
5f8e6c50 | 9090 | |
44652c16 | 9091 | This issue was reported to OpenSSL by Michal Zalewski (Google). |
d8dc8538 | 9092 | ([CVE-2015-1790]) |
5f8e6c50 | 9093 | |
44652c16 | 9094 | *Emilia Käsper* |
5f8e6c50 | 9095 | |
44652c16 | 9096 | * CMS verify infinite loop with unknown hash function |
5f8e6c50 | 9097 | |
44652c16 DMSP |
9098 | When verifying a signedData message the CMS code can enter an infinite loop |
9099 | if presented with an unknown hash function OID. This can be used to perform | |
9100 | denial of service against any system which verifies signedData messages using | |
9101 | the CMS code. | |
9102 | This issue was reported to OpenSSL by Johannes Bauer. | |
d8dc8538 | 9103 | ([CVE-2015-1792]) |
5f8e6c50 | 9104 | |
44652c16 | 9105 | *Stephen Henson* |
5f8e6c50 | 9106 | |
44652c16 | 9107 | * Race condition handling NewSessionTicket |
5f8e6c50 | 9108 | |
44652c16 DMSP |
9109 | If a NewSessionTicket is received by a multi-threaded client when attempting to |
9110 | reuse a previous ticket then a race condition can occur potentially leading to | |
9111 | a double free of the ticket data. | |
d8dc8538 | 9112 | ([CVE-2015-1791]) |
5f8e6c50 | 9113 | |
44652c16 | 9114 | *Matt Caswell* |
5f8e6c50 | 9115 | |
257e9d03 | 9116 | ### Changes between 1.0.0q and 1.0.0r [19 Mar 2015] |
5f8e6c50 | 9117 | |
44652c16 DMSP |
9118 | * Segmentation fault in ASN1_TYPE_cmp fix |
9119 | ||
9120 | The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is | |
9121 | made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check | |
9122 | certificate signature algorithm consistency this can be used to crash any | |
9123 | certificate verification operation and exploited in a DoS attack. Any | |
9124 | application which performs certificate verification is vulnerable including | |
9125 | OpenSSL clients and servers which enable client authentication. | |
d8dc8538 | 9126 | ([CVE-2015-0286]) |
5f8e6c50 | 9127 | |
44652c16 | 9128 | *Stephen Henson* |
5f8e6c50 | 9129 | |
44652c16 | 9130 | * ASN.1 structure reuse memory corruption fix |
5f8e6c50 | 9131 | |
44652c16 DMSP |
9132 | Reusing a structure in ASN.1 parsing may allow an attacker to cause |
9133 | memory corruption via an invalid write. Such reuse is and has been | |
9134 | strongly discouraged and is believed to be rare. | |
5f8e6c50 | 9135 | |
44652c16 DMSP |
9136 | Applications that parse structures containing CHOICE or ANY DEFINED BY |
9137 | components may be affected. Certificate parsing (d2i_X509 and related | |
9138 | functions) are however not affected. OpenSSL clients and servers are | |
9139 | not affected. | |
d8dc8538 | 9140 | ([CVE-2015-0287]) |
5f8e6c50 | 9141 | |
44652c16 | 9142 | *Stephen Henson* |
5f8e6c50 | 9143 | |
44652c16 | 9144 | * PKCS7 NULL pointer dereferences fix |
5f8e6c50 | 9145 | |
44652c16 DMSP |
9146 | The PKCS#7 parsing code does not handle missing outer ContentInfo |
9147 | correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with | |
9148 | missing content and trigger a NULL pointer dereference on parsing. | |
5f8e6c50 | 9149 | |
44652c16 DMSP |
9150 | Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or |
9151 | otherwise parse PKCS#7 structures from untrusted sources are | |
9152 | affected. OpenSSL clients and servers are not affected. | |
5f8e6c50 | 9153 | |
44652c16 | 9154 | This issue was reported to OpenSSL by Michal Zalewski (Google). |
d8dc8538 | 9155 | ([CVE-2015-0289]) |
5f8e6c50 | 9156 | |
44652c16 | 9157 | *Emilia Käsper* |
5f8e6c50 | 9158 | |
44652c16 | 9159 | * DoS via reachable assert in SSLv2 servers fix |
5f8e6c50 | 9160 | |
44652c16 DMSP |
9161 | A malicious client can trigger an OPENSSL_assert (i.e., an abort) in |
9162 | servers that both support SSLv2 and enable export cipher suites by sending | |
9163 | a specially crafted SSLv2 CLIENT-MASTER-KEY message. | |
5f8e6c50 | 9164 | |
44652c16 DMSP |
9165 | This issue was discovered by Sean Burford (Google) and Emilia Käsper |
9166 | (OpenSSL development team). | |
d8dc8538 | 9167 | ([CVE-2015-0293]) |
5f8e6c50 | 9168 | |
44652c16 | 9169 | *Emilia Käsper* |
5f8e6c50 | 9170 | |
44652c16 | 9171 | * Use After Free following d2i_ECPrivatekey error fix |
5f8e6c50 | 9172 | |
44652c16 DMSP |
9173 | A malformed EC private key file consumed via the d2i_ECPrivateKey function |
9174 | could cause a use after free condition. This, in turn, could cause a double | |
9175 | free in several private key parsing functions (such as d2i_PrivateKey | |
9176 | or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption | |
9177 | for applications that receive EC private keys from untrusted | |
9178 | sources. This scenario is considered rare. | |
5f8e6c50 | 9179 | |
44652c16 DMSP |
9180 | This issue was discovered by the BoringSSL project and fixed in their |
9181 | commit 517073cd4b. | |
d8dc8538 | 9182 | ([CVE-2015-0209]) |
5f8e6c50 | 9183 | |
44652c16 | 9184 | *Matt Caswell* |
5f8e6c50 | 9185 | |
44652c16 | 9186 | * X509_to_X509_REQ NULL pointer deref fix |
5f8e6c50 | 9187 | |
44652c16 DMSP |
9188 | The function X509_to_X509_REQ will crash with a NULL pointer dereference if |
9189 | the certificate key is invalid. This function is rarely used in practice. | |
5f8e6c50 | 9190 | |
44652c16 | 9191 | This issue was discovered by Brian Carpenter. |
d8dc8538 | 9192 | ([CVE-2015-0288]) |
5f8e6c50 | 9193 | |
44652c16 | 9194 | *Stephen Henson* |
5f8e6c50 | 9195 | |
44652c16 | 9196 | * Removed the export ciphers from the DEFAULT ciphers |
5f8e6c50 | 9197 | |
44652c16 | 9198 | *Kurt Roeckx* |
5f8e6c50 | 9199 | |
257e9d03 | 9200 | ### Changes between 1.0.0p and 1.0.0q [15 Jan 2015] |
5f8e6c50 | 9201 | |
44652c16 | 9202 | * Build fixes for the Windows and OpenVMS platforms |
5f8e6c50 | 9203 | |
44652c16 | 9204 | *Matt Caswell and Richard Levitte* |
5f8e6c50 | 9205 | |
257e9d03 | 9206 | ### Changes between 1.0.0o and 1.0.0p [8 Jan 2015] |
44652c16 DMSP |
9207 | |
9208 | * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS | |
9209 | message can cause a segmentation fault in OpenSSL due to a NULL pointer | |
9210 | dereference. This could lead to a Denial Of Service attack. Thanks to | |
9211 | Markus Stenberg of Cisco Systems, Inc. for reporting this issue. | |
d8dc8538 | 9212 | ([CVE-2014-3571]) |
5f8e6c50 DMSP |
9213 | |
9214 | *Steve Henson* | |
9215 | ||
44652c16 DMSP |
9216 | * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the |
9217 | dtls1_buffer_record function under certain conditions. In particular this | |
9218 | could occur if an attacker sent repeated DTLS records with the same | |
9219 | sequence number but for the next epoch. The memory leak could be exploited | |
9220 | by an attacker in a Denial of Service attack through memory exhaustion. | |
9221 | Thanks to Chris Mueller for reporting this issue. | |
d8dc8538 | 9222 | ([CVE-2015-0206]) |
5f8e6c50 | 9223 | |
44652c16 | 9224 | *Matt Caswell* |
5f8e6c50 | 9225 | |
44652c16 DMSP |
9226 | * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is |
9227 | built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl | |
9228 | method would be set to NULL which could later result in a NULL pointer | |
9229 | dereference. Thanks to Frank Schmirler for reporting this issue. | |
d8dc8538 | 9230 | ([CVE-2014-3569]) |
5f8e6c50 | 9231 | |
44652c16 | 9232 | *Kurt Roeckx* |
5f8e6c50 | 9233 | |
44652c16 DMSP |
9234 | * Abort handshake if server key exchange message is omitted for ephemeral |
9235 | ECDH ciphersuites. | |
5f8e6c50 | 9236 | |
44652c16 DMSP |
9237 | Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for |
9238 | reporting this issue. | |
d8dc8538 | 9239 | ([CVE-2014-3572]) |
5f8e6c50 | 9240 | |
44652c16 | 9241 | *Steve Henson* |
5f8e6c50 | 9242 | |
44652c16 DMSP |
9243 | * Remove non-export ephemeral RSA code on client and server. This code |
9244 | violated the TLS standard by allowing the use of temporary RSA keys in | |
9245 | non-export ciphersuites and could be used by a server to effectively | |
9246 | downgrade the RSA key length used to a value smaller than the server | |
9247 | certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at | |
9248 | INRIA or reporting this issue. | |
d8dc8538 | 9249 | ([CVE-2015-0204]) |
5f8e6c50 | 9250 | |
44652c16 | 9251 | *Steve Henson* |
5f8e6c50 | 9252 | |
44652c16 DMSP |
9253 | * Fixed issue where DH client certificates are accepted without verification. |
9254 | An OpenSSL server will accept a DH certificate for client authentication | |
9255 | without the certificate verify message. This effectively allows a client to | |
9256 | authenticate without the use of a private key. This only affects servers | |
9257 | which trust a client certificate authority which issues certificates | |
9258 | containing DH keys: these are extremely rare and hardly ever encountered. | |
9259 | Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting | |
9260 | this issue. | |
d8dc8538 | 9261 | ([CVE-2015-0205]) |
5f8e6c50 | 9262 | |
44652c16 | 9263 | *Steve Henson* |
5f8e6c50 | 9264 | |
43a70f02 RS |
9265 | * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect |
9266 | results on some platforms, including x86_64. This bug occurs at random | |
9267 | with a very low probability, and is not known to be exploitable in any | |
9268 | way, though its exact impact is difficult to determine. Thanks to Pieter | |
9269 | Wuille (Blockstream) who reported this issue and also suggested an initial | |
9270 | fix. Further analysis was conducted by the OpenSSL development team and | |
9271 | Adam Langley of Google. The final fix was developed by Andy Polyakov of | |
9272 | the OpenSSL core team. | |
d8dc8538 | 9273 | ([CVE-2014-3570]) |
5f8e6c50 | 9274 | |
43a70f02 | 9275 | *Andy Polyakov* |
5f8e6c50 | 9276 | |
43a70f02 | 9277 | * Fix various certificate fingerprint issues. |
5f8e6c50 | 9278 | |
44652c16 DMSP |
9279 | By using non-DER or invalid encodings outside the signed portion of a |
9280 | certificate the fingerprint can be changed without breaking the signature. | |
9281 | Although no details of the signed portion of the certificate can be changed | |
9282 | this can cause problems with some applications: e.g. those using the | |
9283 | certificate fingerprint for blacklists. | |
5f8e6c50 | 9284 | |
44652c16 | 9285 | 1. Reject signatures with non zero unused bits. |
5f8e6c50 | 9286 | |
44652c16 DMSP |
9287 | If the BIT STRING containing the signature has non zero unused bits reject |
9288 | the signature. All current signature algorithms require zero unused bits. | |
5f8e6c50 | 9289 | |
44652c16 | 9290 | 2. Check certificate algorithm consistency. |
5f8e6c50 | 9291 | |
44652c16 DMSP |
9292 | Check the AlgorithmIdentifier inside TBS matches the one in the |
9293 | certificate signature. NB: this will result in signature failure | |
9294 | errors for some broken certificates. | |
5f8e6c50 | 9295 | |
44652c16 | 9296 | Thanks to Konrad Kraszewski from Google for reporting this issue. |
5f8e6c50 | 9297 | |
44652c16 | 9298 | 3. Check DSA/ECDSA signatures use DER. |
5f8e6c50 | 9299 | |
eb4129e1 | 9300 | Re-encode DSA/ECDSA signatures and compare with the original received |
44652c16 | 9301 | signature. Return an error if there is a mismatch. |
5f8e6c50 | 9302 | |
44652c16 DMSP |
9303 | This will reject various cases including garbage after signature |
9304 | (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS | |
9305 | program for discovering this case) and use of BER or invalid ASN.1 INTEGERs | |
9306 | (negative or with leading zeroes). | |
5f8e6c50 | 9307 | |
44652c16 DMSP |
9308 | Further analysis was conducted and fixes were developed by Stephen Henson |
9309 | of the OpenSSL core team. | |
5f8e6c50 | 9310 | |
d8dc8538 | 9311 | ([CVE-2014-8275]) |
5f8e6c50 DMSP |
9312 | |
9313 | *Steve Henson* | |
9314 | ||
257e9d03 | 9315 | ### Changes between 1.0.0n and 1.0.0o [15 Oct 2014] |
5f8e6c50 | 9316 | |
44652c16 | 9317 | * Session Ticket Memory Leak. |
5f8e6c50 | 9318 | |
44652c16 DMSP |
9319 | When an OpenSSL SSL/TLS/DTLS server receives a session ticket the |
9320 | integrity of that ticket is first verified. In the event of a session | |
9321 | ticket integrity check failing, OpenSSL will fail to free memory | |
9322 | causing a memory leak. By sending a large number of invalid session | |
9323 | tickets an attacker could exploit this issue in a Denial Of Service | |
9324 | attack. | |
d8dc8538 | 9325 | ([CVE-2014-3567]) |
5f8e6c50 DMSP |
9326 | |
9327 | *Steve Henson* | |
9328 | ||
44652c16 | 9329 | * Build option no-ssl3 is incomplete. |
5f8e6c50 | 9330 | |
44652c16 | 9331 | When OpenSSL is configured with "no-ssl3" as a build option, servers |
d7f3a2cc | 9332 | could accept and complete an SSL 3.0 handshake, and clients could be |
44652c16 | 9333 | configured to send them. |
d8dc8538 | 9334 | ([CVE-2014-3568]) |
5f8e6c50 | 9335 | |
44652c16 DMSP |
9336 | *Akamai and the OpenSSL team* |
9337 | ||
9338 | * Add support for TLS_FALLBACK_SCSV. | |
9339 | Client applications doing fallback retries should call | |
9340 | SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV). | |
d8dc8538 | 9341 | ([CVE-2014-3566]) |
5f8e6c50 | 9342 | |
44652c16 | 9343 | *Adam Langley, Bodo Moeller* |
5f8e6c50 | 9344 | |
44652c16 | 9345 | * Add additional DigestInfo checks. |
5f8e6c50 | 9346 | |
eb4129e1 | 9347 | Re-encode DigestInto in DER and check against the original when |
44652c16 DMSP |
9348 | verifying RSA signature: this will reject any improperly encoded |
9349 | DigestInfo structures. | |
5f8e6c50 | 9350 | |
44652c16 | 9351 | Note: this is a precautionary measure and no attacks are currently known. |
5f8e6c50 | 9352 | |
5f8e6c50 DMSP |
9353 | *Steve Henson* |
9354 | ||
257e9d03 | 9355 | ### Changes between 1.0.0m and 1.0.0n [6 Aug 2014] |
5f8e6c50 | 9356 | |
44652c16 DMSP |
9357 | * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject |
9358 | to a denial of service attack. A malicious server can crash the client | |
9359 | with a null pointer dereference (read) by specifying an anonymous (EC)DH | |
9360 | ciphersuite and sending carefully crafted handshake messages. | |
5f8e6c50 | 9361 | |
44652c16 DMSP |
9362 | Thanks to Felix Gröbert (Google) for discovering and researching this |
9363 | issue. | |
d8dc8538 | 9364 | ([CVE-2014-3510]) |
5f8e6c50 | 9365 | |
44652c16 | 9366 | *Emilia Käsper* |
5f8e6c50 | 9367 | |
44652c16 DMSP |
9368 | * By sending carefully crafted DTLS packets an attacker could cause openssl |
9369 | to leak memory. This can be exploited through a Denial of Service attack. | |
9370 | Thanks to Adam Langley for discovering and researching this issue. | |
d8dc8538 | 9371 | ([CVE-2014-3507]) |
5f8e6c50 | 9372 | |
44652c16 | 9373 | *Adam Langley* |
5f8e6c50 | 9374 | |
44652c16 DMSP |
9375 | * An attacker can force openssl to consume large amounts of memory whilst |
9376 | processing DTLS handshake messages. This can be exploited through a | |
9377 | Denial of Service attack. | |
9378 | Thanks to Adam Langley for discovering and researching this issue. | |
d8dc8538 | 9379 | ([CVE-2014-3506]) |
5f8e6c50 | 9380 | |
44652c16 | 9381 | *Adam Langley* |
5f8e6c50 | 9382 | |
44652c16 DMSP |
9383 | * An attacker can force an error condition which causes openssl to crash |
9384 | whilst processing DTLS packets due to memory being freed twice. This | |
9385 | can be exploited through a Denial of Service attack. | |
9386 | Thanks to Adam Langley and Wan-Teh Chang for discovering and researching | |
9387 | this issue. | |
d8dc8538 | 9388 | ([CVE-2014-3505]) |
5f8e6c50 | 9389 | |
44652c16 | 9390 | *Adam Langley* |
5f8e6c50 | 9391 | |
44652c16 DMSP |
9392 | * If a multithreaded client connects to a malicious server using a resumed |
9393 | session and the server sends an ec point format extension it could write | |
9394 | up to 255 bytes to freed memory. | |
5f8e6c50 | 9395 | |
44652c16 DMSP |
9396 | Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this |
9397 | issue. | |
d8dc8538 | 9398 | ([CVE-2014-3509]) |
5f8e6c50 | 9399 | |
44652c16 | 9400 | *Gabor Tyukasz* |
5f8e6c50 | 9401 | |
44652c16 DMSP |
9402 | * A flaw in OBJ_obj2txt may cause pretty printing functions such as |
9403 | X509_name_oneline, X509_name_print_ex et al. to leak some information | |
9404 | from the stack. Applications may be affected if they echo pretty printing | |
9405 | output to the attacker. | |
5f8e6c50 | 9406 | |
44652c16 | 9407 | Thanks to Ivan Fratric (Google) for discovering this issue. |
d8dc8538 | 9408 | ([CVE-2014-3508]) |
5f8e6c50 | 9409 | |
44652c16 | 9410 | *Emilia Käsper, and Steve Henson* |
5f8e6c50 | 9411 | |
44652c16 DMSP |
9412 | * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.) |
9413 | for corner cases. (Certain input points at infinity could lead to | |
9414 | bogus results, with non-infinity inputs mapped to infinity too.) | |
5f8e6c50 | 9415 | |
44652c16 | 9416 | *Bodo Moeller* |
5f8e6c50 | 9417 | |
257e9d03 | 9418 | ### Changes between 1.0.0l and 1.0.0m [5 Jun 2014] |
5f8e6c50 | 9419 | |
44652c16 DMSP |
9420 | * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted |
9421 | handshake can force the use of weak keying material in OpenSSL | |
9422 | SSL/TLS clients and servers. | |
5f8e6c50 | 9423 | |
44652c16 | 9424 | Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and |
d8dc8538 | 9425 | researching this issue. ([CVE-2014-0224]) |
5f8e6c50 | 9426 | |
44652c16 | 9427 | *KIKUCHI Masashi, Steve Henson* |
5f8e6c50 | 9428 | |
44652c16 DMSP |
9429 | * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an |
9430 | OpenSSL DTLS client the code can be made to recurse eventually crashing | |
9431 | in a DoS attack. | |
5f8e6c50 | 9432 | |
44652c16 | 9433 | Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue. |
d8dc8538 | 9434 | ([CVE-2014-0221]) |
5f8e6c50 | 9435 | |
44652c16 | 9436 | *Imre Rad, Steve Henson* |
5f8e6c50 | 9437 | |
44652c16 DMSP |
9438 | * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can |
9439 | be triggered by sending invalid DTLS fragments to an OpenSSL DTLS | |
9440 | client or server. This is potentially exploitable to run arbitrary | |
9441 | code on a vulnerable client or server. | |
5f8e6c50 | 9442 | |
d8dc8538 | 9443 | Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195]) |
5f8e6c50 | 9444 | |
44652c16 | 9445 | *Jüri Aedla, Steve Henson* |
5f8e6c50 | 9446 | |
44652c16 DMSP |
9447 | * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites |
9448 | are subject to a denial of service attack. | |
5f8e6c50 | 9449 | |
44652c16 | 9450 | Thanks to Felix Gröbert and Ivan Fratric at Google for discovering |
d8dc8538 | 9451 | this issue. ([CVE-2014-3470]) |
5f8e6c50 | 9452 | |
44652c16 | 9453 | *Felix Gröbert, Ivan Fratric, Steve Henson* |
5f8e6c50 | 9454 | |
44652c16 DMSP |
9455 | * Harmonize version and its documentation. -f flag is used to display |
9456 | compilation flags. | |
5f8e6c50 | 9457 | |
44652c16 | 9458 | *mancha <mancha1@zoho.com>* |
5f8e6c50 | 9459 | |
44652c16 DMSP |
9460 | * Fix eckey_priv_encode so it immediately returns an error upon a failure |
9461 | in i2d_ECPrivateKey. | |
5f8e6c50 | 9462 | |
44652c16 | 9463 | *mancha <mancha1@zoho.com>* |
5f8e6c50 | 9464 | |
44652c16 | 9465 | * Fix some double frees. These are not thought to be exploitable. |
5f8e6c50 | 9466 | |
44652c16 | 9467 | *mancha <mancha1@zoho.com>* |
5f8e6c50 | 9468 | |
44652c16 DMSP |
9469 | * Fix for the attack described in the paper "Recovering OpenSSL |
9470 | ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack" | |
9471 | by Yuval Yarom and Naomi Benger. Details can be obtained from: | |
257e9d03 | 9472 | <http://eprint.iacr.org/2014/140> |
5f8e6c50 | 9473 | |
44652c16 | 9474 | Thanks to Yuval Yarom and Naomi Benger for discovering this |
d8dc8538 | 9475 | flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076]) |
5f8e6c50 | 9476 | |
44652c16 | 9477 | *Yuval Yarom and Naomi Benger* |
5f8e6c50 | 9478 | |
257e9d03 | 9479 | ### Changes between 1.0.0k and 1.0.0l [6 Jan 2014] |
5f8e6c50 | 9480 | |
44652c16 DMSP |
9481 | * Keep original DTLS digest and encryption contexts in retransmission |
9482 | structures so we can use the previous session parameters if they need | |
d8dc8538 | 9483 | to be resent. ([CVE-2013-6450]) |
5f8e6c50 DMSP |
9484 | |
9485 | *Steve Henson* | |
9486 | ||
44652c16 DMSP |
9487 | * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which |
9488 | avoids preferring ECDHE-ECDSA ciphers when the client appears to be | |
9489 | Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for | |
9490 | several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug | |
9491 | is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing | |
9492 | 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer. | |
5f8e6c50 | 9493 | |
44652c16 | 9494 | *Rob Stradling, Adam Langley* |
5f8e6c50 | 9495 | |
257e9d03 | 9496 | ### Changes between 1.0.0j and 1.0.0k [5 Feb 2013] |
5f8e6c50 | 9497 | |
44652c16 | 9498 | * Make the decoding of SSLv3, TLS and DTLS CBC records constant time. |
5f8e6c50 | 9499 | |
44652c16 DMSP |
9500 | This addresses the flaw in CBC record processing discovered by |
9501 | Nadhem Alfardan and Kenny Paterson. Details of this attack can be found | |
257e9d03 | 9502 | at: <http://www.isg.rhul.ac.uk/tls/> |
5f8e6c50 | 9503 | |
44652c16 DMSP |
9504 | Thanks go to Nadhem Alfardan and Kenny Paterson of the Information |
9505 | Security Group at Royal Holloway, University of London | |
9506 | (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and | |
9507 | Emilia Käsper for the initial patch. | |
d8dc8538 | 9508 | ([CVE-2013-0169]) |
5f8e6c50 | 9509 | |
44652c16 | 9510 | *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson* |
5f8e6c50 | 9511 | |
44652c16 | 9512 | * Return an error when checking OCSP signatures when key is NULL. |
d8dc8538 | 9513 | This fixes a DoS attack. ([CVE-2013-0166]) |
5f8e6c50 DMSP |
9514 | |
9515 | *Steve Henson* | |
9516 | ||
44652c16 DMSP |
9517 | * Call OCSP Stapling callback after ciphersuite has been chosen, so |
9518 | the right response is stapled. Also change SSL_get_certificate() | |
9519 | so it returns the certificate actually sent. | |
257e9d03 | 9520 | See <http://rt.openssl.org/Ticket/Display.html?id=2836>. |
44652c16 | 9521 | (This is a backport) |
5f8e6c50 | 9522 | |
44652c16 | 9523 | *Rob Stradling <rob.stradling@comodo.com>* |
5f8e6c50 | 9524 | |
44652c16 | 9525 | * Fix possible deadlock when decoding public keys. |
5f8e6c50 DMSP |
9526 | |
9527 | *Steve Henson* | |
9528 | ||
257e9d03 | 9529 | ### Changes between 1.0.0i and 1.0.0j [10 May 2012] |
5f8e6c50 | 9530 | |
44652c16 DMSP |
9531 | [NB: OpenSSL 1.0.0i and later 1.0.0 patch levels were released after |
9532 | OpenSSL 1.0.1.] | |
5f8e6c50 | 9533 | |
44652c16 DMSP |
9534 | * Sanity check record length before skipping explicit IV in DTLS |
9535 | to fix DoS attack. | |
5f8e6c50 | 9536 | |
44652c16 DMSP |
9537 | Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic |
9538 | fuzzing as a service testing platform. | |
d8dc8538 | 9539 | ([CVE-2012-2333]) |
5f8e6c50 DMSP |
9540 | |
9541 | *Steve Henson* | |
9542 | ||
44652c16 DMSP |
9543 | * Initialise tkeylen properly when encrypting CMS messages. |
9544 | Thanks to Solar Designer of Openwall for reporting this issue. | |
5f8e6c50 DMSP |
9545 | |
9546 | *Steve Henson* | |
9547 | ||
257e9d03 | 9548 | ### Changes between 1.0.0h and 1.0.0i [19 Apr 2012] |
5f8e6c50 | 9549 | |
44652c16 DMSP |
9550 | * Check for potentially exploitable overflows in asn1_d2i_read_bio |
9551 | BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer | |
9552 | in CRYPTO_realloc_clean. | |
5f8e6c50 | 9553 | |
44652c16 DMSP |
9554 | Thanks to Tavis Ormandy, Google Security Team, for discovering this |
9555 | issue and to Adam Langley <agl@chromium.org> for fixing it. | |
d8dc8538 | 9556 | ([CVE-2012-2110]) |
5f8e6c50 | 9557 | |
44652c16 | 9558 | *Adam Langley (Google), Tavis Ormandy, Google Security Team* |
5f8e6c50 | 9559 | |
257e9d03 | 9560 | ### Changes between 1.0.0g and 1.0.0h [12 Mar 2012] |
5f8e6c50 DMSP |
9561 | |
9562 | * Fix MMA (Bleichenbacher's attack on PKCS #1 v1.5 RSA padding) weakness | |
9563 | in CMS and PKCS7 code. When RSA decryption fails use a random key for | |
9564 | content decryption and always return the same error. Note: this attack | |
9565 | needs on average 2^20 messages so it only affects automated senders. The | |
9566 | old behaviour can be re-enabled in the CMS code by setting the | |
9567 | CMS_DEBUG_DECRYPT flag: this is useful for debugging and testing where | |
9568 | an MMA defence is not necessary. | |
9569 | Thanks to Ivan Nestlerode <inestlerode@us.ibm.com> for discovering | |
d8dc8538 | 9570 | this issue. ([CVE-2012-0884]) |
5f8e6c50 DMSP |
9571 | |
9572 | *Steve Henson* | |
9573 | ||
9574 | * Fix CVE-2011-4619: make sure we really are receiving a | |
9575 | client hello before rejecting multiple SGC restarts. Thanks to | |
9576 | Ivan Nestlerode <inestlerode@us.ibm.com> for discovering this bug. | |
9577 | ||
9578 | *Steve Henson* | |
9579 | ||
257e9d03 | 9580 | ### Changes between 1.0.0f and 1.0.0g [18 Jan 2012] |
5f8e6c50 DMSP |
9581 | |
9582 | * Fix for DTLS DoS issue introduced by fix for CVE-2011-4109. | |
9583 | Thanks to Antonio Martin, Enterprise Secure Access Research and | |
9584 | Development, Cisco Systems, Inc. for discovering this bug and | |
d8dc8538 | 9585 | preparing a fix. ([CVE-2012-0050]) |
5f8e6c50 DMSP |
9586 | |
9587 | *Antonio Martin* | |
9588 | ||
257e9d03 | 9589 | ### Changes between 1.0.0e and 1.0.0f [4 Jan 2012] |
5f8e6c50 DMSP |
9590 | |
9591 | * Nadhem Alfardan and Kenny Paterson have discovered an extension | |
9592 | of the Vaudenay padding oracle attack on CBC mode encryption | |
9593 | which enables an efficient plaintext recovery attack against | |
9594 | the OpenSSL implementation of DTLS. Their attack exploits timing | |
9595 | differences arising during decryption processing. A research | |
9596 | paper describing this attack can be found at: | |
257e9d03 | 9597 | <http://www.isg.rhul.ac.uk/~kp/dtls.pdf> |
5f8e6c50 DMSP |
9598 | Thanks go to Nadhem Alfardan and Kenny Paterson of the Information |
9599 | Security Group at Royal Holloway, University of London | |
9600 | (www.isg.rhul.ac.uk) for discovering this flaw and to Robin Seggelmann | |
9601 | <seggelmann@fh-muenster.de> and Michael Tuexen <tuexen@fh-muenster.de> | |
d8dc8538 | 9602 | for preparing the fix. ([CVE-2011-4108]) |
5f8e6c50 DMSP |
9603 | |
9604 | *Robin Seggelmann, Michael Tuexen* | |
9605 | ||
9606 | * Clear bytes used for block padding of SSL 3.0 records. | |
d8dc8538 | 9607 | ([CVE-2011-4576]) |
5f8e6c50 DMSP |
9608 | |
9609 | *Adam Langley (Google)* | |
9610 | ||
9611 | * Only allow one SGC handshake restart for SSL/TLS. Thanks to George | |
9612 | Kadianakis <desnacked@gmail.com> for discovering this issue and | |
d8dc8538 | 9613 | Adam Langley for preparing the fix. ([CVE-2011-4619]) |
5f8e6c50 DMSP |
9614 | |
9615 | *Adam Langley (Google)* | |
9616 | ||
d8dc8538 | 9617 | * Check parameters are not NULL in GOST ENGINE. ([CVE-2012-0027]) |
5f8e6c50 DMSP |
9618 | |
9619 | *Andrey Kulikov <amdeich@gmail.com>* | |
9620 | ||
9621 | * Prevent malformed RFC3779 data triggering an assertion failure. | |
9622 | Thanks to Andrew Chi, BBN Technologies, for discovering the flaw | |
d8dc8538 | 9623 | and Rob Austein <sra@hactrn.net> for fixing it. ([CVE-2011-4577]) |
5f8e6c50 DMSP |
9624 | |
9625 | *Rob Austein <sra@hactrn.net>* | |
9626 | ||
9627 | * Improved PRNG seeding for VOS. | |
9628 | ||
9629 | *Paul Green <Paul.Green@stratus.com>* | |
9630 | ||
9631 | * Fix ssl_ciph.c set-up race. | |
9632 | ||
9633 | *Adam Langley (Google)* | |
9634 | ||
9635 | * Fix spurious failures in ecdsatest.c. | |
9636 | ||
9637 | *Emilia Käsper (Google)* | |
9638 | ||
9639 | * Fix the BIO_f_buffer() implementation (which was mixing different | |
257e9d03 | 9640 | interpretations of the `..._len` fields). |
5f8e6c50 DMSP |
9641 | |
9642 | *Adam Langley (Google)* | |
9643 | ||
9644 | * Fix handling of BN_BLINDING: now BN_BLINDING_invert_ex (rather than | |
9645 | BN_BLINDING_invert_ex) calls BN_BLINDING_update, ensuring that concurrent | |
9646 | threads won't reuse the same blinding coefficients. | |
9647 | ||
9648 | This also avoids the need to obtain the CRYPTO_LOCK_RSA_BLINDING | |
9649 | lock to call BN_BLINDING_invert_ex, and avoids one use of | |
9650 | BN_BLINDING_update for each BN_BLINDING structure (previously, | |
9651 | the last update always remained unused). | |
9652 | ||
9653 | *Emilia Käsper (Google)* | |
9654 | ||
9655 | * In ssl3_clear, preserve s3->init_extra along with s3->rbuf. | |
9656 | ||
9657 | *Bob Buckholz (Google)* | |
9658 | ||
257e9d03 | 9659 | ### Changes between 1.0.0d and 1.0.0e [6 Sep 2011] |
5f8e6c50 DMSP |
9660 | |
9661 | * Fix bug where CRLs with nextUpdate in the past are sometimes accepted | |
d8dc8538 | 9662 | by initialising X509_STORE_CTX properly. ([CVE-2011-3207]) |
5f8e6c50 DMSP |
9663 | |
9664 | *Kaspar Brand <ossl@velox.ch>* | |
9665 | ||
9666 | * Fix SSL memory handling for (EC)DH ciphersuites, in particular | |
d8dc8538 | 9667 | for multi-threaded use of ECDH. ([CVE-2011-3210]) |
5f8e6c50 DMSP |
9668 | |
9669 | *Adam Langley (Google)* | |
9670 | ||
9671 | * Fix x509_name_ex_d2i memory leak on bad inputs. | |
9672 | ||
9673 | *Bodo Moeller* | |
9674 | ||
9675 | * Remove hard coded ecdsaWithSHA1 signature tests in ssl code and check | |
9676 | signature public key algorithm by using OID xref utilities instead. | |
9677 | Before this you could only use some ECC ciphersuites with SHA1 only. | |
9678 | ||
9679 | *Steve Henson* | |
9680 | ||
9681 | * Add protection against ECDSA timing attacks as mentioned in the paper | |
9682 | by Billy Bob Brumley and Nicola Tuveri, see: | |
257e9d03 | 9683 | <http://eprint.iacr.org/2011/232.pdf> |
5f8e6c50 DMSP |
9684 | |
9685 | *Billy Bob Brumley and Nicola Tuveri* | |
9686 | ||
257e9d03 | 9687 | ### Changes between 1.0.0c and 1.0.0d [8 Feb 2011] |
5f8e6c50 DMSP |
9688 | |
9689 | * Fix parsing of OCSP stapling ClientHello extension. CVE-2011-0014 | |
9690 | ||
9691 | *Neel Mehta, Adam Langley, Bodo Moeller (Google)* | |
9692 | ||
9693 | * Fix bug in string printing code: if *any* escaping is enabled we must | |
9694 | escape the escape character (backslash) or the resulting string is | |
9695 | ambiguous. | |
9696 | ||
9697 | *Steve Henson* | |
9698 | ||
257e9d03 | 9699 | ### Changes between 1.0.0b and 1.0.0c [2 Dec 2010] |
5f8e6c50 DMSP |
9700 | |
9701 | * Disable code workaround for ancient and obsolete Netscape browsers | |
9702 | and servers: an attacker can use it in a ciphersuite downgrade attack. | |
9703 | Thanks to Martin Rex for discovering this bug. CVE-2010-4180 | |
9704 | ||
9705 | *Steve Henson* | |
9706 | ||
9707 | * Fixed J-PAKE implementation error, originally discovered by | |
9708 | Sebastien Martini, further info and confirmation from Stefan | |
9709 | Arentz and Feng Hao. Note that this fix is a security fix. CVE-2010-4252 | |
9710 | ||
9711 | *Ben Laurie* | |
9712 | ||
257e9d03 | 9713 | ### Changes between 1.0.0a and 1.0.0b [16 Nov 2010] |
5f8e6c50 DMSP |
9714 | |
9715 | * Fix extension code to avoid race conditions which can result in a buffer | |
9716 | overrun vulnerability: resumed sessions must not be modified as they can | |
9717 | be shared by multiple threads. CVE-2010-3864 | |
9718 | ||
9719 | *Steve Henson* | |
9720 | ||
9721 | * Fix WIN32 build system to correctly link an ENGINE directory into | |
9722 | a DLL. | |
9723 | ||
9724 | *Steve Henson* | |
9725 | ||
257e9d03 | 9726 | ### Changes between 1.0.0 and 1.0.0a [01 Jun 2010] |
5f8e6c50 DMSP |
9727 | |
9728 | * Check return value of int_rsa_verify in pkey_rsa_verifyrecover | |
d8dc8538 | 9729 | ([CVE-2010-1633]) |
5f8e6c50 DMSP |
9730 | |
9731 | *Steve Henson, Peter-Michael Hager <hager@dortmund.net>* | |
9732 | ||
257e9d03 | 9733 | ### Changes between 0.9.8n and 1.0.0 [29 Mar 2010] |
5f8e6c50 DMSP |
9734 | |
9735 | * Add "missing" function EVP_CIPHER_CTX_copy(). This copies a cipher | |
9736 | context. The operation can be customised via the ctrl mechanism in | |
9737 | case ENGINEs want to include additional functionality. | |
9738 | ||
9739 | *Steve Henson* | |
9740 | ||
9741 | * Tolerate yet another broken PKCS#8 key format: private key value negative. | |
9742 | ||
9743 | *Steve Henson* | |
9744 | ||
9745 | * Add new -subject_hash_old and -issuer_hash_old options to x509 utility to | |
9746 | output hashes compatible with older versions of OpenSSL. | |
9747 | ||
9748 | *Willy Weisz <weisz@vcpc.univie.ac.at>* | |
9749 | ||
9750 | * Fix compression algorithm handling: if resuming a session use the | |
9751 | compression algorithm of the resumed session instead of determining | |
9752 | it from client hello again. Don't allow server to change algorithm. | |
9753 | ||
9754 | *Steve Henson* | |
9755 | ||
ec2bfb7d | 9756 | * Add load_crls() function to commands tidying load_certs() too. Add option |
5f8e6c50 DMSP |
9757 | to verify utility to allow additional CRLs to be included. |
9758 | ||
9759 | *Steve Henson* | |
9760 | ||
9761 | * Update OCSP request code to permit adding custom headers to the request: | |
9762 | some responders need this. | |
9763 | ||
9764 | *Steve Henson* | |
9765 | ||
9766 | * The function EVP_PKEY_sign() returns <=0 on error: check return code | |
9767 | correctly. | |
9768 | ||
9769 | *Julia Lawall <julia@diku.dk>* | |
9770 | ||
ec2bfb7d | 9771 | * Update verify callback code in `apps/s_cb.c` and `apps/verify.c`, it |
5f8e6c50 DMSP |
9772 | needlessly dereferenced structures, used obsolete functions and |
9773 | didn't handle all updated verify codes correctly. | |
9774 | ||
9775 | *Steve Henson* | |
9776 | ||
9777 | * Disable MD2 in the default configuration. | |
9778 | ||
9779 | *Steve Henson* | |
9780 | ||
9781 | * In BIO_pop() and BIO_push() use the ctrl argument (which was NULL) to | |
9782 | indicate the initial BIO being pushed or popped. This makes it possible | |
9783 | to determine whether the BIO is the one explicitly called or as a result | |
9784 | of the ctrl being passed down the chain. Fix BIO_pop() and SSL BIOs so | |
9785 | it handles reference counts correctly and doesn't zero out the I/O bio | |
9786 | when it is not being explicitly popped. WARNING: applications which | |
9787 | included workarounds for the old buggy behaviour will need to be modified | |
9788 | or they could free up already freed BIOs. | |
9789 | ||
9790 | *Steve Henson* | |
9791 | ||
9792 | * Extend the uni2asc/asc2uni => OPENSSL_uni2asc/OPENSSL_asc2uni | |
9793 | renaming to all platforms (within the 0.9.8 branch, this was | |
9794 | done conditionally on Netware platforms to avoid a name clash). | |
9795 | ||
9796 | *Guenter <lists@gknw.net>* | |
9797 | ||
9798 | * Add ECDHE and PSK support to DTLS. | |
9799 | ||
9800 | *Michael Tuexen <tuexen@fh-muenster.de>* | |
9801 | ||
9802 | * Add CHECKED_STACK_OF macro to safestack.h, otherwise safestack can't | |
9803 | be used on C++. | |
9804 | ||
9805 | *Steve Henson* | |
9806 | ||
9807 | * Add "missing" function EVP_MD_flags() (without this the only way to | |
9808 | retrieve a digest flags is by accessing the structure directly. Update | |
257e9d03 | 9809 | `EVP_MD_do_all*()` and `EVP_CIPHER_do_all*()` to include the name a digest |
5f8e6c50 DMSP |
9810 | or cipher is registered as in the "from" argument. Print out all |
9811 | registered digests in the dgst usage message instead of manually | |
9812 | attempting to work them out. | |
9813 | ||
9814 | *Steve Henson* | |
9815 | ||
9816 | * If no SSLv2 ciphers are used don't use an SSLv2 compatible client hello: | |
9817 | this allows the use of compression and extensions. Change default cipher | |
9818 | string to remove SSLv2 ciphersuites. This effectively avoids ancient SSLv2 | |
9819 | by default unless an application cipher string requests it. | |
9820 | ||
9821 | *Steve Henson* | |
9822 | ||
9823 | * Alter match criteria in PKCS12_parse(). It used to try to use local | |
9824 | key ids to find matching certificates and keys but some PKCS#12 files | |
9825 | don't follow the (somewhat unwritten) rules and this strategy fails. | |
9826 | Now just gather all certificates together and the first private key | |
9827 | then look for the first certificate that matches the key. | |
9828 | ||
9829 | *Steve Henson* | |
9830 | ||
9831 | * Support use of registered digest and cipher names for dgst and cipher | |
9832 | commands instead of having to add each one as a special case. So now | |
9833 | you can do: | |
9834 | ||
9835 | openssl sha256 foo | |
9836 | ||
9837 | as well as: | |
9838 | ||
9839 | openssl dgst -sha256 foo | |
9840 | ||
9841 | and this works for ENGINE based algorithms too. | |
9842 | ||
5f8e6c50 DMSP |
9843 | *Steve Henson* |
9844 | ||
9845 | * Update Gost ENGINE to support parameter files. | |
9846 | ||
9847 | *Victor B. Wagner <vitus@cryptocom.ru>* | |
9848 | ||
9849 | * Support GeneralizedTime in ca utility. | |
9850 | ||
9851 | *Oliver Martin <oliver@volatilevoid.net>, Steve Henson* | |
9852 | ||
9853 | * Enhance the hash format used for certificate directory links. The new | |
9854 | form uses the canonical encoding (meaning equivalent names will work | |
9855 | even if they aren't identical) and uses SHA1 instead of MD5. This form | |
9856 | is incompatible with the older format and as a result c_rehash should | |
9857 | be used to rebuild symbolic links. | |
9858 | ||
9859 | *Steve Henson* | |
9860 | ||
9861 | * Make PKCS#8 the default write format for private keys, replacing the | |
9862 | traditional format. This form is standardised, more secure and doesn't | |
9863 | include an implicit MD5 dependency. | |
9864 | ||
9865 | *Steve Henson* | |
9866 | ||
9867 | * Add a $gcc_devteam_warn option to Configure. The idea is that any code | |
9868 | committed to OpenSSL should pass this lot as a minimum. | |
9869 | ||
9870 | *Steve Henson* | |
9871 | ||
9872 | * Add session ticket override functionality for use by EAP-FAST. | |
9873 | ||
9874 | *Jouni Malinen <j@w1.fi>* | |
9875 | ||
9876 | * Modify HMAC functions to return a value. Since these can be implemented | |
9877 | in an ENGINE errors can occur. | |
9878 | ||
9879 | *Steve Henson* | |
9880 | ||
9881 | * Type-checked OBJ_bsearch_ex. | |
9882 | ||
9883 | *Ben Laurie* | |
9884 | ||
9885 | * Type-checked OBJ_bsearch. Also some constification necessitated | |
9886 | by type-checking. Still to come: TXT_DB, bsearch(?), | |
9887 | OBJ_bsearch_ex, qsort, CRYPTO_EX_DATA, ASN1_VALUE, ASN1_STRING, | |
9888 | CONF_VALUE. | |
9889 | ||
9890 | *Ben Laurie* | |
9891 | ||
9892 | * New function OPENSSL_gmtime_adj() to add a specific number of days and | |
9893 | seconds to a tm structure directly, instead of going through OS | |
9894 | specific date routines. This avoids any issues with OS routines such | |
257e9d03 | 9895 | as the year 2038 bug. New `*_adj()` functions for ASN1 time structures |
5f8e6c50 DMSP |
9896 | and X509_time_adj_ex() to cover the extended range. The existing |
9897 | X509_time_adj() is still usable and will no longer have any date issues. | |
9898 | ||
9899 | *Steve Henson* | |
9900 | ||
9901 | * Delta CRL support. New use deltas option which will attempt to locate | |
9902 | and search any appropriate delta CRLs available. | |
9903 | ||
9904 | This work was sponsored by Google. | |
9905 | ||
9906 | *Steve Henson* | |
9907 | ||
9908 | * Support for CRLs partitioned by reason code. Reorganise CRL processing | |
9909 | code and add additional score elements. Validate alternate CRL paths | |
9910 | as part of the CRL checking and indicate a new error "CRL path validation | |
9911 | error" in this case. Applications wanting additional details can use | |
9912 | the verify callback and check the new "parent" field. If this is not | |
9913 | NULL CRL path validation is taking place. Existing applications won't | |
9914 | see this because it requires extended CRL support which is off by | |
9915 | default. | |
9916 | ||
9917 | This work was sponsored by Google. | |
9918 | ||
9919 | *Steve Henson* | |
9920 | ||
9921 | * Support for freshest CRL extension. | |
9922 | ||
9923 | This work was sponsored by Google. | |
9924 | ||
9925 | *Steve Henson* | |
9926 | ||
9927 | * Initial indirect CRL support. Currently only supported in the CRLs | |
9928 | passed directly and not via lookup. Process certificate issuer | |
9929 | CRL entry extension and lookup CRL entries by bother issuer name | |
9930 | and serial number. Check and process CRL issuer entry in IDP extension. | |
9931 | ||
9932 | This work was sponsored by Google. | |
9933 | ||
9934 | *Steve Henson* | |
9935 | ||
9936 | * Add support for distinct certificate and CRL paths. The CRL issuer | |
9937 | certificate is validated separately in this case. Only enabled if | |
9938 | an extended CRL support flag is set: this flag will enable additional | |
9939 | CRL functionality in future. | |
9940 | ||
9941 | This work was sponsored by Google. | |
9942 | ||
9943 | *Steve Henson* | |
9944 | ||
9945 | * Add support for policy mappings extension. | |
9946 | ||
9947 | This work was sponsored by Google. | |
9948 | ||
9949 | *Steve Henson* | |
9950 | ||
9951 | * Fixes to pathlength constraint, self issued certificate handling, | |
9952 | policy processing to align with RFC3280 and PKITS tests. | |
9953 | ||
9954 | This work was sponsored by Google. | |
9955 | ||
9956 | *Steve Henson* | |
9957 | ||
9958 | * Support for name constraints certificate extension. DN, email, DNS | |
9959 | and URI types are currently supported. | |
9960 | ||
9961 | This work was sponsored by Google. | |
9962 | ||
9963 | *Steve Henson* | |
9964 | ||
9965 | * To cater for systems that provide a pointer-based thread ID rather | |
9966 | than numeric, deprecate the current numeric thread ID mechanism and | |
9967 | replace it with a structure and associated callback type. This | |
9968 | mechanism allows a numeric "hash" to be extracted from a thread ID in | |
9969 | either case, and on platforms where pointers are larger than 'long', | |
9970 | mixing is done to help ensure the numeric 'hash' is usable even if it | |
9971 | can't be guaranteed unique. The default mechanism is to use "&errno" | |
9972 | as a pointer-based thread ID to distinguish between threads. | |
9973 | ||
9974 | Applications that want to provide their own thread IDs should now use | |
9975 | CRYPTO_THREADID_set_callback() to register a callback that will call | |
9976 | either CRYPTO_THREADID_set_numeric() or CRYPTO_THREADID_set_pointer(). | |
9977 | ||
9978 | Note that ERR_remove_state() is now deprecated, because it is tied | |
9979 | to the assumption that thread IDs are numeric. ERR_remove_state(0) | |
9980 | to free the current thread's error state should be replaced by | |
9981 | ERR_remove_thread_state(NULL). | |
9982 | ||
9983 | (This new approach replaces the functions CRYPTO_set_idptr_callback(), | |
9984 | CRYPTO_get_idptr_callback(), and CRYPTO_thread_idptr() that existed in | |
9985 | OpenSSL 0.9.9-dev between June 2006 and August 2008. Also, if an | |
9986 | application was previously providing a numeric thread callback that | |
9987 | was inappropriate for distinguishing threads, then uniqueness might | |
9988 | have been obtained with &errno that happened immediately in the | |
9989 | intermediate development versions of OpenSSL; this is no longer the | |
9990 | case, the numeric thread callback will now override the automatic use | |
9991 | of &errno.) | |
9992 | ||
9993 | *Geoff Thorpe, with help from Bodo Moeller* | |
9994 | ||
9995 | * Initial support for different CRL issuing certificates. This covers a | |
9996 | simple case where the self issued certificates in the chain exist and | |
9997 | the real CRL issuer is higher in the existing chain. | |
9998 | ||
9999 | This work was sponsored by Google. | |
10000 | ||
10001 | *Steve Henson* | |
10002 | ||
10003 | * Removed effectively defunct crypto/store from the build. | |
10004 | ||
10005 | *Ben Laurie* | |
10006 | ||
10007 | * Revamp of STACK to provide stronger type-checking. Still to come: | |
10008 | TXT_DB, bsearch(?), OBJ_bsearch, qsort, CRYPTO_EX_DATA, ASN1_VALUE, | |
10009 | ASN1_STRING, CONF_VALUE. | |
10010 | ||
10011 | *Ben Laurie* | |
10012 | ||
10013 | * Add a new SSL_MODE_RELEASE_BUFFERS mode flag to release unused buffer | |
10014 | RAM on SSL connections. This option can save about 34k per idle SSL. | |
10015 | ||
10016 | *Nick Mathewson* | |
10017 | ||
10018 | * Revamp of LHASH to provide stronger type-checking. Still to come: | |
10019 | STACK, TXT_DB, bsearch, qsort. | |
10020 | ||
10021 | *Ben Laurie* | |
10022 | ||
10023 | * Initial support for Cryptographic Message Syntax (aka CMS) based | |
10024 | on RFC3850, RFC3851 and RFC3852. New cms directory and cms utility, | |
10025 | support for data, signedData, compressedData, digestedData and | |
10026 | encryptedData, envelopedData types included. Scripts to check against | |
10027 | RFC4134 examples draft and interop and consistency checks of many | |
10028 | content types and variants. | |
10029 | ||
10030 | *Steve Henson* | |
10031 | ||
10032 | * Add options to enc utility to support use of zlib compression BIO. | |
10033 | ||
10034 | *Steve Henson* | |
10035 | ||
10036 | * Extend mk1mf to support importing of options and assembly language | |
10037 | files from Configure script, currently only included in VC-WIN32. | |
10038 | The assembly language rules can now optionally generate the source | |
10039 | files from the associated perl scripts. | |
10040 | ||
10041 | *Steve Henson* | |
10042 | ||
10043 | * Implement remaining functionality needed to support GOST ciphersuites. | |
10044 | Interop testing has been performed using CryptoPro implementations. | |
10045 | ||
10046 | *Victor B. Wagner <vitus@cryptocom.ru>* | |
10047 | ||
10048 | * s390x assembler pack. | |
10049 | ||
10050 | *Andy Polyakov* | |
10051 | ||
10052 | * ARMv4 assembler pack. ARMv4 refers to v4 and later ISA, not CPU | |
10053 | "family." | |
10054 | ||
10055 | *Andy Polyakov* | |
10056 | ||
10057 | * Implement Opaque PRF Input TLS extension as specified in | |
10058 | draft-rescorla-tls-opaque-prf-input-00.txt. Since this is not an | |
10059 | official specification yet and no extension type assignment by | |
10060 | IANA exists, this extension (for now) will have to be explicitly | |
10061 | enabled when building OpenSSL by providing the extension number | |
10062 | to use. For example, specify an option | |
10063 | ||
10064 | -DTLSEXT_TYPE_opaque_prf_input=0x9527 | |
10065 | ||
10066 | to the "config" or "Configure" script to enable the extension, | |
10067 | assuming extension number 0x9527 (which is a completely arbitrary | |
10068 | and unofficial assignment based on the MD5 hash of the Internet | |
10069 | Draft). Note that by doing so, you potentially lose | |
10070 | interoperability with other TLS implementations since these might | |
10071 | be using the same extension number for other purposes. | |
10072 | ||
10073 | SSL_set_tlsext_opaque_prf_input(ssl, src, len) is used to set the | |
10074 | opaque PRF input value to use in the handshake. This will create | |
10075 | an internal copy of the length-'len' string at 'src', and will | |
10076 | return non-zero for success. | |
10077 | ||
10078 | To get more control and flexibility, provide a callback function | |
10079 | by using | |
10080 | ||
10081 | SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx, cb) | |
10082 | SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx, arg) | |
10083 | ||
10084 | where | |
10085 | ||
10086 | int (*cb)(SSL *, void *peerinput, size_t len, void *arg); | |
10087 | void *arg; | |
10088 | ||
10089 | Callback function 'cb' will be called in handshakes, and is | |
10090 | expected to use SSL_set_tlsext_opaque_prf_input() as appropriate. | |
10091 | Argument 'arg' is for application purposes (the value as given to | |
10092 | SSL_CTX_set_tlsext_opaque_prf_input_callback_arg() will directly | |
10093 | be provided to the callback function). The callback function | |
10094 | has to return non-zero to report success: usually 1 to use opaque | |
10095 | PRF input just if possible, or 2 to enforce use of the opaque PRF | |
10096 | input. In the latter case, the library will abort the handshake | |
10097 | if opaque PRF input is not successfully negotiated. | |
10098 | ||
10099 | Arguments 'peerinput' and 'len' given to the callback function | |
10100 | will always be NULL and 0 in the case of a client. A server will | |
10101 | see the client's opaque PRF input through these variables if | |
10102 | available (NULL and 0 otherwise). Note that if the server | |
10103 | provides an opaque PRF input, the length must be the same as the | |
10104 | length of the client's opaque PRF input. | |
10105 | ||
10106 | Note that the callback function will only be called when creating | |
10107 | a new session (session resumption can resume whatever was | |
10108 | previously negotiated), and will not be called in SSL 2.0 | |
10109 | handshakes; thus, SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) or | |
10110 | SSL_set_options(ssl, SSL_OP_NO_SSLv2) is especially recommended | |
10111 | for applications that need to enforce opaque PRF input. | |
10112 | ||
5f8e6c50 DMSP |
10113 | *Bodo Moeller* |
10114 | ||
10115 | * Update ssl code to support digests other than SHA1+MD5 for handshake | |
10116 | MAC. | |
10117 | ||
5f8e6c50 DMSP |
10118 | *Victor B. Wagner <vitus@cryptocom.ru>* |
10119 | ||
10120 | * Add RFC4507 support to OpenSSL. This includes the corrections in | |
10121 | RFC4507bis. The encrypted ticket format is an encrypted encoded | |
10122 | SSL_SESSION structure, that way new session features are automatically | |
10123 | supported. | |
10124 | ||
10125 | If a client application caches session in an SSL_SESSION structure | |
10126 | support is transparent because tickets are now stored in the encoded | |
10127 | SSL_SESSION. | |
10128 | ||
10129 | The SSL_CTX structure automatically generates keys for ticket | |
10130 | protection in servers so again support should be possible | |
10131 | with no application modification. | |
10132 | ||
10133 | If a client or server wishes to disable RFC4507 support then the option | |
10134 | SSL_OP_NO_TICKET can be set. | |
10135 | ||
10136 | Add a TLS extension debugging callback to allow the contents of any client | |
10137 | or server extensions to be examined. | |
10138 | ||
10139 | This work was sponsored by Google. | |
10140 | ||
10141 | *Steve Henson* | |
10142 | ||
10143 | * Final changes to avoid use of pointer pointer casts in OpenSSL. | |
10144 | OpenSSL should now compile cleanly on gcc 4.2 | |
10145 | ||
10146 | *Peter Hartley <pdh@utter.chaos.org.uk>, Steve Henson* | |
10147 | ||
10148 | * Update SSL library to use new EVP_PKEY MAC API. Include generic MAC | |
10149 | support including streaming MAC support: this is required for GOST | |
10150 | ciphersuite support. | |
10151 | ||
10152 | *Victor B. Wagner <vitus@cryptocom.ru>, Steve Henson* | |
10153 | ||
10154 | * Add option -stream to use PKCS#7 streaming in smime utility. New | |
10155 | function i2d_PKCS7_bio_stream() and PEM_write_PKCS7_bio_stream() | |
10156 | to output in BER and PEM format. | |
10157 | ||
10158 | *Steve Henson* | |
10159 | ||
10160 | * Experimental support for use of HMAC via EVP_PKEY interface. This | |
257e9d03 | 10161 | allows HMAC to be handled via the `EVP_DigestSign*()` interface. The |
5f8e6c50 DMSP |
10162 | EVP_PKEY "key" in this case is the HMAC key, potentially allowing |
10163 | ENGINE support for HMAC keys which are unextractable. New -mac and | |
10164 | -macopt options to dgst utility. | |
10165 | ||
10166 | *Steve Henson* | |
10167 | ||
10168 | * New option -sigopt to dgst utility. Update dgst to use | |
257e9d03 | 10169 | `EVP_Digest{Sign,Verify}*`. These two changes make it possible to use |
5f8e6c50 DMSP |
10170 | alternative signing parameters such as X9.31 or PSS in the dgst |
10171 | utility. | |
10172 | ||
10173 | *Steve Henson* | |
10174 | ||
10175 | * Change ssl_cipher_apply_rule(), the internal function that does | |
10176 | the work each time a ciphersuite string requests enabling | |
10177 | ("foo+bar"), moving ("+foo+bar"), disabling ("-foo+bar", or | |
10178 | removing ("!foo+bar") a class of ciphersuites: Now it maintains | |
10179 | the order of disabled ciphersuites such that those ciphersuites | |
10180 | that most recently went from enabled to disabled not only stay | |
10181 | in order with respect to each other, but also have higher priority | |
10182 | than other disabled ciphersuites the next time ciphersuites are | |
10183 | enabled again. | |
10184 | ||
10185 | This means that you can now say, e.g., "PSK:-PSK:HIGH" to enable | |
10186 | the same ciphersuites as with "HIGH" alone, but in a specific | |
10187 | order where the PSK ciphersuites come first (since they are the | |
10188 | most recently disabled ciphersuites when "HIGH" is parsed). | |
10189 | ||
10190 | Also, change ssl_create_cipher_list() (using this new | |
10191 | functionality) such that between otherwise identical | |
10192 | ciphersuites, ephemeral ECDH is preferred over ephemeral DH in | |
10193 | the default order. | |
10194 | ||
10195 | *Bodo Moeller* | |
10196 | ||
10197 | * Change ssl_create_cipher_list() so that it automatically | |
10198 | arranges the ciphersuites in reasonable order before starting | |
10199 | to process the rule string. Thus, the definition for "DEFAULT" | |
10200 | (SSL_DEFAULT_CIPHER_LIST) now is just "ALL:!aNULL:!eNULL", but | |
ec2bfb7d | 10201 | remains equivalent to `"AES:ALL:!aNULL:!eNULL:+aECDH:+kRSA:+RC4:@STRENGTH"`. |
5f8e6c50 DMSP |
10202 | This makes it much easier to arrive at a reasonable default order |
10203 | in applications for which anonymous ciphers are OK (meaning | |
10204 | that you can't actually use DEFAULT). | |
10205 | ||
10206 | *Bodo Moeller; suggested by Victor Duchovni* | |
10207 | ||
10208 | * Split the SSL/TLS algorithm mask (as used for ciphersuite string | |
10209 | processing) into multiple integers instead of setting | |
10210 | "SSL_MKEY_MASK" bits, "SSL_AUTH_MASK" bits, "SSL_ENC_MASK", | |
10211 | "SSL_MAC_MASK", and "SSL_SSL_MASK" bits all in a single integer. | |
10212 | (These masks as well as the individual bit definitions are hidden | |
10213 | away into the non-exported interface ssl/ssl_locl.h, so this | |
10214 | change to the definition of the SSL_CIPHER structure shouldn't | |
10215 | affect applications.) This give us more bits for each of these | |
10216 | categories, so there is no longer a need to coagulate AES128 and | |
10217 | AES256 into a single algorithm bit, and to coagulate Camellia128 | |
10218 | and Camellia256 into a single algorithm bit, which has led to all | |
10219 | kinds of kludges. | |
10220 | ||
10221 | Thus, among other things, the kludge introduced in 0.9.7m and | |
10222 | 0.9.8e for masking out AES256 independently of AES128 or masking | |
10223 | out Camellia256 independently of AES256 is not needed here in 0.9.9. | |
10224 | ||
10225 | With the change, we also introduce new ciphersuite aliases that | |
10226 | so far were missing: "AES128", "AES256", "CAMELLIA128", and | |
10227 | "CAMELLIA256". | |
10228 | ||
10229 | *Bodo Moeller* | |
10230 | ||
10231 | * Add support for dsa-with-SHA224 and dsa-with-SHA256. | |
10232 | Use the leftmost N bytes of the signature input if the input is | |
10233 | larger than the prime q (with N being the size in bytes of q). | |
10234 | ||
10235 | *Nils Larsch* | |
10236 | ||
10237 | * Very *very* experimental PKCS#7 streaming encoder support. Nothing uses | |
10238 | it yet and it is largely untested. | |
10239 | ||
10240 | *Steve Henson* | |
10241 | ||
10242 | * Add support for the ecdsa-with-SHA224/256/384/512 signature types. | |
10243 | ||
10244 | *Nils Larsch* | |
10245 | ||
10246 | * Initial incomplete changes to avoid need for function casts in OpenSSL | |
10247 | some compilers (gcc 4.2 and later) reject their use. Safestack is | |
10248 | reimplemented. Update ASN1 to avoid use of legacy functions. | |
10249 | ||
10250 | *Steve Henson* | |
10251 | ||
10252 | * Win32/64 targets are linked with Winsock2. | |
10253 | ||
10254 | *Andy Polyakov* | |
10255 | ||
10256 | * Add an X509_CRL_METHOD structure to allow CRL processing to be redirected | |
10257 | to external functions. This can be used to increase CRL handling | |
10258 | efficiency especially when CRLs are very large by (for example) storing | |
10259 | the CRL revoked certificates in a database. | |
10260 | ||
10261 | *Steve Henson* | |
10262 | ||
10263 | * Overhaul of by_dir code. Add support for dynamic loading of CRLs so | |
10264 | new CRLs added to a directory can be used. New command line option | |
10265 | -verify_return_error to s_client and s_server. This causes real errors | |
10266 | to be returned by the verify callback instead of carrying on no matter | |
10267 | what. This reflects the way a "real world" verify callback would behave. | |
10268 | ||
10269 | *Steve Henson* | |
10270 | ||
10271 | * GOST engine, supporting several GOST algorithms and public key formats. | |
10272 | Kindly donated by Cryptocom. | |
10273 | ||
10274 | *Cryptocom* | |
10275 | ||
10276 | * Partial support for Issuing Distribution Point CRL extension. CRLs | |
10277 | partitioned by DP are handled but no indirect CRL or reason partitioning | |
10278 | (yet). Complete overhaul of CRL handling: now the most suitable CRL is | |
10279 | selected via a scoring technique which handles IDP and AKID in CRLs. | |
10280 | ||
10281 | *Steve Henson* | |
10282 | ||
10283 | * New X509_STORE_CTX callbacks lookup_crls() and lookup_certs() which | |
10284 | will ultimately be used for all verify operations: this will remove the | |
10285 | X509_STORE dependency on certificate verification and allow alternative | |
10286 | lookup methods. X509_STORE based implementations of these two callbacks. | |
10287 | ||
10288 | *Steve Henson* | |
10289 | ||
10290 | * Allow multiple CRLs to exist in an X509_STORE with matching issuer names. | |
10291 | Modify get_crl() to find a valid (unexpired) CRL if possible. | |
10292 | ||
10293 | *Steve Henson* | |
10294 | ||
10295 | * New function X509_CRL_match() to check if two CRLs are identical. Normally | |
10296 | this would be called X509_CRL_cmp() but that name is already used by | |
10297 | a function that just compares CRL issuer names. Cache several CRL | |
10298 | extensions in X509_CRL structure and cache CRLDP in X509. | |
10299 | ||
10300 | *Steve Henson* | |
10301 | ||
10302 | * Store a "canonical" representation of X509_NAME structure (ASN1 Name) | |
10303 | this maps equivalent X509_NAME structures into a consistent structure. | |
10304 | Name comparison can then be performed rapidly using memcmp(). | |
10305 | ||
10306 | *Steve Henson* | |
10307 | ||
10308 | * Non-blocking OCSP request processing. Add -timeout option to ocsp | |
10309 | utility. | |
10310 | ||
10311 | *Steve Henson* | |
10312 | ||
10313 | * Allow digests to supply their own micalg string for S/MIME type using | |
10314 | the ctrl EVP_MD_CTRL_MICALG. | |
10315 | ||
10316 | *Steve Henson* | |
10317 | ||
10318 | * During PKCS7 signing pass the PKCS7 SignerInfo structure to the | |
10319 | EVP_PKEY_METHOD before and after signing via the EVP_PKEY_CTRL_PKCS7_SIGN | |
10320 | ctrl. It can then customise the structure before and/or after signing | |
10321 | if necessary. | |
10322 | ||
10323 | *Steve Henson* | |
10324 | ||
10325 | * New function OBJ_add_sigid() to allow application defined signature OIDs | |
10326 | to be added to OpenSSLs internal tables. New function OBJ_sigid_free() | |
10327 | to free up any added signature OIDs. | |
10328 | ||
10329 | *Steve Henson* | |
10330 | ||
10331 | * New functions EVP_CIPHER_do_all(), EVP_CIPHER_do_all_sorted(), | |
10332 | EVP_MD_do_all() and EVP_MD_do_all_sorted() to enumerate internal | |
10333 | digest and cipher tables. New options added to openssl utility: | |
10334 | list-message-digest-algorithms and list-cipher-algorithms. | |
10335 | ||
10336 | *Steve Henson* | |
10337 | ||
10338 | * Change the array representation of binary polynomials: the list | |
10339 | of degrees of non-zero coefficients is now terminated with -1. | |
10340 | Previously it was terminated with 0, which was also part of the | |
10341 | value; thus, the array representation was not applicable to | |
10342 | polynomials where t^0 has coefficient zero. This change makes | |
10343 | the array representation useful in a more general context. | |
10344 | ||
10345 | *Douglas Stebila* | |
10346 | ||
10347 | * Various modifications and fixes to SSL/TLS cipher string | |
10348 | handling. For ECC, the code now distinguishes between fixed ECDH | |
10349 | with RSA certificates on the one hand and with ECDSA certificates | |
10350 | on the other hand, since these are separate ciphersuites. The | |
10351 | unused code for Fortezza ciphersuites has been removed. | |
10352 | ||
10353 | For consistency with EDH, ephemeral ECDH is now called "EECDH" | |
10354 | (not "ECDHE"). For consistency with the code for DH | |
10355 | certificates, use of ECDH certificates is now considered ECDH | |
10356 | authentication, not RSA or ECDSA authentication (the latter is | |
10357 | merely the CA's signing algorithm and not actively used in the | |
10358 | protocol). | |
10359 | ||
10360 | The temporary ciphersuite alias "ECCdraft" is no longer | |
10361 | available, and ECC ciphersuites are no longer excluded from "ALL" | |
10362 | and "DEFAULT". The following aliases now exist for RFC 4492 | |
10363 | ciphersuites, most of these by analogy with the DH case: | |
10364 | ||
10365 | kECDHr - ECDH cert, signed with RSA | |
10366 | kECDHe - ECDH cert, signed with ECDSA | |
10367 | kECDH - ECDH cert (signed with either RSA or ECDSA) | |
10368 | kEECDH - ephemeral ECDH | |
10369 | ECDH - ECDH cert or ephemeral ECDH | |
10370 | ||
10371 | aECDH - ECDH cert | |
10372 | aECDSA - ECDSA cert | |
10373 | ECDSA - ECDSA cert | |
10374 | ||
10375 | AECDH - anonymous ECDH | |
10376 | EECDH - non-anonymous ephemeral ECDH (equivalent to "kEECDH:-AECDH") | |
10377 | ||
5f8e6c50 DMSP |
10378 | *Bodo Moeller* |
10379 | ||
10380 | * Add additional S/MIME capabilities for AES and GOST ciphers if supported. | |
10381 | Use correct micalg parameters depending on digest(s) in signed message. | |
10382 | ||
10383 | *Steve Henson* | |
10384 | ||
10385 | * Add engine support for EVP_PKEY_ASN1_METHOD. Add functions to process | |
10386 | an ENGINE asn1 method. Support ENGINE lookups in the ASN1 code. | |
10387 | ||
10388 | *Steve Henson* | |
10389 | ||
10390 | * Initial engine support for EVP_PKEY_METHOD. New functions to permit | |
10391 | an engine to register a method. Add ENGINE lookups for methods and | |
10392 | functional reference processing. | |
10393 | ||
10394 | *Steve Henson* | |
10395 | ||
257e9d03 RS |
10396 | * New functions `EVP_Digest{Sign,Verify)*`. These are enhanced versions of |
10397 | `EVP_{Sign,Verify}*` which allow an application to customise the signature | |
5f8e6c50 DMSP |
10398 | process. |
10399 | ||
10400 | *Steve Henson* | |
10401 | ||
10402 | * New -resign option to smime utility. This adds one or more signers | |
10403 | to an existing PKCS#7 signedData structure. Also -md option to use an | |
10404 | alternative message digest algorithm for signing. | |
10405 | ||
10406 | *Steve Henson* | |
10407 | ||
10408 | * Tidy up PKCS#7 routines and add new functions to make it easier to | |
10409 | create PKCS7 structures containing multiple signers. Update smime | |
10410 | application to support multiple signers. | |
10411 | ||
10412 | *Steve Henson* | |
10413 | ||
10414 | * New -macalg option to pkcs12 utility to allow setting of an alternative | |
10415 | digest MAC. | |
10416 | ||
10417 | *Steve Henson* | |
10418 | ||
10419 | * Initial support for PKCS#5 v2.0 PRFs other than default SHA1 HMAC. | |
10420 | Reorganize PBE internals to lookup from a static table using NIDs, | |
10421 | add support for HMAC PBE OID translation. Add a EVP_CIPHER ctrl: | |
10422 | EVP_CTRL_PBE_PRF_NID this allows a cipher to specify an alternative | |
10423 | PRF which will be automatically used with PBES2. | |
10424 | ||
10425 | *Steve Henson* | |
10426 | ||
10427 | * Replace the algorithm specific calls to generate keys in "req" with the | |
10428 | new API. | |
10429 | ||
10430 | *Steve Henson* | |
10431 | ||
10432 | * Update PKCS#7 enveloped data routines to use new API. This is now | |
10433 | supported by any public key method supporting the encrypt operation. A | |
10434 | ctrl is added to allow the public key algorithm to examine or modify | |
10435 | the PKCS#7 RecipientInfo structure if it needs to: for RSA this is | |
10436 | a no op. | |
10437 | ||
10438 | *Steve Henson* | |
10439 | ||
10440 | * Add a ctrl to asn1 method to allow a public key algorithm to express | |
10441 | a default digest type to use. In most cases this will be SHA1 but some | |
10442 | algorithms (such as GOST) need to specify an alternative digest. The | |
10443 | return value indicates how strong the preference is 1 means optional and | |
10444 | 2 is mandatory (that is it is the only supported type). Modify | |
10445 | ASN1_item_sign() to accept a NULL digest argument to indicate it should | |
10446 | use the default md. Update openssl utilities to use the default digest | |
10447 | type for signing if it is not explicitly indicated. | |
10448 | ||
10449 | *Steve Henson* | |
10450 | ||
10451 | * Use OID cross reference table in ASN1_sign() and ASN1_verify(). New | |
10452 | EVP_MD flag EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. This uses the relevant | |
10453 | signing method from the key type. This effectively removes the link | |
10454 | between digests and public key types. | |
10455 | ||
10456 | *Steve Henson* | |
10457 | ||
10458 | * Add an OID cross reference table and utility functions. Its purpose is to | |
10459 | translate between signature OIDs such as SHA1WithrsaEncryption and SHA1, | |
10460 | rsaEncryption. This will allow some of the algorithm specific hackery | |
10461 | needed to use the correct OID to be removed. | |
10462 | ||
10463 | *Steve Henson* | |
10464 | ||
10465 | * Remove algorithm specific dependencies when setting PKCS7_SIGNER_INFO | |
10466 | structures for PKCS7_sign(). They are now set up by the relevant public | |
10467 | key ASN1 method. | |
10468 | ||
10469 | *Steve Henson* | |
10470 | ||
10471 | * Add provisional EC pkey method with support for ECDSA and ECDH. | |
10472 | ||
10473 | *Steve Henson* | |
10474 | ||
10475 | * Add support for key derivation (agreement) in the API, DH method and | |
10476 | pkeyutl. | |
10477 | ||
10478 | *Steve Henson* | |
10479 | ||
10480 | * Add DSA pkey method and DH pkey methods, extend DH ASN1 method to support | |
10481 | public and private key formats. As a side effect these add additional | |
10482 | command line functionality not previously available: DSA signatures can be | |
10483 | generated and verified using pkeyutl and DH key support and generation in | |
10484 | pkey, genpkey. | |
10485 | ||
10486 | *Steve Henson* | |
10487 | ||
10488 | * BeOS support. | |
10489 | ||
10490 | *Oliver Tappe <zooey@hirschkaefer.de>* | |
10491 | ||
10492 | * New make target "install_html_docs" installs HTML renditions of the | |
10493 | manual pages. | |
10494 | ||
10495 | *Oliver Tappe <zooey@hirschkaefer.de>* | |
10496 | ||
10497 | * New utility "genpkey" this is analogous to "genrsa" etc except it can | |
10498 | generate keys for any algorithm. Extend and update EVP_PKEY_METHOD to | |
10499 | support key and parameter generation and add initial key generation | |
10500 | functionality for RSA. | |
10501 | ||
10502 | *Steve Henson* | |
10503 | ||
10504 | * Add functions for main EVP_PKEY_method operations. The undocumented | |
257e9d03 RS |
10505 | functions `EVP_PKEY_{encrypt,decrypt}` have been renamed to |
10506 | `EVP_PKEY_{encrypt,decrypt}_old`. | |
5f8e6c50 DMSP |
10507 | |
10508 | *Steve Henson* | |
10509 | ||
10510 | * Initial definitions for EVP_PKEY_METHOD. This will be a high level public | |
10511 | key API, doesn't do much yet. | |
10512 | ||
10513 | *Steve Henson* | |
10514 | ||
10515 | * New function EVP_PKEY_asn1_get0_info() to retrieve information about | |
10516 | public key algorithms. New option to openssl utility: | |
10517 | "list-public-key-algorithms" to print out info. | |
10518 | ||
10519 | *Steve Henson* | |
10520 | ||
10521 | * Implement the Supported Elliptic Curves Extension for | |
10522 | ECC ciphersuites from draft-ietf-tls-ecc-12.txt. | |
10523 | ||
10524 | *Douglas Stebila* | |
10525 | ||
10526 | * Don't free up OIDs in OBJ_cleanup() if they are in use by EVP_MD or | |
10527 | EVP_CIPHER structures to avoid later problems in EVP_cleanup(). | |
10528 | ||
10529 | *Steve Henson* | |
10530 | ||
10531 | * New utilities pkey and pkeyparam. These are similar to algorithm specific | |
10532 | utilities such as rsa, dsa, dsaparam etc except they process any key | |
10533 | type. | |
10534 | ||
10535 | *Steve Henson* | |
10536 | ||
10537 | * Transfer public key printing routines to EVP_PKEY_ASN1_METHOD. New | |
10538 | functions EVP_PKEY_print_public(), EVP_PKEY_print_private(), | |
10539 | EVP_PKEY_print_param() to print public key data from an EVP_PKEY | |
10540 | structure. | |
10541 | ||
10542 | *Steve Henson* | |
10543 | ||
10544 | * Initial support for pluggable public key ASN1. | |
10545 | De-spaghettify the public key ASN1 handling. Move public and private | |
10546 | key ASN1 handling to a new EVP_PKEY_ASN1_METHOD structure. Relocate | |
10547 | algorithm specific handling to a single module within the relevant | |
10548 | algorithm directory. Add functions to allow (near) opaque processing | |
10549 | of public and private key structures. | |
10550 | ||
10551 | *Steve Henson* | |
10552 | ||
10553 | * Implement the Supported Point Formats Extension for | |
10554 | ECC ciphersuites from draft-ietf-tls-ecc-12.txt. | |
10555 | ||
10556 | *Douglas Stebila* | |
10557 | ||
10558 | * Add initial support for RFC 4279 PSK TLS ciphersuites. Add members | |
10559 | for the psk identity [hint] and the psk callback functions to the | |
10560 | SSL_SESSION, SSL and SSL_CTX structure. | |
10561 | ||
10562 | New ciphersuites: | |
10563 | PSK-RC4-SHA, PSK-3DES-EDE-CBC-SHA, PSK-AES128-CBC-SHA, | |
10564 | PSK-AES256-CBC-SHA | |
10565 | ||
10566 | New functions: | |
10567 | SSL_CTX_use_psk_identity_hint | |
10568 | SSL_get_psk_identity_hint | |
10569 | SSL_get_psk_identity | |
10570 | SSL_use_psk_identity_hint | |
10571 | ||
5f8e6c50 DMSP |
10572 | *Mika Kousa and Pasi Eronen of Nokia Corporation* |
10573 | ||
10574 | * Add RFC 3161 compliant time stamp request creation, response generation | |
10575 | and response verification functionality. | |
10576 | ||
10577 | *Zoltán Glózik <zglozik@opentsa.org>, The OpenTSA Project* | |
10578 | ||
10579 | * Add initial support for TLS extensions, specifically for the server_name | |
10580 | extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now | |
d7f3a2cc | 10581 | have new members for a hostname. The SSL data structure has an |
257e9d03 | 10582 | additional member `SSL_CTX *initial_ctx` so that new sessions can be |
5f8e6c50 DMSP |
10583 | stored in that context to allow for session resumption, even after the |
10584 | SSL has been switched to a new SSL_CTX in reaction to a client's | |
10585 | server_name extension. | |
10586 | ||
10587 | New functions (subject to change): | |
10588 | ||
10589 | SSL_get_servername() | |
10590 | SSL_get_servername_type() | |
10591 | SSL_set_SSL_CTX() | |
10592 | ||
10593 | New CTRL codes and macros (subject to change): | |
10594 | ||
10595 | SSL_CTRL_SET_TLSEXT_SERVERNAME_CB | |
10596 | - SSL_CTX_set_tlsext_servername_callback() | |
10597 | SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG | |
10598 | - SSL_CTX_set_tlsext_servername_arg() | |
10599 | SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name() | |
10600 | ||
10601 | openssl s_client has a new '-servername ...' option. | |
10602 | ||
10603 | openssl s_server has new options '-servername_host ...', '-cert2 ...', | |
10604 | '-key2 ...', '-servername_fatal' (subject to change). This allows | |
d7f3a2cc | 10605 | testing the HostName extension for a specific single hostname ('-cert' |
5f8e6c50 DMSP |
10606 | and '-key' remain fallbacks for handshakes without HostName |
10607 | negotiation). If the unrecognized_name alert has to be sent, this by | |
10608 | default is a warning; it becomes fatal with the '-servername_fatal' | |
10609 | option. | |
10610 | ||
5f8e6c50 DMSP |
10611 | *Peter Sylvester, Remy Allais, Christophe Renou* |
10612 | ||
10613 | * Whirlpool hash implementation is added. | |
10614 | ||
10615 | *Andy Polyakov* | |
10616 | ||
10617 | * BIGNUM code on 64-bit SPARCv9 targets is switched from bn(64,64) to | |
10618 | bn(64,32). Because of instruction set limitations it doesn't have | |
10619 | any negative impact on performance. This was done mostly in order | |
10620 | to make it possible to share assembler modules, such as bn_mul_mont | |
10621 | implementations, between 32- and 64-bit builds without hassle. | |
10622 | ||
10623 | *Andy Polyakov* | |
10624 | ||
10625 | * Move code previously exiled into file crypto/ec/ec2_smpt.c | |
10626 | to ec2_smpl.c, and no longer require the OPENSSL_EC_BIN_PT_COMP | |
10627 | macro. | |
10628 | ||
10629 | *Bodo Moeller* | |
10630 | ||
10631 | * New candidate for BIGNUM assembler implementation, bn_mul_mont, | |
10632 | dedicated Montgomery multiplication procedure, is introduced. | |
10633 | BN_MONT_CTX is modified to allow bn_mul_mont to reach for higher | |
10634 | "64-bit" performance on certain 32-bit targets. | |
10635 | ||
10636 | *Andy Polyakov* | |
10637 | ||
10638 | * New option SSL_OP_NO_COMP to disable use of compression selectively | |
10639 | in SSL structures. New SSL ctrl to set maximum send fragment size. | |
10640 | Save memory by setting the I/O buffer sizes dynamically instead of | |
10641 | using the maximum available value. | |
10642 | ||
10643 | *Steve Henson* | |
10644 | ||
10645 | * New option -V for 'openssl ciphers'. This prints the ciphersuite code | |
10646 | in addition to the text details. | |
10647 | ||
10648 | *Bodo Moeller* | |
10649 | ||
10650 | * Very, very preliminary EXPERIMENTAL support for printing of general | |
10651 | ASN1 structures. This currently produces rather ugly output and doesn't | |
10652 | handle several customised structures at all. | |
10653 | ||
10654 | *Steve Henson* | |
10655 | ||
10656 | * Integrated support for PVK file format and some related formats such | |
10657 | as MS PUBLICKEYBLOB and PRIVATEKEYBLOB. Command line switches to support | |
10658 | these in the 'rsa' and 'dsa' utilities. | |
10659 | ||
10660 | *Steve Henson* | |
10661 | ||
10662 | * Support for PKCS#1 RSAPublicKey format on rsa utility command line. | |
10663 | ||
10664 | *Steve Henson* | |
10665 | ||
10666 | * Remove the ancient ASN1_METHOD code. This was only ever used in one | |
10667 | place for the (very old) "NETSCAPE" format certificates which are now | |
10668 | handled using new ASN1 code equivalents. | |
10669 | ||
10670 | *Steve Henson* | |
10671 | ||
10672 | * Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD | |
10673 | pointer and make the SSL_METHOD parameter in SSL_CTX_new, | |
10674 | SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'. | |
10675 | ||
10676 | *Nils Larsch* | |
10677 | ||
10678 | * Modify CRL distribution points extension code to print out previously | |
10679 | unsupported fields. Enhance extension setting code to allow setting of | |
10680 | all fields. | |
10681 | ||
10682 | *Steve Henson* | |
10683 | ||
10684 | * Add print and set support for Issuing Distribution Point CRL extension. | |
10685 | ||
10686 | *Steve Henson* | |
10687 | ||
10688 | * Change 'Configure' script to enable Camellia by default. | |
10689 | ||
10690 | *NTT* | |
10691 | ||
44652c16 DMSP |
10692 | OpenSSL 0.9.x |
10693 | ------------- | |
10694 | ||
257e9d03 | 10695 | ### Changes between 0.9.8m and 0.9.8n [24 Mar 2010] |
5f8e6c50 DMSP |
10696 | |
10697 | * When rejecting SSL/TLS records due to an incorrect version number, never | |
10698 | update s->server with a new major version number. As of | |
10699 | - OpenSSL 0.9.8m if 'short' is a 16-bit type, | |
10700 | - OpenSSL 0.9.8f if 'short' is longer than 16 bits, | |
10701 | the previous behavior could result in a read attempt at NULL when | |
10702 | receiving specific incorrect SSL/TLS records once record payload | |
d8dc8538 | 10703 | protection is active. ([CVE-2010-0740]) |
5f8e6c50 DMSP |
10704 | |
10705 | *Bodo Moeller, Adam Langley <agl@chromium.org>* | |
10706 | ||
10707 | * Fix for CVE-2010-0433 where some kerberos enabled versions of OpenSSL | |
10708 | could be crashed if the relevant tables were not present (e.g. chrooted). | |
10709 | ||
10710 | *Tomas Hoger <thoger@redhat.com>* | |
10711 | ||
257e9d03 | 10712 | ### Changes between 0.9.8l and 0.9.8m [25 Feb 2010] |
5f8e6c50 | 10713 | |
d8dc8538 | 10714 | * Always check bn_wexpand() return values for failure. ([CVE-2009-3245]) |
5f8e6c50 DMSP |
10715 | |
10716 | *Martin Olsson, Neel Mehta* | |
10717 | ||
10718 | * Fix X509_STORE locking: Every 'objs' access requires a lock (to | |
10719 | accommodate for stack sorting, always a write lock!). | |
10720 | ||
10721 | *Bodo Moeller* | |
10722 | ||
10723 | * On some versions of WIN32 Heap32Next is very slow. This can cause | |
10724 | excessive delays in the RAND_poll(): over a minute. As a workaround | |
10725 | include a time check in the inner Heap32Next loop too. | |
10726 | ||
10727 | *Steve Henson* | |
10728 | ||
10729 | * The code that handled flushing of data in SSL/TLS originally used the | |
10730 | BIO_CTRL_INFO ctrl to see if any data was pending first. This caused | |
10731 | the problem outlined in PR#1949. The fix suggested there however can | |
10732 | trigger problems with buggy BIO_CTRL_WPENDING (e.g. some versions | |
10733 | of Apache). So instead simplify the code to flush unconditionally. | |
10734 | This should be fine since flushing with no data to flush is a no op. | |
10735 | ||
10736 | *Steve Henson* | |
10737 | ||
10738 | * Handle TLS versions 2.0 and later properly and correctly use the | |
10739 | highest version of TLS/SSL supported. Although TLS >= 2.0 is some way | |
10740 | off ancient servers have a habit of sticking around for a while... | |
10741 | ||
10742 | *Steve Henson* | |
10743 | ||
10744 | * Modify compression code so it frees up structures without using the | |
10745 | ex_data callbacks. This works around a problem where some applications | |
10746 | call CRYPTO_cleanup_all_ex_data() before application exit (e.g. when | |
10747 | restarting) then use compression (e.g. SSL with compression) later. | |
10748 | This results in significant per-connection memory leaks and | |
10749 | has caused some security issues including CVE-2008-1678 and | |
10750 | CVE-2009-4355. | |
10751 | ||
10752 | *Steve Henson* | |
10753 | ||
10754 | * Constify crypto/cast (i.e., <openssl/cast.h>): a CAST_KEY doesn't | |
10755 | change when encrypting or decrypting. | |
10756 | ||
10757 | *Bodo Moeller* | |
10758 | ||
10759 | * Add option SSL_OP_LEGACY_SERVER_CONNECT which will allow clients to | |
10760 | connect and renegotiate with servers which do not support RI. | |
10761 | Until RI is more widely deployed this option is enabled by default. | |
10762 | ||
10763 | *Steve Henson* | |
10764 | ||
10765 | * Add "missing" ssl ctrls to clear options and mode. | |
10766 | ||
10767 | *Steve Henson* | |
10768 | ||
10769 | * If client attempts to renegotiate and doesn't support RI respond with | |
10770 | a no_renegotiation alert as required by RFC5746. Some renegotiating | |
10771 | TLS clients will continue a connection gracefully when they receive | |
10772 | the alert. Unfortunately OpenSSL mishandled this alert and would hang | |
10773 | waiting for a server hello which it will never receive. Now we treat a | |
10774 | received no_renegotiation alert as a fatal error. This is because | |
10775 | applications requesting a renegotiation might well expect it to succeed | |
10776 | and would have no code in place to handle the server denying it so the | |
10777 | only safe thing to do is to terminate the connection. | |
10778 | ||
10779 | *Steve Henson* | |
10780 | ||
10781 | * Add ctrl macro SSL_get_secure_renegotiation_support() which returns 1 if | |
10782 | peer supports secure renegotiation and 0 otherwise. Print out peer | |
10783 | renegotiation support in s_client/s_server. | |
10784 | ||
10785 | *Steve Henson* | |
10786 | ||
10787 | * Replace the highly broken and deprecated SPKAC certification method with | |
10788 | the updated NID creation version. This should correctly handle UTF8. | |
10789 | ||
10790 | *Steve Henson* | |
10791 | ||
10792 | * Implement RFC5746. Re-enable renegotiation but require the extension | |
10793 | as needed. Unfortunately, SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION | |
10794 | turns out to be a bad idea. It has been replaced by | |
10795 | SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION which can be set with | |
10796 | SSL_CTX_set_options(). This is really not recommended unless you | |
10797 | know what you are doing. | |
10798 | ||
10799 | *Eric Rescorla <ekr@networkresonance.com>, Ben Laurie, Steve Henson* | |
10800 | ||
10801 | * Fixes to stateless session resumption handling. Use initial_ctx when | |
10802 | issuing and attempting to decrypt tickets in case it has changed during | |
10803 | servername handling. Use a non-zero length session ID when attempting | |
10804 | stateless session resumption: this makes it possible to determine if | |
10805 | a resumption has occurred immediately after receiving server hello | |
10806 | (several places in OpenSSL subtly assume this) instead of later in | |
10807 | the handshake. | |
10808 | ||
10809 | *Steve Henson* | |
10810 | ||
10811 | * The functions ENGINE_ctrl(), OPENSSL_isservice(), | |
10812 | CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error | |
10813 | fixes for a few places where the return code is not checked | |
10814 | correctly. | |
10815 | ||
10816 | *Julia Lawall <julia@diku.dk>* | |
10817 | ||
10818 | * Add --strict-warnings option to Configure script to include devteam | |
10819 | warnings in other configurations. | |
10820 | ||
10821 | *Steve Henson* | |
10822 | ||
10823 | * Add support for --libdir option and LIBDIR variable in makefiles. This | |
10824 | makes it possible to install openssl libraries in locations which | |
10825 | have names other than "lib", for example "/usr/lib64" which some | |
10826 | systems need. | |
10827 | ||
10828 | *Steve Henson, based on patch from Jeremy Utley* | |
10829 | ||
10830 | * Don't allow the use of leading 0x80 in OIDs. This is a violation of | |
10831 | X690 8.9.12 and can produce some misleading textual output of OIDs. | |
10832 | ||
10833 | *Steve Henson, reported by Dan Kaminsky* | |
10834 | ||
10835 | * Delete MD2 from algorithm tables. This follows the recommendation in | |
10836 | several standards that it is not used in new applications due to | |
10837 | several cryptographic weaknesses. For binary compatibility reasons | |
10838 | the MD2 API is still compiled in by default. | |
10839 | ||
10840 | *Steve Henson* | |
10841 | ||
10842 | * Add compression id to {d2i,i2d}_SSL_SESSION so it is correctly saved | |
10843 | and restored. | |
10844 | ||
10845 | *Steve Henson* | |
10846 | ||
10847 | * Rename uni2asc and asc2uni functions to OPENSSL_uni2asc and | |
10848 | OPENSSL_asc2uni conditionally on Netware platforms to avoid a name | |
10849 | clash. | |
10850 | ||
10851 | *Guenter <lists@gknw.net>* | |
10852 | ||
10853 | * Fix the server certificate chain building code to use X509_verify_cert(), | |
10854 | it used to have an ad-hoc builder which was unable to cope with anything | |
10855 | other than a simple chain. | |
10856 | ||
10857 | *David Woodhouse <dwmw2@infradead.org>, Steve Henson* | |
10858 | ||
10859 | * Don't check self signed certificate signatures in X509_verify_cert() | |
10860 | by default (a flag can override this): it just wastes time without | |
10861 | adding any security. As a useful side effect self signed root CAs | |
10862 | with non-FIPS digests are now usable in FIPS mode. | |
10863 | ||
10864 | *Steve Henson* | |
10865 | ||
10866 | * In dtls1_process_out_of_seq_message() the check if the current message | |
10867 | is already buffered was missing. For every new message was memory | |
10868 | allocated, allowing an attacker to perform an denial of service attack | |
10869 | with sending out of seq handshake messages until there is no memory | |
10870 | left. Additionally every future message was buffered, even if the | |
10871 | sequence number made no sense and would be part of another handshake. | |
10872 | So only messages with sequence numbers less than 10 in advance will be | |
d8dc8538 | 10873 | buffered. ([CVE-2009-1378]) |
5f8e6c50 DMSP |
10874 | |
10875 | *Robin Seggelmann, discovered by Daniel Mentz* | |
10876 | ||
10877 | * Records are buffered if they arrive with a future epoch to be | |
10878 | processed after finishing the corresponding handshake. There is | |
10879 | currently no limitation to this buffer allowing an attacker to perform | |
10880 | a DOS attack with sending records with future epochs until there is no | |
10881 | memory left. This patch adds the pqueue_size() function to determine | |
10882 | the size of a buffer and limits the record buffer to 100 entries. | |
d8dc8538 | 10883 | ([CVE-2009-1377]) |
5f8e6c50 DMSP |
10884 | |
10885 | *Robin Seggelmann, discovered by Daniel Mentz* | |
10886 | ||
10887 | * Keep a copy of frag->msg_header.frag_len so it can be used after the | |
d8dc8538 | 10888 | parent structure is freed. ([CVE-2009-1379]) |
5f8e6c50 DMSP |
10889 | |
10890 | *Daniel Mentz* | |
10891 | ||
10892 | * Handle non-blocking I/O properly in SSL_shutdown() call. | |
10893 | ||
10894 | *Darryl Miles <darryl-mailinglists@netbauds.net>* | |
10895 | ||
257e9d03 | 10896 | * Add `2.5.4.*` OIDs |
5f8e6c50 DMSP |
10897 | |
10898 | *Ilya O. <vrghost@gmail.com>* | |
10899 | ||
257e9d03 | 10900 | ### Changes between 0.9.8k and 0.9.8l [5 Nov 2009] |
5f8e6c50 DMSP |
10901 | |
10902 | * Disable renegotiation completely - this fixes a severe security | |
d8dc8538 | 10903 | problem ([CVE-2009-3555]) at the cost of breaking all |
5f8e6c50 DMSP |
10904 | renegotiation. Renegotiation can be re-enabled by setting |
10905 | SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION in s3->flags at | |
10906 | run-time. This is really not recommended unless you know what | |
10907 | you're doing. | |
10908 | ||
10909 | *Ben Laurie* | |
10910 | ||
257e9d03 | 10911 | ### Changes between 0.9.8j and 0.9.8k [25 Mar 2009] |
5f8e6c50 DMSP |
10912 | |
10913 | * Don't set val to NULL when freeing up structures, it is freed up by | |
257e9d03 | 10914 | underlying code. If `sizeof(void *) > sizeof(long)` this can result in |
d8dc8538 | 10915 | zeroing past the valid field. ([CVE-2009-0789]) |
5f8e6c50 DMSP |
10916 | |
10917 | *Paolo Ganci <Paolo.Ganci@AdNovum.CH>* | |
10918 | ||
10919 | * Fix bug where return value of CMS_SignerInfo_verify_content() was not | |
10920 | checked correctly. This would allow some invalid signed attributes to | |
d8dc8538 | 10921 | appear to verify correctly. ([CVE-2009-0591]) |
5f8e6c50 DMSP |
10922 | |
10923 | *Ivan Nestlerode <inestlerode@us.ibm.com>* | |
10924 | ||
10925 | * Reject UniversalString and BMPString types with invalid lengths. This | |
10926 | prevents a crash in ASN1_STRING_print_ex() which assumes the strings have | |
d8dc8538 | 10927 | a legal length. ([CVE-2009-0590]) |
5f8e6c50 DMSP |
10928 | |
10929 | *Steve Henson* | |
10930 | ||
10931 | * Set S/MIME signing as the default purpose rather than setting it | |
10932 | unconditionally. This allows applications to override it at the store | |
10933 | level. | |
10934 | ||
10935 | *Steve Henson* | |
10936 | ||
10937 | * Permit restricted recursion of ASN1 strings. This is needed in practice | |
10938 | to handle some structures. | |
10939 | ||
10940 | *Steve Henson* | |
10941 | ||
10942 | * Improve efficiency of mem_gets: don't search whole buffer each time | |
10943 | for a '\n' | |
10944 | ||
10945 | *Jeremy Shapiro <jnshapir@us.ibm.com>* | |
10946 | ||
10947 | * New -hex option for openssl rand. | |
10948 | ||
10949 | *Matthieu Herrb* | |
10950 | ||
10951 | * Print out UTF8String and NumericString when parsing ASN1. | |
10952 | ||
10953 | *Steve Henson* | |
10954 | ||
10955 | * Support NumericString type for name components. | |
10956 | ||
10957 | *Steve Henson* | |
10958 | ||
10959 | * Allow CC in the environment to override the automatically chosen | |
10960 | compiler. Note that nothing is done to ensure flags work with the | |
10961 | chosen compiler. | |
10962 | ||
10963 | *Ben Laurie* | |
10964 | ||
257e9d03 | 10965 | ### Changes between 0.9.8i and 0.9.8j [07 Jan 2009] |
5f8e6c50 DMSP |
10966 | |
10967 | * Properly check EVP_VerifyFinal() and similar return values | |
d8dc8538 | 10968 | ([CVE-2008-5077]). |
5f8e6c50 DMSP |
10969 | |
10970 | *Ben Laurie, Bodo Moeller, Google Security Team* | |
10971 | ||
10972 | * Enable TLS extensions by default. | |
10973 | ||
10974 | *Ben Laurie* | |
10975 | ||
10976 | * Allow the CHIL engine to be loaded, whether the application is | |
10977 | multithreaded or not. (This does not release the developer from the | |
10978 | obligation to set up the dynamic locking callbacks.) | |
10979 | ||
10980 | *Sander Temme <sander@temme.net>* | |
10981 | ||
10982 | * Use correct exit code if there is an error in dgst command. | |
10983 | ||
10984 | *Steve Henson; problem pointed out by Roland Dirlewanger* | |
10985 | ||
10986 | * Tweak Configure so that you need to say "experimental-jpake" to enable | |
10987 | JPAKE, and need to use -DOPENSSL_EXPERIMENTAL_JPAKE in applications. | |
10988 | ||
10989 | *Bodo Moeller* | |
10990 | ||
10991 | * Add experimental JPAKE support, including demo authentication in | |
10992 | s_client and s_server. | |
10993 | ||
10994 | *Ben Laurie* | |
10995 | ||
10996 | * Set the comparison function in v3_addr_canonize(). | |
10997 | ||
10998 | *Rob Austein <sra@hactrn.net>* | |
10999 | ||
11000 | * Add support for XMPP STARTTLS in s_client. | |
11001 | ||
11002 | *Philip Paeps <philip@freebsd.org>* | |
11003 | ||
11004 | * Change the server-side SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG behavior | |
11005 | to ensure that even with this option, only ciphersuites in the | |
11006 | server's preference list will be accepted. (Note that the option | |
11007 | applies only when resuming a session, so the earlier behavior was | |
11008 | just about the algorithm choice for symmetric cryptography.) | |
11009 | ||
11010 | *Bodo Moeller* | |
11011 | ||
257e9d03 | 11012 | ### Changes between 0.9.8h and 0.9.8i [15 Sep 2008] |
5f8e6c50 DMSP |
11013 | |
11014 | * Fix NULL pointer dereference if a DTLS server received | |
d8dc8538 | 11015 | ChangeCipherSpec as first record ([CVE-2009-1386]). |
5f8e6c50 DMSP |
11016 | |
11017 | *PR #1679* | |
11018 | ||
11019 | * Fix a state transition in s3_srvr.c and d1_srvr.c | |
257e9d03 | 11020 | (was using SSL3_ST_CW_CLNT_HELLO_B, should be `..._ST_SW_SRVR_...`). |
5f8e6c50 DMSP |
11021 | |
11022 | *Nagendra Modadugu* | |
11023 | ||
11024 | * The fix in 0.9.8c that supposedly got rid of unsafe | |
11025 | double-checked locking was incomplete for RSA blinding, | |
11026 | addressing just one layer of what turns out to have been | |
11027 | doubly unsafe triple-checked locking. | |
11028 | ||
11029 | So now fix this for real by retiring the MONT_HELPER macro | |
11030 | in crypto/rsa/rsa_eay.c. | |
11031 | ||
5f8e6c50 DMSP |
11032 | *Bodo Moeller; problem pointed out by Marius Schilder* |
11033 | ||
11034 | * Various precautionary measures: | |
11035 | ||
11036 | - Avoid size_t integer overflow in HASH_UPDATE (md32_common.h). | |
11037 | ||
11038 | - Avoid a buffer overflow in d2i_SSL_SESSION() (ssl_asn1.c). | |
11039 | (NB: This would require knowledge of the secret session ticket key | |
11040 | to exploit, in which case you'd be SOL either way.) | |
11041 | ||
11042 | - Change bn_nist.c so that it will properly handle input BIGNUMs | |
11043 | outside the expected range. | |
11044 | ||
11045 | - Enforce the 'num' check in BN_div() (bn_div.c) for non-BN_DEBUG | |
11046 | builds. | |
11047 | ||
5f8e6c50 DMSP |
11048 | *Neel Mehta, Bodo Moeller* |
11049 | ||
11050 | * Allow engines to be "soft loaded" - i.e. optionally don't die if | |
11051 | the load fails. Useful for distros. | |
11052 | ||
11053 | *Ben Laurie and the FreeBSD team* | |
11054 | ||
11055 | * Add support for Local Machine Keyset attribute in PKCS#12 files. | |
11056 | ||
11057 | *Steve Henson* | |
11058 | ||
11059 | * Fix BN_GF2m_mod_arr() top-bit cleanup code. | |
11060 | ||
11061 | *Huang Ying* | |
11062 | ||
11063 | * Expand ENGINE to support engine supplied SSL client certificate functions. | |
11064 | ||
11065 | This work was sponsored by Logica. | |
11066 | ||
11067 | *Steve Henson* | |
11068 | ||
11069 | * Add CryptoAPI ENGINE to support use of RSA and DSA keys held in Windows | |
11070 | keystores. Support for SSL/TLS client authentication too. | |
11071 | Not compiled unless enable-capieng specified to Configure. | |
11072 | ||
11073 | This work was sponsored by Logica. | |
11074 | ||
11075 | *Steve Henson* | |
11076 | ||
11077 | * Fix bug in X509_ATTRIBUTE creation: don't set attribute using | |
11078 | ASN1_TYPE_set1 if MBSTRING flag set. This bug would crash certain | |
11079 | attribute creation routines such as certificate requests and PKCS#12 | |
11080 | files. | |
11081 | ||
11082 | *Steve Henson* | |
11083 | ||
257e9d03 | 11084 | ### Changes between 0.9.8g and 0.9.8h [28 May 2008] |
5f8e6c50 DMSP |
11085 | |
11086 | * Fix flaw if 'Server Key exchange message' is omitted from a TLS | |
11087 | handshake which could lead to a client crash as found using the | |
d8dc8538 | 11088 | Codenomicon TLS test suite ([CVE-2008-1672]) |
5f8e6c50 DMSP |
11089 | |
11090 | *Steve Henson, Mark Cox* | |
11091 | ||
11092 | * Fix double free in TLS server name extensions which could lead to | |
d8dc8538 | 11093 | a remote crash found by Codenomicon TLS test suite ([CVE-2008-0891]) |
5f8e6c50 DMSP |
11094 | |
11095 | *Joe Orton* | |
11096 | ||
11097 | * Clear error queue in SSL_CTX_use_certificate_chain_file() | |
11098 | ||
11099 | Clear the error queue to ensure that error entries left from | |
11100 | older function calls do not interfere with the correct operation. | |
11101 | ||
11102 | *Lutz Jaenicke, Erik de Castro Lopo* | |
11103 | ||
11104 | * Remove root CA certificates of commercial CAs: | |
11105 | ||
11106 | The OpenSSL project does not recommend any specific CA and does not | |
11107 | have any policy with respect to including or excluding any CA. | |
d7f3a2cc | 11108 | Therefore, it does not make any sense to ship an arbitrary selection |
5f8e6c50 DMSP |
11109 | of root CA certificates with the OpenSSL software. |
11110 | ||
11111 | *Lutz Jaenicke* | |
11112 | ||
11113 | * RSA OAEP patches to fix two separate invalid memory reads. | |
11114 | The first one involves inputs when 'lzero' is greater than | |
11115 | 'SHA_DIGEST_LENGTH' (it would read about SHA_DIGEST_LENGTH bytes | |
11116 | before the beginning of from). The second one involves inputs where | |
11117 | the 'db' section contains nothing but zeroes (there is a one-byte | |
11118 | invalid read after the end of 'db'). | |
11119 | ||
11120 | *Ivan Nestlerode <inestlerode@us.ibm.com>* | |
11121 | ||
11122 | * Partial backport from 0.9.9-dev: | |
11123 | ||
11124 | Introduce bn_mul_mont (dedicated Montgomery multiplication | |
11125 | procedure) as a candidate for BIGNUM assembler implementation. | |
11126 | While 0.9.9-dev uses assembler for various architectures, only | |
11127 | x86_64 is available by default here in the 0.9.8 branch, and | |
11128 | 32-bit x86 is available through a compile-time setting. | |
11129 | ||
11130 | To try the 32-bit x86 assembler implementation, use Configure | |
11131 | option "enable-montasm" (which exists only for this backport). | |
11132 | ||
11133 | As "enable-montasm" for 32-bit x86 disclaims code stability | |
11134 | anyway, in this constellation we activate additional code | |
11135 | backported from 0.9.9-dev for further performance improvements, | |
11136 | namely BN_from_montgomery_word. (To enable this otherwise, | |
44652c16 | 11137 | e.g. x86_64, try `-DMONT_FROM_WORD___NON_DEFAULT_0_9_8_BUILD`.) |
5f8e6c50 | 11138 | |
5f8e6c50 DMSP |
11139 | *Andy Polyakov (backport partially by Bodo Moeller)* |
11140 | ||
11141 | * Add TLS session ticket callback. This allows an application to set | |
11142 | TLS ticket cipher and HMAC keys rather than relying on hardcoded fixed | |
11143 | values. This is useful for key rollover for example where several key | |
11144 | sets may exist with different names. | |
11145 | ||
11146 | *Steve Henson* | |
11147 | ||
11148 | * Reverse ENGINE-internal logic for caching default ENGINE handles. | |
11149 | This was broken until now in 0.9.8 releases, such that the only way | |
11150 | a registered ENGINE could be used (assuming it initialises | |
11151 | successfully on the host) was to explicitly set it as the default | |
11152 | for the relevant algorithms. This is in contradiction with 0.9.7 | |
11153 | behaviour and the documentation. With this fix, when an ENGINE is | |
11154 | registered into a given algorithm's table of implementations, the | |
11155 | 'uptodate' flag is reset so that auto-discovery will be used next | |
11156 | time a new context for that algorithm attempts to select an | |
11157 | implementation. | |
11158 | ||
11159 | *Ian Lister (tweaked by Geoff Thorpe)* | |
11160 | ||
11161 | * Backport of CMS code to OpenSSL 0.9.8. This differs from the 0.9.9 | |
11162 | implementation in the following ways: | |
11163 | ||
11164 | Lack of EVP_PKEY_ASN1_METHOD means algorithm parameters have to be | |
11165 | hard coded. | |
11166 | ||
11167 | Lack of BER streaming support means one pass streaming processing is | |
11168 | only supported if data is detached: setting the streaming flag is | |
11169 | ignored for embedded content. | |
11170 | ||
11171 | CMS support is disabled by default and must be explicitly enabled | |
11172 | with the enable-cms configuration option. | |
11173 | ||
11174 | *Steve Henson* | |
11175 | ||
11176 | * Update the GMP engine glue to do direct copies between BIGNUM and | |
11177 | mpz_t when openssl and GMP use the same limb size. Otherwise the | |
11178 | existing "conversion via a text string export" trick is still used. | |
11179 | ||
11180 | *Paul Sheer <paulsheer@gmail.com>* | |
11181 | ||
11182 | * Zlib compression BIO. This is a filter BIO which compressed and | |
11183 | uncompresses any data passed through it. | |
11184 | ||
11185 | *Steve Henson* | |
11186 | ||
11187 | * Add AES_wrap_key() and AES_unwrap_key() functions to implement | |
11188 | RFC3394 compatible AES key wrapping. | |
11189 | ||
11190 | *Steve Henson* | |
11191 | ||
11192 | * Add utility functions to handle ASN1 structures. ASN1_STRING_set0(): | |
11193 | sets string data without copying. X509_ALGOR_set0() and | |
11194 | X509_ALGOR_get0(): set and retrieve X509_ALGOR (AlgorithmIdentifier) | |
11195 | data. Attribute function X509at_get0_data_by_OBJ(): retrieves data | |
11196 | from an X509_ATTRIBUTE structure optionally checking it occurs only | |
11197 | once. ASN1_TYPE_set1(): set and ASN1_TYPE structure copying supplied | |
11198 | data. | |
11199 | ||
11200 | *Steve Henson* | |
11201 | ||
11202 | * Fix BN flag handling in RSA_eay_mod_exp() and BN_MONT_CTX_set() | |
11203 | to get the expected BN_FLG_CONSTTIME behavior. | |
11204 | ||
11205 | *Bodo Moeller (Google)* | |
11206 | ||
11207 | * Netware support: | |
11208 | ||
11209 | - fixed wrong usage of ioctlsocket() when build for LIBC BSD sockets | |
11210 | - fixed do_tests.pl to run the test suite with CLIB builds too (CLIB_OPT) | |
11211 | - added some more tests to do_tests.pl | |
11212 | - fixed RunningProcess usage so that it works with newer LIBC NDKs too | |
11213 | - removed usage of BN_LLONG for CLIB builds to avoid runtime dependency | |
11214 | - added new Configure targets netware-clib-bsdsock, netware-clib-gcc, | |
11215 | netware-clib-bsdsock-gcc, netware-libc-bsdsock-gcc | |
11216 | - various changes to netware.pl to enable gcc-cross builds on Win32 | |
11217 | platform | |
11218 | - changed crypto/bio/b_sock.c to work with macro functions (CLIB BSD) | |
11219 | - various changes to fix missing prototype warnings | |
11220 | - fixed x86nasm.pl to create correct asm files for NASM COFF output | |
11221 | - added AES, WHIRLPOOL and CPUID assembler code to build files | |
11222 | - added missing AES assembler make rules to mk1mf.pl | |
ec2bfb7d | 11223 | - fixed order of includes in `apps/ocsp.c` so that `e_os.h` settings apply |
5f8e6c50 DMSP |
11224 | |
11225 | *Guenter Knauf <eflash@gmx.net>* | |
11226 | ||
11227 | * Implement certificate status request TLS extension defined in RFC3546. | |
11228 | A client can set the appropriate parameters and receive the encoded | |
11229 | OCSP response via a callback. A server can query the supplied parameters | |
11230 | and set the encoded OCSP response in the callback. Add simplified examples | |
11231 | to s_client and s_server. | |
11232 | ||
11233 | *Steve Henson* | |
11234 | ||
257e9d03 | 11235 | ### Changes between 0.9.8f and 0.9.8g [19 Oct 2007] |
5f8e6c50 DMSP |
11236 | |
11237 | * Fix various bugs: | |
11238 | + Binary incompatibility of ssl_ctx_st structure | |
11239 | + DTLS interoperation with non-compliant servers | |
11240 | + Don't call get_session_cb() without proposed session | |
11241 | + Fix ia64 assembler code | |
11242 | ||
11243 | *Andy Polyakov, Steve Henson* | |
11244 | ||
257e9d03 | 11245 | ### Changes between 0.9.8e and 0.9.8f [11 Oct 2007] |
5f8e6c50 DMSP |
11246 | |
11247 | * DTLS Handshake overhaul. There were longstanding issues with | |
11248 | OpenSSL DTLS implementation, which were making it impossible for | |
11249 | RFC 4347 compliant client to communicate with OpenSSL server. | |
11250 | Unfortunately just fixing these incompatibilities would "cut off" | |
11251 | pre-0.9.8f clients. To allow for hassle free upgrade post-0.9.8e | |
11252 | server keeps tolerating non RFC compliant syntax. The opposite is | |
11253 | not true, 0.9.8f client can not communicate with earlier server. | |
11254 | This update even addresses CVE-2007-4995. | |
11255 | ||
11256 | *Andy Polyakov* | |
11257 | ||
11258 | * Changes to avoid need for function casts in OpenSSL: some compilers | |
11259 | (gcc 4.2 and later) reject their use. | |
11260 | *Kurt Roeckx <kurt@roeckx.be>, Peter Hartley <pdh@utter.chaos.org.uk>, | |
11261 | Steve Henson* | |
11262 | ||
11263 | * Add RFC4507 support to OpenSSL. This includes the corrections in | |
11264 | RFC4507bis. The encrypted ticket format is an encrypted encoded | |
11265 | SSL_SESSION structure, that way new session features are automatically | |
11266 | supported. | |
11267 | ||
11268 | If a client application caches session in an SSL_SESSION structure | |
11269 | support is transparent because tickets are now stored in the encoded | |
11270 | SSL_SESSION. | |
11271 | ||
11272 | The SSL_CTX structure automatically generates keys for ticket | |
11273 | protection in servers so again support should be possible | |
11274 | with no application modification. | |
11275 | ||
11276 | If a client or server wishes to disable RFC4507 support then the option | |
11277 | SSL_OP_NO_TICKET can be set. | |
11278 | ||
11279 | Add a TLS extension debugging callback to allow the contents of any client | |
11280 | or server extensions to be examined. | |
11281 | ||
11282 | This work was sponsored by Google. | |
11283 | ||
11284 | *Steve Henson* | |
11285 | ||
11286 | * Add initial support for TLS extensions, specifically for the server_name | |
11287 | extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now | |
d7f3a2cc | 11288 | have new members for a hostname. The SSL data structure has an |
257e9d03 | 11289 | additional member `SSL_CTX *initial_ctx` so that new sessions can be |
5f8e6c50 DMSP |
11290 | stored in that context to allow for session resumption, even after the |
11291 | SSL has been switched to a new SSL_CTX in reaction to a client's | |
11292 | server_name extension. | |
11293 | ||
11294 | New functions (subject to change): | |
11295 | ||
11296 | SSL_get_servername() | |
11297 | SSL_get_servername_type() | |
11298 | SSL_set_SSL_CTX() | |
11299 | ||
11300 | New CTRL codes and macros (subject to change): | |
11301 | ||
11302 | SSL_CTRL_SET_TLSEXT_SERVERNAME_CB | |
11303 | - SSL_CTX_set_tlsext_servername_callback() | |
11304 | SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG | |
11305 | - SSL_CTX_set_tlsext_servername_arg() | |
11306 | SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name() | |
11307 | ||
11308 | openssl s_client has a new '-servername ...' option. | |
11309 | ||
11310 | openssl s_server has new options '-servername_host ...', '-cert2 ...', | |
11311 | '-key2 ...', '-servername_fatal' (subject to change). This allows | |
d7f3a2cc | 11312 | testing the HostName extension for a specific single hostname ('-cert' |
5f8e6c50 DMSP |
11313 | and '-key' remain fallbacks for handshakes without HostName |
11314 | negotiation). If the unrecognized_name alert has to be sent, this by | |
11315 | default is a warning; it becomes fatal with the '-servername_fatal' | |
11316 | option. | |
11317 | ||
5f8e6c50 DMSP |
11318 | *Peter Sylvester, Remy Allais, Christophe Renou, Steve Henson* |
11319 | ||
11320 | * Add AES and SSE2 assembly language support to VC++ build. | |
11321 | ||
11322 | *Steve Henson* | |
11323 | ||
11324 | * Mitigate attack on final subtraction in Montgomery reduction. | |
11325 | ||
11326 | *Andy Polyakov* | |
11327 | ||
11328 | * Fix crypto/ec/ec_mult.c to work properly with scalars of value 0 | |
11329 | (which previously caused an internal error). | |
11330 | ||
11331 | *Bodo Moeller* | |
11332 | ||
11333 | * Squeeze another 10% out of IGE mode when in != out. | |
11334 | ||
11335 | *Ben Laurie* | |
11336 | ||
11337 | * AES IGE mode speedup. | |
11338 | ||
11339 | *Dean Gaudet (Google)* | |
11340 | ||
11341 | * Add the Korean symmetric 128-bit cipher SEED (see | |
257e9d03 | 11342 | <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>) and |
5f8e6c50 DMSP |
11343 | add SEED ciphersuites from RFC 4162: |
11344 | ||
11345 | TLS_RSA_WITH_SEED_CBC_SHA = "SEED-SHA" | |
11346 | TLS_DHE_DSS_WITH_SEED_CBC_SHA = "DHE-DSS-SEED-SHA" | |
11347 | TLS_DHE_RSA_WITH_SEED_CBC_SHA = "DHE-RSA-SEED-SHA" | |
11348 | TLS_DH_anon_WITH_SEED_CBC_SHA = "ADH-SEED-SHA" | |
11349 | ||
11350 | To minimize changes between patchlevels in the OpenSSL 0.9.8 | |
11351 | series, SEED remains excluded from compilation unless OpenSSL | |
11352 | is configured with 'enable-seed'. | |
11353 | ||
11354 | *KISA, Bodo Moeller* | |
11355 | ||
11356 | * Mitigate branch prediction attacks, which can be practical if a | |
11357 | single processor is shared, allowing a spy process to extract | |
11358 | information. For detailed background information, see | |
257e9d03 | 11359 | <http://eprint.iacr.org/2007/039> (O. Aciicmez, S. Gueron, |
5f8e6c50 DMSP |
11360 | J.-P. Seifert, "New Branch Prediction Vulnerabilities in OpenSSL |
11361 | and Necessary Software Countermeasures"). The core of the change | |
11362 | are new versions BN_div_no_branch() and | |
11363 | BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(), | |
11364 | respectively, which are slower, but avoid the security-relevant | |
11365 | conditional branches. These are automatically called by BN_div() | |
11366 | and BN_mod_inverse() if the flag BN_FLG_CONSTTIME is set for one | |
11367 | of the input BIGNUMs. Also, BN_is_bit_set() has been changed to | |
11368 | remove a conditional branch. | |
11369 | ||
11370 | BN_FLG_CONSTTIME is the new name for the previous | |
11371 | BN_FLG_EXP_CONSTTIME flag, since it now affects more than just | |
11372 | modular exponentiation. (Since OpenSSL 0.9.7h, setting this flag | |
11373 | in the exponent causes BN_mod_exp_mont() to use the alternative | |
11374 | implementation in BN_mod_exp_mont_consttime().) The old name | |
11375 | remains as a deprecated alias. | |
11376 | ||
11377 | Similarly, RSA_FLAG_NO_EXP_CONSTTIME is replaced by a more general | |
11378 | RSA_FLAG_NO_CONSTTIME flag since the RSA implementation now uses | |
11379 | constant-time implementations for more than just exponentiation. | |
11380 | Here too the old name is kept as a deprecated alias. | |
11381 | ||
11382 | BN_BLINDING_new() will now use BN_dup() for the modulus so that | |
11383 | the BN_BLINDING structure gets an independent copy of the | |
257e9d03 | 11384 | modulus. This means that the previous `BIGNUM *m` argument to |
5f8e6c50 | 11385 | BN_BLINDING_new() and to BN_BLINDING_create_param() now |
257e9d03 | 11386 | essentially becomes `const BIGNUM *m`, although we can't actually |
5f8e6c50 DMSP |
11387 | change this in the header file before 0.9.9. It allows |
11388 | RSA_setup_blinding() to use BN_with_flags() on the modulus to | |
11389 | enable BN_FLG_CONSTTIME. | |
11390 | ||
5f8e6c50 DMSP |
11391 | *Matthew D Wood (Intel Corp)* |
11392 | ||
11393 | * In the SSL/TLS server implementation, be strict about session ID | |
11394 | context matching (which matters if an application uses a single | |
11395 | external cache for different purposes). Previously, | |
11396 | out-of-context reuse was forbidden only if SSL_VERIFY_PEER was | |
11397 | set. This did ensure strict client verification, but meant that, | |
11398 | with applications using a single external cache for quite | |
11399 | different requirements, clients could circumvent ciphersuite | |
11400 | restrictions for a given session ID context by starting a session | |
11401 | in a different context. | |
11402 | ||
11403 | *Bodo Moeller* | |
11404 | ||
11405 | * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that | |
11406 | a ciphersuite string such as "DEFAULT:RSA" cannot enable | |
11407 | authentication-only ciphersuites. | |
11408 | ||
11409 | *Bodo Moeller* | |
11410 | ||
11411 | * Update the SSL_get_shared_ciphers() fix CVE-2006-3738 which was | |
11412 | not complete and could lead to a possible single byte overflow | |
d8dc8538 | 11413 | ([CVE-2007-5135]) [Ben Laurie] |
5f8e6c50 | 11414 | |
257e9d03 | 11415 | ### Changes between 0.9.8d and 0.9.8e [23 Feb 2007] |
5f8e6c50 DMSP |
11416 | |
11417 | * Since AES128 and AES256 (and similarly Camellia128 and | |
11418 | Camellia256) share a single mask bit in the logic of | |
11419 | ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a | |
11420 | kludge to work properly if AES128 is available and AES256 isn't | |
11421 | (or if Camellia128 is available and Camellia256 isn't). | |
11422 | ||
11423 | *Victor Duchovni* | |
11424 | ||
11425 | * Fix the BIT STRING encoding generated by crypto/ec/ec_asn1.c | |
11426 | (within i2d_ECPrivateKey, i2d_ECPKParameters, i2d_ECParameters): | |
11427 | When a point or a seed is encoded in a BIT STRING, we need to | |
11428 | prevent the removal of trailing zero bits to get the proper DER | |
11429 | encoding. (By default, crypto/asn1/a_bitstr.c assumes the case | |
11430 | of a NamedBitList, for which trailing 0 bits need to be removed.) | |
11431 | ||
11432 | *Bodo Moeller* | |
11433 | ||
11434 | * Have SSL/TLS server implementation tolerate "mismatched" record | |
11435 | protocol version while receiving ClientHello even if the | |
11436 | ClientHello is fragmented. (The server can't insist on the | |
11437 | particular protocol version it has chosen before the ServerHello | |
11438 | message has informed the client about his choice.) | |
11439 | ||
11440 | *Bodo Moeller* | |
11441 | ||
11442 | * Add RFC 3779 support. | |
11443 | ||
11444 | *Rob Austein for ARIN, Ben Laurie* | |
11445 | ||
11446 | * Load error codes if they are not already present instead of using a | |
11447 | static variable. This allows them to be cleanly unloaded and reloaded. | |
11448 | Improve header file function name parsing. | |
11449 | ||
11450 | *Steve Henson* | |
11451 | ||
11452 | * extend SMTP and IMAP protocol emulation in s_client to use EHLO | |
11453 | or CAPABILITY handshake as required by RFCs. | |
11454 | ||
11455 | *Goetz Babin-Ebell* | |
11456 | ||
257e9d03 | 11457 | ### Changes between 0.9.8c and 0.9.8d [28 Sep 2006] |
5f8e6c50 DMSP |
11458 | |
11459 | * Introduce limits to prevent malicious keys being able to | |
d8dc8538 | 11460 | cause a denial of service. ([CVE-2006-2940]) |
5f8e6c50 DMSP |
11461 | |
11462 | *Steve Henson, Bodo Moeller* | |
11463 | ||
11464 | * Fix ASN.1 parsing of certain invalid structures that can result | |
d8dc8538 | 11465 | in a denial of service. ([CVE-2006-2937]) [Steve Henson] |
5f8e6c50 DMSP |
11466 | |
11467 | * Fix buffer overflow in SSL_get_shared_ciphers() function. | |
d8dc8538 | 11468 | ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team] |
5f8e6c50 DMSP |
11469 | |
11470 | * Fix SSL client code which could crash if connecting to a | |
d8dc8538 | 11471 | malicious SSLv2 server. ([CVE-2006-4343]) |
5f8e6c50 DMSP |
11472 | |
11473 | *Tavis Ormandy and Will Drewry, Google Security Team* | |
11474 | ||
11475 | * Since 0.9.8b, ciphersuite strings naming explicit ciphersuites | |
11476 | match only those. Before that, "AES256-SHA" would be interpreted | |
11477 | as a pattern and match "AES128-SHA" too (since AES128-SHA got | |
11478 | the same strength classification in 0.9.7h) as we currently only | |
11479 | have a single AES bit in the ciphersuite description bitmap. | |
11480 | That change, however, also applied to ciphersuite strings such as | |
11481 | "RC4-MD5" that intentionally matched multiple ciphersuites -- | |
11482 | namely, SSL 2.0 ciphersuites in addition to the more common ones | |
11483 | from SSL 3.0/TLS 1.0. | |
11484 | ||
11485 | So we change the selection algorithm again: Naming an explicit | |
11486 | ciphersuite selects this one ciphersuite, and any other similar | |
11487 | ciphersuite (same bitmap) from *other* protocol versions. | |
11488 | Thus, "RC4-MD5" again will properly select both the SSL 2.0 | |
11489 | ciphersuite and the SSL 3.0/TLS 1.0 ciphersuite. | |
11490 | ||
11491 | Since SSL 2.0 does not have any ciphersuites for which the | |
11492 | 128/256 bit distinction would be relevant, this works for now. | |
11493 | The proper fix will be to use different bits for AES128 and | |
11494 | AES256, which would have avoided the problems from the beginning; | |
11495 | however, bits are scarce, so we can only do this in a new release | |
11496 | (not just a patchlevel) when we can change the SSL_CIPHER | |
11497 | definition to split the single 'unsigned long mask' bitmap into | |
11498 | multiple values to extend the available space. | |
11499 | ||
5f8e6c50 DMSP |
11500 | *Bodo Moeller* |
11501 | ||
257e9d03 | 11502 | ### Changes between 0.9.8b and 0.9.8c [05 Sep 2006] |
5f8e6c50 DMSP |
11503 | |
11504 | * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher | |
d8dc8538 | 11505 | ([CVE-2006-4339]) [Ben Laurie and Google Security Team] |
5f8e6c50 DMSP |
11506 | |
11507 | * Add AES IGE and biIGE modes. | |
11508 | ||
11509 | *Ben Laurie* | |
11510 | ||
11511 | * Change the Unix randomness entropy gathering to use poll() when | |
11512 | possible instead of select(), since the latter has some | |
11513 | undesirable limitations. | |
11514 | ||
11515 | *Darryl Miles via Richard Levitte and Bodo Moeller* | |
11516 | ||
11517 | * Disable "ECCdraft" ciphersuites more thoroughly. Now special | |
11518 | treatment in ssl/ssl_ciph.s makes sure that these ciphersuites | |
11519 | cannot be implicitly activated as part of, e.g., the "AES" alias. | |
11520 | However, please upgrade to OpenSSL 0.9.9[-dev] for | |
11521 | non-experimental use of the ECC ciphersuites to get TLS extension | |
11522 | support, which is required for curve and point format negotiation | |
11523 | to avoid potential handshake problems. | |
11524 | ||
11525 | *Bodo Moeller* | |
11526 | ||
11527 | * Disable rogue ciphersuites: | |
11528 | ||
257e9d03 RS |
11529 | - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5") |
11530 | - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5") | |
11531 | - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5") | |
5f8e6c50 DMSP |
11532 | |
11533 | The latter two were purportedly from | |
11534 | draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really | |
11535 | appear there. | |
11536 | ||
11537 | Also deactivate the remaining ciphersuites from | |
11538 | draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as | |
11539 | unofficial, and the ID has long expired. | |
11540 | ||
11541 | *Bodo Moeller* | |
11542 | ||
11543 | * Fix RSA blinding Heisenbug (problems sometimes occurred on | |
11544 | dual-core machines) and other potential thread-safety issues. | |
11545 | ||
11546 | *Bodo Moeller* | |
11547 | ||
11548 | * Add the symmetric cipher Camellia (128-bit, 192-bit, 256-bit key | |
11549 | versions), which is now available for royalty-free use | |
257e9d03 | 11550 | (see <http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html>). |
5f8e6c50 DMSP |
11551 | Also, add Camellia TLS ciphersuites from RFC 4132. |
11552 | ||
11553 | To minimize changes between patchlevels in the OpenSSL 0.9.8 | |
11554 | series, Camellia remains excluded from compilation unless OpenSSL | |
11555 | is configured with 'enable-camellia'. | |
11556 | ||
11557 | *NTT* | |
11558 | ||
11559 | * Disable the padding bug check when compression is in use. The padding | |
11560 | bug check assumes the first packet is of even length, this is not | |
11561 | necessarily true if compression is enabled and can result in false | |
11562 | positives causing handshake failure. The actual bug test is ancient | |
11563 | code so it is hoped that implementations will either have fixed it by | |
11564 | now or any which still have the bug do not support compression. | |
11565 | ||
11566 | *Steve Henson* | |
11567 | ||
257e9d03 | 11568 | ### Changes between 0.9.8a and 0.9.8b [04 May 2006] |
5f8e6c50 DMSP |
11569 | |
11570 | * When applying a cipher rule check to see if string match is an explicit | |
11571 | cipher suite and only match that one cipher suite if it is. | |
11572 | ||
11573 | *Steve Henson* | |
11574 | ||
11575 | * Link in manifests for VC++ if needed. | |
11576 | ||
11577 | *Austin Ziegler <halostatue@gmail.com>* | |
11578 | ||
11579 | * Update support for ECC-based TLS ciphersuites according to | |
11580 | draft-ietf-tls-ecc-12.txt with proposed changes (but without | |
11581 | TLS extensions, which are supported starting with the 0.9.9 | |
11582 | branch, not in the OpenSSL 0.9.8 branch). | |
11583 | ||
11584 | *Douglas Stebila* | |
11585 | ||
11586 | * New functions EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free() to support | |
11587 | opaque EVP_CIPHER_CTX handling. | |
11588 | ||
11589 | *Steve Henson* | |
11590 | ||
11591 | * Fixes and enhancements to zlib compression code. We now only use | |
44652c16 | 11592 | "zlib1.dll" and use the default `__cdecl` calling convention on Win32 |
5f8e6c50 | 11593 | to conform with the standards mentioned here: |
257e9d03 | 11594 | <http://www.zlib.net/DLL_FAQ.txt> |
5f8e6c50 DMSP |
11595 | Static zlib linking now works on Windows and the new --with-zlib-include |
11596 | --with-zlib-lib options to Configure can be used to supply the location | |
11597 | of the headers and library. Gracefully handle case where zlib library | |
11598 | can't be loaded. | |
11599 | ||
11600 | *Steve Henson* | |
11601 | ||
11602 | * Several fixes and enhancements to the OID generation code. The old code | |
11603 | sometimes allowed invalid OIDs (1.X for X >= 40 for example), couldn't | |
11604 | handle numbers larger than ULONG_MAX, truncated printing and had a | |
11605 | non standard OBJ_obj2txt() behaviour. | |
11606 | ||
11607 | *Steve Henson* | |
11608 | ||
11609 | * Add support for building of engines under engine/ as shared libraries | |
11610 | under VC++ build system. | |
11611 | ||
11612 | *Steve Henson* | |
11613 | ||
11614 | * Corrected the numerous bugs in the Win32 path splitter in DSO. | |
11615 | Hopefully, we will not see any false combination of paths any more. | |
11616 | ||
11617 | *Richard Levitte* | |
11618 | ||
257e9d03 | 11619 | ### Changes between 0.9.8 and 0.9.8a [11 Oct 2005] |
5f8e6c50 DMSP |
11620 | |
11621 | * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING | |
11622 | (part of SSL_OP_ALL). This option used to disable the | |
11623 | countermeasure against man-in-the-middle protocol-version | |
11624 | rollback in the SSL 2.0 server implementation, which is a bad | |
d8dc8538 | 11625 | idea. ([CVE-2005-2969]) |
5f8e6c50 DMSP |
11626 | |
11627 | *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center | |
11628 | for Information Security, National Institute of Advanced Industrial | |
257e9d03 | 11629 | Science and Technology [AIST], Japan)* |
5f8e6c50 DMSP |
11630 | |
11631 | * Add two function to clear and return the verify parameter flags. | |
11632 | ||
11633 | *Steve Henson* | |
11634 | ||
11635 | * Keep cipherlists sorted in the source instead of sorting them at | |
11636 | runtime, thus removing the need for a lock. | |
11637 | ||
11638 | *Nils Larsch* | |
11639 | ||
11640 | * Avoid some small subgroup attacks in Diffie-Hellman. | |
11641 | ||
11642 | *Nick Mathewson and Ben Laurie* | |
11643 | ||
11644 | * Add functions for well-known primes. | |
11645 | ||
11646 | *Nick Mathewson* | |
11647 | ||
11648 | * Extended Windows CE support. | |
11649 | ||
11650 | *Satoshi Nakamura and Andy Polyakov* | |
11651 | ||
11652 | * Initialize SSL_METHOD structures at compile time instead of during | |
11653 | runtime, thus removing the need for a lock. | |
11654 | ||
11655 | *Steve Henson* | |
11656 | ||
11657 | * Make PKCS7_decrypt() work even if no certificate is supplied by | |
11658 | attempting to decrypt each encrypted key in turn. Add support to | |
11659 | smime utility. | |
11660 | ||
11661 | *Steve Henson* | |
11662 | ||
257e9d03 | 11663 | ### Changes between 0.9.7h and 0.9.8 [05 Jul 2005] |
5f8e6c50 DMSP |
11664 | |
11665 | [NB: OpenSSL 0.9.7i and later 0.9.7 patch levels were released after | |
11666 | OpenSSL 0.9.8.] | |
11667 | ||
11668 | * Add libcrypto.pc and libssl.pc for those who feel they need them. | |
11669 | ||
11670 | *Richard Levitte* | |
11671 | ||
11672 | * Change CA.sh and CA.pl so they don't bundle the CSR and the private | |
11673 | key into the same file any more. | |
11674 | ||
11675 | *Richard Levitte* | |
11676 | ||
11677 | * Add initial support for Win64, both IA64 and AMD64/x64 flavors. | |
11678 | ||
11679 | *Andy Polyakov* | |
11680 | ||
11681 | * Add -utf8 command line and config file option to 'ca'. | |
11682 | ||
11683 | *Stefan <stf@udoma.org* | |
11684 | ||
11685 | * Removed the macro des_crypt(), as it seems to conflict with some | |
11686 | libraries. Use DES_crypt(). | |
11687 | ||
11688 | *Richard Levitte* | |
11689 | ||
11690 | * Correct naming of the 'chil' and '4758cca' ENGINEs. This | |
11691 | involves renaming the source and generated shared-libs for | |
11692 | both. The engines will accept the corrected or legacy ids | |
11693 | ('ncipher' and '4758_cca' respectively) when binding. NB, | |
11694 | this only applies when building 'shared'. | |
11695 | ||
11696 | *Corinna Vinschen <vinschen@redhat.com> and Geoff Thorpe* | |
11697 | ||
11698 | * Add attribute functions to EVP_PKEY structure. Modify | |
11699 | PKCS12_create() to recognize a CSP name attribute and | |
11700 | use it. Make -CSP option work again in pkcs12 utility. | |
11701 | ||
11702 | *Steve Henson* | |
11703 | ||
11704 | * Add new functionality to the bn blinding code: | |
11705 | - automatic re-creation of the BN_BLINDING parameters after | |
11706 | a fixed number of uses (currently 32) | |
11707 | - add new function for parameter creation | |
11708 | - introduce flags to control the update behaviour of the | |
11709 | BN_BLINDING parameters | |
11710 | - hide BN_BLINDING structure | |
11711 | Add a second BN_BLINDING slot to the RSA structure to improve | |
11712 | performance when a single RSA object is shared among several | |
11713 | threads. | |
11714 | ||
11715 | *Nils Larsch* | |
11716 | ||
11717 | * Add support for DTLS. | |
11718 | ||
11719 | *Nagendra Modadugu <nagendra@cs.stanford.edu> and Ben Laurie* | |
11720 | ||
11721 | * Add support for DER encoded private keys (SSL_FILETYPE_ASN1) | |
11722 | to SSL_CTX_use_PrivateKey_file() and SSL_use_PrivateKey_file() | |
11723 | ||
11724 | *Walter Goulet* | |
11725 | ||
11726 | * Remove buggy and incomplete DH cert support from | |
11727 | ssl/ssl_rsa.c and ssl/s3_both.c | |
11728 | ||
11729 | *Nils Larsch* | |
11730 | ||
11731 | * Use SHA-1 instead of MD5 as the default digest algorithm for | |
ec2bfb7d | 11732 | the `apps/openssl` commands. |
5f8e6c50 DMSP |
11733 | |
11734 | *Nils Larsch* | |
11735 | ||
11736 | * Compile clean with "-Wall -Wmissing-prototypes | |
11737 | -Wstrict-prototypes -Wmissing-declarations -Werror". Currently | |
11738 | DEBUG_SAFESTACK must also be set. | |
11739 | ||
11740 | *Ben Laurie* | |
11741 | ||
11742 | * Change ./Configure so that certain algorithms can be disabled by default. | |
11743 | The new counterpiece to "no-xxx" is "enable-xxx". | |
11744 | ||
11745 | The patented RC5 and MDC2 algorithms will now be disabled unless | |
11746 | "enable-rc5" and "enable-mdc2", respectively, are specified. | |
11747 | ||
11748 | (IDEA remains enabled despite being patented. This is because IDEA | |
11749 | is frequently required for interoperability, and there is no license | |
11750 | fee for non-commercial use. As before, "no-idea" can be used to | |
11751 | avoid this algorithm.) | |
11752 | ||
5f8e6c50 DMSP |
11753 | *Bodo Moeller* |
11754 | ||
11755 | * Add processing of proxy certificates (see RFC 3820). This work was | |
11756 | sponsored by KTH (The Royal Institute of Technology in Stockholm) and | |
11757 | EGEE (Enabling Grids for E-science in Europe). | |
11758 | ||
11759 | *Richard Levitte* | |
11760 | ||
11761 | * RC4 performance overhaul on modern architectures/implementations, such | |
11762 | as Intel P4, IA-64 and AMD64. | |
11763 | ||
11764 | *Andy Polyakov* | |
11765 | ||
11766 | * New utility extract-section.pl. This can be used specify an alternative | |
11767 | section number in a pod file instead of having to treat each file as | |
11768 | a separate case in Makefile. This can be done by adding two lines to the | |
11769 | pod file: | |
11770 | ||
11771 | =for comment openssl_section:XXX | |
11772 | ||
11773 | The blank line is mandatory. | |
11774 | ||
5f8e6c50 DMSP |
11775 | *Steve Henson* |
11776 | ||
11777 | * New arguments -certform, -keyform and -pass for s_client and s_server | |
11778 | to allow alternative format key and certificate files and passphrase | |
11779 | sources. | |
11780 | ||
11781 | *Steve Henson* | |
11782 | ||
11783 | * New structure X509_VERIFY_PARAM which combines current verify parameters, | |
11784 | update associated structures and add various utility functions. | |
11785 | ||
11786 | Add new policy related verify parameters, include policy checking in | |
11787 | standard verify code. Enhance 'smime' application with extra parameters | |
11788 | to support policy checking and print out. | |
11789 | ||
11790 | *Steve Henson* | |
11791 | ||
11792 | * Add a new engine to support VIA PadLock ACE extensions in the VIA C3 | |
11793 | Nehemiah processors. These extensions support AES encryption in hardware | |
11794 | as well as RNG (though RNG support is currently disabled). | |
11795 | ||
11796 | *Michal Ludvig <michal@logix.cz>, with help from Andy Polyakov* | |
11797 | ||
257e9d03 | 11798 | * Deprecate `BN_[get|set]_params()` functions (they were ignored internally). |
5f8e6c50 DMSP |
11799 | |
11800 | *Geoff Thorpe* | |
11801 | ||
11802 | * New FIPS 180-2 algorithms, SHA-224/-256/-384/-512 are implemented. | |
11803 | ||
11804 | *Andy Polyakov and a number of other people* | |
11805 | ||
11806 | * Improved PowerPC platform support. Most notably BIGNUM assembler | |
11807 | implementation contributed by IBM. | |
11808 | ||
11809 | *Suresh Chari, Peter Waltenberg, Andy Polyakov* | |
11810 | ||
11811 | * The new 'RSA_generate_key_ex' function now takes a BIGNUM for the public | |
11812 | exponent rather than 'unsigned long'. There is a corresponding change to | |
11813 | the new 'rsa_keygen' element of the RSA_METHOD structure. | |
11814 | ||
11815 | *Jelte Jansen, Geoff Thorpe* | |
11816 | ||
11817 | * Functionality for creating the initial serial number file is now | |
11818 | moved from CA.pl to the 'ca' utility with a new option -create_serial. | |
11819 | ||
11820 | (Before OpenSSL 0.9.7e, CA.pl used to initialize the serial | |
11821 | number file to 1, which is bound to cause problems. To avoid | |
11822 | the problems while respecting compatibility between different 0.9.7 | |
11823 | patchlevels, 0.9.7e employed 'openssl x509 -next_serial' in | |
11824 | CA.pl for serial number initialization. With the new release 0.9.8, | |
11825 | we can fix the problem directly in the 'ca' utility.) | |
11826 | ||
11827 | *Steve Henson* | |
11828 | ||
11829 | * Reduced header interdependencies by declaring more opaque objects in | |
11830 | ossl_typ.h. As a consequence, including some headers (eg. engine.h) will | |
11831 | give fewer recursive includes, which could break lazy source code - so | |
11832 | this change is covered by the OPENSSL_NO_DEPRECATED symbol. As always, | |
11833 | developers should define this symbol when building and using openssl to | |
11834 | ensure they track the recommended behaviour, interfaces, [etc], but | |
11835 | backwards-compatible behaviour prevails when this isn't defined. | |
11836 | ||
11837 | *Geoff Thorpe* | |
11838 | ||
11839 | * New function X509_POLICY_NODE_print() which prints out policy nodes. | |
11840 | ||
11841 | *Steve Henson* | |
11842 | ||
11843 | * Add new EVP function EVP_CIPHER_CTX_rand_key and associated functionality. | |
11844 | This will generate a random key of the appropriate length based on the | |
11845 | cipher context. The EVP_CIPHER can provide its own random key generation | |
11846 | routine to support keys of a specific form. This is used in the des and | |
11847 | 3des routines to generate a key of the correct parity. Update S/MIME | |
11848 | code to use new functions and hence generate correct parity DES keys. | |
11849 | Add EVP_CHECK_DES_KEY #define to return an error if the key is not | |
11850 | valid (weak or incorrect parity). | |
11851 | ||
11852 | *Steve Henson* | |
11853 | ||
11854 | * Add a local set of CRLs that can be used by X509_verify_cert() as well | |
11855 | as looking them up. This is useful when the verified structure may contain | |
11856 | CRLs, for example PKCS#7 signedData. Modify PKCS7_verify() to use any CRLs | |
11857 | present unless the new PKCS7_NO_CRL flag is asserted. | |
11858 | ||
11859 | *Steve Henson* | |
11860 | ||
11861 | * Extend ASN1 oid configuration module. It now additionally accepts the | |
11862 | syntax: | |
11863 | ||
11864 | shortName = some long name, 1.2.3.4 | |
11865 | ||
11866 | *Steve Henson* | |
11867 | ||
11868 | * Reimplemented the BN_CTX implementation. There is now no more static | |
11869 | limitation on the number of variables it can handle nor the depth of the | |
11870 | "stack" handling for BN_CTX_start()/BN_CTX_end() pairs. The stack | |
11871 | information can now expand as required, and rather than having a single | |
11872 | static array of bignums, BN_CTX now uses a linked-list of such arrays | |
11873 | allowing it to expand on demand whilst maintaining the usefulness of | |
11874 | BN_CTX's "bundling". | |
11875 | ||
11876 | *Geoff Thorpe* | |
11877 | ||
11878 | * Add a missing BN_CTX parameter to the 'rsa_mod_exp' callback in RSA_METHOD | |
11879 | to allow all RSA operations to function using a single BN_CTX. | |
11880 | ||
11881 | *Geoff Thorpe* | |
11882 | ||
11883 | * Preliminary support for certificate policy evaluation and checking. This | |
11884 | is initially intended to pass the tests outlined in "Conformance Testing | |
11885 | of Relying Party Client Certificate Path Processing Logic" v1.07. | |
11886 | ||
11887 | *Steve Henson* | |
11888 | ||
11889 | * bn_dup_expand() has been deprecated, it was introduced in 0.9.7 and | |
11890 | remained unused and not that useful. A variety of other little bignum | |
11891 | tweaks and fixes have also been made continuing on from the audit (see | |
11892 | below). | |
11893 | ||
11894 | *Geoff Thorpe* | |
11895 | ||
11896 | * Constify all or almost all d2i, c2i, s2i and r2i functions, along with | |
11897 | associated ASN1, EVP and SSL functions and old ASN1 macros. | |
11898 | ||
11899 | *Richard Levitte* | |
11900 | ||
11901 | * BN_zero() only needs to set 'top' and 'neg' to zero for correct results, | |
11902 | and this should never fail. So the return value from the use of | |
11903 | BN_set_word() (which can fail due to needless expansion) is now deprecated; | |
11904 | if OPENSSL_NO_DEPRECATED is defined, BN_zero() is a void macro. | |
11905 | ||
11906 | *Geoff Thorpe* | |
11907 | ||
11908 | * BN_CTX_get() should return zero-valued bignums, providing the same | |
11909 | initialised value as BN_new(). | |
11910 | ||
11911 | *Geoff Thorpe, suggested by Ulf Möller* | |
11912 | ||
11913 | * Support for inhibitAnyPolicy certificate extension. | |
11914 | ||
11915 | *Steve Henson* | |
11916 | ||
11917 | * An audit of the BIGNUM code is underway, for which debugging code is | |
11918 | enabled when BN_DEBUG is defined. This makes stricter enforcements on what | |
11919 | is considered valid when processing BIGNUMs, and causes execution to | |
11920 | assert() when a problem is discovered. If BN_DEBUG_RAND is defined, | |
11921 | further steps are taken to deliberately pollute unused data in BIGNUM | |
11922 | structures to try and expose faulty code further on. For now, openssl will | |
11923 | (in its default mode of operation) continue to tolerate the inconsistent | |
11924 | forms that it has tolerated in the past, but authors and packagers should | |
11925 | consider trying openssl and their own applications when compiled with | |
11926 | these debugging symbols defined. It will help highlight potential bugs in | |
11927 | their own code, and will improve the test coverage for OpenSSL itself. At | |
11928 | some point, these tighter rules will become openssl's default to improve | |
11929 | maintainability, though the assert()s and other overheads will remain only | |
11930 | in debugging configurations. See bn.h for more details. | |
11931 | ||
11932 | *Geoff Thorpe, Nils Larsch, Ulf Möller* | |
11933 | ||
11934 | * BN_CTX_init() has been deprecated, as BN_CTX is an opaque structure | |
11935 | that can only be obtained through BN_CTX_new() (which implicitly | |
11936 | initialises it). The presence of this function only made it possible | |
11937 | to overwrite an existing structure (and cause memory leaks). | |
11938 | ||
11939 | *Geoff Thorpe* | |
11940 | ||
11941 | * Because of the callback-based approach for implementing LHASH as a | |
11942 | template type, lh_insert() adds opaque objects to hash-tables and | |
11943 | lh_doall() or lh_doall_arg() are typically used with a destructor callback | |
11944 | to clean up those corresponding objects before destroying the hash table | |
11945 | (and losing the object pointers). So some over-zealous constifications in | |
11946 | LHASH have been relaxed so that lh_insert() does not take (nor store) the | |
257e9d03 | 11947 | objects as "const" and the `lh_doall[_arg]` callback wrappers are not |
5f8e6c50 DMSP |
11948 | prototyped to have "const" restrictions on the object pointers they are |
11949 | given (and so aren't required to cast them away any more). | |
11950 | ||
11951 | *Geoff Thorpe* | |
11952 | ||
11953 | * The tmdiff.h API was so ugly and minimal that our own timing utility | |
11954 | (speed) prefers to use its own implementation. The two implementations | |
11955 | haven't been consolidated as yet (volunteers?) but the tmdiff API has had | |
257e9d03 RS |
11956 | its object type properly exposed (MS_TM) instead of casting to/from |
11957 | `char *`. This may still change yet if someone realises MS_TM and | |
11958 | `ms_time_***` | |
5f8e6c50 DMSP |
11959 | aren't necessarily the greatest nomenclatures - but this is what was used |
11960 | internally to the implementation so I've used that for now. | |
11961 | ||
11962 | *Geoff Thorpe* | |
11963 | ||
11964 | * Ensure that deprecated functions do not get compiled when | |
11965 | OPENSSL_NO_DEPRECATED is defined. Some "openssl" subcommands and a few of | |
11966 | the self-tests were still using deprecated key-generation functions so | |
11967 | these have been updated also. | |
11968 | ||
11969 | *Geoff Thorpe* | |
11970 | ||
11971 | * Reorganise PKCS#7 code to separate the digest location functionality | |
11972 | into PKCS7_find_digest(), digest addition into PKCS7_bio_add_digest(). | |
11973 | New function PKCS7_set_digest() to set the digest type for PKCS#7 | |
11974 | digestedData type. Add additional code to correctly generate the | |
11975 | digestedData type and add support for this type in PKCS7 initialization | |
11976 | functions. | |
11977 | ||
11978 | *Steve Henson* | |
11979 | ||
11980 | * New function PKCS7_set0_type_other() this initializes a PKCS7 | |
11981 | structure of type "other". | |
11982 | ||
11983 | *Steve Henson* | |
11984 | ||
11985 | * Fix prime generation loop in crypto/bn/bn_prime.pl by making | |
11986 | sure the loop does correctly stop and breaking ("division by zero") | |
11987 | modulus operations are not performed. The (pre-generated) prime | |
11988 | table crypto/bn/bn_prime.h was already correct, but it could not be | |
11989 | re-generated on some platforms because of the "division by zero" | |
11990 | situation in the script. | |
11991 | ||
11992 | *Ralf S. Engelschall* | |
11993 | ||
11994 | * Update support for ECC-based TLS ciphersuites according to | |
11995 | draft-ietf-tls-ecc-03.txt: the KDF1 key derivation function with | |
11996 | SHA-1 now is only used for "small" curves (where the | |
11997 | representation of a field element takes up to 24 bytes); for | |
11998 | larger curves, the field element resulting from ECDH is directly | |
11999 | used as premaster secret. | |
12000 | ||
12001 | *Douglas Stebila (Sun Microsystems Laboratories)* | |
12002 | ||
12003 | * Add code for kP+lQ timings to crypto/ec/ectest.c, and add SEC2 | |
12004 | curve secp160r1 to the tests. | |
12005 | ||
12006 | *Douglas Stebila (Sun Microsystems Laboratories)* | |
12007 | ||
12008 | * Add the possibility to load symbols globally with DSO. | |
12009 | ||
12010 | *Götz Babin-Ebell <babin-ebell@trustcenter.de> via Richard Levitte* | |
12011 | ||
12012 | * Add the functions ERR_set_mark() and ERR_pop_to_mark() for better | |
12013 | control of the error stack. | |
12014 | ||
12015 | *Richard Levitte* | |
12016 | ||
12017 | * Add support for STORE in ENGINE. | |
12018 | ||
12019 | *Richard Levitte* | |
12020 | ||
12021 | * Add the STORE type. The intention is to provide a common interface | |
12022 | to certificate and key stores, be they simple file-based stores, or | |
12023 | HSM-type store, or LDAP stores, or... | |
12024 | NOTE: The code is currently UNTESTED and isn't really used anywhere. | |
12025 | ||
12026 | *Richard Levitte* | |
12027 | ||
12028 | * Add a generic structure called OPENSSL_ITEM. This can be used to | |
12029 | pass a list of arguments to any function as well as provide a way | |
12030 | for a function to pass data back to the caller. | |
12031 | ||
12032 | *Richard Levitte* | |
12033 | ||
12034 | * Add the functions BUF_strndup() and BUF_memdup(). BUF_strndup() | |
12035 | works like BUF_strdup() but can be used to duplicate a portion of | |
12036 | a string. The copy gets NUL-terminated. BUF_memdup() duplicates | |
12037 | a memory area. | |
12038 | ||
12039 | *Richard Levitte* | |
12040 | ||
12041 | * Add the function sk_find_ex() which works like sk_find(), but will | |
12042 | return an index to an element even if an exact match couldn't be | |
12043 | found. The index is guaranteed to point at the element where the | |
12044 | searched-for key would be inserted to preserve sorting order. | |
12045 | ||
12046 | *Richard Levitte* | |
12047 | ||
12048 | * Add the function OBJ_bsearch_ex() which works like OBJ_bsearch() but | |
12049 | takes an extra flags argument for optional functionality. Currently, | |
12050 | the following flags are defined: | |
12051 | ||
12052 | OBJ_BSEARCH_VALUE_ON_NOMATCH | |
12053 | This one gets OBJ_bsearch_ex() to return a pointer to the first | |
12054 | element where the comparing function returns a negative or zero | |
12055 | number. | |
12056 | ||
12057 | OBJ_BSEARCH_FIRST_VALUE_ON_MATCH | |
12058 | This one gets OBJ_bsearch_ex() to return a pointer to the first | |
12059 | element where the comparing function returns zero. This is useful | |
12060 | if there are more than one element where the comparing function | |
12061 | returns zero. | |
12062 | ||
12063 | *Richard Levitte* | |
12064 | ||
12065 | * Make it possible to create self-signed certificates with 'openssl ca' | |
12066 | in such a way that the self-signed certificate becomes part of the | |
12067 | CA database and uses the same mechanisms for serial number generation | |
12068 | as all other certificate signing. The new flag '-selfsign' enables | |
12069 | this functionality. Adapt CA.sh and CA.pl.in. | |
12070 | ||
12071 | *Richard Levitte* | |
12072 | ||
12073 | * Add functionality to check the public key of a certificate request | |
12074 | against a given private. This is useful to check that a certificate | |
12075 | request can be signed by that key (self-signing). | |
12076 | ||
12077 | *Richard Levitte* | |
12078 | ||
12079 | * Make it possible to have multiple active certificates with the same | |
12080 | subject in the CA index file. This is done only if the keyword | |
12081 | 'unique_subject' is set to 'no' in the main CA section (default | |
12082 | if 'CA_default') of the configuration file. The value is saved | |
12083 | with the database itself in a separate index attribute file, | |
12084 | named like the index file with '.attr' appended to the name. | |
12085 | ||
12086 | *Richard Levitte* | |
12087 | ||
12088 | * Generate multi-valued AVAs using '+' notation in config files for | |
12089 | req and dirName. | |
12090 | ||
12091 | *Steve Henson* | |
12092 | ||
12093 | * Support for nameConstraints certificate extension. | |
12094 | ||
12095 | *Steve Henson* | |
12096 | ||
12097 | * Support for policyConstraints certificate extension. | |
12098 | ||
12099 | *Steve Henson* | |
12100 | ||
12101 | * Support for policyMappings certificate extension. | |
12102 | ||
12103 | *Steve Henson* | |
12104 | ||
12105 | * Make sure the default DSA_METHOD implementation only uses its | |
12106 | dsa_mod_exp() and/or bn_mod_exp() handlers if they are non-NULL, | |
12107 | and change its own handlers to be NULL so as to remove unnecessary | |
12108 | indirection. This lets alternative implementations fallback to the | |
12109 | default implementation more easily. | |
12110 | ||
12111 | *Geoff Thorpe* | |
12112 | ||
12113 | * Support for directoryName in GeneralName related extensions | |
12114 | in config files. | |
12115 | ||
12116 | *Steve Henson* | |
12117 | ||
12118 | * Make it possible to link applications using Makefile.shared. | |
12119 | Make that possible even when linking against static libraries! | |
12120 | ||
12121 | *Richard Levitte* | |
12122 | ||
12123 | * Support for single pass processing for S/MIME signing. This now | |
12124 | means that S/MIME signing can be done from a pipe, in addition | |
12125 | cleartext signing (multipart/signed type) is effectively streaming | |
12126 | and the signed data does not need to be all held in memory. | |
12127 | ||
12128 | This is done with a new flag PKCS7_STREAM. When this flag is set | |
12129 | PKCS7_sign() only initializes the PKCS7 structure and the actual signing | |
12130 | is done after the data is output (and digests calculated) in | |
12131 | SMIME_write_PKCS7(). | |
12132 | ||
12133 | *Steve Henson* | |
12134 | ||
12135 | * Add full support for -rpath/-R, both in shared libraries and | |
12136 | applications, at least on the platforms where it's known how | |
12137 | to do it. | |
12138 | ||
12139 | *Richard Levitte* | |
12140 | ||
12141 | * In crypto/ec/ec_mult.c, implement fast point multiplication with | |
12142 | precomputation, based on wNAF splitting: EC_GROUP_precompute_mult() | |
12143 | will now compute a table of multiples of the generator that | |
12144 | makes subsequent invocations of EC_POINTs_mul() or EC_POINT_mul() | |
12145 | faster (notably in the case of a single point multiplication, | |
12146 | scalar * generator). | |
12147 | ||
12148 | *Nils Larsch, Bodo Moeller* | |
12149 | ||
12150 | * IPv6 support for certificate extensions. The various extensions | |
12151 | which use the IP:a.b.c.d can now take IPv6 addresses using the | |
12152 | formats of RFC1884 2.2 . IPv6 addresses are now also displayed | |
12153 | correctly. | |
12154 | ||
12155 | *Steve Henson* | |
12156 | ||
12157 | * Added an ENGINE that implements RSA by performing private key | |
12158 | exponentiations with the GMP library. The conversions to and from | |
12159 | GMP's mpz_t format aren't optimised nor are any montgomery forms | |
12160 | cached, and on x86 it appears OpenSSL's own performance has caught up. | |
12161 | However there are likely to be other architectures where GMP could | |
12162 | provide a boost. This ENGINE is not built in by default, but it can be | |
12163 | specified at Configure time and should be accompanied by the necessary | |
12164 | linker additions, eg; | |
12165 | ./config -DOPENSSL_USE_GMP -lgmp | |
12166 | ||
12167 | *Geoff Thorpe* | |
12168 | ||
12169 | * "openssl engine" will not display ENGINE/DSO load failure errors when | |
12170 | testing availability of engines with "-t" - the old behaviour is | |
12171 | produced by increasing the feature's verbosity with "-tt". | |
12172 | ||
12173 | *Geoff Thorpe* | |
12174 | ||
12175 | * ECDSA routines: under certain error conditions uninitialized BN objects | |
12176 | could be freed. Solution: make sure initialization is performed early | |
12177 | enough. (Reported and fix supplied by Nils Larsch <nla@trustcenter.de> | |
12178 | via PR#459) | |
12179 | ||
12180 | *Lutz Jaenicke* | |
12181 | ||
12182 | * Key-generation can now be implemented in RSA_METHOD, DSA_METHOD | |
12183 | and DH_METHOD (eg. by ENGINE implementations) to override the normal | |
12184 | software implementations. For DSA and DH, parameter generation can | |
12185 | also be overridden by providing the appropriate method callbacks. | |
12186 | ||
12187 | *Geoff Thorpe* | |
12188 | ||
12189 | * Change the "progress" mechanism used in key-generation and | |
12190 | primality testing to functions that take a new BN_GENCB pointer in | |
257e9d03 | 12191 | place of callback/argument pairs. The new API functions have `_ex` |
5f8e6c50 DMSP |
12192 | postfixes and the older functions are reimplemented as wrappers for |
12193 | the new ones. The OPENSSL_NO_DEPRECATED symbol can be used to hide | |
12194 | declarations of the old functions to help (graceful) attempts to | |
12195 | migrate to the new functions. Also, the new key-generation API | |
12196 | functions operate on a caller-supplied key-structure and return | |
12197 | success/failure rather than returning a key or NULL - this is to | |
12198 | help make "keygen" another member function of RSA_METHOD etc. | |
12199 | ||
12200 | Example for using the new callback interface: | |
12201 | ||
12202 | int (*my_callback)(int a, int b, BN_GENCB *cb) = ...; | |
12203 | void *my_arg = ...; | |
12204 | BN_GENCB my_cb; | |
12205 | ||
12206 | BN_GENCB_set(&my_cb, my_callback, my_arg); | |
12207 | ||
12208 | return BN_is_prime_ex(some_bignum, BN_prime_checks, NULL, &cb); | |
12209 | /* For the meaning of a, b in calls to my_callback(), see the | |
12210 | * documentation of the function that calls the callback. | |
12211 | * cb will point to my_cb; my_arg can be retrieved as cb->arg. | |
12212 | * my_callback should return 1 if it wants BN_is_prime_ex() | |
12213 | * to continue, or 0 to stop. | |
12214 | */ | |
12215 | ||
12216 | *Geoff Thorpe* | |
12217 | ||
12218 | * Change the ZLIB compression method to be stateful, and make it | |
12219 | available to TLS with the number defined in | |
12220 | draft-ietf-tls-compression-04.txt. | |
12221 | ||
12222 | *Richard Levitte* | |
12223 | ||
12224 | * Add the ASN.1 structures and functions for CertificatePair, which | |
12225 | is defined as follows (according to X.509_4thEditionDraftV6.pdf): | |
12226 | ||
12227 | CertificatePair ::= SEQUENCE { | |
12228 | forward [0] Certificate OPTIONAL, | |
12229 | reverse [1] Certificate OPTIONAL, | |
12230 | -- at least one of the pair shall be present -- } | |
12231 | ||
12232 | Also implement the PEM functions to read and write certificate | |
12233 | pairs, and defined the PEM tag as "CERTIFICATE PAIR". | |
12234 | ||
12235 | This needed to be defined, mostly for the sake of the LDAP | |
12236 | attribute crossCertificatePair, but may prove useful elsewhere as | |
12237 | well. | |
12238 | ||
12239 | *Richard Levitte* | |
12240 | ||
12241 | * Make it possible to inhibit symlinking of shared libraries in | |
12242 | Makefile.shared, for Cygwin's sake. | |
12243 | ||
12244 | *Richard Levitte* | |
12245 | ||
12246 | * Extend the BIGNUM API by creating a function | |
12247 | void BN_set_negative(BIGNUM *a, int neg); | |
12248 | and a macro that behave like | |
12249 | int BN_is_negative(const BIGNUM *a); | |
12250 | ||
12251 | to avoid the need to access 'a->neg' directly in applications. | |
12252 | ||
12253 | *Nils Larsch* | |
12254 | ||
12255 | * Implement fast modular reduction for pseudo-Mersenne primes | |
12256 | used in NIST curves (crypto/bn/bn_nist.c, crypto/ec/ecp_nist.c). | |
12257 | EC_GROUP_new_curve_GFp() will now automatically use this | |
12258 | if applicable. | |
12259 | ||
12260 | *Nils Larsch <nla@trustcenter.de>* | |
12261 | ||
12262 | * Add new lock type (CRYPTO_LOCK_BN). | |
12263 | ||
12264 | *Bodo Moeller* | |
12265 | ||
12266 | * Change the ENGINE framework to automatically load engines | |
12267 | dynamically from specific directories unless they could be | |
12268 | found to already be built in or loaded. Move all the | |
12269 | current engines except for the cryptodev one to a new | |
12270 | directory engines/. | |
12271 | The engines in engines/ are built as shared libraries if | |
12272 | the "shared" options was given to ./Configure or ./config. | |
12273 | Otherwise, they are inserted in libcrypto.a. | |
12274 | /usr/local/ssl/engines is the default directory for dynamic | |
12275 | engines, but that can be overridden at configure time through | |
12276 | the usual use of --prefix and/or --openssldir, and at run | |
12277 | time with the environment variable OPENSSL_ENGINES. | |
12278 | ||
12279 | *Geoff Thorpe and Richard Levitte* | |
12280 | ||
12281 | * Add Makefile.shared, a helper makefile to build shared | |
12282 | libraries. Adapt Makefile.org. | |
12283 | ||
12284 | *Richard Levitte* | |
12285 | ||
12286 | * Add version info to Win32 DLLs. | |
12287 | ||
12288 | *Peter 'Luna' Runestig" <peter@runestig.com>* | |
12289 | ||
12290 | * Add new 'medium level' PKCS#12 API. Certificates and keys | |
12291 | can be added using this API to created arbitrary PKCS#12 | |
4d49b685 | 12292 | files while avoiding the low-level API. |
5f8e6c50 DMSP |
12293 | |
12294 | New options to PKCS12_create(), key or cert can be NULL and | |
12295 | will then be omitted from the output file. The encryption | |
12296 | algorithm NIDs can be set to -1 for no encryption, the mac | |
12297 | iteration count can be set to 0 to omit the mac. | |
12298 | ||
12299 | Enhance pkcs12 utility by making the -nokeys and -nocerts | |
12300 | options work when creating a PKCS#12 file. New option -nomac | |
12301 | to omit the mac, NONE can be set for an encryption algorithm. | |
12302 | New code is modified to use the enhanced PKCS12_create() | |
4d49b685 | 12303 | instead of the low-level API. |
5f8e6c50 DMSP |
12304 | |
12305 | *Steve Henson* | |
12306 | ||
12307 | * Extend ASN1 encoder to support indefinite length constructed | |
12308 | encoding. This can output sequences tags and octet strings in | |
12309 | this form. Modify pk7_asn1.c to support indefinite length | |
12310 | encoding. This is experimental and needs additional code to | |
12311 | be useful, such as an ASN1 bio and some enhanced streaming | |
12312 | PKCS#7 code. | |
12313 | ||
12314 | Extend template encode functionality so that tagging is passed | |
12315 | down to the template encoder. | |
12316 | ||
12317 | *Steve Henson* | |
12318 | ||
12319 | * Let 'openssl req' fail if an argument to '-newkey' is not | |
12320 | recognized instead of using RSA as a default. | |
12321 | ||
12322 | *Bodo Moeller* | |
12323 | ||
12324 | * Add support for ECC-based ciphersuites from draft-ietf-tls-ecc-01.txt. | |
12325 | As these are not official, they are not included in "ALL"; | |
12326 | the "ECCdraft" ciphersuite group alias can be used to select them. | |
12327 | ||
12328 | *Vipul Gupta and Sumit Gupta (Sun Microsystems Laboratories)* | |
12329 | ||
12330 | * Add ECDH engine support. | |
12331 | ||
12332 | *Nils Gura and Douglas Stebila (Sun Microsystems Laboratories)* | |
12333 | ||
12334 | * Add ECDH in new directory crypto/ecdh/. | |
12335 | ||
12336 | *Douglas Stebila (Sun Microsystems Laboratories)* | |
12337 | ||
12338 | * Let BN_rand_range() abort with an error after 100 iterations | |
12339 | without success (which indicates a broken PRNG). | |
12340 | ||
12341 | *Bodo Moeller* | |
12342 | ||
12343 | * Change BN_mod_sqrt() so that it verifies that the input value | |
12344 | is really the square of the return value. (Previously, | |
12345 | BN_mod_sqrt would show GIGO behaviour.) | |
12346 | ||
12347 | *Bodo Moeller* | |
12348 | ||
12349 | * Add named elliptic curves over binary fields from X9.62, SECG, | |
12350 | and WAP/WTLS; add OIDs that were still missing. | |
12351 | ||
257e9d03 | 12352 | *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* |
5f8e6c50 DMSP |
12353 | |
12354 | * Extend the EC library for elliptic curves over binary fields | |
12355 | (new files ec2_smpl.c, ec2_smpt.c, ec2_mult.c in crypto/ec/). | |
12356 | New EC_METHOD: | |
12357 | ||
12358 | EC_GF2m_simple_method | |
12359 | ||
12360 | New API functions: | |
12361 | ||
12362 | EC_GROUP_new_curve_GF2m | |
12363 | EC_GROUP_set_curve_GF2m | |
12364 | EC_GROUP_get_curve_GF2m | |
12365 | EC_POINT_set_affine_coordinates_GF2m | |
12366 | EC_POINT_get_affine_coordinates_GF2m | |
12367 | EC_POINT_set_compressed_coordinates_GF2m | |
12368 | ||
12369 | Point compression for binary fields is disabled by default for | |
12370 | patent reasons (compile with OPENSSL_EC_BIN_PT_COMP defined to | |
12371 | enable it). | |
12372 | ||
12373 | As binary polynomials are represented as BIGNUMs, various members | |
12374 | of the EC_GROUP and EC_POINT data structures can be shared | |
12375 | between the implementations for prime fields and binary fields; | |
257e9d03 RS |
12376 | the above `..._GF2m functions` (except for EX_GROUP_new_curve_GF2m) |
12377 | are essentially identical to their `..._GFp` counterparts. | |
12378 | (For simplicity, the `..._GFp` prefix has been dropped from | |
5f8e6c50 DMSP |
12379 | various internal method names.) |
12380 | ||
12381 | An internal 'field_div' method (similar to 'field_mul' and | |
12382 | 'field_sqr') has been added; this is used only for binary fields. | |
12383 | ||
257e9d03 | 12384 | *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* |
5f8e6c50 DMSP |
12385 | |
12386 | * Optionally dispatch EC_POINT_mul(), EC_POINT_precompute_mult() | |
12387 | through methods ('mul', 'precompute_mult'). | |
12388 | ||
12389 | The generic implementations (now internally called 'ec_wNAF_mul' | |
12390 | and 'ec_wNAF_precomputed_mult') remain the default if these | |
12391 | methods are undefined. | |
12392 | ||
257e9d03 | 12393 | *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* |
5f8e6c50 DMSP |
12394 | |
12395 | * New function EC_GROUP_get_degree, which is defined through | |
12396 | EC_METHOD. For curves over prime fields, this returns the bit | |
12397 | length of the modulus. | |
12398 | ||
257e9d03 | 12399 | *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* |
5f8e6c50 DMSP |
12400 | |
12401 | * New functions EC_GROUP_dup, EC_POINT_dup. | |
12402 | (These simply call ..._new and ..._copy). | |
12403 | ||
257e9d03 | 12404 | *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* |
5f8e6c50 DMSP |
12405 | |
12406 | * Add binary polynomial arithmetic software in crypto/bn/bn_gf2m.c. | |
12407 | Polynomials are represented as BIGNUMs (where the sign bit is not | |
12408 | used) in the following functions [macros]: | |
12409 | ||
12410 | BN_GF2m_add | |
12411 | BN_GF2m_sub [= BN_GF2m_add] | |
12412 | BN_GF2m_mod [wrapper for BN_GF2m_mod_arr] | |
12413 | BN_GF2m_mod_mul [wrapper for BN_GF2m_mod_mul_arr] | |
12414 | BN_GF2m_mod_sqr [wrapper for BN_GF2m_mod_sqr_arr] | |
12415 | BN_GF2m_mod_inv | |
12416 | BN_GF2m_mod_exp [wrapper for BN_GF2m_mod_exp_arr] | |
12417 | BN_GF2m_mod_sqrt [wrapper for BN_GF2m_mod_sqrt_arr] | |
12418 | BN_GF2m_mod_solve_quad [wrapper for BN_GF2m_mod_solve_quad_arr] | |
12419 | BN_GF2m_cmp [= BN_ucmp] | |
12420 | ||
12421 | (Note that only the 'mod' functions are actually for fields GF(2^m). | |
12422 | BN_GF2m_add() is misnomer, but this is for the sake of consistency.) | |
12423 | ||
12424 | For some functions, an the irreducible polynomial defining a | |
12425 | field can be given as an 'unsigned int[]' with strictly | |
12426 | decreasing elements giving the indices of those bits that are set; | |
12427 | i.e., p[] represents the polynomial | |
12428 | f(t) = t^p[0] + t^p[1] + ... + t^p[k] | |
12429 | where | |
12430 | p[0] > p[1] > ... > p[k] = 0. | |
12431 | This applies to the following functions: | |
12432 | ||
12433 | BN_GF2m_mod_arr | |
12434 | BN_GF2m_mod_mul_arr | |
12435 | BN_GF2m_mod_sqr_arr | |
12436 | BN_GF2m_mod_inv_arr [wrapper for BN_GF2m_mod_inv] | |
12437 | BN_GF2m_mod_div_arr [wrapper for BN_GF2m_mod_div] | |
12438 | BN_GF2m_mod_exp_arr | |
12439 | BN_GF2m_mod_sqrt_arr | |
12440 | BN_GF2m_mod_solve_quad_arr | |
12441 | BN_GF2m_poly2arr | |
12442 | BN_GF2m_arr2poly | |
12443 | ||
12444 | Conversion can be performed by the following functions: | |
12445 | ||
12446 | BN_GF2m_poly2arr | |
12447 | BN_GF2m_arr2poly | |
12448 | ||
12449 | bntest.c has additional tests for binary polynomial arithmetic. | |
12450 | ||
12451 | Two implementations for BN_GF2m_mod_div() are available. | |
12452 | The default algorithm simply uses BN_GF2m_mod_inv() and | |
12453 | BN_GF2m_mod_mul(). The alternative algorithm is compiled in only | |
12454 | if OPENSSL_SUN_GF2M_DIV is defined (patent pending; read the | |
12455 | copyright notice in crypto/bn/bn_gf2m.c before enabling it). | |
12456 | ||
257e9d03 | 12457 | *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* |
5f8e6c50 DMSP |
12458 | |
12459 | * Add new error code 'ERR_R_DISABLED' that can be used when some | |
12460 | functionality is disabled at compile-time. | |
12461 | ||
12462 | *Douglas Stebila <douglas.stebila@sun.com>* | |
12463 | ||
12464 | * Change default behaviour of 'openssl asn1parse' so that more | |
12465 | information is visible when viewing, e.g., a certificate: | |
12466 | ||
12467 | Modify asn1_parse2 (crypto/asn1/asn1_par.c) so that in non-'dump' | |
12468 | mode the content of non-printable OCTET STRINGs is output in a | |
12469 | style similar to INTEGERs, but with '[HEX DUMP]' prepended to | |
12470 | avoid the appearance of a printable string. | |
12471 | ||
12472 | *Nils Larsch <nla@trustcenter.de>* | |
12473 | ||
12474 | * Add 'asn1_flag' and 'asn1_form' member to EC_GROUP with access | |
12475 | functions | |
12476 | EC_GROUP_set_asn1_flag() | |
12477 | EC_GROUP_get_asn1_flag() | |
12478 | EC_GROUP_set_point_conversion_form() | |
12479 | EC_GROUP_get_point_conversion_form() | |
12480 | These control ASN1 encoding details: | |
12481 | - Curves (i.e., groups) are encoded explicitly unless asn1_flag | |
12482 | has been set to OPENSSL_EC_NAMED_CURVE. | |
12483 | - Points are encoded in uncompressed form by default; options for | |
12484 | asn1_for are as for point2oct, namely | |
12485 | POINT_CONVERSION_COMPRESSED | |
12486 | POINT_CONVERSION_UNCOMPRESSED | |
12487 | POINT_CONVERSION_HYBRID | |
12488 | ||
12489 | Also add 'seed' and 'seed_len' members to EC_GROUP with access | |
12490 | functions | |
12491 | EC_GROUP_set_seed() | |
12492 | EC_GROUP_get0_seed() | |
12493 | EC_GROUP_get_seed_len() | |
12494 | This is used only for ASN1 purposes (so far). | |
12495 | ||
12496 | *Nils Larsch <nla@trustcenter.de>* | |
12497 | ||
12498 | * Add 'field_type' member to EC_METHOD, which holds the NID | |
12499 | of the appropriate field type OID. The new function | |
12500 | EC_METHOD_get_field_type() returns this value. | |
12501 | ||
12502 | *Nils Larsch <nla@trustcenter.de>* | |
12503 | ||
12504 | * Add functions | |
12505 | EC_POINT_point2bn() | |
12506 | EC_POINT_bn2point() | |
12507 | EC_POINT_point2hex() | |
12508 | EC_POINT_hex2point() | |
12509 | providing useful interfaces to EC_POINT_point2oct() and | |
12510 | EC_POINT_oct2point(). | |
12511 | ||
12512 | *Nils Larsch <nla@trustcenter.de>* | |
12513 | ||
12514 | * Change internals of the EC library so that the functions | |
12515 | EC_GROUP_set_generator() | |
12516 | EC_GROUP_get_generator() | |
12517 | EC_GROUP_get_order() | |
12518 | EC_GROUP_get_cofactor() | |
12519 | are implemented directly in crypto/ec/ec_lib.c and not dispatched | |
12520 | to methods, which would lead to unnecessary code duplication when | |
12521 | adding different types of curves. | |
12522 | ||
12523 | *Nils Larsch <nla@trustcenter.de> with input by Bodo Moeller* | |
12524 | ||
12525 | * Implement compute_wNAF (crypto/ec/ec_mult.c) without BIGNUM | |
12526 | arithmetic, and such that modified wNAFs are generated | |
12527 | (which avoid length expansion in many cases). | |
12528 | ||
12529 | *Bodo Moeller* | |
12530 | ||
12531 | * Add a function EC_GROUP_check_discriminant() (defined via | |
12532 | EC_METHOD) that verifies that the curve discriminant is non-zero. | |
12533 | ||
12534 | Add a function EC_GROUP_check() that makes some sanity tests | |
12535 | on a EC_GROUP, its generator and order. This includes | |
12536 | EC_GROUP_check_discriminant(). | |
12537 | ||
12538 | *Nils Larsch <nla@trustcenter.de>* | |
12539 | ||
12540 | * Add ECDSA in new directory crypto/ecdsa/. | |
12541 | ||
12542 | Add applications 'openssl ecparam' and 'openssl ecdsa' | |
12543 | (these are based on 'openssl dsaparam' and 'openssl dsa'). | |
12544 | ||
12545 | ECDSA support is also included in various other files across the | |
12546 | library. Most notably, | |
12547 | - 'openssl req' now has a '-newkey ecdsa:file' option; | |
12548 | - EVP_PKCS82PKEY (crypto/evp/evp_pkey.c) now can handle ECDSA; | |
12549 | - X509_PUBKEY_get (crypto/asn1/x_pubkey.c) and | |
12550 | d2i_PublicKey (crypto/asn1/d2i_pu.c) have been modified to make | |
12551 | them suitable for ECDSA where domain parameters must be | |
12552 | extracted before the specific public key; | |
12553 | - ECDSA engine support has been added. | |
12554 | ||
12555 | *Nils Larsch <nla@trustcenter.de>* | |
12556 | ||
12557 | * Include some named elliptic curves, and add OIDs from X9.62, | |
12558 | SECG, and WAP/WTLS. Each curve can be obtained from the new | |
12559 | function | |
12560 | EC_GROUP_new_by_curve_name(), | |
12561 | and the list of available named curves can be obtained with | |
12562 | EC_get_builtin_curves(). | |
12563 | Also add a 'curve_name' member to EC_GROUP objects, which can be | |
12564 | accessed via | |
12565 | EC_GROUP_set_curve_name() | |
12566 | EC_GROUP_get_curve_name() | |
12567 | ||
12568 | *Nils Larsch <larsch@trustcenter.de, Bodo Moeller* | |
12569 | ||
12570 | * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there | |
12571 | was actually never needed) and in BN_mul(). The removal in BN_mul() | |
12572 | required a small change in bn_mul_part_recursive() and the addition | |
12573 | of the functions bn_cmp_part_words(), bn_sub_part_words() and | |
12574 | bn_add_part_words(), which do the same thing as bn_cmp_words(), | |
12575 | bn_sub_words() and bn_add_words() except they take arrays with | |
12576 | differing sizes. | |
12577 | ||
12578 | *Richard Levitte* | |
12579 | ||
257e9d03 | 12580 | ### Changes between 0.9.7l and 0.9.7m [23 Feb 2007] |
5f8e6c50 DMSP |
12581 | |
12582 | * Cleanse PEM buffers before freeing them since they may contain | |
12583 | sensitive data. | |
12584 | ||
12585 | *Benjamin Bennett <ben@psc.edu>* | |
12586 | ||
12587 | * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that | |
12588 | a ciphersuite string such as "DEFAULT:RSA" cannot enable | |
12589 | authentication-only ciphersuites. | |
12590 | ||
12591 | *Bodo Moeller* | |
12592 | ||
12593 | * Since AES128 and AES256 share a single mask bit in the logic of | |
12594 | ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a | |
12595 | kludge to work properly if AES128 is available and AES256 isn't. | |
12596 | ||
12597 | *Victor Duchovni* | |
12598 | ||
12599 | * Expand security boundary to match 1.1.1 module. | |
12600 | ||
12601 | *Steve Henson* | |
12602 | ||
12603 | * Remove redundant features: hash file source, editing of test vectors | |
12604 | modify fipsld to use external fips_premain.c signature. | |
12605 | ||
12606 | *Steve Henson* | |
12607 | ||
12608 | * New perl script mkfipsscr.pl to create shell scripts or batch files to | |
12609 | run algorithm test programs. | |
12610 | ||
12611 | *Steve Henson* | |
12612 | ||
12613 | * Make algorithm test programs more tolerant of whitespace. | |
12614 | ||
12615 | *Steve Henson* | |
12616 | ||
12617 | * Have SSL/TLS server implementation tolerate "mismatched" record | |
12618 | protocol version while receiving ClientHello even if the | |
12619 | ClientHello is fragmented. (The server can't insist on the | |
12620 | particular protocol version it has chosen before the ServerHello | |
12621 | message has informed the client about his choice.) | |
12622 | ||
12623 | *Bodo Moeller* | |
12624 | ||
12625 | * Load error codes if they are not already present instead of using a | |
12626 | static variable. This allows them to be cleanly unloaded and reloaded. | |
12627 | ||
12628 | *Steve Henson* | |
12629 | ||
257e9d03 | 12630 | ### Changes between 0.9.7k and 0.9.7l [28 Sep 2006] |
5f8e6c50 DMSP |
12631 | |
12632 | * Introduce limits to prevent malicious keys being able to | |
d8dc8538 | 12633 | cause a denial of service. ([CVE-2006-2940]) |
5f8e6c50 DMSP |
12634 | |
12635 | *Steve Henson, Bodo Moeller* | |
12636 | ||
12637 | * Fix ASN.1 parsing of certain invalid structures that can result | |
d8dc8538 | 12638 | in a denial of service. ([CVE-2006-2937]) [Steve Henson] |
5f8e6c50 DMSP |
12639 | |
12640 | * Fix buffer overflow in SSL_get_shared_ciphers() function. | |
d8dc8538 | 12641 | ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team] |
5f8e6c50 DMSP |
12642 | |
12643 | * Fix SSL client code which could crash if connecting to a | |
d8dc8538 | 12644 | malicious SSLv2 server. ([CVE-2006-4343]) |
5f8e6c50 DMSP |
12645 | |
12646 | *Tavis Ormandy and Will Drewry, Google Security Team* | |
12647 | ||
12648 | * Change ciphersuite string processing so that an explicit | |
12649 | ciphersuite selects this one ciphersuite (so that "AES256-SHA" | |
12650 | will no longer include "AES128-SHA"), and any other similar | |
12651 | ciphersuite (same bitmap) from *other* protocol versions (so that | |
12652 | "RC4-MD5" will still include both the SSL 2.0 ciphersuite and the | |
12653 | SSL 3.0/TLS 1.0 ciphersuite). This is a backport combining | |
12654 | changes from 0.9.8b and 0.9.8d. | |
12655 | ||
12656 | *Bodo Moeller* | |
12657 | ||
257e9d03 | 12658 | ### Changes between 0.9.7j and 0.9.7k [05 Sep 2006] |
5f8e6c50 DMSP |
12659 | |
12660 | * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher | |
d8dc8538 | 12661 | ([CVE-2006-4339]) [Ben Laurie and Google Security Team] |
5f8e6c50 DMSP |
12662 | |
12663 | * Change the Unix randomness entropy gathering to use poll() when | |
12664 | possible instead of select(), since the latter has some | |
12665 | undesirable limitations. | |
12666 | ||
12667 | *Darryl Miles via Richard Levitte and Bodo Moeller* | |
12668 | ||
12669 | * Disable rogue ciphersuites: | |
12670 | ||
257e9d03 RS |
12671 | - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5") |
12672 | - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5") | |
12673 | - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5") | |
5f8e6c50 DMSP |
12674 | |
12675 | The latter two were purportedly from | |
12676 | draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really | |
12677 | appear there. | |
12678 | ||
12679 | Also deactivate the remaining ciphersuites from | |
12680 | draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as | |
12681 | unofficial, and the ID has long expired. | |
12682 | ||
12683 | *Bodo Moeller* | |
12684 | ||
12685 | * Fix RSA blinding Heisenbug (problems sometimes occurred on | |
12686 | dual-core machines) and other potential thread-safety issues. | |
12687 | ||
12688 | *Bodo Moeller* | |
12689 | ||
257e9d03 | 12690 | ### Changes between 0.9.7i and 0.9.7j [04 May 2006] |
5f8e6c50 DMSP |
12691 | |
12692 | * Adapt fipsld and the build system to link against the validated FIPS | |
12693 | module in FIPS mode. | |
12694 | ||
12695 | *Steve Henson* | |
12696 | ||
12697 | * Fixes for VC++ 2005 build under Windows. | |
12698 | ||
12699 | *Steve Henson* | |
12700 | ||
12701 | * Add new Windows build target VC-32-GMAKE for VC++. This uses GNU make | |
12702 | from a Windows bash shell such as MSYS. It is autodetected from the | |
12703 | "config" script when run from a VC++ environment. Modify standard VC++ | |
12704 | build to use fipscanister.o from the GNU make build. | |
12705 | ||
12706 | *Steve Henson* | |
12707 | ||
257e9d03 | 12708 | ### Changes between 0.9.7h and 0.9.7i [14 Oct 2005] |
5f8e6c50 DMSP |
12709 | |
12710 | * Wrapped the definition of EVP_MAX_MD_SIZE in a #ifdef OPENSSL_FIPS. | |
12711 | The value now differs depending on if you build for FIPS or not. | |
12712 | BEWARE! A program linked with a shared FIPSed libcrypto can't be | |
12713 | safely run with a non-FIPSed libcrypto, as it may crash because of | |
12714 | the difference induced by this change. | |
12715 | ||
12716 | *Andy Polyakov* | |
12717 | ||
257e9d03 | 12718 | ### Changes between 0.9.7g and 0.9.7h [11 Oct 2005] |
5f8e6c50 DMSP |
12719 | |
12720 | * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING | |
12721 | (part of SSL_OP_ALL). This option used to disable the | |
12722 | countermeasure against man-in-the-middle protocol-version | |
12723 | rollback in the SSL 2.0 server implementation, which is a bad | |
d8dc8538 | 12724 | idea. ([CVE-2005-2969]) |
5f8e6c50 DMSP |
12725 | |
12726 | *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center | |
12727 | for Information Security, National Institute of Advanced Industrial | |
257e9d03 | 12728 | Science and Technology [AIST, Japan)]* |
5f8e6c50 DMSP |
12729 | |
12730 | * Minimal support for X9.31 signatures and PSS padding modes. This is | |
12731 | mainly for FIPS compliance and not fully integrated at this stage. | |
12732 | ||
12733 | *Steve Henson* | |
12734 | ||
12735 | * For DSA signing, unless DSA_FLAG_NO_EXP_CONSTTIME is set, perform | |
12736 | the exponentiation using a fixed-length exponent. (Otherwise, | |
12737 | the information leaked through timing could expose the secret key | |
12738 | after many signatures; cf. Bleichenbacher's attack on DSA with | |
12739 | biased k.) | |
12740 | ||
12741 | *Bodo Moeller* | |
12742 | ||
12743 | * Make a new fixed-window mod_exp implementation the default for | |
12744 | RSA, DSA, and DH private-key operations so that the sequence of | |
12745 | squares and multiplies and the memory access pattern are | |
12746 | independent of the particular secret key. This will mitigate | |
12747 | cache-timing and potential related attacks. | |
12748 | ||
12749 | BN_mod_exp_mont_consttime() is the new exponentiation implementation, | |
12750 | and this is automatically used by BN_mod_exp_mont() if the new flag | |
12751 | BN_FLG_EXP_CONSTTIME is set for the exponent. RSA, DSA, and DH | |
12752 | will use this BN flag for private exponents unless the flag | |
12753 | RSA_FLAG_NO_EXP_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME, or | |
12754 | DH_FLAG_NO_EXP_CONSTTIME, respectively, is set. | |
12755 | ||
5f8e6c50 DMSP |
12756 | *Matthew D Wood (Intel Corp), with some changes by Bodo Moeller* |
12757 | ||
12758 | * Change the client implementation for SSLv23_method() and | |
12759 | SSLv23_client_method() so that is uses the SSL 3.0/TLS 1.0 | |
12760 | Client Hello message format if the SSL_OP_NO_SSLv2 option is set. | |
12761 | (Previously, the SSL 2.0 backwards compatible Client Hello | |
12762 | message format would be used even with SSL_OP_NO_SSLv2.) | |
12763 | ||
12764 | *Bodo Moeller* | |
12765 | ||
12766 | * Add support for smime-type MIME parameter in S/MIME messages which some | |
12767 | clients need. | |
12768 | ||
12769 | *Steve Henson* | |
12770 | ||
12771 | * New function BN_MONT_CTX_set_locked() to set montgomery parameters in | |
12772 | a threadsafe manner. Modify rsa code to use new function and add calls | |
12773 | to dsa and dh code (which had race conditions before). | |
12774 | ||
12775 | *Steve Henson* | |
12776 | ||
12777 | * Include the fixed error library code in the C error file definitions | |
12778 | instead of fixing them up at runtime. This keeps the error code | |
12779 | structures constant. | |
12780 | ||
12781 | *Steve Henson* | |
12782 | ||
257e9d03 | 12783 | ### Changes between 0.9.7f and 0.9.7g [11 Apr 2005] |
5f8e6c50 DMSP |
12784 | |
12785 | [NB: OpenSSL 0.9.7h and later 0.9.7 patch levels were released after | |
12786 | OpenSSL 0.9.8.] | |
12787 | ||
12788 | * Fixes for newer kerberos headers. NB: the casts are needed because | |
12789 | the 'length' field is signed on one version and unsigned on another | |
12790 | with no (?) obvious way to tell the difference, without these VC++ | |
12791 | complains. Also the "definition" of FAR (blank) is no longer included | |
12792 | nor is the error ENOMEM. KRB5_PRIVATE has to be set to 1 to pick up | |
12793 | some needed definitions. | |
12794 | ||
12795 | *Steve Henson* | |
12796 | ||
12797 | * Undo Cygwin change. | |
12798 | ||
12799 | *Ulf Möller* | |
12800 | ||
12801 | * Added support for proxy certificates according to RFC 3820. | |
12802 | Because they may be a security thread to unaware applications, | |
12803 | they must be explicitly allowed in run-time. See | |
12804 | docs/HOWTO/proxy_certificates.txt for further information. | |
12805 | ||
12806 | *Richard Levitte* | |
12807 | ||
257e9d03 | 12808 | ### Changes between 0.9.7e and 0.9.7f [22 Mar 2005] |
5f8e6c50 DMSP |
12809 | |
12810 | * Use (SSL_RANDOM_VALUE - 4) bytes of pseudo random data when generating | |
12811 | server and client random values. Previously | |
12812 | (SSL_RANDOM_VALUE - sizeof(time_t)) would be used which would result in | |
12813 | less random data when sizeof(time_t) > 4 (some 64 bit platforms). | |
12814 | ||
12815 | This change has negligible security impact because: | |
12816 | ||
12817 | 1. Server and client random values still have 24 bytes of pseudo random | |
12818 | data. | |
12819 | ||
12820 | 2. Server and client random values are sent in the clear in the initial | |
12821 | handshake. | |
12822 | ||
12823 | 3. The master secret is derived using the premaster secret (48 bytes in | |
12824 | size for static RSA ciphersuites) as well as client server and random | |
12825 | values. | |
12826 | ||
12827 | The OpenSSL team would like to thank the UK NISCC for bringing this issue | |
12828 | to our attention. | |
12829 | ||
12830 | *Stephen Henson, reported by UK NISCC* | |
12831 | ||
12832 | * Use Windows randomness collection on Cygwin. | |
12833 | ||
12834 | *Ulf Möller* | |
12835 | ||
12836 | * Fix hang in EGD/PRNGD query when communication socket is closed | |
12837 | prematurely by EGD/PRNGD. | |
12838 | ||
12839 | *Darren Tucker <dtucker@zip.com.au> via Lutz Jänicke, resolves #1014* | |
12840 | ||
12841 | * Prompt for pass phrases when appropriate for PKCS12 input format. | |
12842 | ||
12843 | *Steve Henson* | |
12844 | ||
12845 | * Back-port of selected performance improvements from development | |
12846 | branch, as well as improved support for PowerPC platforms. | |
12847 | ||
12848 | *Andy Polyakov* | |
12849 | ||
12850 | * Add lots of checks for memory allocation failure, error codes to indicate | |
12851 | failure and freeing up memory if a failure occurs. | |
12852 | ||
12853 | *Nauticus Networks SSL Team <openssl@nauticusnet.com>, Steve Henson* | |
12854 | ||
12855 | * Add new -passin argument to dgst. | |
12856 | ||
12857 | *Steve Henson* | |
12858 | ||
12859 | * Perform some character comparisons of different types in X509_NAME_cmp: | |
12860 | this is needed for some certificates that re-encode DNs into UTF8Strings | |
12861 | (in violation of RFC3280) and can't or won't issue name rollover | |
12862 | certificates. | |
12863 | ||
12864 | *Steve Henson* | |
12865 | ||
12866 | * Make an explicit check during certificate validation to see that | |
12867 | the CA setting in each certificate on the chain is correct. As a | |
12868 | side effect always do the following basic checks on extensions, | |
12869 | not just when there's an associated purpose to the check: | |
12870 | ||
257e9d03 RS |
12871 | - if there is an unhandled critical extension (unless the user |
12872 | has chosen to ignore this fault) | |
12873 | - if the path length has been exceeded (if one is set at all) | |
12874 | - that certain extensions fit the associated purpose (if one has | |
12875 | been given) | |
5f8e6c50 DMSP |
12876 | |
12877 | *Richard Levitte* | |
12878 | ||
257e9d03 | 12879 | ### Changes between 0.9.7d and 0.9.7e [25 Oct 2004] |
5f8e6c50 DMSP |
12880 | |
12881 | * Avoid a race condition when CRLs are checked in a multi threaded | |
12882 | environment. This would happen due to the reordering of the revoked | |
12883 | entries during signature checking and serial number lookup. Now the | |
12884 | encoding is cached and the serial number sort performed under a lock. | |
12885 | Add new STACK function sk_is_sorted(). | |
12886 | ||
12887 | *Steve Henson* | |
12888 | ||
12889 | * Add Delta CRL to the extension code. | |
12890 | ||
12891 | *Steve Henson* | |
12892 | ||
12893 | * Various fixes to s3_pkt.c so alerts are sent properly. | |
12894 | ||
12895 | *David Holmes <d.holmes@f5.com>* | |
12896 | ||
12897 | * Reduce the chances of duplicate issuer name and serial numbers (in | |
12898 | violation of RFC3280) using the OpenSSL certificate creation utilities. | |
12899 | This is done by creating a random 64 bit value for the initial serial | |
12900 | number when a serial number file is created or when a self signed | |
12901 | certificate is created using 'openssl req -x509'. The initial serial | |
12902 | number file is created using 'openssl x509 -next_serial' in CA.pl | |
12903 | rather than being initialized to 1. | |
12904 | ||
12905 | *Steve Henson* | |
12906 | ||
257e9d03 | 12907 | ### Changes between 0.9.7c and 0.9.7d [17 Mar 2004] |
5f8e6c50 DMSP |
12908 | |
12909 | * Fix null-pointer assignment in do_change_cipher_spec() revealed | |
d8dc8538 | 12910 | by using the Codenomicon TLS Test Tool ([CVE-2004-0079]) |
5f8e6c50 DMSP |
12911 | |
12912 | *Joe Orton, Steve Henson* | |
12913 | ||
12914 | * Fix flaw in SSL/TLS handshaking when using Kerberos ciphersuites | |
d8dc8538 | 12915 | ([CVE-2004-0112]) |
5f8e6c50 DMSP |
12916 | |
12917 | *Joe Orton, Steve Henson* | |
12918 | ||
12919 | * Make it possible to have multiple active certificates with the same | |
12920 | subject in the CA index file. This is done only if the keyword | |
12921 | 'unique_subject' is set to 'no' in the main CA section (default | |
12922 | if 'CA_default') of the configuration file. The value is saved | |
12923 | with the database itself in a separate index attribute file, | |
12924 | named like the index file with '.attr' appended to the name. | |
12925 | ||
12926 | *Richard Levitte* | |
12927 | ||
12928 | * X509 verify fixes. Disable broken certificate workarounds when | |
12929 | X509_V_FLAGS_X509_STRICT is set. Check CRL issuer has cRLSign set if | |
12930 | keyUsage extension present. Don't accept CRLs with unhandled critical | |
12931 | extensions: since verify currently doesn't process CRL extensions this | |
12932 | rejects a CRL with *any* critical extensions. Add new verify error codes | |
12933 | for these cases. | |
12934 | ||
12935 | *Steve Henson* | |
12936 | ||
12937 | * When creating an OCSP nonce use an OCTET STRING inside the extnValue. | |
12938 | A clarification of RFC2560 will require the use of OCTET STRINGs and | |
12939 | some implementations cannot handle the current raw format. Since OpenSSL | |
12940 | copies and compares OCSP nonces as opaque blobs without any attempt at | |
12941 | parsing them this should not create any compatibility issues. | |
12942 | ||
12943 | *Steve Henson* | |
12944 | ||
12945 | * New md flag EVP_MD_CTX_FLAG_REUSE this allows md_data to be reused when | |
12946 | calling EVP_MD_CTX_copy_ex() to avoid calling OPENSSL_malloc(). Without | |
12947 | this HMAC (and other) operations are several times slower than OpenSSL | |
12948 | < 0.9.7. | |
12949 | ||
12950 | *Steve Henson* | |
12951 | ||
12952 | * Print out GeneralizedTime and UTCTime in ASN1_STRING_print_ex(). | |
12953 | ||
12954 | *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>* | |
12955 | ||
12956 | * Use the correct content when signing type "other". | |
12957 | ||
12958 | *Steve Henson* | |
12959 | ||
257e9d03 | 12960 | ### Changes between 0.9.7b and 0.9.7c [30 Sep 2003] |
5f8e6c50 DMSP |
12961 | |
12962 | * Fix various bugs revealed by running the NISCC test suite: | |
12963 | ||
12964 | Stop out of bounds reads in the ASN1 code when presented with | |
12965 | invalid tags (CVE-2003-0543 and CVE-2003-0544). | |
12966 | ||
d8dc8538 | 12967 | Free up ASN1_TYPE correctly if ANY type is invalid ([CVE-2003-0545]). |
5f8e6c50 DMSP |
12968 | |
12969 | If verify callback ignores invalid public key errors don't try to check | |
12970 | certificate signature with the NULL public key. | |
12971 | ||
5f8e6c50 DMSP |
12972 | *Steve Henson* |
12973 | ||
12974 | * New -ignore_err option in ocsp application to stop the server | |
12975 | exiting on the first error in a request. | |
12976 | ||
12977 | *Steve Henson* | |
12978 | ||
12979 | * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate | |
12980 | if the server requested one: as stated in TLS 1.0 and SSL 3.0 | |
12981 | specifications. | |
12982 | ||
12983 | *Steve Henson* | |
12984 | ||
12985 | * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional | |
12986 | extra data after the compression methods not only for TLS 1.0 | |
12987 | but also for SSL 3.0 (as required by the specification). | |
12988 | ||
12989 | *Bodo Moeller; problem pointed out by Matthias Loepfe* | |
12990 | ||
12991 | * Change X509_certificate_type() to mark the key as exported/exportable | |
12992 | when it's 512 *bits* long, not 512 bytes. | |
12993 | ||
12994 | *Richard Levitte* | |
12995 | ||
12996 | * Change AES_cbc_encrypt() so it outputs exact multiple of | |
12997 | blocks during encryption. | |
12998 | ||
12999 | *Richard Levitte* | |
13000 | ||
13001 | * Various fixes to base64 BIO and non blocking I/O. On write | |
13002 | flushes were not handled properly if the BIO retried. On read | |
13003 | data was not being buffered properly and had various logic bugs. | |
13004 | This also affects blocking I/O when the data being decoded is a | |
13005 | certain size. | |
13006 | ||
13007 | *Steve Henson* | |
13008 | ||
13009 | * Various S/MIME bugfixes and compatibility changes: | |
13010 | output correct application/pkcs7 MIME type if | |
13011 | PKCS7_NOOLDMIMETYPE is set. Tolerate some broken signatures. | |
13012 | Output CR+LF for EOL if PKCS7_CRLFEOL is set (this makes opening | |
13013 | of files as .eml work). Correctly handle very long lines in MIME | |
13014 | parser. | |
13015 | ||
13016 | *Steve Henson* | |
13017 | ||
257e9d03 | 13018 | ### Changes between 0.9.7a and 0.9.7b [10 Apr 2003] |
5f8e6c50 DMSP |
13019 | |
13020 | * Countermeasure against the Klima-Pokorny-Rosa extension of | |
13021 | Bleichbacher's attack on PKCS #1 v1.5 padding: treat | |
13022 | a protocol version number mismatch like a decryption error | |
13023 | in ssl3_get_client_key_exchange (ssl/s3_srvr.c). | |
13024 | ||
13025 | *Bodo Moeller* | |
13026 | ||
13027 | * Turn on RSA blinding by default in the default implementation | |
13028 | to avoid a timing attack. Applications that don't want it can call | |
13029 | RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING. | |
13030 | They would be ill-advised to do so in most cases. | |
13031 | ||
13032 | *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller* | |
13033 | ||
13034 | * Change RSA blinding code so that it works when the PRNG is not | |
13035 | seeded (in this case, the secret RSA exponent is abused as | |
13036 | an unpredictable seed -- if it is not unpredictable, there | |
13037 | is no point in blinding anyway). Make RSA blinding thread-safe | |
13038 | by remembering the creator's thread ID in rsa->blinding and | |
13039 | having all other threads use local one-time blinding factors | |
13040 | (this requires more computation than sharing rsa->blinding, but | |
13041 | avoids excessive locking; and if an RSA object is not shared | |
13042 | between threads, blinding will still be very fast). | |
13043 | ||
13044 | *Bodo Moeller* | |
13045 | ||
13046 | * Fixed a typo bug that would cause ENGINE_set_default() to set an | |
13047 | ENGINE as defaults for all supported algorithms irrespective of | |
13048 | the 'flags' parameter. 'flags' is now honoured, so applications | |
13049 | should make sure they are passing it correctly. | |
13050 | ||
13051 | *Geoff Thorpe* | |
13052 | ||
13053 | * Target "mingw" now allows native Windows code to be generated in | |
13054 | the Cygwin environment as well as with the MinGW compiler. | |
13055 | ||
13056 | *Ulf Moeller* | |
13057 | ||
257e9d03 | 13058 | ### Changes between 0.9.7 and 0.9.7a [19 Feb 2003] |
5f8e6c50 DMSP |
13059 | |
13060 | * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked | |
13061 | via timing by performing a MAC computation even if incorrect | |
13062 | block cipher padding has been found. This is a countermeasure | |
13063 | against active attacks where the attacker has to distinguish | |
d8dc8538 | 13064 | between bad padding and a MAC verification error. ([CVE-2003-0078]) |
5f8e6c50 DMSP |
13065 | |
13066 | *Bodo Moeller; problem pointed out by Brice Canvel (EPFL), | |
13067 | Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and | |
13068 | Martin Vuagnoux (EPFL, Ilion)* | |
13069 | ||
13070 | * Make the no-err option work as intended. The intention with no-err | |
13071 | is not to have the whole error stack handling routines removed from | |
13072 | libcrypto, it's only intended to remove all the function name and | |
13073 | reason texts, thereby removing some of the footprint that may not | |
13074 | be interesting if those errors aren't displayed anyway. | |
13075 | ||
13076 | NOTE: it's still possible for any application or module to have its | |
13077 | own set of error texts inserted. The routines are there, just not | |
13078 | used by default when no-err is given. | |
13079 | ||
13080 | *Richard Levitte* | |
13081 | ||
13082 | * Add support for FreeBSD on IA64. | |
13083 | ||
13084 | *dirk.meyer@dinoex.sub.org via Richard Levitte, resolves #454* | |
13085 | ||
13086 | * Adjust DES_cbc_cksum() so it returns the same value as the MIT | |
13087 | Kerberos function mit_des_cbc_cksum(). Before this change, | |
13088 | the value returned by DES_cbc_cksum() was like the one from | |
13089 | mit_des_cbc_cksum(), except the bytes were swapped. | |
13090 | ||
13091 | *Kevin Greaney <Kevin.Greaney@hp.com> and Richard Levitte* | |
13092 | ||
13093 | * Allow an application to disable the automatic SSL chain building. | |
13094 | Before this a rather primitive chain build was always performed in | |
13095 | ssl3_output_cert_chain(): an application had no way to send the | |
13096 | correct chain if the automatic operation produced an incorrect result. | |
13097 | ||
13098 | Now the chain builder is disabled if either: | |
13099 | ||
13100 | 1. Extra certificates are added via SSL_CTX_add_extra_chain_cert(). | |
13101 | ||
13102 | 2. The mode flag SSL_MODE_NO_AUTO_CHAIN is set. | |
13103 | ||
13104 | The reasoning behind this is that an application would not want the | |
13105 | auto chain building to take place if extra chain certificates are | |
13106 | present and it might also want a means of sending no additional | |
13107 | certificates (for example the chain has two certificates and the | |
13108 | root is omitted). | |
13109 | ||
13110 | *Steve Henson* | |
13111 | ||
13112 | * Add the possibility to build without the ENGINE framework. | |
13113 | ||
13114 | *Steven Reddie <smr@essemer.com.au> via Richard Levitte* | |
13115 | ||
13116 | * Under Win32 gmtime() can return NULL: check return value in | |
13117 | OPENSSL_gmtime(). Add error code for case where gmtime() fails. | |
13118 | ||
13119 | *Steve Henson* | |
13120 | ||
13121 | * DSA routines: under certain error conditions uninitialized BN objects | |
13122 | could be freed. Solution: make sure initialization is performed early | |
13123 | enough. (Reported and fix supplied by Ivan D Nestlerode <nestler@MIT.EDU>, | |
13124 | Nils Larsch <nla@trustcenter.de> via PR#459) | |
13125 | ||
13126 | *Lutz Jaenicke* | |
13127 | ||
13128 | * Another fix for SSLv2 session ID handling: the session ID was incorrectly | |
13129 | checked on reconnect on the client side, therefore session resumption | |
13130 | could still fail with a "ssl session id is different" error. This | |
13131 | behaviour is masked when SSL_OP_ALL is used due to | |
13132 | SSL_OP_MICROSOFT_SESS_ID_BUG being set. | |
13133 | Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as | |
13134 | followup to PR #377. | |
13135 | ||
13136 | *Lutz Jaenicke* | |
13137 | ||
13138 | * IA-32 assembler support enhancements: unified ELF targets, support | |
13139 | for SCO/Caldera platforms, fix for Cygwin shared build. | |
13140 | ||
13141 | *Andy Polyakov* | |
13142 | ||
13143 | * Add support for FreeBSD on sparc64. As a consequence, support for | |
13144 | FreeBSD on non-x86 processors is separate from x86 processors on | |
13145 | the config script, much like the NetBSD support. | |
13146 | ||
13147 | *Richard Levitte & Kris Kennaway <kris@obsecurity.org>* | |
13148 | ||
257e9d03 | 13149 | ### Changes between 0.9.6h and 0.9.7 [31 Dec 2002] |
5f8e6c50 DMSP |
13150 | |
13151 | [NB: OpenSSL 0.9.6i and later 0.9.6 patch levels were released after | |
13152 | OpenSSL 0.9.7.] | |
13153 | ||
13154 | * Fix session ID handling in SSLv2 client code: the SERVER FINISHED | |
13155 | code (06) was taken as the first octet of the session ID and the last | |
13156 | octet was ignored consequently. As a result SSLv2 client side session | |
13157 | caching could not have worked due to the session ID mismatch between | |
13158 | client and server. | |
13159 | Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as | |
13160 | PR #377. | |
13161 | ||
13162 | *Lutz Jaenicke* | |
13163 | ||
13164 | * Change the declaration of needed Kerberos libraries to use EX_LIBS | |
13165 | instead of the special (and badly supported) LIBKRB5. LIBKRB5 is | |
13166 | removed entirely. | |
13167 | ||
13168 | *Richard Levitte* | |
13169 | ||
13170 | * The hw_ncipher.c engine requires dynamic locks. Unfortunately, it | |
13171 | seems that in spite of existing for more than a year, many application | |
13172 | author have done nothing to provide the necessary callbacks, which | |
13173 | means that this particular engine will not work properly anywhere. | |
13174 | This is a very unfortunate situation which forces us, in the name | |
13175 | of usability, to give the hw_ncipher.c a static lock, which is part | |
13176 | of libcrypto. | |
13177 | NOTE: This is for the 0.9.7 series ONLY. This hack will never | |
13178 | appear in 0.9.8 or later. We EXPECT application authors to have | |
13179 | dealt properly with this when 0.9.8 is released (unless we actually | |
13180 | make such changes in the libcrypto locking code that changes will | |
13181 | have to be made anyway). | |
13182 | ||
13183 | *Richard Levitte* | |
13184 | ||
13185 | * In asn1_d2i_read_bio() repeatedly call BIO_read() until all content | |
13186 | octets have been read, EOF or an error occurs. Without this change | |
13187 | some truncated ASN1 structures will not produce an error. | |
13188 | ||
13189 | *Steve Henson* | |
13190 | ||
13191 | * Disable Heimdal support, since it hasn't been fully implemented. | |
13192 | Still give the possibility to force the use of Heimdal, but with | |
13193 | warnings and a request that patches get sent to openssl-dev. | |
13194 | ||
13195 | *Richard Levitte* | |
13196 | ||
13197 | * Add the VC-CE target, introduce the WINCE sysname, and add | |
13198 | INSTALL.WCE and appropriate conditionals to make it build. | |
13199 | ||
13200 | *Steven Reddie <smr@essemer.com.au> via Richard Levitte* | |
13201 | ||
13202 | * Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and | |
13203 | cygssl-x.y.z.dll, where x, y and z are the major, minor and | |
13204 | edit numbers of the version. | |
13205 | ||
13206 | *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte* | |
13207 | ||
13208 | * Introduce safe string copy and catenation functions | |
13209 | (BUF_strlcpy() and BUF_strlcat()). | |
13210 | ||
13211 | *Ben Laurie (CHATS) and Richard Levitte* | |
13212 | ||
13213 | * Avoid using fixed-size buffers for one-line DNs. | |
13214 | ||
13215 | *Ben Laurie (CHATS)* | |
13216 | ||
13217 | * Add BUF_MEM_grow_clean() to avoid information leakage when | |
13218 | resizing buffers containing secrets, and use where appropriate. | |
13219 | ||
13220 | *Ben Laurie (CHATS)* | |
13221 | ||
13222 | * Avoid using fixed size buffers for configuration file location. | |
13223 | ||
13224 | *Ben Laurie (CHATS)* | |
13225 | ||
13226 | * Avoid filename truncation for various CA files. | |
13227 | ||
13228 | *Ben Laurie (CHATS)* | |
13229 | ||
13230 | * Use sizeof in preference to magic numbers. | |
13231 | ||
13232 | *Ben Laurie (CHATS)* | |
13233 | ||
13234 | * Avoid filename truncation in cert requests. | |
13235 | ||
13236 | *Ben Laurie (CHATS)* | |
13237 | ||
13238 | * Add assertions to check for (supposedly impossible) buffer | |
13239 | overflows. | |
13240 | ||
13241 | *Ben Laurie (CHATS)* | |
13242 | ||
13243 | * Don't cache truncated DNS entries in the local cache (this could | |
13244 | potentially lead to a spoofing attack). | |
13245 | ||
13246 | *Ben Laurie (CHATS)* | |
13247 | ||
13248 | * Fix various buffers to be large enough for hex/decimal | |
13249 | representations in a platform independent manner. | |
13250 | ||
13251 | *Ben Laurie (CHATS)* | |
13252 | ||
13253 | * Add CRYPTO_realloc_clean() to avoid information leakage when | |
13254 | resizing buffers containing secrets, and use where appropriate. | |
13255 | ||
13256 | *Ben Laurie (CHATS)* | |
13257 | ||
13258 | * Add BIO_indent() to avoid much slightly worrying code to do | |
13259 | indents. | |
13260 | ||
13261 | *Ben Laurie (CHATS)* | |
13262 | ||
13263 | * Convert sprintf()/BIO_puts() to BIO_printf(). | |
13264 | ||
13265 | *Ben Laurie (CHATS)* | |
13266 | ||
13267 | * buffer_gets() could terminate with the buffer only half | |
13268 | full. Fixed. | |
13269 | ||
13270 | *Ben Laurie (CHATS)* | |
13271 | ||
13272 | * Add assertions to prevent user-supplied crypto functions from | |
13273 | overflowing internal buffers by having large block sizes, etc. | |
13274 | ||
13275 | *Ben Laurie (CHATS)* | |
13276 | ||
13277 | * New OPENSSL_assert() macro (similar to assert(), but enabled | |
13278 | unconditionally). | |
13279 | ||
13280 | *Ben Laurie (CHATS)* | |
13281 | ||
13282 | * Eliminate unused copy of key in RC4. | |
13283 | ||
13284 | *Ben Laurie (CHATS)* | |
13285 | ||
13286 | * Eliminate unused and incorrectly sized buffers for IV in pem.h. | |
13287 | ||
13288 | *Ben Laurie (CHATS)* | |
13289 | ||
13290 | * Fix off-by-one error in EGD path. | |
13291 | ||
13292 | *Ben Laurie (CHATS)* | |
13293 | ||
13294 | * If RANDFILE path is too long, ignore instead of truncating. | |
13295 | ||
13296 | *Ben Laurie (CHATS)* | |
13297 | ||
13298 | * Eliminate unused and incorrectly sized X.509 structure | |
13299 | CBCParameter. | |
13300 | ||
13301 | *Ben Laurie (CHATS)* | |
13302 | ||
13303 | * Eliminate unused and dangerous function knumber(). | |
13304 | ||
13305 | *Ben Laurie (CHATS)* | |
13306 | ||
13307 | * Eliminate unused and dangerous structure, KSSL_ERR. | |
13308 | ||
13309 | *Ben Laurie (CHATS)* | |
13310 | ||
13311 | * Protect against overlong session ID context length in an encoded | |
13312 | session object. Since these are local, this does not appear to be | |
13313 | exploitable. | |
13314 | ||
13315 | *Ben Laurie (CHATS)* | |
13316 | ||
13317 | * Change from security patch (see 0.9.6e below) that did not affect | |
13318 | the 0.9.6 release series: | |
13319 | ||
13320 | Remote buffer overflow in SSL3 protocol - an attacker could | |
13321 | supply an oversized master key in Kerberos-enabled versions. | |
d8dc8538 | 13322 | ([CVE-2002-0657]) |
5f8e6c50 DMSP |
13323 | |
13324 | *Ben Laurie (CHATS)* | |
13325 | ||
13326 | * Change the SSL kerb5 codes to match RFC 2712. | |
13327 | ||
13328 | *Richard Levitte* | |
13329 | ||
13330 | * Make -nameopt work fully for req and add -reqopt switch. | |
13331 | ||
13332 | *Michael Bell <michael.bell@rz.hu-berlin.de>, Steve Henson* | |
13333 | ||
13334 | * The "block size" for block ciphers in CFB and OFB mode should be 1. | |
13335 | ||
13336 | *Steve Henson, reported by Yngve Nysaeter Pettersen <yngve@opera.com>* | |
13337 | ||
13338 | * Make sure tests can be performed even if the corresponding algorithms | |
13339 | have been removed entirely. This was also the last step to make | |
13340 | OpenSSL compilable with DJGPP under all reasonable conditions. | |
13341 | ||
13342 | *Richard Levitte, Doug Kaufman <dkaufman@rahul.net>* | |
13343 | ||
13344 | * Add cipher selection rules COMPLEMENTOFALL and COMPLEMENTOFDEFAULT | |
13345 | to allow version independent disabling of normally unselected ciphers, | |
13346 | which may be activated as a side-effect of selecting a single cipher. | |
13347 | ||
13348 | (E.g., cipher list string "RSA" enables ciphersuites that are left | |
13349 | out of "ALL" because they do not provide symmetric encryption. | |
13350 | "RSA:!COMPLEMEMENTOFALL" avoids these unsafe ciphersuites.) | |
13351 | ||
13352 | *Lutz Jaenicke, Bodo Moeller* | |
13353 | ||
13354 | * Add appropriate support for separate platform-dependent build | |
13355 | directories. The recommended way to make a platform-dependent | |
13356 | build directory is the following (tested on Linux), maybe with | |
13357 | some local tweaks: | |
13358 | ||
13359 | # Place yourself outside of the OpenSSL source tree. In | |
13360 | # this example, the environment variable OPENSSL_SOURCE | |
13361 | # is assumed to contain the absolute OpenSSL source directory. | |
13362 | mkdir -p objtree/"`uname -s`-`uname -r`-`uname -m`" | |
13363 | cd objtree/"`uname -s`-`uname -r`-`uname -m`" | |
13364 | (cd $OPENSSL_SOURCE; find . -type f) | while read F; do | |
13365 | mkdir -p `dirname $F` | |
13366 | ln -s $OPENSSL_SOURCE/$F $F | |
13367 | done | |
13368 | ||
13369 | To be absolutely sure not to disturb the source tree, a "make clean" | |
13370 | is a good thing. If it isn't successful, don't worry about it, | |
13371 | it probably means the source directory is very clean. | |
13372 | ||
13373 | *Richard Levitte* | |
13374 | ||
13375 | * Make sure any ENGINE control commands make local copies of string | |
13376 | pointers passed to them whenever necessary. Otherwise it is possible | |
13377 | the caller may have overwritten (or deallocated) the original string | |
13378 | data when a later ENGINE operation tries to use the stored values. | |
13379 | ||
13380 | *Götz Babin-Ebell <babinebell@trustcenter.de>* | |
13381 | ||
13382 | * Improve diagnostics in file reading and command-line digests. | |
13383 | ||
13384 | *Ben Laurie aided and abetted by Solar Designer <solar@openwall.com>* | |
13385 | ||
13386 | * Add AES modes CFB and OFB to the object database. Correct an | |
13387 | error in AES-CFB decryption. | |
13388 | ||
13389 | *Richard Levitte* | |
13390 | ||
13391 | * Remove most calls to EVP_CIPHER_CTX_cleanup() in evp_enc.c, this | |
13392 | allows existing EVP_CIPHER_CTX structures to be reused after | |
257e9d03 | 13393 | calling `EVP_*Final()`. This behaviour is used by encryption |
5f8e6c50 DMSP |
13394 | BIOs and some applications. This has the side effect that |
13395 | applications must explicitly clean up cipher contexts with | |
13396 | EVP_CIPHER_CTX_cleanup() or they will leak memory. | |
13397 | ||
13398 | *Steve Henson* | |
13399 | ||
13400 | * Check the values of dna and dnb in bn_mul_recursive before calling | |
13401 | bn_mul_comba (a non zero value means the a or b arrays do not contain | |
13402 | n2 elements) and fallback to bn_mul_normal if either is not zero. | |
13403 | ||
13404 | *Steve Henson* | |
13405 | ||
13406 | * Fix escaping of non-ASCII characters when using the -subj option | |
13407 | of the "openssl req" command line tool. (Robert Joop <joop@fokus.gmd.de>) | |
13408 | ||
13409 | *Lutz Jaenicke* | |
13410 | ||
13411 | * Make object definitions compliant to LDAP (RFC2256): SN is the short | |
13412 | form for "surname", serialNumber has no short form. | |
13413 | Use "mail" as the short name for "rfc822Mailbox" according to RFC2798; | |
13414 | therefore remove "mail" short name for "internet 7". | |
13415 | The OID for unique identifiers in X509 certificates is | |
13416 | x500UniqueIdentifier, not uniqueIdentifier. | |
13417 | Some more OID additions. (Michael Bell <michael.bell@rz.hu-berlin.de>) | |
13418 | ||
13419 | *Lutz Jaenicke* | |
13420 | ||
13421 | * Add an "init" command to the ENGINE config module and auto initialize | |
13422 | ENGINEs. Without any "init" command the ENGINE will be initialized | |
13423 | after all ctrl commands have been executed on it. If init=1 the | |
13424 | ENGINE is initialized at that point (ctrls before that point are run | |
13425 | on the uninitialized ENGINE and after on the initialized one). If | |
13426 | init=0 then the ENGINE will not be initialized at all. | |
13427 | ||
13428 | *Steve Henson* | |
13429 | ||
13430 | * Fix the 'app_verify_callback' interface so that the user-defined | |
13431 | argument is actually passed to the callback: In the | |
13432 | SSL_CTX_set_cert_verify_callback() prototype, the callback | |
13433 | declaration has been changed from | |
13434 | int (*cb)() | |
13435 | into | |
13436 | int (*cb)(X509_STORE_CTX *,void *); | |
13437 | in ssl_verify_cert_chain (ssl/ssl_cert.c), the call | |
13438 | i=s->ctx->app_verify_callback(&ctx) | |
13439 | has been changed into | |
13440 | i=s->ctx->app_verify_callback(&ctx, s->ctx->app_verify_arg). | |
13441 | ||
13442 | To update applications using SSL_CTX_set_cert_verify_callback(), | |
13443 | a dummy argument can be added to their callback functions. | |
13444 | ||
13445 | *D. K. Smetters <smetters@parc.xerox.com>* | |
13446 | ||
13447 | * Added the '4758cca' ENGINE to support IBM 4758 cards. | |
13448 | ||
13449 | *Maurice Gittens <maurice@gittens.nl>, touchups by Geoff Thorpe* | |
13450 | ||
13451 | * Add and OPENSSL_LOAD_CONF define which will cause | |
13452 | OpenSSL_add_all_algorithms() to load the openssl.cnf config file. | |
13453 | This allows older applications to transparently support certain | |
13454 | OpenSSL features: such as crypto acceleration and dynamic ENGINE loading. | |
13455 | Two new functions OPENSSL_add_all_algorithms_noconf() which will never | |
13456 | load the config file and OPENSSL_add_all_algorithms_conf() which will | |
13457 | always load it have also been added. | |
13458 | ||
13459 | *Steve Henson* | |
13460 | ||
13461 | * Add the OFB, CFB and CTR (all with 128 bit feedback) to AES. | |
13462 | Adjust NIDs and EVP layer. | |
13463 | ||
13464 | *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte* | |
13465 | ||
13466 | * Config modules support in openssl utility. | |
13467 | ||
13468 | Most commands now load modules from the config file, | |
13469 | though in a few (such as version) this isn't done | |
13470 | because it couldn't be used for anything. | |
13471 | ||
13472 | In the case of ca and req the config file used is | |
13473 | the same as the utility itself: that is the -config | |
13474 | command line option can be used to specify an | |
13475 | alternative file. | |
13476 | ||
13477 | *Steve Henson* | |
13478 | ||
13479 | * Move default behaviour from OPENSSL_config(). If appname is NULL | |
13480 | use "openssl_conf" if filename is NULL use default openssl config file. | |
13481 | ||
13482 | *Steve Henson* | |
13483 | ||
13484 | * Add an argument to OPENSSL_config() to allow the use of an alternative | |
13485 | config section name. Add a new flag to tolerate a missing config file | |
13486 | and move code to CONF_modules_load_file(). | |
13487 | ||
13488 | *Steve Henson* | |
13489 | ||
13490 | * Support for crypto accelerator cards from Accelerated Encryption | |
13491 | Processing, www.aep.ie. (Use engine 'aep') | |
13492 | The support was copied from 0.9.6c [engine] and adapted/corrected | |
13493 | to work with the new engine framework. | |
13494 | ||
13495 | *AEP Inc. and Richard Levitte* | |
13496 | ||
13497 | * Support for SureWare crypto accelerator cards from Baltimore | |
13498 | Technologies. (Use engine 'sureware') | |
13499 | The support was copied from 0.9.6c [engine] and adapted | |
13500 | to work with the new engine framework. | |
13501 | ||
13502 | *Richard Levitte* | |
13503 | ||
13504 | * Have the CHIL engine fork-safe (as defined by nCipher) and actually | |
13505 | make the newer ENGINE framework commands for the CHIL engine work. | |
13506 | ||
13507 | *Toomas Kiisk <vix@cyber.ee> and Richard Levitte* | |
13508 | ||
13509 | * Make it possible to produce shared libraries on ReliantUNIX. | |
13510 | ||
13511 | *Robert Dahlem <Robert.Dahlem@ffm2.siemens.de> via Richard Levitte* | |
13512 | ||
13513 | * Add the configuration target debug-linux-ppro. | |
13514 | Make 'openssl rsa' use the general key loading routines | |
ec2bfb7d | 13515 | implemented in `apps.c`, and make those routines able to |
5f8e6c50 DMSP |
13516 | handle the key format FORMAT_NETSCAPE and the variant |
13517 | FORMAT_IISSGC. | |
13518 | ||
13519 | *Toomas Kiisk <vix@cyber.ee> via Richard Levitte* | |
13520 | ||
13521 | * Fix a crashbug and a logic bug in hwcrhk_load_pubkey(). | |
13522 | ||
13523 | *Toomas Kiisk <vix@cyber.ee> via Richard Levitte* | |
13524 | ||
13525 | * Add -keyform to rsautl, and document -engine. | |
13526 | ||
13527 | *Richard Levitte, inspired by Toomas Kiisk <vix@cyber.ee>* | |
13528 | ||
13529 | * Change BIO_new_file (crypto/bio/bss_file.c) to use new | |
13530 | BIO_R_NO_SUCH_FILE error code rather than the generic | |
13531 | ERR_R_SYS_LIB error code if fopen() fails with ENOENT. | |
13532 | ||
13533 | *Ben Laurie* | |
13534 | ||
13535 | * Add new functions | |
13536 | ERR_peek_last_error | |
13537 | ERR_peek_last_error_line | |
13538 | ERR_peek_last_error_line_data. | |
13539 | These are similar to | |
13540 | ERR_peek_error | |
13541 | ERR_peek_error_line | |
13542 | ERR_peek_error_line_data, | |
13543 | but report on the latest error recorded rather than the first one | |
13544 | still in the error queue. | |
13545 | ||
13546 | *Ben Laurie, Bodo Moeller* | |
13547 | ||
13548 | * default_algorithms option in ENGINE config module. This allows things | |
13549 | like: | |
13550 | default_algorithms = ALL | |
13551 | default_algorithms = RSA, DSA, RAND, CIPHERS, DIGESTS | |
13552 | ||
13553 | *Steve Henson* | |
13554 | ||
13555 | * Preliminary ENGINE config module. | |
13556 | ||
13557 | *Steve Henson* | |
13558 | ||
13559 | * New experimental application configuration code. | |
13560 | ||
13561 | *Steve Henson* | |
13562 | ||
13563 | * Change the AES code to follow the same name structure as all other | |
13564 | symmetric ciphers, and behave the same way. Move everything to | |
13565 | the directory crypto/aes, thereby obsoleting crypto/rijndael. | |
13566 | ||
13567 | *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte* | |
13568 | ||
13569 | * SECURITY: remove unsafe setjmp/signal interaction from ui_openssl.c. | |
13570 | ||
13571 | *Ben Laurie and Theo de Raadt* | |
13572 | ||
13573 | * Add option to output public keys in req command. | |
13574 | ||
13575 | *Massimiliano Pala madwolf@openca.org* | |
13576 | ||
13577 | * Use wNAFs in EC_POINTs_mul() for improved efficiency | |
13578 | (up to about 10% better than before for P-192 and P-224). | |
13579 | ||
13580 | *Bodo Moeller* | |
13581 | ||
13582 | * New functions/macros | |
13583 | ||
13584 | SSL_CTX_set_msg_callback(ctx, cb) | |
13585 | SSL_CTX_set_msg_callback_arg(ctx, arg) | |
13586 | SSL_set_msg_callback(ssl, cb) | |
13587 | SSL_set_msg_callback_arg(ssl, arg) | |
13588 | ||
13589 | to request calling a callback function | |
13590 | ||
13591 | void cb(int write_p, int version, int content_type, | |
13592 | const void *buf, size_t len, SSL *ssl, void *arg) | |
13593 | ||
13594 | whenever a protocol message has been completely received | |
13595 | (write_p == 0) or sent (write_p == 1). Here 'version' is the | |
13596 | protocol version according to which the SSL library interprets | |
13597 | the current protocol message (SSL2_VERSION, SSL3_VERSION, or | |
13598 | TLS1_VERSION). 'content_type' is 0 in the case of SSL 2.0, or | |
13599 | the content type as defined in the SSL 3.0/TLS 1.0 protocol | |
13600 | specification (change_cipher_spec(20), alert(21), handshake(22)). | |
13601 | 'buf' and 'len' point to the actual message, 'ssl' to the | |
13602 | SSL object, and 'arg' is the application-defined value set by | |
13603 | SSL[_CTX]_set_msg_callback_arg(). | |
13604 | ||
13605 | 'openssl s_client' and 'openssl s_server' have new '-msg' options | |
13606 | to enable a callback that displays all protocol messages. | |
13607 | ||
13608 | *Bodo Moeller* | |
13609 | ||
13610 | * Change the shared library support so shared libraries are built as | |
13611 | soon as the corresponding static library is finished, and thereby get | |
13612 | openssl and the test programs linked against the shared library. | |
13613 | This still only happens when the keyword "shard" has been given to | |
13614 | the configuration scripts. | |
13615 | ||
13616 | NOTE: shared library support is still an experimental thing, and | |
13617 | backward binary compatibility is still not guaranteed. | |
13618 | ||
13619 | *"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> and Richard Levitte* | |
13620 | ||
13621 | * Add support for Subject Information Access extension. | |
13622 | ||
13623 | *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>* | |
13624 | ||
13625 | * Make BUF_MEM_grow() behaviour more consistent: Initialise to zero | |
13626 | additional bytes when new memory had to be allocated, not just | |
13627 | when reusing an existing buffer. | |
13628 | ||
13629 | *Bodo Moeller* | |
13630 | ||
13631 | * New command line and configuration option 'utf8' for the req command. | |
13632 | This allows field values to be specified as UTF8 strings. | |
13633 | ||
13634 | *Steve Henson* | |
13635 | ||
13636 | * Add -multi and -mr options to "openssl speed" - giving multiple parallel | |
13637 | runs for the former and machine-readable output for the latter. | |
13638 | ||
13639 | *Ben Laurie* | |
13640 | ||
13641 | * Add '-noemailDN' option to 'openssl ca'. This prevents inclusion | |
13642 | of the e-mail address in the DN (i.e., it will go into a certificate | |
13643 | extension only). The new configuration file option 'email_in_dn = no' | |
13644 | has the same effect. | |
13645 | ||
13646 | *Massimiliano Pala madwolf@openca.org* | |
13647 | ||
257e9d03 RS |
13648 | * Change all functions with names starting with `des_` to be starting |
13649 | with `DES_` instead. Add wrappers that are compatible with libdes, | |
13650 | but are named `_ossl_old_des_*`. Finally, add macros that map the | |
13651 | `des_*` symbols to the corresponding `_ossl_old_des_*` if libdes | |
5f8e6c50 | 13652 | compatibility is desired. If OpenSSL 0.9.6c compatibility is |
257e9d03 | 13653 | desired, the `des_*` symbols will be mapped to `DES_*`, with one |
5f8e6c50 DMSP |
13654 | exception. |
13655 | ||
13656 | Since we provide two compatibility mappings, the user needs to | |
13657 | define the macro OPENSSL_DES_LIBDES_COMPATIBILITY if libdes | |
13658 | compatibility is desired. The default (i.e., when that macro | |
13659 | isn't defined) is OpenSSL 0.9.6c compatibility. | |
13660 | ||
13661 | There are also macros that enable and disable the support of old | |
13662 | des functions altogether. Those are OPENSSL_ENABLE_OLD_DES_SUPPORT | |
13663 | and OPENSSL_DISABLE_OLD_DES_SUPPORT. If none or both of those | |
13664 | are defined, the default will apply: to support the old des routines. | |
13665 | ||
13666 | In either case, one must include openssl/des.h to get the correct | |
13667 | definitions. Do not try to just include openssl/des_old.h, that | |
13668 | won't work. | |
13669 | ||
13670 | NOTE: This is a major break of an old API into a new one. Software | |
257e9d03 | 13671 | authors are encouraged to switch to the `DES_` style functions. Some |
5f8e6c50 DMSP |
13672 | time in the future, des_old.h and the libdes compatibility functions |
13673 | will be disable (i.e. OPENSSL_DISABLE_OLD_DES_SUPPORT will be the | |
13674 | default), and then completely removed. | |
13675 | ||
13676 | *Richard Levitte* | |
13677 | ||
13678 | * Test for certificates which contain unsupported critical extensions. | |
13679 | If such a certificate is found during a verify operation it is | |
13680 | rejected by default: this behaviour can be overridden by either | |
13681 | handling the new error X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION or | |
13682 | by setting the verify flag X509_V_FLAG_IGNORE_CRITICAL. A new function | |
13683 | X509_supported_extension() has also been added which returns 1 if a | |
13684 | particular extension is supported. | |
13685 | ||
13686 | *Steve Henson* | |
13687 | ||
13688 | * Modify the behaviour of EVP cipher functions in similar way to digests | |
13689 | to retain compatibility with existing code. | |
13690 | ||
13691 | *Steve Henson* | |
13692 | ||
13693 | * Modify the behaviour of EVP_DigestInit() and EVP_DigestFinal() to retain | |
13694 | compatibility with existing code. In particular the 'ctx' parameter does | |
13695 | not have to be to be initialized before the call to EVP_DigestInit() and | |
13696 | it is tidied up after a call to EVP_DigestFinal(). New function | |
13697 | EVP_DigestFinal_ex() which does not tidy up the ctx. Similarly function | |
13698 | EVP_MD_CTX_copy() changed to not require the destination to be | |
13699 | initialized valid and new function EVP_MD_CTX_copy_ex() added which | |
13700 | requires the destination to be valid. | |
13701 | ||
13702 | Modify all the OpenSSL digest calls to use EVP_DigestInit_ex(), | |
13703 | EVP_DigestFinal_ex() and EVP_MD_CTX_copy_ex(). | |
13704 | ||
13705 | *Steve Henson* | |
13706 | ||
13707 | * Change ssl3_get_message (ssl/s3_both.c) and the functions using it | |
13708 | so that complete 'Handshake' protocol structures are kept in memory | |
13709 | instead of overwriting 'msg_type' and 'length' with 'body' data. | |
13710 | ||
13711 | *Bodo Moeller* | |
13712 | ||
13713 | * Add an implementation of SSL_add_dir_cert_subjects_to_stack for Win32. | |
13714 | ||
13715 | *Massimo Santin via Richard Levitte* | |
13716 | ||
13717 | * Major restructuring to the underlying ENGINE code. This includes | |
13718 | reduction of linker bloat, separation of pure "ENGINE" manipulation | |
13719 | (initialisation, etc) from functionality dealing with implementations | |
13720 | of specific crypto interfaces. This change also introduces integrated | |
13721 | support for symmetric ciphers and digest implementations - so ENGINEs | |
13722 | can now accelerate these by providing EVP_CIPHER and EVP_MD | |
036cbb6b DDO |
13723 | implementations of their own. This is detailed in |
13724 | [crypto/engine/README.md](crypto/engine/README.md) | |
5f8e6c50 DMSP |
13725 | as it couldn't be adequately described here. However, there are a few |
13726 | API changes worth noting - some RSA, DSA, DH, and RAND functions that | |
13727 | were changed in the original introduction of ENGINE code have now | |
13728 | reverted back - the hooking from this code to ENGINE is now a good | |
13729 | deal more passive and at run-time, operations deal directly with | |
13730 | RSA_METHODs, DSA_METHODs (etc) as they did before, rather than | |
13731 | dereferencing through an ENGINE pointer any more. Also, the ENGINE | |
257e9d03 | 13732 | functions dealing with `BN_MOD_EXP[_CRT]` handlers have been removed - |
5f8e6c50 DMSP |
13733 | they were not being used by the framework as there is no concept of a |
13734 | BIGNUM_METHOD and they could not be generalised to the new | |
13735 | 'ENGINE_TABLE' mechanism that underlies the new code. Similarly, | |
13736 | ENGINE_cpy() has been removed as it cannot be consistently defined in | |
13737 | the new code. | |
13738 | ||
13739 | *Geoff Thorpe* | |
13740 | ||
13741 | * Change ASN1_GENERALIZEDTIME_check() to allow fractional seconds. | |
13742 | ||
13743 | *Steve Henson* | |
13744 | ||
13745 | * Change mkdef.pl to sort symbols that get the same entry number, | |
257e9d03 | 13746 | and make sure the automatically generated functions `ERR_load_*` |
5f8e6c50 DMSP |
13747 | become part of libeay.num as well. |
13748 | ||
13749 | *Richard Levitte* | |
13750 | ||
13751 | * New function SSL_renegotiate_pending(). This returns true once | |
13752 | renegotiation has been requested (either SSL_renegotiate() call | |
13753 | or HelloRequest/ClientHello received from the peer) and becomes | |
13754 | false once a handshake has been completed. | |
13755 | (For servers, SSL_renegotiate() followed by SSL_do_handshake() | |
13756 | sends a HelloRequest, but does not ensure that a handshake takes | |
13757 | place. SSL_renegotiate_pending() is useful for checking if the | |
13758 | client has followed the request.) | |
13759 | ||
13760 | *Bodo Moeller* | |
13761 | ||
13762 | * New SSL option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION. | |
13763 | By default, clients may request session resumption even during | |
13764 | renegotiation (if session ID contexts permit); with this option, | |
13765 | session resumption is possible only in the first handshake. | |
13766 | ||
13767 | SSL_OP_ALL is now 0x00000FFFL instead of 0x000FFFFFL. This makes | |
13768 | more bits available for options that should not be part of | |
13769 | SSL_OP_ALL (such as SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION). | |
13770 | ||
13771 | *Bodo Moeller* | |
13772 | ||
13773 | * Add some demos for certificate and certificate request creation. | |
13774 | ||
13775 | *Steve Henson* | |
13776 | ||
13777 | * Make maximum certificate chain size accepted from the peer application | |
257e9d03 | 13778 | settable (`SSL*_get/set_max_cert_list()`), as proposed by |
5f8e6c50 DMSP |
13779 | "Douglas E. Engert" <deengert@anl.gov>. |
13780 | ||
13781 | *Lutz Jaenicke* | |
13782 | ||
13783 | * Add support for shared libraries for Unixware-7 | |
13784 | (Boyd Lynn Gerber <gerberb@zenez.com>). | |
13785 | ||
13786 | *Lutz Jaenicke* | |
13787 | ||
13788 | * Add a "destroy" handler to ENGINEs that allows structural cleanup to | |
13789 | be done prior to destruction. Use this to unload error strings from | |
13790 | ENGINEs that load their own error strings. NB: This adds two new API | |
13791 | functions to "get" and "set" this destroy handler in an ENGINE. | |
13792 | ||
13793 | *Geoff Thorpe* | |
13794 | ||
13795 | * Alter all existing ENGINE implementations (except "openssl" and | |
13796 | "openbsd") to dynamically instantiate their own error strings. This | |
13797 | makes them more flexible to be built both as statically-linked ENGINEs | |
13798 | and self-contained shared-libraries loadable via the "dynamic" ENGINE. | |
13799 | Also, add stub code to each that makes building them as self-contained | |
036cbb6b | 13800 | shared-libraries easier (see [README-Engine.md](README-Engine.md)). |
5f8e6c50 DMSP |
13801 | |
13802 | *Geoff Thorpe* | |
13803 | ||
13804 | * Add a "dynamic" ENGINE that provides a mechanism for binding ENGINE | |
13805 | implementations into applications that are completely implemented in | |
13806 | self-contained shared-libraries. The "dynamic" ENGINE exposes control | |
13807 | commands that can be used to configure what shared-library to load and | |
13808 | to control aspects of the way it is handled. Also, made an update to | |
036cbb6b DDO |
13809 | the [README-Engine.md](README-Engine.md) file |
13810 | that brings its information up-to-date and | |
5f8e6c50 DMSP |
13811 | provides some information and instructions on the "dynamic" ENGINE |
13812 | (ie. how to use it, how to build "dynamic"-loadable ENGINEs, etc). | |
13813 | ||
13814 | *Geoff Thorpe* | |
13815 | ||
13816 | * Make it possible to unload ranges of ERR strings with a new | |
13817 | "ERR_unload_strings" function. | |
13818 | ||
13819 | *Geoff Thorpe* | |
13820 | ||
13821 | * Add a copy() function to EVP_MD. | |
13822 | ||
13823 | *Ben Laurie* | |
13824 | ||
13825 | * Make EVP_MD routines take a context pointer instead of just the | |
13826 | md_data void pointer. | |
13827 | ||
13828 | *Ben Laurie* | |
13829 | ||
13830 | * Add flags to EVP_MD and EVP_MD_CTX. EVP_MD_FLAG_ONESHOT indicates | |
13831 | that the digest can only process a single chunk of data | |
13832 | (typically because it is provided by a piece of | |
13833 | hardware). EVP_MD_CTX_FLAG_ONESHOT indicates that the application | |
13834 | is only going to provide a single chunk of data, and hence the | |
13835 | framework needn't accumulate the data for oneshot drivers. | |
13836 | ||
13837 | *Ben Laurie* | |
13838 | ||
13839 | * As with "ERR", make it possible to replace the underlying "ex_data" | |
13840 | functions. This change also alters the storage and management of global | |
13841 | ex_data state - it's now all inside ex_data.c and all "class" code (eg. | |
13842 | RSA, BIO, SSL_CTX, etc) no longer stores its own STACKS and per-class | |
13843 | index counters. The API functions that use this state have been changed | |
13844 | to take a "class_index" rather than pointers to the class's local STACK | |
13845 | and counter, and there is now an API function to dynamically create new | |
13846 | classes. This centralisation allows us to (a) plug a lot of the | |
13847 | thread-safety problems that existed, and (b) makes it possible to clean | |
13848 | up all allocated state using "CRYPTO_cleanup_all_ex_data()". W.r.t. (b) | |
13849 | such data would previously have always leaked in application code and | |
13850 | workarounds were in place to make the memory debugging turn a blind eye | |
13851 | to it. Application code that doesn't use this new function will still | |
13852 | leak as before, but their memory debugging output will announce it now | |
13853 | rather than letting it slide. | |
13854 | ||
13855 | Besides the addition of CRYPTO_cleanup_all_ex_data(), another API change | |
13856 | induced by the "ex_data" overhaul is that X509_STORE_CTX_init() now | |
13857 | has a return value to indicate success or failure. | |
13858 | ||
13859 | *Geoff Thorpe* | |
13860 | ||
13861 | * Make it possible to replace the underlying "ERR" functions such that the | |
13862 | global state (2 LHASH tables and 2 locks) is only used by the "default" | |
13863 | implementation. This change also adds two functions to "get" and "set" | |
13864 | the implementation prior to it being automatically set the first time | |
13865 | any other ERR function takes place. Ie. an application can call "get", | |
13866 | pass the return value to a module it has just loaded, and that module | |
13867 | can call its own "set" function using that value. This means the | |
13868 | module's "ERR" operations will use (and modify) the error state in the | |
13869 | application and not in its own statically linked copy of OpenSSL code. | |
13870 | ||
13871 | *Geoff Thorpe* | |
13872 | ||
257e9d03 | 13873 | * Give DH, DSA, and RSA types their own `*_up_ref()` function to increment |
5f8e6c50 DMSP |
13874 | reference counts. This performs normal REF_PRINT/REF_CHECK macros on |
13875 | the operation, and provides a more encapsulated way for external code | |
13876 | (crypto/evp/ and ssl/) to do this. Also changed the evp and ssl code | |
13877 | to use these functions rather than manually incrementing the counts. | |
13878 | ||
13879 | Also rename "DSO_up()" function to more descriptive "DSO_up_ref()". | |
13880 | ||
13881 | *Geoff Thorpe* | |
13882 | ||
13883 | * Add EVP test program. | |
13884 | ||
13885 | *Ben Laurie* | |
13886 | ||
13887 | * Add symmetric cipher support to ENGINE. Expect the API to change! | |
13888 | ||
13889 | *Ben Laurie* | |
13890 | ||
13891 | * New CRL functions: X509_CRL_set_version(), X509_CRL_set_issuer_name() | |
13892 | X509_CRL_set_lastUpdate(), X509_CRL_set_nextUpdate(), X509_CRL_sort(), | |
13893 | X509_REVOKED_set_serialNumber(), and X509_REVOKED_set_revocationDate(). | |
13894 | These allow a CRL to be built without having to access X509_CRL fields | |
13895 | directly. Modify 'ca' application to use new functions. | |
13896 | ||
13897 | *Steve Henson* | |
13898 | ||
13899 | * Move SSL_OP_TLS_ROLLBACK_BUG out of the SSL_OP_ALL list of recommended | |
13900 | bug workarounds. Rollback attack detection is a security feature. | |
13901 | The problem will only arise on OpenSSL servers when TLSv1 is not | |
13902 | available (sslv3_server_method() or SSL_OP_NO_TLSv1). | |
13903 | Software authors not wanting to support TLSv1 will have special reasons | |
13904 | for their choice and can explicitly enable this option. | |
13905 | ||
13906 | *Bodo Moeller, Lutz Jaenicke* | |
13907 | ||
13908 | * Rationalise EVP so it can be extended: don't include a union of | |
13909 | cipher/digest structures, add init/cleanup functions for EVP_MD_CTX | |
13910 | (similar to those existing for EVP_CIPHER_CTX). | |
13911 | Usage example: | |
13912 | ||
13913 | EVP_MD_CTX md; | |
13914 | ||
13915 | EVP_MD_CTX_init(&md); /* new function call */ | |
13916 | EVP_DigestInit(&md, EVP_sha1()); | |
13917 | EVP_DigestUpdate(&md, in, len); | |
13918 | EVP_DigestFinal(&md, out, NULL); | |
13919 | EVP_MD_CTX_cleanup(&md); /* new function call */ | |
13920 | ||
5f8e6c50 DMSP |
13921 | *Ben Laurie* |
13922 | ||
13923 | * Make DES key schedule conform to the usual scheme, as well as | |
13924 | correcting its structure. This means that calls to DES functions | |
13925 | now have to pass a pointer to a des_key_schedule instead of a | |
13926 | plain des_key_schedule (which was actually always a pointer | |
13927 | anyway): E.g., | |
13928 | ||
13929 | des_key_schedule ks; | |
13930 | ||
13931 | des_set_key_checked(..., &ks); | |
13932 | des_ncbc_encrypt(..., &ks, ...); | |
13933 | ||
13934 | (Note that a later change renames 'des_...' into 'DES_...'.) | |
13935 | ||
13936 | *Ben Laurie* | |
13937 | ||
13938 | * Initial reduction of linker bloat: the use of some functions, such as | |
13939 | PEM causes large amounts of unused functions to be linked in due to | |
13940 | poor organisation. For example pem_all.c contains every PEM function | |
13941 | which has a knock on effect of linking in large amounts of (unused) | |
13942 | ASN1 code. Grouping together similar functions and splitting unrelated | |
13943 | functions prevents this. | |
13944 | ||
13945 | *Steve Henson* | |
13946 | ||
13947 | * Cleanup of EVP macros. | |
13948 | ||
13949 | *Ben Laurie* | |
13950 | ||
257e9d03 RS |
13951 | * Change historical references to `{NID,SN,LN}_des_ede` and ede3 to add the |
13952 | correct `_ecb suffix`. | |
5f8e6c50 DMSP |
13953 | |
13954 | *Ben Laurie* | |
13955 | ||
13956 | * Add initial OCSP responder support to ocsp application. The | |
13957 | revocation information is handled using the text based index | |
13958 | use by the ca application. The responder can either handle | |
13959 | requests generated internally, supplied in files (for example | |
13960 | via a CGI script) or using an internal minimal server. | |
13961 | ||
13962 | *Steve Henson* | |
13963 | ||
13964 | * Add configuration choices to get zlib compression for TLS. | |
13965 | ||
13966 | *Richard Levitte* | |
13967 | ||
13968 | * Changes to Kerberos SSL for RFC 2712 compliance: | |
257e9d03 RS |
13969 | 1. Implemented real KerberosWrapper, instead of just using |
13970 | KRB5 AP_REQ message. [Thanks to Simon Wilkinson <sxw@sxw.org.uk>] | |
13971 | 2. Implemented optional authenticator field of KerberosWrapper. | |
5f8e6c50 DMSP |
13972 | |
13973 | Added openssl-style ASN.1 macros for Kerberos ticket, ap_req, | |
13974 | and authenticator structs; see crypto/krb5/. | |
13975 | ||
13976 | Generalized Kerberos calls to support multiple Kerberos libraries. | |
257e9d03 RS |
13977 | *Vern Staats <staatsvr@asc.hpc.mil>, Jeffrey Altman <jaltman@columbia.edu> |
13978 | via Richard Levitte* | |
5f8e6c50 DMSP |
13979 | |
13980 | * Cause 'openssl speed' to use fully hard-coded DSA keys as it | |
13981 | already does with RSA. testdsa.h now has 'priv_key/pub_key' | |
13982 | values for each of the key sizes rather than having just | |
13983 | parameters (and 'speed' generating keys each time). | |
13984 | ||
13985 | *Geoff Thorpe* | |
13986 | ||
13987 | * Speed up EVP routines. | |
13988 | Before: | |
13989 | crypt | |
13990 | pe 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes | |
13991 | s-cbc 4408.85k 5560.51k 5778.46k 5862.20k 5825.16k | |
13992 | s-cbc 4389.55k 5571.17k 5792.23k 5846.91k 5832.11k | |
13993 | s-cbc 4394.32k 5575.92k 5807.44k 5848.37k 5841.30k | |
13994 | crypt | |
13995 | s-cbc 3482.66k 5069.49k 5496.39k 5614.16k 5639.28k | |
13996 | s-cbc 3480.74k 5068.76k 5510.34k 5609.87k 5635.52k | |
13997 | s-cbc 3483.72k 5067.62k 5504.60k 5708.01k 5724.80k | |
13998 | After: | |
13999 | crypt | |
14000 | s-cbc 4660.16k 5650.19k 5807.19k 5827.13k 5783.32k | |
14001 | crypt | |
14002 | s-cbc 3624.96k 5258.21k 5530.91k 5624.30k 5628.26k | |
14003 | ||
14004 | *Ben Laurie* | |
14005 | ||
14006 | * Added the OS2-EMX target. | |
14007 | ||
14008 | *"Brian Havard" <brianh@kheldar.apana.org.au> and Richard Levitte* | |
14009 | ||
ec2bfb7d | 14010 | * Rewrite commands to use `NCONF` routines instead of the old `CONF`. |
3e3ad3c5 | 14011 | New functions to support `NCONF` routines in extension code. |
ec2bfb7d DDO |
14012 | New function `CONF_set_nconf()` |
14013 | to allow functions which take an `NCONF` to also handle the old `LHASH` | |
14014 | structure: this means that the old `CONF` compatible routines can be | |
14015 | retained (in particular w.rt. extensions) without having to duplicate the | |
14016 | code. New function `X509V3_add_ext_nconf_sk()` to add extensions to a stack. | |
5f8e6c50 DMSP |
14017 | |
14018 | *Steve Henson* | |
14019 | ||
14020 | * Enhance the general user interface with mechanisms for inner control | |
14021 | and with possibilities to have yes/no kind of prompts. | |
14022 | ||
14023 | *Richard Levitte* | |
14024 | ||
4d49b685 | 14025 | * Change all calls to low-level digest routines in the library and |
5f8e6c50 DMSP |
14026 | applications to use EVP. Add missing calls to HMAC_cleanup() and |
14027 | don't assume HMAC_CTX can be copied using memcpy(). | |
14028 | ||
14029 | *Verdon Walker <VWalker@novell.com>, Steve Henson* | |
14030 | ||
14031 | * Add the possibility to control engines through control names but with | |
14032 | arbitrary arguments instead of just a string. | |
14033 | Change the key loaders to take a UI_METHOD instead of a callback | |
14034 | function pointer. NOTE: this breaks binary compatibility with earlier | |
14035 | versions of OpenSSL [engine]. | |
14036 | Adapt the nCipher code for these new conditions and add a card insertion | |
14037 | callback. | |
14038 | ||
14039 | *Richard Levitte* | |
14040 | ||
14041 | * Enhance the general user interface with mechanisms to better support | |
14042 | dialog box interfaces, application-defined prompts, the possibility | |
14043 | to use defaults (for example default passwords from somewhere else) | |
14044 | and interrupts/cancellations. | |
14045 | ||
14046 | *Richard Levitte* | |
14047 | ||
14048 | * Tidy up PKCS#12 attribute handling. Add support for the CSP name | |
14049 | attribute in PKCS#12 files, add new -CSP option to pkcs12 utility. | |
14050 | ||
14051 | *Steve Henson* | |
14052 | ||
14053 | * Fix a memory leak in 'sk_dup()' in the case reallocation fails. (Also | |
14054 | tidy up some unnecessarily weird code in 'sk_new()'). | |
14055 | ||
14056 | *Geoff, reported by Diego Tartara <dtartara@novamens.com>* | |
14057 | ||
14058 | * Change the key loading routines for ENGINEs to use the same kind | |
14059 | callback (pem_password_cb) as all other routines that need this | |
14060 | kind of callback. | |
14061 | ||
14062 | *Richard Levitte* | |
14063 | ||
14064 | * Increase ENTROPY_NEEDED to 32 bytes, as Rijndael can operate with | |
14065 | 256 bit (=32 byte) keys. Of course seeding with more entropy bytes | |
14066 | than this minimum value is recommended. | |
14067 | ||
14068 | *Lutz Jaenicke* | |
14069 | ||
14070 | * New random seeder for OpenVMS, using the system process statistics | |
14071 | that are easily reachable. | |
14072 | ||
14073 | *Richard Levitte* | |
14074 | ||
14075 | * Windows apparently can't transparently handle global | |
14076 | variables defined in DLLs. Initialisations such as: | |
14077 | ||
14078 | const ASN1_ITEM *it = &ASN1_INTEGER_it; | |
14079 | ||
14080 | won't compile. This is used by the any applications that need to | |
14081 | declare their own ASN1 modules. This was fixed by adding the option | |
14082 | EXPORT_VAR_AS_FN to all Win32 platforms, although this isn't strictly | |
14083 | needed for static libraries under Win32. | |
14084 | ||
14085 | *Steve Henson* | |
14086 | ||
14087 | * New functions X509_PURPOSE_set() and X509_TRUST_set() to handle | |
14088 | setting of purpose and trust fields. New X509_STORE trust and | |
14089 | purpose functions and tidy up setting in other SSL functions. | |
14090 | ||
14091 | *Steve Henson* | |
14092 | ||
14093 | * Add copies of X509_STORE_CTX fields and callbacks to X509_STORE | |
14094 | structure. These are inherited by X509_STORE_CTX when it is | |
14095 | initialised. This allows various defaults to be set in the | |
14096 | X509_STORE structure (such as flags for CRL checking and custom | |
14097 | purpose or trust settings) for functions which only use X509_STORE_CTX | |
14098 | internally such as S/MIME. | |
14099 | ||
14100 | Modify X509_STORE_CTX_purpose_inherit() so it only sets purposes and | |
14101 | trust settings if they are not set in X509_STORE. This allows X509_STORE | |
14102 | purposes and trust (in S/MIME for example) to override any set by default. | |
14103 | ||
14104 | Add command line options for CRL checking to smime, s_client and s_server | |
14105 | applications. | |
14106 | ||
14107 | *Steve Henson* | |
14108 | ||
14109 | * Initial CRL based revocation checking. If the CRL checking flag(s) | |
14110 | are set then the CRL is looked up in the X509_STORE structure and | |
14111 | its validity and signature checked, then if the certificate is found | |
14112 | in the CRL the verify fails with a revoked error. | |
14113 | ||
14114 | Various new CRL related callbacks added to X509_STORE_CTX structure. | |
14115 | ||
14116 | Command line options added to 'verify' application to support this. | |
14117 | ||
14118 | This needs some additional work, such as being able to handle multiple | |
14119 | CRLs with different times, extension based lookup (rather than just | |
14120 | by subject name) and ultimately more complete V2 CRL extension | |
14121 | handling. | |
14122 | ||
14123 | *Steve Henson* | |
14124 | ||
14125 | * Add a general user interface API (crypto/ui/). This is designed | |
14126 | to replace things like des_read_password and friends (backward | |
14127 | compatibility functions using this new API are provided). | |
14128 | The purpose is to remove prompting functions from the DES code | |
14129 | section as well as provide for prompting through dialog boxes in | |
14130 | a window system and the like. | |
14131 | ||
14132 | *Richard Levitte* | |
14133 | ||
14134 | * Add "ex_data" support to ENGINE so implementations can add state at a | |
14135 | per-structure level rather than having to store it globally. | |
14136 | ||
14137 | *Geoff* | |
14138 | ||
14139 | * Make it possible for ENGINE structures to be copied when retrieved by | |
14140 | ENGINE_by_id() if the ENGINE specifies a new flag: ENGINE_FLAGS_BY_ID_COPY. | |
14141 | This causes the "original" ENGINE structure to act like a template, | |
14142 | analogous to the RSA vs. RSA_METHOD type of separation. Because of this | |
14143 | operational state can be localised to each ENGINE structure, despite the | |
14144 | fact they all share the same "methods". New ENGINE structures returned in | |
14145 | this case have no functional references and the return value is the single | |
14146 | structural reference. This matches the single structural reference returned | |
14147 | by ENGINE_by_id() normally, when it is incremented on the pre-existing | |
14148 | ENGINE structure. | |
14149 | ||
14150 | *Geoff* | |
14151 | ||
14152 | * Fix ASN1 decoder when decoding type ANY and V_ASN1_OTHER: since this | |
14153 | needs to match any other type at all we need to manually clear the | |
14154 | tag cache. | |
14155 | ||
14156 | *Steve Henson* | |
14157 | ||
14158 | * Changes to the "openssl engine" utility to include; | |
14159 | - verbosity levels ('-v', '-vv', and '-vvv') that provide information | |
14160 | about an ENGINE's available control commands. | |
14161 | - executing control commands from command line arguments using the | |
14162 | '-pre' and '-post' switches. '-post' is only used if '-t' is | |
14163 | specified and the ENGINE is successfully initialised. The syntax for | |
14164 | the individual commands are colon-separated, for example; | |
14165 | openssl engine chil -pre FORK_CHECK:0 -pre SO_PATH:/lib/test.so | |
14166 | ||
14167 | *Geoff* | |
14168 | ||
14169 | * New dynamic control command support for ENGINEs. ENGINEs can now | |
14170 | declare their own commands (numbers), names (strings), descriptions, | |
14171 | and input types for run-time discovery by calling applications. A | |
14172 | subset of these commands are implicitly classed as "executable" | |
14173 | depending on their input type, and only these can be invoked through | |
14174 | the new string-based API function ENGINE_ctrl_cmd_string(). (Eg. this | |
14175 | can be based on user input, config files, etc). The distinction is | |
14176 | that "executable" commands cannot return anything other than a boolean | |
14177 | result and can only support numeric or string input, whereas some | |
14178 | discoverable commands may only be for direct use through | |
14179 | ENGINE_ctrl(), eg. supporting the exchange of binary data, function | |
14180 | pointers, or other custom uses. The "executable" commands are to | |
14181 | support parameterisations of ENGINE behaviour that can be | |
14182 | unambiguously defined by ENGINEs and used consistently across any | |
14183 | OpenSSL-based application. Commands have been added to all the | |
14184 | existing hardware-supporting ENGINEs, noticeably "SO_PATH" to allow | |
14185 | control over shared-library paths without source code alterations. | |
14186 | ||
14187 | *Geoff* | |
14188 | ||
14189 | * Changed all ENGINE implementations to dynamically allocate their | |
14190 | ENGINEs rather than declaring them statically. Apart from this being | |
14191 | necessary with the removal of the ENGINE_FLAGS_MALLOCED distinction, | |
14192 | this also allows the implementations to compile without using the | |
14193 | internal engine_int.h header. | |
14194 | ||
14195 | *Geoff* | |
14196 | ||
14197 | * Minor adjustment to "rand" code. RAND_get_rand_method() now returns a | |
14198 | 'const' value. Any code that should be able to modify a RAND_METHOD | |
14199 | should already have non-const pointers to it (ie. they should only | |
14200 | modify their own ones). | |
14201 | ||
14202 | *Geoff* | |
14203 | ||
14204 | * Made a variety of little tweaks to the ENGINE code. | |
14205 | - "atalla" and "ubsec" string definitions were moved from header files | |
14206 | to C code. "nuron" string definitions were placed in variables | |
14207 | rather than hard-coded - allowing parameterisation of these values | |
14208 | later on via ctrl() commands. | |
14209 | - Removed unused "#if 0"'d code. | |
14210 | - Fixed engine list iteration code so it uses ENGINE_free() to release | |
14211 | structural references. | |
14212 | - Constified the RAND_METHOD element of ENGINE structures. | |
14213 | - Constified various get/set functions as appropriate and added | |
14214 | missing functions (including a catch-all ENGINE_cpy that duplicates | |
14215 | all ENGINE values onto a new ENGINE except reference counts/state). | |
14216 | - Removed NULL parameter checks in get/set functions. Setting a method | |
14217 | or function to NULL is a way of cancelling out a previously set | |
14218 | value. Passing a NULL ENGINE parameter is just plain stupid anyway | |
14219 | and doesn't justify the extra error symbols and code. | |
14220 | - Deprecate the ENGINE_FLAGS_MALLOCED define and move the area for | |
14221 | flags from engine_int.h to engine.h. | |
14222 | - Changed prototypes for ENGINE handler functions (init(), finish(), | |
14223 | ctrl(), key-load functions, etc) to take an (ENGINE*) parameter. | |
14224 | ||
14225 | *Geoff* | |
14226 | ||
14227 | * Implement binary inversion algorithm for BN_mod_inverse in addition | |
14228 | to the algorithm using long division. The binary algorithm can be | |
14229 | used only if the modulus is odd. On 32-bit systems, it is faster | |
14230 | only for relatively small moduli (roughly 20-30% for 128-bit moduli, | |
14231 | roughly 5-15% for 256-bit moduli), so we use it only for moduli | |
14232 | up to 450 bits. In 64-bit environments, the binary algorithm | |
14233 | appears to be advantageous for much longer moduli; here we use it | |
14234 | for moduli up to 2048 bits. | |
14235 | ||
14236 | *Bodo Moeller* | |
14237 | ||
14238 | * Rewrite CHOICE field setting in ASN1_item_ex_d2i(). The old code | |
14239 | could not support the combine flag in choice fields. | |
14240 | ||
14241 | *Steve Henson* | |
14242 | ||
14243 | * Add a 'copy_extensions' option to the 'ca' utility. This copies | |
14244 | extensions from a certificate request to the certificate. | |
14245 | ||
14246 | *Steve Henson* | |
14247 | ||
14248 | * Allow multiple 'certopt' and 'nameopt' options to be separated | |
14249 | by commas. Add 'namopt' and 'certopt' options to the 'ca' config | |
14250 | file: this allows the display of the certificate about to be | |
14251 | signed to be customised, to allow certain fields to be included | |
14252 | or excluded and extension details. The old system didn't display | |
14253 | multicharacter strings properly, omitted fields not in the policy | |
14254 | and couldn't display additional details such as extensions. | |
14255 | ||
14256 | *Steve Henson* | |
14257 | ||
14258 | * Function EC_POINTs_mul for multiple scalar multiplication | |
14259 | of an arbitrary number of elliptic curve points | |
14260 | \sum scalars[i]*points[i], | |
14261 | optionally including the generator defined for the EC_GROUP: | |
14262 | scalar*generator + \sum scalars[i]*points[i]. | |
14263 | ||
14264 | EC_POINT_mul is a simple wrapper function for the typical case | |
14265 | that the point list has just one item (besides the optional | |
14266 | generator). | |
14267 | ||
14268 | *Bodo Moeller* | |
14269 | ||
14270 | * First EC_METHODs for curves over GF(p): | |
14271 | ||
14272 | EC_GFp_simple_method() uses the basic BN_mod_mul and BN_mod_sqr | |
14273 | operations and provides various method functions that can also | |
14274 | operate with faster implementations of modular arithmetic. | |
14275 | ||
14276 | EC_GFp_mont_method() reuses most functions that are part of | |
14277 | EC_GFp_simple_method, but uses Montgomery arithmetic. | |
14278 | ||
14279 | *Bodo Moeller; point addition and point doubling | |
14280 | implementation directly derived from source code provided by | |
14281 | Lenka Fibikova <fibikova@exp-math.uni-essen.de>* | |
14282 | ||
14283 | * Framework for elliptic curves (crypto/ec/ec.h, crypto/ec/ec_lcl.h, | |
14284 | crypto/ec/ec_lib.c): | |
14285 | ||
14286 | Curves are EC_GROUP objects (with an optional group generator) | |
14287 | based on EC_METHODs that are built into the library. | |
14288 | ||
14289 | Points are EC_POINT objects based on EC_GROUP objects. | |
14290 | ||
14291 | Most of the framework would be able to handle curves over arbitrary | |
14292 | finite fields, but as there are no obvious types for fields other | |
14293 | than GF(p), some functions are limited to that for now. | |
14294 | ||
14295 | *Bodo Moeller* | |
14296 | ||
14297 | * Add the -HTTP option to s_server. It is similar to -WWW, but requires | |
14298 | that the file contains a complete HTTP response. | |
14299 | ||
14300 | *Richard Levitte* | |
14301 | ||
14302 | * Add the ec directory to mkdef.pl and mkfiles.pl. In mkdef.pl | |
14303 | change the def and num file printf format specifier from "%-40sXXX" | |
14304 | to "%-39s XXX". The latter will always guarantee a space after the | |
14305 | field while the former will cause them to run together if the field | |
14306 | is 40 of more characters long. | |
14307 | ||
14308 | *Steve Henson* | |
14309 | ||
14310 | * Constify the cipher and digest 'method' functions and structures | |
14311 | and modify related functions to take constant EVP_MD and EVP_CIPHER | |
14312 | pointers. | |
14313 | ||
14314 | *Steve Henson* | |
14315 | ||
14316 | * Hide BN_CTX structure details in bn_lcl.h instead of publishing them | |
14317 | in <openssl/bn.h>. Also further increase BN_CTX_NUM to 32. | |
14318 | ||
14319 | *Bodo Moeller* | |
14320 | ||
257e9d03 | 14321 | * Modify `EVP_Digest*()` routines so they now return values. Although the |
5f8e6c50 DMSP |
14322 | internal software routines can never fail additional hardware versions |
14323 | might. | |
14324 | ||
14325 | *Steve Henson* | |
14326 | ||
14327 | * Clean up crypto/err/err.h and change some error codes to avoid conflicts: | |
14328 | ||
14329 | Previously ERR_R_FATAL was too small and coincided with ERR_LIB_PKCS7 | |
14330 | (= ERR_R_PKCS7_LIB); it is now 64 instead of 32. | |
14331 | ||
14332 | ASN1 error codes | |
14333 | ERR_R_NESTED_ASN1_ERROR | |
14334 | ... | |
14335 | ERR_R_MISSING_ASN1_EOS | |
14336 | were 4 .. 9, conflicting with | |
14337 | ERR_LIB_RSA (= ERR_R_RSA_LIB) | |
14338 | ... | |
14339 | ERR_LIB_PEM (= ERR_R_PEM_LIB). | |
14340 | They are now 58 .. 63 (i.e., just below ERR_R_FATAL). | |
14341 | ||
14342 | Add new error code 'ERR_R_INTERNAL_ERROR'. | |
14343 | ||
14344 | *Bodo Moeller* | |
14345 | ||
14346 | * Don't overuse locks in crypto/err/err.c: For data retrieval, CRYPTO_r_lock | |
14347 | suffices. | |
14348 | ||
14349 | *Bodo Moeller* | |
14350 | ||
14351 | * New option '-subj arg' for 'openssl req' and 'openssl ca'. This | |
14352 | sets the subject name for a new request or supersedes the | |
14353 | subject name in a given request. Formats that can be parsed are | |
14354 | 'CN=Some Name, OU=myOU, C=IT' | |
14355 | and | |
14356 | 'CN=Some Name/OU=myOU/C=IT'. | |
14357 | ||
14358 | Add options '-batch' and '-verbose' to 'openssl req'. | |
14359 | ||
14360 | *Massimiliano Pala <madwolf@hackmasters.net>* | |
14361 | ||
14362 | * Introduce the possibility to access global variables through | |
14363 | functions on platform were that's the best way to handle exporting | |
14364 | global variables in shared libraries. To enable this functionality, | |
14365 | one must configure with "EXPORT_VAR_AS_FN" or defined the C macro | |
14366 | "OPENSSL_EXPORT_VAR_AS_FUNCTION" in crypto/opensslconf.h (the latter | |
14367 | is normally done by Configure or something similar). | |
14368 | ||
14369 | To implement a global variable, use the macro OPENSSL_IMPLEMENT_GLOBAL | |
14370 | in the source file (foo.c) like this: | |
14371 | ||
14372 | OPENSSL_IMPLEMENT_GLOBAL(int,foo)=1; | |
14373 | OPENSSL_IMPLEMENT_GLOBAL(double,bar); | |
14374 | ||
14375 | To declare a global variable, use the macros OPENSSL_DECLARE_GLOBAL | |
14376 | and OPENSSL_GLOBAL_REF in the header file (foo.h) like this: | |
14377 | ||
14378 | OPENSSL_DECLARE_GLOBAL(int,foo); | |
14379 | #define foo OPENSSL_GLOBAL_REF(foo) | |
14380 | OPENSSL_DECLARE_GLOBAL(double,bar); | |
14381 | #define bar OPENSSL_GLOBAL_REF(bar) | |
14382 | ||
14383 | The #defines are very important, and therefore so is including the | |
14384 | header file everywhere where the defined globals are used. | |
14385 | ||
14386 | The macro OPENSSL_EXPORT_VAR_AS_FUNCTION also affects the definition | |
14387 | of ASN.1 items, but that structure is a bit different. | |
14388 | ||
14389 | The largest change is in util/mkdef.pl which has been enhanced with | |
14390 | better and easier to understand logic to choose which symbols should | |
14391 | go into the Windows .def files as well as a number of fixes and code | |
14392 | cleanup (among others, algorithm keywords are now sorted | |
14393 | lexicographically to avoid constant rewrites). | |
14394 | ||
14395 | *Richard Levitte* | |
14396 | ||
14397 | * In BN_div() keep a copy of the sign of 'num' before writing the | |
14398 | result to 'rm' because if rm==num the value will be overwritten | |
14399 | and produce the wrong result if 'num' is negative: this caused | |
14400 | problems with BN_mod() and BN_nnmod(). | |
14401 | ||
14402 | *Steve Henson* | |
14403 | ||
14404 | * Function OCSP_request_verify(). This checks the signature on an | |
14405 | OCSP request and verifies the signer certificate. The signer | |
14406 | certificate is just checked for a generic purpose and OCSP request | |
14407 | trust settings. | |
14408 | ||
14409 | *Steve Henson* | |
14410 | ||
14411 | * Add OCSP_check_validity() function to check the validity of OCSP | |
14412 | responses. OCSP responses are prepared in real time and may only | |
14413 | be a few seconds old. Simply checking that the current time lies | |
14414 | between thisUpdate and nextUpdate max reject otherwise valid responses | |
14415 | caused by either OCSP responder or client clock inaccuracy. Instead | |
14416 | we allow thisUpdate and nextUpdate to fall within a certain period of | |
14417 | the current time. The age of the response can also optionally be | |
14418 | checked. Two new options -validity_period and -status_age added to | |
14419 | ocsp utility. | |
14420 | ||
14421 | *Steve Henson* | |
14422 | ||
14423 | * If signature or public key algorithm is unrecognized print out its | |
14424 | OID rather that just UNKNOWN. | |
14425 | ||
14426 | *Steve Henson* | |
14427 | ||
14428 | * Change OCSP_cert_to_id() to tolerate a NULL subject certificate and | |
14429 | OCSP_cert_id_new() a NULL serialNumber. This allows a partial certificate | |
14430 | ID to be generated from the issuer certificate alone which can then be | |
14431 | passed to OCSP_id_issuer_cmp(). | |
14432 | ||
14433 | *Steve Henson* | |
14434 | ||
14435 | * New compilation option ASN1_ITEM_FUNCTIONS. This causes the new | |
14436 | ASN1 modules to export functions returning ASN1_ITEM pointers | |
14437 | instead of the ASN1_ITEM structures themselves. This adds several | |
14438 | new macros which allow the underlying ASN1 function/structure to | |
14439 | be accessed transparently. As a result code should not use ASN1_ITEM | |
14440 | references directly (such as &X509_it) but instead use the relevant | |
14441 | macros (such as ASN1_ITEM_rptr(X509)). This option is to allow | |
14442 | use of the new ASN1 code on platforms where exporting structures | |
14443 | is problematical (for example in shared libraries) but exporting | |
14444 | functions returning pointers to structures is not. | |
14445 | ||
14446 | *Steve Henson* | |
14447 | ||
14448 | * Add support for overriding the generation of SSL/TLS session IDs. | |
14449 | These callbacks can be registered either in an SSL_CTX or per SSL. | |
14450 | The purpose of this is to allow applications to control, if they wish, | |
14451 | the arbitrary values chosen for use as session IDs, particularly as it | |
14452 | can be useful for session caching in multiple-server environments. A | |
14453 | command-line switch for testing this (and any client code that wishes | |
14454 | to use such a feature) has been added to "s_server". | |
14455 | ||
14456 | *Geoff Thorpe, Lutz Jaenicke* | |
14457 | ||
14458 | * Modify mkdef.pl to recognise and parse preprocessor conditionals | |
1dc1ea18 DDO |
14459 | of the form `#if defined(...) || defined(...) || ...` and |
14460 | `#if !defined(...) && !defined(...) && ...`. This also avoids | |
5f8e6c50 DMSP |
14461 | the growing number of special cases it was previously handling. |
14462 | ||
14463 | *Richard Levitte* | |
14464 | ||
14465 | * Make all configuration macros available for application by making | |
14466 | sure they are available in opensslconf.h, by giving them names starting | |
257e9d03 | 14467 | with `OPENSSL_` to avoid conflicts with other packages and by making |
5f8e6c50 DMSP |
14468 | sure e_os2.h will cover all platform-specific cases together with |
14469 | opensslconf.h. | |
14470 | Additionally, it is now possible to define configuration/platform- | |
14471 | specific names (called "system identities"). In the C code, these | |
257e9d03 RS |
14472 | are prefixed with `OPENSSL_SYSNAME_`. e_os2.h will create another |
14473 | macro with the name beginning with `OPENSSL_SYS_`, which is determined | |
14474 | from `OPENSSL_SYSNAME_*` or compiler-specific macros depending on | |
5f8e6c50 DMSP |
14475 | what is available. |
14476 | ||
14477 | *Richard Levitte* | |
14478 | ||
14479 | * New option -set_serial to 'req' and 'x509' this allows the serial | |
14480 | number to use to be specified on the command line. Previously self | |
14481 | signed certificates were hard coded with serial number 0 and the | |
14482 | CA options of 'x509' had to use a serial number in a file which was | |
14483 | auto incremented. | |
14484 | ||
14485 | *Steve Henson* | |
14486 | ||
14487 | * New options to 'ca' utility to support V2 CRL entry extensions. | |
14488 | Currently CRL reason, invalidity date and hold instruction are | |
14489 | supported. Add new CRL extensions to V3 code and some new objects. | |
14490 | ||
14491 | *Steve Henson* | |
14492 | ||
14493 | * New function EVP_CIPHER_CTX_set_padding() this is used to | |
14494 | disable standard block padding (aka PKCS#5 padding) in the EVP | |
14495 | API, which was previously mandatory. This means that the data is | |
14496 | not padded in any way and so the total length much be a multiple | |
14497 | of the block size, otherwise an error occurs. | |
14498 | ||
14499 | *Steve Henson* | |
14500 | ||
14501 | * Initial (incomplete) OCSP SSL support. | |
14502 | ||
14503 | *Steve Henson* | |
14504 | ||
14505 | * New function OCSP_parse_url(). This splits up a URL into its host, | |
14506 | port and path components: primarily to parse OCSP URLs. New -url | |
14507 | option to ocsp utility. | |
14508 | ||
14509 | *Steve Henson* | |
14510 | ||
14511 | * New nonce behavior. The return value of OCSP_check_nonce() now | |
14512 | reflects the various checks performed. Applications can decide | |
14513 | whether to tolerate certain situations such as an absent nonce | |
14514 | in a response when one was present in a request: the ocsp application | |
14515 | just prints out a warning. New function OCSP_add1_basic_nonce() | |
14516 | this is to allow responders to include a nonce in a response even if | |
14517 | the request is nonce-less. | |
14518 | ||
14519 | *Steve Henson* | |
14520 | ||
ec2bfb7d | 14521 | * Disable stdin buffering in `load_cert()` (`apps/apps.c`) so that no certs are |
5f8e6c50 | 14522 | skipped when using openssl x509 multiple times on a single input file, |
257e9d03 | 14523 | e.g. `(openssl x509 -out cert1; openssl x509 -out cert2) <certs`. |
5f8e6c50 DMSP |
14524 | |
14525 | *Bodo Moeller* | |
14526 | ||
14527 | * Make ASN1_UTCTIME_set_string() and ASN1_GENERALIZEDTIME_set_string() | |
14528 | set string type: to handle setting ASN1_TIME structures. Fix ca | |
14529 | utility to correctly initialize revocation date of CRLs. | |
14530 | ||
14531 | *Steve Henson* | |
14532 | ||
14533 | * New option SSL_OP_CIPHER_SERVER_PREFERENCE allows the server to override | |
14534 | the clients preferred ciphersuites and rather use its own preferences. | |
14535 | Should help to work around M$ SGC (Server Gated Cryptography) bug in | |
14536 | Internet Explorer by ensuring unchanged hash method during stepup. | |
14537 | (Also replaces the broken/deactivated SSL_OP_NON_EXPORT_FIRST option.) | |
14538 | ||
14539 | *Lutz Jaenicke* | |
14540 | ||
14541 | * Make mkdef.pl recognise all DECLARE_ASN1 macros, change rijndael | |
14542 | to aes and add a new 'exist' option to print out symbols that don't | |
14543 | appear to exist. | |
14544 | ||
14545 | *Steve Henson* | |
14546 | ||
14547 | * Additional options to ocsp utility to allow flags to be set and | |
14548 | additional certificates supplied. | |
14549 | ||
14550 | *Steve Henson* | |
14551 | ||
14552 | * Add the option -VAfile to 'openssl ocsp', so the user can give the | |
14553 | OCSP client a number of certificate to only verify the response | |
14554 | signature against. | |
14555 | ||
14556 | *Richard Levitte* | |
14557 | ||
14558 | * Update Rijndael code to version 3.0 and change EVP AES ciphers to | |
14559 | handle the new API. Currently only ECB, CBC modes supported. Add new | |
14560 | AES OIDs. | |
14561 | ||
14562 | Add TLS AES ciphersuites as described in RFC3268, "Advanced | |
14563 | Encryption Standard (AES) Ciphersuites for Transport Layer | |
14564 | Security (TLS)". (In beta versions of OpenSSL 0.9.7, these were | |
14565 | not enabled by default and were not part of the "ALL" ciphersuite | |
14566 | alias because they were not yet official; they could be | |
14567 | explicitly requested by specifying the "AESdraft" ciphersuite | |
14568 | group alias. In the final release of OpenSSL 0.9.7, the group | |
14569 | alias is called "AES" and is part of "ALL".) | |
14570 | ||
14571 | *Ben Laurie, Steve Henson, Bodo Moeller* | |
14572 | ||
14573 | * New function OCSP_copy_nonce() to copy nonce value (if present) from | |
14574 | request to response. | |
14575 | ||
14576 | *Steve Henson* | |
14577 | ||
14578 | * Functions for OCSP responders. OCSP_request_onereq_count(), | |
14579 | OCSP_request_onereq_get0(), OCSP_onereq_get0_id() and OCSP_id_get0_info() | |
14580 | extract information from a certificate request. OCSP_response_create() | |
14581 | creates a response and optionally adds a basic response structure. | |
14582 | OCSP_basic_add1_status() adds a complete single response to a basic | |
14583 | response and returns the OCSP_SINGLERESP structure just added (to allow | |
14584 | extensions to be included for example). OCSP_basic_add1_cert() adds a | |
14585 | certificate to a basic response and OCSP_basic_sign() signs a basic | |
14586 | response with various flags. New helper functions ASN1_TIME_check() | |
14587 | (checks validity of ASN1_TIME structure) and ASN1_TIME_to_generalizedtime() | |
14588 | (converts ASN1_TIME to GeneralizedTime). | |
14589 | ||
14590 | *Steve Henson* | |
14591 | ||
14592 | * Various new functions. EVP_Digest() combines EVP_Digest{Init,Update,Final}() | |
14593 | in a single operation. X509_get0_pubkey_bitstr() extracts the public_key | |
14594 | structure from a certificate. X509_pubkey_digest() digests the public_key | |
14595 | contents: this is used in various key identifiers. | |
14596 | ||
14597 | *Steve Henson* | |
14598 | ||
14599 | * Make sk_sort() tolerate a NULL argument. | |
14600 | ||
14601 | *Steve Henson reported by Massimiliano Pala <madwolf@comune.modena.it>* | |
14602 | ||
14603 | * New OCSP verify flag OCSP_TRUSTOTHER. When set the "other" certificates | |
14604 | passed by the function are trusted implicitly. If any of them signed the | |
14605 | response then it is assumed to be valid and is not verified. | |
14606 | ||
14607 | *Steve Henson* | |
14608 | ||
14609 | * In PKCS7_set_type() initialise content_type in PKCS7_ENC_CONTENT | |
14610 | to data. This was previously part of the PKCS7 ASN1 code. This | |
14611 | was causing problems with OpenSSL created PKCS#12 and PKCS#7 structures. | |
14612 | *Steve Henson, reported by Kenneth R. Robinette | |
14613 | <support@securenetterm.com>* | |
14614 | ||
14615 | * Add CRYPTO_push_info() and CRYPTO_pop_info() calls to new ASN1 | |
14616 | routines: without these tracing memory leaks is very painful. | |
14617 | Fix leaks in PKCS12 and PKCS7 routines. | |
14618 | ||
14619 | *Steve Henson* | |
14620 | ||
14621 | * Make X509_time_adj() cope with the new behaviour of ASN1_TIME_new(). | |
14622 | Previously it initialised the 'type' argument to V_ASN1_UTCTIME which | |
14623 | effectively meant GeneralizedTime would never be used. Now it | |
14624 | is initialised to -1 but X509_time_adj() now has to check the value | |
14625 | and use ASN1_TIME_set() if the value is not V_ASN1_UTCTIME or | |
14626 | V_ASN1_GENERALIZEDTIME, without this it always uses GeneralizedTime. | |
14627 | *Steve Henson, reported by Kenneth R. Robinette | |
14628 | <support@securenetterm.com>* | |
14629 | ||
14630 | * Fixes to BN_to_ASN1_INTEGER when bn is zero. This would previously | |
14631 | result in a zero length in the ASN1_INTEGER structure which was | |
14632 | not consistent with the structure when d2i_ASN1_INTEGER() was used | |
14633 | and would cause ASN1_INTEGER_cmp() to fail. Enhance s2i_ASN1_INTEGER() | |
14634 | to cope with hex and negative integers. Fix bug in i2a_ASN1_INTEGER() | |
14635 | where it did not print out a minus for negative ASN1_INTEGER. | |
14636 | ||
14637 | *Steve Henson* | |
14638 | ||
14639 | * Add summary printout to ocsp utility. The various functions which | |
14640 | convert status values to strings have been renamed to: | |
14641 | OCSP_response_status_str(), OCSP_cert_status_str() and | |
14642 | OCSP_crl_reason_str() and are no longer static. New options | |
14643 | to verify nonce values and to disable verification. OCSP response | |
14644 | printout format cleaned up. | |
14645 | ||
14646 | *Steve Henson* | |
14647 | ||
14648 | * Add additional OCSP certificate checks. These are those specified | |
14649 | in RFC2560. This consists of two separate checks: the CA of the | |
14650 | certificate being checked must either be the OCSP signer certificate | |
14651 | or the issuer of the OCSP signer certificate. In the latter case the | |
14652 | OCSP signer certificate must contain the OCSP signing extended key | |
14653 | usage. This check is performed by attempting to match the OCSP | |
14654 | signer or the OCSP signer CA to the issuerNameHash and issuerKeyHash | |
14655 | in the OCSP_CERTID structures of the response. | |
14656 | ||
14657 | *Steve Henson* | |
14658 | ||
14659 | * Initial OCSP certificate verification added to OCSP_basic_verify() | |
14660 | and related routines. This uses the standard OpenSSL certificate | |
14661 | verify routines to perform initial checks (just CA validity) and | |
14662 | to obtain the certificate chain. Then additional checks will be | |
14663 | performed on the chain. Currently the root CA is checked to see | |
14664 | if it is explicitly trusted for OCSP signing. This is used to set | |
14665 | a root CA as a global signing root: that is any certificate that | |
14666 | chains to that CA is an acceptable OCSP signing certificate. | |
14667 | ||
14668 | *Steve Henson* | |
14669 | ||
14670 | * New '-extfile ...' option to 'openssl ca' for reading X.509v3 | |
14671 | extensions from a separate configuration file. | |
14672 | As when reading extensions from the main configuration file, | |
14673 | the '-extensions ...' option may be used for specifying the | |
14674 | section to use. | |
14675 | ||
14676 | *Massimiliano Pala <madwolf@comune.modena.it>* | |
14677 | ||
14678 | * New OCSP utility. Allows OCSP requests to be generated or | |
14679 | read. The request can be sent to a responder and the output | |
44652c16 | 14680 | parsed, outputted or printed in text form. Not complete yet: |
5f8e6c50 DMSP |
14681 | still needs to check the OCSP response validity. |
14682 | ||
14683 | *Steve Henson* | |
14684 | ||
14685 | * New subcommands for 'openssl ca': | |
257e9d03 | 14686 | `openssl ca -status <serial>` prints the status of the cert with |
5f8e6c50 | 14687 | the given serial number (according to the index file). |
257e9d03 | 14688 | `openssl ca -updatedb` updates the expiry status of certificates |
5f8e6c50 DMSP |
14689 | in the index file. |
14690 | ||
14691 | *Massimiliano Pala <madwolf@comune.modena.it>* | |
14692 | ||
14693 | * New '-newreq-nodes' command option to CA.pl. This is like | |
14694 | '-newreq', but calls 'openssl req' with the '-nodes' option | |
14695 | so that the resulting key is not encrypted. | |
14696 | ||
14697 | *Damien Miller <djm@mindrot.org>* | |
14698 | ||
14699 | * New configuration for the GNU Hurd. | |
14700 | ||
14701 | *Jonathan Bartlett <johnnyb@wolfram.com> via Richard Levitte* | |
14702 | ||
14703 | * Initial code to implement OCSP basic response verify. This | |
14704 | is currently incomplete. Currently just finds the signer's | |
14705 | certificate and verifies the signature on the response. | |
14706 | ||
14707 | *Steve Henson* | |
14708 | ||
14709 | * New SSLeay_version code SSLEAY_DIR to determine the compiled-in | |
14710 | value of OPENSSLDIR. This is available via the new '-d' option | |
14711 | to 'openssl version', and is also included in 'openssl version -a'. | |
14712 | ||
14713 | *Bodo Moeller* | |
14714 | ||
14715 | * Allowing defining memory allocation callbacks that will be given | |
14716 | file name and line number information in additional arguments | |
257e9d03 | 14717 | (a `const char*` and an int). The basic functionality remains, as |
5f8e6c50 DMSP |
14718 | well as the original possibility to just replace malloc(), |
14719 | realloc() and free() by functions that do not know about these | |
14720 | additional arguments. To register and find out the current | |
14721 | settings for extended allocation functions, the following | |
14722 | functions are provided: | |
14723 | ||
14724 | CRYPTO_set_mem_ex_functions | |
14725 | CRYPTO_set_locked_mem_ex_functions | |
14726 | CRYPTO_get_mem_ex_functions | |
14727 | CRYPTO_get_locked_mem_ex_functions | |
14728 | ||
14729 | These work the same way as CRYPTO_set_mem_functions and friends. | |
257e9d03 | 14730 | `CRYPTO_get_[locked_]mem_functions` now writes 0 where such an |
5f8e6c50 | 14731 | extended allocation function is enabled. |
257e9d03 | 14732 | Similarly, `CRYPTO_get_[locked_]mem_ex_functions` writes 0 where |
5f8e6c50 DMSP |
14733 | a conventional allocation function is enabled. |
14734 | ||
14735 | *Richard Levitte, Bodo Moeller* | |
14736 | ||
14737 | * Finish off removing the remaining LHASH function pointer casts. | |
14738 | There should no longer be any prototype-casting required when using | |
14739 | the LHASH abstraction, and any casts that remain are "bugs". See | |
14740 | the callback types and macros at the head of lhash.h for details | |
14741 | (and "OBJ_cleanup" in crypto/objects/obj_dat.c as an example). | |
14742 | ||
14743 | *Geoff Thorpe* | |
14744 | ||
14745 | * Add automatic query of EGD sockets in RAND_poll() for the unix variant. | |
14746 | If /dev/[u]random devices are not available or do not return enough | |
14747 | entropy, EGD style sockets (served by EGD or PRNGD) will automatically | |
14748 | be queried. | |
14749 | The locations /var/run/egd-pool, /dev/egd-pool, /etc/egd-pool, and | |
14750 | /etc/entropy will be queried once each in this sequence, querying stops | |
14751 | when enough entropy was collected without querying more sockets. | |
14752 | ||
14753 | *Lutz Jaenicke* | |
14754 | ||
14755 | * Change the Unix RAND_poll() variant to be able to poll several | |
14756 | random devices, as specified by DEVRANDOM, until a sufficient amount | |
14757 | of data has been collected. We spend at most 10 ms on each file | |
14758 | (select timeout) and read in non-blocking mode. DEVRANDOM now | |
14759 | defaults to the list "/dev/urandom", "/dev/random", "/dev/srandom" | |
14760 | (previously it was just the string "/dev/urandom"), so on typical | |
14761 | platforms the 10 ms delay will never occur. | |
14762 | Also separate out the Unix variant to its own file, rand_unix.c. | |
14763 | For VMS, there's a currently-empty rand_vms.c. | |
14764 | ||
14765 | *Richard Levitte* | |
14766 | ||
14767 | * Move OCSP client related routines to ocsp_cl.c. These | |
14768 | provide utility functions which an application needing | |
14769 | to issue a request to an OCSP responder and analyse the | |
14770 | response will typically need: as opposed to those which an | |
14771 | OCSP responder itself would need which will be added later. | |
14772 | ||
14773 | OCSP_request_sign() signs an OCSP request with an API similar | |
14774 | to PKCS7_sign(). OCSP_response_status() returns status of OCSP | |
14775 | response. OCSP_response_get1_basic() extracts basic response | |
14776 | from response. OCSP_resp_find_status(): finds and extracts status | |
14777 | information from an OCSP_CERTID structure (which will be created | |
14778 | when the request structure is built). These are built from lower | |
14779 | level functions which work on OCSP_SINGLERESP structures but | |
14780 | won't normally be used unless the application wishes to examine | |
14781 | extensions in the OCSP response for example. | |
14782 | ||
14783 | Replace nonce routines with a pair of functions. | |
14784 | OCSP_request_add1_nonce() adds a nonce value and optionally | |
14785 | generates a random value. OCSP_check_nonce() checks the | |
14786 | validity of the nonce in an OCSP response. | |
14787 | ||
14788 | *Steve Henson* | |
14789 | ||
14790 | * Change function OCSP_request_add() to OCSP_request_add0_id(). | |
14791 | This doesn't copy the supplied OCSP_CERTID and avoids the | |
14792 | need to free up the newly created id. Change return type | |
14793 | to OCSP_ONEREQ to return the internal OCSP_ONEREQ structure. | |
14794 | This can then be used to add extensions to the request. | |
14795 | Deleted OCSP_request_new(), since most of its functionality | |
14796 | is now in OCSP_REQUEST_new() (and the case insensitive name | |
14797 | clash) apart from the ability to set the request name which | |
14798 | will be added elsewhere. | |
14799 | ||
14800 | *Steve Henson* | |
14801 | ||
14802 | * Update OCSP API. Remove obsolete extensions argument from | |
14803 | various functions. Extensions are now handled using the new | |
14804 | OCSP extension code. New simple OCSP HTTP function which | |
14805 | can be used to send requests and parse the response. | |
14806 | ||
14807 | *Steve Henson* | |
14808 | ||
14809 | * Fix the PKCS#7 (S/MIME) code to work with new ASN1. Two new | |
14810 | ASN1_ITEM structures help with sign and verify. PKCS7_ATTR_SIGN | |
14811 | uses the special reorder version of SET OF to sort the attributes | |
14812 | and reorder them to match the encoded order. This resolves a long | |
14813 | standing problem: a verify on a PKCS7 structure just after signing | |
14814 | it used to fail because the attribute order did not match the | |
14815 | encoded order. PKCS7_ATTR_VERIFY does not reorder the attributes: | |
14816 | it uses the received order. This is necessary to tolerate some broken | |
14817 | software that does not order SET OF. This is handled by encoding | |
14818 | as a SEQUENCE OF but using implicit tagging (with UNIVERSAL class) | |
14819 | to produce the required SET OF. | |
14820 | ||
14821 | *Steve Henson* | |
14822 | ||
14823 | * Have mk1mf.pl generate the macros OPENSSL_BUILD_SHLIBCRYPTO and | |
14824 | OPENSSL_BUILD_SHLIBSSL and use them appropriately in the header | |
14825 | files to get correct declarations of the ASN.1 item variables. | |
14826 | ||
14827 | *Richard Levitte* | |
14828 | ||
14829 | * Rewrite of PKCS#12 code to use new ASN1 functionality. Replace many | |
14830 | PKCS#12 macros with real functions. Fix two unrelated ASN1 bugs: | |
14831 | asn1_check_tlen() would sometimes attempt to use 'ctx' when it was | |
14832 | NULL and ASN1_TYPE was not dereferenced properly in asn1_ex_c2i(). | |
14833 | New ASN1 macro: DECLARE_ASN1_ITEM() which just declares the relevant | |
14834 | ASN1_ITEM and no wrapper functions. | |
14835 | ||
14836 | *Steve Henson* | |
14837 | ||
14838 | * New functions or ASN1_item_d2i_fp() and ASN1_item_d2i_bio(). These | |
14839 | replace the old function pointer based I/O routines. Change most of | |
257e9d03 | 14840 | the `*_d2i_bio()` and `*_d2i_fp()` functions to use these. |
5f8e6c50 DMSP |
14841 | |
14842 | *Steve Henson* | |
14843 | ||
14844 | * Enhance mkdef.pl to be more accepting about spacing in C preprocessor | |
14845 | lines, recognize more "algorithms" that can be deselected, and make | |
14846 | it complain about algorithm deselection that isn't recognised. | |
14847 | ||
14848 | *Richard Levitte* | |
14849 | ||
14850 | * New ASN1 functions to handle dup, sign, verify, digest, pack and | |
14851 | unpack operations in terms of ASN1_ITEM. Modify existing wrappers | |
14852 | to use new functions. Add NO_ASN1_OLD which can be set to remove | |
14853 | some old style ASN1 functions: this can be used to determine if old | |
14854 | code will still work when these eventually go away. | |
14855 | ||
14856 | *Steve Henson* | |
14857 | ||
14858 | * New extension functions for OCSP structures, these follow the | |
14859 | same conventions as certificates and CRLs. | |
14860 | ||
14861 | *Steve Henson* | |
14862 | ||
14863 | * New function X509V3_add1_i2d(). This automatically encodes and | |
14864 | adds an extension. Its behaviour can be customised with various | |
14865 | flags to append, replace or delete. Various wrappers added for | |
14866 | certificates and CRLs. | |
14867 | ||
14868 | *Steve Henson* | |
14869 | ||
14870 | * Fix to avoid calling the underlying ASN1 print routine when | |
14871 | an extension cannot be parsed. Correct a typo in the | |
14872 | OCSP_SERVICELOC extension. Tidy up print OCSP format. | |
14873 | ||
14874 | *Steve Henson* | |
14875 | ||
14876 | * Make mkdef.pl parse some of the ASN1 macros and add appropriate | |
14877 | entries for variables. | |
14878 | ||
14879 | *Steve Henson* | |
14880 | ||
ec2bfb7d | 14881 | * Add functionality to `apps/openssl.c` for detecting locking |
5f8e6c50 DMSP |
14882 | problems: As the program is single-threaded, all we have |
14883 | to do is register a locking callback using an array for | |
14884 | storing which locks are currently held by the program. | |
14885 | ||
14886 | *Bodo Moeller* | |
14887 | ||
14888 | * Use a lock around the call to CRYPTO_get_ex_new_index() in | |
14889 | SSL_get_ex_data_X509_STORE_idx(), which is used in | |
14890 | ssl_verify_cert_chain() and thus can be called at any time | |
14891 | during TLS/SSL handshakes so that thread-safety is essential. | |
14892 | Unfortunately, the ex_data design is not at all suited | |
14893 | for multi-threaded use, so it probably should be abolished. | |
14894 | ||
14895 | *Bodo Moeller* | |
14896 | ||
14897 | * Added Broadcom "ubsec" ENGINE to OpenSSL. | |
14898 | ||
14899 | *Broadcom, tweaked and integrated by Geoff Thorpe* | |
14900 | ||
14901 | * Move common extension printing code to new function | |
14902 | X509V3_print_extensions(). Reorganise OCSP print routines and | |
14903 | implement some needed OCSP ASN1 functions. Add OCSP extensions. | |
14904 | ||
14905 | *Steve Henson* | |
14906 | ||
14907 | * New function X509_signature_print() to remove duplication in some | |
14908 | print routines. | |
14909 | ||
14910 | *Steve Henson* | |
14911 | ||
14912 | * Add a special meaning when SET OF and SEQUENCE OF flags are both | |
14913 | set (this was treated exactly the same as SET OF previously). This | |
14914 | is used to reorder the STACK representing the structure to match the | |
14915 | encoding. This will be used to get round a problem where a PKCS7 | |
14916 | structure which was signed could not be verified because the STACK | |
14917 | order did not reflect the encoded order. | |
14918 | ||
14919 | *Steve Henson* | |
14920 | ||
14921 | * Reimplement the OCSP ASN1 module using the new code. | |
14922 | ||
14923 | *Steve Henson* | |
14924 | ||
14925 | * Update the X509V3 code to permit the use of an ASN1_ITEM structure | |
14926 | for its ASN1 operations. The old style function pointers still exist | |
14927 | for now but they will eventually go away. | |
14928 | ||
14929 | *Steve Henson* | |
14930 | ||
14931 | * Merge in replacement ASN1 code from the ASN1 branch. This almost | |
14932 | completely replaces the old ASN1 functionality with a table driven | |
14933 | encoder and decoder which interprets an ASN1_ITEM structure describing | |
14934 | the ASN1 module. Compatibility with the existing ASN1 API (i2d,d2i) is | |
14935 | largely maintained. Almost all of the old asn1_mac.h macro based ASN1 | |
14936 | has also been converted to the new form. | |
14937 | ||
14938 | *Steve Henson* | |
14939 | ||
14940 | * Change BN_mod_exp_recp so that negative moduli are tolerated | |
14941 | (the sign is ignored). Similarly, ignore the sign in BN_MONT_CTX_set | |
14942 | so that BN_mod_exp_mont and BN_mod_exp_mont_word work | |
14943 | for negative moduli. | |
14944 | ||
14945 | *Bodo Moeller* | |
14946 | ||
14947 | * Fix BN_uadd and BN_usub: Always return non-negative results instead | |
14948 | of not touching the result's sign bit. | |
14949 | ||
14950 | *Bodo Moeller* | |
14951 | ||
14952 | * BN_div bugfix: If the result is 0, the sign (res->neg) must not be | |
14953 | set. | |
14954 | ||
14955 | *Bodo Moeller* | |
14956 | ||
14957 | * Changed the LHASH code to use prototypes for callbacks, and created | |
14958 | macros to declare and implement thin (optionally static) functions | |
14959 | that provide type-safety and avoid function pointer casting for the | |
14960 | type-specific callbacks. | |
14961 | ||
14962 | *Geoff Thorpe* | |
14963 | ||
14964 | * Added Kerberos Cipher Suites to be used with TLS, as written in | |
14965 | RFC 2712. | |
14966 | *Veers Staats <staatsvr@asc.hpc.mil>, | |
257e9d03 | 14967 | Jeffrey Altman <jaltman@columbia.edu>, via Richard Levitte* |
5f8e6c50 DMSP |
14968 | |
14969 | * Reformat the FAQ so the different questions and answers can be divided | |
14970 | in sections depending on the subject. | |
14971 | ||
14972 | *Richard Levitte* | |
14973 | ||
14974 | * Have the zlib compression code load ZLIB.DLL dynamically under | |
14975 | Windows. | |
14976 | ||
14977 | *Richard Levitte* | |
14978 | ||
14979 | * New function BN_mod_sqrt for computing square roots modulo a prime | |
14980 | (using the probabilistic Tonelli-Shanks algorithm unless | |
14981 | p == 3 (mod 4) or p == 5 (mod 8), which are cases that can | |
14982 | be handled deterministically). | |
14983 | ||
14984 | *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller* | |
14985 | ||
14986 | * Make BN_mod_inverse faster by explicitly handling small quotients | |
14987 | in the Euclid loop. (Speed gain about 20% for small moduli [256 or | |
14988 | 512 bits], about 30% for larger ones [1024 or 2048 bits].) | |
14989 | ||
14990 | *Bodo Moeller* | |
14991 | ||
14992 | * New function BN_kronecker. | |
14993 | ||
14994 | *Bodo Moeller* | |
14995 | ||
14996 | * Fix BN_gcd so that it works on negative inputs; the result is | |
14997 | positive unless both parameters are zero. | |
14998 | Previously something reasonably close to an infinite loop was | |
14999 | possible because numbers could be growing instead of shrinking | |
15000 | in the implementation of Euclid's algorithm. | |
15001 | ||
15002 | *Bodo Moeller* | |
15003 | ||
15004 | * Fix BN_is_word() and BN_is_one() macros to take into account the | |
15005 | sign of the number in question. | |
15006 | ||
15007 | Fix BN_is_word(a,w) to work correctly for w == 0. | |
15008 | ||
15009 | The old BN_is_word(a,w) macro is now called BN_abs_is_word(a,w) | |
15010 | because its test if the absolute value of 'a' equals 'w'. | |
15011 | Note that BN_abs_is_word does *not* handle w == 0 reliably; | |
15012 | it exists mostly for use in the implementations of BN_is_zero(), | |
15013 | BN_is_one(), and BN_is_word(). | |
15014 | ||
15015 | *Bodo Moeller* | |
15016 | ||
15017 | * New function BN_swap. | |
15018 | ||
15019 | *Bodo Moeller* | |
15020 | ||
15021 | * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that | |
15022 | the exponentiation functions are more likely to produce reasonable | |
15023 | results on negative inputs. | |
15024 | ||
15025 | *Bodo Moeller* | |
15026 | ||
15027 | * Change BN_mod_mul so that the result is always non-negative. | |
15028 | Previously, it could be negative if one of the factors was negative; | |
15029 | I don't think anyone really wanted that behaviour. | |
15030 | ||
15031 | *Bodo Moeller* | |
15032 | ||
1dc1ea18 DDO |
15033 | * Move `BN_mod_...` functions into new file `crypto/bn/bn_mod.c` |
15034 | (except for exponentiation, which stays in `crypto/bn/bn_exp.c`, | |
15035 | and `BN_mod_mul_reciprocal`, which stays in `crypto/bn/bn_recp.c`) | |
5f8e6c50 DMSP |
15036 | and add new functions: |
15037 | ||
15038 | BN_nnmod | |
15039 | BN_mod_sqr | |
15040 | BN_mod_add | |
15041 | BN_mod_add_quick | |
15042 | BN_mod_sub | |
15043 | BN_mod_sub_quick | |
15044 | BN_mod_lshift1 | |
15045 | BN_mod_lshift1_quick | |
15046 | BN_mod_lshift | |
15047 | BN_mod_lshift_quick | |
15048 | ||
15049 | These functions always generate non-negative results. | |
15050 | ||
1dc1ea18 DDO |
15051 | `BN_nnmod` otherwise is `like BN_mod` (if `BN_mod` computes a remainder `r` |
15052 | such that `|m| < r < 0`, `BN_nnmod` will output `rem + |m|` instead). | |
5f8e6c50 | 15053 | |
1dc1ea18 DDO |
15054 | `BN_mod_XXX_quick(r, a, [b,] m)` generates the same result as |
15055 | `BN_mod_XXX(r, a, [b,] m, ctx)`, but requires that `a` [and `b`] | |
15056 | be reduced modulo `m`. | |
5f8e6c50 DMSP |
15057 | |
15058 | *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller* | |
15059 | ||
1dc1ea18 | 15060 | <!-- |
5f8e6c50 DMSP |
15061 | The following entry accidentally appeared in the CHANGES file |
15062 | distributed with OpenSSL 0.9.7. The modifications described in | |
15063 | it do *not* apply to OpenSSL 0.9.7. | |
15064 | ||
15065 | * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there | |
15066 | was actually never needed) and in BN_mul(). The removal in BN_mul() | |
15067 | required a small change in bn_mul_part_recursive() and the addition | |
15068 | of the functions bn_cmp_part_words(), bn_sub_part_words() and | |
15069 | bn_add_part_words(), which do the same thing as bn_cmp_words(), | |
15070 | bn_sub_words() and bn_add_words() except they take arrays with | |
15071 | differing sizes. | |
15072 | ||
15073 | *Richard Levitte* | |
1dc1ea18 | 15074 | --> |
5f8e6c50 DMSP |
15075 | |
15076 | * In 'openssl passwd', verify passwords read from the terminal | |
15077 | unless the '-salt' option is used (which usually means that | |
15078 | verification would just waste user's time since the resulting | |
15079 | hash is going to be compared with some given password hash) | |
15080 | or the new '-noverify' option is used. | |
15081 | ||
15082 | This is an incompatible change, but it does not affect | |
15083 | non-interactive use of 'openssl passwd' (passwords on the command | |
15084 | line, '-stdin' option, '-in ...' option) and thus should not | |
15085 | cause any problems. | |
15086 | ||
15087 | *Bodo Moeller* | |
15088 | ||
15089 | * Remove all references to RSAref, since there's no more need for it. | |
15090 | ||
15091 | *Richard Levitte* | |
15092 | ||
15093 | * Make DSO load along a path given through an environment variable | |
15094 | (SHLIB_PATH) with shl_load(). | |
15095 | ||
15096 | *Richard Levitte* | |
15097 | ||
15098 | * Constify the ENGINE code as a result of BIGNUM constification. | |
15099 | Also constify the RSA code and most things related to it. In a | |
15100 | few places, most notable in the depth of the ASN.1 code, ugly | |
15101 | casts back to non-const were required (to be solved at a later | |
15102 | time) | |
15103 | ||
15104 | *Richard Levitte* | |
15105 | ||
15106 | * Make it so the openssl application has all engines loaded by default. | |
15107 | ||
15108 | *Richard Levitte* | |
15109 | ||
15110 | * Constify the BIGNUM routines a little more. | |
15111 | ||
15112 | *Richard Levitte* | |
15113 | ||
15114 | * Add the following functions: | |
15115 | ||
15116 | ENGINE_load_cswift() | |
15117 | ENGINE_load_chil() | |
15118 | ENGINE_load_atalla() | |
15119 | ENGINE_load_nuron() | |
15120 | ENGINE_load_builtin_engines() | |
15121 | ||
15122 | That way, an application can itself choose if external engines that | |
15123 | are built-in in OpenSSL shall ever be used or not. The benefit is | |
15124 | that applications won't have to be linked with libdl or other dso | |
15125 | libraries unless it's really needed. | |
15126 | ||
15127 | Changed 'openssl engine' to load all engines on demand. | |
15128 | Changed the engine header files to avoid the duplication of some | |
15129 | declarations (they differed!). | |
15130 | ||
15131 | *Richard Levitte* | |
15132 | ||
15133 | * 'openssl engine' can now list capabilities. | |
15134 | ||
15135 | *Richard Levitte* | |
15136 | ||
15137 | * Better error reporting in 'openssl engine'. | |
15138 | ||
15139 | *Richard Levitte* | |
15140 | ||
15141 | * Never call load_dh_param(NULL) in s_server. | |
15142 | ||
15143 | *Bodo Moeller* | |
15144 | ||
15145 | * Add engine application. It can currently list engines by name and | |
15146 | identity, and test if they are actually available. | |
15147 | ||
15148 | *Richard Levitte* | |
15149 | ||
15150 | * Improve RPM specification file by forcing symbolic linking and making | |
15151 | sure the installed documentation is also owned by root.root. | |
15152 | ||
15153 | *Damien Miller <djm@mindrot.org>* | |
15154 | ||
15155 | * Give the OpenSSL applications more possibilities to make use of | |
15156 | keys (public as well as private) handled by engines. | |
15157 | ||
15158 | *Richard Levitte* | |
15159 | ||
15160 | * Add OCSP code that comes from CertCo. | |
15161 | ||
15162 | *Richard Levitte* | |
15163 | ||
15164 | * Add VMS support for the Rijndael code. | |
15165 | ||
15166 | *Richard Levitte* | |
15167 | ||
15168 | * Added untested support for Nuron crypto accelerator. | |
15169 | ||
15170 | *Ben Laurie* | |
15171 | ||
15172 | * Add support for external cryptographic devices. This code was | |
15173 | previously distributed separately as the "engine" branch. | |
15174 | ||
15175 | *Geoff Thorpe, Richard Levitte* | |
15176 | ||
15177 | * Rework the filename-translation in the DSO code. It is now possible to | |
15178 | have far greater control over how a "name" is turned into a filename | |
15179 | depending on the operating environment and any oddities about the | |
15180 | different shared library filenames on each system. | |
15181 | ||
15182 | *Geoff Thorpe* | |
15183 | ||
15184 | * Support threads on FreeBSD-elf in Configure. | |
15185 | ||
15186 | *Richard Levitte* | |
15187 | ||
15188 | * Fix for SHA1 assembly problem with MASM: it produces | |
15189 | warnings about corrupt line number information when assembling | |
15190 | with debugging information. This is caused by the overlapping | |
15191 | of two sections. | |
15192 | ||
15193 | *Bernd Matthes <mainbug@celocom.de>, Steve Henson* | |
15194 | ||
15195 | * NCONF changes. | |
15196 | NCONF_get_number() has no error checking at all. As a replacement, | |
257e9d03 | 15197 | NCONF_get_number_e() is defined (`_e` for "error checking") and is |
5f8e6c50 DMSP |
15198 | promoted strongly. The old NCONF_get_number is kept around for |
15199 | binary backward compatibility. | |
15200 | Make it possible for methods to load from something other than a BIO, | |
15201 | by providing a function pointer that is given a name instead of a BIO. | |
15202 | For example, this could be used to load configuration data from an | |
15203 | LDAP server. | |
15204 | ||
15205 | *Richard Levitte* | |
15206 | ||
15207 | * Fix for non blocking accept BIOs. Added new I/O special reason | |
15208 | BIO_RR_ACCEPT to cover this case. Previously use of accept BIOs | |
15209 | with non blocking I/O was not possible because no retry code was | |
15210 | implemented. Also added new SSL code SSL_WANT_ACCEPT to cover | |
15211 | this case. | |
15212 | ||
15213 | *Steve Henson* | |
15214 | ||
15215 | * Added the beginnings of Rijndael support. | |
15216 | ||
15217 | *Ben Laurie* | |
15218 | ||
15219 | * Fix for bug in DirectoryString mask setting. Add support for | |
15220 | X509_NAME_print_ex() in 'req' and X509_print_ex() function | |
15221 | to allow certificate printing to more controllable, additional | |
15222 | 'certopt' option to 'x509' to allow new printing options to be | |
15223 | set. | |
15224 | ||
15225 | *Steve Henson* | |
15226 | ||
15227 | * Clean old EAY MD5 hack from e_os.h. | |
15228 | ||
15229 | *Richard Levitte* | |
15230 | ||
257e9d03 | 15231 | ### Changes between 0.9.6l and 0.9.6m [17 Mar 2004] |
5f8e6c50 DMSP |
15232 | |
15233 | * Fix null-pointer assignment in do_change_cipher_spec() revealed | |
d8dc8538 | 15234 | by using the Codenomicon TLS Test Tool ([CVE-2004-0079]) |
5f8e6c50 DMSP |
15235 | |
15236 | *Joe Orton, Steve Henson* | |
15237 | ||
257e9d03 | 15238 | ### Changes between 0.9.6k and 0.9.6l [04 Nov 2003] |
5f8e6c50 DMSP |
15239 | |
15240 | * Fix additional bug revealed by the NISCC test suite: | |
15241 | ||
15242 | Stop bug triggering large recursion when presented with | |
d8dc8538 | 15243 | certain ASN.1 tags ([CVE-2003-0851]) |
5f8e6c50 DMSP |
15244 | |
15245 | *Steve Henson* | |
15246 | ||
257e9d03 | 15247 | ### Changes between 0.9.6j and 0.9.6k [30 Sep 2003] |
5f8e6c50 DMSP |
15248 | |
15249 | * Fix various bugs revealed by running the NISCC test suite: | |
15250 | ||
15251 | Stop out of bounds reads in the ASN1 code when presented with | |
15252 | invalid tags (CVE-2003-0543 and CVE-2003-0544). | |
15253 | ||
15254 | If verify callback ignores invalid public key errors don't try to check | |
15255 | certificate signature with the NULL public key. | |
15256 | ||
5f8e6c50 DMSP |
15257 | *Steve Henson* |
15258 | ||
15259 | * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate | |
15260 | if the server requested one: as stated in TLS 1.0 and SSL 3.0 | |
15261 | specifications. | |
15262 | ||
15263 | *Steve Henson* | |
15264 | ||
15265 | * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional | |
15266 | extra data after the compression methods not only for TLS 1.0 | |
15267 | but also for SSL 3.0 (as required by the specification). | |
15268 | ||
15269 | *Bodo Moeller; problem pointed out by Matthias Loepfe* | |
15270 | ||
15271 | * Change X509_certificate_type() to mark the key as exported/exportable | |
15272 | when it's 512 *bits* long, not 512 bytes. | |
15273 | ||
15274 | *Richard Levitte* | |
15275 | ||
257e9d03 | 15276 | ### Changes between 0.9.6i and 0.9.6j [10 Apr 2003] |
5f8e6c50 DMSP |
15277 | |
15278 | * Countermeasure against the Klima-Pokorny-Rosa extension of | |
15279 | Bleichbacher's attack on PKCS #1 v1.5 padding: treat | |
15280 | a protocol version number mismatch like a decryption error | |
15281 | in ssl3_get_client_key_exchange (ssl/s3_srvr.c). | |
15282 | ||
15283 | *Bodo Moeller* | |
15284 | ||
15285 | * Turn on RSA blinding by default in the default implementation | |
15286 | to avoid a timing attack. Applications that don't want it can call | |
15287 | RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING. | |
15288 | They would be ill-advised to do so in most cases. | |
15289 | ||
15290 | *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller* | |
15291 | ||
15292 | * Change RSA blinding code so that it works when the PRNG is not | |
15293 | seeded (in this case, the secret RSA exponent is abused as | |
15294 | an unpredictable seed -- if it is not unpredictable, there | |
15295 | is no point in blinding anyway). Make RSA blinding thread-safe | |
15296 | by remembering the creator's thread ID in rsa->blinding and | |
15297 | having all other threads use local one-time blinding factors | |
15298 | (this requires more computation than sharing rsa->blinding, but | |
15299 | avoids excessive locking; and if an RSA object is not shared | |
15300 | between threads, blinding will still be very fast). | |
15301 | ||
15302 | *Bodo Moeller* | |
15303 | ||
257e9d03 | 15304 | ### Changes between 0.9.6h and 0.9.6i [19 Feb 2003] |
5f8e6c50 DMSP |
15305 | |
15306 | * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked | |
15307 | via timing by performing a MAC computation even if incorrect | |
15308 | block cipher padding has been found. This is a countermeasure | |
15309 | against active attacks where the attacker has to distinguish | |
d8dc8538 | 15310 | between bad padding and a MAC verification error. ([CVE-2003-0078]) |
5f8e6c50 DMSP |
15311 | |
15312 | *Bodo Moeller; problem pointed out by Brice Canvel (EPFL), | |
15313 | Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and | |
15314 | Martin Vuagnoux (EPFL, Ilion)* | |
15315 | ||
257e9d03 | 15316 | ### Changes between 0.9.6g and 0.9.6h [5 Dec 2002] |
5f8e6c50 DMSP |
15317 | |
15318 | * New function OPENSSL_cleanse(), which is used to cleanse a section of | |
15319 | memory from its contents. This is done with a counter that will | |
15320 | place alternating values in each byte. This can be used to solve | |
15321 | two issues: 1) the removal of calls to memset() by highly optimizing | |
15322 | compilers, and 2) cleansing with other values than 0, since those can | |
15323 | be read through on certain media, for example a swap space on disk. | |
15324 | ||
15325 | *Geoff Thorpe* | |
15326 | ||
15327 | * Bugfix: client side session caching did not work with external caching, | |
15328 | because the session->cipher setting was not restored when reloading | |
15329 | from the external cache. This problem was masked, when | |
15330 | SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG (part of SSL_OP_ALL) was set. | |
15331 | (Found by Steve Haslam <steve@araqnid.ddts.net>.) | |
15332 | ||
15333 | *Lutz Jaenicke* | |
15334 | ||
15335 | * Fix client_certificate (ssl/s2_clnt.c): The permissible total | |
15336 | length of the REQUEST-CERTIFICATE message is 18 .. 34, not 17 .. 33. | |
15337 | ||
15338 | *Zeev Lieber <zeev-l@yahoo.com>* | |
15339 | ||
15340 | * Undo an undocumented change introduced in 0.9.6e which caused | |
15341 | repeated calls to OpenSSL_add_all_ciphers() and | |
15342 | OpenSSL_add_all_digests() to be ignored, even after calling | |
15343 | EVP_cleanup(). | |
15344 | ||
15345 | *Richard Levitte* | |
15346 | ||
15347 | * Change the default configuration reader to deal with last line not | |
15348 | being properly terminated. | |
15349 | ||
15350 | *Richard Levitte* | |
15351 | ||
15352 | * Change X509_NAME_cmp() so it applies the special rules on handling | |
15353 | DN values that are of type PrintableString, as well as RDNs of type | |
15354 | emailAddress where the value has the type ia5String. | |
15355 | ||
15356 | *stefank@valicert.com via Richard Levitte* | |
15357 | ||
15358 | * Add a SSL_SESS_CACHE_NO_INTERNAL_STORE flag to take over half | |
15359 | the job SSL_SESS_CACHE_NO_INTERNAL_LOOKUP was inconsistently | |
15360 | doing, define a new flag (SSL_SESS_CACHE_NO_INTERNAL) to be | |
15361 | the bitwise-OR of the two for use by the majority of applications | |
15362 | wanting this behaviour, and update the docs. The documented | |
15363 | behaviour and actual behaviour were inconsistent and had been | |
15364 | changing anyway, so this is more a bug-fix than a behavioural | |
15365 | change. | |
15366 | ||
15367 | *Geoff Thorpe, diagnosed by Nadav Har'El* | |
15368 | ||
15369 | * Don't impose a 16-byte length minimum on session IDs in ssl/s3_clnt.c | |
15370 | (the SSL 3.0 and TLS 1.0 specifications allow any length up to 32 bytes). | |
15371 | ||
15372 | *Bodo Moeller* | |
15373 | ||
15374 | * Fix initialization code race conditions in | |
15375 | SSLv23_method(), SSLv23_client_method(), SSLv23_server_method(), | |
15376 | SSLv2_method(), SSLv2_client_method(), SSLv2_server_method(), | |
15377 | SSLv3_method(), SSLv3_client_method(), SSLv3_server_method(), | |
15378 | TLSv1_method(), TLSv1_client_method(), TLSv1_server_method(), | |
15379 | ssl2_get_cipher_by_char(), | |
15380 | ssl3_get_cipher_by_char(). | |
15381 | ||
15382 | *Patrick McCormick <patrick@tellme.com>, Bodo Moeller* | |
15383 | ||
15384 | * Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after | |
15385 | the cached sessions are flushed, as the remove_cb() might use ex_data | |
15386 | contents. Bug found by Sam Varshavchik <mrsam@courier-mta.com> | |
15387 | (see [openssl.org #212]). | |
15388 | ||
15389 | *Geoff Thorpe, Lutz Jaenicke* | |
15390 | ||
15391 | * Fix typo in OBJ_txt2obj which incorrectly passed the content | |
15392 | length, instead of the encoding length to d2i_ASN1_OBJECT. | |
15393 | ||
15394 | *Steve Henson* | |
15395 | ||
257e9d03 | 15396 | ### Changes between 0.9.6f and 0.9.6g [9 Aug 2002] |
5f8e6c50 DMSP |
15397 | |
15398 | * [In 0.9.6g-engine release:] | |
257e9d03 | 15399 | Fix crypto/engine/vendor_defns/cswift.h for WIN32 (use `_stdcall`). |
5f8e6c50 DMSP |
15400 | |
15401 | *Lynn Gazis <lgazis@rainbow.com>* | |
15402 | ||
257e9d03 | 15403 | ### Changes between 0.9.6e and 0.9.6f [8 Aug 2002] |
5f8e6c50 DMSP |
15404 | |
15405 | * Fix ASN1 checks. Check for overflow by comparing with LONG_MAX | |
15406 | and get fix the header length calculation. | |
15407 | *Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>, | |
257e9d03 | 15408 | Alon Kantor <alonk@checkpoint.com> (and others), Steve Henson* |
5f8e6c50 DMSP |
15409 | |
15410 | * Use proper error handling instead of 'assertions' in buffer | |
15411 | overflow checks added in 0.9.6e. This prevents DoS (the | |
15412 | assertions could call abort()). | |
15413 | ||
15414 | *Arne Ansper <arne@ats.cyber.ee>, Bodo Moeller* | |
15415 | ||
257e9d03 | 15416 | ### Changes between 0.9.6d and 0.9.6e [30 Jul 2002] |
5f8e6c50 DMSP |
15417 | |
15418 | * Add various sanity checks to asn1_get_length() to reject | |
15419 | the ASN1 length bytes if they exceed sizeof(long), will appear | |
15420 | negative or the content length exceeds the length of the | |
15421 | supplied buffer. | |
15422 | ||
15423 | *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>* | |
15424 | ||
15425 | * Fix cipher selection routines: ciphers without encryption had no flags | |
15426 | for the cipher strength set and where therefore not handled correctly | |
15427 | by the selection routines (PR #130). | |
15428 | ||
15429 | *Lutz Jaenicke* | |
15430 | ||
15431 | * Fix EVP_dsa_sha macro. | |
15432 | ||
15433 | *Nils Larsch* | |
15434 | ||
15435 | * New option | |
15436 | SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS | |
15437 | for disabling the SSL 3.0/TLS 1.0 CBC vulnerability countermeasure | |
15438 | that was added in OpenSSL 0.9.6d. | |
15439 | ||
15440 | As the countermeasure turned out to be incompatible with some | |
15441 | broken SSL implementations, the new option is part of SSL_OP_ALL. | |
15442 | SSL_OP_ALL is usually employed when compatibility with weird SSL | |
15443 | implementations is desired (e.g. '-bugs' option to 's_client' and | |
15444 | 's_server'), so the new option is automatically set in many | |
15445 | applications. | |
15446 | ||
15447 | *Bodo Moeller* | |
15448 | ||
15449 | * Changes in security patch: | |
15450 | ||
15451 | Changes marked "(CHATS)" were sponsored by the Defense Advanced | |
15452 | Research Projects Agency (DARPA) and Air Force Research Laboratory, | |
15453 | Air Force Materiel Command, USAF, under agreement number | |
15454 | F30602-01-2-0537. | |
15455 | ||
15456 | * Add various sanity checks to asn1_get_length() to reject | |
15457 | the ASN1 length bytes if they exceed sizeof(long), will appear | |
15458 | negative or the content length exceeds the length of the | |
d8dc8538 | 15459 | supplied buffer. ([CVE-2002-0659]) |
5f8e6c50 DMSP |
15460 | |
15461 | *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>* | |
15462 | ||
15463 | * Assertions for various potential buffer overflows, not known to | |
15464 | happen in practice. | |
15465 | ||
15466 | *Ben Laurie (CHATS)* | |
15467 | ||
15468 | * Various temporary buffers to hold ASCII versions of integers were | |
d8dc8538 | 15469 | too small for 64 bit platforms. ([CVE-2002-0655]) |
257e9d03 | 15470 | *Matthew Byng-Maddick <mbm@aldigital.co.uk> and Ben Laurie (CHATS)>* |
5f8e6c50 DMSP |
15471 | |
15472 | * Remote buffer overflow in SSL3 protocol - an attacker could | |
d8dc8538 | 15473 | supply an oversized session ID to a client. ([CVE-2002-0656]) |
5f8e6c50 | 15474 | |
44652c16 | 15475 | *Ben Laurie (CHATS)* |
5f8e6c50 DMSP |
15476 | |
15477 | * Remote buffer overflow in SSL2 protocol - an attacker could | |
d8dc8538 | 15478 | supply an oversized client master key. ([CVE-2002-0656]) |
5f8e6c50 DMSP |
15479 | |
15480 | *Ben Laurie (CHATS)* | |
15481 | ||
257e9d03 | 15482 | ### Changes between 0.9.6c and 0.9.6d [9 May 2002] |
5f8e6c50 DMSP |
15483 | |
15484 | * Fix crypto/asn1/a_sign.c so that 'parameters' is omitted (not | |
15485 | encoded as NULL) with id-dsa-with-sha1. | |
15486 | ||
15487 | *Nils Larsch <nla@trustcenter.de>; problem pointed out by Bodo Moeller* | |
15488 | ||
ec2bfb7d | 15489 | * Check various `X509_...()` return values in `apps/req.c`. |
5f8e6c50 DMSP |
15490 | |
15491 | *Nils Larsch <nla@trustcenter.de>* | |
15492 | ||
15493 | * Fix BASE64 decode (EVP_DecodeUpdate) for data with CR/LF ended lines: | |
15494 | an end-of-file condition would erroneously be flagged, when the CRLF | |
15495 | was just at the end of a processed block. The bug was discovered when | |
15496 | processing data through a buffering memory BIO handing the data to a | |
15497 | BASE64-decoding BIO. Bug fund and patch submitted by Pavel Tsekov | |
15498 | <ptsekov@syntrex.com> and Nedelcho Stanev. | |
15499 | ||
15500 | *Lutz Jaenicke* | |
15501 | ||
15502 | * Implement a countermeasure against a vulnerability recently found | |
15503 | in CBC ciphersuites in SSL 3.0/TLS 1.0: Send an empty fragment | |
15504 | before application data chunks to avoid the use of known IVs | |
15505 | with data potentially chosen by the attacker. | |
15506 | ||
15507 | *Bodo Moeller* | |
15508 | ||
15509 | * Fix length checks in ssl3_get_client_hello(). | |
15510 | ||
15511 | *Bodo Moeller* | |
15512 | ||
15513 | * TLS/SSL library bugfix: use s->s3->in_read_app_data differently | |
15514 | to prevent ssl3_read_internal() from incorrectly assuming that | |
15515 | ssl3_read_bytes() found application data while handshake | |
15516 | processing was enabled when in fact s->s3->in_read_app_data was | |
15517 | merely automatically cleared during the initial handshake. | |
15518 | ||
15519 | *Bodo Moeller; problem pointed out by Arne Ansper <arne@ats.cyber.ee>* | |
15520 | ||
15521 | * Fix object definitions for Private and Enterprise: they were not | |
15522 | recognized in their shortname (=lowercase) representation. Extend | |
15523 | obj_dat.pl to issue an error when using undefined keywords instead | |
15524 | of silently ignoring the problem (Svenning Sorensen | |
15525 | <sss@sss.dnsalias.net>). | |
15526 | ||
15527 | *Lutz Jaenicke* | |
15528 | ||
15529 | * Fix DH_generate_parameters() so that it works for 'non-standard' | |
15530 | generators, i.e. generators other than 2 and 5. (Previously, the | |
15531 | code did not properly initialise the 'add' and 'rem' values to | |
15532 | BN_generate_prime().) | |
15533 | ||
15534 | In the new general case, we do not insist that 'generator' is | |
15535 | actually a primitive root: This requirement is rather pointless; | |
15536 | a generator of the order-q subgroup is just as good, if not | |
15537 | better. | |
15538 | ||
15539 | *Bodo Moeller* | |
15540 | ||
15541 | * Map new X509 verification errors to alerts. Discovered and submitted by | |
15542 | Tom Wu <tom@arcot.com>. | |
15543 | ||
15544 | *Lutz Jaenicke* | |
15545 | ||
15546 | * Fix ssl3_pending() (ssl/s3_lib.c) to prevent SSL_pending() from | |
15547 | returning non-zero before the data has been completely received | |
15548 | when using non-blocking I/O. | |
15549 | ||
15550 | *Bodo Moeller; problem pointed out by John Hughes* | |
15551 | ||
15552 | * Some of the ciphers missed the strength entry (SSL_LOW etc). | |
15553 | ||
15554 | *Ben Laurie, Lutz Jaenicke* | |
15555 | ||
15556 | * Fix bug in SSL_clear(): bad sessions were not removed (found by | |
15557 | Yoram Zahavi <YoramZ@gilian.com>). | |
15558 | ||
15559 | *Lutz Jaenicke* | |
15560 | ||
15561 | * Add information about CygWin 1.3 and on, and preserve proper | |
15562 | configuration for the versions before that. | |
15563 | ||
15564 | *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte* | |
15565 | ||
15566 | * Make removal from session cache (SSL_CTX_remove_session()) more robust: | |
15567 | check whether we deal with a copy of a session and do not delete from | |
15568 | the cache in this case. Problem reported by "Izhar Shoshani Levi" | |
15569 | <izhar@checkpoint.com>. | |
15570 | ||
15571 | *Lutz Jaenicke* | |
15572 | ||
15573 | * Do not store session data into the internal session cache, if it | |
15574 | is never intended to be looked up (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP | |
15575 | flag is set). Proposed by Aslam <aslam@funk.com>. | |
15576 | ||
15577 | *Lutz Jaenicke* | |
15578 | ||
15579 | * Have ASN1_BIT_STRING_set_bit() really clear a bit when the requested | |
15580 | value is 0. | |
15581 | ||
15582 | *Richard Levitte* | |
15583 | ||
15584 | * [In 0.9.6d-engine release:] | |
15585 | Fix a crashbug and a logic bug in hwcrhk_load_pubkey(). | |
15586 | ||
15587 | *Toomas Kiisk <vix@cyber.ee> via Richard Levitte* | |
15588 | ||
15589 | * Add the configuration target linux-s390x. | |
15590 | ||
15591 | *Neale Ferguson <Neale.Ferguson@SoftwareAG-USA.com> via Richard Levitte* | |
15592 | ||
15593 | * The earlier bugfix for the SSL3_ST_SW_HELLO_REQ_C case of | |
15594 | ssl3_accept (ssl/s3_srvr.c) incorrectly used a local flag | |
15595 | variable as an indication that a ClientHello message has been | |
15596 | received. As the flag value will be lost between multiple | |
15597 | invocations of ssl3_accept when using non-blocking I/O, the | |
15598 | function may not be aware that a handshake has actually taken | |
15599 | place, thus preventing a new session from being added to the | |
15600 | session cache. | |
15601 | ||
15602 | To avoid this problem, we now set s->new_session to 2 instead of | |
15603 | using a local variable. | |
15604 | ||
15605 | *Lutz Jaenicke, Bodo Moeller* | |
15606 | ||
15607 | * Bugfix: Return -1 from ssl3_get_server_done (ssl3/s3_clnt.c) | |
15608 | if the SSL_R_LENGTH_MISMATCH error is detected. | |
15609 | ||
15610 | *Geoff Thorpe, Bodo Moeller* | |
15611 | ||
15612 | * New 'shared_ldflag' column in Configure platform table. | |
15613 | ||
15614 | *Richard Levitte* | |
15615 | ||
15616 | * Fix EVP_CIPHER_mode macro. | |
15617 | ||
15618 | *"Dan S. Camper" <dan@bti.net>* | |
15619 | ||
15620 | * Fix ssl3_read_bytes (ssl/s3_pkt.c): To ignore messages of unknown | |
15621 | type, we must throw them away by setting rr->length to 0. | |
15622 | ||
15623 | *D P Chang <dpc@qualys.com>* | |
15624 | ||
257e9d03 | 15625 | ### Changes between 0.9.6b and 0.9.6c [21 dec 2001] |
5f8e6c50 DMSP |
15626 | |
15627 | * Fix BN_rand_range bug pointed out by Dominikus Scherkl | |
15628 | <Dominikus.Scherkl@biodata.com>. (The previous implementation | |
257e9d03 RS |
15629 | worked incorrectly for those cases where range = `10..._2` and |
15630 | `3*range` is two bits longer than range.) | |
5f8e6c50 DMSP |
15631 | |
15632 | *Bodo Moeller* | |
15633 | ||
15634 | * Only add signing time to PKCS7 structures if it is not already | |
15635 | present. | |
15636 | ||
15637 | *Steve Henson* | |
15638 | ||
15639 | * Fix crypto/objects/objects.h: "ld-ce" should be "id-ce", | |
15640 | OBJ_ld_ce should be OBJ_id_ce. | |
15641 | Also some ip-pda OIDs in crypto/objects/objects.txt were | |
15642 | incorrect (cf. RFC 3039). | |
15643 | ||
15644 | *Matt Cooper, Frederic Giudicelli, Bodo Moeller* | |
15645 | ||
15646 | * Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid() | |
15647 | returns early because it has nothing to do. | |
15648 | ||
15649 | *Andy Schneider <andy.schneider@bjss.co.uk>* | |
15650 | ||
15651 | * [In 0.9.6c-engine release:] | |
15652 | Fix mutex callback return values in crypto/engine/hw_ncipher.c. | |
15653 | ||
15654 | *Andy Schneider <andy.schneider@bjss.co.uk>* | |
15655 | ||
15656 | * [In 0.9.6c-engine release:] | |
15657 | Add support for Cryptographic Appliance's keyserver technology. | |
15658 | (Use engine 'keyclient') | |
15659 | ||
15660 | *Cryptographic Appliances and Geoff Thorpe* | |
15661 | ||
15662 | * Add a configuration entry for OS/390 Unix. The C compiler 'c89' | |
15663 | is called via tools/c89.sh because arguments have to be | |
15664 | rearranged (all '-L' options must appear before the first object | |
15665 | modules). | |
15666 | ||
15667 | *Richard Shapiro <rshapiro@abinitio.com>* | |
15668 | ||
15669 | * [In 0.9.6c-engine release:] | |
15670 | Add support for Broadcom crypto accelerator cards, backported | |
15671 | from 0.9.7. | |
15672 | ||
15673 | *Broadcom, Nalin Dahyabhai <nalin@redhat.com>, Mark Cox* | |
15674 | ||
15675 | * [In 0.9.6c-engine release:] | |
15676 | Add support for SureWare crypto accelerator cards from | |
15677 | Baltimore Technologies. (Use engine 'sureware') | |
15678 | ||
15679 | *Baltimore Technologies and Mark Cox* | |
15680 | ||
15681 | * [In 0.9.6c-engine release:] | |
15682 | Add support for crypto accelerator cards from Accelerated | |
15683 | Encryption Processing, www.aep.ie. (Use engine 'aep') | |
15684 | ||
15685 | *AEP Inc. and Mark Cox* | |
15686 | ||
15687 | * Add a configuration entry for gcc on UnixWare. | |
15688 | ||
15689 | *Gary Benson <gbenson@redhat.com>* | |
15690 | ||
15691 | * Change ssl/s2_clnt.c and ssl/s2_srvr.c so that received handshake | |
15692 | messages are stored in a single piece (fixed-length part and | |
15693 | variable-length part combined) and fix various bugs found on the way. | |
15694 | ||
15695 | *Bodo Moeller* | |
15696 | ||
15697 | * Disable caching in BIO_gethostbyname(), directly use gethostbyname() | |
15698 | instead. BIO_gethostbyname() does not know what timeouts are | |
15699 | appropriate, so entries would stay in cache even when they have | |
15700 | become invalid. | |
257e9d03 | 15701 | *Bodo Moeller; problem pointed out by Rich Salz <rsalz@zolera.com>* |
5f8e6c50 DMSP |
15702 | |
15703 | * Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when | |
15704 | faced with a pathologically small ClientHello fragment that does | |
15705 | not contain client_version: Instead of aborting with an error, | |
15706 | simply choose the highest available protocol version (i.e., | |
15707 | TLS 1.0 unless it is disabled). In practice, ClientHello | |
15708 | messages are never sent like this, but this change gives us | |
15709 | strictly correct behaviour at least for TLS. | |
15710 | ||
44652c16 | 15711 | *Bodo Moeller* |
5f8e6c50 DMSP |
15712 | |
15713 | * Fix SSL handshake functions and SSL_clear() such that SSL_clear() | |
15714 | never resets s->method to s->ctx->method when called from within | |
15715 | one of the SSL handshake functions. | |
15716 | ||
15717 | *Bodo Moeller; problem pointed out by Niko Baric* | |
15718 | ||
15719 | * In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert | |
15720 | (sent using the client's version number) if client_version is | |
15721 | smaller than the protocol version in use. Also change | |
15722 | ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if | |
15723 | the client demanded SSL 3.0 but only TLS 1.0 is enabled; then | |
15724 | the client will at least see that alert. | |
15725 | ||
15726 | *Bodo Moeller* | |
15727 | ||
15728 | * Fix ssl3_get_message (ssl/s3_both.c) to handle message fragmentation | |
15729 | correctly. | |
15730 | ||
15731 | *Bodo Moeller* | |
15732 | ||
15733 | * Avoid infinite loop in ssl3_get_message (ssl/s3_both.c) if a | |
15734 | client receives HelloRequest while in a handshake. | |
15735 | ||
15736 | *Bodo Moeller; bug noticed by Andy Schneider <andy.schneider@bjss.co.uk>* | |
15737 | ||
15738 | * Bugfix in ssl3_accept (ssl/s3_srvr.c): Case SSL3_ST_SW_HELLO_REQ_C | |
15739 | should end in 'break', not 'goto end' which circumvents various | |
15740 | cleanups done in state SSL_ST_OK. But session related stuff | |
15741 | must be disabled for SSL_ST_OK in the case that we just sent a | |
15742 | HelloRequest. | |
15743 | ||
15744 | Also avoid some overhead by not calling ssl_init_wbio_buffer() | |
15745 | before just sending a HelloRequest. | |
15746 | ||
15747 | *Bodo Moeller, Eric Rescorla <ekr@rtfm.com>* | |
15748 | ||
15749 | * Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don't | |
15750 | reveal whether illegal block cipher padding was found or a MAC | |
15751 | verification error occurred. (Neither SSLerr() codes nor alerts | |
15752 | are directly visible to potential attackers, but the information | |
15753 | may leak via logfiles.) | |
15754 | ||
15755 | Similar changes are not required for the SSL 2.0 implementation | |
15756 | because the number of padding bytes is sent in clear for SSL 2.0, | |
15757 | and the extra bytes are just ignored. However ssl/s2_pkt.c | |
15758 | failed to verify that the purported number of padding bytes is in | |
15759 | the legal range. | |
15760 | ||
15761 | *Bodo Moeller* | |
15762 | ||
15763 | * Add OpenUNIX-8 support including shared libraries | |
15764 | (Boyd Lynn Gerber <gerberb@zenez.com>). | |
15765 | ||
15766 | *Lutz Jaenicke* | |
15767 | ||
15768 | * Improve RSA_padding_check_PKCS1_OAEP() check again to avoid | |
15769 | 'wristwatch attack' using huge encoding parameters (cf. | |
15770 | James H. Manger's CRYPTO 2001 paper). Note that the | |
15771 | RSA_PKCS1_OAEP_PADDING case of RSA_private_decrypt() does not use | |
15772 | encoding parameters and hence was not vulnerable. | |
15773 | ||
15774 | *Bodo Moeller* | |
15775 | ||
15776 | * BN_sqr() bug fix. | |
15777 | ||
15778 | *Ulf Möller, reported by Jim Ellis <jim.ellis@cavium.com>* | |
15779 | ||
15780 | * Rabin-Miller test analyses assume uniformly distributed witnesses, | |
15781 | so use BN_pseudo_rand_range() instead of using BN_pseudo_rand() | |
15782 | followed by modular reduction. | |
15783 | ||
15784 | *Bodo Moeller; pointed out by Adam Young <AYoung1@NCSUS.JNJ.COM>* | |
15785 | ||
15786 | * Add BN_pseudo_rand_range() with obvious functionality: BN_rand_range() | |
15787 | equivalent based on BN_pseudo_rand() instead of BN_rand(). | |
15788 | ||
15789 | *Bodo Moeller* | |
15790 | ||
15791 | * s3_srvr.c: allow sending of large client certificate lists (> 16 kB). | |
15792 | This function was broken, as the check for a new client hello message | |
15793 | to handle SGC did not allow these large messages. | |
15794 | (Tracked down by "Douglas E. Engert" <deengert@anl.gov>.) | |
15795 | ||
15796 | *Lutz Jaenicke* | |
15797 | ||
257e9d03 | 15798 | * Add alert descriptions for TLSv1 to `SSL_alert_desc_string[_long]()`. |
5f8e6c50 DMSP |
15799 | |
15800 | *Lutz Jaenicke* | |
15801 | ||
15802 | * Fix buggy behaviour of BIO_get_num_renegotiates() and BIO_ctrl() | |
15803 | for BIO_C_GET_WRITE_BUF_SIZE ("Stephen Hinton" <shinton@netopia.com>). | |
15804 | ||
15805 | *Lutz Jaenicke* | |
15806 | ||
15807 | * Rework the configuration and shared library support for Tru64 Unix. | |
15808 | The configuration part makes use of modern compiler features and | |
15809 | still retains old compiler behavior for those that run older versions | |
15810 | of the OS. The shared library support part includes a variant that | |
15811 | uses the RPATH feature, and is available through the special | |
15812 | configuration target "alpha-cc-rpath", which will never be selected | |
15813 | automatically. | |
15814 | ||
15815 | *Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> via Richard Levitte* | |
15816 | ||
15817 | * In ssl3_get_key_exchange (ssl/s3_clnt.c), call ssl3_get_message() | |
15818 | with the same message size as in ssl3_get_certificate_request(). | |
15819 | Otherwise, if no ServerKeyExchange message occurs, CertificateRequest | |
15820 | messages might inadvertently be reject as too long. | |
15821 | ||
15822 | *Petr Lampa <lampa@fee.vutbr.cz>* | |
15823 | ||
15824 | * Enhanced support for IA-64 Unix platforms (well, Linux and HP-UX). | |
15825 | ||
15826 | *Andy Polyakov* | |
15827 | ||
15828 | * Modified SSL library such that the verify_callback that has been set | |
44652c16 | 15829 | specifically for an SSL object with SSL_set_verify() is actually being |
5f8e6c50 DMSP |
15830 | used. Before the change, a verify_callback set with this function was |
15831 | ignored and the verify_callback() set in the SSL_CTX at the time of | |
15832 | the call was used. New function X509_STORE_CTX_set_verify_cb() introduced | |
15833 | to allow the necessary settings. | |
15834 | ||
15835 | *Lutz Jaenicke* | |
15836 | ||
15837 | * Initialize static variable in crypto/dsa/dsa_lib.c and crypto/dh/dh_lib.c | |
15838 | explicitly to NULL, as at least on Solaris 8 this seems not always to be | |
15839 | done automatically (in contradiction to the requirements of the C | |
15840 | standard). This made problems when used from OpenSSH. | |
15841 | ||
15842 | *Lutz Jaenicke* | |
15843 | ||
15844 | * In OpenSSL 0.9.6a and 0.9.6b, crypto/dh/dh_key.c ignored | |
15845 | dh->length and always used | |
15846 | ||
15847 | BN_rand_range(priv_key, dh->p). | |
15848 | ||
15849 | BN_rand_range() is not necessary for Diffie-Hellman, and this | |
15850 | specific range makes Diffie-Hellman unnecessarily inefficient if | |
15851 | dh->length (recommended exponent length) is much smaller than the | |
15852 | length of dh->p. We could use BN_rand_range() if the order of | |
15853 | the subgroup was stored in the DH structure, but we only have | |
15854 | dh->length. | |
15855 | ||
15856 | So switch back to | |
15857 | ||
15858 | BN_rand(priv_key, l, ...) | |
15859 | ||
15860 | where 'l' is dh->length if this is defined, or BN_num_bits(dh->p)-1 | |
15861 | otherwise. | |
15862 | ||
15863 | *Bodo Moeller* | |
15864 | ||
15865 | * In | |
15866 | ||
15867 | RSA_eay_public_encrypt | |
15868 | RSA_eay_private_decrypt | |
15869 | RSA_eay_private_encrypt (signing) | |
15870 | RSA_eay_public_decrypt (signature verification) | |
15871 | ||
15872 | (default implementations for RSA_public_encrypt, | |
15873 | RSA_private_decrypt, RSA_private_encrypt, RSA_public_decrypt), | |
15874 | always reject numbers >= n. | |
15875 | ||
15876 | *Bodo Moeller* | |
15877 | ||
15878 | * In crypto/rand/md_rand.c, use a new short-time lock CRYPTO_LOCK_RAND2 | |
15879 | to synchronize access to 'locking_thread'. This is necessary on | |
15880 | systems where access to 'locking_thread' (an 'unsigned long' | |
15881 | variable) is not atomic. | |
15882 | ||
15883 | *Bodo Moeller* | |
15884 | ||
15885 | * In crypto/rand/md_rand.c, set 'locking_thread' to current thread's ID | |
15886 | *before* setting the 'crypto_lock_rand' flag. The previous code had | |
15887 | a race condition if 0 is a valid thread ID. | |
15888 | ||
15889 | *Travis Vitek <vitek@roguewave.com>* | |
15890 | ||
15891 | * Add support for shared libraries under Irix. | |
15892 | ||
15893 | *Albert Chin-A-Young <china@thewrittenword.com>* | |
15894 | ||
15895 | * Add configuration option to build on Linux on both big-endian and | |
15896 | little-endian MIPS. | |
15897 | ||
15898 | *Ralf Baechle <ralf@uni-koblenz.de>* | |
15899 | ||
15900 | * Add the possibility to create shared libraries on HP-UX. | |
15901 | ||
15902 | *Richard Levitte* | |
15903 | ||
257e9d03 | 15904 | ### Changes between 0.9.6a and 0.9.6b [9 Jul 2001] |
5f8e6c50 DMSP |
15905 | |
15906 | * Change ssleay_rand_bytes (crypto/rand/md_rand.c) | |
15907 | to avoid a SSLeay/OpenSSL PRNG weakness pointed out by | |
15908 | Markku-Juhani O. Saarinen <markku-juhani.saarinen@nokia.com>: | |
15909 | PRNG state recovery was possible based on the output of | |
15910 | one PRNG request appropriately sized to gain knowledge on | |
15911 | 'md' followed by enough consecutive 1-byte PRNG requests | |
15912 | to traverse all of 'state'. | |
15913 | ||
15914 | 1. When updating 'md_local' (the current thread's copy of 'md') | |
15915 | during PRNG output generation, hash all of the previous | |
15916 | 'md_local' value, not just the half used for PRNG output. | |
15917 | ||
15918 | 2. Make the number of bytes from 'state' included into the hash | |
15919 | independent from the number of PRNG bytes requested. | |
15920 | ||
15921 | The first measure alone would be sufficient to avoid | |
15922 | Markku-Juhani's attack. (Actually it had never occurred | |
15923 | to me that the half of 'md_local' used for chaining was the | |
15924 | half from which PRNG output bytes were taken -- I had always | |
15925 | assumed that the secret half would be used.) The second | |
15926 | measure makes sure that additional data from 'state' is never | |
15927 | mixed into 'md_local' in small portions; this heuristically | |
15928 | further strengthens the PRNG. | |
15929 | ||
15930 | *Bodo Moeller* | |
15931 | ||
15932 | * Fix crypto/bn/asm/mips3.s. | |
15933 | ||
15934 | *Andy Polyakov* | |
15935 | ||
15936 | * When only the key is given to "enc", the IV is undefined. Print out | |
15937 | an error message in this case. | |
15938 | ||
15939 | *Lutz Jaenicke* | |
15940 | ||
15941 | * Handle special case when X509_NAME is empty in X509 printing routines. | |
15942 | ||
15943 | *Steve Henson* | |
15944 | ||
15945 | * In dsa_do_verify (crypto/dsa/dsa_ossl.c), verify that r and s are | |
15946 | positive and less than q. | |
15947 | ||
15948 | *Bodo Moeller* | |
15949 | ||
257e9d03 | 15950 | * Don't change `*pointer` in CRYPTO_add_lock() is add_lock_callback is |
5f8e6c50 DMSP |
15951 | used: it isn't thread safe and the add_lock_callback should handle |
15952 | that itself. | |
15953 | ||
15954 | *Paul Rose <Paul.Rose@bridge.com>* | |
15955 | ||
15956 | * Verify that incoming data obeys the block size in | |
15957 | ssl3_enc (ssl/s3_enc.c) and tls1_enc (ssl/t1_enc.c). | |
15958 | ||
15959 | *Bodo Moeller* | |
15960 | ||
15961 | * Fix OAEP check. | |
15962 | ||
15963 | *Ulf Möller, Bodo Möller* | |
15964 | ||
15965 | * The countermeasure against Bleichbacher's attack on PKCS #1 v1.5 | |
15966 | RSA encryption was accidentally removed in s3_srvr.c in OpenSSL 0.9.5 | |
15967 | when fixing the server behaviour for backwards-compatible 'client | |
15968 | hello' messages. (Note that the attack is impractical against | |
15969 | SSL 3.0 and TLS 1.0 anyway because length and version checking | |
15970 | means that the probability of guessing a valid ciphertext is | |
15971 | around 2^-40; see section 5 in Bleichenbacher's CRYPTO '98 | |
15972 | paper.) | |
15973 | ||
15974 | Before 0.9.5, the countermeasure (hide the error by generating a | |
15975 | random 'decryption result') did not work properly because | |
15976 | ERR_clear_error() was missing, meaning that SSL_get_error() would | |
15977 | detect the supposedly ignored error. | |
15978 | ||
15979 | Both problems are now fixed. | |
15980 | ||
15981 | *Bodo Moeller* | |
15982 | ||
15983 | * In crypto/bio/bf_buff.c, increase DEFAULT_BUFFER_SIZE to 4096 | |
15984 | (previously it was 1024). | |
15985 | ||
15986 | *Bodo Moeller* | |
15987 | ||
15988 | * Fix for compatibility mode trust settings: ignore trust settings | |
15989 | unless some valid trust or reject settings are present. | |
15990 | ||
15991 | *Steve Henson* | |
15992 | ||
15993 | * Fix for blowfish EVP: its a variable length cipher. | |
15994 | ||
15995 | *Steve Henson* | |
15996 | ||
15997 | * Fix various bugs related to DSA S/MIME verification. Handle missing | |
15998 | parameters in DSA public key structures and return an error in the | |
15999 | DSA routines if parameters are absent. | |
16000 | ||
16001 | *Steve Henson* | |
16002 | ||
16003 | * In versions up to 0.9.6, RAND_file_name() resorted to file ".rnd" | |
16004 | in the current directory if neither $RANDFILE nor $HOME was set. | |
16005 | RAND_file_name() in 0.9.6a returned NULL in this case. This has | |
16006 | caused some confusion to Windows users who haven't defined $HOME. | |
16007 | Thus RAND_file_name() is changed again: e_os.h can define a | |
16008 | DEFAULT_HOME, which will be used if $HOME is not set. | |
16009 | For Windows, we use "C:"; on other platforms, we still require | |
16010 | environment variables. | |
16011 | ||
16012 | * Move 'if (!initialized) RAND_poll()' into regions protected by | |
16013 | CRYPTO_LOCK_RAND. This is not strictly necessary, but avoids | |
16014 | having multiple threads call RAND_poll() concurrently. | |
16015 | ||
16016 | *Bodo Moeller* | |
16017 | ||
16018 | * In crypto/rand/md_rand.c, replace 'add_do_not_lock' flag by a | |
16019 | combination of a flag and a thread ID variable. | |
16020 | Otherwise while one thread is in ssleay_rand_bytes (which sets the | |
16021 | flag), *other* threads can enter ssleay_add_bytes without obeying | |
16022 | the CRYPTO_LOCK_RAND lock (and may even illegally release the lock | |
16023 | that they do not hold after the first thread unsets add_do_not_lock). | |
16024 | ||
16025 | *Bodo Moeller* | |
16026 | ||
16027 | * Change bctest again: '-x' expressions are not available in all | |
16028 | versions of 'test'. | |
16029 | ||
16030 | *Bodo Moeller* | |
16031 | ||
257e9d03 | 16032 | ### Changes between 0.9.6 and 0.9.6a [5 Apr 2001] |
5f8e6c50 DMSP |
16033 | |
16034 | * Fix a couple of memory leaks in PKCS7_dataDecode() | |
16035 | ||
16036 | *Steve Henson, reported by Heyun Zheng <hzheng@atdsprint.com>* | |
16037 | ||
16038 | * Change Configure and Makefiles to provide EXE_EXT, which will contain | |
16039 | the default extension for executables, if any. Also, make the perl | |
16040 | scripts that use symlink() to test if it really exists and use "cp" | |
16041 | if it doesn't. All this made OpenSSL compilable and installable in | |
16042 | CygWin. | |
16043 | ||
16044 | *Richard Levitte* | |
16045 | ||
16046 | * Fix for asn1_GetSequence() for indefinite length constructed data. | |
16047 | If SEQUENCE is length is indefinite just set c->slen to the total | |
16048 | amount of data available. | |
16049 | ||
16050 | *Steve Henson, reported by shige@FreeBSD.org* | |
16051 | ||
16052 | *This change does not apply to 0.9.7.* | |
16053 | ||
16054 | * Change bctest to avoid here-documents inside command substitution | |
16055 | (workaround for FreeBSD /bin/sh bug). | |
16056 | For compatibility with Ultrix, avoid shell functions (introduced | |
16057 | in the bctest version that searches along $PATH). | |
16058 | ||
16059 | *Bodo Moeller* | |
16060 | ||
16061 | * Rename 'des_encrypt' to 'des_encrypt1'. This avoids the clashes | |
16062 | with des_encrypt() defined on some operating systems, like Solaris | |
16063 | and UnixWare. | |
16064 | ||
16065 | *Richard Levitte* | |
16066 | ||
16067 | * Check the result of RSA-CRT (see D. Boneh, R. DeMillo, R. Lipton: | |
16068 | On the Importance of Eliminating Errors in Cryptographic | |
16069 | Computations, J. Cryptology 14 (2001) 2, 101-119, | |
257e9d03 | 16070 | <http://theory.stanford.edu/~dabo/papers/faults.ps.gz>). |
5f8e6c50 DMSP |
16071 | |
16072 | *Ulf Moeller* | |
16073 | ||
16074 | * MIPS assembler BIGNUM division bug fix. | |
16075 | ||
16076 | *Andy Polyakov* | |
16077 | ||
16078 | * Disabled incorrect Alpha assembler code. | |
16079 | ||
16080 | *Richard Levitte* | |
16081 | ||
16082 | * Fix PKCS#7 decode routines so they correctly update the length | |
16083 | after reading an EOC for the EXPLICIT tag. | |
16084 | ||
16085 | *Steve Henson* | |
16086 | ||
16087 | *This change does not apply to 0.9.7.* | |
16088 | ||
16089 | * Fix bug in PKCS#12 key generation routines. This was triggered | |
16090 | if a 3DES key was generated with a 0 initial byte. Include | |
16091 | PKCS12_BROKEN_KEYGEN compilation option to retain the old | |
16092 | (but broken) behaviour. | |
16093 | ||
16094 | *Steve Henson* | |
16095 | ||
16096 | * Enhance bctest to search for a working bc along $PATH and print | |
16097 | it when found. | |
16098 | ||
16099 | *Tim Rice <tim@multitalents.net> via Richard Levitte* | |
16100 | ||
16101 | * Fix memory leaks in err.c: free err_data string if necessary; | |
16102 | don't write to the wrong index in ERR_set_error_data. | |
16103 | ||
16104 | *Bodo Moeller* | |
16105 | ||
16106 | * Implement ssl23_peek (analogous to ssl23_read), which previously | |
16107 | did not exist. | |
16108 | ||
16109 | *Bodo Moeller* | |
16110 | ||
257e9d03 | 16111 | * Replace rdtsc with `_emit` statements for VC++ version 5. |
5f8e6c50 DMSP |
16112 | |
16113 | *Jeremy Cooper <jeremy@baymoo.org>* | |
16114 | ||
16115 | * Make it possible to reuse SSLv2 sessions. | |
16116 | ||
16117 | *Richard Levitte* | |
16118 | ||
16119 | * In copy_email() check for >= 0 as a return value for | |
16120 | X509_NAME_get_index_by_NID() since 0 is a valid index. | |
16121 | ||
16122 | *Steve Henson reported by Massimiliano Pala <madwolf@opensca.org>* | |
16123 | ||
16124 | * Avoid coredump with unsupported or invalid public keys by checking if | |
16125 | X509_get_pubkey() fails in PKCS7_verify(). Fix memory leak when | |
16126 | PKCS7_verify() fails with non detached data. | |
16127 | ||
16128 | *Steve Henson* | |
16129 | ||
16130 | * Don't use getenv in library functions when run as setuid/setgid. | |
16131 | New function OPENSSL_issetugid(). | |
16132 | ||
16133 | *Ulf Moeller* | |
16134 | ||
16135 | * Avoid false positives in memory leak detection code (crypto/mem_dbg.c) | |
16136 | due to incorrect handling of multi-threading: | |
16137 | ||
16138 | 1. Fix timing glitch in the MemCheck_off() portion of CRYPTO_mem_ctrl(). | |
16139 | ||
16140 | 2. Fix logical glitch in is_MemCheck_on() aka CRYPTO_is_mem_check_on(). | |
16141 | ||
16142 | 3. Count how many times MemCheck_off() has been called so that | |
16143 | nested use can be treated correctly. This also avoids | |
16144 | inband-signalling in the previous code (which relied on the | |
16145 | assumption that thread ID 0 is impossible). | |
16146 | ||
16147 | *Bodo Moeller* | |
16148 | ||
16149 | * Add "-rand" option also to s_client and s_server. | |
16150 | ||
16151 | *Lutz Jaenicke* | |
16152 | ||
16153 | * Fix CPU detection on Irix 6.x. | |
16154 | *Kurt Hockenbury <khockenb@stevens-tech.edu> and | |
257e9d03 | 16155 | "Bruce W. Forsberg" <bruce.forsberg@baesystems.com>* |
5f8e6c50 DMSP |
16156 | |
16157 | * Fix X509_NAME bug which produced incorrect encoding if X509_NAME | |
16158 | was empty. | |
16159 | ||
16160 | *Steve Henson* | |
16161 | ||
16162 | *This change does not apply to 0.9.7.* | |
16163 | ||
16164 | * Use the cached encoding of an X509_NAME structure rather than | |
16165 | copying it. This is apparently the reason for the libsafe "errors" | |
16166 | but the code is actually correct. | |
16167 | ||
16168 | *Steve Henson* | |
16169 | ||
16170 | * Add new function BN_rand_range(), and fix DSA_sign_setup() to prevent | |
16171 | Bleichenbacher's DSA attack. | |
16172 | Extend BN_[pseudo_]rand: As before, top=1 forces the highest two bits | |
16173 | to be set and top=0 forces the highest bit to be set; top=-1 is new | |
16174 | and leaves the highest bit random. | |
16175 | ||
16176 | *Ulf Moeller, Bodo Moeller* | |
16177 | ||
257e9d03 | 16178 | * In the `NCONF_...`-based implementations for `CONF_...` queries |
5f8e6c50 DMSP |
16179 | (crypto/conf/conf_lib.c), if the input LHASH is NULL, avoid using |
16180 | a temporary CONF structure with the data component set to NULL | |
16181 | (which gives segmentation faults in lh_retrieve). | |
16182 | Instead, use NULL for the CONF pointer in CONF_get_string and | |
16183 | CONF_get_number (which may use environment variables) and directly | |
16184 | return NULL from CONF_get_section. | |
16185 | ||
16186 | *Bodo Moeller* | |
16187 | ||
16188 | * Fix potential buffer overrun for EBCDIC. | |
16189 | ||
16190 | *Ulf Moeller* | |
16191 | ||
16192 | * Tolerate nonRepudiation as being valid for S/MIME signing and certSign | |
16193 | keyUsage if basicConstraints absent for a CA. | |
16194 | ||
16195 | *Steve Henson* | |
16196 | ||
16197 | * Make SMIME_write_PKCS7() write mail header values with a format that | |
16198 | is more generally accepted (no spaces before the semicolon), since | |
16199 | some programs can't parse those values properly otherwise. Also make | |
16200 | sure BIO's that break lines after each write do not create invalid | |
16201 | headers. | |
16202 | ||
16203 | *Richard Levitte* | |
16204 | ||
16205 | * Make the CRL encoding routines work with empty SEQUENCE OF. The | |
16206 | macros previously used would not encode an empty SEQUENCE OF | |
16207 | and break the signature. | |
16208 | ||
16209 | *Steve Henson* | |
16210 | ||
16211 | *This change does not apply to 0.9.7.* | |
16212 | ||
16213 | * Zero the premaster secret after deriving the master secret in | |
16214 | DH ciphersuites. | |
16215 | ||
16216 | *Steve Henson* | |
16217 | ||
16218 | * Add some EVP_add_digest_alias registrations (as found in | |
16219 | OpenSSL_add_all_digests()) to SSL_library_init() | |
16220 | aka OpenSSL_add_ssl_algorithms(). This provides improved | |
16221 | compatibility with peers using X.509 certificates | |
16222 | with unconventional AlgorithmIdentifier OIDs. | |
16223 | ||
16224 | *Bodo Moeller* | |
16225 | ||
16226 | * Fix for Irix with NO_ASM. | |
16227 | ||
16228 | *"Bruce W. Forsberg" <bruce.forsberg@baesystems.com>* | |
16229 | ||
16230 | * ./config script fixes. | |
16231 | ||
16232 | *Ulf Moeller, Richard Levitte* | |
16233 | ||
16234 | * Fix 'openssl passwd -1'. | |
16235 | ||
16236 | *Bodo Moeller* | |
16237 | ||
16238 | * Change PKCS12_key_gen_asc() so it can cope with non null | |
16239 | terminated strings whose length is passed in the passlen | |
16240 | parameter, for example from PEM callbacks. This was done | |
16241 | by adding an extra length parameter to asc2uni(). | |
16242 | ||
16243 | *Steve Henson, reported by <oddissey@samsung.co.kr>* | |
16244 | ||
16245 | * Fix C code generated by 'openssl dsaparam -C': If a BN_bin2bn | |
16246 | call failed, free the DSA structure. | |
16247 | ||
16248 | *Bodo Moeller* | |
16249 | ||
16250 | * Fix to uni2asc() to cope with zero length Unicode strings. | |
16251 | These are present in some PKCS#12 files. | |
16252 | ||
16253 | *Steve Henson* | |
16254 | ||
16255 | * Increase s2->wbuf allocation by one byte in ssl2_new (ssl/s2_lib.c). | |
16256 | Otherwise do_ssl_write (ssl/s2_pkt.c) will write beyond buffer limits | |
16257 | when writing a 32767 byte record. | |
16258 | ||
16259 | *Bodo Moeller; problem reported by Eric Day <eday@concentric.net>* | |
16260 | ||
257e9d03 RS |
16261 | * In `RSA_eay_public_{en,ed}crypt` and RSA_eay_mod_exp (rsa_eay.c), |
16262 | obtain lock CRYPTO_LOCK_RSA before setting `rsa->_method_mod_{n,p,q}`. | |
5f8e6c50 DMSP |
16263 | |
16264 | (RSA objects have a reference count access to which is protected | |
16265 | by CRYPTO_LOCK_RSA [see rsa_lib.c, s3_srvr.c, ssl_cert.c, ssl_rsa.c], | |
16266 | so they are meant to be shared between threads.) | |
16267 | *Bodo Moeller, Geoff Thorpe; original patch submitted by | |
16268 | "Reddie, Steven" <Steven.Reddie@ca.com>* | |
16269 | ||
16270 | * Fix a deadlock in CRYPTO_mem_leaks(). | |
16271 | ||
16272 | *Bodo Moeller* | |
16273 | ||
16274 | * Use better test patterns in bntest. | |
16275 | ||
16276 | *Ulf Möller* | |
16277 | ||
16278 | * rand_win.c fix for Borland C. | |
16279 | ||
16280 | *Ulf Möller* | |
16281 | ||
16282 | * BN_rshift bugfix for n == 0. | |
16283 | ||
16284 | *Bodo Moeller* | |
16285 | ||
16286 | * Add a 'bctest' script that checks for some known 'bc' bugs | |
16287 | so that 'make test' does not abort just because 'bc' is broken. | |
16288 | ||
16289 | *Bodo Moeller* | |
16290 | ||
16291 | * Store verify_result within SSL_SESSION also for client side to | |
16292 | avoid potential security hole. (Re-used sessions on the client side | |
16293 | always resulted in verify_result==X509_V_OK, not using the original | |
16294 | result of the server certificate verification.) | |
16295 | ||
16296 | *Lutz Jaenicke* | |
16297 | ||
16298 | * Fix ssl3_pending: If the record in s->s3->rrec is not of type | |
16299 | SSL3_RT_APPLICATION_DATA, return 0. | |
16300 | Similarly, change ssl2_pending to return 0 if SSL_in_init(s) is true. | |
16301 | ||
16302 | *Bodo Moeller* | |
16303 | ||
16304 | * Fix SSL_peek: | |
16305 | Both ssl2_peek and ssl3_peek, which were totally broken in earlier | |
16306 | releases, have been re-implemented by renaming the previous | |
16307 | implementations of ssl2_read and ssl3_read to ssl2_read_internal | |
16308 | and ssl3_read_internal, respectively, and adding 'peek' parameters | |
16309 | to them. The new ssl[23]_{read,peek} functions are calls to | |
16310 | ssl[23]_read_internal with the 'peek' flag set appropriately. | |
16311 | A 'peek' parameter has also been added to ssl3_read_bytes, which | |
16312 | does the actual work for ssl3_read_internal. | |
16313 | ||
16314 | *Bodo Moeller* | |
16315 | ||
16316 | * Initialise "ex_data" member of RSA/DSA/DH structures prior to calling | |
16317 | the method-specific "init()" handler. Also clean up ex_data after | |
16318 | calling the method-specific "finish()" handler. Previously, this was | |
16319 | happening the other way round. | |
16320 | ||
16321 | *Geoff Thorpe* | |
16322 | ||
16323 | * Increase BN_CTX_NUM (the number of BIGNUMs in a BN_CTX) to 16. | |
16324 | The previous value, 12, was not always sufficient for BN_mod_exp(). | |
16325 | ||
16326 | *Bodo Moeller* | |
16327 | ||
16328 | * Make sure that shared libraries get the internal name engine with | |
16329 | the full version number and not just 0. This should mark the | |
16330 | shared libraries as not backward compatible. Of course, this should | |
16331 | be changed again when we can guarantee backward binary compatibility. | |
16332 | ||
16333 | *Richard Levitte* | |
16334 | ||
16335 | * Fix typo in get_cert_by_subject() in by_dir.c | |
16336 | ||
16337 | *Jean-Marc Desperrier <jean-marc.desperrier@certplus.com>* | |
16338 | ||
16339 | * Rework the system to generate shared libraries: | |
16340 | ||
16341 | - Make note of the expected extension for the shared libraries and | |
16342 | if there is a need for symbolic links from for example libcrypto.so.0 | |
16343 | to libcrypto.so.0.9.7. There is extended info in Configure for | |
16344 | that. | |
16345 | ||
16346 | - Make as few rebuilds of the shared libraries as possible. | |
16347 | ||
16348 | - Still avoid linking the OpenSSL programs with the shared libraries. | |
16349 | ||
16350 | - When installing, install the shared libraries separately from the | |
16351 | static ones. | |
16352 | ||
16353 | *Richard Levitte* | |
16354 | ||
16355 | * Fix SSL_CTX_set_read_ahead macro to actually use its argument. | |
16356 | ||
16357 | Copy SSL_CTX's read_ahead flag to SSL object directly in SSL_new | |
16358 | and not in SSL_clear because the latter is also used by the | |
16359 | accept/connect functions; previously, the settings made by | |
16360 | SSL_set_read_ahead would be lost during the handshake. | |
16361 | ||
16362 | *Bodo Moeller; problems reported by Anders Gertz <gertz@epact.se>* | |
16363 | ||
16364 | * Correct util/mkdef.pl to be selective about disabled algorithms. | |
16365 | Previously, it would create entries for disabled algorithms no | |
16366 | matter what. | |
16367 | ||
16368 | *Richard Levitte* | |
16369 | ||
16370 | * Added several new manual pages for SSL_* function. | |
16371 | ||
16372 | *Lutz Jaenicke* | |
16373 | ||
257e9d03 | 16374 | ### Changes between 0.9.5a and 0.9.6 [24 Sep 2000] |
5f8e6c50 DMSP |
16375 | |
16376 | * In ssl23_get_client_hello, generate an error message when faced | |
16377 | with an initial SSL 3.0/TLS record that is too small to contain the | |
16378 | first two bytes of the ClientHello message, i.e. client_version. | |
16379 | (Note that this is a pathologic case that probably has never happened | |
16380 | in real life.) The previous approach was to use the version number | |
16381 | from the record header as a substitute; but our protocol choice | |
16382 | should not depend on that one because it is not authenticated | |
16383 | by the Finished messages. | |
16384 | ||
16385 | *Bodo Moeller* | |
16386 | ||
16387 | * More robust randomness gathering functions for Windows. | |
16388 | ||
16389 | *Jeffrey Altman <jaltman@columbia.edu>* | |
16390 | ||
16391 | * For compatibility reasons if the flag X509_V_FLAG_ISSUER_CHECK is | |
16392 | not set then we don't setup the error code for issuer check errors | |
16393 | to avoid possibly overwriting other errors which the callback does | |
16394 | handle. If an application does set the flag then we assume it knows | |
16395 | what it is doing and can handle the new informational codes | |
16396 | appropriately. | |
16397 | ||
16398 | *Steve Henson* | |
16399 | ||
16400 | * Fix for a nasty bug in ASN1_TYPE handling. ASN1_TYPE is used for | |
16401 | a general "ANY" type, as such it should be able to decode anything | |
16402 | including tagged types. However it didn't check the class so it would | |
16403 | wrongly interpret tagged types in the same way as their universal | |
16404 | counterpart and unknown types were just rejected. Changed so that the | |
16405 | tagged and unknown types are handled in the same way as a SEQUENCE: | |
16406 | that is the encoding is stored intact. There is also a new type | |
16407 | "V_ASN1_OTHER" which is used when the class is not universal, in this | |
16408 | case we have no idea what the actual type is so we just lump them all | |
16409 | together. | |
16410 | ||
16411 | *Steve Henson* | |
16412 | ||
16413 | * On VMS, stdout may very well lead to a file that is written to | |
16414 | in a record-oriented fashion. That means that every write() will | |
16415 | write a separate record, which will be read separately by the | |
16416 | programs trying to read from it. This can be very confusing. | |
16417 | ||
16418 | The solution is to put a BIO filter in the way that will buffer | |
16419 | text until a linefeed is reached, and then write everything a | |
16420 | line at a time, so every record written will be an actual line, | |
16421 | not chunks of lines and not (usually doesn't happen, but I've | |
16422 | seen it once) several lines in one record. BIO_f_linebuffer() is | |
16423 | the answer. | |
16424 | ||
16425 | Currently, it's a VMS-only method, because that's where it has | |
16426 | been tested well enough. | |
16427 | ||
16428 | *Richard Levitte* | |
16429 | ||
16430 | * Remove 'optimized' squaring variant in BN_mod_mul_montgomery, | |
16431 | it can return incorrect results. | |
16432 | (Note: The buggy variant was not enabled in OpenSSL 0.9.5a, | |
16433 | but it was in 0.9.6-beta[12].) | |
16434 | ||
16435 | *Bodo Moeller* | |
16436 | ||
16437 | * Disable the check for content being present when verifying detached | |
16438 | signatures in pk7_smime.c. Some versions of Netscape (wrongly) | |
16439 | include zero length content when signing messages. | |
16440 | ||
16441 | *Steve Henson* | |
16442 | ||
16443 | * New BIO_shutdown_wr macro, which invokes the BIO_C_SHUTDOWN_WR | |
16444 | BIO_ctrl (for BIO pairs). | |
16445 | ||
16446 | *Bodo Möller* | |
16447 | ||
16448 | * Add DSO method for VMS. | |
16449 | ||
16450 | *Richard Levitte* | |
16451 | ||
16452 | * Bug fix: Montgomery multiplication could produce results with the | |
16453 | wrong sign. | |
16454 | ||
16455 | *Ulf Möller* | |
16456 | ||
16457 | * Add RPM specification openssl.spec and modify it to build three | |
16458 | packages. The default package contains applications, application | |
16459 | documentation and run-time libraries. The devel package contains | |
16460 | include files, static libraries and function documentation. The | |
16461 | doc package contains the contents of the doc directory. The original | |
16462 | openssl.spec was provided by Damien Miller <djm@mindrot.org>. | |
16463 | ||
16464 | *Richard Levitte* | |
16465 | ||
16466 | * Add a large number of documentation files for many SSL routines. | |
16467 | ||
16468 | *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>* | |
16469 | ||
16470 | * Add a configuration entry for Sony News 4. | |
16471 | ||
16472 | *NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>* | |
16473 | ||
16474 | * Don't set the two most significant bits to one when generating a | |
16475 | random number < q in the DSA library. | |
16476 | ||
16477 | *Ulf Möller* | |
16478 | ||
16479 | * New SSL API mode 'SSL_MODE_AUTO_RETRY'. This disables the default | |
16480 | behaviour that SSL_read may result in SSL_ERROR_WANT_READ (even if | |
16481 | the underlying transport is blocking) if a handshake took place. | |
16482 | (The default behaviour is needed by applications such as s_client | |
16483 | and s_server that use select() to determine when to use SSL_read; | |
16484 | but for applications that know in advance when to expect data, it | |
16485 | just makes things more complicated.) | |
16486 | ||
16487 | *Bodo Moeller* | |
16488 | ||
16489 | * Add RAND_egd_bytes(), which gives control over the number of bytes read | |
16490 | from EGD. | |
16491 | ||
16492 | *Ben Laurie* | |
16493 | ||
257e9d03 | 16494 | * Add a few more EBCDIC conditionals that make `req` and `x509` |
5f8e6c50 DMSP |
16495 | work better on such systems. |
16496 | ||
16497 | *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>* | |
16498 | ||
16499 | * Add two demo programs for PKCS12_parse() and PKCS12_create(). | |
16500 | Update PKCS12_parse() so it copies the friendlyName and the | |
16501 | keyid to the certificates aux info. | |
16502 | ||
16503 | *Steve Henson* | |
16504 | ||
16505 | * Fix bug in PKCS7_verify() which caused an infinite loop | |
16506 | if there was more than one signature. | |
16507 | ||
16508 | *Sven Uszpelkat <su@celocom.de>* | |
16509 | ||
16510 | * Major change in util/mkdef.pl to include extra information | |
16511 | about each symbol, as well as presenting variables as well | |
16512 | as functions. This change means that there's n more need | |
16513 | to rebuild the .num files when some algorithms are excluded. | |
16514 | ||
16515 | *Richard Levitte* | |
16516 | ||
16517 | * Allow the verify time to be set by an application, | |
16518 | rather than always using the current time. | |
16519 | ||
16520 | *Steve Henson* | |
16521 | ||
16522 | * Phase 2 verify code reorganisation. The certificate | |
16523 | verify code now looks up an issuer certificate by a | |
16524 | number of criteria: subject name, authority key id | |
16525 | and key usage. It also verifies self signed certificates | |
16526 | by the same criteria. The main comparison function is | |
16527 | X509_check_issued() which performs these checks. | |
16528 | ||
16529 | Lot of changes were necessary in order to support this | |
16530 | without completely rewriting the lookup code. | |
16531 | ||
16532 | Authority and subject key identifier are now cached. | |
16533 | ||
16534 | The LHASH 'certs' is X509_STORE has now been replaced | |
16535 | by a STACK_OF(X509_OBJECT). This is mainly because an | |
16536 | LHASH can't store or retrieve multiple objects with | |
16537 | the same hash value. | |
16538 | ||
16539 | As a result various functions (which were all internal | |
16540 | use only) have changed to handle the new X509_STORE | |
16541 | structure. This will break anything that messed round | |
16542 | with X509_STORE internally. | |
16543 | ||
16544 | The functions X509_STORE_add_cert() now checks for an | |
16545 | exact match, rather than just subject name. | |
16546 | ||
16547 | The X509_STORE API doesn't directly support the retrieval | |
16548 | of multiple certificates matching a given criteria, however | |
16549 | this can be worked round by performing a lookup first | |
16550 | (which will fill the cache with candidate certificates) | |
16551 | and then examining the cache for matches. This is probably | |
16552 | the best we can do without throwing out X509_LOOKUP | |
16553 | entirely (maybe later...). | |
16554 | ||
16555 | The X509_VERIFY_CTX structure has been enhanced considerably. | |
16556 | ||
16557 | All certificate lookup operations now go via a get_issuer() | |
16558 | callback. Although this currently uses an X509_STORE it | |
16559 | can be replaced by custom lookups. This is a simple way | |
16560 | to bypass the X509_STORE hackery necessary to make this | |
16561 | work and makes it possible to use more efficient techniques | |
16562 | in future. A very simple version which uses a simple | |
16563 | STACK for its trusted certificate store is also provided | |
16564 | using X509_STORE_CTX_trusted_stack(). | |
16565 | ||
16566 | The verify_cb() and verify() callbacks now have equivalents | |
16567 | in the X509_STORE_CTX structure. | |
16568 | ||
16569 | X509_STORE_CTX also has a 'flags' field which can be used | |
16570 | to customise the verify behaviour. | |
16571 | ||
16572 | *Steve Henson* | |
16573 | ||
16574 | * Add new PKCS#7 signing option PKCS7_NOSMIMECAP which | |
16575 | excludes S/MIME capabilities. | |
16576 | ||
16577 | *Steve Henson* | |
16578 | ||
16579 | * When a certificate request is read in keep a copy of the | |
16580 | original encoding of the signed data and use it when outputting | |
16581 | again. Signatures then use the original encoding rather than | |
16582 | a decoded, encoded version which may cause problems if the | |
16583 | request is improperly encoded. | |
16584 | ||
16585 | *Steve Henson* | |
16586 | ||
16587 | * For consistency with other BIO_puts implementations, call | |
16588 | buffer_write(b, ...) directly in buffer_puts instead of calling | |
16589 | BIO_write(b, ...). | |
16590 | ||
16591 | In BIO_puts, increment b->num_write as in BIO_write. | |
16592 | ||
16593 | *Peter.Sylvester@EdelWeb.fr* | |
16594 | ||
16595 | * Fix BN_mul_word for the case where the word is 0. (We have to use | |
16596 | BN_zero, we may not return a BIGNUM with an array consisting of | |
16597 | words set to zero.) | |
16598 | ||
16599 | *Bodo Moeller* | |
16600 | ||
16601 | * Avoid calling abort() from within the library when problems are | |
16602 | detected, except if preprocessor symbols have been defined | |
16603 | (such as REF_CHECK, BN_DEBUG etc.). | |
16604 | ||
16605 | *Bodo Moeller* | |
16606 | ||
16607 | * New openssl application 'rsautl'. This utility can be | |
4d49b685 | 16608 | used for low-level RSA operations. DER public key |
5f8e6c50 DMSP |
16609 | BIO/fp routines also added. |
16610 | ||
16611 | *Steve Henson* | |
16612 | ||
16613 | * New Configure entry and patches for compiling on QNX 4. | |
16614 | ||
16615 | *Andreas Schneider <andreas@ds3.etech.fh-hamburg.de>* | |
16616 | ||
16617 | * A demo state-machine implementation was sponsored by | |
257e9d03 | 16618 | Nuron (<http://www.nuron.com/>) and is now available in |
5f8e6c50 DMSP |
16619 | demos/state_machine. |
16620 | ||
16621 | *Ben Laurie* | |
16622 | ||
16623 | * New options added to the 'dgst' utility for signature | |
16624 | generation and verification. | |
16625 | ||
16626 | *Steve Henson* | |
16627 | ||
16628 | * Unrecognized PKCS#7 content types are now handled via a | |
16629 | catch all ASN1_TYPE structure. This allows unsupported | |
16630 | types to be stored as a "blob" and an application can | |
16631 | encode and decode it manually. | |
16632 | ||
16633 | *Steve Henson* | |
16634 | ||
16635 | * Fix various signed/unsigned issues to make a_strex.c | |
16636 | compile under VC++. | |
16637 | ||
16638 | *Oscar Jacobsson <oscar.jacobsson@celocom.com>* | |
16639 | ||
16640 | * ASN1 fixes. i2d_ASN1_OBJECT was not returning the correct | |
16641 | length if passed a buffer. ASN1_INTEGER_to_BN failed | |
16642 | if passed a NULL BN and its argument was negative. | |
16643 | ||
16644 | *Steve Henson, pointed out by Sven Heiberg <sven@tartu.cyber.ee>* | |
16645 | ||
16646 | * Modification to PKCS#7 encoding routines to output definite | |
16647 | length encoding. Since currently the whole structures are in | |
16648 | memory there's not real point in using indefinite length | |
16649 | constructed encoding. However if OpenSSL is compiled with | |
16650 | the flag PKCS7_INDEFINITE_ENCODING the old form is used. | |
16651 | ||
16652 | *Steve Henson* | |
16653 | ||
16654 | * Added BIO_vprintf() and BIO_vsnprintf(). | |
16655 | ||
16656 | *Richard Levitte* | |
16657 | ||
16658 | * Added more prefixes to parse for in the strings written | |
16659 | through a logging bio, to cover all the levels that are available | |
16660 | through syslog. The prefixes are now: | |
16661 | ||
16662 | PANIC, EMERG, EMR => LOG_EMERG | |
16663 | ALERT, ALR => LOG_ALERT | |
16664 | CRIT, CRI => LOG_CRIT | |
16665 | ERROR, ERR => LOG_ERR | |
16666 | WARNING, WARN, WAR => LOG_WARNING | |
16667 | NOTICE, NOTE, NOT => LOG_NOTICE | |
16668 | INFO, INF => LOG_INFO | |
16669 | DEBUG, DBG => LOG_DEBUG | |
16670 | ||
16671 | and as before, if none of those prefixes are present at the | |
16672 | beginning of the string, LOG_ERR is chosen. | |
16673 | ||
257e9d03 | 16674 | On Win32, the `LOG_*` levels are mapped according to this: |
5f8e6c50 DMSP |
16675 | |
16676 | LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR => EVENTLOG_ERROR_TYPE | |
16677 | LOG_WARNING => EVENTLOG_WARNING_TYPE | |
16678 | LOG_NOTICE, LOG_INFO, LOG_DEBUG => EVENTLOG_INFORMATION_TYPE | |
16679 | ||
5f8e6c50 DMSP |
16680 | *Richard Levitte* |
16681 | ||
16682 | * Made it possible to reconfigure with just the configuration | |
16683 | argument "reconf" or "reconfigure". The command line arguments | |
16684 | are stored in Makefile.ssl in the variable CONFIGURE_ARGS, | |
16685 | and are retrieved from there when reconfiguring. | |
16686 | ||
16687 | *Richard Levitte* | |
16688 | ||
16689 | * MD4 implemented. | |
16690 | ||
16691 | *Assar Westerlund <assar@sics.se>, Richard Levitte* | |
16692 | ||
16693 | * Add the arguments -CAfile and -CApath to the pkcs12 utility. | |
16694 | ||
16695 | *Richard Levitte* | |
16696 | ||
16697 | * The obj_dat.pl script was messing up the sorting of object | |
16698 | names. The reason was that it compared the quoted version | |
16699 | of strings as a result "OCSP" > "OCSP Signing" because | |
16700 | " > SPACE. Changed script to store unquoted versions of | |
16701 | names and add quotes on output. It was also omitting some | |
16702 | names from the lookup table if they were given a default | |
16703 | value (that is if SN is missing it is given the same | |
16704 | value as LN and vice versa), these are now added on the | |
16705 | grounds that if an object has a name we should be able to | |
16706 | look it up. Finally added warning output when duplicate | |
16707 | short or long names are found. | |
16708 | ||
16709 | *Steve Henson* | |
16710 | ||
16711 | * Changes needed for Tandem NSK. | |
16712 | ||
16713 | *Scott Uroff <scott@xypro.com>* | |
16714 | ||
16715 | * Fix SSL 2.0 rollback checking: Due to an off-by-one error in | |
16716 | RSA_padding_check_SSLv23(), special padding was never detected | |
16717 | and thus the SSL 3.0/TLS 1.0 countermeasure against protocol | |
16718 | version rollback attacks was not effective. | |
16719 | ||
16720 | In s23_clnt.c, don't use special rollback-attack detection padding | |
16721 | (RSA_SSLV23_PADDING) if SSL 2.0 is the only protocol enabled in the | |
16722 | client; similarly, in s23_srvr.c, don't do the rollback check if | |
16723 | SSL 2.0 is the only protocol enabled in the server. | |
16724 | ||
16725 | *Bodo Moeller* | |
16726 | ||
16727 | * Make it possible to get hexdumps of unprintable data with 'openssl | |
16728 | asn1parse'. By implication, the functions ASN1_parse_dump() and | |
16729 | BIO_dump_indent() are added. | |
16730 | ||
16731 | *Richard Levitte* | |
16732 | ||
16733 | * New functions ASN1_STRING_print_ex() and X509_NAME_print_ex() | |
16734 | these print out strings and name structures based on various | |
16735 | flags including RFC2253 support and proper handling of | |
16736 | multibyte characters. Added options to the 'x509' utility | |
16737 | to allow the various flags to be set. | |
16738 | ||
16739 | *Steve Henson* | |
16740 | ||
16741 | * Various fixes to use ASN1_TIME instead of ASN1_UTCTIME. | |
16742 | Also change the functions X509_cmp_current_time() and | |
16743 | X509_gmtime_adj() work with an ASN1_TIME structure, | |
16744 | this will enable certificates using GeneralizedTime in validity | |
16745 | dates to be checked. | |
16746 | ||
16747 | *Steve Henson* | |
16748 | ||
16749 | * Make the NEG_PUBKEY_BUG code (which tolerates invalid | |
16750 | negative public key encodings) on by default, | |
16751 | NO_NEG_PUBKEY_BUG can be set to disable it. | |
16752 | ||
16753 | *Steve Henson* | |
16754 | ||
16755 | * New function c2i_ASN1_OBJECT() which acts on ASN1_OBJECT | |
16756 | content octets. An i2c_ASN1_OBJECT is unnecessary because | |
16757 | the encoding can be trivially obtained from the structure. | |
16758 | ||
16759 | *Steve Henson* | |
16760 | ||
257e9d03 RS |
16761 | * crypto/err.c locking bugfix: Use write locks (`CRYPTO_w_[un]lock`), |
16762 | not read locks (`CRYPTO_r_[un]lock`). | |
5f8e6c50 DMSP |
16763 | |
16764 | *Bodo Moeller* | |
16765 | ||
16766 | * A first attempt at creating official support for shared | |
16767 | libraries through configuration. I've kept it so the | |
16768 | default is static libraries only, and the OpenSSL programs | |
16769 | are always statically linked for now, but there are | |
16770 | preparations for dynamic linking in place. | |
16771 | This has been tested on Linux and Tru64. | |
16772 | ||
16773 | *Richard Levitte* | |
16774 | ||
16775 | * Randomness polling function for Win9x, as described in: | |
16776 | Peter Gutmann, Software Generation of Practically Strong | |
16777 | Random Numbers. | |
16778 | ||
16779 | *Ulf Möller* | |
16780 | ||
16781 | * Fix so PRNG is seeded in req if using an already existing | |
16782 | DSA key. | |
16783 | ||
16784 | *Steve Henson* | |
16785 | ||
16786 | * New options to smime application. -inform and -outform | |
16787 | allow alternative formats for the S/MIME message including | |
16788 | PEM and DER. The -content option allows the content to be | |
16789 | specified separately. This should allow things like Netscape | |
16790 | form signing output easier to verify. | |
16791 | ||
16792 | *Steve Henson* | |
16793 | ||
16794 | * Fix the ASN1 encoding of tags using the 'long form'. | |
16795 | ||
16796 | *Steve Henson* | |
16797 | ||
257e9d03 | 16798 | * New ASN1 functions, `i2c_*` and `c2i_*` for INTEGER and BIT |
5f8e6c50 DMSP |
16799 | STRING types. These convert content octets to and from the |
16800 | underlying type. The actual tag and length octets are | |
16801 | already assumed to have been read in and checked. These | |
16802 | are needed because all other string types have virtually | |
16803 | identical handling apart from the tag. By having versions | |
16804 | of the ASN1 functions that just operate on content octets | |
16805 | IMPLICIT tagging can be handled properly. It also allows | |
16806 | the ASN1_ENUMERATED code to be cut down because ASN1_ENUMERATED | |
16807 | and ASN1_INTEGER are identical apart from the tag. | |
16808 | ||
16809 | *Steve Henson* | |
16810 | ||
16811 | * Change the handling of OID objects as follows: | |
16812 | ||
16813 | - New object identifiers are inserted in objects.txt, following | |
1dc1ea18 | 16814 | the syntax given in [crypto/objects/README.md](crypto/objects/README.md). |
5f8e6c50 DMSP |
16815 | - objects.pl is used to process obj_mac.num and create a new |
16816 | obj_mac.h. | |
16817 | - obj_dat.pl is used to create a new obj_dat.h, using the data in | |
16818 | obj_mac.h. | |
16819 | ||
16820 | This is currently kind of a hack, and the perl code in objects.pl | |
16821 | isn't very elegant, but it works as I intended. The simplest way | |
16822 | to check that it worked correctly is to look in obj_dat.h and | |
16823 | check the array nid_objs and make sure the objects haven't moved | |
16824 | around (this is important!). Additions are OK, as well as | |
16825 | consistent name changes. | |
16826 | ||
16827 | *Richard Levitte* | |
16828 | ||
16829 | * Add BSD-style MD5-based passwords to 'openssl passwd' (option '-1'). | |
16830 | ||
16831 | *Bodo Moeller* | |
16832 | ||
16833 | * Addition of the command line parameter '-rand file' to 'openssl req'. | |
16834 | The given file adds to whatever has already been seeded into the | |
16835 | random pool through the RANDFILE configuration file option or | |
16836 | environment variable, or the default random state file. | |
16837 | ||
16838 | *Richard Levitte* | |
16839 | ||
16840 | * mkstack.pl now sorts each macro group into lexical order. | |
16841 | Previously the output order depended on the order the files | |
16842 | appeared in the directory, resulting in needless rewriting | |
16843 | of safestack.h . | |
16844 | ||
16845 | *Steve Henson* | |
16846 | ||
16847 | * Patches to make OpenSSL compile under Win32 again. Mostly | |
16848 | work arounds for the VC++ problem that it treats func() as | |
16849 | func(void). Also stripped out the parts of mkdef.pl that | |
16850 | added extra typesafe functions: these no longer exist. | |
16851 | ||
16852 | *Steve Henson* | |
16853 | ||
16854 | * Reorganisation of the stack code. The macros are now all | |
16855 | collected in safestack.h . Each macro is defined in terms of | |
257e9d03 | 16856 | a "stack macro" of the form `SKM_<name>(type, a, b)`. The |
5f8e6c50 DMSP |
16857 | DEBUG_SAFESTACK is now handled in terms of function casts, |
16858 | this has the advantage of retaining type safety without the | |
16859 | use of additional functions. If DEBUG_SAFESTACK is not defined | |
16860 | then the non typesafe macros are used instead. Also modified the | |
16861 | mkstack.pl script to handle the new form. Needs testing to see | |
16862 | if which (if any) compilers it chokes and maybe make DEBUG_SAFESTACK | |
16863 | the default if no major problems. Similar behaviour for ASN1_SET_OF | |
16864 | and PKCS12_STACK_OF. | |
16865 | ||
16866 | *Steve Henson* | |
16867 | ||
16868 | * When some versions of IIS use the 'NET' form of private key the | |
16869 | key derivation algorithm is different. Normally MD5(password) is | |
16870 | used as a 128 bit RC4 key. In the modified case | |
16871 | MD5(MD5(password) + "SGCKEYSALT") is used instead. Added some | |
16872 | new functions i2d_RSA_NET(), d2i_RSA_NET() etc which are the same | |
16873 | as the old Netscape_RSA functions except they have an additional | |
16874 | 'sgckey' parameter which uses the modified algorithm. Also added | |
16875 | an -sgckey command line option to the rsa utility. Thanks to | |
16876 | Adrian Peck <bertie@ncipher.com> for posting details of the modified | |
16877 | algorithm to openssl-dev. | |
16878 | ||
16879 | *Steve Henson* | |
16880 | ||
16881 | * The evp_local.h macros were using 'c.##kname' which resulted in | |
16882 | invalid expansion on some systems (SCO 5.0.5 for example). | |
16883 | Corrected to 'c.kname'. | |
16884 | ||
16885 | *Phillip Porch <root@theporch.com>* | |
16886 | ||
16887 | * New X509_get1_email() and X509_REQ_get1_email() functions that return | |
16888 | a STACK of email addresses from a certificate or request, these look | |
16889 | in the subject name and the subject alternative name extensions and | |
16890 | omit any duplicate addresses. | |
16891 | ||
16892 | *Steve Henson* | |
16893 | ||
16894 | * Re-implement BN_mod_exp2_mont using independent (and larger) windows. | |
16895 | This makes DSA verification about 2 % faster. | |
16896 | ||
16897 | *Bodo Moeller* | |
16898 | ||
257e9d03 | 16899 | * Increase maximum window size in `BN_mod_exp_...` to 6 bits instead of 5 |
5f8e6c50 DMSP |
16900 | (meaning that now 2^5 values will be precomputed, which is only 4 KB |
16901 | plus overhead for 1024 bit moduli). | |
16902 | This makes exponentiations about 0.5 % faster for 1024 bit | |
16903 | exponents (as measured by "openssl speed rsa2048"). | |
16904 | ||
16905 | *Bodo Moeller* | |
16906 | ||
16907 | * Rename memory handling macros to avoid conflicts with other | |
16908 | software: | |
16909 | Malloc => OPENSSL_malloc | |
16910 | Malloc_locked => OPENSSL_malloc_locked | |
16911 | Realloc => OPENSSL_realloc | |
16912 | Free => OPENSSL_free | |
16913 | ||
16914 | *Richard Levitte* | |
16915 | ||
16916 | * New function BN_mod_exp_mont_word for small bases (roughly 15% | |
16917 | faster than BN_mod_exp_mont, i.e. 7% for a full DH exchange). | |
16918 | ||
16919 | *Bodo Moeller* | |
16920 | ||
16921 | * CygWin32 support. | |
16922 | ||
16923 | *John Jarvie <jjarvie@newsguy.com>* | |
16924 | ||
16925 | * The type-safe stack code has been rejigged. It is now only compiled | |
16926 | in when OpenSSL is configured with the DEBUG_SAFESTACK option and | |
16927 | by default all type-specific stack functions are "#define"d back to | |
16928 | standard stack functions. This results in more streamlined output | |
16929 | but retains the type-safety checking possibilities of the original | |
16930 | approach. | |
16931 | ||
16932 | *Geoff Thorpe* | |
16933 | ||
16934 | * The STACK code has been cleaned up, and certain type declarations | |
16935 | that didn't make a lot of sense have been brought in line. This has | |
16936 | also involved a cleanup of sorts in safestack.h to more correctly | |
16937 | map type-safe stack functions onto their plain stack counterparts. | |
16938 | This work has also resulted in a variety of "const"ifications of | |
257e9d03 | 16939 | lots of the code, especially `_cmp` operations which should normally |
5f8e6c50 DMSP |
16940 | be prototyped with "const" parameters anyway. |
16941 | ||
16942 | *Geoff Thorpe* | |
16943 | ||
16944 | * When generating bytes for the first time in md_rand.c, 'stir the pool' | |
16945 | by seeding with STATE_SIZE dummy bytes (with zero entropy count). | |
16946 | (The PRNG state consists of two parts, the large pool 'state' and 'md', | |
16947 | where all of 'md' is used each time the PRNG is used, but 'state' | |
16948 | is used only indexed by a cyclic counter. As entropy may not be | |
16949 | well distributed from the beginning, 'md' is important as a | |
16950 | chaining variable. However, the output function chains only half | |
16951 | of 'md', i.e. 80 bits. ssleay_rand_add, on the other hand, chains | |
16952 | all of 'md', and seeding with STATE_SIZE dummy bytes will result | |
16953 | in all of 'state' being rewritten, with the new values depending | |
16954 | on virtually all of 'md'. This overcomes the 80 bit limitation.) | |
16955 | ||
16956 | *Bodo Moeller* | |
16957 | ||
16958 | * In ssl/s2_clnt.c and ssl/s3_clnt.c, call ERR_clear_error() when | |
16959 | the handshake is continued after ssl_verify_cert_chain(); | |
16960 | otherwise, if SSL_VERIFY_NONE is set, remaining error codes | |
16961 | can lead to 'unexplainable' connection aborts later. | |
16962 | ||
16963 | *Bodo Moeller; problem tracked down by Lutz Jaenicke* | |
16964 | ||
16965 | * Major EVP API cipher revision. | |
16966 | Add hooks for extra EVP features. This allows various cipher | |
16967 | parameters to be set in the EVP interface. Support added for variable | |
16968 | key length ciphers via the EVP_CIPHER_CTX_set_key_length() function and | |
16969 | setting of RC2 and RC5 parameters. | |
16970 | ||
16971 | Modify EVP_OpenInit() and EVP_SealInit() to cope with variable key length | |
16972 | ciphers. | |
16973 | ||
16974 | Remove lots of duplicated code from the EVP library. For example *every* | |
16975 | cipher init() function handles the 'iv' in the same way according to the | |
16976 | cipher mode. They also all do nothing if the 'key' parameter is NULL and | |
16977 | for CFB and OFB modes they zero ctx->num. | |
16978 | ||
16979 | New functionality allows removal of S/MIME code RC2 hack. | |
16980 | ||
16981 | Most of the routines have the same form and so can be declared in terms | |
16982 | of macros. | |
16983 | ||
16984 | By shifting this to the top level EVP_CipherInit() it can be removed from | |
16985 | all individual ciphers. If the cipher wants to handle IVs or keys | |
16986 | differently it can set the EVP_CIPH_CUSTOM_IV or EVP_CIPH_ALWAYS_CALL_INIT | |
16987 | flags. | |
16988 | ||
16989 | Change lots of functions like EVP_EncryptUpdate() to now return a | |
16990 | value: although software versions of the algorithms cannot fail | |
16991 | any installed hardware versions can. | |
16992 | ||
16993 | *Steve Henson* | |
16994 | ||
16995 | * Implement SSL_OP_TLS_ROLLBACK_BUG: In ssl3_get_client_key_exchange, if | |
16996 | this option is set, tolerate broken clients that send the negotiated | |
16997 | protocol version number instead of the requested protocol version | |
16998 | number. | |
16999 | ||
17000 | *Bodo Moeller* | |
17001 | ||
257e9d03 | 17002 | * Call dh_tmp_cb (set by `..._TMP_DH_CB`) with correct 'is_export' flag; |
5f8e6c50 DMSP |
17003 | i.e. non-zero for export ciphersuites, zero otherwise. |
17004 | Previous versions had this flag inverted, inconsistent with | |
17005 | rsa_tmp_cb (..._TMP_RSA_CB). | |
17006 | ||
17007 | *Bodo Moeller; problem reported by Amit Chopra* | |
17008 | ||
17009 | * Add missing DSA library text string. Work around for some IIS | |
17010 | key files with invalid SEQUENCE encoding. | |
17011 | ||
17012 | *Steve Henson* | |
17013 | ||
17014 | * Add a document (doc/standards.txt) that list all kinds of standards | |
17015 | and so on that are implemented in OpenSSL. | |
17016 | ||
17017 | *Richard Levitte* | |
17018 | ||
17019 | * Enhance c_rehash script. Old version would mishandle certificates | |
17020 | with the same subject name hash and wouldn't handle CRLs at all. | |
17021 | Added -fingerprint option to crl utility, to support new c_rehash | |
17022 | features. | |
17023 | ||
17024 | *Steve Henson* | |
17025 | ||
17026 | * Eliminate non-ANSI declarations in crypto.h and stack.h. | |
17027 | ||
17028 | *Ulf Möller* | |
17029 | ||
17030 | * Fix for SSL server purpose checking. Server checking was | |
17031 | rejecting certificates which had extended key usage present | |
17032 | but no ssl client purpose. | |
17033 | ||
17034 | *Steve Henson, reported by Rene Grosser <grosser@hisolutions.com>* | |
17035 | ||
17036 | * Make PKCS#12 code work with no password. The PKCS#12 spec | |
17037 | is a little unclear about how a blank password is handled. | |
17038 | Since the password in encoded as a BMPString with terminating | |
17039 | double NULL a zero length password would end up as just the | |
17040 | double NULL. However no password at all is different and is | |
17041 | handled differently in the PKCS#12 key generation code. NS | |
17042 | treats a blank password as zero length. MSIE treats it as no | |
17043 | password on export: but it will try both on import. We now do | |
17044 | the same: PKCS12_parse() tries zero length and no password if | |
17045 | the password is set to "" or NULL (NULL is now a valid password: | |
17046 | it wasn't before) as does the pkcs12 application. | |
17047 | ||
17048 | *Steve Henson* | |
17049 | ||
ec2bfb7d | 17050 | * Bugfixes in `apps/x509.c`: Avoid a memory leak; and don't use |
5f8e6c50 DMSP |
17051 | perror when PEM_read_bio_X509_REQ fails, the error message must |
17052 | be obtained from the error queue. | |
17053 | ||
17054 | *Bodo Moeller* | |
17055 | ||
17056 | * Avoid 'thread_hash' memory leak in crypto/err/err.c by freeing | |
17057 | it in ERR_remove_state if appropriate, and change ERR_get_state | |
17058 | accordingly to avoid race conditions (this is necessary because | |
17059 | thread_hash is no longer constant once set). | |
17060 | ||
17061 | *Bodo Moeller* | |
17062 | ||
17063 | * Bugfix for linux-elf makefile.one. | |
17064 | ||
17065 | *Ulf Möller* | |
17066 | ||
17067 | * RSA_get_default_method() will now cause a default | |
17068 | RSA_METHOD to be chosen if one doesn't exist already. | |
17069 | Previously this was only set during a call to RSA_new() | |
17070 | or RSA_new_method(NULL) meaning it was possible for | |
17071 | RSA_get_default_method() to return NULL. | |
17072 | ||
17073 | *Geoff Thorpe* | |
17074 | ||
17075 | * Added native name translation to the existing DSO code | |
17076 | that will convert (if the flag to do so is set) filenames | |
17077 | that are sufficiently small and have no path information | |
17078 | into a canonical native form. Eg. "blah" converted to | |
17079 | "libblah.so" or "blah.dll" etc. | |
17080 | ||
17081 | *Geoff Thorpe* | |
17082 | ||
17083 | * New function ERR_error_string_n(e, buf, len) which is like | |
17084 | ERR_error_string(e, buf), but writes at most 'len' bytes | |
17085 | including the 0 terminator. For ERR_error_string_n, 'buf' | |
17086 | may not be NULL. | |
17087 | ||
17088 | *Damien Miller <djm@mindrot.org>, Bodo Moeller* | |
17089 | ||
17090 | * CONF library reworked to become more general. A new CONF | |
17091 | configuration file reader "class" is implemented as well as a | |
257e9d03 RS |
17092 | new functions (`NCONF_*`, for "New CONF") to handle it. The now |
17093 | old `CONF_*` functions are still there, but are reimplemented to | |
5f8e6c50 DMSP |
17094 | work in terms of the new functions. Also, a set of functions |
17095 | to handle the internal storage of the configuration data is | |
17096 | provided to make it easier to write new configuration file | |
17097 | reader "classes" (I can definitely see something reading a | |
257e9d03 | 17098 | configuration file in XML format, for example), called `_CONF_*`, |
5f8e6c50 DMSP |
17099 | or "the configuration storage API"... |
17100 | ||
17101 | The new configuration file reading functions are: | |
17102 | ||
17103 | NCONF_new, NCONF_free, NCONF_load, NCONF_load_fp, NCONF_load_bio, | |
17104 | NCONF_get_section, NCONF_get_string, NCONF_get_numbre | |
17105 | ||
17106 | NCONF_default, NCONF_WIN32 | |
17107 | ||
17108 | NCONF_dump_fp, NCONF_dump_bio | |
17109 | ||
17110 | NCONF_default and NCONF_WIN32 are method (or "class") choosers, | |
17111 | NCONF_new creates a new CONF object. This works in the same way | |
17112 | as other interfaces in OpenSSL, like the BIO interface. | |
257e9d03 | 17113 | `NCONF_dump_*` dump the internal storage of the configuration file, |
5f8e6c50 | 17114 | which is useful for debugging. All other functions take the same |
257e9d03 RS |
17115 | arguments as the old `CONF_*` functions with the exception of the |
17116 | first that must be a `CONF *` instead of a `LHASH *`. | |
5f8e6c50 | 17117 | |
257e9d03 | 17118 | To make it easier to use the new classes with the old `CONF_*` functions, |
5f8e6c50 DMSP |
17119 | the function CONF_set_default_method is provided. |
17120 | ||
17121 | *Richard Levitte* | |
17122 | ||
17123 | * Add '-tls1' option to 'openssl ciphers', which was already | |
17124 | mentioned in the documentation but had not been implemented. | |
17125 | (This option is not yet really useful because even the additional | |
17126 | experimental TLS 1.0 ciphers are currently treated as SSL 3.0 ciphers.) | |
17127 | ||
17128 | *Bodo Moeller* | |
17129 | ||
17130 | * Initial DSO code added into libcrypto for letting OpenSSL (and | |
17131 | OpenSSL-based applications) load shared libraries and bind to | |
17132 | them in a portable way. | |
17133 | ||
17134 | *Geoff Thorpe, with contributions from Richard Levitte* | |
17135 | ||
257e9d03 | 17136 | ### Changes between 0.9.5 and 0.9.5a [1 Apr 2000] |
5f8e6c50 DMSP |
17137 | |
17138 | * Make sure _lrotl and _lrotr are only used with MSVC. | |
17139 | ||
17140 | * Use lock CRYPTO_LOCK_RAND correctly in ssleay_rand_status | |
17141 | (the default implementation of RAND_status). | |
17142 | ||
17143 | * Rename openssl x509 option '-crlext', which was added in 0.9.5, | |
17144 | to '-clrext' (= clear extensions), as intended and documented. | |
17145 | *Bodo Moeller; inconsistency pointed out by Michael Attili | |
17146 | <attili@amaxo.com>* | |
17147 | ||
17148 | * Fix for HMAC. It wasn't zeroing the rest of the block if the key length | |
17149 | was larger than the MD block size. | |
17150 | ||
17151 | *Steve Henson, pointed out by Yost William <YostW@tce.com>* | |
17152 | ||
17153 | * Modernise PKCS12_parse() so it uses STACK_OF(X509) for its ca argument | |
17154 | fix a leak when the ca argument was passed as NULL. Stop X509_PUBKEY_set() | |
17155 | using the passed key: if the passed key was a private key the result | |
17156 | of X509_print(), for example, would be to print out all the private key | |
17157 | components. | |
17158 | ||
17159 | *Steve Henson* | |
17160 | ||
17161 | * des_quad_cksum() byte order bug fix. | |
17162 | *Ulf Möller, using the problem description in krb4-0.9.7, where | |
257e9d03 | 17163 | the solution is attributed to Derrick J Brashear <shadow@DEMENTIA.ORG>* |
5f8e6c50 DMSP |
17164 | |
17165 | * Fix so V_ASN1_APP_CHOOSE works again: however its use is strongly | |
17166 | discouraged. | |
17167 | ||
17168 | *Steve Henson, pointed out by Brian Korver <briank@cs.stanford.edu>* | |
17169 | ||
17170 | * For easily testing in shell scripts whether some command | |
17171 | 'openssl XXX' exists, the new pseudo-command 'openssl no-XXX' | |
17172 | returns with exit code 0 iff no command of the given name is available. | |
17173 | 'no-XXX' is printed in this case, 'XXX' otherwise. In both cases, | |
17174 | the output goes to stdout and nothing is printed to stderr. | |
17175 | Additional arguments are always ignored. | |
17176 | ||
17177 | Since for each cipher there is a command of the same name, | |
17178 | the 'no-cipher' compilation switches can be tested this way. | |
17179 | ||
17180 | ('openssl no-XXX' is not able to detect pseudo-commands such | |
17181 | as 'quit', 'list-XXX-commands', or 'no-XXX' itself.) | |
17182 | ||
17183 | *Bodo Moeller* | |
17184 | ||
17185 | * Update test suite so that 'make test' succeeds in 'no-rsa' configuration. | |
17186 | ||
17187 | *Bodo Moeller* | |
17188 | ||
17189 | * For SSL_[CTX_]set_tmp_dh, don't create a DH key if SSL_OP_SINGLE_DH_USE | |
17190 | is set; it will be thrown away anyway because each handshake creates | |
17191 | its own key. | |
17192 | ssl_cert_dup, which is used by SSL_new, now copies DH keys in addition | |
17193 | to parameters -- in previous versions (since OpenSSL 0.9.3) the | |
17194 | 'default key' from SSL_CTX_set_tmp_dh would always be lost, meaning | |
17195 | you effectively got SSL_OP_SINGLE_DH_USE when using this macro. | |
17196 | ||
17197 | *Bodo Moeller* | |
17198 | ||
17199 | * New s_client option -ign_eof: EOF at stdin is ignored, and | |
17200 | 'Q' and 'R' lose their special meanings (quit/renegotiate). | |
17201 | This is part of what -quiet does; unlike -quiet, -ign_eof | |
17202 | does not suppress any output. | |
17203 | ||
17204 | *Richard Levitte* | |
17205 | ||
17206 | * Add compatibility options to the purpose and trust code. The | |
17207 | purpose X509_PURPOSE_ANY is "any purpose" which automatically | |
17208 | accepts a certificate or CA, this was the previous behaviour, | |
17209 | with all the associated security issues. | |
17210 | ||
17211 | X509_TRUST_COMPAT is the old trust behaviour: only and | |
17212 | automatically trust self signed roots in certificate store. A | |
17213 | new trust setting X509_TRUST_DEFAULT is used to specify that | |
17214 | a purpose has no associated trust setting and it should instead | |
17215 | use the value in the default purpose. | |
17216 | ||
17217 | *Steve Henson* | |
17218 | ||
17219 | * Fix the PKCS#8 DSA private key code so it decodes keys again | |
17220 | and fix a memory leak. | |
17221 | ||
17222 | *Steve Henson* | |
17223 | ||
17224 | * In util/mkerr.pl (which implements 'make errors'), preserve | |
17225 | reason strings from the previous version of the .c file, as | |
17226 | the default to have only downcase letters (and digits) in | |
17227 | automatically generated reasons codes is not always appropriate. | |
17228 | ||
17229 | *Bodo Moeller* | |
17230 | ||
17231 | * In ERR_load_ERR_strings(), build an ERR_LIB_SYS error reason table | |
17232 | using strerror. Previously, ERR_reason_error_string() returned | |
17233 | library names as reason strings for SYSerr; but SYSerr is a special | |
17234 | case where small numbers are errno values, not library numbers. | |
17235 | ||
17236 | *Bodo Moeller* | |
17237 | ||
17238 | * Add '-dsaparam' option to 'openssl dhparam' application. This | |
17239 | converts DSA parameters into DH parameters. (When creating parameters, | |
17240 | DSA_generate_parameters is used.) | |
17241 | ||
17242 | *Bodo Moeller* | |
17243 | ||
17244 | * Include 'length' (recommended exponent length) in C code generated | |
17245 | by 'openssl dhparam -C'. | |
17246 | ||
17247 | *Bodo Moeller* | |
17248 | ||
17249 | * The second argument to set_label in perlasm was already being used | |
17250 | so couldn't be used as a "file scope" flag. Moved to third argument | |
17251 | which was free. | |
17252 | ||
17253 | *Steve Henson* | |
17254 | ||
17255 | * In PEM_ASN1_write_bio and some other functions, use RAND_pseudo_bytes | |
17256 | instead of RAND_bytes for encryption IVs and salts. | |
17257 | ||
17258 | *Bodo Moeller* | |
17259 | ||
17260 | * Include RAND_status() into RAND_METHOD instead of implementing | |
17261 | it only for md_rand.c Otherwise replacing the PRNG by calling | |
17262 | RAND_set_rand_method would be impossible. | |
17263 | ||
17264 | *Bodo Moeller* | |
17265 | ||
17266 | * Don't let DSA_generate_key() enter an infinite loop if the random | |
17267 | number generation fails. | |
17268 | ||
17269 | *Bodo Moeller* | |
17270 | ||
17271 | * New 'rand' application for creating pseudo-random output. | |
17272 | ||
17273 | *Bodo Moeller* | |
17274 | ||
17275 | * Added configuration support for Linux/IA64 | |
17276 | ||
17277 | *Rolf Haberrecker <rolf@suse.de>* | |
17278 | ||
17279 | * Assembler module support for Mingw32. | |
17280 | ||
17281 | *Ulf Möller* | |
17282 | ||
17283 | * Shared library support for HPUX (in shlib/). | |
17284 | ||
17285 | *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE> and Anonymous* | |
17286 | ||
17287 | * Shared library support for Solaris gcc. | |
17288 | ||
17289 | *Lutz Behnke <behnke@trustcenter.de>* | |
17290 | ||
257e9d03 | 17291 | ### Changes between 0.9.4 and 0.9.5 [28 Feb 2000] |
5f8e6c50 DMSP |
17292 | |
17293 | * PKCS7_encrypt() was adding text MIME headers twice because they | |
17294 | were added manually and by SMIME_crlf_copy(). | |
17295 | ||
17296 | *Steve Henson* | |
17297 | ||
17298 | * In bntest.c don't call BN_rand with zero bits argument. | |
17299 | ||
17300 | *Steve Henson, pointed out by Andrew W. Gray <agray@iconsinc.com>* | |
17301 | ||
17302 | * BN_mul bugfix: In bn_mul_part_recursion() only the a>a[n] && b>b[n] | |
17303 | case was implemented. This caused BN_div_recp() to fail occasionally. | |
17304 | ||
17305 | *Ulf Möller* | |
17306 | ||
17307 | * Add an optional second argument to the set_label() in the perl | |
17308 | assembly language builder. If this argument exists and is set | |
17309 | to 1 it signals that the assembler should use a symbol whose | |
17310 | scope is the entire file, not just the current function. This | |
17311 | is needed with MASM which uses the format label:: for this scope. | |
17312 | ||
17313 | *Steve Henson, pointed out by Peter Runestig <peter@runestig.com>* | |
17314 | ||
17315 | * Change the ASN1 types so they are typedefs by default. Before | |
17316 | almost all types were #define'd to ASN1_STRING which was causing | |
17317 | STACK_OF() problems: you couldn't declare STACK_OF(ASN1_UTF8STRING) | |
17318 | for example. | |
17319 | ||
17320 | *Steve Henson* | |
17321 | ||
17322 | * Change names of new functions to the new get1/get0 naming | |
17323 | convention: After 'get1', the caller owns a reference count | |
257e9d03 | 17324 | and has to call `..._free`; 'get0' returns a pointer to some |
5f8e6c50 DMSP |
17325 | data structure without incrementing reference counters. |
17326 | (Some of the existing 'get' functions increment a reference | |
17327 | counter, some don't.) | |
17328 | Similarly, 'set1' and 'add1' functions increase reference | |
17329 | counters or duplicate objects. | |
17330 | ||
17331 | *Steve Henson* | |
17332 | ||
17333 | * Allow for the possibility of temp RSA key generation failure: | |
17334 | the code used to assume it always worked and crashed on failure. | |
17335 | ||
17336 | *Steve Henson* | |
17337 | ||
17338 | * Fix potential buffer overrun problem in BIO_printf(). | |
17339 | *Ulf Möller, using public domain code by Patrick Powell; problem | |
257e9d03 | 17340 | pointed out by David Sacerdote <das33@cornell.edu>* |
5f8e6c50 DMSP |
17341 | |
17342 | * Support EGD <http://www.lothar.com/tech/crypto/>. New functions | |
17343 | RAND_egd() and RAND_status(). In the command line application, | |
17344 | the EGD socket can be specified like a seed file using RANDFILE | |
17345 | or -rand. | |
17346 | ||
17347 | *Ulf Möller* | |
17348 | ||
17349 | * Allow the string CERTIFICATE to be tolerated in PKCS#7 structures. | |
17350 | Some CAs (e.g. Verisign) distribute certificates in this form. | |
17351 | ||
17352 | *Steve Henson* | |
17353 | ||
17354 | * Remove the SSL_ALLOW_ADH compile option and set the default cipher | |
17355 | list to exclude them. This means that no special compilation option | |
17356 | is needed to use anonymous DH: it just needs to be included in the | |
17357 | cipher list. | |
17358 | ||
17359 | *Steve Henson* | |
17360 | ||
17361 | * Change the EVP_MD_CTX_type macro so its meaning consistent with | |
17362 | EVP_MD_type. The old functionality is available in a new macro called | |
17363 | EVP_MD_md(). Change code that uses it and update docs. | |
17364 | ||
17365 | *Steve Henson* | |
17366 | ||
257e9d03 RS |
17367 | * `..._ctrl` functions now have corresponding `..._callback_ctrl` functions |
17368 | where the `void *` argument is replaced by a function pointer argument. | |
17369 | Previously `void *` was abused to point to functions, which works on | |
5f8e6c50 DMSP |
17370 | many platforms, but is not correct. As these functions are usually |
17371 | called by macros defined in OpenSSL header files, most source code | |
17372 | should work without changes. | |
17373 | ||
17374 | *Richard Levitte* | |
17375 | ||
257e9d03 | 17376 | * `<openssl/opensslconf.h>` (which is created by Configure) now contains |
5f8e6c50 DMSP |
17377 | sections with information on -D... compiler switches used for |
17378 | compiling the library so that applications can see them. To enable | |
257e9d03 | 17379 | one of these sections, a pre-processor symbol `OPENSSL_..._DEFINES` |
5f8e6c50 DMSP |
17380 | must be defined. E.g., |
17381 | #define OPENSSL_ALGORITHM_DEFINES | |
17382 | #include <openssl/opensslconf.h> | |
257e9d03 | 17383 | defines all pertinent `NO_<algo>` symbols, such as NO_IDEA, NO_RSA, etc. |
5f8e6c50 DMSP |
17384 | |
17385 | *Richard Levitte, Ulf and Bodo Möller* | |
17386 | ||
17387 | * Bugfix: Tolerate fragmentation and interleaving in the SSL 3/TLS | |
17388 | record layer. | |
17389 | ||
17390 | *Bodo Moeller* | |
17391 | ||
17392 | * Change the 'other' type in certificate aux info to a STACK_OF | |
17393 | X509_ALGOR. Although not an AlgorithmIdentifier as such it has | |
17394 | the required ASN1 format: arbitrary types determined by an OID. | |
17395 | ||
17396 | *Steve Henson* | |
17397 | ||
17398 | * Add some PEM_write_X509_REQ_NEW() functions and a command line | |
17399 | argument to 'req'. This is not because the function is newer or | |
17400 | better than others it just uses the work 'NEW' in the certificate | |
17401 | request header lines. Some software needs this. | |
17402 | ||
17403 | *Steve Henson* | |
17404 | ||
17405 | * Reorganise password command line arguments: now passwords can be | |
17406 | obtained from various sources. Delete the PEM_cb function and make | |
17407 | it the default behaviour: i.e. if the callback is NULL and the | |
17408 | usrdata argument is not NULL interpret it as a null terminated pass | |
17409 | phrase. If usrdata and the callback are NULL then the pass phrase | |
17410 | is prompted for as usual. | |
17411 | ||
17412 | *Steve Henson* | |
17413 | ||
17414 | * Add support for the Compaq Atalla crypto accelerator. If it is installed, | |
17415 | the support is automatically enabled. The resulting binaries will | |
17416 | autodetect the card and use it if present. | |
17417 | ||
17418 | *Ben Laurie and Compaq Inc.* | |
17419 | ||
17420 | * Work around for Netscape hang bug. This sends certificate request | |
17421 | and server done in one record. Since this is perfectly legal in the | |
17422 | SSL/TLS protocol it isn't a "bug" option and is on by default. See | |
17423 | the bugs/SSLv3 entry for more info. | |
17424 | ||
17425 | *Steve Henson* | |
17426 | ||
17427 | * HP-UX tune-up: new unified configs, HP C compiler bug workaround. | |
17428 | ||
17429 | *Andy Polyakov* | |
17430 | ||
17431 | * Add -rand argument to smime and pkcs12 applications and read/write | |
17432 | of seed file. | |
17433 | ||
17434 | *Steve Henson* | |
17435 | ||
17436 | * New 'passwd' tool for crypt(3) and apr1 password hashes. | |
17437 | ||
17438 | *Bodo Moeller* | |
17439 | ||
17440 | * Add command line password options to the remaining applications. | |
17441 | ||
17442 | *Steve Henson* | |
17443 | ||
17444 | * Bug fix for BN_div_recp() for numerators with an even number of | |
17445 | bits. | |
17446 | ||
17447 | *Ulf Möller* | |
17448 | ||
17449 | * More tests in bntest.c, and changed test_bn output. | |
17450 | ||
17451 | *Ulf Möller* | |
17452 | ||
17453 | * ./config recognizes MacOS X now. | |
17454 | ||
17455 | *Andy Polyakov* | |
17456 | ||
17457 | * Bug fix for BN_div() when the first words of num and divisor are | |
257e9d03 | 17458 | equal (it gave wrong results if `(rem=(n1-q*d0)&BN_MASK2) < d0)`. |
5f8e6c50 DMSP |
17459 | |
17460 | *Ulf Möller* | |
17461 | ||
17462 | * Add support for various broken PKCS#8 formats, and command line | |
17463 | options to produce them. | |
17464 | ||
17465 | *Steve Henson* | |
17466 | ||
17467 | * New functions BN_CTX_start(), BN_CTX_get() and BT_CTX_end() to | |
17468 | get temporary BIGNUMs from a BN_CTX. | |
17469 | ||
17470 | *Ulf Möller* | |
17471 | ||
17472 | * Correct return values in BN_mod_exp_mont() and BN_mod_exp2_mont() | |
17473 | for p == 0. | |
17474 | ||
17475 | *Ulf Möller* | |
17476 | ||
257e9d03 | 17477 | * Change the `SSLeay_add_all_*()` functions to `OpenSSL_add_all_*()` and |
5f8e6c50 DMSP |
17478 | include a #define from the old name to the new. The original intent |
17479 | was that statically linked binaries could for example just call | |
17480 | SSLeay_add_all_ciphers() to just add ciphers to the table and not | |
17481 | link with digests. This never worked because SSLeay_add_all_digests() | |
17482 | and SSLeay_add_all_ciphers() were in the same source file so calling | |
17483 | one would link with the other. They are now in separate source files. | |
17484 | ||
17485 | *Steve Henson* | |
17486 | ||
17487 | * Add a new -notext option to 'ca' and a -pubkey option to 'spkac'. | |
17488 | ||
17489 | *Steve Henson* | |
17490 | ||
17491 | * Use a less unusual form of the Miller-Rabin primality test (it used | |
17492 | a binary algorithm for exponentiation integrated into the Miller-Rabin | |
17493 | loop, our standard modexp algorithms are faster). | |
17494 | ||
17495 | *Bodo Moeller* | |
17496 | ||
17497 | * Support for the EBCDIC character set completed. | |
17498 | ||
17499 | *Martin Kraemer <Martin.Kraemer@Mch.SNI.De>* | |
17500 | ||
17501 | * Source code cleanups: use const where appropriate, eliminate casts, | |
257e9d03 | 17502 | use `void *` instead of `char *` in lhash. |
5f8e6c50 DMSP |
17503 | |
17504 | *Ulf Möller* | |
17505 | ||
17506 | * Bugfix: ssl3_send_server_key_exchange was not restartable | |
17507 | (the state was not changed to SSL3_ST_SW_KEY_EXCH_B, and because of | |
17508 | this the server could overwrite ephemeral keys that the client | |
17509 | has already seen). | |
17510 | ||
17511 | *Bodo Moeller* | |
17512 | ||
17513 | * Turn DSA_is_prime into a macro that calls BN_is_prime, | |
17514 | using 50 iterations of the Rabin-Miller test. | |
17515 | ||
17516 | DSA_generate_parameters now uses BN_is_prime_fasttest (with 50 | |
17517 | iterations of the Rabin-Miller test as required by the appendix | |
17518 | to FIPS PUB 186[-1]) instead of DSA_is_prime. | |
17519 | As BN_is_prime_fasttest includes trial division, DSA parameter | |
17520 | generation becomes much faster. | |
17521 | ||
17522 | This implies a change for the callback functions in DSA_is_prime | |
17523 | and DSA_generate_parameters: The callback function is called once | |
17524 | for each positive witness in the Rabin-Miller test, not just | |
17525 | occasionally in the inner loop; and the parameters to the | |
17526 | callback function now provide an iteration count for the outer | |
17527 | loop rather than for the current invocation of the inner loop. | |
17528 | DSA_generate_parameters additionally can call the callback | |
17529 | function with an 'iteration count' of -1, meaning that a | |
17530 | candidate has passed the trial division test (when q is generated | |
17531 | from an application-provided seed, trial division is skipped). | |
17532 | ||
17533 | *Bodo Moeller* | |
17534 | ||
17535 | * New function BN_is_prime_fasttest that optionally does trial | |
17536 | division before starting the Rabin-Miller test and has | |
17537 | an additional BN_CTX * argument (whereas BN_is_prime always | |
17538 | has to allocate at least one BN_CTX). | |
17539 | 'callback(1, -1, cb_arg)' is called when a number has passed the | |
17540 | trial division stage. | |
17541 | ||
17542 | *Bodo Moeller* | |
17543 | ||
17544 | * Fix for bug in CRL encoding. The validity dates weren't being handled | |
17545 | as ASN1_TIME. | |
17546 | ||
17547 | *Steve Henson* | |
17548 | ||
17549 | * New -pkcs12 option to CA.pl script to write out a PKCS#12 file. | |
17550 | ||
17551 | *Steve Henson* | |
17552 | ||
17553 | * New function BN_pseudo_rand(). | |
17554 | ||
17555 | *Ulf Möller* | |
17556 | ||
17557 | * Clean up BN_mod_mul_montgomery(): replace the broken (and unreadable) | |
17558 | bignum version of BN_from_montgomery() with the working code from | |
17559 | SSLeay 0.9.0 (the word based version is faster anyway), and clean up | |
17560 | the comments. | |
17561 | ||
17562 | *Ulf Möller* | |
17563 | ||
17564 | * Avoid a race condition in s2_clnt.c (function get_server_hello) that | |
17565 | made it impossible to use the same SSL_SESSION data structure in | |
17566 | SSL2 clients in multiple threads. | |
17567 | ||
17568 | *Bodo Moeller* | |
17569 | ||
17570 | * The return value of RAND_load_file() no longer counts bytes obtained | |
17571 | by stat(). RAND_load_file(..., -1) is new and uses the complete file | |
17572 | to seed the PRNG (previously an explicit byte count was required). | |
17573 | ||
17574 | *Ulf Möller, Bodo Möller* | |
17575 | ||
17576 | * Clean up CRYPTO_EX_DATA functions, some of these didn't have prototypes | |
257e9d03 | 17577 | used `char *` instead of `void *` and had casts all over the place. |
5f8e6c50 DMSP |
17578 | |
17579 | *Steve Henson* | |
17580 | ||
17581 | * Make BN_generate_prime() return NULL on error if ret!=NULL. | |
17582 | ||
17583 | *Ulf Möller* | |
17584 | ||
17585 | * Retain source code compatibility for BN_prime_checks macro: | |
17586 | BN_is_prime(..., BN_prime_checks, ...) now uses | |
17587 | BN_prime_checks_for_size to determine the appropriate number of | |
17588 | Rabin-Miller iterations. | |
17589 | ||
17590 | *Ulf Möller* | |
17591 | ||
17592 | * Diffie-Hellman uses "safe" primes: DH_check() return code renamed to | |
17593 | DH_CHECK_P_NOT_SAFE_PRIME. | |
17594 | (Check if this is true? OpenPGP calls them "strong".) | |
17595 | ||
17596 | *Ulf Möller* | |
17597 | ||
17598 | * Merge the functionality of "dh" and "gendh" programs into a new program | |
17599 | "dhparam". The old programs are retained for now but will handle DH keys | |
17600 | (instead of parameters) in future. | |
17601 | ||
17602 | *Steve Henson* | |
17603 | ||
17604 | * Make the ciphers, s_server and s_client programs check the return values | |
17605 | when a new cipher list is set. | |
17606 | ||
17607 | *Steve Henson* | |
17608 | ||
17609 | * Enhance the SSL/TLS cipher mechanism to correctly handle the TLS 56bit | |
17610 | ciphers. Before when the 56bit ciphers were enabled the sorting was | |
17611 | wrong. | |
17612 | ||
17613 | The syntax for the cipher sorting has been extended to support sorting by | |
17614 | cipher-strength (using the strength_bits hard coded in the tables). | |
ec2bfb7d | 17615 | The new command is `@STRENGTH` (see also `doc/apps/ciphers.pod`). |
5f8e6c50 DMSP |
17616 | |
17617 | Fix a bug in the cipher-command parser: when supplying a cipher command | |
17618 | string with an "undefined" symbol (neither command nor alphanumeric | |
17619 | *A-Za-z0-9*, ssl_set_cipher_list used to hang in an endless loop. Now | |
17620 | an error is flagged. | |
17621 | ||
17622 | Due to the strength-sorting extension, the code of the | |
17623 | ssl_create_cipher_list() function was completely rearranged. I hope that | |
17624 | the readability was also increased :-) | |
17625 | ||
17626 | *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>* | |
17627 | ||
17628 | * Minor change to 'x509' utility. The -CAcreateserial option now uses 1 | |
17629 | for the first serial number and places 2 in the serial number file. This | |
17630 | avoids problems when the root CA is created with serial number zero and | |
17631 | the first user certificate has the same issuer name and serial number | |
17632 | as the root CA. | |
17633 | ||
17634 | *Steve Henson* | |
17635 | ||
17636 | * Fixes to X509_ATTRIBUTE utilities, change the 'req' program so it uses | |
17637 | the new code. Add documentation for this stuff. | |
17638 | ||
17639 | *Steve Henson* | |
17640 | ||
17641 | * Changes to X509_ATTRIBUTE utilities. These have been renamed from | |
257e9d03 | 17642 | `X509_*()` to `X509at_*()` on the grounds that they don't handle X509 |
5f8e6c50 DMSP |
17643 | structures and behave in an analogous way to the X509v3 functions: |
17644 | they shouldn't be called directly but wrapper functions should be used | |
17645 | instead. | |
17646 | ||
17647 | So we also now have some wrapper functions that call the X509at functions | |
17648 | when passed certificate requests. (TO DO: similar things can be done with | |
17649 | PKCS#7 signed and unsigned attributes, PKCS#12 attributes and a few other | |
17650 | things. Some of these need some d2i or i2d and print functionality | |
17651 | because they handle more complex structures.) | |
17652 | ||
17653 | *Steve Henson* | |
17654 | ||
17655 | * Add missing #ifndefs that caused missing symbols when building libssl | |
17656 | as a shared library without RSA. Use #ifndef NO_SSL2 instead of | |
257e9d03 | 17657 | NO_RSA in `ssl/s2*.c`. |
5f8e6c50 DMSP |
17658 | |
17659 | *Kris Kennaway <kris@hub.freebsd.org>, modified by Ulf Möller* | |
17660 | ||
17661 | * Precautions against using the PRNG uninitialized: RAND_bytes() now | |
17662 | has a return value which indicates the quality of the random data | |
17663 | (1 = ok, 0 = not seeded). Also an error is recorded on the thread's | |
17664 | error queue. New function RAND_pseudo_bytes() generates output that is | |
17665 | guaranteed to be unique but not unpredictable. RAND_add is like | |
17666 | RAND_seed, but takes an extra argument for an entropy estimate | |
17667 | (RAND_seed always assumes full entropy). | |
17668 | ||
17669 | *Ulf Möller* | |
17670 | ||
17671 | * Do more iterations of Rabin-Miller probable prime test (specifically, | |
17672 | 3 for 1024-bit primes, 6 for 512-bit primes, 12 for 256-bit primes | |
17673 | instead of only 2 for all lengths; see BN_prime_checks_for_size definition | |
17674 | in crypto/bn/bn_prime.c for the complete table). This guarantees a | |
17675 | false-positive rate of at most 2^-80 for random input. | |
17676 | ||
17677 | *Bodo Moeller* | |
17678 | ||
17679 | * Rewrite ssl3_read_n (ssl/s3_pkt.c) avoiding a couple of bugs. | |
17680 | ||
17681 | *Bodo Moeller* | |
17682 | ||
17683 | * New function X509_CTX_rget_chain() (renamed to X509_CTX_get1_chain | |
17684 | in the 0.9.5 release), this returns the chain | |
17685 | from an X509_CTX structure with a dup of the stack and all | |
17686 | the X509 reference counts upped: so the stack will exist | |
17687 | after X509_CTX_cleanup() has been called. Modify pkcs12.c | |
17688 | to use this. | |
17689 | ||
17690 | Also make SSL_SESSION_print() print out the verify return | |
17691 | code. | |
17692 | ||
17693 | *Steve Henson* | |
17694 | ||
17695 | * Add manpage for the pkcs12 command. Also change the default | |
17696 | behaviour so MAC iteration counts are used unless the new | |
17697 | -nomaciter option is used. This improves file security and | |
17698 | only older versions of MSIE (4.0 for example) need it. | |
17699 | ||
17700 | *Steve Henson* | |
17701 | ||
17702 | * Honor the no-xxx Configure options when creating .DEF files. | |
17703 | ||
17704 | *Ulf Möller* | |
17705 | ||
17706 | * Add PKCS#10 attributes to field table: challengePassword, | |
17707 | unstructuredName and unstructuredAddress. These are taken from | |
17708 | draft PKCS#9 v2.0 but are compatible with v1.2 provided no | |
17709 | international characters are used. | |
17710 | ||
17711 | More changes to X509_ATTRIBUTE code: allow the setting of types | |
17712 | based on strings. Remove the 'loc' parameter when adding | |
17713 | attributes because these will be a SET OF encoding which is sorted | |
17714 | in ASN1 order. | |
17715 | ||
17716 | *Steve Henson* | |
17717 | ||
17718 | * Initial changes to the 'req' utility to allow request generation | |
17719 | automation. This will allow an application to just generate a template | |
17720 | file containing all the field values and have req construct the | |
17721 | request. | |
17722 | ||
17723 | Initial support for X509_ATTRIBUTE handling. Stacks of these are | |
17724 | used all over the place including certificate requests and PKCS#7 | |
17725 | structures. They are currently handled manually where necessary with | |
17726 | some primitive wrappers for PKCS#7. The new functions behave in a | |
17727 | manner analogous to the X509 extension functions: they allow | |
17728 | attributes to be looked up by NID and added. | |
17729 | ||
17730 | Later something similar to the X509V3 code would be desirable to | |
17731 | automatically handle the encoding, decoding and printing of the | |
17732 | more complex types. The string types like challengePassword can | |
17733 | be handled by the string table functions. | |
17734 | ||
17735 | Also modified the multi byte string table handling. Now there is | |
17736 | a 'global mask' which masks out certain types. The table itself | |
17737 | can use the flag STABLE_NO_MASK to ignore the mask setting: this | |
17738 | is useful when for example there is only one permissible type | |
17739 | (as in countryName) and using the mask might result in no valid | |
17740 | types at all. | |
17741 | ||
17742 | *Steve Henson* | |
17743 | ||
17744 | * Clean up 'Finished' handling, and add functions SSL_get_finished and | |
17745 | SSL_get_peer_finished to allow applications to obtain the latest | |
17746 | Finished messages sent to the peer or expected from the peer, | |
17747 | respectively. (SSL_get_peer_finished is usually the Finished message | |
17748 | actually received from the peer, otherwise the protocol will be aborted.) | |
17749 | ||
17750 | As the Finished message are message digests of the complete handshake | |
17751 | (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can | |
17752 | be used for external authentication procedures when the authentication | |
17753 | provided by SSL/TLS is not desired or is not enough. | |
17754 | ||
17755 | *Bodo Moeller* | |
17756 | ||
17757 | * Enhanced support for Alpha Linux is added. Now ./config checks if | |
17758 | the host supports BWX extension and if Compaq C is present on the | |
17759 | $PATH. Just exploiting of the BWX extension results in 20-30% | |
17760 | performance kick for some algorithms, e.g. DES and RC4 to mention | |
17761 | a couple. Compaq C in turn generates ~20% faster code for MD5 and | |
17762 | SHA1. | |
17763 | ||
17764 | *Andy Polyakov* | |
17765 | ||
17766 | * Add support for MS "fast SGC". This is arguably a violation of the | |
17767 | SSL3/TLS protocol. Netscape SGC does two handshakes: the first with | |
17768 | weak crypto and after checking the certificate is SGC a second one | |
17769 | with strong crypto. MS SGC stops the first handshake after receiving | |
17770 | the server certificate message and sends a second client hello. Since | |
17771 | a server will typically do all the time consuming operations before | |
17772 | expecting any further messages from the client (server key exchange | |
17773 | is the most expensive) there is little difference between the two. | |
17774 | ||
17775 | To get OpenSSL to support MS SGC we have to permit a second client | |
17776 | hello message after we have sent server done. In addition we have to | |
17777 | reset the MAC if we do get this second client hello. | |
17778 | ||
17779 | *Steve Henson* | |
17780 | ||
17781 | * Add a function 'd2i_AutoPrivateKey()' this will automatically decide | |
17782 | if a DER encoded private key is RSA or DSA traditional format. Changed | |
17783 | d2i_PrivateKey_bio() to use it. This is only needed for the "traditional" | |
17784 | format DER encoded private key. Newer code should use PKCS#8 format which | |
17785 | has the key type encoded in the ASN1 structure. Added DER private key | |
17786 | support to pkcs8 application. | |
17787 | ||
17788 | *Steve Henson* | |
17789 | ||
17790 | * SSL 3/TLS 1 servers now don't request certificates when an anonymous | |
17791 | ciphersuites has been selected (as required by the SSL 3/TLS 1 | |
17792 | specifications). Exception: When SSL_VERIFY_FAIL_IF_NO_PEER_CERT | |
17793 | is set, we interpret this as a request to violate the specification | |
17794 | (the worst that can happen is a handshake failure, and 'correct' | |
17795 | behaviour would result in a handshake failure anyway). | |
17796 | ||
17797 | *Bodo Moeller* | |
17798 | ||
17799 | * In SSL_CTX_add_session, take into account that there might be multiple | |
17800 | SSL_SESSION structures with the same session ID (e.g. when two threads | |
17801 | concurrently obtain them from an external cache). | |
17802 | The internal cache can handle only one SSL_SESSION with a given ID, | |
17803 | so if there's a conflict, we now throw out the old one to achieve | |
17804 | consistency. | |
17805 | ||
17806 | *Bodo Moeller* | |
17807 | ||
17808 | * Add OIDs for idea and blowfish in CBC mode. This will allow both | |
17809 | to be used in PKCS#5 v2.0 and S/MIME. Also add checking to | |
17810 | some routines that use cipher OIDs: some ciphers do not have OIDs | |
17811 | defined and so they cannot be used for S/MIME and PKCS#5 v2.0 for | |
17812 | example. | |
17813 | ||
17814 | *Steve Henson* | |
17815 | ||
17816 | * Simplify the trust setting structure and code. Now we just have | |
17817 | two sequences of OIDs for trusted and rejected settings. These will | |
17818 | typically have values the same as the extended key usage extension | |
17819 | and any application specific purposes. | |
17820 | ||
17821 | The trust checking code now has a default behaviour: it will just | |
17822 | check for an object with the same NID as the passed id. Functions can | |
17823 | be provided to override either the default behaviour or the behaviour | |
17824 | for a given id. SSL client, server and email already have functions | |
17825 | in place for compatibility: they check the NID and also return "trusted" | |
17826 | if the certificate is self signed. | |
17827 | ||
17828 | *Steve Henson* | |
17829 | ||
17830 | * Add d2i,i2d bio/fp functions for PrivateKey: these convert the | |
17831 | traditional format into an EVP_PKEY structure. | |
17832 | ||
17833 | *Steve Henson* | |
17834 | ||
17835 | * Add a password callback function PEM_cb() which either prompts for | |
17836 | a password if usr_data is NULL or otherwise assumes it is a null | |
17837 | terminated password. Allow passwords to be passed on command line | |
17838 | environment or config files in a few more utilities. | |
17839 | ||
17840 | *Steve Henson* | |
17841 | ||
17842 | * Add a bunch of DER and PEM functions to handle PKCS#8 format private | |
17843 | keys. Add some short names for PKCS#8 PBE algorithms and allow them | |
17844 | to be specified on the command line for the pkcs8 and pkcs12 utilities. | |
17845 | Update documentation. | |
17846 | ||
17847 | *Steve Henson* | |
17848 | ||
17849 | * Support for ASN1 "NULL" type. This could be handled before by using | |
17850 | ASN1_TYPE but there wasn't any function that would try to read a NULL | |
17851 | and produce an error if it couldn't. For compatibility we also have | |
17852 | ASN1_NULL_new() and ASN1_NULL_free() functions but these are faked and | |
17853 | don't allocate anything because they don't need to. | |
17854 | ||
17855 | *Steve Henson* | |
17856 | ||
17857 | * Initial support for MacOS is now provided. Examine INSTALL.MacOS | |
17858 | for details. | |
17859 | ||
17860 | *Andy Polyakov, Roy Woods <roy@centicsystems.ca>* | |
17861 | ||
17862 | * Rebuild of the memory allocation routines used by OpenSSL code and | |
17863 | possibly others as well. The purpose is to make an interface that | |
17864 | provide hooks so anyone can build a separate set of allocation and | |
17865 | deallocation routines to be used by OpenSSL, for example memory | |
17866 | pool implementations, or something else, which was previously hard | |
17867 | since Malloc(), Realloc() and Free() were defined as macros having | |
17868 | the values malloc, realloc and free, respectively (except for Win32 | |
17869 | compilations). The same is provided for memory debugging code. | |
17870 | OpenSSL already comes with functionality to find memory leaks, but | |
17871 | this gives people a chance to debug other memory problems. | |
17872 | ||
17873 | With these changes, a new set of functions and macros have appeared: | |
17874 | ||
17875 | CRYPTO_set_mem_debug_functions() [F] | |
17876 | CRYPTO_get_mem_debug_functions() [F] | |
17877 | CRYPTO_dbg_set_options() [F] | |
17878 | CRYPTO_dbg_get_options() [F] | |
17879 | CRYPTO_malloc_debug_init() [M] | |
17880 | ||
17881 | The memory debug functions are NULL by default, unless the library | |
17882 | is compiled with CRYPTO_MDEBUG or friends is defined. If someone | |
17883 | wants to debug memory anyway, CRYPTO_malloc_debug_init() (which | |
17884 | gives the standard debugging functions that come with OpenSSL) or | |
17885 | CRYPTO_set_mem_debug_functions() (tells OpenSSL to use functions | |
17886 | provided by the library user) must be used. When the standard | |
17887 | debugging functions are used, CRYPTO_dbg_set_options can be used to | |
17888 | request additional information: | |
17889 | CRYPTO_dbg_set_options(V_CYRPTO_MDEBUG_xxx) corresponds to setting | |
17890 | the CRYPTO_MDEBUG_xxx macro when compiling the library. | |
17891 | ||
17892 | Also, things like CRYPTO_set_mem_functions will always give the | |
17893 | expected result (the new set of functions is used for allocation | |
17894 | and deallocation) at all times, regardless of platform and compiler | |
17895 | options. | |
17896 | ||
17897 | To finish it up, some functions that were never use in any other | |
17898 | way than through macros have a new API and new semantic: | |
17899 | ||
17900 | CRYPTO_dbg_malloc() | |
17901 | CRYPTO_dbg_realloc() | |
17902 | CRYPTO_dbg_free() | |
17903 | ||
17904 | All macros of value have retained their old syntax. | |
17905 | ||
17906 | *Richard Levitte and Bodo Moeller* | |
17907 | ||
17908 | * Some S/MIME fixes. The OID for SMIMECapabilities was wrong, the | |
17909 | ordering of SMIMECapabilities wasn't in "strength order" and there | |
17910 | was a missing NULL in the AlgorithmIdentifier for the SHA1 signature | |
17911 | algorithm. | |
17912 | ||
17913 | *Steve Henson* | |
17914 | ||
17915 | * Some ASN1 types with illegal zero length encoding (INTEGER, | |
17916 | ENUMERATED and OBJECT IDENTIFIER) choked the ASN1 routines. | |
17917 | ||
17918 | *Frans Heymans <fheymans@isaserver.be>, modified by Steve Henson* | |
17919 | ||
17920 | * Merge in my S/MIME library for OpenSSL. This provides a simple | |
17921 | S/MIME API on top of the PKCS#7 code, a MIME parser (with enough | |
17922 | functionality to handle multipart/signed properly) and a utility | |
17923 | called 'smime' to call all this stuff. This is based on code I | |
17924 | originally wrote for Celo who have kindly allowed it to be | |
17925 | included in OpenSSL. | |
17926 | ||
17927 | *Steve Henson* | |
17928 | ||
17929 | * Add variants des_set_key_checked and des_set_key_unchecked of | |
17930 | des_set_key (aka des_key_sched). Global variable des_check_key | |
17931 | decides which of these is called by des_set_key; this way | |
17932 | des_check_key behaves as it always did, but applications and | |
17933 | the library itself, which was buggy for des_check_key == 1, | |
17934 | have a cleaner way to pick the version they need. | |
17935 | ||
17936 | *Bodo Moeller* | |
17937 | ||
17938 | * New function PKCS12_newpass() which changes the password of a | |
17939 | PKCS12 structure. | |
17940 | ||
17941 | *Steve Henson* | |
17942 | ||
17943 | * Modify X509_TRUST and X509_PURPOSE so it also uses a static and | |
17944 | dynamic mix. In both cases the ids can be used as an index into the | |
17945 | table. Also modified the X509_TRUST_add() and X509_PURPOSE_add() | |
17946 | functions so they accept a list of the field values and the | |
17947 | application doesn't need to directly manipulate the X509_TRUST | |
17948 | structure. | |
17949 | ||
17950 | *Steve Henson* | |
17951 | ||
17952 | * Modify the ASN1_STRING_TABLE stuff so it also uses bsearch and doesn't | |
17953 | need initialising. | |
17954 | ||
17955 | *Steve Henson* | |
17956 | ||
17957 | * Modify the way the V3 extension code looks up extensions. This now | |
17958 | works in a similar way to the object code: we have some "standard" | |
17959 | extensions in a static table which is searched with OBJ_bsearch() | |
17960 | and the application can add dynamic ones if needed. The file | |
17961 | crypto/x509v3/ext_dat.h now has the info: this file needs to be | |
17962 | updated whenever a new extension is added to the core code and kept | |
17963 | in ext_nid order. There is a simple program 'tabtest.c' which checks | |
17964 | this. New extensions are not added too often so this file can readily | |
17965 | be maintained manually. | |
17966 | ||
17967 | There are two big advantages in doing things this way. The extensions | |
17968 | can be looked up immediately and no longer need to be "added" using | |
17969 | X509V3_add_standard_extensions(): this function now does nothing. | |
257e9d03 RS |
17970 | Side note: I get *lots* of email saying the extension code doesn't |
17971 | work because people forget to call this function. | |
5f8e6c50 DMSP |
17972 | Also no dynamic allocation is done unless new extensions are added: |
17973 | so if we don't add custom extensions there is no need to call | |
17974 | X509V3_EXT_cleanup(). | |
17975 | ||
17976 | *Steve Henson* | |
17977 | ||
17978 | * Modify enc utility's salting as follows: make salting the default. Add a | |
17979 | magic header, so unsalted files fail gracefully instead of just decrypting | |
17980 | to garbage. This is because not salting is a big security hole, so people | |
17981 | should be discouraged from doing it. | |
17982 | ||
17983 | *Ben Laurie* | |
17984 | ||
17985 | * Fixes and enhancements to the 'x509' utility. It allowed a message | |
17986 | digest to be passed on the command line but it only used this | |
17987 | parameter when signing a certificate. Modified so all relevant | |
17988 | operations are affected by the digest parameter including the | |
17989 | -fingerprint and -x509toreq options. Also -x509toreq choked if a | |
17990 | DSA key was used because it didn't fix the digest. | |
17991 | ||
17992 | *Steve Henson* | |
17993 | ||
17994 | * Initial certificate chain verify code. Currently tests the untrusted | |
17995 | certificates for consistency with the verify purpose (which is set | |
17996 | when the X509_STORE_CTX structure is set up) and checks the pathlength. | |
17997 | ||
17998 | There is a NO_CHAIN_VERIFY compilation option to keep the old behaviour: | |
17999 | this is because it will reject chains with invalid extensions whereas | |
18000 | every previous version of OpenSSL and SSLeay made no checks at all. | |
18001 | ||
18002 | Trust code: checks the root CA for the relevant trust settings. Trust | |
18003 | settings have an initial value consistent with the verify purpose: e.g. | |
18004 | if the verify purpose is for SSL client use it expects the CA to be | |
18005 | trusted for SSL client use. However the default value can be changed to | |
18006 | permit custom trust settings: one example of this would be to only trust | |
18007 | certificates from a specific "secure" set of CAs. | |
18008 | ||
18009 | Also added X509_STORE_CTX_new() and X509_STORE_CTX_free() functions | |
18010 | which should be used for version portability: especially since the | |
18011 | verify structure is likely to change more often now. | |
18012 | ||
18013 | SSL integration. Add purpose and trust to SSL_CTX and SSL and functions | |
18014 | to set them. If not set then assume SSL clients will verify SSL servers | |
18015 | and vice versa. | |
18016 | ||
18017 | Two new options to the verify program: -untrusted allows a set of | |
18018 | untrusted certificates to be passed in and -purpose which sets the | |
18019 | intended purpose of the certificate. If a purpose is set then the | |
18020 | new chain verify code is used to check extension consistency. | |
18021 | ||
18022 | *Steve Henson* | |
18023 | ||
18024 | * Support for the authority information access extension. | |
18025 | ||
18026 | *Steve Henson* | |
18027 | ||
18028 | * Modify RSA and DSA PEM read routines to transparently handle | |
18029 | PKCS#8 format private keys. New *_PUBKEY_* functions that handle | |
18030 | public keys in a format compatible with certificate | |
18031 | SubjectPublicKeyInfo structures. Unfortunately there were already | |
18032 | functions called *_PublicKey_* which used various odd formats so | |
18033 | these are retained for compatibility: however the DSA variants were | |
18034 | never in a public release so they have been deleted. Changed dsa/rsa | |
18035 | utilities to handle the new format: note no releases ever handled public | |
18036 | keys so we should be OK. | |
18037 | ||
18038 | The primary motivation for this change is to avoid the same fiasco | |
18039 | that dogs private keys: there are several incompatible private key | |
18040 | formats some of which are standard and some OpenSSL specific and | |
18041 | require various evil hacks to allow partial transparent handling and | |
18042 | even then it doesn't work with DER formats. Given the option anything | |
18043 | other than PKCS#8 should be dumped: but the other formats have to | |
18044 | stay in the name of compatibility. | |
18045 | ||
18046 | With public keys and the benefit of hindsight one standard format | |
18047 | is used which works with EVP_PKEY, RSA or DSA structures: though | |
18048 | it clearly returns an error if you try to read the wrong kind of key. | |
18049 | ||
18050 | Added a -pubkey option to the 'x509' utility to output the public key. | |
257e9d03 RS |
18051 | Also rename the `EVP_PKEY_get_*()` to `EVP_PKEY_rget_*()` |
18052 | (renamed to `EVP_PKEY_get1_*()` in the OpenSSL 0.9.5 release) and add | |
18053 | `EVP_PKEY_rset_*()` functions (renamed to `EVP_PKEY_set1_*()`) | |
18054 | that do the same as the `EVP_PKEY_assign_*()` except they up the | |
5f8e6c50 DMSP |
18055 | reference count of the added key (they don't "swallow" the |
18056 | supplied key). | |
18057 | ||
18058 | *Steve Henson* | |
18059 | ||
18060 | * Fixes to crypto/x509/by_file.c the code to read in certificates and | |
18061 | CRLs would fail if the file contained no certificates or no CRLs: | |
18062 | added a new function to read in both types and return the number | |
18063 | read: this means that if none are read it will be an error. The | |
18064 | DER versions of the certificate and CRL reader would always fail | |
18065 | because it isn't possible to mix certificates and CRLs in DER format | |
18066 | without choking one or the other routine. Changed this to just read | |
18067 | a certificate: this is the best we can do. Also modified the code | |
ec2bfb7d | 18068 | in `apps/verify.c` to take notice of return codes: it was previously |
5f8e6c50 DMSP |
18069 | attempting to read in certificates from NULL pointers and ignoring |
18070 | any errors: this is one reason why the cert and CRL reader seemed | |
18071 | to work. It doesn't check return codes from the default certificate | |
18072 | routines: these may well fail if the certificates aren't installed. | |
18073 | ||
18074 | *Steve Henson* | |
18075 | ||
18076 | * Code to support otherName option in GeneralName. | |
18077 | ||
18078 | *Steve Henson* | |
18079 | ||
18080 | * First update to verify code. Change the verify utility | |
18081 | so it warns if it is passed a self signed certificate: | |
18082 | for consistency with the normal behaviour. X509_verify | |
18083 | has been modified to it will now verify a self signed | |
18084 | certificate if *exactly* the same certificate appears | |
18085 | in the store: it was previously impossible to trust a | |
18086 | single self signed certificate. This means that: | |
18087 | openssl verify ss.pem | |
18088 | now gives a warning about a self signed certificate but | |
18089 | openssl verify -CAfile ss.pem ss.pem | |
18090 | is OK. | |
18091 | ||
18092 | *Steve Henson* | |
18093 | ||
18094 | * For servers, store verify_result in SSL_SESSION data structure | |
18095 | (and add it to external session representation). | |
18096 | This is needed when client certificate verifications fails, | |
18097 | but an application-provided verification callback (set by | |
18098 | SSL_CTX_set_cert_verify_callback) allows accepting the session | |
18099 | anyway (i.e. leaves x509_store_ctx->error != X509_V_OK | |
18100 | but returns 1): When the session is reused, we have to set | |
18101 | ssl->verify_result to the appropriate error code to avoid | |
18102 | security holes. | |
18103 | ||
18104 | *Bodo Moeller, problem pointed out by Lutz Jaenicke* | |
18105 | ||
18106 | * Fix a bug in the new PKCS#7 code: it didn't consider the | |
18107 | case in PKCS7_dataInit() where the signed PKCS7 structure | |
18108 | didn't contain any existing data because it was being created. | |
18109 | ||
18110 | *Po-Cheng Chen <pocheng@nst.com.tw>, slightly modified by Steve Henson* | |
18111 | ||
18112 | * Add a salt to the key derivation routines in enc.c. This | |
18113 | forms the first 8 bytes of the encrypted file. Also add a | |
18114 | -S option to allow a salt to be input on the command line. | |
18115 | ||
18116 | *Steve Henson* | |
18117 | ||
18118 | * New function X509_cmp(). Oddly enough there wasn't a function | |
18119 | to compare two certificates. We do this by working out the SHA1 | |
18120 | hash and comparing that. X509_cmp() will be needed by the trust | |
18121 | code. | |
18122 | ||
18123 | *Steve Henson* | |
18124 | ||
18125 | * SSL_get1_session() is like SSL_get_session(), but increments | |
18126 | the reference count in the SSL_SESSION returned. | |
18127 | ||
18128 | *Geoff Thorpe <geoff@eu.c2.net>* | |
18129 | ||
18130 | * Fix for 'req': it was adding a null to request attributes. | |
18131 | Also change the X509_LOOKUP and X509_INFO code to handle | |
18132 | certificate auxiliary information. | |
18133 | ||
18134 | *Steve Henson* | |
18135 | ||
18136 | * Add support for 40 and 64 bit RC2 and RC4 algorithms: document | |
18137 | the 'enc' command. | |
18138 | ||
18139 | *Steve Henson* | |
18140 | ||
18141 | * Add the possibility to add extra information to the memory leak | |
18142 | detecting output, to form tracebacks, showing from where each | |
18143 | allocation was originated: CRYPTO_push_info("constant string") adds | |
18144 | the string plus current file name and line number to a per-thread | |
18145 | stack, CRYPTO_pop_info() does the obvious, CRYPTO_remove_all_info() | |
18146 | is like calling CYRPTO_pop_info() until the stack is empty. | |
18147 | Also updated memory leak detection code to be multi-thread-safe. | |
18148 | ||
18149 | *Richard Levitte* | |
18150 | ||
18151 | * Add options -text and -noout to pkcs7 utility and delete the | |
18152 | encryption options which never did anything. Update docs. | |
18153 | ||
18154 | *Steve Henson* | |
18155 | ||
18156 | * Add options to some of the utilities to allow the pass phrase | |
18157 | to be included on either the command line (not recommended on | |
18158 | OSes like Unix) or read from the environment. Update the | |
18159 | manpages and fix a few bugs. | |
18160 | ||
18161 | *Steve Henson* | |
18162 | ||
18163 | * Add a few manpages for some of the openssl commands. | |
18164 | ||
18165 | *Steve Henson* | |
18166 | ||
18167 | * Fix the -revoke option in ca. It was freeing up memory twice, | |
18168 | leaking and not finding already revoked certificates. | |
18169 | ||
18170 | *Steve Henson* | |
18171 | ||
18172 | * Extensive changes to support certificate auxiliary information. | |
18173 | This involves the use of X509_CERT_AUX structure and X509_AUX | |
18174 | functions. An X509_AUX function such as PEM_read_X509_AUX() | |
18175 | can still read in a certificate file in the usual way but it | |
18176 | will also read in any additional "auxiliary information". By | |
18177 | doing things this way a fair degree of compatibility can be | |
18178 | retained: existing certificates can have this information added | |
18179 | using the new 'x509' options. | |
18180 | ||
18181 | Current auxiliary information includes an "alias" and some trust | |
18182 | settings. The trust settings will ultimately be used in enhanced | |
18183 | certificate chain verification routines: currently a certificate | |
18184 | can only be trusted if it is self signed and then it is trusted | |
18185 | for all purposes. | |
18186 | ||
18187 | *Steve Henson* | |
18188 | ||
257e9d03 | 18189 | * Fix assembler for Alpha (tested only on DEC OSF not Linux or `*BSD`). |
5f8e6c50 DMSP |
18190 | The problem was that one of the replacement routines had not been working |
18191 | since SSLeay releases. For now the offending routine has been replaced | |
18192 | with non-optimised assembler. Even so, this now gives around 95% | |
18193 | performance improvement for 1024 bit RSA signs. | |
18194 | ||
18195 | *Mark Cox* | |
18196 | ||
18197 | * Hack to fix PKCS#7 decryption when used with some unorthodox RC2 | |
18198 | handling. Most clients have the effective key size in bits equal to | |
18199 | the key length in bits: so a 40 bit RC2 key uses a 40 bit (5 byte) key. | |
18200 | A few however don't do this and instead use the size of the decrypted key | |
18201 | to determine the RC2 key length and the AlgorithmIdentifier to determine | |
18202 | the effective key length. In this case the effective key length can still | |
18203 | be 40 bits but the key length can be 168 bits for example. This is fixed | |
18204 | by manually forcing an RC2 key into the EVP_PKEY structure because the | |
18205 | EVP code can't currently handle unusual RC2 key sizes: it always assumes | |
18206 | the key length and effective key length are equal. | |
18207 | ||
18208 | *Steve Henson* | |
18209 | ||
18210 | * Add a bunch of functions that should simplify the creation of | |
18211 | X509_NAME structures. Now you should be able to do: | |
18212 | X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC, "Steve", -1, -1, 0); | |
18213 | and have it automatically work out the correct field type and fill in | |
18214 | the structures. The more adventurous can try: | |
18215 | X509_NAME_add_entry_by_txt(nm, field, MBSTRING_UTF8, str, -1, -1, 0); | |
18216 | and it will (hopefully) work out the correct multibyte encoding. | |
18217 | ||
18218 | *Steve Henson* | |
18219 | ||
18220 | * Change the 'req' utility to use the new field handling and multibyte | |
18221 | copy routines. Before the DN field creation was handled in an ad hoc | |
18222 | way in req, ca, and x509 which was rather broken and didn't support | |
18223 | BMPStrings or UTF8Strings. Since some software doesn't implement | |
18224 | BMPStrings or UTF8Strings yet, they can be enabled using the config file | |
18225 | using the dirstring_type option. See the new comment in the default | |
18226 | openssl.cnf for more info. | |
18227 | ||
18228 | *Steve Henson* | |
18229 | ||
18230 | * Make crypto/rand/md_rand.c more robust: | |
18231 | - Assure unique random numbers after fork(). | |
18232 | - Make sure that concurrent threads access the global counter and | |
18233 | md serializably so that we never lose entropy in them | |
18234 | or use exactly the same state in multiple threads. | |
18235 | Access to the large state is not always serializable because | |
18236 | the additional locking could be a performance killer, and | |
18237 | md should be large enough anyway. | |
18238 | ||
18239 | *Bodo Moeller* | |
18240 | ||
ec2bfb7d | 18241 | * New file `apps/app_rand.c` with commonly needed functionality |
5f8e6c50 DMSP |
18242 | for handling the random seed file. |
18243 | ||
18244 | Use the random seed file in some applications that previously did not: | |
18245 | ca, | |
18246 | dsaparam -genkey (which also ignored its '-rand' option), | |
18247 | s_client, | |
18248 | s_server, | |
18249 | x509 (when signing). | |
18250 | Except on systems with /dev/urandom, it is crucial to have a random | |
18251 | seed file at least for key creation, DSA signing, and for DH exchanges; | |
18252 | for RSA signatures we could do without one. | |
18253 | ||
18254 | gendh and gendsa (unlike genrsa) used to read only the first byte | |
18255 | of each file listed in the '-rand' option. The function as previously | |
18256 | found in genrsa is now in app_rand.c and is used by all programs | |
18257 | that support '-rand'. | |
18258 | ||
18259 | *Bodo Moeller* | |
18260 | ||
18261 | * In RAND_write_file, use mode 0600 for creating files; | |
18262 | don't just chmod when it may be too late. | |
18263 | ||
18264 | *Bodo Moeller* | |
18265 | ||
18266 | * Report an error from X509_STORE_load_locations | |
18267 | when X509_LOOKUP_load_file or X509_LOOKUP_add_dir failed. | |
18268 | ||
18269 | *Bill Perry* | |
18270 | ||
18271 | * New function ASN1_mbstring_copy() this copies a string in either | |
18272 | ASCII, Unicode, Universal (4 bytes per character) or UTF8 format | |
18273 | into an ASN1_STRING type. A mask of permissible types is passed | |
18274 | and it chooses the "minimal" type to use or an error if not type | |
18275 | is suitable. | |
18276 | ||
18277 | *Steve Henson* | |
18278 | ||
18279 | * Add function equivalents to the various macros in asn1.h. The old | |
257e9d03 RS |
18280 | macros are retained with an `M_` prefix. Code inside the library can |
18281 | use the `M_` macros. External code (including the openssl utility) | |
5f8e6c50 DMSP |
18282 | should *NOT* in order to be "shared library friendly". |
18283 | ||
18284 | *Steve Henson* | |
18285 | ||
18286 | * Add various functions that can check a certificate's extensions | |
18287 | to see if it usable for various purposes such as SSL client, | |
18288 | server or S/MIME and CAs of these types. This is currently | |
18289 | VERY EXPERIMENTAL but will ultimately be used for certificate chain | |
18290 | verification. Also added a -purpose flag to x509 utility to | |
18291 | print out all the purposes. | |
18292 | ||
18293 | *Steve Henson* | |
18294 | ||
18295 | * Add a CRYPTO_EX_DATA to X509 certificate structure and associated | |
18296 | functions. | |
18297 | ||
18298 | *Steve Henson* | |
18299 | ||
257e9d03 | 18300 | * New `X509V3_{X509,CRL,REVOKED}_get_d2i()` functions. These will search |
5f8e6c50 DMSP |
18301 | for, obtain and decode and extension and obtain its critical flag. |
18302 | This allows all the necessary extension code to be handled in a | |
18303 | single function call. | |
18304 | ||
18305 | *Steve Henson* | |
18306 | ||
18307 | * RC4 tune-up featuring 30-40% performance improvement on most RISC | |
18308 | platforms. See crypto/rc4/rc4_enc.c for further details. | |
18309 | ||
18310 | *Andy Polyakov* | |
18311 | ||
18312 | * New -noout option to asn1parse. This causes no output to be produced | |
18313 | its main use is when combined with -strparse and -out to extract data | |
18314 | from a file (which may not be in ASN.1 format). | |
18315 | ||
18316 | *Steve Henson* | |
18317 | ||
18318 | * Fix for pkcs12 program. It was hashing an invalid certificate pointer | |
18319 | when producing the local key id. | |
18320 | ||
18321 | *Richard Levitte <levitte@stacken.kth.se>* | |
18322 | ||
18323 | * New option -dhparam in s_server. This allows a DH parameter file to be | |
18324 | stated explicitly. If it is not stated then it tries the first server | |
18325 | certificate file. The previous behaviour hard coded the filename | |
18326 | "server.pem". | |
18327 | ||
18328 | *Steve Henson* | |
18329 | ||
18330 | * Add -pubin and -pubout options to the rsa and dsa commands. These allow | |
18331 | a public key to be input or output. For example: | |
18332 | openssl rsa -in key.pem -pubout -out pubkey.pem | |
18333 | Also added necessary DSA public key functions to handle this. | |
18334 | ||
18335 | *Steve Henson* | |
18336 | ||
18337 | * Fix so PKCS7_dataVerify() doesn't crash if no certificates are contained | |
18338 | in the message. This was handled by allowing | |
18339 | X509_find_by_issuer_and_serial() to tolerate a NULL passed to it. | |
18340 | ||
18341 | *Steve Henson, reported by Sampo Kellomaki <sampo@mail.neuronio.pt>* | |
18342 | ||
18343 | * Fix for bug in d2i_ASN1_bytes(): other ASN1 functions add an extra null | |
18344 | to the end of the strings whereas this didn't. This would cause problems | |
18345 | if strings read with d2i_ASN1_bytes() were later modified. | |
18346 | ||
18347 | *Steve Henson, reported by Arne Ansper <arne@ats.cyber.ee>* | |
18348 | ||
18349 | * Fix for base64 decode bug. When a base64 bio reads only one line of | |
18350 | data and it contains EOF it will end up returning an error. This is | |
18351 | caused by input 46 bytes long. The cause is due to the way base64 | |
18352 | BIOs find the start of base64 encoded data. They do this by trying a | |
18353 | trial decode on each line until they find one that works. When they | |
18354 | do a flag is set and it starts again knowing it can pass all the | |
18355 | data directly through the decoder. Unfortunately it doesn't reset | |
18356 | the context it uses. This means that if EOF is reached an attempt | |
18357 | is made to pass two EOFs through the context and this causes the | |
18358 | resulting error. This can also cause other problems as well. As is | |
18359 | usual with these problems it takes *ages* to find and the fix is | |
18360 | trivial: move one line. | |
18361 | ||
257e9d03 | 18362 | *Steve Henson, reported by ian@uns.ns.ac.yu (Ivan Nejgebauer)* |
5f8e6c50 DMSP |
18363 | |
18364 | * Ugly workaround to get s_client and s_server working under Windows. The | |
18365 | old code wouldn't work because it needed to select() on sockets and the | |
18366 | tty (for keypresses and to see if data could be written). Win32 only | |
18367 | supports select() on sockets so we select() with a 1s timeout on the | |
18368 | sockets and then see if any characters are waiting to be read, if none | |
18369 | are present then we retry, we also assume we can always write data to | |
18370 | the tty. This isn't nice because the code then blocks until we've | |
18371 | received a complete line of data and it is effectively polling the | |
18372 | keyboard at 1s intervals: however it's quite a bit better than not | |
18373 | working at all :-) A dedicated Windows application might handle this | |
18374 | with an event loop for example. | |
18375 | ||
18376 | *Steve Henson* | |
18377 | ||
18378 | * Enhance RSA_METHOD structure. Now there are two extra methods, rsa_sign | |
18379 | and rsa_verify. When the RSA_FLAGS_SIGN_VER option is set these functions | |
18380 | will be called when RSA_sign() and RSA_verify() are used. This is useful | |
18381 | if rsa_pub_dec() and rsa_priv_enc() equivalents are not available. | |
18382 | For this to work properly RSA_public_decrypt() and RSA_private_encrypt() | |
18383 | should *not* be used: RSA_sign() and RSA_verify() must be used instead. | |
18384 | This necessitated the support of an extra signature type NID_md5_sha1 | |
18385 | for SSL signatures and modifications to the SSL library to use it instead | |
18386 | of calling RSA_public_decrypt() and RSA_private_encrypt(). | |
18387 | ||
18388 | *Steve Henson* | |
18389 | ||
18390 | * Add new -verify -CAfile and -CApath options to the crl program, these | |
18391 | will lookup a CRL issuers certificate and verify the signature in a | |
18392 | similar way to the verify program. Tidy up the crl program so it | |
18393 | no longer accesses structures directly. Make the ASN1 CRL parsing a bit | |
18394 | less strict. It will now permit CRL extensions even if it is not | |
18395 | a V2 CRL: this will allow it to tolerate some broken CRLs. | |
18396 | ||
18397 | *Steve Henson* | |
18398 | ||
18399 | * Initialize all non-automatic variables each time one of the openssl | |
18400 | sub-programs is started (this is necessary as they may be started | |
18401 | multiple times from the "OpenSSL>" prompt). | |
18402 | ||
18403 | *Lennart Bang, Bodo Moeller* | |
18404 | ||
18405 | * Preliminary compilation option RSA_NULL which disables RSA crypto without | |
18406 | removing all other RSA functionality (this is what NO_RSA does). This | |
18407 | is so (for example) those in the US can disable those operations covered | |
18408 | by the RSA patent while allowing storage and parsing of RSA keys and RSA | |
18409 | key generation. | |
18410 | ||
18411 | *Steve Henson* | |
18412 | ||
18413 | * Non-copying interface to BIO pairs. | |
18414 | (still largely untested) | |
18415 | ||
18416 | *Bodo Moeller* | |
18417 | ||
18418 | * New function ASN1_tag2str() to convert an ASN1 tag to a descriptive | |
18419 | ASCII string. This was handled independently in various places before. | |
18420 | ||
18421 | *Steve Henson* | |
18422 | ||
18423 | * New functions UTF8_getc() and UTF8_putc() that parse and generate | |
18424 | UTF8 strings a character at a time. | |
18425 | ||
18426 | *Steve Henson* | |
18427 | ||
18428 | * Use client_version from client hello to select the protocol | |
18429 | (s23_srvr.c) and for RSA client key exchange verification | |
18430 | (s3_srvr.c), as required by the SSL 3.0/TLS 1.0 specifications. | |
18431 | ||
18432 | *Bodo Moeller* | |
18433 | ||
18434 | * Add various utility functions to handle SPKACs, these were previously | |
18435 | handled by poking round in the structure internals. Added new function | |
18436 | NETSCAPE_SPKI_print() to print out SPKAC and a new utility 'spkac' to | |
18437 | print, verify and generate SPKACs. Based on an original idea from | |
18438 | Massimiliano Pala <madwolf@comune.modena.it> but extensively modified. | |
18439 | ||
18440 | *Steve Henson* | |
18441 | ||
18442 | * RIPEMD160 is operational on all platforms and is back in 'make test'. | |
18443 | ||
18444 | *Andy Polyakov* | |
18445 | ||
18446 | * Allow the config file extension section to be overwritten on the | |
18447 | command line. Based on an original idea from Massimiliano Pala | |
18448 | <madwolf@comune.modena.it>. The new option is called -extensions | |
18449 | and can be applied to ca, req and x509. Also -reqexts to override | |
18450 | the request extensions in req and -crlexts to override the crl extensions | |
18451 | in ca. | |
18452 | ||
18453 | *Steve Henson* | |
18454 | ||
18455 | * Add new feature to the SPKAC handling in ca. Now you can include | |
18456 | the same field multiple times by preceding it by "XXXX." for example: | |
18457 | 1.OU="Unit name 1" | |
18458 | 2.OU="Unit name 2" | |
18459 | this is the same syntax as used in the req config file. | |
18460 | ||
18461 | *Steve Henson* | |
18462 | ||
18463 | * Allow certificate extensions to be added to certificate requests. These | |
18464 | are specified in a 'req_extensions' option of the req section of the | |
18465 | config file. They can be printed out with the -text option to req but | |
18466 | are otherwise ignored at present. | |
18467 | ||
18468 | *Steve Henson* | |
18469 | ||
18470 | * Fix a horrible bug in enc_read() in crypto/evp/bio_enc.c: if the first | |
18471 | data read consists of only the final block it would not decrypted because | |
18472 | EVP_CipherUpdate() would correctly report zero bytes had been decrypted. | |
18473 | A misplaced 'break' also meant the decrypted final block might not be | |
18474 | copied until the next read. | |
18475 | ||
18476 | *Steve Henson* | |
18477 | ||
18478 | * Initial support for DH_METHOD. Again based on RSA_METHOD. Also added | |
18479 | a few extra parameters to the DH structure: these will be useful if | |
18480 | for example we want the value of 'q' or implement X9.42 DH. | |
18481 | ||
18482 | *Steve Henson* | |
18483 | ||
18484 | * Initial support for DSA_METHOD. This is based on the RSA_METHOD and | |
18485 | provides hooks that allow the default DSA functions or functions on a | |
18486 | "per key" basis to be replaced. This allows hardware acceleration and | |
18487 | hardware key storage to be handled without major modification to the | |
4d49b685 | 18488 | library. Also added low-level modexp hooks and CRYPTO_EX structure and |
5f8e6c50 DMSP |
18489 | associated functions. |
18490 | ||
18491 | *Steve Henson* | |
18492 | ||
18493 | * Add a new flag to memory BIOs, BIO_FLAG_MEM_RDONLY. This marks the BIO | |
18494 | as "read only": it can't be written to and the buffer it points to will | |
18495 | not be freed. Reading from a read only BIO is much more efficient than | |
18496 | a normal memory BIO. This was added because there are several times when | |
18497 | an area of memory needs to be read from a BIO. The previous method was | |
18498 | to create a memory BIO and write the data to it, this results in two | |
18499 | copies of the data and an O(n^2) reading algorithm. There is a new | |
18500 | function BIO_new_mem_buf() which creates a read only memory BIO from | |
18501 | an area of memory. Also modified the PKCS#7 routines to use read only | |
18502 | memory BIOs. | |
18503 | ||
18504 | *Steve Henson* | |
18505 | ||
18506 | * Bugfix: ssl23_get_client_hello did not work properly when called in | |
18507 | state SSL23_ST_SR_CLNT_HELLO_B, i.e. when the first 7 bytes of | |
18508 | a SSLv2-compatible client hello for SSLv3 or TLSv1 could be read, | |
18509 | but a retry condition occurred while trying to read the rest. | |
18510 | ||
18511 | *Bodo Moeller* | |
18512 | ||
18513 | * The PKCS7_ENC_CONTENT_new() function was setting the content type as | |
18514 | NID_pkcs7_encrypted by default: this was wrong since this should almost | |
18515 | always be NID_pkcs7_data. Also modified the PKCS7_set_type() to handle | |
18516 | the encrypted data type: this is a more sensible place to put it and it | |
18517 | allows the PKCS#12 code to be tidied up that duplicated this | |
18518 | functionality. | |
18519 | ||
18520 | *Steve Henson* | |
18521 | ||
18522 | * Changed obj_dat.pl script so it takes its input and output files on | |
18523 | the command line. This should avoid shell escape redirection problems | |
18524 | under Win32. | |
18525 | ||
18526 | *Steve Henson* | |
18527 | ||
18528 | * Initial support for certificate extension requests, these are included | |
18529 | in things like Xenroll certificate requests. Included functions to allow | |
18530 | extensions to be obtained and added. | |
18531 | ||
18532 | *Steve Henson* | |
18533 | ||
18534 | * -crlf option to s_client and s_server for sending newlines as | |
18535 | CRLF (as required by many protocols). | |
18536 | ||
18537 | *Bodo Moeller* | |
18538 | ||
257e9d03 | 18539 | ### Changes between 0.9.3a and 0.9.4 [09 Aug 1999] |
5f8e6c50 DMSP |
18540 | |
18541 | * Install libRSAglue.a when OpenSSL is built with RSAref. | |
18542 | ||
18543 | *Ralf S. Engelschall* | |
18544 | ||
257e9d03 | 18545 | * A few more `#ifndef NO_FP_API / #endif` pairs for consistency. |
5f8e6c50 DMSP |
18546 | |
18547 | *Andrija Antonijevic <TheAntony2@bigfoot.com>* | |
18548 | ||
18549 | * Fix -startdate and -enddate (which was missing) arguments to 'ca' | |
18550 | program. | |
18551 | ||
18552 | *Steve Henson* | |
18553 | ||
18554 | * New function DSA_dup_DH, which duplicates DSA parameters/keys as | |
18555 | DH parameters/keys (q is lost during that conversion, but the resulting | |
18556 | DH parameters contain its length). | |
18557 | ||
18558 | For 1024-bit p, DSA_generate_parameters followed by DSA_dup_DH is | |
18559 | much faster than DH_generate_parameters (which creates parameters | |
257e9d03 | 18560 | where `p = 2*q + 1`), and also the smaller q makes DH computations |
5f8e6c50 DMSP |
18561 | much more efficient (160-bit exponentiation instead of 1024-bit |
18562 | exponentiation); so this provides a convenient way to support DHE | |
18563 | ciphersuites in SSL/TLS servers (see ssl/ssltest.c). It is of | |
18564 | utter importance to use | |
18565 | SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE); | |
18566 | or | |
18567 | SSL_set_options(s_ctx, SSL_OP_SINGLE_DH_USE); | |
18568 | when such DH parameters are used, because otherwise small subgroup | |
18569 | attacks may become possible! | |
18570 | ||
18571 | *Bodo Moeller* | |
18572 | ||
18573 | * Avoid memory leak in i2d_DHparams. | |
18574 | ||
18575 | *Bodo Moeller* | |
18576 | ||
18577 | * Allow the -k option to be used more than once in the enc program: | |
18578 | this allows the same encrypted message to be read by multiple recipients. | |
18579 | ||
18580 | *Steve Henson* | |
18581 | ||
18582 | * New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts | |
18583 | an ASN1_OBJECT to a text string. If the "no_name" parameter is set then | |
18584 | it will always use the numerical form of the OID, even if it has a short | |
18585 | or long name. | |
18586 | ||
18587 | *Steve Henson* | |
18588 | ||
18589 | * Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp | |
18590 | method only got called if p,q,dmp1,dmq1,iqmp components were present, | |
18591 | otherwise bn_mod_exp was called. In the case of hardware keys for example | |
18592 | no private key components need be present and it might store extra data | |
18593 | in the RSA structure, which cannot be accessed from bn_mod_exp. | |
18594 | By setting RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for | |
18595 | private key operations. | |
18596 | ||
18597 | *Steve Henson* | |
18598 | ||
18599 | * Added support for SPARC Linux. | |
18600 | ||
18601 | *Andy Polyakov* | |
18602 | ||
18603 | * pem_password_cb function type incompatibly changed from | |
18604 | typedef int pem_password_cb(char *buf, int size, int rwflag); | |
18605 | to | |
18606 | ....(char *buf, int size, int rwflag, void *userdata); | |
18607 | so that applications can pass data to their callbacks: | |
257e9d03 | 18608 | The `PEM[_ASN1]_{read,write}...` functions and macros now take an |
5f8e6c50 DMSP |
18609 | additional void * argument, which is just handed through whenever |
18610 | the password callback is called. | |
18611 | ||
18612 | *Damien Miller <dmiller@ilogic.com.au>; tiny changes by Bodo Moeller* | |
18613 | ||
18614 | New function SSL_CTX_set_default_passwd_cb_userdata. | |
18615 | ||
18616 | Compatibility note: As many C implementations push function arguments | |
18617 | onto the stack in reverse order, the new library version is likely to | |
18618 | interoperate with programs that have been compiled with the old | |
18619 | pem_password_cb definition (PEM_whatever takes some data that | |
18620 | happens to be on the stack as its last argument, and the callback | |
18621 | just ignores this garbage); but there is no guarantee whatsoever that | |
18622 | this will work. | |
18623 | ||
18624 | * The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=... | |
18625 | (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused | |
18626 | problems not only on Windows, but also on some Unix platforms. | |
18627 | To avoid problematic command lines, these definitions are now in an | |
18628 | auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl | |
18629 | for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds). | |
18630 | ||
18631 | *Bodo Moeller* | |
18632 | ||
18633 | * MIPS III/IV assembler module is reimplemented. | |
18634 | ||
18635 | *Andy Polyakov* | |
18636 | ||
18637 | * More DES library cleanups: remove references to srand/rand and | |
18638 | delete an unused file. | |
18639 | ||
18640 | *Ulf Möller* | |
18641 | ||
18642 | * Add support for the free Netwide assembler (NASM) under Win32, | |
18643 | since not many people have MASM (ml) and it can be hard to obtain. | |
18644 | This is currently experimental but it seems to work OK and pass all | |
18645 | the tests. Check out INSTALL.W32 for info. | |
18646 | ||
18647 | *Steve Henson* | |
18648 | ||
18649 | * Fix memory leaks in s3_clnt.c: All non-anonymous SSL3/TLS1 connections | |
18650 | without temporary keys kept an extra copy of the server key, | |
18651 | and connections with temporary keys did not free everything in case | |
18652 | of an error. | |
18653 | ||
18654 | *Bodo Moeller* | |
18655 | ||
18656 | * New function RSA_check_key and new openssl rsa option -check | |
18657 | for verifying the consistency of RSA keys. | |
18658 | ||
18659 | *Ulf Moeller, Bodo Moeller* | |
18660 | ||
18661 | * Various changes to make Win32 compile work: | |
18662 | 1. Casts to avoid "loss of data" warnings in p5_crpt2.c | |
18663 | 2. Change unsigned int to int in b_dump.c to avoid "signed/unsigned | |
18664 | comparison" warnings. | |
257e9d03 | 18665 | 3. Add `sk_<TYPE>_sort` to DEF file generator and do make update. |
5f8e6c50 DMSP |
18666 | |
18667 | *Steve Henson* | |
18668 | ||
18669 | * Add a debugging option to PKCS#5 v2 key generation function: when | |
18670 | you #define DEBUG_PKCS5V2 passwords, salts, iteration counts and | |
18671 | derived keys are printed to stderr. | |
18672 | ||
18673 | *Steve Henson* | |
18674 | ||
18675 | * Copy the flags in ASN1_STRING_dup(). | |
18676 | ||
18677 | *Roman E. Pavlov <pre@mo.msk.ru>* | |
18678 | ||
18679 | * The x509 application mishandled signing requests containing DSA | |
18680 | keys when the signing key was also DSA and the parameters didn't match. | |
18681 | ||
18682 | It was supposed to omit the parameters when they matched the signing key: | |
18683 | the verifying software was then supposed to automatically use the CA's | |
18684 | parameters if they were absent from the end user certificate. | |
18685 | ||
18686 | Omitting parameters is no longer recommended. The test was also | |
18687 | the wrong way round! This was probably due to unusual behaviour in | |
18688 | EVP_cmp_parameters() which returns 1 if the parameters match. | |
18689 | This meant that parameters were omitted when they *didn't* match and | |
18690 | the certificate was useless. Certificates signed with 'ca' didn't have | |
18691 | this bug. | |
18692 | ||
18693 | *Steve Henson, reported by Doug Erickson <Doug.Erickson@Part.NET>* | |
18694 | ||
18695 | * Memory leak checking (-DCRYPTO_MDEBUG) had some problems. | |
18696 | The interface is as follows: | |
18697 | Applications can use | |
18698 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) aka MemCheck_start(), | |
18699 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) aka MemCheck_stop(); | |
18700 | "off" is now the default. | |
18701 | The library internally uses | |
18702 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) aka MemCheck_off(), | |
18703 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) aka MemCheck_on() | |
18704 | to disable memory-checking temporarily. | |
18705 | ||
18706 | Some inconsistent states that previously were possible (and were | |
18707 | even the default) are now avoided. | |
18708 | ||
18709 | -DCRYPTO_MDEBUG_TIME is new and additionally stores the current time | |
18710 | with each memory chunk allocated; this is occasionally more helpful | |
18711 | than just having a counter. | |
18712 | ||
18713 | -DCRYPTO_MDEBUG_THREAD is also new and adds the thread ID. | |
18714 | ||
18715 | -DCRYPTO_MDEBUG_ALL enables all of the above, plus any future | |
18716 | extensions. | |
18717 | ||
18718 | *Bodo Moeller* | |
18719 | ||
18720 | * Introduce "mode" for SSL structures (with defaults in SSL_CTX), | |
18721 | which largely parallels "options", but is for changing API behaviour, | |
18722 | whereas "options" are about protocol behaviour. | |
18723 | Initial "mode" flags are: | |
18724 | ||
18725 | SSL_MODE_ENABLE_PARTIAL_WRITE Allow SSL_write to report success when | |
18726 | a single record has been written. | |
18727 | SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER Don't insist that SSL_write | |
18728 | retries use the same buffer location. | |
18729 | (But all of the contents must be | |
18730 | copied!) | |
18731 | ||
18732 | *Bodo Moeller* | |
18733 | ||
18734 | * Bugfix: SSL_set_options ignored its parameter, only SSL_CTX_set_options | |
18735 | worked. | |
18736 | ||
18737 | * Fix problems with no-hmac etc. | |
18738 | ||
18739 | *Ulf Möller, pointed out by Brian Wellington <bwelling@tislabs.com>* | |
18740 | ||
18741 | * New functions RSA_get_default_method(), RSA_set_method() and | |
18742 | RSA_get_method(). These allows replacement of RSA_METHODs without having | |
18743 | to mess around with the internals of an RSA structure. | |
18744 | ||
18745 | *Steve Henson* | |
18746 | ||
18747 | * Fix memory leaks in DSA_do_sign and DSA_is_prime. | |
18748 | Also really enable memory leak checks in openssl.c and in some | |
18749 | test programs. | |
18750 | ||
18751 | *Chad C. Mulligan, Bodo Moeller* | |
18752 | ||
18753 | * Fix a bug in d2i_ASN1_INTEGER() and i2d_ASN1_INTEGER() which can mess | |
18754 | up the length of negative integers. This has now been simplified to just | |
18755 | store the length when it is first determined and use it later, rather | |
18756 | than trying to keep track of where data is copied and updating it to | |
18757 | point to the end. | |
257e9d03 | 18758 | *Steve Henson, reported by Brien Wheeler <bwheeler@authentica-security.com>* |
5f8e6c50 DMSP |
18759 | |
18760 | * Add a new function PKCS7_signatureVerify. This allows the verification | |
18761 | of a PKCS#7 signature but with the signing certificate passed to the | |
18762 | function itself. This contrasts with PKCS7_dataVerify which assumes the | |
18763 | certificate is present in the PKCS#7 structure. This isn't always the | |
18764 | case: certificates can be omitted from a PKCS#7 structure and be | |
18765 | distributed by "out of band" means (such as a certificate database). | |
18766 | ||
18767 | *Steve Henson* | |
18768 | ||
257e9d03 | 18769 | * Complete the `PEM_*` macros with DECLARE_PEM versions to replace the |
5f8e6c50 DMSP |
18770 | function prototypes in pem.h, also change util/mkdef.pl to add the |
18771 | necessary function names. | |
18772 | ||
18773 | *Steve Henson* | |
18774 | ||
18775 | * mk1mf.pl (used by Windows builds) did not properly read the | |
18776 | options set by Configure in the top level Makefile, and Configure | |
18777 | was not even able to write more than one option correctly. | |
18778 | Fixed, now "no-idea no-rc5 -DCRYPTO_MDEBUG" etc. works as intended. | |
18779 | ||
18780 | *Bodo Moeller* | |
18781 | ||
18782 | * New functions CONF_load_bio() and CONF_load_fp() to allow a config | |
18783 | file to be loaded from a BIO or FILE pointer. The BIO version will | |
18784 | for example allow memory BIOs to contain config info. | |
18785 | ||
18786 | *Steve Henson* | |
18787 | ||
18788 | * New function "CRYPTO_num_locks" that returns CRYPTO_NUM_LOCKS. | |
18789 | Whoever hopes to achieve shared-library compatibility across versions | |
18790 | must use this, not the compile-time macro. | |
18791 | (Exercise 0.9.4: Which is the minimum library version required by | |
18792 | such programs?) | |
18793 | Note: All this applies only to multi-threaded programs, others don't | |
18794 | need locks. | |
18795 | ||
18796 | *Bodo Moeller* | |
18797 | ||
18798 | * Add missing case to s3_clnt.c state machine -- one of the new SSL tests | |
18799 | through a BIO pair triggered the default case, i.e. | |
18800 | SSLerr(...,SSL_R_UNKNOWN_STATE). | |
18801 | ||
18802 | *Bodo Moeller* | |
18803 | ||
18804 | * New "BIO pair" concept (crypto/bio/bss_bio.c) so that applications | |
18805 | can use the SSL library even if none of the specific BIOs is | |
18806 | appropriate. | |
18807 | ||
18808 | *Bodo Moeller* | |
18809 | ||
18810 | * Fix a bug in i2d_DSAPublicKey() which meant it returned the wrong value | |
18811 | for the encoded length. | |
18812 | ||
18813 | *Jeon KyoungHo <khjeon@sds.samsung.co.kr>* | |
18814 | ||
18815 | * Add initial documentation of the X509V3 functions. | |
18816 | ||
18817 | *Steve Henson* | |
18818 | ||
18819 | * Add a new pair of functions PEM_write_PKCS8PrivateKey() and | |
18820 | PEM_write_bio_PKCS8PrivateKey() that are equivalent to | |
18821 | PEM_write_PrivateKey() and PEM_write_bio_PrivateKey() but use the more | |
18822 | secure PKCS#8 private key format with a high iteration count. | |
18823 | ||
18824 | *Steve Henson* | |
18825 | ||
18826 | * Fix determination of Perl interpreter: A perl or perl5 | |
257e9d03 | 18827 | *directory* in $PATH was also accepted as the interpreter. |
5f8e6c50 DMSP |
18828 | |
18829 | *Ralf S. Engelschall* | |
18830 | ||
18831 | * Fix demos/sign/sign.c: well there wasn't anything strictly speaking | |
18832 | wrong with it but it was very old and did things like calling | |
18833 | PEM_ASN1_read() directly and used MD5 for the hash not to mention some | |
18834 | unusual formatting. | |
18835 | ||
18836 | *Steve Henson* | |
18837 | ||
18838 | * Fix demos/selfsign.c: it used obsolete and deleted functions, changed | |
18839 | to use the new extension code. | |
18840 | ||
18841 | *Steve Henson* | |
18842 | ||
18843 | * Implement the PEM_read/PEM_write functions in crypto/pem/pem_all.c | |
18844 | with macros. This should make it easier to change their form, add extra | |
18845 | arguments etc. Fix a few PEM prototypes which didn't have cipher as a | |
18846 | constant. | |
18847 | ||
18848 | *Steve Henson* | |
18849 | ||
18850 | * Add to configuration table a new entry that can specify an alternative | |
18851 | name for unistd.h (for pre-POSIX systems); we need this for NeXTstep, | |
18852 | according to Mark Crispin <MRC@Panda.COM>. | |
18853 | ||
18854 | *Bodo Moeller* | |
18855 | ||
5f8e6c50 DMSP |
18856 | * DES CBC did not update the IV. Weird. |
18857 | ||
18858 | *Ben Laurie* | |
18859 | lse | |
18860 | des_cbc_encrypt does not update the IV, but des_ncbc_encrypt does. | |
18861 | Changing the behaviour of the former might break existing programs -- | |
18862 | where IV updating is needed, des_ncbc_encrypt can be used. | |
18863 | ndif | |
18864 | ||
18865 | * When bntest is run from "make test" it drives bc to check its | |
18866 | calculations, as well as internally checking them. If an internal check | |
18867 | fails, it needs to cause bc to give a non-zero result or make test carries | |
18868 | on without noticing the failure. Fixed. | |
18869 | ||
18870 | *Ben Laurie* | |
18871 | ||
18872 | * DES library cleanups. | |
18873 | ||
18874 | *Ulf Möller* | |
18875 | ||
18876 | * Add support for PKCS#5 v2.0 PBE algorithms. This will permit PKCS#8 to be | |
18877 | used with any cipher unlike PKCS#5 v1.5 which can at most handle 64 bit | |
18878 | ciphers. NOTE: although the key derivation function has been verified | |
18879 | against some published test vectors it has not been extensively tested | |
18880 | yet. Added a -v2 "cipher" option to pkcs8 application to allow the use | |
18881 | of v2.0. | |
18882 | ||
18883 | *Steve Henson* | |
18884 | ||
18885 | * Instead of "mkdir -p", which is not fully portable, use new | |
18886 | Perl script "util/mkdir-p.pl". | |
18887 | ||
18888 | *Bodo Moeller* | |
18889 | ||
18890 | * Rewrite the way password based encryption (PBE) is handled. It used to | |
18891 | assume that the ASN1 AlgorithmIdentifier parameter was a PBEParameter | |
18892 | structure. This was true for the PKCS#5 v1.5 and PKCS#12 PBE algorithms | |
18893 | but doesn't apply to PKCS#5 v2.0 where it can be something else. Now | |
18894 | the 'parameter' field of the AlgorithmIdentifier is passed to the | |
18895 | underlying key generation function so it must do its own ASN1 parsing. | |
18896 | This has also changed the EVP_PBE_CipherInit() function which now has a | |
18897 | 'parameter' argument instead of literal salt and iteration count values | |
18898 | and the function EVP_PBE_ALGOR_CipherInit() has been deleted. | |
18899 | ||
18900 | *Steve Henson* | |
18901 | ||
18902 | * Support for PKCS#5 v1.5 compatible password based encryption algorithms | |
18903 | and PKCS#8 functionality. New 'pkcs8' application linked to openssl. | |
18904 | Needed to change the PEM_STRING_EVP_PKEY value which was just "PRIVATE | |
18905 | KEY" because this clashed with PKCS#8 unencrypted string. Since this | |
18906 | value was just used as a "magic string" and not used directly its | |
18907 | value doesn't matter. | |
18908 | ||
18909 | *Steve Henson* | |
18910 | ||
18911 | * Introduce some semblance of const correctness to BN. Shame C doesn't | |
18912 | support mutable. | |
18913 | ||
18914 | *Ben Laurie* | |
18915 | ||
18916 | * "linux-sparc64" configuration (ultrapenguin). | |
18917 | ||
18918 | *Ray Miller <ray.miller@oucs.ox.ac.uk>* | |
18919 | "linux-sparc" configuration. | |
18920 | ||
18921 | *Christian Forster <fo@hawo.stw.uni-erlangen.de>* | |
18922 | ||
18923 | * config now generates no-xxx options for missing ciphers. | |
18924 | ||
18925 | *Ulf Möller* | |
18926 | ||
18927 | * Support the EBCDIC character set (work in progress). | |
18928 | File ebcdic.c not yet included because it has a different license. | |
18929 | ||
18930 | *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>* | |
18931 | ||
18932 | * Support BS2000/OSD-POSIX. | |
18933 | ||
18934 | *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>* | |
18935 | ||
257e9d03 | 18936 | * Make callbacks for key generation use `void *` instead of `char *`. |
5f8e6c50 DMSP |
18937 | |
18938 | *Ben Laurie* | |
18939 | ||
18940 | * Make S/MIME samples compile (not yet tested). | |
18941 | ||
18942 | *Ben Laurie* | |
18943 | ||
18944 | * Additional typesafe stacks. | |
18945 | ||
18946 | *Ben Laurie* | |
18947 | ||
18948 | * New configuration variants "bsdi-elf-gcc" (BSD/OS 4.x). | |
18949 | ||
18950 | *Bodo Moeller* | |
18951 | ||
257e9d03 | 18952 | ### Changes between 0.9.3 and 0.9.3a [29 May 1999] |
5f8e6c50 DMSP |
18953 | |
18954 | * New configuration variant "sco5-gcc". | |
18955 | ||
18956 | * Updated some demos. | |
18957 | ||
18958 | *Sean O Riordain, Wade Scholine* | |
18959 | ||
18960 | * Add missing BIO_free at exit of pkcs12 application. | |
18961 | ||
18962 | *Wu Zhigang* | |
18963 | ||
18964 | * Fix memory leak in conf.c. | |
18965 | ||
18966 | *Steve Henson* | |
18967 | ||
18968 | * Updates for Win32 to assembler version of MD5. | |
18969 | ||
18970 | *Steve Henson* | |
18971 | ||
ec2bfb7d | 18972 | * Set #! path to perl in `apps/der_chop` to where we found it |
5f8e6c50 DMSP |
18973 | instead of using a fixed path. |
18974 | ||
18975 | *Bodo Moeller* | |
18976 | ||
18977 | * SHA library changes for irix64-mips4-cc. | |
18978 | ||
18979 | *Andy Polyakov* | |
18980 | ||
18981 | * Improvements for VMS support. | |
18982 | ||
18983 | *Richard Levitte* | |
18984 | ||
257e9d03 | 18985 | ### Changes between 0.9.2b and 0.9.3 [24 May 1999] |
5f8e6c50 DMSP |
18986 | |
18987 | * Bignum library bug fix. IRIX 6 passes "make test" now! | |
18988 | This also avoids the problems with SC4.2 and unpatched SC5. | |
18989 | ||
18990 | *Andy Polyakov <appro@fy.chalmers.se>* | |
18991 | ||
18992 | * New functions sk_num, sk_value and sk_set to replace the previous macros. | |
18993 | These are required because of the typesafe stack would otherwise break | |
18994 | existing code. If old code used a structure member which used to be STACK | |
18995 | and is now STACK_OF (for example cert in a PKCS7_SIGNED structure) with | |
18996 | sk_num or sk_value it would produce an error because the num, data members | |
18997 | are not present in STACK_OF. Now it just produces a warning. sk_set | |
18998 | replaces the old method of assigning a value to sk_value | |
18999 | (e.g. sk_value(x, i) = y) which the library used in a few cases. Any code | |
19000 | that does this will no longer work (and should use sk_set instead) but | |
19001 | this could be regarded as a "questionable" behaviour anyway. | |
19002 | ||
19003 | *Steve Henson* | |
19004 | ||
19005 | * Fix most of the other PKCS#7 bugs. The "experimental" code can now | |
19006 | correctly handle encrypted S/MIME data. | |
19007 | ||
19008 | *Steve Henson* | |
19009 | ||
19010 | * Change type of various DES function arguments from des_cblock | |
19011 | (which means, in function argument declarations, pointer to char) | |
19012 | to des_cblock * (meaning pointer to array with 8 char elements), | |
19013 | which allows the compiler to do more typechecking; it was like | |
19014 | that back in SSLeay, but with lots of ugly casts. | |
19015 | ||
19016 | Introduce new type const_des_cblock. | |
19017 | ||
19018 | *Bodo Moeller* | |
19019 | ||
19020 | * Reorganise the PKCS#7 library and get rid of some of the more obvious | |
19021 | problems: find RecipientInfo structure that matches recipient certificate | |
19022 | and initialise the ASN1 structures properly based on passed cipher. | |
19023 | ||
19024 | *Steve Henson* | |
19025 | ||
19026 | * Belatedly make the BN tests actually check the results. | |
19027 | ||
19028 | *Ben Laurie* | |
19029 | ||
19030 | * Fix the encoding and decoding of negative ASN1 INTEGERS and conversion | |
19031 | to and from BNs: it was completely broken. New compilation option | |
19032 | NEG_PUBKEY_BUG to allow for some broken certificates that encode public | |
19033 | key elements as negative integers. | |
19034 | ||
19035 | *Steve Henson* | |
19036 | ||
19037 | * Reorganize and speed up MD5. | |
19038 | ||
19039 | *Andy Polyakov <appro@fy.chalmers.se>* | |
19040 | ||
19041 | * VMS support. | |
19042 | ||
19043 | *Richard Levitte <richard@levitte.org>* | |
19044 | ||
19045 | * New option -out to asn1parse to allow the parsed structure to be | |
19046 | output to a file. This is most useful when combined with the -strparse | |
19047 | option to examine the output of things like OCTET STRINGS. | |
19048 | ||
19049 | *Steve Henson* | |
19050 | ||
19051 | * Make SSL library a little more fool-proof by not requiring any longer | |
257e9d03 RS |
19052 | that `SSL_set_{accept,connect}_state` be called before |
19053 | `SSL_{accept,connect}` may be used (`SSL_set_..._state` is omitted | |
5f8e6c50 DMSP |
19054 | in many applications because usually everything *appeared* to work as |
19055 | intended anyway -- now it really works as intended). | |
19056 | ||
19057 | *Bodo Moeller* | |
19058 | ||
19059 | * Move openssl.cnf out of lib/. | |
19060 | ||
19061 | *Ulf Möller* | |
19062 | ||
257e9d03 | 19063 | * Fix various things to let OpenSSL even pass "egcc -pipe -O2 -Wall |
5f8e6c50 | 19064 | -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes |
257e9d03 | 19065 | -Wmissing-declarations -Wnested-externs -Winline" with EGCS 1.1.2+ |
5f8e6c50 DMSP |
19066 | |
19067 | *Ralf S. Engelschall* | |
19068 | ||
19069 | * Various fixes to the EVP and PKCS#7 code. It may now be able to | |
19070 | handle PKCS#7 enveloped data properly. | |
19071 | ||
19072 | *Sebastian Akerman <sak@parallelconsulting.com>, modified by Steve* | |
19073 | ||
19074 | * Create a duplicate of the SSL_CTX's CERT in SSL_new instead of | |
19075 | copying pointers. The cert_st handling is changed by this in | |
19076 | various ways (and thus what used to be known as ctx->default_cert | |
257e9d03 | 19077 | is now called ctx->cert, since we don't resort to `s->ctx->[default_]cert` |
5f8e6c50 DMSP |
19078 | any longer when s->cert does not give us what we need). |
19079 | ssl_cert_instantiate becomes obsolete by this change. | |
19080 | As soon as we've got the new code right (possibly it already is?), | |
19081 | we have solved a couple of bugs of the earlier code where s->cert | |
19082 | was used as if it could not have been shared with other SSL structures. | |
19083 | ||
19084 | Note that using the SSL API in certain dirty ways now will result | |
19085 | in different behaviour than observed with earlier library versions: | |
257e9d03 | 19086 | Changing settings for an `SSL_CTX *ctx` after having done s = SSL_new(ctx) |
5f8e6c50 DMSP |
19087 | does not influence s as it used to. |
19088 | ||
19089 | In order to clean up things more thoroughly, inside SSL_SESSION | |
19090 | we don't use CERT any longer, but a new structure SESS_CERT | |
19091 | that holds per-session data (if available); currently, this is | |
19092 | the peer's certificate chain and, for clients, the server's certificate | |
19093 | and temporary key. CERT holds only those values that can have | |
19094 | meaningful defaults in an SSL_CTX. | |
19095 | ||
19096 | *Bodo Moeller* | |
19097 | ||
19098 | * New function X509V3_EXT_i2d() to create an X509_EXTENSION structure | |
19099 | from the internal representation. Various PKCS#7 fixes: remove some | |
19100 | evil casts and set the enc_dig_alg field properly based on the signing | |
19101 | key type. | |
19102 | ||
19103 | *Steve Henson* | |
19104 | ||
19105 | * Allow PKCS#12 password to be set from the command line or the | |
19106 | environment. Let 'ca' get its config file name from the environment | |
19107 | variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req' | |
19108 | and 'x509'). | |
19109 | ||
19110 | *Steve Henson* | |
19111 | ||
19112 | * Allow certificate policies extension to use an IA5STRING for the | |
19113 | organization field. This is contrary to the PKIX definition but | |
19114 | VeriSign uses it and IE5 only recognises this form. Document 'x509' | |
19115 | extension option. | |
19116 | ||
19117 | *Steve Henson* | |
19118 | ||
19119 | * Add PEDANTIC compiler flag to allow compilation with gcc -pedantic, | |
19120 | without disallowing inline assembler and the like for non-pedantic builds. | |
19121 | ||
19122 | *Ben Laurie* | |
19123 | ||
19124 | * Support Borland C++ builder. | |
19125 | ||
19126 | *Janez Jere <jj@void.si>, modified by Ulf Möller* | |
19127 | ||
19128 | * Support Mingw32. | |
19129 | ||
19130 | *Ulf Möller* | |
19131 | ||
19132 | * SHA-1 cleanups and performance enhancements. | |
19133 | ||
19134 | *Andy Polyakov <appro@fy.chalmers.se>* | |
19135 | ||
19136 | * Sparc v8plus assembler for the bignum library. | |
19137 | ||
19138 | *Andy Polyakov <appro@fy.chalmers.se>* | |
19139 | ||
19140 | * Accept any -xxx and +xxx compiler options in Configure. | |
19141 | ||
19142 | *Ulf Möller* | |
19143 | ||
19144 | * Update HPUX configuration. | |
19145 | ||
19146 | *Anonymous* | |
19147 | ||
257e9d03 | 19148 | * Add missing `sk_<type>_unshift()` function to safestack.h |
5f8e6c50 DMSP |
19149 | |
19150 | *Ralf S. Engelschall* | |
19151 | ||
19152 | * New function SSL_CTX_use_certificate_chain_file that sets the | |
19153 | "extra_cert"s in addition to the certificate. (This makes sense | |
19154 | only for "PEM" format files, as chains as a whole are not | |
19155 | DER-encoded.) | |
19156 | ||
19157 | *Bodo Moeller* | |
19158 | ||
19159 | * Support verify_depth from the SSL API. | |
19160 | x509_vfy.c had what can be considered an off-by-one-error: | |
19161 | Its depth (which was not part of the external interface) | |
19162 | was actually counting the number of certificates in a chain; | |
19163 | now it really counts the depth. | |
19164 | ||
19165 | *Bodo Moeller* | |
19166 | ||
19167 | * Bugfix in crypto/x509/x509_cmp.c: The SSLerr macro was used | |
19168 | instead of X509err, which often resulted in confusing error | |
19169 | messages since the error codes are not globally unique | |
19170 | (e.g. an alleged error in ssl3_accept when a certificate | |
19171 | didn't match the private key). | |
19172 | ||
19173 | * New function SSL_CTX_set_session_id_context that allows to set a default | |
19174 | value (so that you don't need SSL_set_session_id_context for each | |
19175 | connection using the SSL_CTX). | |
19176 | ||
19177 | *Bodo Moeller* | |
19178 | ||
19179 | * OAEP decoding bug fix. | |
19180 | ||
19181 | *Ulf Möller* | |
19182 | ||
19183 | * Support INSTALL_PREFIX for package builders, as proposed by | |
19184 | David Harris. | |
19185 | ||
19186 | *Bodo Moeller* | |
19187 | ||
19188 | * New Configure options "threads" and "no-threads". For systems | |
19189 | where the proper compiler options are known (currently Solaris | |
19190 | and Linux), "threads" is the default. | |
19191 | ||
19192 | *Bodo Moeller* | |
19193 | ||
19194 | * New script util/mklink.pl as a faster substitute for util/mklink.sh. | |
19195 | ||
19196 | *Bodo Moeller* | |
19197 | ||
19198 | * Install various scripts to $(OPENSSLDIR)/misc, not to | |
19199 | $(INSTALLTOP)/bin -- they shouldn't clutter directories | |
19200 | such as /usr/local/bin. | |
19201 | ||
19202 | *Bodo Moeller* | |
19203 | ||
19204 | * "make linux-shared" to build shared libraries. | |
19205 | ||
19206 | *Niels Poppe <niels@netbox.org>* | |
19207 | ||
257e9d03 | 19208 | * New Configure option `no-<cipher>` (rsa, idea, rc5, ...). |
5f8e6c50 DMSP |
19209 | |
19210 | *Ulf Möller* | |
19211 | ||
19212 | * Add the PKCS#12 API documentation to openssl.txt. Preliminary support for | |
19213 | extension adding in x509 utility. | |
19214 | ||
19215 | *Steve Henson* | |
19216 | ||
19217 | * Remove NOPROTO sections and error code comments. | |
19218 | ||
19219 | *Ulf Möller* | |
19220 | ||
19221 | * Partial rewrite of the DEF file generator to now parse the ANSI | |
19222 | prototypes. | |
19223 | ||
19224 | *Steve Henson* | |
19225 | ||
19226 | * New Configure options --prefix=DIR and --openssldir=DIR. | |
19227 | ||
19228 | *Ulf Möller* | |
19229 | ||
19230 | * Complete rewrite of the error code script(s). It is all now handled | |
19231 | by one script at the top level which handles error code gathering, | |
19232 | header rewriting and C source file generation. It should be much better | |
19233 | than the old method: it now uses a modified version of Ulf's parser to | |
19234 | read the ANSI prototypes in all header files (thus the old K&R definitions | |
19235 | aren't needed for error creation any more) and do a better job of | |
44652c16 | 19236 | translating function codes into names. The old 'ASN1 error code embedded |
5f8e6c50 DMSP |
19237 | in a comment' is no longer necessary and it doesn't use .err files which |
19238 | have now been deleted. Also the error code call doesn't have to appear all | |
19239 | on one line (which resulted in some large lines...). | |
19240 | ||
19241 | *Steve Henson* | |
19242 | ||
257e9d03 | 19243 | * Change #include filenames from `<foo.h>` to `<openssl/foo.h>`. |
5f8e6c50 DMSP |
19244 | |
19245 | *Bodo Moeller* | |
19246 | ||
19247 | * Change behaviour of ssl2_read when facing length-0 packets: Don't return | |
19248 | 0 (which usually indicates a closed connection), but continue reading. | |
19249 | ||
19250 | *Bodo Moeller* | |
19251 | ||
19252 | * Fix some race conditions. | |
19253 | ||
19254 | *Bodo Moeller* | |
19255 | ||
19256 | * Add support for CRL distribution points extension. Add Certificate | |
19257 | Policies and CRL distribution points documentation. | |
19258 | ||
19259 | *Steve Henson* | |
19260 | ||
19261 | * Move the autogenerated header file parts to crypto/opensslconf.h. | |
19262 | ||
19263 | *Ulf Möller* | |
19264 | ||
19265 | * Fix new 56-bit DES export ciphersuites: they were using 7 bytes instead of | |
19266 | 8 of keying material. Merlin has also confirmed interop with this fix | |
19267 | between OpenSSL and Baltimore C/SSL 2.0 and J/SSL 2.0. | |
19268 | ||
19269 | *Merlin Hughes <merlin@baltimore.ie>* | |
19270 | ||
19271 | * Fix lots of warnings. | |
19272 | ||
19273 | *Richard Levitte <levitte@stacken.kth.se>* | |
19274 | ||
19275 | * In add_cert_dir() in crypto/x509/by_dir.c, break out of the loop if | |
19276 | the directory spec didn't end with a LIST_SEPARATOR_CHAR. | |
19277 | ||
19278 | *Richard Levitte <levitte@stacken.kth.se>* | |
19279 | ||
19280 | * Fix problems with sizeof(long) == 8. | |
19281 | ||
19282 | *Andy Polyakov <appro@fy.chalmers.se>* | |
19283 | ||
19284 | * Change functions to ANSI C. | |
19285 | ||
19286 | *Ulf Möller* | |
19287 | ||
19288 | * Fix typos in error codes. | |
19289 | ||
19290 | *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>, Ulf Möller* | |
19291 | ||
19292 | * Remove defunct assembler files from Configure. | |
19293 | ||
19294 | *Ulf Möller* | |
19295 | ||
19296 | * SPARC v8 assembler BIGNUM implementation. | |
19297 | ||
19298 | *Andy Polyakov <appro@fy.chalmers.se>* | |
19299 | ||
19300 | * Support for Certificate Policies extension: both print and set. | |
19301 | Various additions to support the r2i method this uses. | |
19302 | ||
19303 | *Steve Henson* | |
19304 | ||
19305 | * A lot of constification, and fix a bug in X509_NAME_oneline() that could | |
19306 | return a const string when you are expecting an allocated buffer. | |
19307 | ||
19308 | *Ben Laurie* | |
19309 | ||
19310 | * Add support for ASN1 types UTF8String and VISIBLESTRING, also the CHOICE | |
19311 | types DirectoryString and DisplayText. | |
19312 | ||
19313 | *Steve Henson* | |
19314 | ||
19315 | * Add code to allow r2i extensions to access the configuration database, | |
19316 | add an LHASH database driver and add several ctx helper functions. | |
19317 | ||
19318 | *Steve Henson* | |
19319 | ||
19320 | * Fix an evil bug in bn_expand2() which caused various BN functions to | |
19321 | fail when they extended the size of a BIGNUM. | |
19322 | ||
19323 | *Steve Henson* | |
19324 | ||
19325 | * Various utility functions to handle SXNet extension. Modify mkdef.pl to | |
19326 | support typesafe stack. | |
19327 | ||
19328 | *Steve Henson* | |
19329 | ||
19330 | * Fix typo in SSL_[gs]et_options(). | |
19331 | ||
19332 | *Nils Frostberg <nils@medcom.se>* | |
19333 | ||
19334 | * Delete various functions and files that belonged to the (now obsolete) | |
19335 | old X509V3 handling code. | |
19336 | ||
19337 | *Steve Henson* | |
19338 | ||
19339 | * New Configure option "rsaref". | |
19340 | ||
19341 | *Ulf Möller* | |
19342 | ||
19343 | * Don't auto-generate pem.h. | |
19344 | ||
19345 | *Bodo Moeller* | |
19346 | ||
19347 | * Introduce type-safe ASN.1 SETs. | |
19348 | ||
19349 | *Ben Laurie* | |
19350 | ||
19351 | * Convert various additional casted stacks to type-safe STACK_OF() variants. | |
19352 | ||
19353 | *Ben Laurie, Ralf S. Engelschall, Steve Henson* | |
19354 | ||
19355 | * Introduce type-safe STACKs. This will almost certainly break lots of code | |
19356 | that links with OpenSSL (well at least cause lots of warnings), but fear | |
19357 | not: the conversion is trivial, and it eliminates loads of evil casts. A | |
19358 | few STACKed things have been converted already. Feel free to convert more. | |
19359 | In the fullness of time, I'll do away with the STACK type altogether. | |
19360 | ||
19361 | *Ben Laurie* | |
19362 | ||
257e9d03 RS |
19363 | * Add `openssl ca -revoke <certfile>` facility which revokes a certificate |
19364 | specified in `<certfile>` by updating the entry in the index.txt file. | |
5f8e6c50 DMSP |
19365 | This way one no longer has to edit the index.txt file manually for |
19366 | revoking a certificate. The -revoke option does the gory details now. | |
19367 | ||
19368 | *Massimiliano Pala <madwolf@openca.org>, Ralf S. Engelschall* | |
19369 | ||
257e9d03 RS |
19370 | * Fix `openssl crl -noout -text` combination where `-noout` killed the |
19371 | `-text` option at all and this way the `-noout -text` combination was | |
19372 | inconsistent in `openssl crl` with the friends in `openssl x509|rsa|dsa`. | |
5f8e6c50 DMSP |
19373 | |
19374 | *Ralf S. Engelschall* | |
19375 | ||
19376 | * Make sure a corresponding plain text error message exists for the | |
19377 | X509_V_ERR_CERT_REVOKED/23 error number which can occur when a | |
19378 | verify callback function determined that a certificate was revoked. | |
19379 | ||
19380 | *Ralf S. Engelschall* | |
19381 | ||
257e9d03 | 19382 | * Bugfix: In test/testenc, don't test `openssl <cipher>` for |
5f8e6c50 DMSP |
19383 | ciphers that were excluded, e.g. by -DNO_IDEA. Also, test |
19384 | all available ciphers including rc5, which was forgotten until now. | |
19385 | In order to let the testing shell script know which algorithms | |
19386 | are available, a new (up to now undocumented) command | |
257e9d03 | 19387 | `openssl list-cipher-commands` is used. |
5f8e6c50 DMSP |
19388 | |
19389 | *Bodo Moeller* | |
19390 | ||
19391 | * Bugfix: s_client occasionally would sleep in select() when | |
19392 | it should have checked SSL_pending() first. | |
19393 | ||
19394 | *Bodo Moeller* | |
19395 | ||
19396 | * New functions DSA_do_sign and DSA_do_verify to provide access to | |
19397 | the raw DSA values prior to ASN.1 encoding. | |
19398 | ||
19399 | *Ulf Möller* | |
19400 | ||
19401 | * Tweaks to Configure | |
19402 | ||
19403 | *Niels Poppe <niels@netbox.org>* | |
19404 | ||
19405 | * Add support for PKCS#5 v2.0 ASN1 PBES2 structures. No other support, | |
19406 | yet... | |
19407 | ||
19408 | *Steve Henson* | |
19409 | ||
19410 | * New variables $(RANLIB) and $(PERL) in the Makefiles. | |
19411 | ||
19412 | *Ulf Möller* | |
19413 | ||
19414 | * New config option to avoid instructions that are illegal on the 80386. | |
19415 | The default code is faster, but requires at least a 486. | |
19416 | ||
19417 | *Ulf Möller* | |
19418 | ||
19419 | * Got rid of old SSL2_CLIENT_VERSION (inconsistently used) and | |
19420 | SSL2_SERVER_VERSION (not used at all) macros, which are now the | |
19421 | same as SSL2_VERSION anyway. | |
19422 | ||
19423 | *Bodo Moeller* | |
19424 | ||
19425 | * New "-showcerts" option for s_client. | |
19426 | ||
19427 | *Bodo Moeller* | |
19428 | ||
19429 | * Still more PKCS#12 integration. Add pkcs12 application to openssl | |
19430 | application. Various cleanups and fixes. | |
19431 | ||
19432 | *Steve Henson* | |
19433 | ||
19434 | * More PKCS#12 integration. Add new pkcs12 directory with Makefile.ssl and | |
19435 | modify error routines to work internally. Add error codes and PBE init | |
19436 | to library startup routines. | |
19437 | ||
19438 | *Steve Henson* | |
19439 | ||
19440 | * Further PKCS#12 integration. Added password based encryption, PKCS#8 and | |
19441 | packing functions to asn1 and evp. Changed function names and error | |
19442 | codes along the way. | |
19443 | ||
19444 | *Steve Henson* | |
19445 | ||
19446 | * PKCS12 integration: and so it begins... First of several patches to | |
19447 | slowly integrate PKCS#12 functionality into OpenSSL. Add PKCS#12 | |
19448 | objects to objects.h | |
19449 | ||
19450 | *Steve Henson* | |
19451 | ||
19452 | * Add a new 'indent' option to some X509V3 extension code. Initial ASN1 | |
19453 | and display support for Thawte strong extranet extension. | |
19454 | ||
19455 | *Steve Henson* | |
19456 | ||
19457 | * Add LinuxPPC support. | |
19458 | ||
19459 | *Jeff Dubrule <igor@pobox.org>* | |
19460 | ||
19461 | * Get rid of redundant BN file bn_mulw.c, and rename bn_div64 to | |
19462 | bn_div_words in alpha.s. | |
19463 | ||
19464 | *Hannes Reinecke <H.Reinecke@hw.ac.uk> and Ben Laurie* | |
19465 | ||
19466 | * Make sure the RSA OAEP test is skipped under -DRSAref because | |
19467 | OAEP isn't supported when OpenSSL is built with RSAref. | |
19468 | ||
19469 | *Ulf Moeller <ulf@fitug.de>* | |
19470 | ||
19471 | * Move definitions of IS_SET/IS_SEQUENCE inside crypto/asn1/asn1.h | |
19472 | so they no longer are missing under -DNOPROTO. | |
19473 | ||
19474 | *Soren S. Jorvang <soren@t.dk>* | |
19475 | ||
257e9d03 | 19476 | ### Changes between 0.9.1c and 0.9.2b [22 Mar 1999] |
5f8e6c50 DMSP |
19477 | |
19478 | * Make SSL_get_peer_cert_chain() work in servers. Unfortunately, it still | |
19479 | doesn't work when the session is reused. Coming soon! | |
19480 | ||
19481 | *Ben Laurie* | |
19482 | ||
19483 | * Fix a security hole, that allows sessions to be reused in the wrong | |
19484 | context thus bypassing client cert protection! All software that uses | |
19485 | client certs and session caches in multiple contexts NEEDS PATCHING to | |
19486 | allow session reuse! A fuller solution is in the works. | |
19487 | ||
19488 | *Ben Laurie, problem pointed out by Holger Reif, Bodo Moeller (and ???)* | |
19489 | ||
19490 | * Some more source tree cleanups (removed obsolete files | |
19491 | crypto/bf/asm/bf586.pl, test/test.txt and crypto/sha/asm/f.s; changed | |
19492 | permission on "config" script to be executable) and a fix for the INSTALL | |
19493 | document. | |
19494 | ||
19495 | *Ulf Moeller <ulf@fitug.de>* | |
19496 | ||
19497 | * Remove some legacy and erroneous uses of malloc, free instead of | |
19498 | Malloc, Free. | |
19499 | ||
19500 | *Lennart Bang <lob@netstream.se>, with minor changes by Steve* | |
19501 | ||
19502 | * Make rsa_oaep_test return non-zero on error. | |
19503 | ||
19504 | *Ulf Moeller <ulf@fitug.de>* | |
19505 | ||
19506 | * Add support for native Solaris shared libraries. Configure | |
19507 | solaris-sparc-sc4-pic, make, then run shlib/solaris-sc4.sh. It'd be nice | |
19508 | if someone would make that last step automatic. | |
19509 | ||
19510 | *Matthias Loepfe <Matthias.Loepfe@AdNovum.CH>* | |
19511 | ||
19512 | * ctx_size was not built with the right compiler during "make links". Fixed. | |
19513 | ||
19514 | *Ben Laurie* | |
19515 | ||
19516 | * Change the meaning of 'ALL' in the cipher list. It now means "everything | |
19517 | except NULL ciphers". This means the default cipher list will no longer | |
19518 | enable NULL ciphers. They need to be specifically enabled e.g. with | |
19519 | the string "DEFAULT:eNULL". | |
19520 | ||
19521 | *Steve Henson* | |
19522 | ||
19523 | * Fix to RSA private encryption routines: if p < q then it would | |
19524 | occasionally produce an invalid result. This will only happen with | |
19525 | externally generated keys because OpenSSL (and SSLeay) ensure p > q. | |
19526 | ||
19527 | *Steve Henson* | |
19528 | ||
19529 | * Be less restrictive and allow also `perl util/perlpath.pl | |
1dc1ea18 DDO |
19530 | /path/to/bin/perl` in addition to `perl util/perlpath.pl /path/to/bin`, |
19531 | because this way one can also use an interpreter named `perl5` (which is | |
5f8e6c50 | 19532 | usually the name of Perl 5.xxx on platforms where an Perl 4.x is still |
1dc1ea18 | 19533 | installed as `perl`). |
5f8e6c50 DMSP |
19534 | |
19535 | *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>* | |
19536 | ||
19537 | * Let util/clean-depend.pl work also with older Perl 5.00x versions. | |
19538 | ||
19539 | *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>* | |
19540 | ||
19541 | * Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add | |
19542 | advapi32.lib to Win32 build and change the pem test comparison | |
19543 | to fc.exe (thanks to Ulrich Kroener <kroneru@yahoo.com> for the | |
19544 | suggestion). Fix misplaced ASNI prototypes and declarations in evp.h | |
19545 | and crypto/des/ede_cbcm_enc.c. | |
19546 | ||
19547 | *Steve Henson* | |
19548 | ||
19549 | * DES quad checksum was broken on big-endian architectures. Fixed. | |
19550 | ||
19551 | *Ben Laurie* | |
19552 | ||
19553 | * Comment out two functions in bio.h that aren't implemented. Fix up the | |
19554 | Win32 test batch file so it (might) work again. The Win32 test batch file | |
19555 | is horrible: I feel ill.... | |
19556 | ||
19557 | *Steve Henson* | |
19558 | ||
19559 | * Move various #ifdefs around so NO_SYSLOG, NO_DIRENT etc are now selected | |
19560 | in e_os.h. Audit of header files to check ANSI and non ANSI | |
19561 | sections: 10 functions were absent from non ANSI section and not exported | |
19562 | from Windows DLLs. Fixed up libeay.num for new functions. | |
19563 | ||
19564 | *Steve Henson* | |
19565 | ||
1dc1ea18 | 19566 | * Make `openssl version` output lines consistent. |
5f8e6c50 DMSP |
19567 | |
19568 | *Ralf S. Engelschall* | |
19569 | ||
19570 | * Fix Win32 symbol export lists for BIO functions: Added | |
19571 | BIO_get_ex_new_index, BIO_get_ex_num, BIO_get_ex_data and BIO_set_ex_data | |
19572 | to ms/libeay{16,32}.def. | |
19573 | ||
19574 | *Ralf S. Engelschall* | |
19575 | ||
19576 | * Second round of fixing the OpenSSL perl/ stuff. It now at least compiled | |
19577 | fine under Unix and passes some trivial tests I've now added. But the | |
19578 | whole stuff is horribly incomplete, so a README.1ST with a disclaimer was | |
19579 | added to make sure no one expects that this stuff really works in the | |
19580 | OpenSSL 0.9.2 release. Additionally I've started to clean the XS sources | |
19581 | up and fixed a few little bugs and inconsistencies in OpenSSL.{pm,xs} and | |
19582 | openssl_bio.xs. | |
19583 | ||
19584 | *Ralf S. Engelschall* | |
19585 | ||
19586 | * Fix the generation of two part addresses in perl. | |
19587 | ||
19588 | *Kenji Miyake <kenji@miyake.org>, integrated by Ben Laurie* | |
19589 | ||
19590 | * Add config entry for Linux on MIPS. | |
19591 | ||
19592 | *John Tobey <jtobey@channel1.com>* | |
19593 | ||
19594 | * Make links whenever Configure is run, unless we are on Windoze. | |
19595 | ||
19596 | *Ben Laurie* | |
19597 | ||
19598 | * Permit extensions to be added to CRLs using crl_section in openssl.cnf. | |
19599 | Currently only issuerAltName and AuthorityKeyIdentifier make any sense | |
19600 | in CRLs. | |
19601 | ||
19602 | *Steve Henson* | |
19603 | ||
19604 | * Add a useful kludge to allow package maintainers to specify compiler and | |
19605 | other platforms details on the command line without having to patch the | |
257e9d03 RS |
19606 | Configure script every time: One now can use |
19607 | `perl Configure <id>:<details>`, | |
19608 | i.e. platform ids are allowed to have details appended | |
5f8e6c50 | 19609 | to them (separated by colons). This is treated as there would be a static |
257e9d03 RS |
19610 | pre-configured entry in Configure's %table under key `<id>` with value |
19611 | `<details>` and `perl Configure <id>` is called. So, when you want to | |
5f8e6c50 | 19612 | perform a quick test-compile under FreeBSD 3.1 with pgcc and without |
257e9d03 | 19613 | assembler stuff you can use `perl Configure "FreeBSD-elf:pgcc:-O6:::"` |
5f8e6c50 DMSP |
19614 | now, which overrides the FreeBSD-elf entry on-the-fly. |
19615 | ||
19616 | *Ralf S. Engelschall* | |
19617 | ||
19618 | * Disable new TLS1 ciphersuites by default: they aren't official yet. | |
19619 | ||
19620 | *Ben Laurie* | |
19621 | ||
19622 | * Allow DSO flags like -fpic, -fPIC, -KPIC etc. to be specified | |
1dc1ea18 | 19623 | on the `perl Configure ...` command line. This way one can compile |
5f8e6c50 DMSP |
19624 | OpenSSL libraries with Position Independent Code (PIC) which is needed |
19625 | for linking it into DSOs. | |
19626 | ||
19627 | *Ralf S. Engelschall* | |
19628 | ||
19629 | * Remarkably, export ciphers were totally broken and no-one had noticed! | |
19630 | Fixed. | |
19631 | ||
19632 | *Ben Laurie* | |
19633 | ||
19634 | * Cleaned up the LICENSE document: The official contact for any license | |
19635 | questions now is the OpenSSL core team under openssl-core@openssl.org. | |
19636 | And add a paragraph about the dual-license situation to make sure people | |
19637 | recognize that _BOTH_ the OpenSSL license _AND_ the SSLeay license apply | |
19638 | to the OpenSSL toolkit. | |
19639 | ||
19640 | *Ralf S. Engelschall* | |
19641 | ||
1dc1ea18 DDO |
19642 | * General source tree makefile cleanups: Made `making xxx in yyy...` |
19643 | display consistent in the source tree and replaced `/bin/rm` by `rm`. | |
19644 | Additionally cleaned up the `make links` target: Remove unnecessary | |
5f8e6c50 DMSP |
19645 | semicolons, subsequent redundant removes, inline point.sh into mklink.sh |
19646 | to speed processing and no longer clutter the display with confusing | |
19647 | stuff. Instead only the actually done links are displayed. | |
19648 | ||
19649 | *Ralf S. Engelschall* | |
19650 | ||
19651 | * Permit null encryption ciphersuites, used for authentication only. It used | |
19652 | to be necessary to set the preprocessor define SSL_ALLOW_ENULL to do this. | |
19653 | It is now necessary to set SSL_FORBID_ENULL to prevent the use of null | |
19654 | encryption. | |
19655 | ||
19656 | *Ben Laurie* | |
19657 | ||
19658 | * Add a bunch of fixes to the PKCS#7 stuff. It used to sometimes reorder | |
19659 | signed attributes when verifying signatures (this would break them), | |
19660 | the detached data encoding was wrong and public keys obtained using | |
19661 | X509_get_pubkey() weren't freed. | |
19662 | ||
19663 | *Steve Henson* | |
19664 | ||
19665 | * Add text documentation for the BUFFER functions. Also added a work around | |
19666 | to a Win95 console bug. This was triggered by the password read stuff: the | |
19667 | last character typed gets carried over to the next fread(). If you were | |
19668 | generating a new cert request using 'req' for example then the last | |
19669 | character of the passphrase would be CR which would then enter the first | |
19670 | field as blank. | |
19671 | ||
19672 | *Steve Henson* | |
19673 | ||
257e9d03 | 19674 | * Added the new 'Includes OpenSSL Cryptography Software' button as |
5f8e6c50 DMSP |
19675 | doc/openssl_button.{gif,html} which is similar in style to the old SSLeay |
19676 | button and can be used by applications based on OpenSSL to show the | |
19677 | relationship to the OpenSSL project. | |
19678 | ||
19679 | *Ralf S. Engelschall* | |
19680 | ||
19681 | * Remove confusing variables in function signatures in files | |
19682 | ssl/ssl_lib.c and ssl/ssl.h. | |
19683 | ||
19684 | *Lennart Bong <lob@kulthea.stacken.kth.se>* | |
19685 | ||
19686 | * Don't install bss_file.c under PREFIX/include/ | |
19687 | ||
19688 | *Lennart Bong <lob@kulthea.stacken.kth.se>* | |
19689 | ||
19690 | * Get the Win32 compile working again. Modify mkdef.pl so it can handle | |
19691 | functions that return function pointers and has support for NT specific | |
19692 | stuff. Fix mk1mf.pl and VC-32.pl to support NT differences also. Various | |
19693 | #ifdef WIN32 and WINNTs sprinkled about the place and some changes from | |
19694 | unsigned to signed types: this was killing the Win32 compile. | |
19695 | ||
19696 | *Steve Henson* | |
19697 | ||
19698 | * Add new certificate file to stack functions, | |
19699 | SSL_add_dir_cert_subjects_to_stack() and | |
19700 | SSL_add_file_cert_subjects_to_stack(). These largely supplant | |
19701 | SSL_load_client_CA_file(), and can be used to add multiple certs easily | |
19702 | to a stack (usually this is then handed to SSL_CTX_set_client_CA_list()). | |
19703 | This means that Apache-SSL and similar packages don't have to mess around | |
19704 | to add as many CAs as they want to the preferred list. | |
19705 | ||
19706 | *Ben Laurie* | |
19707 | ||
19708 | * Experiment with doxygen documentation. Currently only partially applied to | |
19709 | ssl/ssl_lib.c. | |
257e9d03 | 19710 | See <http://www.stack.nl/~dimitri/doxygen/index.html>, and run doxygen with |
5f8e6c50 DMSP |
19711 | openssl.doxy as the configuration file. |
19712 | ||
19713 | *Ben Laurie* | |
19714 | ||
19715 | * Get rid of remaining C++-style comments which strict C compilers hate. | |
19716 | ||
19717 | *Ralf S. Engelschall, pointed out by Carlos Amengual* | |
19718 | ||
19719 | * Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not | |
19720 | compiled in by default: it has problems with large keys. | |
19721 | ||
19722 | *Steve Henson* | |
19723 | ||
19724 | * Add a bunch of SSL_xxx() functions for configuring the temporary RSA and | |
19725 | DH private keys and/or callback functions which directly correspond to | |
19726 | their SSL_CTX_xxx() counterparts but work on a per-connection basis. This | |
19727 | is needed for applications which have to configure certificates on a | |
19728 | per-connection basis (e.g. Apache+mod_ssl) instead of a per-context basis | |
19729 | (e.g. s_server). | |
19730 | For the RSA certificate situation is makes no difference, but | |
19731 | for the DSA certificate situation this fixes the "no shared cipher" | |
19732 | problem where the OpenSSL cipher selection procedure failed because the | |
19733 | temporary keys were not overtaken from the context and the API provided | |
19734 | no way to reconfigure them. | |
19735 | The new functions now let applications reconfigure the stuff and they | |
19736 | are in detail: SSL_need_tmp_RSA, SSL_set_tmp_rsa, SSL_set_tmp_dh, | |
19737 | SSL_set_tmp_rsa_callback and SSL_set_tmp_dh_callback. Additionally a new | |
19738 | non-public-API function ssl_cert_instantiate() is used as a helper | |
19739 | function and also to reduce code redundancy inside ssl_rsa.c. | |
19740 | ||
19741 | *Ralf S. Engelschall* | |
19742 | ||
19743 | * Move s_server -dcert and -dkey options out of the undocumented feature | |
19744 | area because they are useful for the DSA situation and should be | |
19745 | recognized by the users. | |
19746 | ||
19747 | *Ralf S. Engelschall* | |
19748 | ||
19749 | * Fix the cipher decision scheme for export ciphers: the export bits are | |
19750 | *not* within SSL_MKEY_MASK or SSL_AUTH_MASK, they are within | |
19751 | SSL_EXP_MASK. So, the original variable has to be used instead of the | |
19752 | already masked variable. | |
19753 | ||
19754 | *Richard Levitte <levitte@stacken.kth.se>* | |
19755 | ||
257e9d03 | 19756 | * Fix `port` variable from `int` to `unsigned int` in crypto/bio/b_sock.c |
5f8e6c50 DMSP |
19757 | |
19758 | *Richard Levitte <levitte@stacken.kth.se>* | |
19759 | ||
19760 | * Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal() | |
257e9d03 RS |
19761 | from `int` to `unsigned int` because it is a length and initialized by |
19762 | EVP_DigestFinal() which expects an `unsigned int *`. | |
5f8e6c50 DMSP |
19763 | |
19764 | *Richard Levitte <levitte@stacken.kth.se>* | |
19765 | ||
19766 | * Don't hard-code path to Perl interpreter on shebang line of Configure | |
19767 | script. Instead use the usual Shell->Perl transition trick. | |
19768 | ||
19769 | *Ralf S. Engelschall* | |
19770 | ||
1dc1ea18 | 19771 | * Make `openssl x509 -noout -modulus`' functional also for DSA certificates |
5f8e6c50 | 19772 | (in addition to RSA certificates) to match the behaviour of `openssl dsa |
1dc1ea18 DDO |
19773 | -noout -modulus` as it's already the case for `openssl rsa -noout |
19774 | -modulus`. For RSA the -modulus is the real "modulus" while for DSA | |
5f8e6c50 | 19775 | currently the public key is printed (a decision which was already done by |
1dc1ea18 | 19776 | `openssl dsa -modulus` in the past) which serves a similar purpose. |
5f8e6c50 DMSP |
19777 | Additionally the NO_RSA no longer completely removes the whole -modulus |
19778 | option; it now only avoids using the RSA stuff. Same applies to NO_DSA | |
19779 | now, too. | |
19780 | ||
19781 | *Ralf S. Engelschall* | |
19782 | ||
19783 | * Add Arne Ansper's reliable BIO - this is an encrypted, block-digested | |
19784 | BIO. See the source (crypto/evp/bio_ok.c) for more info. | |
19785 | ||
19786 | *Arne Ansper <arne@ats.cyber.ee>* | |
19787 | ||
19788 | * Dump the old yucky req code that tried (and failed) to allow raw OIDs | |
19789 | to be added. Now both 'req' and 'ca' can use new objects defined in the | |
19790 | config file. | |
19791 | ||
19792 | *Steve Henson* | |
19793 | ||
19794 | * Add cool BIO that does syslog (or event log on NT). | |
19795 | ||
19796 | *Arne Ansper <arne@ats.cyber.ee>, integrated by Ben Laurie* | |
19797 | ||
19798 | * Add support for new TLS ciphersuites, TLS_RSA_EXPORT56_WITH_RC4_56_MD5, | |
19799 | TLS_RSA_EXPORT56_WITH_RC2_CBC_56_MD5 and | |
19800 | TLS_RSA_EXPORT56_WITH_DES_CBC_SHA, as specified in "56-bit Export Cipher | |
19801 | Suites For TLS", draft-ietf-tls-56-bit-ciphersuites-00.txt. | |
19802 | ||
19803 | *Ben Laurie* | |
19804 | ||
19805 | * Add preliminary config info for new extension code. | |
19806 | ||
19807 | *Steve Henson* | |
19808 | ||
19809 | * Make RSA_NO_PADDING really use no padding. | |
19810 | ||
19811 | *Ulf Moeller <ulf@fitug.de>* | |
19812 | ||
19813 | * Generate errors when private/public key check is done. | |
19814 | ||
19815 | *Ben Laurie* | |
19816 | ||
19817 | * Overhaul for 'crl' utility. New function X509_CRL_print. Partial support | |
19818 | for some CRL extensions and new objects added. | |
19819 | ||
19820 | *Steve Henson* | |
19821 | ||
19822 | * Really fix the ASN1 IMPLICIT bug this time... Partial support for private | |
19823 | key usage extension and fuller support for authority key id. | |
19824 | ||
19825 | *Steve Henson* | |
19826 | ||
19827 | * Add OAEP encryption for the OpenSSL crypto library. OAEP is the improved | |
19828 | padding method for RSA, which is recommended for new applications in PKCS | |
19829 | #1 v2.0 (RFC 2437, October 1998). | |
19830 | OAEP (Optimal Asymmetric Encryption Padding) has better theoretical | |
19831 | foundations than the ad-hoc padding used in PKCS #1 v1.5. It is secure | |
19832 | against Bleichbacher's attack on RSA. | |
19833 | *Ulf Moeller <ulf@fitug.de>, reformatted, corrected and integrated by | |
257e9d03 | 19834 | Ben Laurie* |
5f8e6c50 DMSP |
19835 | |
19836 | * Updates to the new SSL compression code | |
19837 | ||
19838 | *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)* | |
19839 | ||
19840 | * Fix so that the version number in the master secret, when passed | |
19841 | via RSA, checks that if TLS was proposed, but we roll back to SSLv3 | |
19842 | (because the server will not accept higher), that the version number | |
19843 | is 0x03,0x01, not 0x03,0x00 | |
19844 | ||
19845 | *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)* | |
19846 | ||
ec2bfb7d DDO |
19847 | * Run extensive memory leak checks on SSL commands. Fixed *lots* of memory |
19848 | leaks in `ssl/` relating to new `X509_get_pubkey()` behaviour. Also fixes | |
19849 | in `apps/` and an unrelated leak in `crypto/dsa/dsa_vrf.c`. | |
5f8e6c50 DMSP |
19850 | |
19851 | *Steve Henson* | |
19852 | ||
19853 | * Support for RAW extensions where an arbitrary extension can be | |
ec2bfb7d | 19854 | created by including its DER encoding. See `apps/openssl.cnf` for |
5f8e6c50 DMSP |
19855 | an example. |
19856 | ||
19857 | *Steve Henson* | |
19858 | ||
19859 | * Make sure latest Perl versions don't interpret some generated C array | |
19860 | code as Perl array code in the crypto/err/err_genc.pl script. | |
19861 | ||
19862 | *Lars Weber <3weber@informatik.uni-hamburg.de>* | |
19863 | ||
19864 | * Modify ms/do_ms.bat to not generate assembly language makefiles since | |
19865 | not many people have the assembler. Various Win32 compilation fixes and | |
19866 | update to the INSTALL.W32 file with (hopefully) more accurate Win32 | |
19867 | build instructions. | |
19868 | ||
19869 | *Steve Henson* | |
19870 | ||
19871 | * Modify configure script 'Configure' to automatically create crypto/date.h | |
19872 | file under Win32 and also build pem.h from pem.org. New script | |
19873 | util/mkfiles.pl to create the MINFO file on environments that can't do a | |
19874 | 'make files': perl util/mkfiles.pl >MINFO should work. | |
19875 | ||
19876 | *Steve Henson* | |
19877 | ||
19878 | * Major rework of DES function declarations, in the pursuit of correctness | |
19879 | and purity. As a result, many evil casts evaporated, and some weirdness, | |
19880 | too. You may find this causes warnings in your code. Zapping your evil | |
19881 | casts will probably fix them. Mostly. | |
19882 | ||
19883 | *Ben Laurie* | |
19884 | ||
19885 | * Fix for a typo in asn1.h. Bug fix to object creation script | |
19886 | obj_dat.pl. It considered a zero in an object definition to mean | |
19887 | "end of object": none of the objects in objects.h have any zeros | |
19888 | so it wasn't spotted. | |
19889 | ||
19890 | *Steve Henson, reported by Erwann ABALEA <eabalea@certplus.com>* | |
19891 | ||
19892 | * Add support for Triple DES Cipher Block Chaining with Output Feedback | |
19893 | Masking (CBCM). In the absence of test vectors, the best I have been able | |
19894 | to do is check that the decrypt undoes the encrypt, so far. Send me test | |
19895 | vectors if you have them. | |
19896 | ||
19897 | *Ben Laurie* | |
19898 | ||
19899 | * Correct calculation of key length for export ciphers (too much space was | |
19900 | allocated for null ciphers). This has not been tested! | |
19901 | ||
19902 | *Ben Laurie* | |
19903 | ||
19904 | * Modifications to the mkdef.pl for Win32 DEF file creation. The usage | |
19905 | message is now correct (it understands "crypto" and "ssl" on its | |
19906 | command line). There is also now an "update" option. This will update | |
19907 | the util/ssleay.num and util/libeay.num files with any new functions. | |
19908 | If you do a: | |
19909 | perl util/mkdef.pl crypto ssl update | |
19910 | it will update them. | |
19911 | ||
19912 | *Steve Henson* | |
19913 | ||
257e9d03 | 19914 | * Overhauled the Perl interface: |
5f8e6c50 DMSP |
19915 | - ported BN stuff to OpenSSL's different BN library |
19916 | - made the perl/ source tree CVS-aware | |
19917 | - renamed the package from SSLeay to OpenSSL (the files still contain | |
19918 | their history because I've copied them in the repository) | |
19919 | - removed obsolete files (the test scripts will be replaced | |
19920 | by better Test::Harness variants in the future) | |
19921 | ||
19922 | *Ralf S. Engelschall* | |
19923 | ||
19924 | * First cut for a very conservative source tree cleanup: | |
19925 | 1. merge various obsolete readme texts into doc/ssleay.txt | |
19926 | where we collect the old documents and readme texts. | |
19927 | 2. remove the first part of files where I'm already sure that we no | |
19928 | longer need them because of three reasons: either they are just temporary | |
19929 | files which were left by Eric or they are preserved original files where | |
19930 | I've verified that the diff is also available in the CVS via "cvs diff | |
19931 | -rSSLeay_0_8_1b" or they were renamed (as it was definitely the case for | |
19932 | the crypto/md/ stuff). | |
19933 | ||
19934 | *Ralf S. Engelschall* | |
19935 | ||
19936 | * More extension code. Incomplete support for subject and issuer alt | |
19937 | name, issuer and authority key id. Change the i2v function parameters | |
19938 | and add an extra 'crl' parameter in the X509V3_CTX structure: guess | |
19939 | what that's for :-) Fix to ASN1 macro which messed up | |
19940 | IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED. | |
19941 | ||
19942 | *Steve Henson* | |
19943 | ||
19944 | * Preliminary support for ENUMERATED type. This is largely copied from the | |
19945 | INTEGER code. | |
19946 | ||
19947 | *Steve Henson* | |
19948 | ||
19949 | * Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy. | |
19950 | ||
19951 | *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)* | |
19952 | ||
257e9d03 | 19953 | * Make sure `make rehash` target really finds the `openssl` program. |
5f8e6c50 DMSP |
19954 | |
19955 | *Ralf S. Engelschall, Matthias Loepfe <Matthias.Loepfe@adnovum.ch>* | |
19956 | ||
19957 | * Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd | |
19958 | like to hear about it if this slows down other processors. | |
19959 | ||
19960 | *Ben Laurie* | |
19961 | ||
19962 | * Add CygWin32 platform information to Configure script. | |
19963 | ||
19964 | *Alan Batie <batie@aahz.jf.intel.com>* | |
19965 | ||
257e9d03 | 19966 | * Fixed ms/32all.bat script: `no_asm` -> `no-asm` |
5f8e6c50 DMSP |
19967 | |
19968 | *Rainer W. Gerling <gerling@mpg-gv.mpg.de>* | |
19969 | ||
19970 | * New program nseq to manipulate netscape certificate sequences | |
19971 | ||
19972 | *Steve Henson* | |
19973 | ||
19974 | * Modify crl2pkcs7 so it supports multiple -certfile arguments. Fix a | |
19975 | few typos. | |
19976 | ||
19977 | *Steve Henson* | |
19978 | ||
19979 | * Fixes to BN code. Previously the default was to define BN_RECURSION | |
19980 | but the BN code had some problems that would cause failures when | |
19981 | doing certificate verification and some other functions. | |
19982 | ||
19983 | *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)* | |
19984 | ||
19985 | * Add ASN1 and PEM code to support netscape certificate sequences. | |
19986 | ||
19987 | *Steve Henson* | |
19988 | ||
19989 | * Add ASN1 and PEM code to support netscape certificate sequences. | |
19990 | ||
19991 | *Steve Henson* | |
19992 | ||
19993 | * Add several PKIX and private extended key usage OIDs. | |
19994 | ||
19995 | *Steve Henson* | |
19996 | ||
19997 | * Modify the 'ca' program to handle the new extension code. Modify | |
19998 | openssl.cnf for new extension format, add comments. | |
19999 | ||
20000 | *Steve Henson* | |
20001 | ||
20002 | * More X509 V3 changes. Fix typo in v3_bitstr.c. Add support to 'req' | |
20003 | and add a sample to openssl.cnf so req -x509 now adds appropriate | |
20004 | CA extensions. | |
20005 | ||
20006 | *Steve Henson* | |
20007 | ||
20008 | * Continued X509 V3 changes. Add to other makefiles, integrate with the | |
20009 | error code, add initial support to X509_print() and x509 application. | |
20010 | ||
20011 | *Steve Henson* | |
20012 | ||
20013 | * Takes a deep breath and start adding X509 V3 extension support code. Add | |
20014 | files in crypto/x509v3. Move original stuff to crypto/x509v3/old. All this | |
20015 | stuff is currently isolated and isn't even compiled yet. | |
20016 | ||
20017 | *Steve Henson* | |
20018 | ||
20019 | * Continuing patches for GeneralizedTime. Fix up certificate and CRL | |
20020 | ASN1 to use ASN1_TIME and modify print routines to use ASN1_TIME_print. | |
20021 | Removed the versions check from X509 routines when loading extensions: | |
20022 | this allows certain broken certificates that don't set the version | |
20023 | properly to be processed. | |
20024 | ||
20025 | *Steve Henson* | |
20026 | ||
20027 | * Deal with irritating shit to do with dependencies, in YAAHW (Yet Another | |
20028 | Ad Hoc Way) - Makefile.ssls now all contain local dependencies, which | |
20029 | can still be regenerated with "make depend". | |
20030 | ||
20031 | *Ben Laurie* | |
20032 | ||
20033 | * Spelling mistake in C version of CAST-128. | |
20034 | ||
20035 | *Ben Laurie, reported by Jeremy Hylton <jeremy@cnri.reston.va.us>* | |
20036 | ||
20037 | * Changes to the error generation code. The perl script err-code.pl | |
20038 | now reads in the old error codes and retains the old numbers, only | |
20039 | adding new ones if necessary. It also only changes the .err files if new | |
20040 | codes are added. The makefiles have been modified to only insert errors | |
20041 | when needed (to avoid needlessly modifying header files). This is done | |
20042 | by only inserting errors if the .err file is newer than the auto generated | |
20043 | C file. To rebuild all the error codes from scratch (the old behaviour) | |
20044 | either modify crypto/Makefile.ssl to pass the -regen flag to err_code.pl | |
20045 | or delete all the .err files. | |
20046 | ||
20047 | *Steve Henson* | |
20048 | ||
20049 | * CAST-128 was incorrectly implemented for short keys. The C version has | |
20050 | been fixed, but is untested. The assembler versions are also fixed, but | |
20051 | new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing | |
20052 | to regenerate it if needed. | |
20053 | *Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun | |
20054 | Hagino <itojun@kame.net>* | |
20055 | ||
20056 | * File was opened incorrectly in randfile.c. | |
20057 | ||
20058 | *Ulf Möller <ulf@fitug.de>* | |
20059 | ||
20060 | * Beginning of support for GeneralizedTime. d2i, i2d, check and print | |
20061 | functions. Also ASN1_TIME suite which is a CHOICE of UTCTime or | |
20062 | GeneralizedTime. ASN1_TIME is the proper type used in certificates et | |
20063 | al: it's just almost always a UTCTime. Note this patch adds new error | |
20064 | codes so do a "make errors" if there are problems. | |
20065 | ||
20066 | *Steve Henson* | |
20067 | ||
20068 | * Correct Linux 1 recognition in config. | |
20069 | ||
20070 | *Ulf Möller <ulf@fitug.de>* | |
20071 | ||
20072 | * Remove pointless MD5 hash when using DSA keys in ca. | |
20073 | ||
20074 | *Anonymous <nobody@replay.com>* | |
20075 | ||
20076 | * Generate an error if given an empty string as a cert directory. Also | |
20077 | generate an error if handed NULL (previously returned 0 to indicate an | |
20078 | error, but didn't set one). | |
20079 | ||
20080 | *Ben Laurie, reported by Anonymous <nobody@replay.com>* | |
20081 | ||
20082 | * Add prototypes to SSL methods. Make SSL_write's buffer const, at last. | |
20083 | ||
20084 | *Ben Laurie* | |
20085 | ||
20086 | * Fix the dummy function BN_ref_mod_exp() in rsaref.c to have the correct | |
20087 | parameters. This was causing a warning which killed off the Win32 compile. | |
20088 | ||
20089 | *Steve Henson* | |
20090 | ||
20091 | * Remove C++ style comments from crypto/bn/bn_local.h. | |
20092 | ||
20093 | *Neil Costigan <neil.costigan@celocom.com>* | |
20094 | ||
20095 | * The function OBJ_txt2nid was broken. It was supposed to return a nid | |
20096 | based on a text string, looking up short and long names and finally | |
20097 | "dot" format. The "dot" format stuff didn't work. Added new function | |
20098 | OBJ_txt2obj to do the same but return an ASN1_OBJECT and rewrote | |
20099 | OBJ_txt2nid to use it. OBJ_txt2obj can also return objects even if the | |
20100 | OID is not part of the table. | |
20101 | ||
20102 | *Steve Henson* | |
20103 | ||
20104 | * Add prototypes to X509 lookup/verify methods, fixing a bug in | |
20105 | X509_LOOKUP_by_alias(). | |
20106 | ||
20107 | *Ben Laurie* | |
20108 | ||
20109 | * Sort openssl functions by name. | |
20110 | ||
20111 | *Ben Laurie* | |
20112 | ||
ec2bfb7d | 20113 | * Get the `gendsa` command working and add it to the `list` command. Remove |
5f8e6c50 DMSP |
20114 | encryption from sample DSA keys (in case anyone is interested the password |
20115 | was "1234"). | |
20116 | ||
20117 | *Steve Henson* | |
20118 | ||
257e9d03 | 20119 | * Make *all* `*_free` functions accept a NULL pointer. |
5f8e6c50 DMSP |
20120 | |
20121 | *Frans Heymans <fheymans@isaserver.be>* | |
20122 | ||
20123 | * If a DH key is generated in s3_srvr.c, don't blow it by trying to use | |
20124 | NULL pointers. | |
20125 | ||
20126 | *Anonymous <nobody@replay.com>* | |
20127 | ||
20128 | * s_server should send the CAfile as acceptable CAs, not its own cert. | |
20129 | ||
20130 | *Bodo Moeller <3moeller@informatik.uni-hamburg.de>* | |
20131 | ||
ec2bfb7d | 20132 | * Don't blow it for numeric `-newkey` arguments to `apps/req`. |
5f8e6c50 DMSP |
20133 | |
20134 | *Bodo Moeller <3moeller@informatik.uni-hamburg.de>* | |
20135 | ||
20136 | * Temp key "for export" tests were wrong in s3_srvr.c. | |
20137 | ||
20138 | *Anonymous <nobody@replay.com>* | |
20139 | ||
20140 | * Add prototype for temp key callback functions | |
20141 | SSL_CTX_set_tmp_{rsa,dh}_callback(). | |
20142 | ||
20143 | *Ben Laurie* | |
20144 | ||
20145 | * Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and | |
20146 | DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey(). | |
20147 | ||
20148 | *Steve Henson* | |
20149 | ||
20150 | * X509_name_add_entry() freed the wrong thing after an error. | |
20151 | ||
20152 | *Arne Ansper <arne@ats.cyber.ee>* | |
20153 | ||
20154 | * rsa_eay.c would attempt to free a NULL context. | |
20155 | ||
20156 | *Arne Ansper <arne@ats.cyber.ee>* | |
20157 | ||
20158 | * BIO_s_socket() had a broken should_retry() on Windoze. | |
20159 | ||
20160 | *Arne Ansper <arne@ats.cyber.ee>* | |
20161 | ||
20162 | * BIO_f_buffer() didn't pass on BIO_CTRL_FLUSH. | |
20163 | ||
20164 | *Arne Ansper <arne@ats.cyber.ee>* | |
20165 | ||
20166 | * Make sure the already existing X509_STORE->depth variable is initialized | |
20167 | in X509_STORE_new(), but document the fact that this variable is still | |
20168 | unused in the certificate verification process. | |
20169 | ||
20170 | *Ralf S. Engelschall* | |
20171 | ||
ec2bfb7d | 20172 | * Fix the various library and `apps/` files to free up pkeys obtained from |
5f8e6c50 DMSP |
20173 | X509_PUBKEY_get() et al. Also allow x509.c to handle netscape extensions. |
20174 | ||
20175 | *Steve Henson* | |
20176 | ||
20177 | * Fix reference counting in X509_PUBKEY_get(). This makes | |
20178 | demos/maurice/example2.c work, amongst others, probably. | |
20179 | ||
20180 | *Steve Henson and Ben Laurie* | |
20181 | ||
ec2bfb7d | 20182 | * First cut of a cleanup for `apps/`. First the `ssleay` program is now named |
257e9d03 | 20183 | `openssl` and second, the shortcut symlinks for the `openssl <command>` |
5f8e6c50 | 20184 | are no longer created. This way we have a single and consistent command |
257e9d03 | 20185 | line interface `openssl <command>`, similar to `cvs <command>`. |
5f8e6c50 DMSP |
20186 | |
20187 | *Ralf S. Engelschall, Paul Sutton and Ben Laurie* | |
20188 | ||
20189 | * ca.c: move test for DSA keys inside #ifndef NO_DSA. Make pubkey | |
20190 | BIT STRING wrapper always have zero unused bits. | |
20191 | ||
20192 | *Steve Henson* | |
20193 | ||
20194 | * Add CA.pl, perl version of CA.sh, add extended key usage OID. | |
20195 | ||
20196 | *Steve Henson* | |
20197 | ||
20198 | * Make the top-level INSTALL documentation easier to understand. | |
20199 | ||
20200 | *Paul Sutton* | |
20201 | ||
20202 | * Makefiles updated to exit if an error occurs in a sub-directory | |
20203 | make (including if user presses ^C) [Paul Sutton] | |
20204 | ||
20205 | * Make Montgomery context stuff explicit in RSA data structure. | |
20206 | ||
20207 | *Ben Laurie* | |
20208 | ||
20209 | * Fix build order of pem and err to allow for generated pem.h. | |
20210 | ||
20211 | *Ben Laurie* | |
20212 | ||
20213 | * Fix renumbering bug in X509_NAME_delete_entry(). | |
20214 | ||
20215 | *Ben Laurie* | |
20216 | ||
20217 | * Enhanced the err-ins.pl script so it makes the error library number | |
20218 | global and can add a library name. This is needed for external ASN1 and | |
20219 | other error libraries. | |
20220 | ||
20221 | *Steve Henson* | |
20222 | ||
20223 | * Fixed sk_insert which never worked properly. | |
20224 | ||
20225 | *Steve Henson* | |
20226 | ||
20227 | * Fix ASN1 macros so they can handle indefinite length constructed | |
20228 | EXPLICIT tags. Some non standard certificates use these: they can now | |
20229 | be read in. | |
20230 | ||
20231 | *Steve Henson* | |
20232 | ||
20233 | * Merged the various old/obsolete SSLeay documentation files (doc/xxx.doc) | |
20234 | into a single doc/ssleay.txt bundle. This way the information is still | |
20235 | preserved but no longer messes up this directory. Now it's new room for | |
20236 | the new set of documentation files. | |
20237 | ||
20238 | *Ralf S. Engelschall* | |
20239 | ||
20240 | * SETs were incorrectly DER encoded. This was a major pain, because they | |
20241 | shared code with SEQUENCEs, which aren't coded the same. This means that | |
20242 | almost everything to do with SETs or SEQUENCEs has either changed name or | |
20243 | number of arguments. | |
20244 | ||
20245 | *Ben Laurie, based on a partial fix by GP Jayan <gp@nsj.co.jp>* | |
20246 | ||
20247 | * Fix test data to work with the above. | |
20248 | ||
20249 | *Ben Laurie* | |
20250 | ||
20251 | * Fix the RSA header declarations that hid a bug I fixed in 0.9.0b but | |
20252 | was already fixed by Eric for 0.9.1 it seems. | |
20253 | ||
20254 | *Ben Laurie - pointed out by Ulf Möller <ulf@fitug.de>* | |
20255 | ||
20256 | * Autodetect FreeBSD3. | |
20257 | ||
20258 | *Ben Laurie* | |
20259 | ||
20260 | * Fix various bugs in Configure. This affects the following platforms: | |
20261 | nextstep | |
20262 | ncr-scde | |
20263 | unixware-2.0 | |
20264 | unixware-2.0-pentium | |
20265 | sco5-cc. | |
20266 | ||
20267 | *Ben Laurie* | |
20268 | ||
20269 | * Eliminate generated files from CVS. Reorder tests to regenerate files | |
20270 | before they are needed. | |
20271 | ||
20272 | *Ben Laurie* | |
20273 | ||
20274 | * Generate Makefile.ssl from Makefile.org (to keep CVS happy). | |
20275 | ||
20276 | *Ben Laurie* | |
20277 | ||
257e9d03 | 20278 | ### Changes between 0.9.1b and 0.9.1c [23-Dec-1998] |
5f8e6c50 DMSP |
20279 | |
20280 | * Added OPENSSL_VERSION_NUMBER to crypto/crypto.h and | |
20281 | changed SSLeay to OpenSSL in version strings. | |
20282 | ||
20283 | *Ralf S. Engelschall* | |
20284 | ||
20285 | * Some fixups to the top-level documents. | |
20286 | ||
20287 | *Paul Sutton* | |
20288 | ||
20289 | * Fixed the nasty bug where rsaref.h was not found under compile-time | |
20290 | because the symlink to include/ was missing. | |
20291 | ||
20292 | *Ralf S. Engelschall* | |
20293 | ||
20294 | * Incorporated the popular no-RSA/DSA-only patches | |
a63fa5f7 | 20295 | which allow to compile an RSA-free SSLeay. |
5f8e6c50 DMSP |
20296 | |
20297 | *Andrew Cooke / Interrader Ldt., Ralf S. Engelschall* | |
20298 | ||
257e9d03 | 20299 | * Fixed nasty rehash problem under `make -f Makefile.ssl links` |
5f8e6c50 DMSP |
20300 | when "ssleay" is still not found. |
20301 | ||
20302 | *Ralf S. Engelschall* | |
20303 | ||
20304 | * Added more platforms to Configure: Cray T3E, HPUX 11, | |
20305 | ||
20306 | *Ralf S. Engelschall, Beckmann <beckman@acl.lanl.gov>* | |
20307 | ||
20308 | * Updated the README file. | |
20309 | ||
20310 | *Ralf S. Engelschall* | |
20311 | ||
20312 | * Added various .cvsignore files in the CVS repository subdirs | |
20313 | to make a "cvs update" really silent. | |
20314 | ||
20315 | *Ralf S. Engelschall* | |
20316 | ||
20317 | * Recompiled the error-definition header files and added | |
20318 | missing symbols to the Win32 linker tables. | |
20319 | ||
20320 | *Ralf S. Engelschall* | |
20321 | ||
20322 | * Cleaned up the top-level documents; | |
20323 | o new files: CHANGES and LICENSE | |
20324 | o merged VERSION, HISTORY* and README* files a CHANGES.SSLeay | |
20325 | o merged COPYRIGHT into LICENSE | |
20326 | o removed obsolete TODO file | |
20327 | o renamed MICROSOFT to INSTALL.W32 | |
20328 | ||
20329 | *Ralf S. Engelschall* | |
20330 | ||
20331 | * Removed dummy files from the 0.9.1b source tree: | |
20332 | crypto/asn1/x crypto/bio/cd crypto/bio/fg crypto/bio/grep crypto/bio/vi | |
20333 | crypto/bn/asm/......add.c crypto/bn/asm/a.out crypto/dsa/f crypto/md5/f | |
20334 | crypto/pem/gmon.out crypto/perlasm/f crypto/pkcs7/build crypto/rsa/f | |
20335 | crypto/sha/asm/f crypto/threads/f ms/zzz ssl/f ssl/f.mak test/f | |
20336 | util/f.mak util/pl/f util/pl/f.mak crypto/bf/bf_locl.old apps/f | |
20337 | ||
20338 | *Ralf S. Engelschall* | |
20339 | ||
20340 | * Added various platform portability fixes. | |
20341 | ||
20342 | *Mark J. Cox* | |
20343 | ||
20344 | * The Genesis of the OpenSSL rpject: | |
20345 | We start with the latest (unreleased) SSLeay version 0.9.1b which Eric A. | |
20346 | Young and Tim J. Hudson created while they were working for C2Net until | |
20347 | summer 1998. | |
20348 | ||
20349 | *The OpenSSL Project* | |
20350 | ||
257e9d03 | 20351 | ### Changes between 0.9.0b and 0.9.1b [not released] |
5f8e6c50 DMSP |
20352 | |
20353 | * Updated a few CA certificates under certs/ | |
20354 | ||
20355 | *Eric A. Young* | |
20356 | ||
20357 | * Changed some BIGNUM api stuff. | |
20358 | ||
20359 | *Eric A. Young* | |
20360 | ||
20361 | * Various platform ports: OpenBSD, Ultrix, IRIX 64bit, NetBSD, | |
20362 | DGUX x86, Linux Alpha, etc. | |
20363 | ||
20364 | *Eric A. Young* | |
20365 | ||
20366 | * New COMP library [crypto/comp/] for SSL Record Layer Compression: | |
20367 | RLE (dummy implemented) and ZLIB (really implemented when ZLIB is | |
20368 | available). | |
20369 | ||
20370 | *Eric A. Young* | |
20371 | ||
20372 | * Add -strparse option to asn1pars program which parses nested | |
20373 | binary structures | |
20374 | ||
20375 | *Dr Stephen Henson <shenson@bigfoot.com>* | |
20376 | ||
20377 | * Added "oid_file" to ssleay.cnf for "ca" and "req" programs. | |
20378 | ||
20379 | *Eric A. Young* | |
20380 | ||
20381 | * DSA fix for "ca" program. | |
20382 | ||
20383 | *Eric A. Young* | |
20384 | ||
20385 | * Added "-genkey" option to "dsaparam" program. | |
20386 | ||
20387 | *Eric A. Young* | |
20388 | ||
20389 | * Added RIPE MD160 (rmd160) message digest. | |
20390 | ||
20391 | *Eric A. Young* | |
20392 | ||
20393 | * Added -a (all) option to "ssleay version" command. | |
20394 | ||
20395 | *Eric A. Young* | |
20396 | ||
20397 | * Added PLATFORM define which is the id given to Configure. | |
20398 | ||
20399 | *Eric A. Young* | |
20400 | ||
20401 | * Added MemCheck_XXXX functions to crypto/mem.c for memory checking. | |
20402 | ||
20403 | *Eric A. Young* | |
20404 | ||
20405 | * Extended the ASN.1 parser routines. | |
20406 | ||
20407 | *Eric A. Young* | |
20408 | ||
20409 | * Extended BIO routines to support REUSEADDR, seek, tell, etc. | |
20410 | ||
20411 | *Eric A. Young* | |
20412 | ||
20413 | * Added a BN_CTX to the BN library. | |
20414 | ||
20415 | *Eric A. Young* | |
20416 | ||
20417 | * Fixed the weak key values in DES library | |
20418 | ||
20419 | *Eric A. Young* | |
20420 | ||
20421 | * Changed API in EVP library for cipher aliases. | |
20422 | ||
20423 | *Eric A. Young* | |
20424 | ||
20425 | * Added support for RC2/64bit cipher. | |
20426 | ||
20427 | *Eric A. Young* | |
20428 | ||
20429 | * Converted the lhash library to the crypto/mem.c functions. | |
20430 | ||
20431 | *Eric A. Young* | |
20432 | ||
20433 | * Added more recognized ASN.1 object ids. | |
20434 | ||
20435 | *Eric A. Young* | |
20436 | ||
20437 | * Added more RSA padding checks for SSL/TLS. | |
20438 | ||
20439 | *Eric A. Young* | |
20440 | ||
20441 | * Added BIO proxy/filter functionality. | |
20442 | ||
20443 | *Eric A. Young* | |
20444 | ||
20445 | * Added extra_certs to SSL_CTX which can be used | |
20446 | send extra CA certificates to the client in the CA cert chain sending | |
20447 | process. It can be configured with SSL_CTX_add_extra_chain_cert(). | |
20448 | ||
20449 | *Eric A. Young* | |
20450 | ||
20451 | * Now Fortezza is denied in the authentication phase because | |
20452 | this is key exchange mechanism is not supported by SSLeay at all. | |
20453 | ||
20454 | *Eric A. Young* | |
20455 | ||
20456 | * Additional PKCS1 checks. | |
20457 | ||
20458 | *Eric A. Young* | |
20459 | ||
20460 | * Support the string "TLSv1" for all TLS v1 ciphers. | |
20461 | ||
20462 | *Eric A. Young* | |
20463 | ||
20464 | * Added function SSL_get_ex_data_X509_STORE_CTX_idx() which gives the | |
20465 | ex_data index of the SSL context in the X509_STORE_CTX ex_data. | |
20466 | ||
20467 | *Eric A. Young* | |
20468 | ||
20469 | * Fixed a few memory leaks. | |
20470 | ||
20471 | *Eric A. Young* | |
20472 | ||
20473 | * Fixed various code and comment typos. | |
20474 | ||
20475 | *Eric A. Young* | |
20476 | ||
20477 | * A minor bug in ssl/s3_clnt.c where there would always be 4 0 | |
20478 | bytes sent in the client random. | |
20479 | ||
20480 | *Edward Bishop <ebishop@spyglass.com>* | |
44652c16 | 20481 | |
44652c16 DMSP |
20482 | <!-- Links --> |
20483 | ||
0873e6f6 | 20484 | [CVE-2024-0727]: https://www.openssl.org/news/vulnerabilities.html#CVE-2024-0727 |
38b2508f | 20485 | [CVE-2023-6237]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-6237 |
858c7bc2 | 20486 | [CVE-2023-6129]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-6129 |
4d4657cb | 20487 | [CVE-2023-5678]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-5678 |
1e6e682a | 20488 | [CVE-2023-5363]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-5363 |
0be7510f | 20489 | [CVE-2023-4807]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-4807 |
4b297628 | 20490 | [CVE-2023-3817]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-3817 |
4ec53ad6 | 20491 | [CVE-2023-3446]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-3446 |
1e398bec | 20492 | [CVE-2023-2975]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-2975 |
18f82df5 | 20493 | [RFC 2578 (STD 58), section 3.5]: https://datatracker.ietf.org/doc/html/rfc2578#section-3.5 |
d63b3e79 | 20494 | [CVE-2023-2650]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-2650 |
72dfe465 | 20495 | [CVE-2023-1255]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-1255 |
5ab3f71a | 20496 | [CVE-2023-0466]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0466 |
986f9a67 MC |
20497 | [CVE-2023-0465]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0465 |
20498 | [CVE-2023-0464]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0464 | |
5f14b5bc TM |
20499 | [CVE-2023-0401]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0401 |
20500 | [CVE-2023-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0286 | |
20501 | [CVE-2023-0217]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0217 | |
20502 | [CVE-2023-0216]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0216 | |
20503 | [CVE-2023-0215]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0215 | |
20504 | [CVE-2022-4450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4450 | |
20505 | [CVE-2022-4304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4304 | |
20506 | [CVE-2022-4203]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4203 | |
20507 | [CVE-2022-3996]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-3996 | |
20508 | [CVE-2022-2274]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-2274 | |
1472127d | 20509 | [CVE-2022-2097]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-2097 |
1e13198f | 20510 | [CVE-2020-1971]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1971 |
6ffc3127 | 20511 | [CVE-2020-1967]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1967 |
44652c16 DMSP |
20512 | [CVE-2019-1563]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1563 |
20513 | [CVE-2019-1559]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1559 | |
20514 | [CVE-2019-1552]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1552 | |
20515 | [CVE-2019-1551]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1551 | |
20516 | [CVE-2019-1549]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1549 | |
20517 | [CVE-2019-1547]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1547 | |
20518 | [CVE-2019-1543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1543 | |
20519 | [CVE-2018-5407]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-5407 | |
20520 | [CVE-2018-0739]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0739 | |
20521 | [CVE-2018-0737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0737 | |
20522 | [CVE-2018-0735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0735 | |
20523 | [CVE-2018-0734]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0734 | |
20524 | [CVE-2018-0733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0733 | |
20525 | [CVE-2018-0732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0732 | |
20526 | [CVE-2017-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3738 | |
20527 | [CVE-2017-3737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3737 | |
20528 | [CVE-2017-3736]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3736 | |
20529 | [CVE-2017-3735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3735 | |
20530 | [CVE-2017-3733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3733 | |
20531 | [CVE-2017-3732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3732 | |
20532 | [CVE-2017-3731]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3731 | |
20533 | [CVE-2017-3730]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3730 | |
20534 | [CVE-2016-7055]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7055 | |
20535 | [CVE-2016-7054]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7054 | |
20536 | [CVE-2016-7053]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7053 | |
20537 | [CVE-2016-7052]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7052 | |
20538 | [CVE-2016-6309]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6309 | |
20539 | [CVE-2016-6308]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6308 | |
20540 | [CVE-2016-6307]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6307 | |
20541 | [CVE-2016-6306]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6306 | |
20542 | [CVE-2016-6305]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6305 | |
20543 | [CVE-2016-6304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6304 | |
20544 | [CVE-2016-6303]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6303 | |
20545 | [CVE-2016-6302]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6302 | |
20546 | [CVE-2016-2183]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2183 | |
20547 | [CVE-2016-2182]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2182 | |
20548 | [CVE-2016-2181]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2181 | |
20549 | [CVE-2016-2180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2180 | |
20550 | [CVE-2016-2179]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2179 | |
20551 | [CVE-2016-2178]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2178 | |
20552 | [CVE-2016-2177]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2177 | |
20553 | [CVE-2016-2176]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2176 | |
20554 | [CVE-2016-2109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2109 | |
20555 | [CVE-2016-2107]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2107 | |
20556 | [CVE-2016-2106]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2106 | |
20557 | [CVE-2016-2105]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2105 | |
20558 | [CVE-2016-0800]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0800 | |
20559 | [CVE-2016-0799]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0799 | |
20560 | [CVE-2016-0798]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0798 | |
20561 | [CVE-2016-0797]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0797 | |
20562 | [CVE-2016-0705]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0705 | |
20563 | [CVE-2016-0702]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0702 | |
20564 | [CVE-2016-0701]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0701 | |
20565 | [CVE-2015-3197]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3197 | |
20566 | [CVE-2015-3196]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3196 | |
20567 | [CVE-2015-3195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3195 | |
20568 | [CVE-2015-3194]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3194 | |
20569 | [CVE-2015-3193]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3193 | |
20570 | [CVE-2015-1793]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1793 | |
20571 | [CVE-2015-1792]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1792 | |
20572 | [CVE-2015-1791]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1791 | |
20573 | [CVE-2015-1790]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1790 | |
20574 | [CVE-2015-1789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1789 | |
20575 | [CVE-2015-1788]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1788 | |
20576 | [CVE-2015-1787]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1787 | |
20577 | [CVE-2015-0293]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0293 | |
20578 | [CVE-2015-0291]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0291 | |
20579 | [CVE-2015-0290]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0290 | |
20580 | [CVE-2015-0289]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0289 | |
20581 | [CVE-2015-0288]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0288 | |
20582 | [CVE-2015-0287]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0287 | |
20583 | [CVE-2015-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0286 | |
20584 | [CVE-2015-0285]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0285 | |
20585 | [CVE-2015-0209]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0209 | |
20586 | [CVE-2015-0208]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0208 | |
20587 | [CVE-2015-0207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0207 | |
20588 | [CVE-2015-0206]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0206 | |
20589 | [CVE-2015-0205]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0205 | |
20590 | [CVE-2015-0204]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0204 | |
20591 | [CVE-2014-8275]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-8275 | |
20592 | [CVE-2014-5139]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-5139 | |
20593 | [CVE-2014-3572]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3572 | |
20594 | [CVE-2014-3571]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3571 | |
20595 | [CVE-2014-3570]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3570 | |
20596 | [CVE-2014-3569]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3569 | |
20597 | [CVE-2014-3568]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3568 | |
20598 | [CVE-2014-3567]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3567 | |
20599 | [CVE-2014-3566]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3566 | |
20600 | [CVE-2014-3513]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3513 | |
20601 | [CVE-2014-3512]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3512 | |
20602 | [CVE-2014-3511]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3511 | |
20603 | [CVE-2014-3510]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3510 | |
20604 | [CVE-2014-3509]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3509 | |
20605 | [CVE-2014-3508]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3508 | |
20606 | [CVE-2014-3507]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3507 | |
20607 | [CVE-2014-3506]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3506 | |
20608 | [CVE-2014-3505]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3505 | |
20609 | [CVE-2014-3470]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3470 | |
20610 | [CVE-2014-0224]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0224 | |
20611 | [CVE-2014-0221]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0221 | |
20612 | [CVE-2014-0195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0195 | |
20613 | [CVE-2014-0160]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0160 | |
20614 | [CVE-2014-0076]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0076 | |
20615 | [CVE-2013-6450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-6450 | |
20616 | [CVE-2013-4353]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-4353 | |
20617 | [CVE-2013-0169]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0169 | |
20618 | [CVE-2013-0166]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0166 | |
20619 | [CVE-2012-2686]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2686 | |
20620 | [CVE-2012-2333]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2333 | |
20621 | [CVE-2012-2110]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2110 | |
20622 | [CVE-2012-0884]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0884 | |
20623 | [CVE-2012-0050]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0050 | |
20624 | [CVE-2012-0027]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0027 | |
20625 | [CVE-2011-4619]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4619 | |
20626 | [CVE-2011-4577]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4577 | |
20627 | [CVE-2011-4576]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4576 | |
20628 | [CVE-2011-4109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4109 | |
20629 | [CVE-2011-4108]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4108 | |
20630 | [CVE-2011-3210]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3210 | |
20631 | [CVE-2011-3207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3207 | |
20632 | [CVE-2011-0014]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-0014 | |
20633 | [CVE-2010-4252]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4252 | |
20634 | [CVE-2010-4180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4180 | |
20635 | [CVE-2010-3864]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-3864 | |
20636 | [CVE-2010-1633]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-1633 | |
20637 | [CVE-2010-0740]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0740 | |
20638 | [CVE-2010-0433]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0433 | |
20639 | [CVE-2009-4355]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-4355 | |
20640 | [CVE-2009-3555]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3555 | |
20641 | [CVE-2009-3245]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3245 | |
20642 | [CVE-2009-1386]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1386 | |
20643 | [CVE-2009-1379]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1379 | |
20644 | [CVE-2009-1378]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1378 | |
20645 | [CVE-2009-1377]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1377 | |
20646 | [CVE-2009-0789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0789 | |
20647 | [CVE-2009-0591]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0591 | |
20648 | [CVE-2009-0590]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0590 | |
20649 | [CVE-2008-5077]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-5077 | |
20650 | [CVE-2008-1678]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1678 | |
20651 | [CVE-2008-1672]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1672 | |
20652 | [CVE-2008-0891]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-0891 | |
20653 | [CVE-2007-5135]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-5135 | |
20654 | [CVE-2007-4995]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-4995 | |
20655 | [CVE-2006-4343]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4343 | |
20656 | [CVE-2006-4339]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4339 | |
20657 | [CVE-2006-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-3738 | |
20658 | [CVE-2006-2940]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2940 | |
20659 | [CVE-2006-2937]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2937 | |
20660 | [CVE-2005-2969]: https://www.openssl.org/news/vulnerabilities.html#CVE-2005-2969 | |
20661 | [CVE-2004-0112]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0112 | |
20662 | [CVE-2004-0079]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0079 | |
20663 | [CVE-2003-0851]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0851 | |
20664 | [CVE-2003-0545]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0545 | |
20665 | [CVE-2003-0544]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0544 | |
20666 | [CVE-2003-0543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0543 | |
20667 | [CVE-2003-0078]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0078 | |
20668 | [CVE-2002-0659]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0659 | |
20669 | [CVE-2002-0657]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0657 | |
20670 | [CVE-2002-0656]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0656 | |
20671 | [CVE-2002-0655]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0655 |