1OpenSSL CHANGES 2=============== 3 4This is a detailed breakdown of significant changes. For a high-level overview 5of changes in each release, see [NEWS.md](./NEWS.md). 6 7For a full list of changes, see the [git commit log][log] and pick the 8appropriate release branch. 9 10 [log]: https://github.com/openssl/openssl/commits/ 11 12OpenSSL Releases 13---------------- 14 15 - [OpenSSL 3.5](#openssl-35) 16 - [OpenSSL 3.4](#openssl-34) 17 - [OpenSSL 3.3](#openssl-33) 18 - [OpenSSL 3.2](#openssl-32) 19 - [OpenSSL 3.1](#openssl-31) 20 - [OpenSSL 3.0](#openssl-30) 21 - [OpenSSL 1.1.1](#openssl-111) 22 - [OpenSSL 1.1.0](#openssl-110) 23 - [OpenSSL 1.0.2](#openssl-102) 24 - [OpenSSL 1.0.1](#openssl-101) 25 - [OpenSSL 1.0.0](#openssl-100) 26 - [OpenSSL 0.9.x](#openssl-09x) 27 28OpenSSL 3.5 29----------- 30 31### Changes between 3.5.3 and 3.5.4 [30 Sep 2025] 32 33 * Fix Out-of-bounds read & write in RFC 3211 KEK Unwrap 34 35 Issue summary: An application trying to decrypt CMS messages encrypted using 36 password based encryption can trigger an out-of-bounds read and write. 37 38 Impact summary: This out-of-bounds read may trigger a crash which leads to 39 Denial of Service for an application. The out-of-bounds write can cause 40 a memory corruption which can have various consequences including 41 a Denial of Service or Execution of attacker-supplied code. 42 43 The issue was reported by Stanislav Fort (Aisle Research). 44 45 ([CVE-2025-9230]) 46 47 *Viktor Dukhovni* 48 49 * Fix Timing side-channel in SM2 algorithm on 64 bit ARM 50 51 Issue summary: A timing side-channel which could potentially allow remote 52 recovery of the private key exists in the SM2 algorithm implementation on 53 64 bit ARM platforms. 54 55 Impact summary: A timing side-channel in SM2 signature computations on 56 64 bit ARM platforms could allow recovering the private key by an attacker. 57 58 The issue was reported by Stanislav Fort (Aisle Research). 59 60 ([CVE-2025-9231]) 61 62 *Stanislav Fort and Tomáš Mráz* 63 64 * Fix Out-of-bounds read in HTTP client no_proxy handling 65 66 Issue summary: An application using the OpenSSL HTTP client API functions 67 may trigger an out-of-bounds read if the "no_proxy" environment variable is 68 set and the host portion of the authority component of the HTTP URL is an 69 IPv6 address. 70 71 Impact summary: An out-of-bounds read can trigger a crash which leads to 72 Denial of Service for an application. 73 74 The issue was reported by Stanislav Fort (Aisle Research). 75 76 ([CVE-2025-9232]) 77 78 *Stanislav Fort* 79 80 * The FIPS provider no longer performs a PCT on key import for ECX keys 81 (that was introduced in 3.5.2), following the latest update 82 on that requirement in FIPS 140-3 IG 10.3.A additional comment 1. 83 84 *Eugene Syromiatnikov* 85 86 * Fixed the length of the ASN.1 sequence for the SM3 digests of RSA-encrypted 87 signatures. 88 89 *Xiao Lou Dong Feng* 90 91 * Reverted the synthesised `OPENSSL_VERSION_NUMBER` change for the release 92 builds, as it broke some exiting applications that relied on the previous 93 3.x semantics, as documented in `OpenSSL_version(3)`. 94 95 *Richard Levitte* 96 97### Changes between 3.5.2 and 3.5.3 [16 Sep 2025] 98 99 * Avoided a potential race condition introduced in 3.5.1, where 100 `OSSL_STORE_CTX` kept open during lookup while potentially being used 101 by multiple threads simultaneously, that could lead to potential crashes 102 when multiple concurrent TLS connections are served. 103 104 *Matt Caswell* 105 106 * The FIPS provider no longer performs a PCT on key import for RSA, DH, 107 and EC keys (that was introduced in 3.5.2), following the latest update 108 on that requirement in FIPS 140-3 IG 10.3.A additional comment 1. 109 110 *Dr Paul Dale* 111 112 * Secure memory allocation calls are no longer used for HMAC keys. 113 114 *Dr Paul Dale* 115 116 * `openssl req` no longer generates certificates with an empty extension list 117 when SKID/AKID are set to `none` during generation. 118 119 *David Benjamin* 120 121 * The man page date is now derived from the release date provided 122 in `VERSION.dat` and not the current date for the released builds. 123 124 *Enji Cooper* 125 126 * Hardened the provider implementation of the RSA public key "encrypt" 127 operation to add a missing check that the caller-indicated output buffer 128 size is at least as large as the byte count of the RSA modulus. The issue 129 was reported by Arash Ale Ebrahim from SYSPWN. 130 131 This operation is typically invoked via `EVP_PKEY_encrypt(3)`. Callers that 132 in fact provide a sufficiently large buffer, but fail to correctly indicate 133 its size may now encounter unexpected errors. In applications that attempt 134 RSA public encryption into a buffer that is too small, an out-of-bounds 135 write is now avoided and an error is reported instead. 136 137 *Viktor Dukhovni* 138 139 * Added FIPS 140-3 PCT on DH key generation. 140 141 *Nikola Pajkovsky* 142 143 * Fixed the synthesised `OPENSSL_VERSION_NUMBER`. 144 145 *Richard Levitte* 146 147### Changes between 3.5.1 and 3.5.2 [5 Aug 2025] 148 149 * The FIPS provider now performs a PCT on key import for RSA, EC and ECX. 150 This is mandated by FIPS 140-3 IG 10.3.A additional comment 1. 151 152 *Dr Paul Dale* 153 154### Changes between 3.5.0 and 3.5.1 [1 Jul 2025] 155 156 * Fix x509 application adds trusted use instead of rejected use. 157 158 Issue summary: Use of -addreject option with the openssl x509 application adds 159 a trusted use instead of a rejected use for a certificate. 160 161 Impact summary: If a user intends to make a trusted certificate rejected for 162 a particular use it will be instead marked as trusted for that use. 163 164 ([CVE-2025-4575]) 165 166 *Tomas Mraz* 167 168 * Aligned the behaviour of TLS and DTLS in the event of a no_renegotiation 169 alert being received. Older versions of OpenSSL failed with DTLS if a 170 no_renegotiation alert was received. All versions of OpenSSL do this for TLS. 171 From 3.2 a bug was exposed that meant that DTLS ignored no_rengotiation. We 172 have now restored the original behaviour and brought DTLS back into line with 173 TLS. 174 175 *Matt Caswell* 176 177### Changes between 3.4 and 3.5.0 [8 Apr 2025] 178 179 * Added server side support for QUIC 180 181 *Hugo Landau, Matt Caswell, Tomáš Mráz, Neil Horman, Sasha Nedvedicky, Andrew Dinh* 182 183 * Tolerate PKCS#8 version 2 with optional public keys. The public key data 184 is currently ignored. 185 186 *Viktor Dukhovni* 187 188 * Signature schemes without an explicit signing digest in CMS are now supported. 189 Examples of such schemes are ED25519 or ML-DSA. 190 191 *Michael Schroeder* 192 193 * The TLS Signature algorithms defaults now include all three ML-DSA variants as 194 first algorithms. 195 196 *Viktor Dukhovni* 197 198 * Added a `no-tls-deprecated-ec` configuration option. 199 200 The `no-tls-deprecated-ec` option disables support for TLS elliptic curve 201 groups deprecated in RFC8422 at compile time. This does not affect use of 202 the associated curves outside TLS. By default support for these groups is 203 compiled in, but, as before, they are not included in the default run-time 204 list of supported groups. 205 206 With the `enable-tls-deprecated-ec` option these TLS groups remain enabled at 207 compile time even if the default configuration is changed, provided the 208 underlying EC curves remain implemented. 209 210 *Viktor Dukhovni* 211 212 * Added new API to enable 0-RTT for 3rd party QUIC stacks. 213 214 *Cheng Zhang* 215 216 * Added support for a new callback registration `SSL_CTX_set_new_pending_conn_cb`, 217 which allows for application notification of new connection SSL object 218 creation, which occurs independently of calls to `SSL_accept_connection()`. 219 Note: QUIC objects passed through SSL callbacks should not have their state 220 mutated via calls back into the SSL api until such time as they have been 221 received via a call to `SSL_accept_connection()`. 222 223 *Neil Horman* 224 225 * Add SLH-DSA as specified in FIPS 205. 226 227 *Shane Lontis and Dr Paul Dale* 228 229 * ML-KEM as specified in FIPS 203. 230 231 Based on the original implementation in BoringSSL, ported from C++ to C, 232 refactored, and integrated into the OpenSSL default and FIPS providers. 233 Including also the X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024 234 TLS hybrid key post-quantum/classical key agreement schemes. 235 236 *Michael Baentsch, Viktor Dukhovni, Shane Lontis and Paul Dale* 237 238 * Add ML-DSA as specified in FIPS 204. 239 240 The base code was derived from BoringSSL C++ code. 241 242 *Shane Lontis, Viktor Dukhovni and Paul Dale* 243 244 * Added new API calls to enable 3rd party QUIC stacks to use the OpenSSL TLS 245 implementation. 246 247 *Matt Caswell* 248 249 * The default DRBG implementations have been changed to prefer to fetch 250 algorithm implementations from the default provider (the provider the 251 DRBG implementation is built in) regardless of the default properties 252 set in the configuration file. The code will still fallback to find 253 an implementation, as done previously, if needed. 254 255 *Simo Sorce* 256 257 * Initial support for opaque symmetric keys objects (EVP_SKEY). These 258 replace the ad-hoc byte arrays that are pervasive throughout the library. 259 260 *Dmitry Belyavskiy and Simo Sorce* 261 262 * The default TLS group list setting is now set to: 263 `?*X25519MLKEM768 / ?*X25519:?secp256r1 / ?X448:?secp384r1:?secp521r1 / ?ffdhe2048:?ffdhe3072` 264 265 This means two key shares (X25519MLKEM768 and X25519) will be sent by 266 default by the TLS client. GOST groups and FFDHE groups larger than 3072 267 bits are no longer enabled by default. 268 269 The group names in the group list setting are now also case insensitive. 270 271 *Viktor Dukhovni* 272 273 * For TLSv1.3: Add capability for a client to send multiple key shares. 274 Extend the scope of `SSL_OP_CIPHER_SERVER_PREFERENCE` to cover 275 server-side key exchange group selection. 276 277 Extend the server-side key exchange group selection algorithm and related 278 group list syntax to support multiple group priorities, e.g. to prioritize 279 (hybrid-)KEMs. 280 281 *David Kelsey*, *Martin Schmatz* 282 283 * A new random generation API has been introduced which modifies all 284 of the L<RAND_bytes(3)> family of calls so they are routed through a 285 specific named provider instead of being resolved via the normal DRBG 286 chaining. In a future OpenSSL release, this will obsolete RAND_METHOD. 287 288 *Dr Paul Dale* 289 290 * New inline functions were added to support loads and stores of unsigned 291 16-bit, 32-bit and 64-bit integers in either little-endian or big-endian 292 form, regardless of the host byte-order. See the `OPENSSL_load_u16_le(3)` 293 manpage for details. 294 295 *Viktor Dukhovni* 296 297 * All the `BIO_meth_get_*()` functions allowing reuse of the internal OpenSSL 298 BIO method implementations were deprecated. The reuse is unsafe due to 299 dependency on the code of the internal methods not changing. 300 301 *Tomáš Mráz* 302 303 * Support DEFAULT keyword and '-' prefix in `SSL_CTX_set1_groups_list()`. 304 `SSL_CTX_set1_groups_list()` now supports the DEFAULT keyword which sets the 305 available groups to the default selection. The '-' prefix allows the calling 306 application to remove a group from the selection. 307 308 *Frederik Wedel-Heinen* 309 310 * Updated the default encryption cipher for the `req`, `cms`, and `smime` applications 311 from `des-ede3-cbc` to `aes-256-cbc`. 312 313 AES-256 provides a stronger 256-bit key encryption than legacy 3DES. 314 315 *Aditya* 316 317 * Enhanced PKCS#7 inner contents verification. 318 In the `PKCS7_verify()` function, the BIO *indata parameter refers to the 319 signed data if the content is detached from p7. Otherwise, indata should be 320 NULL, and then the signed data must be in p7. 321 322 The previous OpenSSL implementation only supported MIME inner content 323 [RFC 5652, section 5.2]. 324 325 The added functionality now enables support for PKCS#7 inner content 326 [RFC 2315, section 7]. 327 328 *Małgorzata Olszówka* 329 330 * The `-rawin` option of the `pkeyutl` command is now implied (and thus no 331 longer required) when using `-digest` or when signing or verifying with an 332 Ed25519 or Ed448 key. 333 The `-digest` and `-rawin` option may only be given with `-sign` or `verify`. 334 335 *David von Oheimb* 336 337 * `X509_PURPOSE_add()` has been modified 338 to take `sname` instead of `id` as the primary purpose identifier. 339 For its convenient use, `X509_PURPOSE_get_unused_id()` has been added. 340 341 This work was sponsored by Siemens AG. 342 343 *David von Oheimb* 344 345 * Added support for central key generation in CMP. 346 347 This work was sponsored by Siemens AG. 348 349 *Rajeev Ranjan* 350 351 * Optionally allow the FIPS provider to use the `JITTER` entropy source. 352 Note that using this option will require the resulting FIPS provider 353 to undergo entropy source validation [ESV] by the [CMVP], without this 354 the FIPS provider will not be FIPS compliant. Enable this using the 355 configuration option `enable-fips-jitter`. 356 357 *Paul Dale* 358 359 * Extended `OPENSSL_ia32cap` support to accommodate additional `CPUID` 360 feature/capability bits in leaf `0x7` (Extended Feature Flags) as well 361 as leaf `0x24` (Converged Vector ISA). 362 363 *Dan Zimmerman, Alina Elizarova* 364 365 * Cipher pipelining support for provided ciphers with new API functions 366 EVP_CIPHER_can_pipeline(), EVP_CipherPipelineEncryptInit(), 367 EVP_CipherPipelineDecryptInit(), EVP_CipherPipelineUpdate(), 368 and EVP_CipherPipelineFinal(). Cipher pipelining support allows application to 369 submit multiple chunks of data in one cipher update call, thereby allowing the 370 provided implementation to take advantage of parallel computing. There are 371 currently no built-in ciphers that support pipelining. This new API replaces 372 the legacy pipeline API [SSL_CTX_set_max_pipelines](https://docs.openssl.org/3.3/man3/SSL_CTX_set_split_send_fragment/) used with Engines. 373 374 *Ramkumar* 375 376 * Add CMS_NO_SIGNING_TIME flag to CMS_sign(), CMS_add1_signer() 377 378 Previously there was no way to create a CMS SignedData signature without a 379 signing time attribute, because CMS_SignerInfo_sign added it unconditionally. 380 However, there is a use case (PAdES signatures [ETSI EN 319 142-1](https://www.etsi.org/deliver/etsi_en/319100_319199/31914201/01.01.01_60/en_31914201v010101p.pdf) ) 381 where this attribute is not allowed, so a new flag was added to the CMS API 382 that causes this attribute to be omitted at signing time. 383 384 The new `-no_signing_time` option of the `cms` command enables this flag. 385 386 *Juhász Péter* 387 388 * Parallel dual-prime 1024/1536/2048-bit modular exponentiation for 389 AVX_IFMA capable processors (Intel Sierra Forest and its successor). 390 391 This optimization brings performance enhancement, ranging from 1.8 to 2.2 392 times, for the sign/decryption operations of rsaz-2k/3k/4k (`openssl speed rsa`) 393 on the Intel Sierra Forest. 394 395 *Zhiguo Zhou, Wangyang Guo (Intel Corp)* 396 397 * VAES/AVX-512 support for AES-XTS. 398 399 For capable processors (>= Intel Icelake), this provides a 400 vectorized implementation of AES-XTS with a throughput improvement 401 between 1.3x to 2x, depending on the block size. 402 403 *Pablo De Lara Guarch, Dan Pittman* 404 405 * Fixed EVP_DecodeUpdate() to not write padding zeros to the decoded output. 406 407 According to the documentation, for every 4 valid base64 bytes processed 408 (ignoring whitespace, carriage returns and line feeds), EVP_DecodeUpdate() 409 produces 3 bytes of binary output data (except at the end of data 410 terminated with one or two padding characters). However, the function 411 behaved like an EVP_DecodeBlock(). It produced exactly 3 output bytes for 412 every 4 input bytes. Such behaviour could cause writes to a non-allocated 413 output buffer if a user allocates its size based on the documentation and 414 knowing the padding size. 415 416 The fix makes EVP_DecodeUpdate() produce exactly as many output bytes as 417 in the initial non-encoded message. 418 419 *Valerii Krygin* 420 421 * Added support for aAissuingDistributionPoint, allowedAttributeAssignments, 422 timeSpecification, attributeDescriptor, roleSpecCertIdentifier, 423 authorityAttributeIdentifier and attributeMappings X.509v3 extensions. 424 425 *Jonathan M. Wilbur* 426 427 * Added a new CLI option `-provparam` and API functions for setting of 428 provider configuration parameters. 429 430 *Viktor Dukhovni* 431 432 * Added a new trace category for PROVIDER calls and added new tracing calls 433 in provider and algorithm fetching API functions. 434 435 *Neil Horman* 436 437 * Fixed benchmarking for AEAD ciphers in the `openssl speed` utility. 438 439 *Mohammed Alhabib* 440 441 * Added a build configuration option `enable-sslkeylog` for enabling support 442 for SSLKEYLOGFILE environment variable to log TLS connection secrets. 443 444 *Neil Horman* 445 446 * Added EVP_get_default_properties() function to retrieve the current default 447 property query string. 448 449 *Dmitry Belyavskiy* 450 451OpenSSL 3.4 452----------- 453 454### Changes between 3.4.1 and 3.4.2 [xx XXX xxxx] 455 456 * When displaying distinguished names in the openssl application escape control 457 characters by default. 458 459 *Tomáš Mráz* 460 461### Changes between 3.4.0 and 3.4.1 [11 Feb 2025] 462 463 * Fixed RFC7250 handshakes with unauthenticated servers don't abort as expected. 464 465 Clients using RFC7250 Raw Public Keys (RPKs) to authenticate a 466 server may fail to notice that the server was not authenticated, because 467 handshakes don't abort as expected when the SSL_VERIFY_PEER verification mode 468 is set. 469 470 ([CVE-2024-12797]) 471 472 *Viktor Dukhovni* 473 474 * Fixed timing side-channel in ECDSA signature computation. 475 476 There is a timing signal of around 300 nanoseconds when the top word of 477 the inverted ECDSA nonce value is zero. This can happen with significant 478 probability only for some of the supported elliptic curves. In particular 479 the NIST P-521 curve is affected. To be able to measure this leak, the 480 attacker process must either be located in the same physical computer or 481 must have a very fast network connection with low latency. 482 483 ([CVE-2024-13176]) 484 485 *Tomáš Mráz* 486 487 * Reverted the behavior change of CMS_get1_certs() and CMS_get1_crls() 488 that happened in the 3.4.0 release. These functions now return NULL 489 again if there are no certs or crls in the CMS object. 490 491 *Tomáš Mráz* 492 493### Changes between 3.3 and 3.4.0 [22 Oct 2024] 494 495 * For the FIPS provider only, replaced the primary DRBG with a continuous 496 health check module. This also removes the now forbidden DRBG chaining. 497 498 *Paul Dale* 499 500 * Improved base64 BIO correctness and error reporting. 501 502 *Viktor Dukhovni* 503 504 * Added support for directly fetched composite signature algorithms such as 505 RSA-SHA2-256 including new API functions in the EVP_PKEY_sign, 506 EVP_PKEY_verify and EVP_PKEY_verify_recover groups. 507 508 *Richard Levitte* 509 510 * XOF Digest API improvements 511 512 EVP_MD_CTX_get_size() and EVP_MD_CTX_size are macros that were aliased to 513 EVP_MD_get_size which returns a constant value. XOF Digests such as SHAKE 514 have an output size that is not fixed, so calling EVP_MD_get_size() is not 515 sufficent. The existing macros now point to the new function 516 EVP_MD_CTX_get_size_ex() which will retrieve the "size" for a XOF digest, 517 otherwise it falls back to calling EVP_MD_get_size(). Note that the SHAKE 518 implementation did not have a context getter previously, so the "size" will 519 only be able to be retrieved with new providers. 520 521 Also added a EVP_xof() helper. 522 523 *Shane Lontis* 524 525 * Added FIPS indicators to the FIPS provider. 526 527 FIPS 140-3 requires indicators to be used if the FIPS provider allows 528 non-approved algorithms. An algorithm is approved if it passes all 529 required checks such as minimum key size. By default an error will 530 occur if any check fails. For backwards compatibility individual 531 algorithms may override the checks by using either an option in the 532 FIPS configuration OR in code using an algorithm context setter. 533 Overriding the check means that the algorithm is not FIPS compliant. 534 OSSL_INDICATOR_set_callback() can be called to register a callback 535 to log unapproved algorithms. At the end of any algorithm operation 536 the approved status can be queried using an algorithm context getter. 537 FIPS provider configuration options are set using 'openssl fipsinstall'. 538 539 Note that new FIPS 140-3 restrictions have been enforced such as 540 RSA Encryption using PKCS1 padding is no longer approved. 541 Documentation related to the changes can be found on the [fips_module(7)] 542 manual page. 543 544 [fips_module(7)]: https://docs.openssl.org/master/man7/fips_module/#FIPS indicators 545 546 *Shane Lontis, Paul Dale, Po-Hsing Wu and Dimitri John Ledkov* 547 548 * Added support for hardware acceleration for HMAC on S390x architecture. 549 550 *Ingo Franzki* 551 552 * Added debuginfo Makefile target for unix platforms to produce 553 a separate DWARF info file from the corresponding shared libs. 554 555 *Neil Horman* 556 557 * Added support for encapsulation and decapsulation operations in the 558 pkeyutl command. 559 560 *Dmitry Belyavskiy* 561 562 * Added implementation of RFC 9579 (PBMAC1) in PKCS#12. 563 564 *Dmitry Belyavskiy* 565 566 * Add a new random seed source RNG `JITTER` using a statically linked 567 jitterentropy library. 568 569 *Dimitri John Ledkov* 570 571 * Added a feature to retrieve configured TLS signature algorithms, 572 e.g., via the openssl list command. 573 574 *Michael Baentsch* 575 576 * Deprecated TS_VERIFY_CTX_set_* functions and added replacement 577 TS_VERIFY_CTX_set0_* functions with improved semantics. 578 579 *Tobias Erbsland* 580 581 * Redesigned Windows use of OPENSSLDIR/ENGINESDIR/MODULESDIR such that 582 what were formerly build time locations can now be defined at run time 583 with registry keys. See NOTES-WINDOWS.md. 584 585 *Neil Horman* 586 587 * Added options `-not_before` and `-not_after` for explicit setting 588 start and end dates of certificates created with the `req` and `x509` 589 commands. Added the same options also to `ca` command as alias for 590 `-startdate` and `-enddate` options. 591 592 *Stephan Wurm* 593 594 * The X25519 and X448 key exchange implementation in the FIPS provider 595 is unapproved and has `fips=no` property. 596 597 *Tomáš Mráz* 598 599 * SHAKE-128 and SHAKE-256 implementations have no default digest length 600 anymore. That means these algorithms cannot be used with 601 EVP_DigestFinal/_ex() unless the `xoflen` param is set before. 602 603 This change was necessary because the preexisting default lengths were 604 half the size necessary for full collision resistance supported by these 605 algorithms. 606 607 *Tomáš Mráz* 608 609 * Setting `config_diagnostics=1` in the config file will cause errors to 610 be returned from SSL_CTX_new() and SSL_CTX_new_ex() if there is an error 611 in the ssl module configuration. 612 613 *Tomáš Mráz* 614 615 * An empty renegotiate extension will be used in TLS client hellos instead 616 of the empty renegotiation SCSV, for all connections with a minimum TLS 617 version > 1.0. 618 619 *Tim Perry* 620 621 * Added support for integrity-only cipher suites TLS_SHA256_SHA256 and 622 TLS_SHA384_SHA384 in TLS 1.3, as defined in RFC 9150. 623 624 This work was sponsored by Siemens AG. 625 626 *Rajeev Ranjan* 627 628 * Added support for retrieving certificate request templates and CRLs in CMP, 629 with the respective CLI options `-template`, 630 `-crlcert`, `-oldcrl`, `-crlout`, `-crlform>`, and `-rsp_crl`. 631 632 This work was sponsored by Siemens AG. 633 634 *Rajeev Ranjan* 635 636 * Added support for issuedOnBehalfOf, auditIdentity, basicAttConstraints, 637 userNotice, acceptablePrivilegePolicies, acceptableCertPolicies, 638 subjectDirectoryAttributes, associatedInformation, delegatedNameConstraints, 639 holderNameConstraints and targetingInformation X.509v3 extensions. 640 641 *Jonathan M. Wilbur* 642 643 * Added Attribute Certificate (RFC 5755) support. Attribute 644 Certificates can be created, parsed, modified and printed via the 645 public API. There is no command-line tool support at this time. 646 647 *Damian Hobson-Garcia* 648 649 * Added support to build Position Independent Executables (PIE). Configuration 650 option `enable-pie` configures the cflag '-fPIE' and ldflag '-pie' to 651 support Address Space Layout Randomization (ASLR) in the openssl executable, 652 removes reliance on external toolchain configurations. 653 654 *Craig Lorentzen* 655 656 * SSL_SESSION_get_time()/SSL_SESSION_set_time()/SSL_CTX_flush_sessions() have 657 been deprecated in favour of their respective ..._ex() replacement functions 658 which are Y2038-safe. 659 660 *Alexander Kanavin* 661 662 * ECC groups may now customize their initialization to save CPU by using 663 precomputed values. This is used by the P-256 implementation. 664 665 *Watson Ladd* 666 667OpenSSL 3.3 668----------- 669 670### Changes between 3.3.2 and 3.3.3 [xx XXX xxxx] 671 672 * Fixed possible OOB memory access with invalid low-level GF(2^m) elliptic 673 curve parameters. 674 675 Use of the low-level GF(2^m) elliptic curve APIs with untrusted 676 explicit values for the field polynomial can lead to out-of-bounds memory 677 reads or writes. 678 Applications working with "exotic" explicit binary (GF(2^m)) curve 679 parameters, that make it possible to represent invalid field polynomials 680 with a zero constant term, via the above or similar APIs, may terminate 681 abruptly as a result of reading or writing outside of array bounds. Remote 682 code execution cannot easily be ruled out. 683 684 ([CVE-2024-9143]) 685 686 *Viktor Dukhovni* 687 688### Changes between 3.3.1 and 3.3.2 [3 Sep 2024] 689 690 * Fixed possible denial of service in X.509 name checks. 691 692 Applications performing certificate name checks (e.g., TLS clients checking 693 server certificates) may attempt to read an invalid memory address when 694 comparing the expected name with an `otherName` subject alternative name of 695 an X.509 certificate. This may result in an exception that terminates the 696 application program. 697 698 ([CVE-2024-6119]) 699 700 *Viktor Dukhovni* 701 702 * Fixed possible buffer overread in SSL_select_next_proto(). 703 704 Calling the OpenSSL API function SSL_select_next_proto with an empty 705 supported client protocols buffer may cause a crash or memory contents 706 to be sent to the peer. 707 708 ([CVE-2024-5535]) 709 710 *Matt Caswell* 711 712### Changes between 3.3.0 and 3.3.1 [4 Jun 2024] 713 714 * Fixed potential use after free after SSL_free_buffers() is called. 715 716 The SSL_free_buffers function is used to free the internal OpenSSL 717 buffer used when processing an incoming record from the network. 718 The call is only expected to succeed if the buffer is not currently 719 in use. However, two scenarios have been identified where the buffer 720 is freed even when still in use. 721 722 The first scenario occurs where a record header has been received 723 from the network and processed by OpenSSL, but the full record body 724 has not yet arrived. In this case calling SSL_free_buffers will succeed 725 even though a record has only been partially processed and the buffer 726 is still in use. 727 728 The second scenario occurs where a full record containing application 729 data has been received and processed by OpenSSL but the application has 730 only read part of this data. Again a call to SSL_free_buffers will 731 succeed even though the buffer is still in use. 732 733 ([CVE-2024-4741]) 734 735 *Matt Caswell* 736 737 * Fixed an issue where checking excessively long DSA keys or parameters may 738 be very slow. 739 740 Applications that use the functions EVP_PKEY_param_check() or 741 EVP_PKEY_public_check() to check a DSA public key or DSA parameters may 742 experience long delays. Where the key or parameters that are being checked 743 have been obtained from an untrusted source this may lead to a Denial of 744 Service. 745 746 To resolve this issue DSA keys larger than OPENSSL_DSA_MAX_MODULUS_BITS 747 will now fail the check immediately with a DSA_R_MODULUS_TOO_LARGE error 748 reason. 749 750 ([CVE-2024-4603]) 751 752 *Tomáš Mráz* 753 754 * Improved EC/DSA nonce generation routines to avoid bias and timing 755 side channel leaks. 756 757 Thanks to Florian Sieck from Universität zu Lübeck and George Pantelakis 758 and Hubert Kario from Red Hat for reporting the issues. 759 760 *Tomáš Mráz and Paul Dale* 761 762### Changes between 3.2 and 3.3.0 [9 Apr 2024] 763 764 * The `-verify` option to the `openssl crl` and `openssl req` will make 765 the program exit with 1 on failure. 766 767 *Vladimír Kotal* 768 769 * The BIO_get_new_index() function can only be called 127 times before it 770 reaches its upper bound of BIO_TYPE_MASK. It will now correctly return an 771 error of -1 once it is exhausted. Users may need to reserve using this 772 function for cases where BIO_find_type() is required. Either BIO_TYPE_NONE 773 or BIO_get_new_index() can be used to supply a type to BIO_meth_new(). 774 775 *Shane Lontis* 776 777 * Added API functions SSL_SESSION_get_time_ex(), SSL_SESSION_set_time_ex() 778 using time_t which is Y2038 safe on 32 bit systems when 64 bit time 779 is enabled (e.g via setting glibc macro _TIME_BITS=64). 780 781 *Ijtaba Hussain* 782 783 * The d2i_ASN1_GENERALIZEDTIME(), d2i_ASN1_UTCTIME(), ASN1_TIME_check(), and 784 related functions have been augmented to check for a minimum length of 785 the input string, in accordance with ITU-T X.690 section 11.7 and 11.8. 786 787 *Job Snijders* 788 789 * Unknown entries in TLS SignatureAlgorithms, ClientSignatureAlgorithms 790 config options and the respective calls to SSL[_CTX]_set1_sigalgs() and 791 SSL[_CTX]_set1_client_sigalgs() that start with `?` character are 792 ignored and the configuration will still be used. 793 794 Similarly unknown entries that start with `?` character in a TLS 795 Groups config option or set with SSL[_CTX]_set1_groups_list() are ignored 796 and the configuration will still be used. 797 798 In both cases if the resulting list is empty, an error is returned. 799 800 *Tomáš Mráz* 801 802 * The EVP_PKEY_fromdata function has been augmented to allow for the derivation 803 of CRT (Chinese Remainder Theorem) parameters when requested. See the 804 OSSL_PKEY_PARAM_RSA_DERIVE_FROM_PQ param in the EVP_PKEY-RSA documentation. 805 806 *Neil Horman* 807 808 * The activate and soft_load configuration settings for providers in 809 openssl.cnf have been updated to require a value of [1|yes|true|on] 810 (in lower or UPPER case) to enable the setting. Conversely a value 811 of [0|no|false|off] will disable the setting. All other values, or the 812 omission of a value for these settings will result in an error. 813 814 *Neil Horman* 815 816 * Added `-set_issuer` and `-set_subject` options to `openssl x509` to 817 override the Issuer and Subject when creating a certificate. The `-subj` 818 option now is an alias for `-set_subject`. 819 820 *Job Snijders, George Michaelson* 821 822 * OPENSSL_sk_push() and sk_<TYPE>_push() functions now return 0 instead of -1 823 if called with a NULL stack argument. 824 825 *Tomáš Mráz* 826 827 * In `openssl speed`, changed the default hash function used with `hmac` from 828 `md5` to `sha256`. 829 830 *James Muir* 831 832 * Added several new features of CMPv3 defined in RFC 9480 and RFC 9483: 833 - `certProfile` request message header and respective `-profile` CLI option 834 - support for delayed delivery of all types of response messages 835 836 This work was sponsored by Siemens AG. 837 838 *David von Oheimb* 839 840 * The build of exporters (such as `.pc` files for pkg-config) cleaned up to 841 be less hard coded in the build file templates, and to allow easier 842 addition of more exporters. With that, an exporter for CMake is also 843 added. 844 845 *Richard Levitte* 846 847 * The BLAKE2s hash algorithm matches BLAKE2b's support 848 for configurable output length. 849 850 *Ahelenia Ziemiańska* 851 852 * New option `SSL_OP_PREFER_NO_DHE_KEX`, which allows configuring a TLS1.3 853 server to prefer session resumption using PSK-only key exchange over PSK 854 with DHE, if both are available. 855 856 *Markus Minichmayr, Tapkey GmbH* 857 858 * New API `SSL_write_ex2`, which can be used to send an end-of-stream (FIN) 859 condition in an optimised way when using QUIC. 860 861 *Hugo Landau* 862 863 * New atexit configuration switch, which controls whether the OPENSSL_cleanup 864 is registered when libcrypto is unloaded. This is turned off on NonStop 865 configurations because of loader differences on that platform compared to 866 Linux. 867 868 *Randall S. Becker* 869 870 * Support for qlog for tracing QUIC connections has been added. 871 872 The qlog output from OpenSSL currently uses a pre-standard draft version of 873 qlog. The output from OpenSSL will change in incompatible ways in future 874 releases, and is not subject to any format stability or compatibility 875 guarantees at this time. This functionality can be 876 disabled with the build-time option `no-unstable-qlog`. See the 877 openssl-qlog(7) manpage for details. 878 879 *Hugo Landau* 880 881 * Added APIs to allow configuring the negotiated idle timeout for QUIC 882 connections, and to allow determining the number of additional streams 883 that can currently be created for a QUIC connection. 884 885 *Hugo Landau* 886 887 * Added APIs to allow disabling implicit QUIC event processing for 888 QUIC SSL objects, allowing applications to control when event handling 889 occurs. Refer to the SSL_get_value_uint(3) manpage for details. 890 891 *Hugo Landau* 892 893 * Limited support for polling of QUIC connection and stream objects in a 894 non-blocking manner. Refer to the SSL_poll(3) manpage for details. 895 896 *Hugo Landau* 897 898 * Added APIs to allow querying the size and utilisation of a QUIC stream's 899 write buffer. Refer to the SSL_get_value_uint(3) manpage for details. 900 901 *Hugo Landau* 902 903 * New limit on HTTP response headers is introduced to HTTP client. The 904 default limit is set to 256 header lines. If limit is exceeded the 905 response processing stops with error HTTP_R_RESPONSE_TOO_MANY_HDRLINES. 906 Application may call OSSL_HTTP_REQ_CTX_set_max_response_hdr_lines(3) 907 to change the default. Setting the value to 0 disables the limit. 908 909 *Alexandr Nedvedicky* 910 911 * Applied AES-GCM unroll8 optimisation to Microsoft Azure Cobalt 100 912 913 *Tom Cosgrove* 914 915 * Added X509_STORE_get1_objects to avoid issues with the existing 916 X509_STORE_get0_objects API in multi-threaded applications. Refer to the 917 documentation for details. 918 919 *David Benjamin* 920 921 * Added assembly implementation for md5 on loongarch64 922 923 *Min Zhou* 924 925 * Optimized AES-CTR for ARM Neoverse V1 and V2 926 927 *Fisher Yu* 928 929 * Enable AES and SHA3 optimisations on Apple Silicon M3-based MacOS systems 930 similar to M1/M2. 931 932 *Tom Cosgrove* 933 934 * Added a new EVP_DigestSqueeze() API. This allows SHAKE to squeeze multiple 935 times with different output sizes. 936 937 *Shane Lontis, Holger Dengler* 938 939 * Various optimizations for cryptographic routines using RISC-V vector crypto 940 extensions 941 942 *Christoph Müllner, Charalampos Mitrodimas, Ard Biesheuvel, Phoebe Chen, 943 Jerry Shih* 944 945 * Accept longer context for TLS 1.2 exporters 946 947 While RFC 5705 implies that the maximum length of a context for exporters is 948 65535 bytes as the length is embedded in uint16, the previous implementation 949 enforced a much smaller limit, which is less than 1024 bytes. This 950 restriction has been removed. 951 952 *Daiki Ueno* 953 954OpenSSL 3.2 955----------- 956 957### Changes between 3.2.1 and 3.2.2 [xx XXX xxxx] 958 959 * Fixed an issue where some non-default TLS server configurations can cause 960 unbounded memory growth when processing TLSv1.3 sessions. An attacker may 961 exploit certain server configurations to trigger unbounded memory growth that 962 would lead to a Denial of Service 963 964 This problem can occur in TLSv1.3 if the non-default SSL_OP_NO_TICKET option 965 is being used (but not if early_data is also configured and the default 966 anti-replay protection is in use). In this case, under certain conditions, 967 the session cache can get into an incorrect state and it will fail to flush 968 properly as it fills. The session cache will continue to grow in an unbounded 969 manner. A malicious client could deliberately create the scenario for this 970 failure to force a Denial of Service. It may also happen by accident in 971 normal operation. 972 973 ([CVE-2024-2511]) 974 975 *Matt Caswell* 976 977 * Fixed bug where SSL_export_keying_material() could not be used with QUIC 978 connections. (#23560) 979 980 *Hugo Landau* 981 982### Changes between 3.2.0 and 3.2.1 [30 Jan 2024] 983 984 * A file in PKCS12 format can contain certificates and keys and may come from 985 an untrusted source. The PKCS12 specification allows certain fields to be 986 NULL, but OpenSSL did not correctly check for this case. A fix has been 987 applied to prevent a NULL pointer dereference that results in OpenSSL 988 crashing. If an application processes PKCS12 files from an untrusted source 989 using the OpenSSL APIs then that application will be vulnerable to this 990 issue prior to this fix. 991 992 OpenSSL APIs that were vulnerable to this are: PKCS12_parse(), 993 PKCS12_unpack_p7data(), PKCS12_unpack_p7encdata(), PKCS12_unpack_authsafes() 994 and PKCS12_newpass(). 995 996 We have also fixed a similar issue in SMIME_write_PKCS7(). However since this 997 function is related to writing data we do not consider it security 998 significant. 999 1000 ([CVE-2024-0727]) 1001 1002 *Matt Caswell* 1003 1004 * When function EVP_PKEY_public_check() is called on RSA public keys, 1005 a computation is done to confirm that the RSA modulus, n, is composite. 1006 For valid RSA keys, n is a product of two or more large primes and this 1007 computation completes quickly. However, if n is an overly large prime, 1008 then this computation would take a long time. 1009 1010 An application that calls EVP_PKEY_public_check() and supplies an RSA key 1011 obtained from an untrusted source could be vulnerable to a Denial of Service 1012 attack. 1013 1014 The function EVP_PKEY_public_check() is not called from other OpenSSL 1015 functions however it is called from the OpenSSL pkey command line 1016 application. For that reason that application is also vulnerable if used 1017 with the "-pubin" and "-check" options on untrusted data. 1018 1019 To resolve this issue RSA keys larger than OPENSSL_RSA_MAX_MODULUS_BITS will 1020 now fail the check immediately with an RSA_R_MODULUS_TOO_LARGE error reason. 1021 1022 ([CVE-2023-6237]) 1023 1024 *Tomáš Mráz* 1025 1026 * Restore the encoding of SM2 PrivateKeyInfo and SubjectPublicKeyInfo to 1027 have the contained AlgorithmIdentifier.algorithm set to id-ecPublicKey 1028 rather than SM2. 1029 1030 *Richard Levitte* 1031 1032 * The POLY1305 MAC (message authentication code) implementation in OpenSSL 1033 for PowerPC CPUs saves the contents of vector registers in different 1034 order than they are restored. Thus the contents of some of these vector 1035 registers is corrupted when returning to the caller. The vulnerable code is 1036 used only on newer PowerPC processors supporting the PowerISA 2.07 1037 instructions. 1038 1039 The consequences of this kind of internal application state corruption can 1040 be various - from no consequences, if the calling application does not 1041 depend on the contents of non-volatile XMM registers at all, to the worst 1042 consequences, where the attacker could get complete control of the 1043 application process. However unless the compiler uses the vector registers 1044 for storing pointers, the most likely consequence, if any, would be an 1045 incorrect result of some application dependent calculations or a crash 1046 leading to a denial of service. 1047 1048 ([CVE-2023-6129]) 1049 1050 *Rohan McLure* 1051 1052 * Disable building QUIC server utility when OpenSSL is configured with 1053 `no-apps`. 1054 1055 *Vitalii Koshura* 1056 1057### Changes between 3.1 and 3.2.0 [23 Nov 2023] 1058 1059 * Fix excessive time spent in DH check / generation with large Q parameter 1060 value. 1061 1062 Applications that use the functions DH_generate_key() to generate an 1063 X9.42 DH key may experience long delays. Likewise, applications that use 1064 DH_check_pub_key(), DH_check_pub_key_ex() or EVP_PKEY_public_check() 1065 to check an X9.42 DH key or X9.42 DH parameters may experience long delays. 1066 Where the key or parameters that are being checked have been obtained from 1067 an untrusted source this may lead to a Denial of Service. 1068 1069 ([CVE-2023-5678]) 1070 1071 *Richard Levitte* 1072 1073 * The BLAKE2b hash algorithm supports a configurable output length 1074 by setting the "size" parameter. 1075 1076 *Čestmír Kalina and Tomáš Mráz* 1077 1078 * Enable extra Arm64 optimization on Windows for GHASH, RAND and AES. 1079 1080 *Evgeny Karpov* 1081 1082 * Added a function to delete objects from store by URI - OSSL_STORE_delete() 1083 and the corresponding provider-storemgmt API function 1084 OSSL_FUNC_store_delete(). 1085 1086 *Dmitry Belyavskiy* 1087 1088 * Added OSSL_FUNC_store_open_ex() provider-storemgmt API function to pass 1089 a passphrase callback when opening a store. 1090 1091 *Simo Sorce* 1092 1093 * Changed the default salt length used by PBES2 KDF's (PBKDF2 and scrypt) 1094 from 8 bytes to 16 bytes. 1095 The PKCS5 (RFC 8018) standard uses a 64 bit salt length for PBE, and 1096 recommends a minimum of 64 bits for PBES2. For FIPS compliance PBKDF2 1097 requires a salt length of 128 bits. This affects OpenSSL command line 1098 applications such as "genrsa" and "pkcs8" and API's such as 1099 PEM_write_bio_PrivateKey() that are reliant on the default value. 1100 The additional commandline option 'saltlen' has been added to the 1101 OpenSSL command line applications for "pkcs8" and "enc" to allow the 1102 salt length to be set to a non default value. 1103 1104 *Shane Lontis* 1105 1106 * Changed the default value of the `ess_cert_id_alg` configuration 1107 option which is used to calculate the TSA's public key certificate 1108 identifier. The default algorithm is updated to be sha256 instead 1109 of sha1. 1110 1111 *Małgorzata Olszówka* 1112 1113 * Added optimization for SM2 algorithm on aarch64. It uses a huge precomputed 1114 table for point multiplication of the base point, which increases the size of 1115 libcrypto from 4.4 MB to 4.9 MB. A new configure option `no-sm2-precomp` has 1116 been added to disable the precomputed table. 1117 1118 *Xu Yizhou* 1119 1120 * Added client side support for QUIC 1121 1122 *Hugo Landau, Matt Caswell, Paul Dale, Tomáš Mráz, Richard Levitte* 1123 1124 * Added multiple tutorials on the OpenSSL library and in particular 1125 on writing various clients (using TLS and QUIC protocols) with libssl. 1126 1127 *Matt Caswell* 1128 1129 * Added secp384r1 implementation using Solinas' reduction to improve 1130 speed of the NIST P-384 elliptic curve. To enable the implementation 1131 the build option `enable-ec_nistp_64_gcc_128` must be used. 1132 1133 *Rohan McLure* 1134 1135 * Improved RFC7468 compliance of the asn1parse command. 1136 1137 *Matthias St. Pierre* 1138 1139 * Added SHA256/192 algorithm support. 1140 1141 *Fergus Dall* 1142 1143 * Improved contention on global write locks by using more read locks where 1144 appropriate. 1145 1146 *Matt Caswell* 1147 1148 * Improved performance of OSSL_PARAM lookups in performance critical 1149 provider functions. 1150 1151 *Paul Dale* 1152 1153 * Added the SSL_get0_group_name() function to provide access to the 1154 name of the group used for the TLS key exchange. 1155 1156 *Alex Bozarth* 1157 1158 * Provide a new configure option `no-http` that can be used to disable the 1159 HTTP support. Provide new configure options `no-apps` and `no-docs` to 1160 disable building the openssl command line application and the documentation. 1161 1162 *Vladimír Kotal* 1163 1164 * Provide a new configure option `no-ecx` that can be used to disable the 1165 X25519, X448, and EdDSA support. 1166 1167 *Yi Li* 1168 1169 * When multiple OSSL_KDF_PARAM_INFO parameters are passed to 1170 the EVP_KDF_CTX_set_params() function they are now concatenated not just 1171 for the HKDF algorithm but also for SSKDF and X9.63 KDF algorithms. 1172 1173 *Paul Dale* 1174 1175 * Added OSSL_FUNC_keymgmt_im/export_types_ex() provider functions that get 1176 the provider context as a parameter. 1177 1178 *Ingo Franzki* 1179 1180 * TLS round-trip time calculation was added by a Brigham Young University 1181 Capstone team partnering with Sandia National Laboratories. A new function 1182 in ssl_lib titled SSL_get_handshake_rtt will calculate and retrieve this 1183 value. 1184 1185 *Jairus Christensen* 1186 1187 * Added the "-quic" option to s_client to enable connectivity to QUIC servers. 1188 QUIC requires the use of ALPN, so this must be specified via the "-alpn" 1189 option. Use of the "advanced" s_client command command via the "-adv" option 1190 is recommended. 1191 1192 *Matt Caswell* 1193 1194 * Added an "advanced" command mode to s_client. Use this with the "-adv" 1195 option. The old "basic" command mode recognises certain letters that must 1196 always appear at the start of a line and cannot be escaped. The advanced 1197 command mode enables commands to be entered anywhere and there is an 1198 escaping mechanism. After starting s_client with "-adv" type "{help}" 1199 to show a list of available commands. 1200 1201 *Matt Caswell* 1202 1203 * Add Raw Public Key (RFC7250) support. Authentication is supported 1204 by matching keys against either local policy (TLSA records synthesised 1205 from the expected keys) or DANE (TLSA records obtained by the 1206 application from DNS). TLSA records will also match the same key in 1207 the server certificate, should RPK use not happen to be negotiated. 1208 1209 *Todd Short* 1210 1211 * Added support for modular exponentiation and CRT offloading for the 1212 S390x architecture. 1213 1214 *Juergen Christ* 1215 1216 * Added further assembler code for the RISC-V architecture. 1217 1218 *Christoph Müllner* 1219 1220 * Added EC_GROUP_to_params() which creates an OSSL_PARAM array 1221 from a given EC_GROUP. 1222 1223 *Oliver Mihatsch* 1224 1225 * Improved support for non-default library contexts and property queries 1226 when parsing PKCS#12 files. 1227 1228 *Shane Lontis* 1229 1230 * Implemented support for all five instances of EdDSA from RFC8032: 1231 Ed25519, Ed25519ctx, Ed25519ph, Ed448, and Ed448ph. 1232 The streaming is not yet supported for the HashEdDSA variants 1233 (Ed25519ph and Ed448ph). 1234 1235 *James Muir* 1236 1237 * Added SM4 optimization for ARM processors using ASIMD and AES HW 1238 instructions. 1239 1240 *Xu Yizhou* 1241 1242 * Implemented SM4-XTS support. 1243 1244 *Xu Yizhou* 1245 1246 * Added platform-agnostic OSSL_sleep() function. 1247 1248 *Richard Levitte* 1249 1250 * Implemented deterministic ECDSA signatures (RFC6979) support. 1251 1252 *Shane Lontis* 1253 1254 * Implemented AES-GCM-SIV (RFC8452) support. 1255 1256 *Todd Short* 1257 1258 * Added support for pluggable (provider-based) TLS signature algorithms. 1259 This enables TLS 1.3 authentication operations with algorithms embedded 1260 in providers not included by default in OpenSSL. In combination with 1261 the already available pluggable KEM and X.509 support, this enables 1262 for example suitable providers to deliver post-quantum or quantum-safe 1263 cryptography to OpenSSL users. 1264 1265 *Michael Baentsch* 1266 1267 * Added support for pluggable (provider-based) CMS signature algorithms. 1268 This enables CMS sign and verify operations with algorithms embedded 1269 in providers not included by default in OpenSSL. 1270 1271 *Michael Baentsch* 1272 1273 * Added support for Hybrid Public Key Encryption (HPKE) as defined 1274 in RFC9180. HPKE is required for TLS Encrypted ClientHello (ECH), 1275 Message Layer Security (MLS) and other IETF specifications. 1276 HPKE can also be used by other applications that require 1277 encrypting "to" an ECDH public key. External APIs are defined in 1278 include/openssl/hpke.h and documented in doc/man3/OSSL_HPKE_CTX_new.pod 1279 1280 *Stephen Farrell* 1281 1282 * Implemented HPKE DHKEM support in providers used by HPKE (RFC9180) 1283 API. 1284 1285 *Shane Lontis* 1286 1287 * Add support for certificate compression (RFC8879), including 1288 library support for Brotli and Zstandard compression. 1289 1290 *Todd Short* 1291 1292 * Add the ability to add custom attributes to PKCS12 files. Add a new API 1293 PKCS12_create_ex2, identical to the existing PKCS12_create_ex but allows 1294 for a user specified callback and optional argument. 1295 Added a new PKCS12_SAFEBAG_set0_attr, which allows for a new attr to be 1296 added to the existing STACK_OF attrs. 1297 1298 *Graham Woodward* 1299 1300 * Major refactor of the libssl record layer. 1301 1302 *Matt Caswell* 1303 1304 * Add a mac salt length option for the pkcs12 command. 1305 1306 *Xinping Chen* 1307 1308 * Add more SRTP protection profiles from RFC8723 and RFC8269. 1309 1310 *Kijin Kim* 1311 1312 * Extended Kernel TLS (KTLS) to support TLS 1.3 receive offload. 1313 1314 *Daiki Ueno, John Baldwin and Dmitry Podgorny* 1315 1316 * Add support for TCP Fast Open (RFC7413) to macOS, Linux, and FreeBSD where 1317 supported and enabled. 1318 1319 *Todd Short* 1320 1321 * Add ciphersuites based on DHE_PSK (RFC 4279) and ECDHE_PSK (RFC 5489) 1322 to the list of ciphersuites providing Perfect Forward Secrecy as 1323 required by SECLEVEL >= 3. 1324 1325 *Dmitry Belyavskiy, Nicola Tuveri* 1326 1327 * Add new SSL APIs to aid in efficiently implementing TLS/SSL fingerprinting. 1328 The SSL_CTRL_GET_IANA_GROUPS control code, exposed as the 1329 SSL_get0_iana_groups() function-like macro, retrieves the list of 1330 supported groups sent by the peer. 1331 The function SSL_client_hello_get_extension_order() populates 1332 a caller-supplied array with the list of extension types present in the 1333 ClientHello, in order of appearance. 1334 1335 *Phus Lu* 1336 1337 * Fixed PEM_write_bio_PKCS8PrivateKey() and PEM_write_bio_PKCS8PrivateKey_nid() 1338 to make it possible to use empty passphrase strings. 1339 1340 *Darshan Sen* 1341 1342 * The PKCS12_parse() function now supports MAC-less PKCS12 files. 1343 1344 *Daniel Fiala* 1345 1346 * Added ASYNC_set_mem_functions() and ASYNC_get_mem_functions() calls to be able 1347 to change functions used for allocating the memory of asynchronous call stack. 1348 1349 *Arran Cudbard-Bell* 1350 1351 * Added support for signed BIGNUMs in the OSSL_PARAM APIs. 1352 1353 *Richard Levitte* 1354 1355 * A failure exit code is returned when using the openssl x509 command to check 1356 certificate attributes and the checks fail. 1357 1358 *Rami Khaldi* 1359 1360 * The default SSL/TLS security level has been changed from 1 to 2. RSA, 1361 DSA and DH keys of 1024 bits and above and less than 2048 bits and ECC keys 1362 of 160 bits and above and less than 224 bits were previously accepted by 1363 default but are now no longer allowed. By default TLS compression was 1364 already disabled in previous OpenSSL versions. At security level 2 it cannot 1365 be enabled. 1366 1367 *Matt Caswell* 1368 1369 * The SSL_CTX_set_cipher_list family functions now accept ciphers using their 1370 IANA standard names. 1371 1372 *Erik Lax* 1373 1374 * The PVK key derivation function has been moved from b2i_PVK_bio_ex() into 1375 the legacy crypto provider as an EVP_KDF. Applications requiring this KDF 1376 will need to load the legacy crypto provider. 1377 1378 *Paul Dale* 1379 1380 * CCM8 cipher suites in TLS have been downgraded to security level zero 1381 because they use a short authentication tag which lowers their strength. 1382 1383 *Paul Dale* 1384 1385 * Subject or issuer names in X.509 objects are now displayed as UTF-8 strings 1386 by default. Also spaces surrounding `=` in DN output are removed. 1387 1388 *Dmitry Belyavskiy* 1389 1390 * Add X.509 certificate codeSigning purpose and related checks on key usage and 1391 extended key usage of the leaf certificate according to the CA/Browser Forum. 1392 1393 * Lutz Jänicke* 1394 1395 * The `x509`, `ca`, and `req` commands now produce X.509 v3 certificates. 1396 The `-x509v1` option of `req` prefers generation of X.509 v1 certificates. 1397 `X509_sign()` and `X509_sign_ctx()` make sure that the certificate has 1398 X.509 version 3 if the certificate information includes X.509 extensions. 1399 1400 *David von Oheimb* 1401 1402 * Fix and extend certificate handling and the commands `x509`, `verify` etc. 1403 such as adding a trace facility for debugging certificate chain building. 1404 1405 *David von Oheimb* 1406 1407 * Various fixes and extensions to the CMP+CRMF implementation and the `cmp` app 1408 in particular supporting various types of genm/genp exchanges such as getting 1409 CA certificates and root CA cert updates defined in CMP Updates [RFC 9480], 1410 as well as the `-srvcertout` and `-serial` CLI options. 1411 1412 This work was sponsored by Siemens AG. 1413 1414 *David von Oheimb* 1415 1416 * Fixes and extensions to the HTTP client and to the HTTP server in `apps/` 1417 like correcting the TLS and proxy support and adding tracing for debugging. 1418 1419 *David von Oheimb* 1420 1421 * Extended the CMS API for handling `CMS_SignedData` and `CMS_EnvelopedData`. 1422 1423 *David von Oheimb* 1424 1425 * `CMS_add0_cert()` and `CMS_add1_cert()` no longer throw an error if 1426 a certificate to be added is already present. `CMS_sign_ex()` and 1427 `CMS_sign()` now ignore any duplicate certificates in their `certs` argument 1428 and no longer throw an error for them. 1429 1430 *David von Oheimb* 1431 1432 * Fixed and extended `util/check-format.pl` for checking adherence to the 1433 coding style <https://www.openssl.org/policies/technical/coding-style.html>. 1434 The checks are meanwhile more complete and yield fewer false positives. 1435 1436 *David von Oheimb* 1437 1438 * Added BIO_s_dgram_pair() and BIO_s_dgram_mem() that provide memory-based 1439 BIOs with datagram semantics and support for BIO_sendmmsg() and BIO_recvmmsg() 1440 calls. They can be used as the transport BIOs for QUIC. 1441 1442 *Hugo Landau, Matt Caswell and Tomáš Mráz* 1443 1444 * Add new BIO_sendmmsg() and BIO_recvmmsg() BIO methods which allow 1445 sending and receiving multiple messages in a single call. An implementation 1446 is provided for BIO_dgram. For further details, see BIO_sendmmsg(3). 1447 1448 *Hugo Landau* 1449 1450 * Support for loading root certificates from the Windows certificate store 1451 has been added. The support is in the form of a store which recognises the 1452 URI string of `org.openssl.winstore://`. This URI scheme currently takes no 1453 arguments. This store is built by default and can be disabled using the new 1454 compile-time option `no-winstore`. This store is not currently used by 1455 default and must be loaded explicitly using the above store URI. It is 1456 expected to be loaded by default in the future. 1457 1458 *Hugo Landau* 1459 1460 * Enable KTLS with the TLS 1.3 CCM mode ciphersuites. Note that some linux 1461 kernel versions that support KTLS have a known bug in CCM processing. That 1462 has been fixed in stable releases starting from 5.4.164, 5.10.84, 5.15.7, 1463 and all releases since 5.16. KTLS with CCM ciphersuites should be only used 1464 on these releases. 1465 1466 *Tianjia Zhang* 1467 1468 * Added `-ktls` option to `s_server` and `s_client` commands to enable the 1469 KTLS support. 1470 1471 *Tianjia Zhang* 1472 1473 * Zerocopy KTLS sendfile() support on Linux. 1474 1475 *Maxim Mikityanskiy* 1476 1477 * The OBJ_ calls are now thread safe using a global lock. 1478 1479 *Paul Dale* 1480 1481 * New parameter `-digest` for openssl cms command allowing signing 1482 pre-computed digests and new CMS API functions supporting that 1483 functionality. 1484 1485 *Viktor Söderqvist* 1486 1487 * OPENSSL_malloc() and other allocation functions now raise errors on 1488 allocation failures. The callers do not need to explicitly raise errors 1489 unless they want to for tracing purposes. 1490 1491 *David von Oheimb* 1492 1493 * Added and enabled by default implicit rejection in RSA PKCS#1 v1.5 1494 decryption as a protection against Bleichenbacher-like attacks. 1495 The RSA decryption API will now return a randomly generated deterministic 1496 message instead of an error in case it detects an error when checking 1497 padding during PKCS#1 v1.5 decryption. This is a general protection against 1498 issues like CVE-2020-25659 and CVE-2020-25657. This protection can be 1499 disabled by calling 1500 `EVP_PKEY_CTX_ctrl_str(ctx, "rsa_pkcs1_implicit_rejection". "0")` 1501 on the RSA decryption context. 1502 1503 *Hubert Kario* 1504 1505 * Added support for Brainpool curves in TLS-1.3. 1506 1507 *Bernd Edlinger and Matt Caswell* 1508 1509 * Added OpenBSD specific build targets. 1510 1511 *David Carlier* 1512 1513 * Support for Argon2d, Argon2i, Argon2id KDFs has been added along with 1514 a basic thread pool implementation for select platforms. 1515 1516 *Čestmír Kalina* 1517 1518OpenSSL 3.1 1519----------- 1520 1521### Changes between 3.1.3 and 3.1.4 [24 Oct 2023] 1522 1523 * Fix incorrect key and IV resizing issues when calling EVP_EncryptInit_ex2(), 1524 EVP_DecryptInit_ex2() or EVP_CipherInit_ex2() with OSSL_PARAM parameters 1525 that alter the key or IV length ([CVE-2023-5363]). 1526 1527 *Paul Dale* 1528 1529### Changes between 3.1.2 and 3.1.3 [19 Sep 2023] 1530 1531 * Fix POLY1305 MAC implementation corrupting XMM registers on Windows. 1532 1533 The POLY1305 MAC (message authentication code) implementation in OpenSSL 1534 does not save the contents of non-volatile XMM registers on Windows 64 1535 platform when calculating the MAC of data larger than 64 bytes. Before 1536 returning to the caller all the XMM registers are set to zero rather than 1537 restoring their previous content. The vulnerable code is used only on newer 1538 x86_64 processors supporting the AVX512-IFMA instructions. 1539 1540 The consequences of this kind of internal application state corruption can 1541 be various - from no consequences, if the calling application does not 1542 depend on the contents of non-volatile XMM registers at all, to the worst 1543 consequences, where the attacker could get complete control of the 1544 application process. However given the contents of the registers are just 1545 zeroized so the attacker cannot put arbitrary values inside, the most likely 1546 consequence, if any, would be an incorrect result of some application 1547 dependent calculations or a crash leading to a denial of service. 1548 1549 ([CVE-2023-4807]) 1550 1551 *Bernd Edlinger* 1552 1553### Changes between 3.1.1 and 3.1.2 [1 Aug 2023] 1554 1555 * Fix excessive time spent checking DH q parameter value. 1556 1557 The function DH_check() performs various checks on DH parameters. After 1558 fixing CVE-2023-3446 it was discovered that a large q parameter value can 1559 also trigger an overly long computation during some of these checks. 1560 A correct q value, if present, cannot be larger than the modulus p 1561 parameter, thus it is unnecessary to perform these checks if q is larger 1562 than p. 1563 1564 If DH_check() is called with such q parameter value, 1565 DH_CHECK_INVALID_Q_VALUE return flag is set and the computationally 1566 intensive checks are skipped. 1567 1568 ([CVE-2023-3817]) 1569 1570 *Tomáš Mráz* 1571 1572 * Fix DH_check() excessive time with over sized modulus. 1573 1574 The function DH_check() performs various checks on DH parameters. One of 1575 those checks confirms that the modulus ("p" parameter) is not too large. 1576 Trying to use a very large modulus is slow and OpenSSL will not normally use 1577 a modulus which is over 10,000 bits in length. 1578 1579 However the DH_check() function checks numerous aspects of the key or 1580 parameters that have been supplied. Some of those checks use the supplied 1581 modulus value even if it has already been found to be too large. 1582 1583 A new limit has been added to DH_check of 32,768 bits. Supplying a 1584 key/parameters with a modulus over this size will simply cause DH_check() to 1585 fail. 1586 1587 ([CVE-2023-3446]) 1588 1589 *Matt Caswell* 1590 1591 * Do not ignore empty associated data entries with AES-SIV. 1592 1593 The AES-SIV algorithm allows for authentication of multiple associated 1594 data entries along with the encryption. To authenticate empty data the 1595 application has to call `EVP_EncryptUpdate()` (or `EVP_CipherUpdate()`) 1596 with NULL pointer as the output buffer and 0 as the input buffer length. 1597 The AES-SIV implementation in OpenSSL just returns success for such call 1598 instead of performing the associated data authentication operation. 1599 The empty data thus will not be authenticated. ([CVE-2023-2975]) 1600 1601 Thanks to Juerg Wullschleger (Google) for discovering the issue. 1602 1603 The fix changes the authentication tag value and the ciphertext for 1604 applications that use empty associated data entries with AES-SIV. 1605 To decrypt data encrypted with previous versions of OpenSSL the application 1606 has to skip calls to `EVP_DecryptUpdate()` for empty associated data 1607 entries. 1608 1609 *Tomáš Mráz* 1610 1611 * When building with the `enable-fips` option and using the resulting 1612 FIPS provider, TLS 1.2 will, by default, mandate the use of an extended 1613 master secret (FIPS 140-3 IG G.Q) and the Hash and HMAC DRBGs will 1614 not operate with truncated digests (FIPS 140-3 IG G.R). 1615 1616 *Paul Dale* 1617 1618### Changes between 3.1.0 and 3.1.1 [30 May 2023] 1619 1620 * Mitigate for the time it takes for `OBJ_obj2txt` to translate gigantic 1621 OBJECT IDENTIFIER sub-identifiers to canonical numeric text form. 1622 1623 OBJ_obj2txt() would translate any size OBJECT IDENTIFIER to canonical 1624 numeric text form. For gigantic sub-identifiers, this would take a very 1625 long time, the time complexity being O(n^2) where n is the size of that 1626 sub-identifier. ([CVE-2023-2650]) 1627 1628 To mitigitate this, `OBJ_obj2txt()` will only translate an OBJECT 1629 IDENTIFIER to canonical numeric text form if the size of that OBJECT 1630 IDENTIFIER is 586 bytes or less, and fail otherwise. 1631 1632 The basis for this restriction is [RFC 2578 (STD 58), section 3.5]. OBJECT 1633 IDENTIFIER values, which stipulates that OBJECT IDENTIFIERS may have at 1634 most 128 sub-identifiers, and that the maximum value that each sub- 1635 identifier may have is 2^32-1 (4294967295 decimal). 1636 1637 For each byte of every sub-identifier, only the 7 lower bits are part of 1638 the value, so the maximum amount of bytes that an OBJECT IDENTIFIER with 1639 these restrictions may occupy is 32 * 128 / 7, which is approximately 586 1640 bytes. 1641 1642 *Richard Levitte* 1643 1644 * Multiple algorithm implementation fixes for ARM BE platforms. 1645 1646 *Liu-ErMeng* 1647 1648 * Added a -pedantic option to fipsinstall that adjusts the various 1649 settings to ensure strict FIPS compliance rather than backwards 1650 compatibility. 1651 1652 *Paul Dale* 1653 1654 * Fixed buffer overread in AES-XTS decryption on ARM 64 bit platforms which 1655 happens if the buffer size is 4 mod 5 in 16 byte AES blocks. This can 1656 trigger a crash of an application using AES-XTS decryption if the memory 1657 just after the buffer being decrypted is not mapped. 1658 Thanks to Anton Romanov (Amazon) for discovering the issue. 1659 ([CVE-2023-1255]) 1660 1661 *Nevine Ebeid* 1662 1663 * Reworked the Fix for the Timing Oracle in RSA Decryption ([CVE-2022-4304]). 1664 The previous fix for this timing side channel turned out to cause 1665 a severe 2-3x performance regression in the typical use case 1666 compared to 3.0.7. The new fix uses existing constant time 1667 code paths, and restores the previous performance level while 1668 fully eliminating all existing timing side channels. 1669 The fix was developed by Bernd Edlinger with testing support 1670 by Hubert Kario. 1671 1672 *Bernd Edlinger* 1673 1674 * Add FIPS provider configuration option to disallow the use of 1675 truncated digests with Hash and HMAC DRBGs (q.v. FIPS 140-3 IG D.R.). 1676 The option '-no_drbg_truncated_digests' can optionally be 1677 supplied to 'openssl fipsinstall'. 1678 1679 *Paul Dale* 1680 1681 * Corrected documentation of X509_VERIFY_PARAM_add0_policy() to mention 1682 that it does not enable policy checking. Thanks to David Benjamin for 1683 discovering this issue. 1684 ([CVE-2023-0466]) 1685 1686 *Tomáš Mráz* 1687 1688 * Fixed an issue where invalid certificate policies in leaf certificates are 1689 silently ignored by OpenSSL and other certificate policy checks are skipped 1690 for that certificate. A malicious CA could use this to deliberately assert 1691 invalid certificate policies in order to circumvent policy checking on the 1692 certificate altogether. 1693 ([CVE-2023-0465]) 1694 1695 *Matt Caswell* 1696 1697 * Limited the number of nodes created in a policy tree to mitigate 1698 against CVE-2023-0464. The default limit is set to 1000 nodes, which 1699 should be sufficient for most installations. If required, the limit 1700 can be adjusted by setting the OPENSSL_POLICY_TREE_NODES_MAX build 1701 time define to a desired maximum number of nodes or zero to allow 1702 unlimited growth. 1703 ([CVE-2023-0464]) 1704 1705 *Paul Dale* 1706 1707### Changes between 3.0 and 3.1.0 [14 Mar 2023] 1708 1709 * Add FIPS provider configuration option to enforce the 1710 Extended Master Secret (EMS) check during the TLS1_PRF KDF. 1711 The option '-ems_check' can optionally be supplied to 1712 'openssl fipsinstall'. 1713 1714 *Shane Lontis* 1715 1716 * The FIPS provider includes a few non-approved algorithms for 1717 backward compatibility purposes and the "fips=yes" property query 1718 must be used for all algorithm fetches to ensure FIPS compliance. 1719 1720 The algorithms that are included but not approved are Triple DES ECB, 1721 Triple DES CBC and EdDSA. 1722 1723 *Paul Dale* 1724 1725 * Added support for KMAC in KBKDF. 1726 1727 *Shane Lontis* 1728 1729 * RNDR and RNDRRS support in provider functions to provide 1730 random number generation for Arm CPUs (aarch64). 1731 1732 *Orr Toledano* 1733 1734 * `s_client` and `s_server` commands now explicitly say when the TLS version 1735 does not include the renegotiation mechanism. This avoids confusion 1736 between that scenario versus when the TLS version includes secure 1737 renegotiation but the peer lacks support for it. 1738 1739 *Felipe Gasper* 1740 1741 * AES-GCM enabled with AVX512 vAES and vPCLMULQDQ. 1742 1743 *Tomasz Kantecki, Andrey Matyukov* 1744 1745 * The various OBJ_* functions have been made thread safe. 1746 1747 *Paul Dale* 1748 1749 * Parallel dual-prime 1536/2048-bit modular exponentiation for 1750 AVX512_IFMA capable processors. 1751 1752 *Sergey Kirillov, Andrey Matyukov (Intel Corp)* 1753 1754 * The functions `OPENSSL_LH_stats`, `OPENSSL_LH_node_stats`, 1755 `OPENSSL_LH_node_usage_stats`, `OPENSSL_LH_stats_bio`, 1756 `OPENSSL_LH_node_stats_bio` and `OPENSSL_LH_node_usage_stats_bio` are now 1757 marked deprecated from OpenSSL 3.1 onwards and can be disabled by defining 1758 `OPENSSL_NO_DEPRECATED_3_1`. 1759 1760 The macro `DEFINE_LHASH_OF` is now deprecated in favour of the macro 1761 `DEFINE_LHASH_OF_EX`, which omits the corresponding type-specific function 1762 definitions for these functions regardless of whether 1763 `OPENSSL_NO_DEPRECATED_3_1` is defined. 1764 1765 Users of `DEFINE_LHASH_OF` may start receiving deprecation warnings for these 1766 functions regardless of whether they are using them. It is recommended that 1767 users transition to the new macro, `DEFINE_LHASH_OF_EX`. 1768 1769 *Hugo Landau* 1770 1771 * When generating safe-prime DH parameters set the recommended private key 1772 length equivalent to minimum key lengths as in RFC 7919. 1773 1774 *Tomáš Mráz* 1775 1776 * Change the default salt length for PKCS#1 RSASSA-PSS signatures to the 1777 maximum size that is smaller or equal to the digest length to comply with 1778 FIPS 186-4 section 5. This is implemented by a new option 1779 `OSSL_PKEY_RSA_PSS_SALT_LEN_AUTO_DIGEST_MAX` ("auto-digestmax") for the 1780 `rsa_pss_saltlen` parameter, which is now the default. Signature 1781 verification is not affected by this change and continues to work as before. 1782 1783 *Clemens Lang* 1784 1785OpenSSL 3.0 1786----------- 1787 1788For OpenSSL 3.0 a [Migration guide][] has been added, so the CHANGES entries 1789listed here are only a brief description. 1790The migration guide contains more detailed information related to new features, 1791breaking changes, and mappings for the large list of deprecated functions. 1792 1793[Migration guide]: https://github.com/openssl/openssl/tree/master/doc/man7/migration_guide.pod 1794 1795### Changes between 3.0.7 and 3.0.8 [7 Feb 2023] 1796 1797 * Fixed NULL dereference during PKCS7 data verification. 1798 1799 A NULL pointer can be dereferenced when signatures are being 1800 verified on PKCS7 signed or signedAndEnveloped data. In case the hash 1801 algorithm used for the signature is known to the OpenSSL library but 1802 the implementation of the hash algorithm is not available the digest 1803 initialization will fail. There is a missing check for the return 1804 value from the initialization function which later leads to invalid 1805 usage of the digest API most likely leading to a crash. 1806 ([CVE-2023-0401]) 1807 1808 PKCS7 data is processed by the SMIME library calls and also by the 1809 time stamp (TS) library calls. The TLS implementation in OpenSSL does 1810 not call these functions however third party applications would be 1811 affected if they call these functions to verify signatures on untrusted 1812 data. 1813 1814 *Tomáš Mráz* 1815 1816 * Fixed X.400 address type confusion in X.509 GeneralName. 1817 1818 There is a type confusion vulnerability relating to X.400 address processing 1819 inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING 1820 but the public structure definition for GENERAL_NAME incorrectly specified 1821 the type of the x400Address field as ASN1_TYPE. This field is subsequently 1822 interpreted by the OpenSSL function GENERAL_NAME_cmp as an ASN1_TYPE rather 1823 than an ASN1_STRING. 1824 1825 When CRL checking is enabled (i.e. the application sets the 1826 X509_V_FLAG_CRL_CHECK flag), this vulnerability may allow an attacker to 1827 pass arbitrary pointers to a memcmp call, enabling them to read memory 1828 contents or enact a denial of service. 1829 ([CVE-2023-0286]) 1830 1831 *Hugo Landau* 1832 1833 * Fixed NULL dereference validating DSA public key. 1834 1835 An invalid pointer dereference on read can be triggered when an 1836 application tries to check a malformed DSA public key by the 1837 EVP_PKEY_public_check() function. This will most likely lead 1838 to an application crash. This function can be called on public 1839 keys supplied from untrusted sources which could allow an attacker 1840 to cause a denial of service attack. 1841 1842 The TLS implementation in OpenSSL does not call this function 1843 but applications might call the function if there are additional 1844 security requirements imposed by standards such as FIPS 140-3. 1845 ([CVE-2023-0217]) 1846 1847 *Shane Lontis, Tomáš Mráz* 1848 1849 * Fixed Invalid pointer dereference in d2i_PKCS7 functions. 1850 1851 An invalid pointer dereference on read can be triggered when an 1852 application tries to load malformed PKCS7 data with the 1853 d2i_PKCS7(), d2i_PKCS7_bio() or d2i_PKCS7_fp() functions. 1854 1855 The result of the dereference is an application crash which could 1856 lead to a denial of service attack. The TLS implementation in OpenSSL 1857 does not call this function however third party applications might 1858 call these functions on untrusted data. 1859 ([CVE-2023-0216]) 1860 1861 *Tomáš Mráz* 1862 1863 * Fixed Use-after-free following BIO_new_NDEF. 1864 1865 The public API function BIO_new_NDEF is a helper function used for 1866 streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL 1867 to support the SMIME, CMS and PKCS7 streaming capabilities, but may also 1868 be called directly by end user applications. 1869 1870 The function receives a BIO from the caller, prepends a new BIO_f_asn1 1871 filter BIO onto the front of it to form a BIO chain, and then returns 1872 the new head of the BIO chain to the caller. Under certain conditions, 1873 for example if a CMS recipient public key is invalid, the new filter BIO 1874 is freed and the function returns a NULL result indicating a failure. 1875 However, in this case, the BIO chain is not properly cleaned up and the 1876 BIO passed by the caller still retains internal pointers to the previously 1877 freed filter BIO. If the caller then goes on to call BIO_pop() on the BIO 1878 then a use-after-free will occur. This will most likely result in a crash. 1879 ([CVE-2023-0215]) 1880 1881 *Viktor Dukhovni, Matt Caswell* 1882 1883 * Fixed Double free after calling PEM_read_bio_ex. 1884 1885 The function PEM_read_bio_ex() reads a PEM file from a BIO and parses and 1886 decodes the "name" (e.g. "CERTIFICATE"), any header data and the payload 1887 data. If the function succeeds then the "name_out", "header" and "data" 1888 arguments are populated with pointers to buffers containing the relevant 1889 decoded data. The caller is responsible for freeing those buffers. It is 1890 possible to construct a PEM file that results in 0 bytes of payload data. 1891 In this case PEM_read_bio_ex() will return a failure code but will populate 1892 the header argument with a pointer to a buffer that has already been freed. 1893 If the caller also frees this buffer then a double free will occur. This 1894 will most likely lead to a crash. 1895 1896 The functions PEM_read_bio() and PEM_read() are simple wrappers around 1897 PEM_read_bio_ex() and therefore these functions are also directly affected. 1898 1899 These functions are also called indirectly by a number of other OpenSSL 1900 functions including PEM_X509_INFO_read_bio_ex() and 1901 SSL_CTX_use_serverinfo_file() which are also vulnerable. Some OpenSSL 1902 internal uses of these functions are not vulnerable because the caller does 1903 not free the header argument if PEM_read_bio_ex() returns a failure code. 1904 ([CVE-2022-4450]) 1905 1906 *Kurt Roeckx, Matt Caswell* 1907 1908 * Fixed Timing Oracle in RSA Decryption. 1909 1910 A timing based side channel exists in the OpenSSL RSA Decryption 1911 implementation which could be sufficient to recover a plaintext across 1912 a network in a Bleichenbacher style attack. To achieve a successful 1913 decryption an attacker would have to be able to send a very large number 1914 of trial messages for decryption. The vulnerability affects all RSA padding 1915 modes: PKCS#1 v1.5, RSA-OEAP and RSASVE. 1916 ([CVE-2022-4304]) 1917 1918 *Dmitry Belyavsky, Hubert Kario* 1919 1920 * Fixed X.509 Name Constraints Read Buffer Overflow. 1921 1922 A read buffer overrun can be triggered in X.509 certificate verification, 1923 specifically in name constraint checking. The read buffer overrun might 1924 result in a crash which could lead to a denial of service attack. 1925 In a TLS client, this can be triggered by connecting to a malicious 1926 server. In a TLS server, this can be triggered if the server requests 1927 client authentication and a malicious client connects. 1928 ([CVE-2022-4203]) 1929 1930 *Viktor Dukhovni* 1931 1932 * Fixed X.509 Policy Constraints Double Locking security issue. 1933 1934 If an X.509 certificate contains a malformed policy constraint and 1935 policy processing is enabled, then a write lock will be taken twice 1936 recursively. On some operating systems (most widely: Windows) this 1937 results in a denial of service when the affected process hangs. Policy 1938 processing being enabled on a publicly facing server is not considered 1939 to be a common setup. 1940 ([CVE-2022-3996]) 1941 1942 *Paul Dale* 1943 1944 * Our provider implementations of `OSSL_FUNC_KEYMGMT_EXPORT` and 1945 `OSSL_FUNC_KEYMGMT_GET_PARAMS` for EC and SM2 keys now honor 1946 `OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT` as set (and 1947 default to `POINT_CONVERSION_UNCOMPRESSED`) when exporting 1948 `OSSL_PKEY_PARAM_PUB_KEY`, instead of unconditionally using 1949 `POINT_CONVERSION_COMPRESSED` as in previous 3.x releases. 1950 For symmetry, our implementation of `EVP_PKEY_ASN1_METHOD->export_to` 1951 for legacy EC and SM2 keys is also changed similarly to honor the 1952 equivalent conversion format flag as specified in the underlying 1953 `EC_KEY` object being exported to a provider, when this function is 1954 called through `EVP_PKEY_export()`. 1955 1956 *Nicola Tuveri* 1957 1958### Changes between 3.0.6 and 3.0.7 [1 Nov 2022] 1959 1960 * Fixed two buffer overflows in punycode decoding functions. 1961 1962 A buffer overrun can be triggered in X.509 certificate verification, 1963 specifically in name constraint checking. Note that this occurs after 1964 certificate chain signature verification and requires either a CA to 1965 have signed the malicious certificate or for the application to continue 1966 certificate verification despite failure to construct a path to a trusted 1967 issuer. 1968 1969 In a TLS client, this can be triggered by connecting to a malicious 1970 server. In a TLS server, this can be triggered if the server requests 1971 client authentication and a malicious client connects. 1972 1973 An attacker can craft a malicious email address to overflow 1974 an arbitrary number of bytes containing the `.` character (decimal 46) 1975 on the stack. This buffer overflow could result in a crash (causing a 1976 denial of service). 1977 ([CVE-2022-3786]) 1978 1979 An attacker can craft a malicious email address to overflow four 1980 attacker-controlled bytes on the stack. This buffer overflow could 1981 result in a crash (causing a denial of service) or potentially remote code 1982 execution depending on stack layout for any given platform/compiler. 1983 ([CVE-2022-3602]) 1984 1985 *Paul Dale* 1986 1987 * Removed all references to invalid OSSL_PKEY_PARAM_RSA names for CRT 1988 parameters in OpenSSL code. 1989 Applications should not use the names OSSL_PKEY_PARAM_RSA_FACTOR, 1990 OSSL_PKEY_PARAM_RSA_EXPONENT and OSSL_PKEY_PARAM_RSA_COEFFICIENT. 1991 Use the numbered names such as OSSL_PKEY_PARAM_RSA_FACTOR1 instead. 1992 Using these invalid names may cause algorithms to use slower methods 1993 that ignore the CRT parameters. 1994 1995 *Shane Lontis* 1996 1997 * Fixed a regression introduced in 3.0.6 version raising errors on some stack 1998 operations. 1999 2000 *Tomáš Mráz* 2001 2002 * Fixed a regression introduced in 3.0.6 version not refreshing the certificate 2003 data to be signed before signing the certificate. 2004 2005 *Gibeom Gwon* 2006 2007 * Added RIPEMD160 to the default provider. 2008 2009 *Paul Dale* 2010 2011 * Ensured that the key share group sent or accepted for the key exchange 2012 is allowed for the protocol version. 2013 2014 *Matt Caswell* 2015 2016### Changes between 3.0.5 and 3.0.6 [11 Oct 2022] 2017 2018 * OpenSSL supports creating a custom cipher via the legacy 2019 EVP_CIPHER_meth_new() function and associated function calls. This function 2020 was deprecated in OpenSSL 3.0 and application authors are instead encouraged 2021 to use the new provider mechanism in order to implement custom ciphers. 2022 2023 OpenSSL versions 3.0.0 to 3.0.5 incorrectly handle legacy custom ciphers 2024 passed to the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() and 2025 EVP_CipherInit_ex2() functions (as well as other similarly named encryption 2026 and decryption initialisation functions). Instead of using the custom cipher 2027 directly it incorrectly tries to fetch an equivalent cipher from the 2028 available providers. An equivalent cipher is found based on the NID passed to 2029 EVP_CIPHER_meth_new(). This NID is supposed to represent the unique NID for a 2030 given cipher. However it is possible for an application to incorrectly pass 2031 NID_undef as this value in the call to EVP_CIPHER_meth_new(). When NID_undef 2032 is used in this way the OpenSSL encryption/decryption initialisation function 2033 will match the NULL cipher as being equivalent and will fetch this from the 2034 available providers. This will succeed if the default provider has been 2035 loaded (or if a third party provider has been loaded that offers this 2036 cipher). Using the NULL cipher means that the plaintext is emitted as the 2037 ciphertext. 2038 2039 Applications are only affected by this issue if they call 2040 EVP_CIPHER_meth_new() using NID_undef and subsequently use it in a call to an 2041 encryption/decryption initialisation function. Applications that only use 2042 SSL/TLS are not impacted by this issue. 2043 ([CVE-2022-3358]) 2044 2045 *Matt Caswell* 2046 2047 * Fix LLVM vs Apple LLVM version numbering confusion that caused build failures 2048 on MacOS 10.11 2049 2050 *Richard Levitte* 2051 2052 * Fixed the linux-mips64 Configure target which was missing the 2053 SIXTY_FOUR_BIT bn_ops flag. This was causing heap corruption on that 2054 platform. 2055 2056 *Adam Joseph* 2057 2058 * Fix handling of a ticket key callback that returns 0 in TLSv1.3 to not send a 2059 ticket 2060 2061 *Matt Caswell* 2062 2063 * Correctly handle a retransmitted ClientHello in DTLS 2064 2065 *Matt Caswell* 2066 2067 * Fixed detection of ktls support in cross-compile environment on Linux 2068 2069 *Tomas Mraz* 2070 2071 * Fixed some regressions and test failures when running the 3.0.0 FIPS provider 2072 against 3.0.x 2073 2074 *Paul Dale* 2075 2076 * Fixed SSL_pending() and SSL_has_pending() with DTLS which were failing to 2077 report correct results in some cases 2078 2079 *Matt Caswell* 2080 2081 * Fix UWP builds by defining VirtualLock 2082 2083 *Charles Milette* 2084 2085 * For known safe primes use the minimum key length according to RFC 7919. 2086 Longer private key sizes unnecessarily raise the cycles needed to compute the 2087 shared secret without any increase of the real security. This fixes a 2088 regression from 1.1.1 where these shorter keys were generated for the known 2089 safe primes. 2090 2091 *Tomas Mraz* 2092 2093 * Added the loongarch64 target 2094 2095 *Shi Pujin* 2096 2097 * Fixed EC ASM flag passing. Flags for ASM implementations of EC curves were 2098 only passed to the FIPS provider and not to the default or legacy provider. 2099 2100 *Juergen Christ* 2101 2102 * Fixed reported performance degradation on aarch64. Restored the 2103 implementation prior to commit 2621751 ("aes/asm/aesv8-armx.pl: avoid 2104 32-bit lane assignment in CTR mode") for 64bit targets only, since it is 2105 reportedly 2-17% slower and the silicon errata only affects 32bit targets. 2106 The new algorithm is still used for 32 bit targets. 2107 2108 *Bernd Edlinger* 2109 2110 * Added a missing header for memcmp that caused compilation failure on some 2111 platforms 2112 2113 *Gregor Jasny* 2114 2115### Changes between 3.0.4 and 3.0.5 [5 Jul 2022] 2116 2117 * The OpenSSL 3.0.4 release introduced a serious bug in the RSA 2118 implementation for X86_64 CPUs supporting the AVX512IFMA instructions. 2119 This issue makes the RSA implementation with 2048 bit private keys 2120 incorrect on such machines and memory corruption will happen during 2121 the computation. As a consequence of the memory corruption an attacker 2122 may be able to trigger a remote code execution on the machine performing 2123 the computation. 2124 2125 SSL/TLS servers or other servers using 2048 bit RSA private keys running 2126 on machines supporting AVX512IFMA instructions of the X86_64 architecture 2127 are affected by this issue. 2128 ([CVE-2022-2274]) 2129 2130 *Xi Ruoyao* 2131 2132 * AES OCB mode for 32-bit x86 platforms using the AES-NI assembly optimised 2133 implementation would not encrypt the entirety of the data under some 2134 circumstances. This could reveal sixteen bytes of data that was 2135 preexisting in the memory that wasn't written. In the special case of 2136 "in place" encryption, sixteen bytes of the plaintext would be revealed. 2137 2138 Since OpenSSL does not support OCB based cipher suites for TLS and DTLS, 2139 they are both unaffected. 2140 ([CVE-2022-2097]) 2141 2142 *Alex Chernyakhovsky, David Benjamin, Alejandro Sedeño* 2143 2144### Changes between 3.0.3 and 3.0.4 [21 Jun 2022] 2145 2146 * In addition to the c_rehash shell command injection identified in 2147 CVE-2022-1292, further bugs where the c_rehash script does not 2148 properly sanitise shell metacharacters to prevent command injection have been 2149 fixed. 2150 2151 When the CVE-2022-1292 was fixed it was not discovered that there 2152 are other places in the script where the file names of certificates 2153 being hashed were possibly passed to a command executed through the shell. 2154 2155 This script is distributed by some operating systems in a manner where 2156 it is automatically executed. On such operating systems, an attacker 2157 could execute arbitrary commands with the privileges of the script. 2158 2159 Use of the c_rehash script is considered obsolete and should be replaced 2160 by the OpenSSL rehash command line tool. 2161 (CVE-2022-2068) 2162 2163 *Daniel Fiala, Tomáš Mráz* 2164 2165 * Case insensitive string comparison no longer uses locales. It has instead 2166 been directly implemented. 2167 2168 *Paul Dale* 2169 2170### Changes between 3.0.2 and 3.0.3 [3 May 2022] 2171 2172 * Case insensitive string comparison is reimplemented via new locale-agnostic 2173 comparison functions OPENSSL_str[n]casecmp always using the POSIX locale for 2174 comparison. The previous implementation had problems when the Turkish locale 2175 was used. 2176 2177 *Dmitry Belyavskiy* 2178 2179 * Fixed a bug in the c_rehash script which was not properly sanitising shell 2180 metacharacters to prevent command injection. This script is distributed by 2181 some operating systems in a manner where it is automatically executed. On 2182 such operating systems, an attacker could execute arbitrary commands with the 2183 privileges of the script. 2184 2185 Use of the c_rehash script is considered obsolete and should be replaced 2186 by the OpenSSL rehash command line tool. 2187 (CVE-2022-1292) 2188 2189 *Tomáš Mráz* 2190 2191 * Fixed a bug in the function `OCSP_basic_verify` that verifies the signer 2192 certificate on an OCSP response. The bug caused the function in the case 2193 where the (non-default) flag OCSP_NOCHECKS is used to return a postivie 2194 response (meaning a successful verification) even in the case where the 2195 response signing certificate fails to verify. 2196 2197 It is anticipated that most users of `OCSP_basic_verify` will not use the 2198 OCSP_NOCHECKS flag. In this case the `OCSP_basic_verify` function will return 2199 a negative value (indicating a fatal error) in the case of a certificate 2200 verification failure. The normal expected return value in this case would be 2201 0. 2202 2203 This issue also impacts the command line OpenSSL "ocsp" application. When 2204 verifying an ocsp response with the "-no_cert_checks" option the command line 2205 application will report that the verification is successful even though it 2206 has in fact failed. In this case the incorrect successful response will also 2207 be accompanied by error messages showing the failure and contradicting the 2208 apparently successful result. 2209 ([CVE-2022-1343]) 2210 2211 *Matt Caswell* 2212 2213 * Fixed a bug where the RC4-MD5 ciphersuite incorrectly used the 2214 AAD data as the MAC key. This made the MAC key trivially predictable. 2215 2216 An attacker could exploit this issue by performing a man-in-the-middle attack 2217 to modify data being sent from one endpoint to an OpenSSL 3.0 recipient such 2218 that the modified data would still pass the MAC integrity check. 2219 2220 Note that data sent from an OpenSSL 3.0 endpoint to a non-OpenSSL 3.0 2221 endpoint will always be rejected by the recipient and the connection will 2222 fail at that point. Many application protocols require data to be sent from 2223 the client to the server first. Therefore, in such a case, only an OpenSSL 2224 3.0 server would be impacted when talking to a non-OpenSSL 3.0 client. 2225 2226 If both endpoints are OpenSSL 3.0 then the attacker could modify data being 2227 sent in both directions. In this case both clients and servers could be 2228 affected, regardless of the application protocol. 2229 2230 Note that in the absence of an attacker this bug means that an OpenSSL 3.0 2231 endpoint communicating with a non-OpenSSL 3.0 endpoint will fail to complete 2232 the handshake when using this ciphersuite. 2233 2234 The confidentiality of data is not impacted by this issue, i.e. an attacker 2235 cannot decrypt data that has been encrypted using this ciphersuite - they can 2236 only modify it. 2237 2238 In order for this attack to work both endpoints must legitimately negotiate 2239 the RC4-MD5 ciphersuite. This ciphersuite is not compiled by default in 2240 OpenSSL 3.0, and is not available within the default provider or the default 2241 ciphersuite list. This ciphersuite will never be used if TLSv1.3 has been 2242 negotiated. In order for an OpenSSL 3.0 endpoint to use this ciphersuite the 2243 following must have occurred: 2244 2245 1) OpenSSL must have been compiled with the (non-default) compile time option 2246 enable-weak-ssl-ciphers 2247 2248 2) OpenSSL must have had the legacy provider explicitly loaded (either 2249 through application code or via configuration) 2250 2251 3) The ciphersuite must have been explicitly added to the ciphersuite list 2252 2253 4) The libssl security level must have been set to 0 (default is 1) 2254 2255 5) A version of SSL/TLS below TLSv1.3 must have been negotiated 2256 2257 6) Both endpoints must negotiate the RC4-MD5 ciphersuite in preference to any 2258 others that both endpoints have in common 2259 (CVE-2022-1434) 2260 2261 *Matt Caswell* 2262 2263 * Fix a bug in the OPENSSL_LH_flush() function that breaks reuse of the memory 2264 occupied by the removed hash table entries. 2265 2266 This function is used when decoding certificates or keys. If a long lived 2267 process periodically decodes certificates or keys its memory usage will 2268 expand without bounds and the process might be terminated by the operating 2269 system causing a denial of service. Also traversing the empty hash table 2270 entries will take increasingly more time. 2271 2272 Typically such long lived processes might be TLS clients or TLS servers 2273 configured to accept client certificate authentication. 2274 (CVE-2022-1473) 2275 2276 *Hugo Landau, Aliaksei Levin* 2277 2278 * The functions `OPENSSL_LH_stats` and `OPENSSL_LH_stats_bio` now only report 2279 the `num_items`, `num_nodes` and `num_alloc_nodes` statistics. All other 2280 statistics are no longer supported. For compatibility, these statistics are 2281 still listed in the output but are now always reported as zero. 2282 2283 *Hugo Landau* 2284 2285### Changes between 3.0.1 and 3.0.2 [15 Mar 2022] 2286 2287 * Fixed a bug in the BN_mod_sqrt() function that can cause it to loop forever 2288 for non-prime moduli. 2289 2290 Internally this function is used when parsing certificates that contain 2291 elliptic curve public keys in compressed form or explicit elliptic curve 2292 parameters with a base point encoded in compressed form. 2293 2294 It is possible to trigger the infinite loop by crafting a certificate that 2295 has invalid explicit curve parameters. 2296 2297 Since certificate parsing happens prior to verification of the certificate 2298 signature, any process that parses an externally supplied certificate may thus 2299 be subject to a denial of service attack. The infinite loop can also be 2300 reached when parsing crafted private keys as they can contain explicit 2301 elliptic curve parameters. 2302 2303 Thus vulnerable situations include: 2304 2305 - TLS clients consuming server certificates 2306 - TLS servers consuming client certificates 2307 - Hosting providers taking certificates or private keys from customers 2308 - Certificate authorities parsing certification requests from subscribers 2309 - Anything else which parses ASN.1 elliptic curve parameters 2310 2311 Also any other applications that use the BN_mod_sqrt() where the attacker 2312 can control the parameter values are vulnerable to this DoS issue. 2313 ([CVE-2022-0778]) 2314 2315 *Tomáš Mráz* 2316 2317 * Add ciphersuites based on DHE_PSK (RFC 4279) and ECDHE_PSK (RFC 5489) 2318 to the list of ciphersuites providing Perfect Forward Secrecy as 2319 required by SECLEVEL >= 3. 2320 2321 *Dmitry Belyavskiy, Nicola Tuveri* 2322 2323 * Made the AES constant time code for no-asm configurations 2324 optional due to the resulting 95% performance degradation. 2325 The AES constant time code can be enabled, for no assembly 2326 builds, with: ./config no-asm -DOPENSSL_AES_CONST_TIME 2327 2328 *Paul Dale* 2329 2330 * Fixed PEM_write_bio_PKCS8PrivateKey() to make it possible to use empty 2331 passphrase strings. 2332 2333 *Darshan Sen* 2334 2335 * The negative return value handling of the certificate verification callback 2336 was reverted. The replacement is to set the verification retry state with 2337 the SSL_set_retry_verify() function. 2338 2339 *Tomáš Mráz* 2340 2341### Changes between 3.0.0 and 3.0.1 [14 Dec 2021] 2342 2343 * Fixed invalid handling of X509_verify_cert() internal errors in libssl 2344 Internally libssl in OpenSSL calls X509_verify_cert() on the client side to 2345 verify a certificate supplied by a server. That function may return a 2346 negative return value to indicate an internal error (for example out of 2347 memory). Such a negative return value is mishandled by OpenSSL and will cause 2348 an IO function (such as SSL_connect() or SSL_do_handshake()) to not indicate 2349 success and a subsequent call to SSL_get_error() to return the value 2350 SSL_ERROR_WANT_RETRY_VERIFY. This return value is only supposed to be 2351 returned by OpenSSL if the application has previously called 2352 SSL_CTX_set_cert_verify_callback(). Since most applications do not do this 2353 the SSL_ERROR_WANT_RETRY_VERIFY return value from SSL_get_error() will be 2354 totally unexpected and applications may not behave correctly as a result. The 2355 exact behaviour will depend on the application but it could result in 2356 crashes, infinite loops or other similar incorrect responses. 2357 2358 This issue is made more serious in combination with a separate bug in OpenSSL 2359 3.0 that will cause X509_verify_cert() to indicate an internal error when 2360 processing a certificate chain. This will occur where a certificate does not 2361 include the Subject Alternative Name extension but where a Certificate 2362 Authority has enforced name constraints. This issue can occur even with valid 2363 chains. 2364 ([CVE-2021-4044]) 2365 2366 *Matt Caswell* 2367 2368 * Corrected a few file name and file reference bugs in the build, 2369 installation and setup scripts, which lead to installation verification 2370 failures. Slightly enhanced the installation verification script. 2371 2372 *Richard Levitte* 2373 2374 * Fixed EVP_PKEY_eq() to make it possible to use it with strictly private 2375 keys. 2376 2377 *Richard Levitte* 2378 2379 * Fixed PVK encoder to properly query for the passphrase. 2380 2381 *Tomáš Mráz* 2382 2383 * Multiple fixes in the OSSL_HTTP API functions. 2384 2385 *David von Oheimb* 2386 2387 * Allow sign extension in OSSL_PARAM_allocate_from_text() for the 2388 OSSL_PARAM_INTEGER data type and return error on negative numbers 2389 used with the OSSL_PARAM_UNSIGNED_INTEGER data type. Make 2390 OSSL_PARAM_BLD_push_BN{,_pad}() return an error on negative numbers. 2391 2392 *Richard Levitte* 2393 2394 * Allow copying uninitialized digest contexts with EVP_MD_CTX_copy_ex. 2395 2396 *Tomáš Mráz* 2397 2398 * Fixed detection of ARMv7 and ARM64 CPU features on FreeBSD. 2399 2400 *Allan Jude* 2401 2402 * Multiple threading fixes. 2403 2404 *Matt Caswell* 2405 2406 * Added NULL digest implementation to keep compatibility with 1.1.1 version. 2407 2408 *Tomáš Mráz* 2409 2410 * Allow fetching an operation from the provider that owns an unexportable key 2411 as a fallback if that is still allowed by the property query. 2412 2413 *Richard Levitte* 2414 2415### Changes between 1.1.1 and 3.0.0 [7 Sep 2021] 2416 2417 * TLS_MAX_VERSION, DTLS_MAX_VERSION and DTLS_MIN_VERSION constants are now 2418 deprecated. 2419 2420 *Matt Caswell* 2421 2422 * The `OPENSSL_s390xcap` environment variable can be used to set bits in the 2423 S390X capability vector to zero. This simplifies testing of different code 2424 paths on S390X architecture. 2425 2426 *Patrick Steuer* 2427 2428 * Encrypting more than 2^64 TLS records with AES-GCM is disallowed 2429 as per FIPS 140-2 IG A.5 "Key/IV Pair Uniqueness Requirements from 2430 SP 800-38D". The communication will fail at this point. 2431 2432 *Paul Dale* 2433 2434 * The EC_GROUP_clear_free() function is deprecated as there is nothing 2435 confidential in EC_GROUP data. 2436 2437 *Nicola Tuveri* 2438 2439 * The byte order mark (BOM) character is ignored if encountered at the 2440 beginning of a PEM-formatted file. 2441 2442 *Dmitry Belyavskiy* 2443 2444 * Added CMS support for the Russian GOST algorithms. 2445 2446 *Dmitry Belyavskiy* 2447 2448 * Due to move of the implementation of cryptographic operations 2449 to the providers, validation of various operation parameters can 2450 be postponed until the actual operation is executed where previously 2451 it happened immediately when an operation parameter was set. 2452 2453 For example when setting an unsupported curve with 2454 EVP_PKEY_CTX_set_ec_paramgen_curve_nid() this function call will not 2455 fail but later keygen operations with the EVP_PKEY_CTX will fail. 2456 2457 *OpenSSL team members and many third party contributors* 2458 2459 * The EVP_get_cipherbyname() function will return NULL for algorithms such as 2460 "AES-128-SIV", "AES-128-CBC-CTS" and "CAMELLIA-128-CBC-CTS" which were 2461 previously only accessible via low-level interfaces. Use EVP_CIPHER_fetch() 2462 instead to retrieve these algorithms from a provider. 2463 2464 *Shane Lontis* 2465 2466 * On build targets where the multilib postfix is set in the build 2467 configuration the libdir directory was changing based on whether 2468 the lib directory with the multilib postfix exists on the system 2469 or not. This unpredictable behavior was removed and eventual 2470 multilib postfix is now always added to the default libdir. Use 2471 `--libdir=lib` to override the libdir if adding the postfix is 2472 undesirable. 2473 2474 *Jan Lána* 2475 2476 * The triple DES key wrap functionality now conforms to RFC 3217 but is 2477 no longer interoperable with OpenSSL 1.1.1. 2478 2479 *Paul Dale* 2480 2481 * The ERR_GET_FUNC() function was removed. With the loss of meaningful 2482 function codes, this function can only cause problems for calling 2483 applications. 2484 2485 *Paul Dale* 2486 2487 * Add a configurable flag to output date formats as ISO 8601. Does not 2488 change the default date format. 2489 2490 *William Edmisten* 2491 2492 * Version of MSVC earlier than 1300 could get link warnings, which could 2493 be suppressed if the undocumented -DI_CAN_LIVE_WITH_LNK4049 was set. 2494 Support for this flag has been removed. 2495 2496 *Rich Salz* 2497 2498 * Rework and make DEBUG macros consistent. Remove unused -DCONF_DEBUG, 2499 -DBN_CTX_DEBUG, and REF_PRINT. Add a new tracing category and use it for 2500 printing reference counts. Rename -DDEBUG_UNUSED to -DUNUSED_RESULT_DEBUG 2501 Fix BN_DEBUG_RAND so it compiles and, when set, force DEBUG_RAND to be set 2502 also. Rename engine_debug_ref to be ENGINE_REF_PRINT also for consistency. 2503 2504 *Rich Salz* 2505 2506 * The signatures of the functions to get and set options on SSL and 2507 SSL_CTX objects changed from "unsigned long" to "uint64_t" type. 2508 Some source code changes may be required. 2509 2510 *Rich Salz* 2511 2512 * The public definitions of conf_method_st and conf_st have been 2513 deprecated. They will be made opaque in a future release. 2514 2515 *Rich Salz and Tomáš Mráz* 2516 2517 * Client-initiated renegotiation is disabled by default. To allow it, use 2518 the -client_renegotiation option, the SSL_OP_ALLOW_CLIENT_RENEGOTIATION 2519 flag, or the "ClientRenegotiation" config parameter as appropriate. 2520 2521 *Rich Salz* 2522 2523 * Add "abspath" and "includedir" pragma's to config files, to prevent, 2524 or modify relative pathname inclusion. 2525 2526 *Rich Salz* 2527 2528 * OpenSSL includes a cryptographic module that is intended to be FIPS 140-2 2529 validated. Please consult the README-FIPS and 2530 README-PROVIDERS files, as well as the migration guide. 2531 2532 *OpenSSL team members and many third party contributors* 2533 2534 * For the key types DH and DHX the allowed settable parameters are now different. 2535 2536 *Shane Lontis* 2537 2538 * The openssl commands that read keys, certificates, and CRLs now 2539 automatically detect the PEM or DER format of the input files. 2540 2541 *David von Oheimb, Richard Levitte, and Tomáš Mráz* 2542 2543 * Added enhanced PKCS#12 APIs which accept a library context. 2544 2545 *Jon Spillett* 2546 2547 * The default manual page suffix ($MANSUFFIX) has been changed to "ossl" 2548 2549 *Matt Caswell* 2550 2551 * Added support for Kernel TLS (KTLS). 2552 2553 *Boris Pismenny, John Baldwin and Andrew Gallatin* 2554 2555 * Support for RFC 5746 secure renegotiation is now required by default for 2556 SSL or TLS connections to succeed. 2557 2558 *Benjamin Kaduk* 2559 2560 * The signature of the `copy` functional parameter of the 2561 EVP_PKEY_meth_set_copy() function has changed so its `src` argument is 2562 now `const EVP_PKEY_CTX *` instead of `EVP_PKEY_CTX *`. Similarly 2563 the signature of the `pub_decode` functional parameter of the 2564 EVP_PKEY_asn1_set_public() function has changed so its `pub` argument is 2565 now `const X509_PUBKEY *` instead of `X509_PUBKEY *`. 2566 2567 *David von Oheimb* 2568 2569 * The error return values from some control calls (ctrl) have changed. 2570 2571 *Paul Dale* 2572 2573 * A public key check is now performed during EVP_PKEY_derive_set_peer(). 2574 2575 *Shane Lontis* 2576 2577 * Many functions in the EVP_ namespace that are getters of values from 2578 implementations or contexts were renamed to include get or get0 in their 2579 names. Old names are provided as macro aliases for compatibility and 2580 are not deprecated. 2581 2582 *Tomáš Mráz* 2583 2584 * The EVP_PKEY_CTRL_PKCS7_ENCRYPT, EVP_PKEY_CTRL_PKCS7_DECRYPT, 2585 EVP_PKEY_CTRL_PKCS7_SIGN, EVP_PKEY_CTRL_CMS_ENCRYPT, 2586 EVP_PKEY_CTRL_CMS_DECRYPT, and EVP_PKEY_CTRL_CMS_SIGN control operations 2587 are deprecated. 2588 2589 *Tomáš Mráz* 2590 2591 * The EVP_PKEY_public_check() and EVP_PKEY_param_check() functions now work for 2592 more key types. 2593 2594 * The output from the command line applications may have minor 2595 changes. 2596 2597 *Paul Dale* 2598 2599 * The output from numerous "printing" may have minor changes. 2600 2601 *David von Oheimb* 2602 2603 * Windows thread synchronization uses read/write primitives (SRWLock) when 2604 supported by the OS, otherwise CriticalSection continues to be used. 2605 2606 *Vincent Drake* 2607 2608 * Add filter BIO BIO_f_readbuffer() that allows BIO_tell() and BIO_seek() to 2609 work on read only BIO source/sinks that do not support these functions. 2610 This allows piping or redirection of a file BIO using stdin to be buffered 2611 into memory. This is used internally in OSSL_DECODER_from_bio(). 2612 2613 *Shane Lontis* 2614 2615 * OSSL_STORE_INFO_get_type() may now return an additional value. In 1.1.1 2616 this function would return one of the values OSSL_STORE_INFO_NAME, 2617 OSSL_STORE_INFO_PKEY, OSSL_STORE_INFO_PARAMS, OSSL_STORE_INFO_CERT or 2618 OSSL_STORE_INFO_CRL. Decoded public keys would previously have been reported 2619 as type OSSL_STORE_INFO_PKEY in 1.1.1. In 3.0 decoded public keys are now 2620 reported as having the new type OSSL_STORE_INFO_PUBKEY. Applications 2621 using this function should be amended to handle the changed return value. 2622 2623 *Richard Levitte* 2624 2625 * Improved adherence to Enhanced Security Services (ESS, RFC 2634 and RFC 5035) 2626 for the TSP and CMS Advanced Electronic Signatures (CAdES) implementations. 2627 As required by RFC 5035 check both ESSCertID and ESSCertIDv2 if both present. 2628 Correct the semantics of checking the validation chain in case ESSCertID{,v2} 2629 contains more than one certificate identifier: This means that all 2630 certificates referenced there MUST be part of the validation chain. 2631 2632 *David von Oheimb* 2633 2634 * The implementation of older EVP ciphers related to CAST, IDEA, SEED, RC2, RC4, 2635 RC5, DESX and DES have been moved to the legacy provider. 2636 2637 *Matt Caswell* 2638 2639 * The implementation of the EVP digests MD2, MD4, MDC2, WHIRLPOOL and 2640 RIPEMD-160 have been moved to the legacy provider. 2641 2642 *Matt Caswell* 2643 2644 * The deprecated function EVP_PKEY_get0() now returns NULL being called for a 2645 provided key. 2646 2647 *Dmitry Belyavskiy* 2648 2649 * The deprecated functions EVP_PKEY_get0_RSA(), 2650 EVP_PKEY_get0_DSA(), EVP_PKEY_get0_EC_KEY(), EVP_PKEY_get0_DH(), 2651 EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and EVP_PKEY_get0_siphash() as 2652 well as the similarly named "get1" functions behave differently in 2653 OpenSSL 3.0. 2654 2655 *Matt Caswell* 2656 2657 * A number of functions handling low-level keys or engines were deprecated 2658 including EVP_PKEY_set1_engine(), EVP_PKEY_get0_engine(), EVP_PKEY_assign(), 2659 EVP_PKEY_get0(), EVP_PKEY_get0_hmac(), EVP_PKEY_get0_poly1305() and 2660 EVP_PKEY_get0_siphash(). 2661 2662 *Matt Caswell* 2663 2664 * PKCS#5 PBKDF1 key derivation has been moved from PKCS5_PBE_keyivgen() into 2665 the legacy crypto provider as an EVP_KDF. Applications requiring this KDF 2666 will need to load the legacy crypto provider. This includes these PBE 2667 algorithms which use this KDF: 2668 - NID_pbeWithMD2AndDES_CBC 2669 - NID_pbeWithMD5AndDES_CBC 2670 - NID_pbeWithSHA1AndRC2_CBC 2671 - NID_pbeWithMD2AndRC2_CBC 2672 - NID_pbeWithMD5AndRC2_CBC 2673 - NID_pbeWithSHA1AndDES_CBC 2674 2675 *Jon Spillett* 2676 2677 * Deprecated obsolete BIO_set_callback(), BIO_get_callback(), and 2678 BIO_debug_callback() functions. 2679 2680 *Tomáš Mráz* 2681 2682 * Deprecated obsolete EVP_PKEY_CTX_get0_dh_kdf_ukm() and 2683 EVP_PKEY_CTX_get0_ecdh_kdf_ukm() functions. 2684 2685 *Tomáš Mráz* 2686 2687 * The RAND_METHOD APIs have been deprecated. 2688 2689 *Paul Dale* 2690 2691 * The SRP APIs have been deprecated. 2692 2693 *Matt Caswell* 2694 2695 * Add a compile time option to prevent the caching of provider fetched 2696 algorithms. This is enabled by including the no-cached-fetch option 2697 at configuration time. 2698 2699 *Paul Dale* 2700 2701 * pkcs12 now uses defaults of PBKDF2, AES and SHA-256, with a MAC iteration 2702 count of PKCS12_DEFAULT_ITER. 2703 2704 *Tomáš Mráz and Sahana Prasad* 2705 2706 * The openssl speed command does not use low-level API calls anymore. 2707 2708 *Tomáš Mráz* 2709 2710 * Parallel dual-prime 1024-bit modular exponentiation for AVX512_IFMA 2711 capable processors. 2712 2713 *Ilya Albrekht, Sergey Kirillov, Andrey Matyukov (Intel Corp)* 2714 2715 * Combining the Configure options no-ec and no-dh no longer disables TLSv1.3. 2716 2717 *Matt Caswell* 2718 2719 * Implemented support for fully "pluggable" TLSv1.3 groups. This means that 2720 providers may supply their own group implementations (using either the "key 2721 exchange" or the "key encapsulation" methods) which will automatically be 2722 detected and used by libssl. 2723 2724 *Matt Caswell, Nicola Tuveri* 2725 2726 * The undocumented function X509_certificate_type() has been deprecated; 2727 2728 *Rich Salz* 2729 2730 * Deprecated the obsolete BN_pseudo_rand() and BN_pseudo_rand_range(). 2731 2732 *Tomáš Mráz* 2733 2734 * Removed RSA padding mode for SSLv23 (which was only used for 2735 SSLv2). This includes the functions RSA_padding_check_SSLv23() and 2736 RSA_padding_add_SSLv23() and the `-ssl` option in the deprecated 2737 `rsautl` command. 2738 2739 *Rich Salz* 2740 2741 * Deprecated the obsolete X9.31 RSA key generation related functions. 2742 2743 * While a callback function set via `SSL_CTX_set_cert_verify_callback()` 2744 is not allowed to return a value > 1, this is no more taken as failure. 2745 2746 *Viktor Dukhovni and David von Oheimb* 2747 2748 * Deprecated the obsolete X9.31 RSA key generation related functions 2749 BN_X931_generate_Xpq(), BN_X931_derive_prime_ex(), and 2750 BN_X931_generate_prime_ex(). 2751 2752 *Tomáš Mráz* 2753 2754 * The default key generation method for the regular 2-prime RSA keys was 2755 changed to the FIPS 186-4 B.3.6 method. 2756 2757 *Shane Lontis* 2758 2759 * Deprecated the BN_is_prime_ex() and BN_is_prime_fasttest_ex() functions. 2760 2761 *Kurt Roeckx* 2762 2763 * Deprecated EVP_MD_CTX_set_update_fn() and EVP_MD_CTX_update_fn(). 2764 2765 *Rich Salz* 2766 2767 * Deprecated the type OCSP_REQ_CTX and the functions OCSP_REQ_CTX_*() and 2768 replaced with OSSL_HTTP_REQ_CTX and the functions OSSL_HTTP_REQ_CTX_*(). 2769 2770 *Rich Salz, Richard Levitte, and David von Oheimb* 2771 2772 * Deprecated `X509_http_nbio()` and `X509_CRL_http_nbio()`. 2773 2774 *David von Oheimb* 2775 2776 * Deprecated `OCSP_parse_url()`. 2777 2778 *David von Oheimb* 2779 2780 * Validation of SM2 keys has been separated from the validation of regular EC 2781 keys. 2782 2783 *Nicola Tuveri* 2784 2785 * Behavior of the `pkey` command is changed, 2786 when using the `-check` or `-pubcheck` 2787 switches: a validation failure triggers an early exit, returning a failure 2788 exit status to the parent process. 2789 2790 *Nicola Tuveri* 2791 2792 * Changed behavior of SSL_CTX_set_ciphersuites() and SSL_set_ciphersuites() 2793 to ignore unknown ciphers. 2794 2795 *Otto Hollmann* 2796 2797 * The `-cipher-commands` and `-digest-commands` options 2798 of the command line utility `list` have been deprecated. 2799 Instead use the `-cipher-algorithms` and `-digest-algorithms` options. 2800 2801 *Dmitry Belyavskiy* 2802 2803 * Added convenience functions for generating asymmetric key pairs: 2804 The 'quick' one-shot (yet somewhat limited) function L<EVP_PKEY_Q_keygen(3)> 2805 and macros for the most common cases: <EVP_RSA_gen(3)> and L<EVP_EC_gen(3)>. 2806 2807 *David von Oheimb* 2808 2809 * All of the low-level EC_KEY functions have been deprecated. 2810 2811 *Shane Lontis, Paul Dale, Richard Levitte, and Tomáš Mráz* 2812 2813 * Deprecated all the libcrypto and libssl error string loading 2814 functions. 2815 2816 *Richard Levitte* 2817 2818 * The functions SSL_CTX_set_tmp_dh_callback and SSL_set_tmp_dh_callback, as 2819 well as the macros SSL_CTX_set_tmp_dh() and SSL_set_tmp_dh() have been 2820 deprecated. 2821 2822 *Matt Caswell* 2823 2824 * The `-crypt` option to the `passwd` command line tool has been removed. 2825 2826 *Paul Dale* 2827 2828 * The -C option to the `x509`, `dhparam`, `dsaparam`, and `ecparam` commands 2829 were removed. 2830 2831 *Rich Salz* 2832 2833 * Add support for AES Key Wrap inverse ciphers to the EVP layer. 2834 2835 *Shane Lontis* 2836 2837 * Deprecated EVP_PKEY_set1_tls_encodedpoint() and 2838 EVP_PKEY_get1_tls_encodedpoint(). 2839 2840 *Matt Caswell* 2841 2842 * The security callback, which can be customised by application code, supports 2843 the security operation SSL_SECOP_TMP_DH. One location of the "other" parameter 2844 was incorrectly passing a DH object. It now passed an EVP_PKEY in all cases. 2845 2846 *Matt Caswell* 2847 2848 * Add PKCS7_get_octet_string() and PKCS7_type_is_other() to the public 2849 interface. Their functionality remains unchanged. 2850 2851 *Jordan Montgomery* 2852 2853 * Added new option for 'openssl list', '-providers', which will display the 2854 list of loaded providers, their names, version and status. It optionally 2855 displays their gettable parameters. 2856 2857 *Paul Dale* 2858 2859 * Removed EVP_PKEY_set_alias_type(). 2860 2861 *Richard Levitte* 2862 2863 * Deprecated `EVP_PKEY_CTX_set_rsa_keygen_pubexp()` and introduced 2864 `EVP_PKEY_CTX_set1_rsa_keygen_pubexp()`, which is now preferred. 2865 2866 *Jeremy Walch* 2867 2868 * Changed all "STACK" functions to be macros instead of inline functions. Macro 2869 parameters are still checked for type safety at compile time via helper 2870 inline functions. 2871 2872 *Matt Caswell* 2873 2874 * Remove the RAND_DRBG API 2875 2876 *Paul Dale and Matthias St. Pierre* 2877 2878 * Allow `SSL_set1_host()` and `SSL_add1_host()` to take IP literal addresses 2879 as well as actual hostnames. 2880 2881 *David Woodhouse* 2882 2883 * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently 2884 ignore TLS protocol version bounds when configuring DTLS-based contexts, and 2885 conversely, silently ignore DTLS protocol version bounds when configuring 2886 TLS-based contexts. The commands can be repeated to set bounds of both 2887 types. The same applies with the corresponding "min_protocol" and 2888 "max_protocol" command-line switches, in case some application uses both TLS 2889 and DTLS. 2890 2891 SSL_CTX instances that are created for a fixed protocol version (e.g. 2892 `TLSv1_server_method()`) also silently ignore version bounds. Previously 2893 attempts to apply bounds to these protocol versions would result in an 2894 error. Now only the "version-flexible" SSL_CTX instances are subject to 2895 limits in configuration files in command-line options. 2896 2897 *Viktor Dukhovni* 2898 2899 * Deprecated the `ENGINE` API. Engines should be replaced with providers 2900 going forward. 2901 2902 *Paul Dale* 2903 2904 * Reworked the recorded ERR codes to make better space for system errors. 2905 To distinguish them, the macro `ERR_SYSTEM_ERROR()` indicates if the 2906 given code is a system error (true) or an OpenSSL error (false). 2907 2908 *Richard Levitte* 2909 2910 * Reworked the test perl framework to better allow parallel testing. 2911 2912 *Nicola Tuveri and David von Oheimb* 2913 2914 * Added ciphertext stealing algorithms AES-128-CBC-CTS, AES-192-CBC-CTS and 2915 AES-256-CBC-CTS to the providers. CS1, CS2 and CS3 variants are supported. 2916 2917 *Shane Lontis* 2918 2919 * 'Configure' has been changed to figure out the configuration target if 2920 none is given on the command line. Consequently, the 'config' script is 2921 now only a mere wrapper. All documentation is changed to only mention 2922 'Configure'. 2923 2924 *Rich Salz and Richard Levitte* 2925 2926 * Added a library context `OSSL_LIB_CTX` that applications as well as 2927 other libraries can use to form a separate context within which 2928 libcrypto operations are performed. 2929 2930 *Richard Levitte* 2931 2932 * Added various `_ex` functions to the OpenSSL API that support using 2933 a non-default `OSSL_LIB_CTX`. 2934 2935 *OpenSSL team* 2936 2937 * Handshake now fails if Extended Master Secret extension is dropped 2938 on renegotiation. 2939 2940 *Tomáš Mráz* 2941 2942 * Dropped interactive mode from the `openssl` program. 2943 2944 *Richard Levitte* 2945 2946 * Deprecated `EVP_PKEY_cmp()` and `EVP_PKEY_cmp_parameters()`. 2947 2948 *David von Oheimb and Shane Lontis* 2949 2950 * Deprecated `EC_METHOD_get_field_type()`. 2951 2952 *Billy Bob Brumley* 2953 2954 * Deprecated EC_GFp_simple_method(), EC_GFp_mont_method(), 2955 EC_GF2m_simple_method(), EC_GFp_nist_method(), EC_GFp_nistp224_method() 2956 EC_GFp_nistp256_method(), and EC_GFp_nistp521_method(). 2957 2958 *Billy Bob Brumley* 2959 2960 * Deprecated EC_GROUP_new(), EC_GROUP_method_of(), and EC_POINT_method_of(). 2961 2962 *Billy Bob Brumley* 2963 2964 * Add CAdES-BES signature verification support, mostly derived 2965 from ESSCertIDv2 TS (RFC 5816) contribution by Marek Klein. 2966 2967 *Filipe Raimundo da Silva* 2968 2969 * Add CAdES-BES signature scheme and attributes support (RFC 5126) to CMS API. 2970 2971 *Antonio Iacono* 2972 2973 * Added the AuthEnvelopedData content type structure (RFC 5083) with AES-GCM 2974 parameter (RFC 5084) for the Cryptographic Message Syntax (CMS). 2975 2976 *Jakub Zelenka* 2977 2978 * Deprecated EC_POINT_make_affine() and EC_POINTs_make_affine(). 2979 2980 *Billy Bob Brumley* 2981 2982 * Deprecated EC_GROUP_precompute_mult(), EC_GROUP_have_precompute_mult(), and 2983 EC_KEY_precompute_mult(). 2984 2985 *Billy Bob Brumley* 2986 2987 * Deprecated EC_POINTs_mul(). 2988 2989 *Billy Bob Brumley* 2990 2991 * Removed FIPS_mode() and FIPS_mode_set(). 2992 2993 *Shane Lontis* 2994 2995 * The SSL option SSL_OP_IGNORE_UNEXPECTED_EOF is introduced. 2996 2997 *Dmitry Belyavskiy* 2998 2999 * Deprecated EC_POINT_set_Jprojective_coordinates_GFp() and 3000 EC_POINT_get_Jprojective_coordinates_GFp(). 3001 3002 *Billy Bob Brumley* 3003 3004 * Added OSSL_PARAM_BLD to the public interface. This allows OSSL_PARAM 3005 arrays to be more easily constructed via a series of utility functions. 3006 Create a parameter builder using OSSL_PARAM_BLD_new(), add parameters using 3007 the various push functions and finally convert to a passable OSSL_PARAM 3008 array using OSSL_PARAM_BLD_to_param(). 3009 3010 *Paul Dale* 3011 3012 * The security strength of SHA1 and MD5 based signatures in TLS has been 3013 reduced. 3014 3015 *Kurt Roeckx* 3016 3017 * Added EVP_PKEY_set_type_by_keymgmt(), to initialise an EVP_PKEY to 3018 contain a provider side internal key. 3019 3020 *Richard Levitte* 3021 3022 * ASN1_verify(), ASN1_digest() and ASN1_sign() have been deprecated. 3023 3024 *Richard Levitte* 3025 3026 * Project text documents not yet having a proper file name extension 3027 (`HACKING`, `LICENSE`, `NOTES*`, `README*`, `VERSION`) have been renamed to 3028 `*.md` as far as reasonable, else `*.txt`, for better use with file managers. 3029 3030 *David von Oheimb* 3031 3032 * The main project documents (README, NEWS, CHANGES, INSTALL, SUPPORT) 3033 have been converted to Markdown with the goal to produce documents 3034 which not only look pretty when viewed online in the browser, but 3035 remain well readable inside a plain text editor. 3036 3037 To achieve this goal, a 'minimalistic' Markdown style has been applied 3038 which avoids formatting elements that interfere too much with the 3039 reading flow in the text file. For example, it 3040 3041 * avoids [ATX headings][] and uses [setext headings][] instead 3042 (which works for `<h1>` and `<h2>` headings only). 3043 * avoids [inline links][] and uses [reference links][] instead. 3044 * avoids [fenced code blocks][] and uses [indented code blocks][] instead. 3045 3046 [ATX headings]: https://github.github.com/gfm/#atx-headings 3047 [setext headings]: https://github.github.com/gfm/#setext-headings 3048 [inline links]: https://github.github.com/gfm/#inline-link 3049 [reference links]: https://github.github.com/gfm/#reference-link 3050 [fenced code blocks]: https://github.github.com/gfm/#fenced-code-blocks 3051 [indented code blocks]: https://github.github.com/gfm/#indented-code-blocks 3052 3053 *Matthias St. Pierre* 3054 3055 * The test suite is changed to preserve results of each test recipe. 3056 A new directory test-runs/ with subdirectories named like the 3057 test recipes are created in the build tree for this purpose. 3058 3059 *Richard Levitte* 3060 3061 * Added an implementation of CMP and CRMF (RFC 4210, RFC 4211 RFC 6712). 3062 This adds `crypto/cmp/`, `crpyto/crmf/`, `apps/cmp.c`, and `test/cmp_*`. 3063 See L<openssl-cmp(1)> and L<OSSL_CMP_exec_IR_ses(3)> as starting points. 3064 3065 *David von Oheimb, Martin Peylo* 3066 3067 * Generalized the HTTP client code from `crypto/ocsp/` into `crpyto/http/`. 3068 It supports arbitrary request and response content types, GET redirection, 3069 TLS, connections via HTTP(S) proxies, connections and exchange via 3070 user-defined BIOs (allowing implicit connections), persistent connections, 3071 and timeout checks. See L<OSSL_HTTP_transfer(3)> etc. for details. 3072 The legacy OCSP-focused (and only partly documented) API 3073 is retained for backward compatibility, while most of it is deprecated. 3074 3075 *David von Oheimb* 3076 3077 * Added `util/check-format.pl`, a tool for checking adherence to the 3078 OpenSSL coding style <https://www.openssl.org/policies/codingstyle.html>. 3079 The checks performed are incomplete and yield some false positives. 3080 Still the tool should be useful for detecting most typical glitches. 3081 3082 *David von Oheimb* 3083 3084 * `BIO_do_connect()` and `BIO_do_handshake()` have been extended: 3085 If domain name resolution yields multiple IP addresses all of them are tried 3086 after `connect()` failures. 3087 3088 *David von Oheimb* 3089 3090 * All of the low-level RSA functions have been deprecated. 3091 3092 *Paul Dale* 3093 3094 * X509 certificates signed using SHA1 are no longer allowed at security 3095 level 1 and above. 3096 3097 *Kurt Roeckx* 3098 3099 * The command line utilities dhparam, dsa, gendsa and dsaparam have been 3100 modified to use PKEY APIs. These commands are now in maintenance mode 3101 and no new features will be added to them. 3102 3103 *Paul Dale* 3104 3105 * The command line utility rsautl has been deprecated. 3106 3107 *Paul Dale* 3108 3109 * The command line utilities genrsa and rsa have been modified to use PKEY 3110 APIs. They now write PKCS#8 keys by default. These commands are now in 3111 maintenance mode and no new features will be added to them. 3112 3113 *Paul Dale* 3114 3115 * All of the low-level DH functions have been deprecated. 3116 3117 *Paul Dale and Matt Caswell* 3118 3119 * All of the low-level DSA functions have been deprecated. 3120 3121 *Paul Dale* 3122 3123 * Reworked the treatment of EC EVP_PKEYs with the SM2 curve to 3124 automatically become EVP_PKEY_SM2 rather than EVP_PKEY_EC. 3125 3126 *Richard Levitte* 3127 3128 * Deprecated low-level ECDH and ECDSA functions. 3129 3130 *Paul Dale* 3131 3132 * Deprecated EVP_PKEY_decrypt_old() and EVP_PKEY_encrypt_old(). 3133 3134 *Richard Levitte* 3135 3136 * Enhanced the documentation of EVP_PKEY_get_size(), EVP_PKEY_get_bits() 3137 and EVP_PKEY_get_security_bits(). Especially EVP_PKEY_get_size() needed 3138 a new formulation to include all the things it can be used for, 3139 as well as words of caution. 3140 3141 *Richard Levitte* 3142 3143 * The SSL_CTX_set_tlsext_ticket_key_cb(3) function has been deprecated. 3144 3145 *Paul Dale* 3146 3147 * All of the low-level HMAC functions have been deprecated. 3148 3149 *Paul Dale and David von Oheimb* 3150 3151 * Over two thousand fixes were made to the documentation, including: 3152 - Common options (such as -rand/-writerand, TLS version control, etc) 3153 were refactored and point to newly-enhanced descriptions in openssl.pod. 3154 - Added style conformance for all options (with help from Richard Levitte), 3155 documented all reported missing options, added a CI build to check 3156 that all options are documented and that no unimplemented options 3157 are documented. 3158 - Documented some internals, such as all use of environment variables. 3159 - Addressed all internal broken L<> references. 3160 3161 *Rich Salz* 3162 3163 * All of the low-level CMAC functions have been deprecated. 3164 3165 *Paul Dale* 3166 3167 * The low-level MD2, MD4, MD5, MDC2, RIPEMD160 and Whirlpool digest 3168 functions have been deprecated. 3169 3170 *Paul Dale and David von Oheimb* 3171 3172 * Corrected the documentation of the return values from the `EVP_DigestSign*` 3173 set of functions. The documentation mentioned negative values for some 3174 errors, but this was never the case, so the mention of negative values 3175 was removed. 3176 3177 Code that followed the documentation and thereby check with something 3178 like `EVP_DigestSignInit(...) <= 0` will continue to work undisturbed. 3179 3180 *Richard Levitte* 3181 3182 * All of the low-level cipher functions have been deprecated. 3183 3184 *Matt Caswell and Paul Dale* 3185 3186 * Removed include/openssl/opensslconf.h.in and replaced it with 3187 include/openssl/configuration.h.in, which differs in not including 3188 <openssl/macros.h>. A short header include/openssl/opensslconf.h 3189 was added to include both. 3190 3191 This allows internal hacks where one might need to modify the set 3192 of configured macros, for example this if deprecated symbols are 3193 still supposed to be available internally: 3194 3195 #include <openssl/configuration.h> 3196 3197 #undef OPENSSL_NO_DEPRECATED 3198 #define OPENSSL_SUPPRESS_DEPRECATED 3199 3200 #include <openssl/macros.h> 3201 3202 This should not be used by applications that use the exported 3203 symbols, as that will lead to linking errors. 3204 3205 *Richard Levitte* 3206 3207 * Fixed an overflow bug in the x64_64 Montgomery squaring procedure 3208 used in exponentiation with 512-bit moduli. No EC algorithms are 3209 affected. Analysis suggests that attacks against 2-prime RSA1024, 3210 3-prime RSA1536, and DSA1024 as a result of this defect would be very 3211 difficult to perform and are not believed likely. Attacks against DH512 3212 are considered just feasible. However, for an attack the target would 3213 have to reuse the DH512 private key, which is not recommended anyway. 3214 Also applications directly using the low-level API BN_mod_exp may be 3215 affected if they use BN_FLG_CONSTTIME. 3216 ([CVE-2019-1551]) 3217 3218 *Andy Polyakov* 3219 3220 * Most memory-debug features have been deprecated, and the functionality 3221 replaced with no-ops. 3222 3223 *Rich Salz* 3224 3225 * Added documentation for the STACK API. 3226 3227 *Rich Salz* 3228 3229 * Introduced a new method type and API, OSSL_ENCODER, to represent 3230 generic encoders. These do the same sort of job that PEM writers 3231 and d2i functions do, but with support for methods supplied by 3232 providers, and the possibility for providers to support other 3233 formats as well. 3234 3235 *Richard Levitte* 3236 3237 * Introduced a new method type and API, OSSL_DECODER, to represent 3238 generic decoders. These do the same sort of job that PEM readers 3239 and i2d functions do, but with support for methods supplied by 3240 providers, and the possibility for providers to support other 3241 formats as well. 3242 3243 *Richard Levitte* 3244 3245 * Added a .pragma directive to the syntax of configuration files, to 3246 allow varying behavior in a supported and predictable manner. 3247 Currently added pragma: 3248 3249 .pragma dollarid:on 3250 3251 This allows dollar signs to be a keyword character unless it's 3252 followed by a opening brace or parenthesis. This is useful for 3253 platforms where dollar signs are commonly used in names, such as 3254 volume names and system directory names on VMS. 3255 3256 *Richard Levitte* 3257 3258 * Added functionality to create an EVP_PKEY from user data. 3259 3260 *Richard Levitte* 3261 3262 * Change the interpretation of the '--api' configuration option to 3263 mean that this is a desired API compatibility level with no 3264 further meaning. The previous interpretation, that this would 3265 also mean to remove all deprecated symbols up to and including 3266 the given version, no requires that 'no-deprecated' is also used 3267 in the configuration. 3268 3269 When building applications, the desired API compatibility level 3270 can be set with the OPENSSL_API_COMPAT macro like before. For 3271 API compatibility version below 3.0, the old style numerical 3272 value is valid as before, such as -DOPENSSL_API_COMPAT=0x10100000L. 3273 For version 3.0 and on, the value is expected to be the decimal 3274 value calculated from the major and minor version like this: 3275 3276 MAJOR * 10000 + MINOR * 100 3277 3278 Examples: 3279 3280 -DOPENSSL_API_COMPAT=30000 For 3.0 3281 -DOPENSSL_API_COMPAT=30200 For 3.2 3282 3283 To hide declarations that are deprecated up to and including the 3284 given API compatibility level, -DOPENSSL_NO_DEPRECATED must be 3285 given when building the application as well. 3286 3287 *Richard Levitte* 3288 3289 * Added the X509_LOOKUP_METHOD called X509_LOOKUP_store, to allow 3290 access to certificate and CRL stores via URIs and OSSL_STORE 3291 loaders. 3292 3293 This adds the following functions: 3294 3295 - X509_LOOKUP_store() 3296 - X509_STORE_load_file() 3297 - X509_STORE_load_path() 3298 - X509_STORE_load_store() 3299 - SSL_add_store_cert_subjects_to_stack() 3300 - SSL_CTX_set_default_verify_store() 3301 - SSL_CTX_load_verify_file() 3302 - SSL_CTX_load_verify_dir() 3303 - SSL_CTX_load_verify_store() 3304 3305 *Richard Levitte* 3306 3307 * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY. 3308 The presence of this system service is determined at run-time. 3309 3310 *Richard Levitte* 3311 3312 * Added functionality to create an EVP_PKEY context based on data 3313 for methods from providers. This takes an algorithm name and a 3314 property query string and simply stores them, with the intent 3315 that any operation that uses this context will use those strings 3316 to fetch the needed methods implicitly, thereby making the port 3317 of application written for pre-3.0 OpenSSL easier. 3318 3319 *Richard Levitte* 3320 3321 * The undocumented function NCONF_WIN32() has been deprecated; for 3322 conversion details see the HISTORY section of doc/man5/config.pod 3323 3324 *Rich Salz* 3325 3326 * Introduced the new functions EVP_DigestSignInit_ex() and 3327 EVP_DigestVerifyInit_ex(). The macros EVP_DigestSignUpdate() and 3328 EVP_DigestVerifyUpdate() have been converted to functions. See the man 3329 pages for further details. 3330 3331 *Matt Caswell* 3332 3333 * Over two thousand fixes were made to the documentation, including: 3334 adding missing command flags, better style conformance, documentation 3335 of internals, etc. 3336 3337 *Rich Salz, Richard Levitte* 3338 3339 * s390x assembly pack: add hardware-support for P-256, P-384, P-521, 3340 X25519, X448, Ed25519 and Ed448. 3341 3342 *Patrick Steuer* 3343 3344 * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just 3345 the first value. 3346 3347 *Jon Spillett* 3348 3349 * Deprecated the public definition of `ERR_STATE` as well as the function 3350 `ERR_get_state()`. This is done in preparation of making `ERR_STATE` an 3351 opaque type. 3352 3353 *Richard Levitte* 3354 3355 * Added ERR functionality to give callers access to the stored function 3356 names that have replaced the older function code based functions. 3357 3358 New functions are ERR_peek_error_func(), ERR_peek_last_error_func(), 3359 ERR_peek_error_data(), ERR_peek_last_error_data(), ERR_get_error_all(), 3360 ERR_peek_error_all() and ERR_peek_last_error_all(). 3361 3362 Deprecate ERR functions ERR_get_error_line(), ERR_get_error_line_data(), 3363 ERR_peek_error_line_data(), ERR_peek_last_error_line_data() and 3364 ERR_func_error_string(). 3365 3366 *Richard Levitte* 3367 3368 * Extended testing to be verbose for failing tests only. The make variables 3369 VERBOSE_FAILURE or VF can be used to enable this: 3370 3371 $ make VF=1 test # Unix 3372 $ mms /macro=(VF=1) test ! OpenVMS 3373 $ nmake VF=1 test # Windows 3374 3375 *Richard Levitte* 3376 3377 * Added the `-copy_extensions` option to the `x509` command for use with 3378 `-req` and `-x509toreq`. When given with the `copy` or `copyall` argument, 3379 all extensions in the request are copied to the certificate or vice versa. 3380 3381 *David von Oheimb*, *Kirill Stefanenkov <kirill_stefanenkov@rambler.ru>* 3382 3383 * Added the `-copy_extensions` option to the `req` command for use with 3384 `-x509`. When given with the `copy` or `copyall` argument, 3385 all extensions in the certification request are copied to the certificate. 3386 3387 *David von Oheimb* 3388 3389 * The `x509`, `req`, and `ca` commands now make sure that X.509v3 certificates 3390 they generate are by default RFC 5280 compliant in the following sense: 3391 There is a subjectKeyIdentifier extension with a hash value of the public key 3392 and for not self-signed certs there is an authorityKeyIdentifier extension 3393 with a keyIdentifier field or issuer information identifying the signing key. 3394 This is done unless some configuration overrides the new default behavior, 3395 such as `subjectKeyIdentifier = none` and `authorityKeyIdentifier = none`. 3396 3397 *David von Oheimb* 3398 3399 * Added several checks to `X509_verify_cert()` according to requirements in 3400 RFC 5280 in case `X509_V_FLAG_X509_STRICT` is set 3401 (which may be done by using the CLI option `-x509_strict`): 3402 * The basicConstraints of CA certificates must be marked critical. 3403 * CA certificates must explicitly include the keyUsage extension. 3404 * If a pathlenConstraint is given the key usage keyCertSign must be allowed. 3405 * The issuer name of any certificate must not be empty. 3406 * The subject name of CA certs, certs with keyUsage crlSign, 3407 and certs without subjectAlternativeName must not be empty. 3408 * If a subjectAlternativeName extension is given it must not be empty. 3409 * The signatureAlgorithm field and the cert signature must be consistent. 3410 * Any given authorityKeyIdentifier and any given subjectKeyIdentifier 3411 must not be marked critical. 3412 * The authorityKeyIdentifier must be given for X.509v3 certs 3413 unless they are self-signed. 3414 * The subjectKeyIdentifier must be given for all X.509v3 CA certs. 3415 3416 *David von Oheimb* 3417 3418 * Certificate verification using `X509_verify_cert()` meanwhile rejects EC keys 3419 with explicit curve parameters (specifiedCurve) as required by RFC 5480. 3420 3421 *Tomáš Mráz* 3422 3423 * For built-in EC curves, ensure an EC_GROUP built from the curve name is 3424 used even when parsing explicit parameters, when loading a encoded key 3425 or calling `EC_GROUP_new_from_ecpkparameters()`/ 3426 `EC_GROUP_new_from_ecparameters()`. 3427 This prevents bypass of security hardening and performance gains, 3428 especially for curves with specialized EC_METHODs. 3429 By default, if a key encoded with explicit parameters is loaded and later 3430 encoded, the output is still encoded with explicit parameters, even if 3431 internally a "named" EC_GROUP is used for computation. 3432 3433 *Nicola Tuveri* 3434 3435 * Compute ECC cofactors if not provided during EC_GROUP construction. Before 3436 this change, EC_GROUP_set_generator would accept order and/or cofactor as 3437 NULL. After this change, only the cofactor parameter can be NULL. It also 3438 does some minimal sanity checks on the passed order. 3439 ([CVE-2019-1547]) 3440 3441 *Billy Bob Brumley* 3442 3443 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey. 3444 An attack is simple, if the first CMS_recipientInfo is valid but the 3445 second CMS_recipientInfo is chosen ciphertext. If the second 3446 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct 3447 encryption key will be replaced by garbage, and the message cannot be 3448 decoded, but if the RSA decryption fails, the correct encryption key is 3449 used and the recipient will not notice the attack. 3450 As a work around for this potential attack the length of the decrypted 3451 key must be equal to the cipher default key length, in case the 3452 certificate is not given and all recipientInfo are tried out. 3453 The old behaviour can be re-enabled in the CMS code by setting the 3454 CMS_DEBUG_DECRYPT flag. 3455 3456 *Bernd Edlinger* 3457 3458 * Early start up entropy quality from the DEVRANDOM seed source has been 3459 improved for older Linux systems. The RAND subsystem will wait for 3460 /dev/random to be producing output before seeding from /dev/urandom. 3461 The seeded state is stored for future library initialisations using 3462 a system global shared memory segment. The shared memory identifier 3463 can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to 3464 the desired value. The default identifier is 114. 3465 3466 *Paul Dale* 3467 3468 * Revised BN_generate_prime_ex to not avoid factors 2..17863 in p-1 3469 when primes for RSA keys are computed. 3470 Since we previously always generated primes == 2 (mod 3) for RSA keys, 3471 the 2-prime and 3-prime RSA modules were easy to distinguish, since 3472 `N = p*q = 1 (mod 3)`, but `N = p*q*r = 2 (mod 3)`. Therefore, fingerprinting 3473 2-prime vs. 3-prime RSA keys was possible by computing N mod 3. 3474 This avoids possible fingerprinting of newly generated RSA modules. 3475 3476 *Bernd Edlinger* 3477 3478 * Correct the extended master secret constant on EBCDIC systems. Without this 3479 fix TLS connections between an EBCDIC system and a non-EBCDIC system that 3480 negotiate EMS will fail. Unfortunately this also means that TLS connections 3481 between EBCDIC systems with this fix, and EBCDIC systems without this 3482 fix will fail if they negotiate EMS. 3483 3484 *Matt Caswell* 3485 3486 * Changed the library initialisation so that the config file is now loaded 3487 by default. This was already the case for libssl. It now occurs for both 3488 libcrypto and libssl. Use the OPENSSL_INIT_NO_LOAD_CONFIG option to 3489 `OPENSSL_init_crypto()` to suppress automatic loading of a config file. 3490 3491 *Matt Caswell* 3492 3493 * Introduced new error raising macros, `ERR_raise()` and `ERR_raise_data()`, 3494 where the former acts as a replacement for `ERR_put_error()`, and the 3495 latter replaces the combination `ERR_put_error()` + `ERR_add_error_data()`. 3496 `ERR_raise_data()` adds more flexibility by taking a format string and 3497 an arbitrary number of arguments following it, to be processed with 3498 `BIO_snprintf()`. 3499 3500 *Richard Levitte* 3501 3502 * Introduced a new function, `OSSL_PROVIDER_available()`, which can be used 3503 to check if a named provider is loaded and available. When called, it 3504 will also activate all fallback providers if such are still present. 3505 3506 *Richard Levitte* 3507 3508 * Enforce a minimum DH modulus size of 512 bits. 3509 3510 *Bernd Edlinger* 3511 3512 * Changed DH parameters to generate the order q subgroup instead of 2q. 3513 Previously generated DH parameters are still accepted by DH_check 3514 but DH_generate_key works around that by clearing bit 0 of the 3515 private key for those. This avoids leaking bit 0 of the private key. 3516 3517 *Bernd Edlinger* 3518 3519 * Significantly reduce secure memory usage by the randomness pools. 3520 3521 *Paul Dale* 3522 3523 * `{CRYPTO,OPENSSL}_mem_debug_{push,pop}` are now no-ops and have been 3524 deprecated. 3525 3526 *Rich Salz* 3527 3528 * A new type, EVP_KEYEXCH, has been introduced to represent key exchange 3529 algorithms. An implementation of a key exchange algorithm can be obtained 3530 by using the function EVP_KEYEXCH_fetch(). An EVP_KEYEXCH algorithm can be 3531 used in a call to EVP_PKEY_derive_init_ex() which works in a similar way to 3532 the older EVP_PKEY_derive_init() function. See the man pages for the new 3533 functions for further details. 3534 3535 *Matt Caswell* 3536 3537 * The EVP_PKEY_CTX_set_dh_pad() macro has now been converted to a function. 3538 3539 *Matt Caswell* 3540 3541 * Removed the function names from error messages and deprecated the 3542 xxx_F_xxx define's. 3543 3544 *Richard Levitte* 3545 3546 * Removed NextStep support and the macro OPENSSL_UNISTD 3547 3548 *Rich Salz* 3549 3550 * Removed DES_check_key. Also removed OPENSSL_IMPLEMENT_GLOBAL, 3551 OPENSSL_GLOBAL_REF, OPENSSL_DECLARE_GLOBAL. 3552 Also removed "export var as function" capability; we do not export 3553 variables, only functions. 3554 3555 *Rich Salz* 3556 3557 * RC5_32_set_key has been changed to return an int type, with 0 indicating 3558 an error and 1 indicating success. In previous versions of OpenSSL this 3559 was a void type. If a key was set longer than the maximum possible this 3560 would crash. 3561 3562 *Matt Caswell* 3563 3564 * Support SM2 signing and verification schemes with X509 certificate. 3565 3566 *Paul Yang* 3567 3568 * Use SHA256 as the default digest for TS query in the `ts` app. 3569 3570 *Tomáš Mráz* 3571 3572 * Change PBKDF2 to conform to SP800-132 instead of the older PKCS5 RFC2898. 3573 3574 *Shane Lontis* 3575 3576 * Default cipher lists/suites are now available via a function, the 3577 #defines are deprecated. 3578 3579 *Todd Short* 3580 3581 * Add target VC-WIN32-UWP, VC-WIN64A-UWP, VC-WIN32-ARM-UWP and 3582 VC-WIN64-ARM-UWP in Windows OneCore target for making building libraries 3583 for Windows Store apps easier. Also, the "no-uplink" option has been added. 3584 3585 *Kenji Mouri* 3586 3587 * Join the directories crypto/x509 and crypto/x509v3 3588 3589 *Richard Levitte* 3590 3591 * Added command 'openssl kdf' that uses the EVP_KDF API. 3592 3593 *Shane Lontis* 3594 3595 * Added command 'openssl mac' that uses the EVP_MAC API. 3596 3597 *Shane Lontis* 3598 3599 * Added OPENSSL_info() to get diverse built-in OpenSSL data, such 3600 as default directories. Also added the command 'openssl info' 3601 for scripting purposes. 3602 3603 *Richard Levitte* 3604 3605 * The functions AES_ige_encrypt() and AES_bi_ige_encrypt() have been 3606 deprecated. 3607 3608 *Matt Caswell* 3609 3610 * Add prediction resistance to the DRBG reseeding process. 3611 3612 *Paul Dale* 3613 3614 * Limit the number of blocks in a data unit for AES-XTS to 2^20 as 3615 mandated by IEEE Std 1619-2018. 3616 3617 *Paul Dale* 3618 3619 * Added newline escaping functionality to a filename when using openssl dgst. 3620 This output format is to replicate the output format found in the `*sum` 3621 checksum programs. This aims to preserve backward compatibility. 3622 3623 *Matt Eaton, Richard Levitte, and Paul Dale* 3624 3625 * Removed the heartbeat message in DTLS feature, as it has very 3626 little usage and doesn't seem to fulfill a valuable purpose. 3627 The configuration option is now deprecated. 3628 3629 *Richard Levitte* 3630 3631 * Changed the output of 'openssl {digestname} < file' to display the 3632 digest name in its output. 3633 3634 *Richard Levitte* 3635 3636 * Added a new generic trace API which provides support for enabling 3637 instrumentation through trace output. 3638 3639 *Richard Levitte & Matthias St. Pierre* 3640 3641 * Added build tests for C++. These are generated files that only do one 3642 thing, to include one public OpenSSL head file each. This tests that 3643 the public header files can be usefully included in a C++ application. 3644 3645 This test isn't enabled by default. It can be enabled with the option 3646 'enable-buildtest-c++'. 3647 3648 *Richard Levitte* 3649 3650 * Added KB KDF (EVP_KDF_KB) to EVP_KDF. 3651 3652 *Robbie Harwood* 3653 3654 * Added SSH KDF (EVP_KDF_SSHKDF) and KRB5 KDF (EVP_KDF_KRB5KDF) to EVP_KDF. 3655 3656 *Simo Sorce* 3657 3658 * Added Single Step KDF (EVP_KDF_SS), X963 KDF, and X942 KDF to EVP_KDF. 3659 3660 *Shane Lontis* 3661 3662 * Added KMAC to EVP_MAC. 3663 3664 *Shane Lontis* 3665 3666 * Added property based algorithm implementation selection framework to 3667 the core. 3668 3669 *Paul Dale* 3670 3671 * Added SCA hardening for modular field inversion in EC_GROUP through 3672 a new dedicated field_inv() pointer in EC_METHOD. 3673 This also addresses a leakage affecting conversions from projective 3674 to affine coordinates. 3675 3676 *Billy Bob Brumley, Nicola Tuveri* 3677 3678 * Added EVP_KDF, an EVP layer KDF API, to simplify adding KDF and PRF 3679 implementations. This includes an EVP_PKEY to EVP_KDF bridge for 3680 those algorithms that were already supported through the EVP_PKEY API 3681 (scrypt, TLS1 PRF and HKDF). The low-level KDF functions for PBKDF2 3682 and scrypt are now wrappers that call EVP_KDF. 3683 3684 *David Makepeace* 3685 3686 * Build devcrypto engine as a dynamic engine. 3687 3688 *Eneas U de Queiroz* 3689 3690 * Add keyed BLAKE2 to EVP_MAC. 3691 3692 *Antoine Salon* 3693 3694 * Fix a bug in the computation of the endpoint-pair shared secret used 3695 by DTLS over SCTP. This breaks interoperability with older versions 3696 of OpenSSL like OpenSSL 1.1.0 and OpenSSL 1.0.2. There is a runtime 3697 switch SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG (off by default) enabling 3698 interoperability with such broken implementations. However, enabling 3699 this switch breaks interoperability with correct implementations. 3700 3701 * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a 3702 reused X509_PUBKEY object if the second PUBKEY is malformed. 3703 3704 *Bernd Edlinger* 3705 3706 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0(). 3707 3708 *Richard Levitte* 3709 3710 * Changed the license to the Apache License v2.0. 3711 3712 *Richard Levitte* 3713 3714 * Switch to a new version scheme using three numbers MAJOR.MINOR.PATCH. 3715 3716 - Major releases (indicated by incrementing the MAJOR release number) 3717 may introduce incompatible API/ABI changes. 3718 - Minor releases (indicated by incrementing the MINOR release number) 3719 may introduce new features but retain API/ABI compatibility. 3720 - Patch releases (indicated by incrementing the PATCH number) 3721 are intended for bug fixes and other improvements of existing 3722 features only (like improving performance or adding documentation) 3723 and retain API/ABI compatibility. 3724 3725 *Richard Levitte* 3726 3727 * Add support for RFC5297 SIV mode (siv128), including AES-SIV. 3728 3729 *Todd Short* 3730 3731 * Remove the 'dist' target and add a tarball building script. The 3732 'dist' target has fallen out of use, and it shouldn't be 3733 necessary to configure just to create a source distribution. 3734 3735 *Richard Levitte* 3736 3737 * Recreate the OS390-Unix config target. It no longer relies on a 3738 special script like it did for OpenSSL pre-1.1.0. 3739 3740 *Richard Levitte* 3741 3742 * Instead of having the source directories listed in Configure, add 3743 a 'build.info' keyword SUBDIRS to indicate what sub-directories to 3744 look into. 3745 3746 *Richard Levitte* 3747 3748 * Add GMAC to EVP_MAC. 3749 3750 *Paul Dale* 3751 3752 * Ported the HMAC, CMAC and SipHash EVP_PKEY_METHODs to EVP_MAC. 3753 3754 *Richard Levitte* 3755 3756 * Added EVP_MAC, an EVP layer MAC API, to simplify adding MAC 3757 implementations. This includes a generic EVP_PKEY to EVP_MAC bridge, 3758 to facilitate the continued use of MACs through raw private keys in 3759 functionality such as `EVP_DigestSign*` and `EVP_DigestVerify*`. 3760 3761 *Richard Levitte* 3762 3763 * Deprecate ECDH_KDF_X9_62(). 3764 3765 *Antoine Salon* 3766 3767 * Added EVP_PKEY_ECDH_KDF_X9_63 and ecdh_KDF_X9_63() as replacements for 3768 the EVP_PKEY_ECDH_KDF_X9_62 KDF type and ECDH_KDF_X9_62(). The old names 3769 are retained for backwards compatibility. 3770 3771 *Antoine Salon* 3772 3773 * AES-XTS mode now enforces that its two keys are different to mitigate 3774 the attacked described in "Efficient Instantiations of Tweakable 3775 Blockciphers and Refinements to Modes OCB and PMAC" by Phillip Rogaway. 3776 Details of this attack can be obtained from: 3777 <http://web.cs.ucdavis.edu/%7Erogaway/papers/offsets.pdf> 3778 3779 *Paul Dale* 3780 3781 * Rename the object files, i.e. give them other names than in previous 3782 versions. Their names now include the name of the final product, as 3783 well as its type mnemonic (bin, lib, shlib). 3784 3785 *Richard Levitte* 3786 3787 * Added new option for 'openssl list', '-objects', which will display the 3788 list of built in objects, i.e. OIDs with names. 3789 3790 *Richard Levitte* 3791 3792 * Added the options `-crl_lastupdate` and `-crl_nextupdate` to `openssl ca`, 3793 allowing the `lastUpdate` and `nextUpdate` fields in the generated CRL to 3794 be set explicitly. 3795 3796 *Chris Novakovic* 3797 3798 * Added support for Linux Kernel TLS data-path. The Linux Kernel data-path 3799 improves application performance by removing data copies and providing 3800 applications with zero-copy system calls such as sendfile and splice. 3801 3802 *Boris Pismenny* 3803 3804 * The SSL option SSL_OP_CLEANSE_PLAINTEXT is introduced. 3805 3806 *Martin Elshuber* 3807 3808 * `PKCS12_parse` now maintains the order of the parsed certificates 3809 when outputting them via `*ca` (rather than reversing it). 3810 3811 *David von Oheimb* 3812 3813 * Deprecated pthread fork support methods. 3814 3815 *Randall S. Becker* 3816 3817 * Added support for FFDHE key exchange in TLS 1.3. 3818 3819 *Raja Ashok* 3820 3821 * Added a new concept for OpenSSL plugability: providers. This 3822 functionality is designed to replace the ENGINE API and ENGINE 3823 implementations, and to be much more dynamic, allowing provider 3824 authors to introduce new algorithms among other things, as long as 3825 there's an API that supports the algorithm type. 3826 3827 With this concept comes a new core API for interaction between 3828 libcrypto and provider implementations. Public libcrypto functions 3829 that want to use providers do so through this core API. 3830 3831 The main documentation for this core API is found in 3832 doc/man7/provider.pod, doc/man7/provider-base.pod, and they in turn 3833 refer to other manuals describing the API specific for supported 3834 algorithm types (also called operations). 3835 3836 *The OpenSSL team* 3837 3838OpenSSL 1.1.1 3839------------- 3840 3841### Changes between 1.1.1m and 1.1.1n [xx XXX xxxx] 3842 3843### Changes between 1.1.1l and 1.1.1m [14 Dec 2021] 3844 3845 * Avoid loading of a dynamic engine twice. 3846 3847 *Bernd Edlinger* 3848 3849 * Prioritise DANE TLSA issuer certs over peer certs 3850 3851 *Viktor Dukhovni* 3852 3853 * Fixed random API for MacOS prior to 10.12 3854 3855 These MacOS versions don't support the CommonCrypto APIs 3856 3857 *Lenny Primak* 3858 3859### Changes between 1.1.1k and 1.1.1l [24 Aug 2021] 3860 3861 * Fixed an SM2 Decryption Buffer Overflow. 3862 3863 In order to decrypt SM2 encrypted data an application is expected to 3864 call the API function EVP_PKEY_decrypt(). Typically an application will 3865 call this function twice. The first time, on entry, the "out" parameter 3866 can be NULL and, on exit, the "outlen" parameter is populated with the 3867 buffer size required to hold the decrypted plaintext. The application 3868 can then allocate a sufficiently sized buffer and call EVP_PKEY_decrypt() 3869 again, but this time passing a non-NULL value for the "out" parameter. 3870 3871 A bug in the implementation of the SM2 decryption code means that the 3872 calculation of the buffer size required to hold the plaintext returned 3873 by the first call to EVP_PKEY_decrypt() can be smaller than the actual 3874 size required by the second call. This can lead to a buffer overflow 3875 when EVP_PKEY_decrypt() is called by the application a second time with 3876 a buffer that is too small. 3877 3878 A malicious attacker who is able present SM2 content for decryption to 3879 an application could cause attacker chosen data to overflow the buffer 3880 by up to a maximum of 62 bytes altering the contents of other data held 3881 after the buffer, possibly changing application behaviour or causing 3882 the application to crash. The location of the buffer is application 3883 dependent but is typically heap allocated. 3884 ([CVE-2021-3711]) 3885 3886 *Matt Caswell* 3887 3888 * Fixed various read buffer overruns processing ASN.1 strings 3889 3890 ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING 3891 structure which contains a buffer holding the string data and a field 3892 holding the buffer length. This contrasts with normal C strings which 3893 are represented as a buffer for the string data which is terminated 3894 with a NUL (0) byte. 3895 3896 Although not a strict requirement, ASN.1 strings that are parsed using 3897 OpenSSL's own "d2i" functions (and other similar parsing functions) as 3898 well as any string whose value has been set with the ASN1_STRING_set() 3899 function will additionally NUL terminate the byte array in the 3900 ASN1_STRING structure. 3901 3902 However, it is possible for applications to directly construct valid 3903 ASN1_STRING structures which do not NUL terminate the byte array by 3904 directly setting the "data" and "length" fields in the ASN1_STRING 3905 array. This can also happen by using the ASN1_STRING_set0() function. 3906 3907 Numerous OpenSSL functions that print ASN.1 data have been found to 3908 assume that the ASN1_STRING byte array will be NUL terminated, even 3909 though this is not guaranteed for strings that have been directly 3910 constructed. Where an application requests an ASN.1 structure to be 3911 printed, and where that ASN.1 structure contains ASN1_STRINGs that have 3912 been directly constructed by the application without NUL terminating 3913 the "data" field, then a read buffer overrun can occur. 3914 3915 The same thing can also occur during name constraints processing 3916 of certificates (for example if a certificate has been directly 3917 constructed by the application instead of loading it via the OpenSSL 3918 parsing functions, and the certificate contains non NUL terminated 3919 ASN1_STRING structures). It can also occur in the X509_get1_email(), 3920 X509_REQ_get1_email() and X509_get1_ocsp() functions. 3921 3922 If a malicious actor can cause an application to directly construct an 3923 ASN1_STRING and then process it through one of the affected OpenSSL 3924 functions then this issue could be hit. This might result in a crash 3925 (causing a Denial of Service attack). It could also result in the 3926 disclosure of private memory contents (such as private keys, or 3927 sensitive plaintext). 3928 ([CVE-2021-3712]) 3929 3930 *Matt Caswell* 3931 3932### Changes between 1.1.1j and 1.1.1k [25 Mar 2021] 3933 3934 * Fixed a problem with verifying a certificate chain when using the 3935 X509_V_FLAG_X509_STRICT flag. This flag enables additional security checks of 3936 the certificates present in a certificate chain. It is not set by default. 3937 3938 Starting from OpenSSL version 1.1.1h a check to disallow certificates in 3939 the chain that have explicitly encoded elliptic curve parameters was added 3940 as an additional strict check. 3941 3942 An error in the implementation of this check meant that the result of a 3943 previous check to confirm that certificates in the chain are valid CA 3944 certificates was overwritten. This effectively bypasses the check 3945 that non-CA certificates must not be able to issue other certificates. 3946 3947 If a "purpose" has been configured then there is a subsequent opportunity 3948 for checks that the certificate is a valid CA. All of the named "purpose" 3949 values implemented in libcrypto perform this check. Therefore, where 3950 a purpose is set the certificate chain will still be rejected even when the 3951 strict flag has been used. A purpose is set by default in libssl client and 3952 server certificate verification routines, but it can be overridden or 3953 removed by an application. 3954 3955 In order to be affected, an application must explicitly set the 3956 X509_V_FLAG_X509_STRICT verification flag and either not set a purpose 3957 for the certificate verification or, in the case of TLS client or server 3958 applications, override the default purpose. 3959 ([CVE-2021-3450]) 3960 3961 *Tomáš Mráz* 3962 3963 * Fixed an issue where an OpenSSL TLS server may crash if sent a maliciously 3964 crafted renegotiation ClientHello message from a client. If a TLSv1.2 3965 renegotiation ClientHello omits the signature_algorithms extension (where it 3966 was present in the initial ClientHello), but includes a 3967 signature_algorithms_cert extension then a NULL pointer dereference will 3968 result, leading to a crash and a denial of service attack. 3969 3970 A server is only vulnerable if it has TLSv1.2 and renegotiation enabled 3971 (which is the default configuration). OpenSSL TLS clients are not impacted by 3972 this issue. 3973 ([CVE-2021-3449]) 3974 3975 *Peter Kästle and Samuel Sapalski* 3976 3977### Changes between 1.1.1i and 1.1.1j [16 Feb 2021] 3978 3979 * Fixed the X509_issuer_and_serial_hash() function. It attempts to 3980 create a unique hash value based on the issuer and serial number data 3981 contained within an X509 certificate. However, it was failing to correctly 3982 handle any errors that may occur while parsing the issuer field (which might 3983 occur if the issuer field is maliciously constructed). This may subsequently 3984 result in a NULL pointer deref and a crash leading to a potential denial of 3985 service attack. 3986 ([CVE-2021-23841]) 3987 3988 *Matt Caswell* 3989 3990 * Fixed the RSA_padding_check_SSLv23() function and the RSA_SSLV23_PADDING 3991 padding mode to correctly check for rollback attacks. This is considered a 3992 bug in OpenSSL 1.1.1 because it does not support SSLv2. In 1.0.2 this is 3993 CVE-2021-23839. 3994 3995 *Matt Caswell* 3996 3997 Fixed the EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate 3998 functions. Previously they could overflow the output length argument in some 3999 cases where the input length is close to the maximum permissible length for 4000 an integer on the platform. In such cases the return value from the function 4001 call would be 1 (indicating success), but the output length value would be 4002 negative. This could cause applications to behave incorrectly or crash. 4003 ([CVE-2021-23840]) 4004 4005 *Matt Caswell* 4006 4007 * Fixed SRP_Calc_client_key so that it runs in constant time. The previous 4008 implementation called BN_mod_exp without setting BN_FLG_CONSTTIME. This 4009 could be exploited in a side channel attack to recover the password. Since 4010 the attack is local host only this is outside of the current OpenSSL 4011 threat model and therefore no CVE is assigned. 4012 4013 Thanks to Mohammed Sabt and Daniel De Almeida Braga for reporting this 4014 issue. 4015 4016 *Matt Caswell* 4017 4018### Changes between 1.1.1h and 1.1.1i [8 Dec 2020] 4019 4020 * Fixed NULL pointer deref in the GENERAL_NAME_cmp function 4021 This function could crash if both GENERAL_NAMEs contain an EDIPARTYNAME. 4022 If an attacker can control both items being compared then this could lead 4023 to a possible denial of service attack. OpenSSL itself uses the 4024 GENERAL_NAME_cmp function for two purposes: 4025 1) Comparing CRL distribution point names between an available CRL and a 4026 CRL distribution point embedded in an X509 certificate 4027 2) When verifying that a timestamp response token signer matches the 4028 timestamp authority name (exposed via the API functions 4029 TS_RESP_verify_response and TS_RESP_verify_token) 4030 ([CVE-2020-1971]) 4031 4032 *Matt Caswell* 4033 4034### Changes between 1.1.1g and 1.1.1h [22 Sep 2020] 4035 4036 * Certificates with explicit curve parameters are now disallowed in 4037 verification chains if the X509_V_FLAG_X509_STRICT flag is used. 4038 4039 *Tomáš Mráz* 4040 4041 * The 'MinProtocol' and 'MaxProtocol' configuration commands now silently 4042 ignore TLS protocol version bounds when configuring DTLS-based contexts, and 4043 conversely, silently ignore DTLS protocol version bounds when configuring 4044 TLS-based contexts. The commands can be repeated to set bounds of both 4045 types. The same applies with the corresponding "min_protocol" and 4046 "max_protocol" command-line switches, in case some application uses both TLS 4047 and DTLS. 4048 4049 SSL_CTX instances that are created for a fixed protocol version (e.g. 4050 TLSv1_server_method()) also silently ignore version bounds. Previously 4051 attempts to apply bounds to these protocol versions would result in an 4052 error. Now only the "version-flexible" SSL_CTX instances are subject to 4053 limits in configuration files in command-line options. 4054 4055 *Viktor Dukhovni* 4056 4057 * Handshake now fails if Extended Master Secret extension is dropped 4058 on renegotiation. 4059 4060 *Tomáš Mráz* 4061 4062 * The Oracle Developer Studio compiler will start reporting deprecated APIs 4063 4064### Changes between 1.1.1f and 1.1.1g [21 Apr 2020] 4065 4066 * Fixed segmentation fault in SSL_check_chain() 4067 Server or client applications that call the SSL_check_chain() function 4068 during or after a TLS 1.3 handshake may crash due to a NULL pointer 4069 dereference as a result of incorrect handling of the 4070 "signature_algorithms_cert" TLS extension. The crash occurs if an invalid 4071 or unrecognised signature algorithm is received from the peer. This could 4072 be exploited by a malicious peer in a Denial of Service attack. 4073 ([CVE-2020-1967]) 4074 4075 *Benjamin Kaduk* 4076 4077 * Added AES consttime code for no-asm configurations 4078 an optional constant time support for AES was added 4079 when building openssl for no-asm. 4080 Enable with: ./config no-asm -DOPENSSL_AES_CONST_TIME 4081 Disable with: ./config no-asm -DOPENSSL_NO_AES_CONST_TIME 4082 At this time this feature is by default disabled. 4083 It will be enabled by default in 3.0. 4084 4085 *Bernd Edlinger* 4086 4087### Changes between 1.1.1e and 1.1.1f [31 Mar 2020] 4088 4089 * Revert the change of EOF detection while reading in libssl to avoid 4090 regressions in applications depending on the current way of reporting 4091 the EOF. As the existing method is not fully accurate the change to 4092 reporting the EOF via SSL_ERROR_SSL is kept on the current development 4093 branch and will be present in the 3.0 release. 4094 4095 *Tomáš Mráz* 4096 4097 * Revised BN_generate_prime_ex to not avoid factors 3..17863 in p-1 4098 when primes for RSA keys are computed. 4099 Since we previously always generated primes == 2 (mod 3) for RSA keys, 4100 the 2-prime and 3-prime RSA modules were easy to distinguish, since 4101 N = p*q = 1 (mod 3), but N = p*q*r = 2 (mod 3). Therefore, fingerprinting 4102 2-prime vs. 3-prime RSA keys was possible by computing N mod 3. 4103 This avoids possible fingerprinting of newly generated RSA modules. 4104 4105 *Bernd Edlinger* 4106 4107### Changes between 1.1.1d and 1.1.1e [17 Mar 2020] 4108 4109 * Properly detect EOF while reading in libssl. Previously if we hit an EOF 4110 while reading in libssl then we would report an error back to the 4111 application (SSL_ERROR_SYSCALL) but errno would be 0. We now add 4112 an error to the stack (which means we instead return SSL_ERROR_SSL) and 4113 therefore give a hint as to what went wrong. 4114 4115 *Matt Caswell* 4116 4117 * Check that ed25519 and ed448 are allowed by the security level. Previously 4118 signature algorithms not using an MD were not being checked that they were 4119 allowed by the security level. 4120 4121 *Kurt Roeckx* 4122 4123 * Fixed SSL_get_servername() behaviour. The behaviour of SSL_get_servername() 4124 was not quite right. The behaviour was not consistent between resumption 4125 and normal handshakes, and also not quite consistent with historical 4126 behaviour. The behaviour in various scenarios has been clarified and 4127 it has been updated to make it match historical behaviour as closely as 4128 possible. 4129 4130 *Matt Caswell* 4131 4132 * *[VMS only]* The header files that the VMS compilers include automatically, 4133 `__DECC_INCLUDE_PROLOGUE.H` and `__DECC_INCLUDE_EPILOGUE.H`, use pragmas 4134 that the C++ compiler doesn't understand. This is a shortcoming in the 4135 compiler, but can be worked around with `__cplusplus` guards. 4136 4137 C++ applications that use OpenSSL libraries must be compiled using the 4138 qualifier `/NAMES=(AS_IS,SHORTENED)` to be able to use all the OpenSSL 4139 functions. Otherwise, only functions with symbols of less than 31 4140 characters can be used, as the linker will not be able to successfully 4141 resolve symbols with longer names. 4142 4143 *Richard Levitte* 4144 4145 * Added a new method to gather entropy on VMS, based on SYS$GET_ENTROPY. 4146 The presence of this system service is determined at run-time. 4147 4148 *Richard Levitte* 4149 4150 * Print all values for a PKCS#12 attribute with 'openssl pkcs12', not just 4151 the first value. 4152 4153 *Jon Spillett* 4154 4155### Changes between 1.1.1c and 1.1.1d [10 Sep 2019] 4156 4157 * Fixed a fork protection issue. OpenSSL 1.1.1 introduced a rewritten random 4158 number generator (RNG). This was intended to include protection in the 4159 event of a fork() system call in order to ensure that the parent and child 4160 processes did not share the same RNG state. However, this protection was not 4161 being used in the default case. 4162 4163 A partial mitigation for this issue is that the output from a high 4164 precision timer is mixed into the RNG state so the likelihood of a parent 4165 and child process sharing state is significantly reduced. 4166 4167 If an application already calls OPENSSL_init_crypto() explicitly using 4168 OPENSSL_INIT_ATFORK then this problem does not occur at all. 4169 ([CVE-2019-1549]) 4170 4171 *Matthias St. Pierre* 4172 4173 * For built-in EC curves, ensure an EC_GROUP built from the curve name is 4174 used even when parsing explicit parameters, when loading a encoded key 4175 or calling `EC_GROUP_new_from_ecpkparameters()`/ 4176 `EC_GROUP_new_from_ecparameters()`. 4177 This prevents bypass of security hardening and performance gains, 4178 especially for curves with specialized EC_METHODs. 4179 By default, if a key encoded with explicit parameters is loaded and later 4180 encoded, the output is still encoded with explicit parameters, even if 4181 internally a "named" EC_GROUP is used for computation. 4182 4183 *Nicola Tuveri* 4184 4185 * Compute ECC cofactors if not provided during EC_GROUP construction. Before 4186 this change, EC_GROUP_set_generator would accept order and/or cofactor as 4187 NULL. After this change, only the cofactor parameter can be NULL. It also 4188 does some minimal sanity checks on the passed order. 4189 ([CVE-2019-1547]) 4190 4191 *Billy Bob Brumley* 4192 4193 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey. 4194 An attack is simple, if the first CMS_recipientInfo is valid but the 4195 second CMS_recipientInfo is chosen ciphertext. If the second 4196 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct 4197 encryption key will be replaced by garbage, and the message cannot be 4198 decoded, but if the RSA decryption fails, the correct encryption key is 4199 used and the recipient will not notice the attack. 4200 As a work around for this potential attack the length of the decrypted 4201 key must be equal to the cipher default key length, in case the 4202 certificate is not given and all recipientInfo are tried out. 4203 The old behaviour can be re-enabled in the CMS code by setting the 4204 CMS_DEBUG_DECRYPT flag. 4205 ([CVE-2019-1563]) 4206 4207 *Bernd Edlinger* 4208 4209 * Early start up entropy quality from the DEVRANDOM seed source has been 4210 improved for older Linux systems. The RAND subsystem will wait for 4211 /dev/random to be producing output before seeding from /dev/urandom. 4212 The seeded state is stored for future library initialisations using 4213 a system global shared memory segment. The shared memory identifier 4214 can be configured by defining OPENSSL_RAND_SEED_DEVRANDOM_SHM_ID to 4215 the desired value. The default identifier is 114. 4216 4217 *Paul Dale* 4218 4219 * Correct the extended master secret constant on EBCDIC systems. Without this 4220 fix TLS connections between an EBCDIC system and a non-EBCDIC system that 4221 negotiate EMS will fail. Unfortunately this also means that TLS connections 4222 between EBCDIC systems with this fix, and EBCDIC systems without this 4223 fix will fail if they negotiate EMS. 4224 4225 *Matt Caswell* 4226 4227 * Use Windows installation paths in the mingw builds 4228 4229 Mingw isn't a POSIX environment per se, which means that Windows 4230 paths should be used for installation. 4231 ([CVE-2019-1552]) 4232 4233 *Richard Levitte* 4234 4235 * Changed DH_check to accept parameters with order q and 2q subgroups. 4236 With order 2q subgroups the bit 0 of the private key is not secret 4237 but DH_generate_key works around that by clearing bit 0 of the 4238 private key for those. This avoids leaking bit 0 of the private key. 4239 4240 *Bernd Edlinger* 4241 4242 * Significantly reduce secure memory usage by the randomness pools. 4243 4244 *Paul Dale* 4245 4246 * Revert the DEVRANDOM_WAIT feature for Linux systems 4247 4248 The DEVRANDOM_WAIT feature added a select() call to wait for the 4249 /dev/random device to become readable before reading from the 4250 /dev/urandom device. 4251 4252 It turned out that this change had negative side effects on 4253 performance which were not acceptable. After some discussion it 4254 was decided to revert this feature and leave it up to the OS 4255 resp. the platform maintainer to ensure a proper initialization 4256 during early boot time. 4257 4258 *Matthias St. Pierre* 4259 4260### Changes between 1.1.1b and 1.1.1c [28 May 2019] 4261 4262 * Add build tests for C++. These are generated files that only do one 4263 thing, to include one public OpenSSL head file each. This tests that 4264 the public header files can be usefully included in a C++ application. 4265 4266 This test isn't enabled by default. It can be enabled with the option 4267 'enable-buildtest-c++'. 4268 4269 *Richard Levitte* 4270 4271 * Enable SHA3 pre-hashing for ECDSA and DSA. 4272 4273 *Patrick Steuer* 4274 4275 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024. 4276 This changes the size when using the `genpkey` command when no size is given. 4277 It fixes an omission in earlier changes that changed all RSA, DSA and DH 4278 generation commands to use 2048 bits by default. 4279 4280 *Kurt Roeckx* 4281 4282 * Reorganize the manual pages to consistently have RETURN VALUES, 4283 EXAMPLES, SEE ALSO and HISTORY come in that order, and adjust 4284 util/fix-doc-nits accordingly. 4285 4286 *Paul Yang, Joshua Lock* 4287 4288 * Add the missing accessor EVP_PKEY_get0_engine() 4289 4290 *Matt Caswell* 4291 4292 * Have commands like `s_client` and `s_server` output the signature scheme 4293 along with other cipher suite parameters when debugging. 4294 4295 *Lorinczy Zsigmond* 4296 4297 * Make OPENSSL_config() error agnostic again. 4298 4299 *Richard Levitte* 4300 4301 * Do the error handling in RSA decryption constant time. 4302 4303 *Bernd Edlinger* 4304 4305 * Prevent over long nonces in ChaCha20-Poly1305. 4306 4307 ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input 4308 for every encryption operation. RFC 7539 specifies that the nonce value 4309 (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length 4310 and front pads the nonce with 0 bytes if it is less than 12 4311 bytes. However it also incorrectly allows a nonce to be set of up to 16 4312 bytes. In this case only the last 12 bytes are significant and any 4313 additional leading bytes are ignored. 4314 4315 It is a requirement of using this cipher that nonce values are 4316 unique. Messages encrypted using a reused nonce value are susceptible to 4317 serious confidentiality and integrity attacks. If an application changes 4318 the default nonce length to be longer than 12 bytes and then makes a 4319 change to the leading bytes of the nonce expecting the new value to be a 4320 new unique nonce then such an application could inadvertently encrypt 4321 messages with a reused nonce. 4322 4323 Additionally the ignored bytes in a long nonce are not covered by the 4324 integrity guarantee of this cipher. Any application that relies on the 4325 integrity of these ignored leading bytes of a long nonce may be further 4326 affected. Any OpenSSL internal use of this cipher, including in SSL/TLS, 4327 is safe because no such use sets such a long nonce value. However user 4328 applications that use this cipher directly and set a non-default nonce 4329 length to be longer than 12 bytes may be vulnerable. 4330 4331 This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk 4332 Greef of Ronomon. 4333 ([CVE-2019-1543]) 4334 4335 *Matt Caswell* 4336 4337 * Add DEVRANDOM_WAIT feature for Linux systems 4338 4339 On older Linux systems where the getrandom() system call is not available, 4340 OpenSSL normally uses the /dev/urandom device for seeding its CSPRNG. 4341 Contrary to getrandom(), the /dev/urandom device will not block during 4342 early boot when the kernel CSPRNG has not been seeded yet. 4343 4344 To mitigate this known weakness, use select() to wait for /dev/random to 4345 become readable before reading from /dev/urandom. 4346 4347 * Ensure that SM2 only uses SM3 as digest algorithm 4348 4349 *Paul Yang* 4350 4351### Changes between 1.1.1a and 1.1.1b [26 Feb 2019] 4352 4353 * Change the info callback signals for the start and end of a post-handshake 4354 message exchange in TLSv1.3. In 1.1.1/1.1.1a we used SSL_CB_HANDSHAKE_START 4355 and SSL_CB_HANDSHAKE_DONE. Experience has shown that many applications get 4356 confused by this and assume that a TLSv1.2 renegotiation has started. This 4357 can break KeyUpdate handling. Instead we no longer signal the start and end 4358 of a post handshake message exchange (although the messages themselves are 4359 still signalled). This could break some applications that were expecting 4360 the old signals. However without this KeyUpdate is not usable for many 4361 applications. 4362 4363 *Matt Caswell* 4364 4365### Changes between 1.1.1 and 1.1.1a [20 Nov 2018] 4366 4367 * Timing vulnerability in DSA signature generation 4368 4369 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a 4370 timing side channel attack. An attacker could use variations in the signing 4371 algorithm to recover the private key. 4372 4373 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser. 4374 ([CVE-2018-0734]) 4375 4376 *Paul Dale* 4377 4378 * Timing vulnerability in ECDSA signature generation 4379 4380 The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a 4381 timing side channel attack. An attacker could use variations in the signing 4382 algorithm to recover the private key. 4383 4384 This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser. 4385 ([CVE-2018-0735]) 4386 4387 *Paul Dale* 4388 4389 * Fixed the issue that RAND_add()/RAND_seed() silently discards random input 4390 if its length exceeds 4096 bytes. The limit has been raised to a buffer size 4391 of two gigabytes and the error handling improved. 4392 4393 This issue was reported to OpenSSL by Dr. Falko Strenzke. It has been 4394 categorized as a normal bug, not a security issue, because the DRBG reseeds 4395 automatically and is fully functional even without additional randomness 4396 provided by the application. 4397 4398### Changes between 1.1.0i and 1.1.1 [11 Sep 2018] 4399 4400 * Add a new ClientHello callback. Provides a callback interface that gives 4401 the application the ability to adjust the nascent SSL object at the 4402 earliest stage of ClientHello processing, immediately after extensions have 4403 been collected but before they have been processed. In particular, this 4404 callback can adjust the supported TLS versions in response to the contents 4405 of the ClientHello 4406 4407 *Benjamin Kaduk* 4408 4409 * Add SM2 base algorithm support. 4410 4411 *Jack Lloyd* 4412 4413 * s390x assembly pack: add (improved) hardware-support for the following 4414 cryptographic primitives: sha3, shake, aes-gcm, aes-ccm, aes-ctr, aes-ofb, 4415 aes-cfb/cfb8, aes-ecb. 4416 4417 *Patrick Steuer* 4418 4419 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str 4420 parameter is no longer accepted, as it leads to a corrupt table. NULL 4421 pem_str is reserved for alias entries only. 4422 4423 *Richard Levitte* 4424 4425 * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder 4426 step for prime curves. The new implementation is based on formulae from 4427 differential addition-and-doubling in homogeneous projective coordinates 4428 from Izu-Takagi "A fast parallel elliptic curve multiplication resistant 4429 against side channel attacks" and Brier-Joye "Weierstrass Elliptic Curves 4430 and Side-Channel Attacks" Eq. (8) for y-coordinate recovery, modified 4431 to work in projective coordinates. 4432 4433 *Billy Bob Brumley, Nicola Tuveri* 4434 4435 * Change generating and checking of primes so that the error rate of not 4436 being prime depends on the intended use based on the size of the input. 4437 For larger primes this will result in more rounds of Miller-Rabin. 4438 The maximal error rate for primes with more than 1080 bits is lowered 4439 to 2^-128. 4440 4441 *Kurt Roeckx, Annie Yousar* 4442 4443 * Increase the number of Miller-Rabin rounds for DSA key generating to 64. 4444 4445 *Kurt Roeckx* 4446 4447 * The 'tsget' script is renamed to 'tsget.pl', to avoid confusion when 4448 moving between systems, and to avoid confusion when a Windows build is 4449 done with mingw vs with MSVC. For POSIX installs, there's still a 4450 symlink or copy named 'tsget' to avoid that confusion as well. 4451 4452 *Richard Levitte* 4453 4454 * Revert blinding in ECDSA sign and instead make problematic addition 4455 length-invariant. Switch even to fixed-length Montgomery multiplication. 4456 4457 *Andy Polyakov* 4458 4459 * Use the new ec_scalar_mul_ladder scaffold to implement a specialized ladder 4460 step for binary curves. The new implementation is based on formulae from 4461 differential addition-and-doubling in mixed Lopez-Dahab projective 4462 coordinates, modified to independently blind the operands. 4463 4464 *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri* 4465 4466 * Add a scaffold to optionally enhance the Montgomery ladder implementation 4467 for `ec_scalar_mul_ladder` (formerly `ec_mul_consttime`) allowing 4468 EC_METHODs to implement their own specialized "ladder step", to take 4469 advantage of more favorable coordinate systems or more efficient 4470 differential addition-and-doubling algorithms. 4471 4472 *Billy Bob Brumley, Sohaib ul Hassan, Nicola Tuveri* 4473 4474 * Modified the random device based seed sources to keep the relevant 4475 file descriptors open rather than reopening them on each access. 4476 This allows such sources to operate in a chroot() jail without 4477 the associated device nodes being available. This behaviour can be 4478 controlled using RAND_keep_random_devices_open(). 4479 4480 *Paul Dale* 4481 4482 * Numerous side-channel attack mitigations have been applied. This may have 4483 performance impacts for some algorithms for the benefit of improved 4484 security. Specific changes are noted in this change log by their respective 4485 authors. 4486 4487 *Matt Caswell* 4488 4489 * AIX shared library support overhaul. Switch to AIX "natural" way of 4490 handling shared libraries, which means collecting shared objects of 4491 different versions and bitnesses in one common archive. This allows to 4492 mitigate conflict between 1.0 and 1.1 side-by-side installations. It 4493 doesn't affect the way 3rd party applications are linked, only how 4494 multi-version installation is managed. 4495 4496 *Andy Polyakov* 4497 4498 * Make ec_group_do_inverse_ord() more robust and available to other 4499 EC cryptosystems, so that irrespective of BN_FLG_CONSTTIME, SCA 4500 mitigations are applied to the fallback BN_mod_inverse(). 4501 When using this function rather than BN_mod_inverse() directly, new 4502 EC cryptosystem implementations are then safer-by-default. 4503 4504 *Billy Bob Brumley* 4505 4506 * Add coordinate blinding for EC_POINT and implement projective 4507 coordinate blinding for generic prime curves as a countermeasure to 4508 chosen point SCA attacks. 4509 4510 *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley* 4511 4512 * Add blinding to ECDSA and DSA signatures to protect against side channel 4513 attacks discovered by Keegan Ryan (NCC Group). 4514 4515 *Matt Caswell* 4516 4517 * Enforce checking in the `pkeyutl` command to ensure that the input 4518 length does not exceed the maximum supported digest length when performing 4519 a sign, verify or verifyrecover operation. 4520 4521 *Matt Caswell* 4522 4523 * SSL_MODE_AUTO_RETRY is enabled by default. Applications that use blocking 4524 I/O in combination with something like select() or poll() will hang. This 4525 can be turned off again using SSL_CTX_clear_mode(). 4526 Many applications do not properly handle non-application data records, and 4527 TLS 1.3 sends more of such records. Setting SSL_MODE_AUTO_RETRY works 4528 around the problems in those applications, but can also break some. 4529 It's recommended to read the manpages about SSL_read(), SSL_write(), 4530 SSL_get_error(), SSL_shutdown(), SSL_CTX_set_mode() and 4531 SSL_CTX_set_read_ahead() again. 4532 4533 *Kurt Roeckx* 4534 4535 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we 4536 now allow empty (zero character) pass phrases. 4537 4538 *Richard Levitte* 4539 4540 * Apply blinding to binary field modular inversion and remove patent 4541 pending (OPENSSL_SUN_GF2M_DIV) BN_GF2m_mod_div implementation. 4542 4543 *Billy Bob Brumley* 4544 4545 * Deprecate ec2_mult.c and unify scalar multiplication code paths for 4546 binary and prime elliptic curves. 4547 4548 *Billy Bob Brumley* 4549 4550 * Remove ECDSA nonce padding: EC_POINT_mul is now responsible for 4551 constant time fixed point multiplication. 4552 4553 *Billy Bob Brumley* 4554 4555 * Revise elliptic curve scalar multiplication with timing attack 4556 defenses: ec_wNAF_mul redirects to a constant time implementation 4557 when computing fixed point and variable point multiplication (which 4558 in OpenSSL are mostly used with secret scalars in keygen, sign, 4559 ECDH derive operations). 4560 *Billy Bob Brumley, Nicola Tuveri, Cesar Pereida García, 4561 Sohaib ul Hassan* 4562 4563 * Updated CONTRIBUTING 4564 4565 *Rich Salz* 4566 4567 * Updated DRBG / RAND to request nonce and additional low entropy 4568 randomness from the system. 4569 4570 *Matthias St. Pierre* 4571 4572 * Updated 'openssl rehash' to use OpenSSL consistent default. 4573 4574 *Richard Levitte* 4575 4576 * Moved the load of the ssl_conf module to libcrypto, which helps 4577 loading engines that libssl uses before libssl is initialised. 4578 4579 *Matt Caswell* 4580 4581 * Added EVP_PKEY_sign() and EVP_PKEY_verify() for EdDSA 4582 4583 *Matt Caswell* 4584 4585 * Fixed X509_NAME_ENTRY_set to get multi-valued RDNs right in all cases. 4586 4587 *Ingo Schwarze, Rich Salz* 4588 4589 * Added output of accepting IP address and port for 'openssl s_server' 4590 4591 *Richard Levitte* 4592 4593 * Added a new API for TLSv1.3 ciphersuites: 4594 SSL_CTX_set_ciphersuites() 4595 SSL_set_ciphersuites() 4596 4597 *Matt Caswell* 4598 4599 * Memory allocation failures consistently add an error to the error 4600 stack. 4601 4602 *Rich Salz* 4603 4604 * Don't use OPENSSL_ENGINES and OPENSSL_CONF environment values 4605 in libcrypto when run as setuid/setgid. 4606 4607 *Bernd Edlinger* 4608 4609 * Load any config file by default when libssl is used. 4610 4611 *Matt Caswell* 4612 4613 * Added new public header file <openssl/rand_drbg.h> and documentation 4614 for the RAND_DRBG API. See manual page RAND_DRBG(7) for an overview. 4615 4616 *Matthias St. Pierre* 4617 4618 * QNX support removed (cannot find contributors to get their approval 4619 for the license change). 4620 4621 *Rich Salz* 4622 4623 * TLSv1.3 replay protection for early data has been implemented. See the 4624 SSL_read_early_data() man page for further details. 4625 4626 *Matt Caswell* 4627 4628 * Separated TLSv1.3 ciphersuite configuration out from TLSv1.2 ciphersuite 4629 configuration. TLSv1.3 ciphersuites are not compatible with TLSv1.2 and 4630 below. Similarly TLSv1.2 ciphersuites are not compatible with TLSv1.3. 4631 In order to avoid issues where legacy TLSv1.2 ciphersuite configuration 4632 would otherwise inadvertently disable all TLSv1.3 ciphersuites the 4633 configuration has been separated out. See the ciphers man page or the 4634 SSL_CTX_set_ciphersuites() man page for more information. 4635 4636 *Matt Caswell* 4637 4638 * On POSIX (BSD, Linux, ...) systems the ocsp(1) command running 4639 in responder mode now supports the new "-multi" option, which 4640 spawns the specified number of child processes to handle OCSP 4641 requests. The "-timeout" option now also limits the OCSP 4642 responder's patience to wait to receive the full client request 4643 on a newly accepted connection. Child processes are respawned 4644 as needed, and the CA index file is automatically reloaded 4645 when changed. This makes it possible to run the "ocsp" responder 4646 as a long-running service, making the OpenSSL CA somewhat more 4647 feature-complete. In this mode, most diagnostic messages logged 4648 after entering the event loop are logged via syslog(3) rather than 4649 written to stderr. 4650 4651 *Viktor Dukhovni* 4652 4653 * Added support for X448 and Ed448. Heavily based on original work by 4654 Mike Hamburg. 4655 4656 *Matt Caswell* 4657 4658 * Extend OSSL_STORE with capabilities to search and to narrow the set of 4659 objects loaded. This adds the functions OSSL_STORE_expect() and 4660 OSSL_STORE_find() as well as needed tools to construct searches and 4661 get the search data out of them. 4662 4663 *Richard Levitte* 4664 4665 * Support for TLSv1.3 added. Note that users upgrading from an earlier 4666 version of OpenSSL should review their configuration settings to ensure 4667 that they are still appropriate for TLSv1.3. For further information see: 4668 <https://github.com/openssl/openssl/wiki/TLS1.3> 4669 4670 *Matt Caswell* 4671 4672 * Grand redesign of the OpenSSL random generator 4673 4674 The default RAND method now utilizes an AES-CTR DRBG according to 4675 NIST standard SP 800-90Ar1. The new random generator is essentially 4676 a port of the default random generator from the OpenSSL FIPS 2.0 4677 object module. It is a hybrid deterministic random bit generator 4678 using an AES-CTR bit stream and which seeds and reseeds itself 4679 automatically using trusted system entropy sources. 4680 4681 Some of its new features are: 4682 - Support for multiple DRBG instances with seed chaining. 4683 - The default RAND method makes use of a DRBG. 4684 - There is a public and private DRBG instance. 4685 - The DRBG instances are fork-safe. 4686 - Keep all global DRBG instances on the secure heap if it is enabled. 4687 - The public and private DRBG instance are per thread for lock free 4688 operation 4689 4690 *Paul Dale, Benjamin Kaduk, Kurt Roeckx, Rich Salz, Matthias St. Pierre* 4691 4692 * Changed Configure so it only says what it does and doesn't dump 4693 so much data. Instead, ./configdata.pm should be used as a script 4694 to display all sorts of configuration data. 4695 4696 *Richard Levitte* 4697 4698 * Added processing of "make variables" to Configure. 4699 4700 *Richard Levitte* 4701 4702 * Added SHA512/224 and SHA512/256 algorithm support. 4703 4704 *Paul Dale* 4705 4706 * The last traces of Netware support, first removed in 1.1.0, have 4707 now been removed. 4708 4709 *Rich Salz* 4710 4711 * Get rid of Makefile.shared, and in the process, make the processing 4712 of certain files (rc.obj, or the .def/.map/.opt files produced from 4713 the ordinal files) more visible and hopefully easier to trace and 4714 debug (or make silent). 4715 4716 *Richard Levitte* 4717 4718 * Make it possible to have environment variable assignments as 4719 arguments to config / Configure. 4720 4721 *Richard Levitte* 4722 4723 * Add multi-prime RSA (RFC 8017) support. 4724 4725 *Paul Yang* 4726 4727 * Add SM3 implemented according to GB/T 32905-2016 4728 *Jack Lloyd <jack.lloyd@ribose.com>,* 4729 *Ronald Tse <ronald.tse@ribose.com>,* 4730 *Erick Borsboom <erick.borsboom@ribose.com>* 4731 4732 * Add 'Maximum Fragment Length' TLS extension negotiation and support 4733 as documented in RFC6066. 4734 Based on a patch from Tomasz Moń 4735 4736 *Filipe Raimundo da Silva* 4737 4738 * Add SM4 implemented according to GB/T 32907-2016. 4739 *Jack Lloyd <jack.lloyd@ribose.com>,* 4740 *Ronald Tse <ronald.tse@ribose.com>,* 4741 *Erick Borsboom <erick.borsboom@ribose.com>* 4742 4743 * Reimplement -newreq-nodes and ERR_error_string_n; the 4744 original author does not agree with the license change. 4745 4746 *Rich Salz* 4747 4748 * Add ARIA AEAD TLS support. 4749 4750 *Jon Spillett* 4751 4752 * Some macro definitions to support VS6 have been removed. Visual 4753 Studio 6 has not worked since 1.1.0 4754 4755 *Rich Salz* 4756 4757 * Add ERR_clear_last_mark(), to allow callers to clear the last mark 4758 without clearing the errors. 4759 4760 *Richard Levitte* 4761 4762 * Add "atfork" functions. If building on a system that without 4763 pthreads, see doc/man3/OPENSSL_fork_prepare.pod for application 4764 requirements. The RAND facility now uses/requires this. 4765 4766 *Rich Salz* 4767 4768 * Add SHA3. 4769 4770 *Andy Polyakov* 4771 4772 * The UI API becomes a permanent and integral part of libcrypto, i.e. 4773 not possible to disable entirely. However, it's still possible to 4774 disable the console reading UI method, UI_OpenSSL() (use UI_null() 4775 as a fallback). 4776 4777 To disable, configure with 'no-ui-console'. 'no-ui' is still 4778 possible to use as an alias. Check at compile time with the 4779 macro OPENSSL_NO_UI_CONSOLE. The macro OPENSSL_NO_UI is still 4780 possible to check and is an alias for OPENSSL_NO_UI_CONSOLE. 4781 4782 *Richard Levitte* 4783 4784 * Add a STORE module, which implements a uniform and URI based reader of 4785 stores that can contain keys, certificates, CRLs and numerous other 4786 objects. The main API is loosely based on a few stdio functions, 4787 and includes OSSL_STORE_open, OSSL_STORE_load, OSSL_STORE_eof, 4788 OSSL_STORE_error and OSSL_STORE_close. 4789 The implementation uses backends called "loaders" to implement arbitrary 4790 URI schemes. There is one built in "loader" for the 'file' scheme. 4791 4792 *Richard Levitte* 4793 4794 * Add devcrypto engine. This has been implemented against cryptodev-linux, 4795 then adjusted to work on FreeBSD 8.4 as well. 4796 Enable by configuring with 'enable-devcryptoeng'. This is done by default 4797 on BSD implementations, as cryptodev.h is assumed to exist on all of them. 4798 4799 *Richard Levitte* 4800 4801 * Module names can prefixed with OSSL_ or OPENSSL_. This affects 4802 util/mkerr.pl, which is adapted to allow those prefixes, leading to 4803 error code calls like this: 4804 4805 OSSL_FOOerr(OSSL_FOO_F_SOMETHING, OSSL_FOO_R_WHATEVER); 4806 4807 With this change, we claim the namespaces OSSL and OPENSSL in a manner 4808 that can be encoded in C. For the foreseeable future, this will only 4809 affect new modules. 4810 4811 *Richard Levitte and Tim Hudson* 4812 4813 * Removed BSD cryptodev engine. 4814 4815 *Rich Salz* 4816 4817 * Add a build target 'build_all_generated', to build all generated files 4818 and only that. This can be used to prepare everything that requires 4819 things like perl for a system that lacks perl and then move everything 4820 to that system and do the rest of the build there. 4821 4822 *Richard Levitte* 4823 4824 * In the UI interface, make it possible to duplicate the user data. This 4825 can be used by engines that need to retain the data for a longer time 4826 than just the call where this user data is passed. 4827 4828 *Richard Levitte* 4829 4830 * Ignore the '-named_curve auto' value for compatibility of applications 4831 with OpenSSL 1.0.2. 4832 4833 *Tomáš Mráz <tmraz@fedoraproject.org>* 4834 4835 * Fragmented SSL/TLS alerts are no longer accepted. An alert message is 2 4836 bytes long. In theory it is permissible in SSLv3 - TLSv1.2 to fragment such 4837 alerts across multiple records (some of which could be empty). In practice 4838 it make no sense to send an empty alert record, or to fragment one. TLSv1.3 4839 prohibits this altogether and other libraries (BoringSSL, NSS) do not 4840 support this at all. Supporting it adds significant complexity to the 4841 record layer, and its removal is unlikely to cause interoperability 4842 issues. 4843 4844 *Matt Caswell* 4845 4846 * Add the ASN.1 types INT32, UINT32, INT64, UINT64 and variants prefixed 4847 with Z. These are meant to replace LONG and ZLONG and to be size safe. 4848 The use of LONG and ZLONG is discouraged and scheduled for deprecation 4849 in OpenSSL 1.2.0. 4850 4851 *Richard Levitte* 4852 4853 * Add the 'z' and 'j' modifiers to BIO_printf() et al formatting string, 4854 'z' is to be used for [s]size_t, and 'j' - with [u]int64_t. 4855 4856 *Richard Levitte, Andy Polyakov* 4857 4858 * Add EC_KEY_get0_engine(), which does for EC_KEY what RSA_get0_engine() 4859 does for RSA, etc. 4860 4861 *Richard Levitte* 4862 4863 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target 4864 platform rather than 'mingw'. 4865 4866 *Richard Levitte* 4867 4868 * The functions X509_STORE_add_cert and X509_STORE_add_crl return 4869 success if they are asked to add an object which already exists 4870 in the store. This change cascades to other functions which load 4871 certificates and CRLs. 4872 4873 *Paul Dale* 4874 4875 * x86_64 assembly pack: annotate code with DWARF CFI directives to 4876 facilitate stack unwinding even from assembly subroutines. 4877 4878 *Andy Polyakov* 4879 4880 * Remove VAX C specific definitions of OPENSSL_EXPORT, OPENSSL_EXTERN. 4881 Also remove OPENSSL_GLOBAL entirely, as it became a no-op. 4882 4883 *Richard Levitte* 4884 4885 * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c. 4886 VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1, 4887 which is the minimum version we support. 4888 4889 *Richard Levitte* 4890 4891 * Certificate time validation (X509_cmp_time) enforces stricter 4892 compliance with RFC 5280. Fractional seconds and timezone offsets 4893 are no longer allowed. 4894 4895 *Emilia Käsper* 4896 4897 * Add support for ARIA 4898 4899 *Paul Dale* 4900 4901 * s_client will now send the Server Name Indication (SNI) extension by 4902 default unless the new "-noservername" option is used. The server name is 4903 based on the host provided to the "-connect" option unless overridden by 4904 using "-servername". 4905 4906 *Matt Caswell* 4907 4908 * Add support for SipHash 4909 4910 *Todd Short* 4911 4912 * OpenSSL now fails if it receives an unrecognised record type in TLS1.0 4913 or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to 4914 prevent issues where no progress is being made and the peer continually 4915 sends unrecognised record types, using up resources processing them. 4916 4917 *Matt Caswell* 4918 4919 * 'openssl passwd' can now produce SHA256 and SHA512 based output, 4920 using the algorithm defined in 4921 <https://www.akkadia.org/drepper/SHA-crypt.txt> 4922 4923 *Richard Levitte* 4924 4925 * Heartbeat support has been removed; the ABI is changed for now. 4926 4927 *Richard Levitte, Rich Salz* 4928 4929 * Support for SSL_OP_NO_ENCRYPT_THEN_MAC in SSL_CONF_cmd. 4930 4931 *Emilia Käsper* 4932 4933 * The RSA "null" method, which was partially supported to avoid patent 4934 issues, has been replaced to always returns NULL. 4935 4936 *Rich Salz* 4937 4938OpenSSL 1.1.0 4939------------- 4940 4941### Changes between 1.1.0k and 1.1.0l [10 Sep 2019] 4942 4943 * For built-in EC curves, ensure an EC_GROUP built from the curve name is 4944 used even when parsing explicit parameters, when loading a encoded key 4945 or calling `EC_GROUP_new_from_ecpkparameters()`/ 4946 `EC_GROUP_new_from_ecparameters()`. 4947 This prevents bypass of security hardening and performance gains, 4948 especially for curves with specialized EC_METHODs. 4949 By default, if a key encoded with explicit parameters is loaded and later 4950 encoded, the output is still encoded with explicit parameters, even if 4951 internally a "named" EC_GROUP is used for computation. 4952 4953 *Nicola Tuveri* 4954 4955 * Compute ECC cofactors if not provided during EC_GROUP construction. Before 4956 this change, EC_GROUP_set_generator would accept order and/or cofactor as 4957 NULL. After this change, only the cofactor parameter can be NULL. It also 4958 does some minimal sanity checks on the passed order. 4959 ([CVE-2019-1547]) 4960 4961 *Billy Bob Brumley* 4962 4963 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey. 4964 An attack is simple, if the first CMS_recipientInfo is valid but the 4965 second CMS_recipientInfo is chosen ciphertext. If the second 4966 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct 4967 encryption key will be replaced by garbage, and the message cannot be 4968 decoded, but if the RSA decryption fails, the correct encryption key is 4969 used and the recipient will not notice the attack. 4970 As a work around for this potential attack the length of the decrypted 4971 key must be equal to the cipher default key length, in case the 4972 certificate is not given and all recipientInfo are tried out. 4973 The old behaviour can be re-enabled in the CMS code by setting the 4974 CMS_DEBUG_DECRYPT flag. 4975 ([CVE-2019-1563]) 4976 4977 *Bernd Edlinger* 4978 4979 * Use Windows installation paths in the mingw builds 4980 4981 Mingw isn't a POSIX environment per se, which means that Windows 4982 paths should be used for installation. 4983 ([CVE-2019-1552]) 4984 4985 *Richard Levitte* 4986 4987### Changes between 1.1.0j and 1.1.0k [28 May 2019] 4988 4989 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024. 4990 This changes the size when using the `genpkey` command when no size is given. 4991 It fixes an omission in earlier changes that changed all RSA, DSA and DH 4992 generation commands to use 2048 bits by default. 4993 4994 *Kurt Roeckx* 4995 4996 * Prevent over long nonces in ChaCha20-Poly1305. 4997 4998 ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input 4999 for every encryption operation. RFC 7539 specifies that the nonce value 5000 (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length 5001 and front pads the nonce with 0 bytes if it is less than 12 5002 bytes. However it also incorrectly allows a nonce to be set of up to 16 5003 bytes. In this case only the last 12 bytes are significant and any 5004 additional leading bytes are ignored. 5005 5006 It is a requirement of using this cipher that nonce values are 5007 unique. Messages encrypted using a reused nonce value are susceptible to 5008 serious confidentiality and integrity attacks. If an application changes 5009 the default nonce length to be longer than 12 bytes and then makes a 5010 change to the leading bytes of the nonce expecting the new value to be a 5011 new unique nonce then such an application could inadvertently encrypt 5012 messages with a reused nonce. 5013 5014 Additionally the ignored bytes in a long nonce are not covered by the 5015 integrity guarantee of this cipher. Any application that relies on the 5016 integrity of these ignored leading bytes of a long nonce may be further 5017 affected. Any OpenSSL internal use of this cipher, including in SSL/TLS, 5018 is safe because no such use sets such a long nonce value. However user 5019 applications that use this cipher directly and set a non-default nonce 5020 length to be longer than 12 bytes may be vulnerable. 5021 5022 This issue was reported to OpenSSL on 16th of March 2019 by Joran Dirk 5023 Greef of Ronomon. 5024 ([CVE-2019-1543]) 5025 5026 *Matt Caswell* 5027 5028 * Added SCA hardening for modular field inversion in EC_GROUP through 5029 a new dedicated field_inv() pointer in EC_METHOD. 5030 This also addresses a leakage affecting conversions from projective 5031 to affine coordinates. 5032 5033 *Billy Bob Brumley, Nicola Tuveri* 5034 5035 * Fix a use after free bug in d2i_X509_PUBKEY when overwriting a 5036 reused X509_PUBKEY object if the second PUBKEY is malformed. 5037 5038 *Bernd Edlinger* 5039 5040 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0(). 5041 5042 *Richard Levitte* 5043 5044 * Remove the 'dist' target and add a tarball building script. The 5045 'dist' target has fallen out of use, and it shouldn't be 5046 necessary to configure just to create a source distribution. 5047 5048 *Richard Levitte* 5049 5050### Changes between 1.1.0i and 1.1.0j [20 Nov 2018] 5051 5052 * Timing vulnerability in DSA signature generation 5053 5054 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a 5055 timing side channel attack. An attacker could use variations in the signing 5056 algorithm to recover the private key. 5057 5058 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser. 5059 ([CVE-2018-0734]) 5060 5061 *Paul Dale* 5062 5063 * Timing vulnerability in ECDSA signature generation 5064 5065 The OpenSSL ECDSA signature algorithm has been shown to be vulnerable to a 5066 timing side channel attack. An attacker could use variations in the signing 5067 algorithm to recover the private key. 5068 5069 This issue was reported to OpenSSL on 25th October 2018 by Samuel Weiser. 5070 ([CVE-2018-0735]) 5071 5072 *Paul Dale* 5073 5074 * Add coordinate blinding for EC_POINT and implement projective 5075 coordinate blinding for generic prime curves as a countermeasure to 5076 chosen point SCA attacks. 5077 5078 *Sohaib ul Hassan, Nicola Tuveri, Billy Bob Brumley* 5079 5080### Changes between 1.1.0h and 1.1.0i [14 Aug 2018] 5081 5082 * Client DoS due to large DH parameter 5083 5084 During key agreement in a TLS handshake using a DH(E) based ciphersuite a 5085 malicious server can send a very large prime value to the client. This will 5086 cause the client to spend an unreasonably long period of time generating a 5087 key for this prime resulting in a hang until the client has finished. This 5088 could be exploited in a Denial Of Service attack. 5089 5090 This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken 5091 ([CVE-2018-0732]) 5092 5093 *Guido Vranken* 5094 5095 * Cache timing vulnerability in RSA Key Generation 5096 5097 The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to 5098 a cache timing side channel attack. An attacker with sufficient access to 5099 mount cache timing attacks during the RSA key generation process could 5100 recover the private key. 5101 5102 This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera 5103 Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia. 5104 ([CVE-2018-0737]) 5105 5106 *Billy Brumley* 5107 5108 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str 5109 parameter is no longer accepted, as it leads to a corrupt table. NULL 5110 pem_str is reserved for alias entries only. 5111 5112 *Richard Levitte* 5113 5114 * Revert blinding in ECDSA sign and instead make problematic addition 5115 length-invariant. Switch even to fixed-length Montgomery multiplication. 5116 5117 *Andy Polyakov* 5118 5119 * Change generating and checking of primes so that the error rate of not 5120 being prime depends on the intended use based on the size of the input. 5121 For larger primes this will result in more rounds of Miller-Rabin. 5122 The maximal error rate for primes with more than 1080 bits is lowered 5123 to 2^-128. 5124 5125 *Kurt Roeckx, Annie Yousar* 5126 5127 * Increase the number of Miller-Rabin rounds for DSA key generating to 64. 5128 5129 *Kurt Roeckx* 5130 5131 * Add blinding to ECDSA and DSA signatures to protect against side channel 5132 attacks discovered by Keegan Ryan (NCC Group). 5133 5134 *Matt Caswell* 5135 5136 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we 5137 now allow empty (zero character) pass phrases. 5138 5139 *Richard Levitte* 5140 5141 * Certificate time validation (X509_cmp_time) enforces stricter 5142 compliance with RFC 5280. Fractional seconds and timezone offsets 5143 are no longer allowed. 5144 5145 *Emilia Käsper* 5146 5147 * Fixed a text canonicalisation bug in CMS 5148 5149 Where a CMS detached signature is used with text content the text goes 5150 through a canonicalisation process first prior to signing or verifying a 5151 signature. This process strips trailing space at the end of lines, converts 5152 line terminators to CRLF and removes additional trailing line terminators 5153 at the end of a file. A bug in the canonicalisation process meant that 5154 some characters, such as form-feed, were incorrectly treated as whitespace 5155 and removed. This is contrary to the specification (RFC5485). This fix 5156 could mean that detached text data signed with an earlier version of 5157 OpenSSL 1.1.0 may fail to verify using the fixed version, or text data 5158 signed with a fixed OpenSSL may fail to verify with an earlier version of 5159 OpenSSL 1.1.0. A workaround is to only verify the canonicalised text data 5160 and use the "-binary" flag (for the "cms" command line application) or set 5161 the SMIME_BINARY/PKCS7_BINARY/CMS_BINARY flags (if using CMS_verify()). 5162 5163 *Matt Caswell* 5164 5165### Changes between 1.1.0g and 1.1.0h [27 Mar 2018] 5166 5167 * Constructed ASN.1 types with a recursive definition could exceed the stack 5168 5169 Constructed ASN.1 types with a recursive definition (such as can be found 5170 in PKCS7) could eventually exceed the stack given malicious input with 5171 excessive recursion. This could result in a Denial Of Service attack. There 5172 are no such structures used within SSL/TLS that come from untrusted sources 5173 so this is considered safe. 5174 5175 This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz 5176 project. 5177 ([CVE-2018-0739]) 5178 5179 *Matt Caswell* 5180 5181 * Incorrect CRYPTO_memcmp on HP-UX PA-RISC 5182 5183 Because of an implementation bug the PA-RISC CRYPTO_memcmp function is 5184 effectively reduced to only comparing the least significant bit of each 5185 byte. This allows an attacker to forge messages that would be considered as 5186 authenticated in an amount of tries lower than that guaranteed by the 5187 security claims of the scheme. The module can only be compiled by the 5188 HP-UX assembler, so that only HP-UX PA-RISC targets are affected. 5189 5190 This issue was reported to OpenSSL on 2nd March 2018 by Peter Waltenberg 5191 (IBM). 5192 ([CVE-2018-0733]) 5193 5194 *Andy Polyakov* 5195 5196 * Add a build target 'build_all_generated', to build all generated files 5197 and only that. This can be used to prepare everything that requires 5198 things like perl for a system that lacks perl and then move everything 5199 to that system and do the rest of the build there. 5200 5201 *Richard Levitte* 5202 5203 * Backport SSL_OP_NO_RENGOTIATION 5204 5205 OpenSSL 1.0.2 and below had the ability to disable renegotiation using the 5206 (undocumented) SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS flag. Due to the opacity 5207 changes this is no longer possible in 1.1.0. Therefore, the new 5208 SSL_OP_NO_RENEGOTIATION option from 1.1.1-dev has been backported to 5209 1.1.0 to provide equivalent functionality. 5210 5211 Note that if an application built against 1.1.0h headers (or above) is run 5212 using an older version of 1.1.0 (prior to 1.1.0h) then the option will be 5213 accepted but nothing will happen, i.e. renegotiation will not be prevented. 5214 5215 *Matt Caswell* 5216 5217 * Removed the OS390-Unix config target. It relied on a script that doesn't 5218 exist. 5219 5220 *Rich Salz* 5221 5222 * rsaz_1024_mul_avx2 overflow bug on x86_64 5223 5224 There is an overflow bug in the AVX2 Montgomery multiplication procedure 5225 used in exponentiation with 1024-bit moduli. No EC algorithms are affected. 5226 Analysis suggests that attacks against RSA and DSA as a result of this 5227 defect would be very difficult to perform and are not believed likely. 5228 Attacks against DH1024 are considered just feasible, because most of the 5229 work necessary to deduce information about a private key may be performed 5230 offline. The amount of resources required for such an attack would be 5231 significant. However, for an attack on TLS to be meaningful, the server 5232 would have to share the DH1024 private key among multiple clients, which is 5233 no longer an option since CVE-2016-0701. 5234 5235 This only affects processors that support the AVX2 but not ADX extensions 5236 like Intel Haswell (4th generation). 5237 5238 This issue was reported to OpenSSL by David Benjamin (Google). The issue 5239 was originally found via the OSS-Fuzz project. 5240 ([CVE-2017-3738]) 5241 5242 *Andy Polyakov* 5243 5244### Changes between 1.1.0f and 1.1.0g [2 Nov 2017] 5245 5246 * bn_sqrx8x_internal carry bug on x86_64 5247 5248 There is a carry propagating bug in the x86_64 Montgomery squaring 5249 procedure. No EC algorithms are affected. Analysis suggests that attacks 5250 against RSA and DSA as a result of this defect would be very difficult to 5251 perform and are not believed likely. Attacks against DH are considered just 5252 feasible (although very difficult) because most of the work necessary to 5253 deduce information about a private key may be performed offline. The amount 5254 of resources required for such an attack would be very significant and 5255 likely only accessible to a limited number of attackers. An attacker would 5256 additionally need online access to an unpatched system using the target 5257 private key in a scenario with persistent DH parameters and a private 5258 key that is shared between multiple clients. 5259 5260 This only affects processors that support the BMI1, BMI2 and ADX extensions 5261 like Intel Broadwell (5th generation) and later or AMD Ryzen. 5262 5263 This issue was reported to OpenSSL by the OSS-Fuzz project. 5264 ([CVE-2017-3736]) 5265 5266 *Andy Polyakov* 5267 5268 * Malformed X.509 IPAddressFamily could cause OOB read 5269 5270 If an X.509 certificate has a malformed IPAddressFamily extension, 5271 OpenSSL could do a one-byte buffer overread. The most likely result 5272 would be an erroneous display of the certificate in text format. 5273 5274 This issue was reported to OpenSSL by the OSS-Fuzz project. 5275 ([CVE-2017-3735]) 5276 5277 *Rich Salz* 5278 5279### Changes between 1.1.0e and 1.1.0f [25 May 2017] 5280 5281 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target 5282 platform rather than 'mingw'. 5283 5284 *Richard Levitte* 5285 5286 * Remove the VMS-specific reimplementation of gmtime from crypto/o_times.c. 5287 VMS C's RTL has a fully up to date gmtime() and gmtime_r() since V7.1, 5288 which is the minimum version we support. 5289 5290 *Richard Levitte* 5291 5292### Changes between 1.1.0d and 1.1.0e [16 Feb 2017] 5293 5294 * Encrypt-Then-Mac renegotiation crash 5295 5296 During a renegotiation handshake if the Encrypt-Then-Mac extension is 5297 negotiated where it was not in the original handshake (or vice-versa) then 5298 this can cause OpenSSL to crash (dependent on ciphersuite). Both clients 5299 and servers are affected. 5300 5301 This issue was reported to OpenSSL by Joe Orton (Red Hat). 5302 ([CVE-2017-3733]) 5303 5304 *Matt Caswell* 5305 5306### Changes between 1.1.0c and 1.1.0d [26 Jan 2017] 5307 5308 * Truncated packet could crash via OOB read 5309 5310 If one side of an SSL/TLS path is running on a 32-bit host and a specific 5311 cipher is being used, then a truncated packet can cause that host to 5312 perform an out-of-bounds read, usually resulting in a crash. 5313 5314 This issue was reported to OpenSSL by Robert Święcki of Google. 5315 ([CVE-2017-3731]) 5316 5317 *Andy Polyakov* 5318 5319 * Bad (EC)DHE parameters cause a client crash 5320 5321 If a malicious server supplies bad parameters for a DHE or ECDHE key 5322 exchange then this can result in the client attempting to dereference a 5323 NULL pointer leading to a client crash. This could be exploited in a Denial 5324 of Service attack. 5325 5326 This issue was reported to OpenSSL by Guido Vranken. 5327 ([CVE-2017-3730]) 5328 5329 *Matt Caswell* 5330 5331 * BN_mod_exp may produce incorrect results on x86_64 5332 5333 There is a carry propagating bug in the x86_64 Montgomery squaring 5334 procedure. No EC algorithms are affected. Analysis suggests that attacks 5335 against RSA and DSA as a result of this defect would be very difficult to 5336 perform and are not believed likely. Attacks against DH are considered just 5337 feasible (although very difficult) because most of the work necessary to 5338 deduce information about a private key may be performed offline. The amount 5339 of resources required for such an attack would be very significant and 5340 likely only accessible to a limited number of attackers. An attacker would 5341 additionally need online access to an unpatched system using the target 5342 private key in a scenario with persistent DH parameters and a private 5343 key that is shared between multiple clients. For example this can occur by 5344 default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very 5345 similar to CVE-2015-3193 but must be treated as a separate problem. 5346 5347 This issue was reported to OpenSSL by the OSS-Fuzz project. 5348 ([CVE-2017-3732]) 5349 5350 *Andy Polyakov* 5351 5352### Changes between 1.1.0b and 1.1.0c [10 Nov 2016] 5353 5354 * ChaCha20/Poly1305 heap-buffer-overflow 5355 5356 TLS connections using `*-CHACHA20-POLY1305` ciphersuites are susceptible to 5357 a DoS attack by corrupting larger payloads. This can result in an OpenSSL 5358 crash. This issue is not considered to be exploitable beyond a DoS. 5359 5360 This issue was reported to OpenSSL by Robert Święcki (Google Security Team) 5361 ([CVE-2016-7054]) 5362 5363 *Richard Levitte* 5364 5365 * CMS Null dereference 5366 5367 Applications parsing invalid CMS structures can crash with a NULL pointer 5368 dereference. This is caused by a bug in the handling of the ASN.1 CHOICE 5369 type in OpenSSL 1.1.0 which can result in a NULL value being passed to the 5370 structure callback if an attempt is made to free certain invalid encodings. 5371 Only CHOICE structures using a callback which do not handle NULL value are 5372 affected. 5373 5374 This issue was reported to OpenSSL by Tyler Nighswander of ForAllSecure. 5375 ([CVE-2016-7053]) 5376 5377 *Stephen Henson* 5378 5379 * Montgomery multiplication may produce incorrect results 5380 5381 There is a carry propagating bug in the Broadwell-specific Montgomery 5382 multiplication procedure that handles input lengths divisible by, but 5383 longer than 256 bits. Analysis suggests that attacks against RSA, DSA 5384 and DH private keys are impossible. This is because the subroutine in 5385 question is not used in operations with the private key itself and an input 5386 of the attacker's direct choice. Otherwise the bug can manifest itself as 5387 transient authentication and key negotiation failures or reproducible 5388 erroneous outcome of public-key operations with specially crafted input. 5389 Among EC algorithms only Brainpool P-512 curves are affected and one 5390 presumably can attack ECDH key negotiation. Impact was not analyzed in 5391 detail, because pre-requisites for attack are considered unlikely. Namely 5392 multiple clients have to choose the curve in question and the server has to 5393 share the private key among them, neither of which is default behaviour. 5394 Even then only clients that chose the curve will be affected. 5395 5396 This issue was publicly reported as transient failures and was not 5397 initially recognized as a security issue. Thanks to Richard Morgan for 5398 providing reproducible case. 5399 ([CVE-2016-7055]) 5400 5401 *Andy Polyakov* 5402 5403 * Removed automatic addition of RPATH in shared libraries and executables, 5404 as this was a remainder from OpenSSL 1.0.x and isn't needed any more. 5405 5406 *Richard Levitte* 5407 5408### Changes between 1.1.0a and 1.1.0b [26 Sep 2016] 5409 5410 * Fix Use After Free for large message sizes 5411 5412 The patch applied to address CVE-2016-6307 resulted in an issue where if a 5413 message larger than approx 16k is received then the underlying buffer to 5414 store the incoming message is reallocated and moved. Unfortunately a 5415 dangling pointer to the old location is left which results in an attempt to 5416 write to the previously freed location. This is likely to result in a 5417 crash, however it could potentially lead to execution of arbitrary code. 5418 5419 This issue only affects OpenSSL 1.1.0a. 5420 5421 This issue was reported to OpenSSL by Robert Święcki. 5422 ([CVE-2016-6309]) 5423 5424 *Matt Caswell* 5425 5426### Changes between 1.1.0 and 1.1.0a [22 Sep 2016] 5427 5428 * OCSP Status Request extension unbounded memory growth 5429 5430 A malicious client can send an excessively large OCSP Status Request 5431 extension. If that client continually requests renegotiation, sending a 5432 large OCSP Status Request extension each time, then there will be unbounded 5433 memory growth on the server. This will eventually lead to a Denial Of 5434 Service attack through memory exhaustion. Servers with a default 5435 configuration are vulnerable even if they do not support OCSP. Builds using 5436 the "no-ocsp" build time option are not affected. 5437 5438 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 5439 ([CVE-2016-6304]) 5440 5441 *Matt Caswell* 5442 5443 * SSL_peek() hang on empty record 5444 5445 OpenSSL 1.1.0 SSL/TLS will hang during a call to SSL_peek() if the peer 5446 sends an empty record. This could be exploited by a malicious peer in a 5447 Denial Of Service attack. 5448 5449 This issue was reported to OpenSSL by Alex Gaynor. 5450 ([CVE-2016-6305]) 5451 5452 *Matt Caswell* 5453 5454 * Excessive allocation of memory in tls_get_message_header() and 5455 dtls1_preprocess_fragment() 5456 5457 A (D)TLS message includes 3 bytes for its length in the header for the 5458 message. This would allow for messages up to 16Mb in length. Messages of 5459 this length are excessive and OpenSSL includes a check to ensure that a 5460 peer is sending reasonably sized messages in order to avoid too much memory 5461 being consumed to service a connection. A flaw in the logic of version 5462 1.1.0 means that memory for the message is allocated too early, prior to 5463 the excessive message length check. Due to way memory is allocated in 5464 OpenSSL this could mean an attacker could force up to 21Mb to be allocated 5465 to service a connection. This could lead to a Denial of Service through 5466 memory exhaustion. However, the excessive message length check still takes 5467 place, and this would cause the connection to immediately fail. Assuming 5468 that the application calls SSL_free() on the failed connection in a timely 5469 manner then the 21Mb of allocated memory will then be immediately freed 5470 again. Therefore, the excessive memory allocation will be transitory in 5471 nature. This then means that there is only a security impact if: 5472 5473 1) The application does not call SSL_free() in a timely manner in the event 5474 that the connection fails 5475 or 5476 2) The application is working in a constrained environment where there is 5477 very little free memory 5478 or 5479 3) The attacker initiates multiple connection attempts such that there are 5480 multiple connections in a state where memory has been allocated for the 5481 connection; SSL_free() has not yet been called; and there is insufficient 5482 memory to service the multiple requests. 5483 5484 Except in the instance of (1) above any Denial Of Service is likely to be 5485 transitory because as soon as the connection fails the memory is 5486 subsequently freed again in the SSL_free() call. However there is an 5487 increased risk during this period of application crashes due to the lack of 5488 memory - which would then mean a more serious Denial of Service. 5489 5490 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 5491 (CVE-2016-6307 and CVE-2016-6308) 5492 5493 *Matt Caswell* 5494 5495 * solaris-x86-cc, i.e. 32-bit configuration with vendor compiler, 5496 had to be removed. Primary reason is that vendor assembler can't 5497 assemble our modules with -KPIC flag. As result it, assembly 5498 support, was not even available as option. But its lack means 5499 lack of side-channel resistant code, which is incompatible with 5500 security by todays standards. Fortunately gcc is readily available 5501 prepackaged option, which we firmly point at... 5502 5503 *Andy Polyakov* 5504 5505### Changes between 1.0.2h and 1.1.0 [25 Aug 2016] 5506 5507 * Windows command-line tool supports UTF-8 opt-in option for arguments 5508 and console input. Setting OPENSSL_WIN32_UTF8 environment variable 5509 (to any value) allows Windows user to access PKCS#12 file generated 5510 with Windows CryptoAPI and protected with non-ASCII password, as well 5511 as files generated under UTF-8 locale on Linux also protected with 5512 non-ASCII password. 5513 5514 *Andy Polyakov* 5515 5516 * To mitigate the SWEET32 attack ([CVE-2016-2183]), 3DES cipher suites 5517 have been disabled by default and removed from DEFAULT, just like RC4. 5518 See the RC4 item below to re-enable both. 5519 5520 *Rich Salz* 5521 5522 * The method for finding the storage location for the Windows RAND seed file 5523 has changed. First we check %RANDFILE%. If that is not set then we check 5524 the directories %HOME%, %USERPROFILE% and %SYSTEMROOT% in that order. If 5525 all else fails we fall back to C:\. 5526 5527 *Matt Caswell* 5528 5529 * The EVP_EncryptUpdate() function has had its return type changed from void 5530 to int. A return of 0 indicates and error while a return of 1 indicates 5531 success. 5532 5533 *Matt Caswell* 5534 5535 * The flags RSA_FLAG_NO_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME and 5536 DH_FLAG_NO_EXP_CONSTTIME which previously provided the ability to switch 5537 off the constant time implementation for RSA, DSA and DH have been made 5538 no-ops and deprecated. 5539 5540 *Matt Caswell* 5541 5542 * Windows RAND implementation was simplified to only get entropy by 5543 calling CryptGenRandom(). Various other RAND-related tickets 5544 were also closed. 5545 5546 *Joseph Wylie Yandle, Rich Salz* 5547 5548 * The stack and lhash API's were renamed to start with `OPENSSL_SK_` 5549 and `OPENSSL_LH_`, respectively. The old names are available 5550 with API compatibility. They new names are now completely documented. 5551 5552 *Rich Salz* 5553 5554 * Unify TYPE_up_ref(obj) methods signature. 5555 SSL_CTX_up_ref(), SSL_up_ref(), X509_up_ref(), EVP_PKEY_up_ref(), 5556 X509_CRL_up_ref(), X509_OBJECT_up_ref_count() methods are now returning an 5557 int (instead of void) like all others TYPE_up_ref() methods. 5558 So now these methods also check the return value of CRYPTO_atomic_add(), 5559 and the validity of object reference counter. 5560 5561 *fdasilvayy@gmail.com* 5562 5563 * With Windows Visual Studio builds, the .pdb files are installed 5564 alongside the installed libraries and executables. For a static 5565 library installation, ossl_static.pdb is the associate compiler 5566 generated .pdb file to be used when linking programs. 5567 5568 *Richard Levitte* 5569 5570 * Remove openssl.spec. Packaging files belong with the packagers. 5571 5572 *Richard Levitte* 5573 5574 * Automatic Darwin/OSX configuration has had a refresh, it will now 5575 recognise x86_64 architectures automatically. You can still decide 5576 to build for a different bitness with the environment variable 5577 KERNEL_BITS (can be 32 or 64), for example: 5578 5579 KERNEL_BITS=32 ./config 5580 5581 *Richard Levitte* 5582 5583 * Change default algorithms in pkcs8 utility to use PKCS#5 v2.0, 5584 256 bit AES and HMAC with SHA256. 5585 5586 *Steve Henson* 5587 5588 * Remove support for MIPS o32 ABI on IRIX (and IRIX only). 5589 5590 *Andy Polyakov* 5591 5592 * Triple-DES ciphers have been moved from HIGH to MEDIUM. 5593 5594 *Rich Salz* 5595 5596 * To enable users to have their own config files and build file templates, 5597 Configure looks in the directory indicated by the environment variable 5598 OPENSSL_LOCAL_CONFIG_DIR as well as the in-source Configurations/ 5599 directory. On VMS, OPENSSL_LOCAL_CONFIG_DIR is expected to be a logical 5600 name and is used as is. 5601 5602 *Richard Levitte* 5603 5604 * The following datatypes were made opaque: X509_OBJECT, X509_STORE_CTX, 5605 X509_STORE, X509_LOOKUP, and X509_LOOKUP_METHOD. The unused type 5606 X509_CERT_FILE_CTX was removed. 5607 5608 *Rich Salz* 5609 5610 * "shared" builds are now the default. To create only static libraries use 5611 the "no-shared" Configure option. 5612 5613 *Matt Caswell* 5614 5615 * Remove the no-aes, no-hmac, no-rsa, no-sha and no-md5 Configure options. 5616 All of these option have not worked for some while and are fundamental 5617 algorithms. 5618 5619 *Matt Caswell* 5620 5621 * Make various cleanup routines no-ops and mark them as deprecated. Most 5622 global cleanup functions are no longer required because they are handled 5623 via auto-deinit (see OPENSSL_init_crypto and OPENSSL_init_ssl man pages). 5624 Explicitly de-initing can cause problems (e.g. where a library that uses 5625 OpenSSL de-inits, but an application is still using it). The affected 5626 functions are CONF_modules_free(), ENGINE_cleanup(), OBJ_cleanup(), 5627 EVP_cleanup(), BIO_sock_cleanup(), CRYPTO_cleanup_all_ex_data(), 5628 RAND_cleanup(), SSL_COMP_free_compression_methods(), ERR_free_strings() and 5629 COMP_zlib_cleanup(). 5630 5631 *Matt Caswell* 5632 5633 * --strict-warnings no longer enables runtime debugging options 5634 such as REF_DEBUG. Instead, debug options are automatically 5635 enabled with '--debug' builds. 5636 5637 *Andy Polyakov, Emilia Käsper* 5638 5639 * Made DH and DH_METHOD opaque. The structures for managing DH objects 5640 have been moved out of the public header files. New functions for managing 5641 these have been added. 5642 5643 *Matt Caswell* 5644 5645 * Made RSA and RSA_METHOD opaque. The structures for managing RSA 5646 objects have been moved out of the public header files. New 5647 functions for managing these have been added. 5648 5649 *Richard Levitte* 5650 5651 * Made DSA and DSA_METHOD opaque. The structures for managing DSA objects 5652 have been moved out of the public header files. New functions for managing 5653 these have been added. 5654 5655 *Matt Caswell* 5656 5657 * Made BIO and BIO_METHOD opaque. The structures for managing BIOs have been 5658 moved out of the public header files. New functions for managing these 5659 have been added. 5660 5661 *Matt Caswell* 5662 5663 * Removed no-rijndael as a config option. Rijndael is an old name for AES. 5664 5665 *Matt Caswell* 5666 5667 * Removed the mk1mf build scripts. 5668 5669 *Richard Levitte* 5670 5671 * Headers are now wrapped, if necessary, with OPENSSL_NO_xxx, so 5672 it is always safe to #include a header now. 5673 5674 *Rich Salz* 5675 5676 * Removed the aged BC-32 config and all its supporting scripts 5677 5678 *Richard Levitte* 5679 5680 * Removed support for Ultrix, Netware, and OS/2. 5681 5682 *Rich Salz* 5683 5684 * Add support for HKDF. 5685 5686 *Alessandro Ghedini* 5687 5688 * Add support for blake2b and blake2s 5689 5690 *Bill Cox* 5691 5692 * Added support for "pipelining". Ciphers that have the 5693 EVP_CIPH_FLAG_PIPELINE flag set have a capability to process multiple 5694 encryptions/decryptions simultaneously. There are currently no built-in 5695 ciphers with this property but the expectation is that engines will be able 5696 to offer it to significantly improve throughput. Support has been extended 5697 into libssl so that multiple records for a single connection can be 5698 processed in one go (for >=TLS 1.1). 5699 5700 *Matt Caswell* 5701 5702 * Added the AFALG engine. This is an async capable engine which is able to 5703 offload work to the Linux kernel. In this initial version it only supports 5704 AES128-CBC. The kernel must be version 4.1.0 or greater. 5705 5706 *Catriona Lucey* 5707 5708 * OpenSSL now uses a new threading API. It is no longer necessary to 5709 set locking callbacks to use OpenSSL in a multi-threaded environment. There 5710 are two supported threading models: pthreads and windows threads. It is 5711 also possible to configure OpenSSL at compile time for "no-threads". The 5712 old threading API should no longer be used. The functions have been 5713 replaced with "no-op" compatibility macros. 5714 5715 *Alessandro Ghedini, Matt Caswell* 5716 5717 * Modify behavior of ALPN to invoke callback after SNI/servername 5718 callback, such that updates to the SSL_CTX affect ALPN. 5719 5720 *Todd Short* 5721 5722 * Add SSL_CIPHER queries for authentication and key-exchange. 5723 5724 *Todd Short* 5725 5726 * Changes to the DEFAULT cipherlist: 5727 - Prefer (EC)DHE handshakes over plain RSA. 5728 - Prefer AEAD ciphers over legacy ciphers. 5729 - Prefer ECDSA over RSA when both certificates are available. 5730 - Prefer TLSv1.2 ciphers/PRF. 5731 - Remove DSS, SEED, IDEA, CAMELLIA, and AES-CCM from the 5732 default cipherlist. 5733 5734 *Emilia Käsper* 5735 5736 * Change the ECC default curve list to be this, in order: x25519, 5737 secp256r1, secp521r1, secp384r1. 5738 5739 *Rich Salz* 5740 5741 * RC4 based libssl ciphersuites are now classed as "weak" ciphers and are 5742 disabled by default. They can be re-enabled using the 5743 enable-weak-ssl-ciphers option to Configure. 5744 5745 *Matt Caswell* 5746 5747 * If the server has ALPN configured, but supports no protocols that the 5748 client advertises, send a fatal "no_application_protocol" alert. 5749 This behaviour is SHALL in RFC 7301, though it isn't universally 5750 implemented by other servers. 5751 5752 *Emilia Käsper* 5753 5754 * Add X25519 support. 5755 Add ASN.1 and EVP_PKEY methods for X25519. This includes support 5756 for public and private key encoding using the format documented in 5757 draft-ietf-curdle-pkix-02. The corresponding EVP_PKEY method supports 5758 key generation and key derivation. 5759 5760 TLS support complies with draft-ietf-tls-rfc4492bis-08 and uses 5761 X25519(29). 5762 5763 *Steve Henson* 5764 5765 * Deprecate SRP_VBASE_get_by_user. 5766 SRP_VBASE_get_by_user had inconsistent memory management behaviour. 5767 In order to fix an unavoidable memory leak ([CVE-2016-0798]), 5768 SRP_VBASE_get_by_user was changed to ignore the "fake user" SRP 5769 seed, even if the seed is configured. 5770 5771 Users should use SRP_VBASE_get1_by_user instead. Note that in 5772 SRP_VBASE_get1_by_user, caller must free the returned value. Note 5773 also that even though configuring the SRP seed attempts to hide 5774 invalid usernames by continuing the handshake with fake 5775 credentials, this behaviour is not constant time and no strong 5776 guarantees are made that the handshake is indistinguishable from 5777 that of a valid user. 5778 5779 *Emilia Käsper* 5780 5781 * Configuration change; it's now possible to build dynamic engines 5782 without having to build shared libraries and vice versa. This 5783 only applies to the engines in `engines/`, those in `crypto/engine/` 5784 will always be built into libcrypto (i.e. "static"). 5785 5786 Building dynamic engines is enabled by default; to disable, use 5787 the configuration option "disable-dynamic-engine". 5788 5789 The only requirements for building dynamic engines are the 5790 presence of the DSO module and building with position independent 5791 code, so they will also automatically be disabled if configuring 5792 with "disable-dso" or "disable-pic". 5793 5794 The macros OPENSSL_NO_STATIC_ENGINE and OPENSSL_NO_DYNAMIC_ENGINE 5795 are also taken away from openssl/opensslconf.h, as they are 5796 irrelevant. 5797 5798 *Richard Levitte* 5799 5800 * Configuration change; if there is a known flag to compile 5801 position independent code, it will always be applied on the 5802 libcrypto and libssl object files, and never on the application 5803 object files. This means other libraries that use routines from 5804 libcrypto / libssl can be made into shared libraries regardless 5805 of how OpenSSL was configured. 5806 5807 If this isn't desirable, the configuration options "disable-pic" 5808 or "no-pic" can be used to disable the use of PIC. This will 5809 also disable building shared libraries and dynamic engines. 5810 5811 *Richard Levitte* 5812 5813 * Removed JPAKE code. It was experimental and has no wide use. 5814 5815 *Rich Salz* 5816 5817 * The INSTALL_PREFIX Makefile variable has been renamed to 5818 DESTDIR. That makes for less confusion on what this variable 5819 is for. Also, the configuration option --install_prefix is 5820 removed. 5821 5822 *Richard Levitte* 5823 5824 * Heartbeat for TLS has been removed and is disabled by default 5825 for DTLS; configure with enable-heartbeats. Code that uses the 5826 old #define's might need to be updated. 5827 5828 *Emilia Käsper, Rich Salz* 5829 5830 * Rename REF_CHECK to REF_DEBUG. 5831 5832 *Rich Salz* 5833 5834 * New "unified" build system 5835 5836 The "unified" build system is aimed to be a common system for all 5837 platforms we support. With it comes new support for VMS. 5838 5839 This system builds supports building in a different directory tree 5840 than the source tree. It produces one Makefile (for unix family 5841 or lookalikes), or one descrip.mms (for VMS). 5842 5843 The source of information to make the Makefile / descrip.mms is 5844 small files called 'build.info', holding the necessary 5845 information for each directory with source to compile, and a 5846 template in Configurations, like unix-Makefile.tmpl or 5847 descrip.mms.tmpl. 5848 5849 With this change, the library names were also renamed on Windows 5850 and on VMS. They now have names that are closer to the standard 5851 on Unix, and include the major version number, and in certain 5852 cases, the architecture they are built for. See "Notes on shared 5853 libraries" in INSTALL. 5854 5855 We rely heavily on the perl module Text::Template. 5856 5857 *Richard Levitte* 5858 5859 * Added support for auto-initialisation and de-initialisation of the library. 5860 OpenSSL no longer requires explicit init or deinit routines to be called, 5861 except in certain circumstances. See the OPENSSL_init_crypto() and 5862 OPENSSL_init_ssl() man pages for further information. 5863 5864 *Matt Caswell* 5865 5866 * The arguments to the DTLSv1_listen function have changed. Specifically the 5867 "peer" argument is now expected to be a BIO_ADDR object. 5868 5869 * Rewrite of BIO networking library. The BIO library lacked consistent 5870 support of IPv6, and adding it required some more extensive 5871 modifications. This introduces the BIO_ADDR and BIO_ADDRINFO types, 5872 which hold all types of addresses and chains of address information. 5873 It also introduces a new API, with functions like BIO_socket, 5874 BIO_connect, BIO_listen, BIO_lookup and a rewrite of BIO_accept. 5875 The source/sink BIOs BIO_s_connect, BIO_s_accept and BIO_s_datagram 5876 have been adapted accordingly. 5877 5878 *Richard Levitte* 5879 5880 * RSA_padding_check_PKCS1_type_1 now accepts inputs with and without 5881 the leading 0-byte. 5882 5883 *Emilia Käsper* 5884 5885 * CRIME protection: disable compression by default, even if OpenSSL is 5886 compiled with zlib enabled. Applications can still enable compression 5887 by calling SSL_CTX_clear_options(ctx, SSL_OP_NO_COMPRESSION), or by 5888 using the SSL_CONF library to configure compression. 5889 5890 *Emilia Käsper* 5891 5892 * The signature of the session callback configured with 5893 SSL_CTX_sess_set_get_cb was changed. The read-only input buffer 5894 was explicitly marked as `const unsigned char*` instead of 5895 `unsigned char*`. 5896 5897 *Emilia Käsper* 5898 5899 * Always DPURIFY. Remove the use of uninitialized memory in the 5900 RNG, and other conditional uses of DPURIFY. This makes -DPURIFY a no-op. 5901 5902 *Emilia Käsper* 5903 5904 * Removed many obsolete configuration items, including 5905 DES_PTR, DES_RISC1, DES_RISC2, DES_INT 5906 MD2_CHAR, MD2_INT, MD2_LONG 5907 BF_PTR, BF_PTR2 5908 IDEA_SHORT, IDEA_LONG 5909 RC2_SHORT, RC2_LONG, RC4_LONG, RC4_CHUNK, RC4_INDEX 5910 5911 *Rich Salz, with advice from Andy Polyakov* 5912 5913 * Many BN internals have been moved to an internal header file. 5914 5915 *Rich Salz with help from Andy Polyakov* 5916 5917 * Configuration and writing out the results from it has changed. 5918 Files such as Makefile include/openssl/opensslconf.h and are now 5919 produced through general templates, such as Makefile.in and 5920 crypto/opensslconf.h.in and some help from the perl module 5921 Text::Template. 5922 5923 Also, the center of configuration information is no longer 5924 Makefile. Instead, Configure produces a perl module in 5925 configdata.pm which holds most of the config data (in the hash 5926 table %config), the target data that comes from the target 5927 configuration in one of the `Configurations/*.conf` files (in 5928 %target). 5929 5930 *Richard Levitte* 5931 5932 * To clarify their intended purposes, the Configure options 5933 --prefix and --openssldir change their semantics, and become more 5934 straightforward and less interdependent. 5935 5936 --prefix shall be used exclusively to give the location INSTALLTOP 5937 where programs, scripts, libraries, include files and manuals are 5938 going to be installed. The default is now /usr/local. 5939 5940 --openssldir shall be used exclusively to give the default 5941 location OPENSSLDIR where certificates, private keys, CRLs are 5942 managed. This is also where the default openssl.cnf gets 5943 installed. 5944 If the directory given with this option is a relative path, the 5945 values of both the --prefix value and the --openssldir value will 5946 be combined to become OPENSSLDIR. 5947 The default for --openssldir is INSTALLTOP/ssl. 5948 5949 Anyone who uses --openssldir to specify where OpenSSL is to be 5950 installed MUST change to use --prefix instead. 5951 5952 *Richard Levitte* 5953 5954 * The GOST engine was out of date and therefore it has been removed. An up 5955 to date GOST engine is now being maintained in an external repository. 5956 See: <https://github.com/openssl/openssl/wiki/Binaries>. Libssl still retains 5957 support for GOST ciphersuites (these are only activated if a GOST engine 5958 is present). 5959 5960 *Matt Caswell* 5961 5962 * EGD is no longer supported by default; use enable-egd when 5963 configuring. 5964 5965 *Ben Kaduk and Rich Salz* 5966 5967 * The distribution now has Makefile.in files, which are used to 5968 create Makefile's when Configure is run. *Configure must be run 5969 before trying to build now.* 5970 5971 *Rich Salz* 5972 5973 * The return value for SSL_CIPHER_description() for error conditions 5974 has changed. 5975 5976 *Rich Salz* 5977 5978 * Support for RFC6698/RFC7671 DANE TLSA peer authentication. 5979 5980 Obtaining and performing DNSSEC validation of TLSA records is 5981 the application's responsibility. The application provides 5982 the TLSA records of its choice to OpenSSL, and these are then 5983 used to authenticate the peer. 5984 5985 The TLSA records need not even come from DNS. They can, for 5986 example, be used to implement local end-entity certificate or 5987 trust-anchor "pinning", where the "pin" data takes the form 5988 of TLSA records, which can augment or replace verification 5989 based on the usual WebPKI public certification authorities. 5990 5991 *Viktor Dukhovni* 5992 5993 * Revert default OPENSSL_NO_DEPRECATED setting. Instead OpenSSL 5994 continues to support deprecated interfaces in default builds. 5995 However, applications are strongly advised to compile their 5996 source files with -DOPENSSL_API_COMPAT=0x10100000L, which hides 5997 the declarations of all interfaces deprecated in 0.9.8, 1.0.0 5998 or the 1.1.0 releases. 5999 6000 In environments in which all applications have been ported to 6001 not use any deprecated interfaces OpenSSL's Configure script 6002 should be used with the --api=1.1.0 option to entirely remove 6003 support for the deprecated features from the library and 6004 unconditionally disable them in the installed headers. 6005 Essentially the same effect can be achieved with the "no-deprecated" 6006 argument to Configure, except that this will always restrict 6007 the build to just the latest API, rather than a fixed API 6008 version. 6009 6010 As applications are ported to future revisions of the API, 6011 they should update their compile-time OPENSSL_API_COMPAT define 6012 accordingly, but in most cases should be able to continue to 6013 compile with later releases. 6014 6015 The OPENSSL_API_COMPAT versions for 1.0.0, and 0.9.8 are 6016 0x10000000L and 0x00908000L, respectively. However those 6017 versions did not support the OPENSSL_API_COMPAT feature, and 6018 so applications are not typically tested for explicit support 6019 of just the undeprecated features of either release. 6020 6021 *Viktor Dukhovni* 6022 6023 * Add support for setting the minimum and maximum supported protocol. 6024 It can bet set via the SSL_set_min_proto_version() and 6025 SSL_set_max_proto_version(), or via the SSL_CONF's MinProtocol and 6026 MaxProtocol. It's recommended to use the new APIs to disable 6027 protocols instead of disabling individual protocols using 6028 SSL_set_options() or SSL_CONF's Protocol. This change also 6029 removes support for disabling TLS 1.2 in the OpenSSL TLS 6030 client at compile time by defining OPENSSL_NO_TLS1_2_CLIENT. 6031 6032 *Kurt Roeckx* 6033 6034 * Support for ChaCha20 and Poly1305 added to libcrypto and libssl. 6035 6036 *Andy Polyakov* 6037 6038 * New EC_KEY_METHOD, this replaces the older ECDSA_METHOD and ECDH_METHOD 6039 and integrates ECDSA and ECDH functionality into EC. Implementations can 6040 now redirect key generation and no longer need to convert to or from 6041 ECDSA_SIG format. 6042 6043 Note: the ecdsa.h and ecdh.h headers are now no longer needed and just 6044 include the ec.h header file instead. 6045 6046 *Steve Henson* 6047 6048 * Remove support for all 40 and 56 bit ciphers. This includes all the export 6049 ciphers who are no longer supported and drops support the ephemeral RSA key 6050 exchange. The LOW ciphers currently doesn't have any ciphers in it. 6051 6052 *Kurt Roeckx* 6053 6054 * Made EVP_MD_CTX, EVP_MD, EVP_CIPHER_CTX, EVP_CIPHER and HMAC_CTX 6055 opaque. For HMAC_CTX, the following constructors and destructors 6056 were added: 6057 6058 HMAC_CTX *HMAC_CTX_new(void); 6059 void HMAC_CTX_free(HMAC_CTX *ctx); 6060 6061 For EVP_MD and EVP_CIPHER, complete APIs to create, fill and 6062 destroy such methods has been added. See EVP_MD_meth_new(3) and 6063 EVP_CIPHER_meth_new(3) for documentation. 6064 6065 Additional changes: 6066 1) `EVP_MD_CTX_cleanup()`, `EVP_CIPHER_CTX_cleanup()` and 6067 `HMAC_CTX_cleanup()` were removed. `HMAC_CTX_reset()` and 6068 `EVP_MD_CTX_reset()` should be called instead to reinitialise 6069 an already created structure. 6070 2) For consistency with the majority of our object creators and 6071 destructors, `EVP_MD_CTX_(create|destroy)` were renamed to 6072 `EVP_MD_CTX_(new|free)`. The old names are retained as macros 6073 for deprecated builds. 6074 6075 *Richard Levitte* 6076 6077 * Added ASYNC support. Libcrypto now includes the async sub-library to enable 6078 cryptographic operations to be performed asynchronously as long as an 6079 asynchronous capable engine is used. See the ASYNC_start_job() man page for 6080 further details. Libssl has also had this capability integrated with the 6081 introduction of the new mode SSL_MODE_ASYNC and associated error 6082 SSL_ERROR_WANT_ASYNC. See the SSL_CTX_set_mode() and SSL_get_error() man 6083 pages. This work was developed in partnership with Intel Corp. 6084 6085 *Matt Caswell* 6086 6087 * SSL_{CTX_}set_ecdh_auto() has been removed and ECDH is support is 6088 always enabled now. If you want to disable the support you should 6089 exclude it using the list of supported ciphers. This also means that the 6090 "-no_ecdhe" option has been removed from s_server. 6091 6092 *Kurt Roeckx* 6093 6094 * SSL_{CTX}_set_tmp_ecdh() which can set 1 EC curve now internally calls 6095 SSL_{CTX_}set1_curves() which can set a list. 6096 6097 *Kurt Roeckx* 6098 6099 * Remove support for SSL_{CTX_}set_tmp_ecdh_callback(). You should set the 6100 curve you want to support using SSL_{CTX_}set1_curves(). 6101 6102 *Kurt Roeckx* 6103 6104 * State machine rewrite. The state machine code has been significantly 6105 refactored in order to remove much duplication of code and solve issues 6106 with the old code (see [ssl/statem/README.md](ssl/statem/README.md) for 6107 further details). This change does have some associated API changes. 6108 Notably the SSL_state() function has been removed and replaced by 6109 SSL_get_state which now returns an "OSSL_HANDSHAKE_STATE" instead of an int. 6110 SSL_set_state() has been removed altogether. The previous handshake states 6111 defined in ssl.h and ssl3.h have also been removed. 6112 6113 *Matt Caswell* 6114 6115 * All instances of the string "ssleay" in the public API were replaced 6116 with OpenSSL (case-matching; e.g., OPENSSL_VERSION for #define's) 6117 Some error codes related to internal RSA_eay API's were renamed. 6118 6119 *Rich Salz* 6120 6121 * The demo files in crypto/threads were moved to demo/threads. 6122 6123 *Rich Salz* 6124 6125 * Removed obsolete engines: 4758cca, aep, atalla, cswift, nuron, gmp, 6126 sureware and ubsec. 6127 6128 *Matt Caswell, Rich Salz* 6129 6130 * New ASN.1 embed macro. 6131 6132 New ASN.1 macro ASN1_EMBED. This is the same as ASN1_SIMPLE except the 6133 structure is not allocated: it is part of the parent. That is instead of 6134 6135 FOO *x; 6136 6137 it must be: 6138 6139 FOO x; 6140 6141 This reduces memory fragmentation and make it impossible to accidentally 6142 set a mandatory field to NULL. 6143 6144 This currently only works for some fields specifically a SEQUENCE, CHOICE, 6145 or ASN1_STRING type which is part of a parent SEQUENCE. Since it is 6146 equivalent to ASN1_SIMPLE it cannot be tagged, OPTIONAL, SET OF or 6147 SEQUENCE OF. 6148 6149 *Steve Henson* 6150 6151 * Remove EVP_CHECK_DES_KEY, a compile-time option that never compiled. 6152 6153 *Emilia Käsper* 6154 6155 * Removed DES and RC4 ciphersuites from DEFAULT. Also removed RC2 although 6156 in 1.0.2 EXPORT was already removed and the only RC2 ciphersuite is also 6157 an EXPORT one. COMPLEMENTOFDEFAULT has been updated accordingly to add 6158 DES and RC4 ciphersuites. 6159 6160 *Matt Caswell* 6161 6162 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs. 6163 This changes the decoding behaviour for some invalid messages, 6164 though the change is mostly in the more lenient direction, and 6165 legacy behaviour is preserved as much as possible. 6166 6167 *Emilia Käsper* 6168 6169 * Fix no-stdio build. 6170 *David Woodhouse <David.Woodhouse@intel.com> and also* 6171 *Ivan Nestlerode <ivan.nestlerode@sonos.com>* 6172 6173 * New testing framework 6174 The testing framework has been largely rewritten and is now using 6175 perl and the perl modules Test::Harness and an extended variant of 6176 Test::More called OpenSSL::Test to do its work. All test scripts in 6177 test/ have been rewritten into test recipes, and all direct calls to 6178 executables in test/Makefile have become individual recipes using the 6179 simplified testing OpenSSL::Test::Simple. 6180 6181 For documentation on our testing modules, do: 6182 6183 perldoc test/testlib/OpenSSL/Test/Simple.pm 6184 perldoc test/testlib/OpenSSL/Test.pm 6185 6186 *Richard Levitte* 6187 6188 * Revamped memory debug; only -DCRYPTO_MDEBUG and -DCRYPTO_MDEBUG_ABORT 6189 are used; the latter aborts on memory leaks (usually checked on exit). 6190 Some undocumented "set malloc, etc., hooks" functions were removed 6191 and others were changed. All are now documented. 6192 6193 *Rich Salz* 6194 6195 * In DSA_generate_parameters_ex, if the provided seed is too short, 6196 return an error 6197 6198 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>* 6199 6200 * Rewrite PSK to support ECDHE_PSK, DHE_PSK and RSA_PSK. Add ciphersuites 6201 from RFC4279, RFC4785, RFC5487, RFC5489. 6202 6203 Thanks to Christian J. Dietrich and Giuseppe D'Angelo for the 6204 original RSA_PSK patch. 6205 6206 *Steve Henson* 6207 6208 * Dropped support for the SSL3_FLAGS_DELAY_CLIENT_FINISHED flag. This SSLeay 6209 era flag was never set throughout the codebase (only read). Also removed 6210 SSL3_FLAGS_POP_BUFFER which was only used if 6211 SSL3_FLAGS_DELAY_CLIENT_FINISHED was also set. 6212 6213 *Matt Caswell* 6214 6215 * Changed the default name options in the "ca", "crl", "req" and "x509" 6216 to be "oneline" instead of "compat". 6217 6218 *Richard Levitte* 6219 6220 * Remove SSL_OP_TLS_BLOCK_PADDING_BUG. This is SSLeay legacy, we're 6221 not aware of clients that still exhibit this bug, and the workaround 6222 hasn't been working properly for a while. 6223 6224 *Emilia Käsper* 6225 6226 * The return type of BIO_number_read() and BIO_number_written() as well as 6227 the corresponding num_read and num_write members in the BIO structure has 6228 changed from unsigned long to uint64_t. On platforms where an unsigned 6229 long is 32 bits (e.g. Windows) these counters could overflow if >4Gb is 6230 transferred. 6231 6232 *Matt Caswell* 6233 6234 * Given the pervasive nature of TLS extensions it is inadvisable to run 6235 OpenSSL without support for them. It also means that maintaining 6236 the OPENSSL_NO_TLSEXT option within the code is very invasive (and probably 6237 not well tested). Therefore, the OPENSSL_NO_TLSEXT option has been removed. 6238 6239 *Matt Caswell* 6240 6241 * Removed support for the two export grade static DH ciphersuites 6242 EXP-DH-RSA-DES-CBC-SHA and EXP-DH-DSS-DES-CBC-SHA. These two ciphersuites 6243 were newly added (along with a number of other static DH ciphersuites) to 6244 1.0.2. However the two export ones have *never* worked since they were 6245 introduced. It seems strange in any case to be adding new export 6246 ciphersuites, and given "logjam" it also does not seem correct to fix them. 6247 6248 *Matt Caswell* 6249 6250 * Version negotiation has been rewritten. In particular SSLv23_method(), 6251 SSLv23_client_method() and SSLv23_server_method() have been deprecated, 6252 and turned into macros which simply call the new preferred function names 6253 TLS_method(), TLS_client_method() and TLS_server_method(). All new code 6254 should use the new names instead. Also as part of this change the ssl23.h 6255 header file has been removed. 6256 6257 *Matt Caswell* 6258 6259 * Support for Kerberos ciphersuites in TLS (RFC2712) has been removed. This 6260 code and the associated standard is no longer considered fit-for-purpose. 6261 6262 *Matt Caswell* 6263 6264 * RT2547 was closed. When generating a private key, try to make the 6265 output file readable only by the owner. This behavior change might 6266 be noticeable when interacting with other software. 6267 6268 * Documented all exdata functions. Added CRYPTO_free_ex_index. 6269 Added a test. 6270 6271 *Rich Salz* 6272 6273 * Added HTTP GET support to the ocsp command. 6274 6275 *Rich Salz* 6276 6277 * Changed default digest for the dgst and enc commands from MD5 to 6278 sha256 6279 6280 *Rich Salz* 6281 6282 * RAND_pseudo_bytes has been deprecated. Users should use RAND_bytes instead. 6283 6284 *Matt Caswell* 6285 6286 * Added support for TLS extended master secret from 6287 draft-ietf-tls-session-hash-03.txt. Thanks for Alfredo Pironti for an 6288 initial patch which was a great help during development. 6289 6290 *Steve Henson* 6291 6292 * All libssl internal structures have been removed from the public header 6293 files, and the OPENSSL_NO_SSL_INTERN option has been removed (since it is 6294 now redundant). Users should not attempt to access internal structures 6295 directly. Instead they should use the provided API functions. 6296 6297 *Matt Caswell* 6298 6299 * config has been changed so that by default OPENSSL_NO_DEPRECATED is used. 6300 Access to deprecated functions can be re-enabled by running config with 6301 "enable-deprecated". In addition applications wishing to use deprecated 6302 functions must define OPENSSL_USE_DEPRECATED. Note that this new behaviour 6303 will, by default, disable some transitive includes that previously existed 6304 in the header files (e.g. ec.h will no longer, by default, include bn.h) 6305 6306 *Matt Caswell* 6307 6308 * Added support for OCB mode. OpenSSL has been granted a patent license 6309 compatible with the OpenSSL license for use of OCB. Details are available 6310 at <https://www.openssl.org/source/OCB-patent-grant-OpenSSL.pdf>. Support 6311 for OCB can be removed by calling config with no-ocb. 6312 6313 *Matt Caswell* 6314 6315 * SSLv2 support has been removed. It still supports receiving an SSLv2 6316 compatible client hello. 6317 6318 *Kurt Roeckx* 6319 6320 * Increased the minimal RSA keysize from 256 to 512 bits [Rich Salz], 6321 done while fixing the error code for the key-too-small case. 6322 6323 *Annie Yousar <a.yousar@informatik.hu-berlin.de>* 6324 6325 * CA.sh has been removed; use CA.pl instead. 6326 6327 *Rich Salz* 6328 6329 * Removed old DES API. 6330 6331 *Rich Salz* 6332 6333 * Remove various unsupported platforms: 6334 Sony NEWS4 6335 BEOS and BEOS_R5 6336 NeXT 6337 SUNOS 6338 MPE/iX 6339 Sinix/ReliantUNIX RM400 6340 DGUX 6341 NCR 6342 Tandem 6343 Cray 6344 16-bit platforms such as WIN16 6345 6346 *Rich Salz* 6347 6348 * Clean up OPENSSL_NO_xxx #define's 6349 - Use setbuf() and remove OPENSSL_NO_SETVBUF_IONBF 6350 - Rename OPENSSL_SYSNAME_xxx to OPENSSL_SYS_xxx 6351 - OPENSSL_NO_EC{DH,DSA} merged into OPENSSL_NO_EC 6352 - OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160 6353 - OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO 6354 - Remove OPENSSL_NO_BIO OPENSSL_NO_BUFFER OPENSSL_NO_CHAIN_VERIFY 6355 OPENSSL_NO_EVP OPENSSL_NO_FIPS_ERR OPENSSL_NO_HASH_COMP 6356 OPENSSL_NO_LHASH OPENSSL_NO_OBJECT OPENSSL_NO_SPEED OPENSSL_NO_STACK 6357 OPENSSL_NO_X509 OPENSSL_NO_X509_VERIFY 6358 - Remove MS_STATIC; it's a relic from platforms <32 bits. 6359 6360 *Rich Salz* 6361 6362 * Cleaned up dead code 6363 Remove all but one '#ifdef undef' which is to be looked at. 6364 6365 *Rich Salz* 6366 6367 * Clean up calling of xxx_free routines. 6368 Just like free(), fix most of the xxx_free routines to accept 6369 NULL. Remove the non-null checks from callers. Save much code. 6370 6371 *Rich Salz* 6372 6373 * Add secure heap for storage of private keys (when possible). 6374 Add BIO_s_secmem(), CBIGNUM, etc. 6375 Contributed by Akamai Technologies under our Corporate CLA. 6376 6377 *Rich Salz* 6378 6379 * Experimental support for a new, fast, unbiased prime candidate generator, 6380 bn_probable_prime_dh_coprime(). Not currently used by any prime generator. 6381 6382 *Felix Laurie von Massenbach <felix@erbridge.co.uk>* 6383 6384 * New output format NSS in the sess_id command line tool. This allows 6385 exporting the session id and the master key in NSS keylog format. 6386 6387 *Martin Kaiser <martin@kaiser.cx>* 6388 6389 * Harmonize version and its documentation. -f flag is used to display 6390 compilation flags. 6391 6392 *mancha <mancha1@zoho.com>* 6393 6394 * Fix eckey_priv_encode so it immediately returns an error upon a failure 6395 in i2d_ECPrivateKey. Thanks to Ted Unangst for feedback on this issue. 6396 6397 *mancha <mancha1@zoho.com>* 6398 6399 * Fix some double frees. These are not thought to be exploitable. 6400 6401 *mancha <mancha1@zoho.com>* 6402 6403 * A missing bounds check in the handling of the TLS heartbeat extension 6404 can be used to reveal up to 64k of memory to a connected client or 6405 server. 6406 6407 Thanks for Neel Mehta of Google Security for discovering this bug and to 6408 Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for 6409 preparing the fix ([CVE-2014-0160]) 6410 6411 *Adam Langley, Bodo Moeller* 6412 6413 * Fix for the attack described in the paper "Recovering OpenSSL 6414 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack" 6415 by Yuval Yarom and Naomi Benger. Details can be obtained from: 6416 <http://eprint.iacr.org/2014/140> 6417 6418 Thanks to Yuval Yarom and Naomi Benger for discovering this 6419 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076]) 6420 6421 *Yuval Yarom and Naomi Benger* 6422 6423 * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file(): 6424 this fixes a limitation in previous versions of OpenSSL. 6425 6426 *Steve Henson* 6427 6428 * Experimental encrypt-then-mac support. 6429 6430 Experimental support for encrypt then mac from 6431 draft-gutmann-tls-encrypt-then-mac-02.txt 6432 6433 To enable it set the appropriate extension number (0x42 for the test 6434 server) using e.g. -DTLSEXT_TYPE_encrypt_then_mac=0x42 6435 6436 For non-compliant peers (i.e. just about everything) this should have no 6437 effect. 6438 6439 WARNING: EXPERIMENTAL, SUBJECT TO CHANGE. 6440 6441 *Steve Henson* 6442 6443 * Add EVP support for key wrapping algorithms, to avoid problems with 6444 existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in 6445 the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap 6446 algorithms and include tests cases. 6447 6448 *Steve Henson* 6449 6450 * Extend CMS code to support RSA-PSS signatures and RSA-OAEP for 6451 enveloped data. 6452 6453 *Steve Henson* 6454 6455 * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest, 6456 MGF1 digest and OAEP label. 6457 6458 *Steve Henson* 6459 6460 * Make openssl verify return errors. 6461 6462 *Chris Palmer <palmer@google.com> and Ben Laurie* 6463 6464 * New function ASN1_TIME_diff to calculate the difference between two 6465 ASN1_TIME structures or one structure and the current time. 6466 6467 *Steve Henson* 6468 6469 * Update fips_test_suite to support multiple command line options. New 6470 test to induce all self test errors in sequence and check expected 6471 failures. 6472 6473 *Steve Henson* 6474 6475 * Add FIPS_{rsa,dsa,ecdsa}_{sign,verify} functions which digest and 6476 sign or verify all in one operation. 6477 6478 *Steve Henson* 6479 6480 * Add fips_algvs: a multicall fips utility incorporating all the algorithm 6481 test programs and fips_test_suite. Includes functionality to parse 6482 the minimal script output of fipsalgest.pl directly. 6483 6484 *Steve Henson* 6485 6486 * Add authorisation parameter to FIPS_module_mode_set(). 6487 6488 *Steve Henson* 6489 6490 * Add FIPS selftest for ECDH algorithm using P-224 and B-233 curves. 6491 6492 *Steve Henson* 6493 6494 * Use separate DRBG fields for internal and external flags. New function 6495 FIPS_drbg_health_check() to perform on demand health checking. Add 6496 generation tests to fips_test_suite with reduced health check interval to 6497 demonstrate periodic health checking. Add "nodh" option to 6498 fips_test_suite to skip very slow DH test. 6499 6500 *Steve Henson* 6501 6502 * New function FIPS_get_cipherbynid() to lookup FIPS supported ciphers 6503 based on NID. 6504 6505 *Steve Henson* 6506 6507 * More extensive health check for DRBG checking many more failure modes. 6508 New function FIPS_selftest_drbg_all() to handle every possible DRBG 6509 combination: call this in fips_test_suite. 6510 6511 *Steve Henson* 6512 6513 * Add support for canonical generation of DSA parameter 'g'. See 6514 FIPS 186-3 A.2.3. 6515 6516 * Add support for HMAC DRBG from SP800-90. Update DRBG algorithm test and 6517 POST to handle HMAC cases. 6518 6519 *Steve Henson* 6520 6521 * Add functions FIPS_module_version() and FIPS_module_version_text() 6522 to return numerical and string versions of the FIPS module number. 6523 6524 *Steve Henson* 6525 6526 * Rename FIPS_mode_set and FIPS_mode to FIPS_module_mode_set and 6527 FIPS_module_mode. FIPS_mode and FIPS_mode_set will be implemented 6528 outside the validated module in the FIPS capable OpenSSL. 6529 6530 *Steve Henson* 6531 6532 * Minor change to DRBG entropy callback semantics. In some cases 6533 there is no multiple of the block length between min_len and 6534 max_len. Allow the callback to return more than max_len bytes 6535 of entropy but discard any extra: it is the callback's responsibility 6536 to ensure that the extra data discarded does not impact the 6537 requested amount of entropy. 6538 6539 *Steve Henson* 6540 6541 * Add PRNG security strength checks to RSA, DSA and ECDSA using 6542 information in FIPS186-3, SP800-57 and SP800-131A. 6543 6544 *Steve Henson* 6545 6546 * CCM support via EVP. Interface is very similar to GCM case except we 6547 must supply all data in one chunk (i.e. no update, final) and the 6548 message length must be supplied if AAD is used. Add algorithm test 6549 support. 6550 6551 *Steve Henson* 6552 6553 * Initial version of POST overhaul. Add POST callback to allow the status 6554 of POST to be monitored and/or failures induced. Modify fips_test_suite 6555 to use callback. Always run all selftests even if one fails. 6556 6557 *Steve Henson* 6558 6559 * XTS support including algorithm test driver in the fips_gcmtest program. 6560 Note: this does increase the maximum key length from 32 to 64 bytes but 6561 there should be no binary compatibility issues as existing applications 6562 will never use XTS mode. 6563 6564 *Steve Henson* 6565 6566 * Extensive reorganisation of FIPS PRNG behaviour. Remove all dependencies 6567 to OpenSSL RAND code and replace with a tiny FIPS RAND API which also 6568 performs algorithm blocking for unapproved PRNG types. Also do not 6569 set PRNG type in FIPS_mode_set(): leave this to the application. 6570 Add default OpenSSL DRBG handling: sets up FIPS PRNG and seeds with 6571 the standard OpenSSL PRNG: set additional data to a date time vector. 6572 6573 *Steve Henson* 6574 6575 * Rename old X9.31 PRNG functions of the form `FIPS_rand*` to `FIPS_x931*`. 6576 This shouldn't present any incompatibility problems because applications 6577 shouldn't be using these directly and any that are will need to rethink 6578 anyway as the X9.31 PRNG is now deprecated by FIPS 140-2 6579 6580 *Steve Henson* 6581 6582 * Extensive self tests and health checking required by SP800-90 DRBG. 6583 Remove strength parameter from FIPS_drbg_instantiate and always 6584 instantiate at maximum supported strength. 6585 6586 *Steve Henson* 6587 6588 * Add ECDH code to fips module and fips_ecdhvs for primitives only testing. 6589 6590 *Steve Henson* 6591 6592 * New algorithm test program fips_dhvs to handle DH primitives only testing. 6593 6594 *Steve Henson* 6595 6596 * New function DH_compute_key_padded() to compute a DH key and pad with 6597 leading zeroes if needed: this complies with SP800-56A et al. 6598 6599 *Steve Henson* 6600 6601 * Initial implementation of SP800-90 DRBGs for Hash and CTR. Not used by 6602 anything, incomplete, subject to change and largely untested at present. 6603 6604 *Steve Henson* 6605 6606 * Modify fipscanisteronly build option to only build the necessary object 6607 files by filtering FIPS_EX_OBJ through a perl script in crypto/Makefile. 6608 6609 *Steve Henson* 6610 6611 * Add experimental option FIPSSYMS to give all symbols in 6612 fipscanister.o and FIPS or fips prefix. This will avoid 6613 conflicts with future versions of OpenSSL. Add perl script 6614 util/fipsas.pl to preprocess assembly language source files 6615 and rename any affected symbols. 6616 6617 *Steve Henson* 6618 6619 * Add selftest checks and algorithm block of non-fips algorithms in 6620 FIPS mode. Remove DES2 from selftests. 6621 6622 *Steve Henson* 6623 6624 * Add ECDSA code to fips module. Add tiny fips_ecdsa_check to just 6625 return internal method without any ENGINE dependencies. Add new 6626 tiny fips sign and verify functions. 6627 6628 *Steve Henson* 6629 6630 * New build option no-ec2m to disable characteristic 2 code. 6631 6632 *Steve Henson* 6633 6634 * New build option "fipscanisteronly". This only builds fipscanister.o 6635 and (currently) associated fips utilities. Uses the file Makefile.fips 6636 instead of Makefile.org as the prototype. 6637 6638 *Steve Henson* 6639 6640 * Add some FIPS mode restrictions to GCM. Add internal IV generator. 6641 Update fips_gcmtest to use IV generator. 6642 6643 *Steve Henson* 6644 6645 * Initial, experimental EVP support for AES-GCM. AAD can be input by 6646 setting output buffer to NULL. The `*Final` function must be 6647 called although it will not retrieve any additional data. The tag 6648 can be set or retrieved with a ctrl. The IV length is by default 12 6649 bytes (96 bits) but can be set to an alternative value. If the IV 6650 length exceeds the maximum IV length (currently 16 bytes) it cannot be 6651 set before the key. 6652 6653 *Steve Henson* 6654 6655 * New flag in ciphers: EVP_CIPH_FLAG_CUSTOM_CIPHER. This means the 6656 underlying do_cipher function handles all cipher semantics itself 6657 including padding and finalisation. This is useful if (for example) 6658 an ENGINE cipher handles block padding itself. The behaviour of 6659 do_cipher is subtly changed if this flag is set: the return value 6660 is the number of characters written to the output buffer (zero is 6661 no longer an error code) or a negative error code. Also if the 6662 input buffer is NULL and length 0 finalisation should be performed. 6663 6664 *Steve Henson* 6665 6666 * If a candidate issuer certificate is already part of the constructed 6667 path ignore it: new debug notification X509_V_ERR_PATH_LOOP for this case. 6668 6669 *Steve Henson* 6670 6671 * Improve forward-security support: add functions 6672 6673 void SSL_CTX_set_not_resumable_session_callback( 6674 SSL_CTX *ctx, int (*cb)(SSL *ssl, int is_forward_secure)) 6675 void SSL_set_not_resumable_session_callback( 6676 SSL *ssl, int (*cb)(SSL *ssl, int is_forward_secure)) 6677 6678 for use by SSL/TLS servers; the callback function will be called whenever a 6679 new session is created, and gets to decide whether the session may be 6680 cached to make it resumable (return 0) or not (return 1). (As by the 6681 SSL/TLS protocol specifications, the session_id sent by the server will be 6682 empty to indicate that the session is not resumable; also, the server will 6683 not generate RFC 4507 (RFC 5077) session tickets.) 6684 6685 A simple reasonable callback implementation is to return is_forward_secure. 6686 This parameter will be set to 1 or 0 depending on the ciphersuite selected 6687 by the SSL/TLS server library, indicating whether it can provide forward 6688 security. 6689 6690 *Emilia Käsper <emilia.kasper@esat.kuleuven.be> (Google)* 6691 6692 * New -verify_name option in command line utilities to set verification 6693 parameters by name. 6694 6695 *Steve Henson* 6696 6697 * Initial CMAC implementation. WARNING: EXPERIMENTAL, API MAY CHANGE. 6698 Add CMAC pkey methods. 6699 6700 *Steve Henson* 6701 6702 * Experimental renegotiation in s_server -www mode. If the client 6703 browses /reneg connection is renegotiated. If /renegcert it is 6704 renegotiated requesting a certificate. 6705 6706 *Steve Henson* 6707 6708 * Add an "external" session cache for debugging purposes to s_server. This 6709 should help trace issues which normally are only apparent in deployed 6710 multi-process servers. 6711 6712 *Steve Henson* 6713 6714 * Extensive audit of libcrypto with DEBUG_UNUSED. Fix many cases where 6715 return value is ignored. NB. The functions RAND_add(), RAND_seed(), 6716 BIO_set_cipher() and some obscure PEM functions were changed so they 6717 can now return an error. The RAND changes required a change to the 6718 RAND_METHOD structure. 6719 6720 *Steve Henson* 6721 6722 * New macro `__owur` for "OpenSSL Warn Unused Result". This makes use of 6723 a gcc attribute to warn if the result of a function is ignored. This 6724 is enable if DEBUG_UNUSED is set. Add to several functions in evp.h 6725 whose return value is often ignored. 6726 6727 *Steve Henson* 6728 6729 * New -noct, -requestct, -requirect and -ctlogfile options for s_client. 6730 These allow SCTs (signed certificate timestamps) to be requested and 6731 validated when establishing a connection. 6732 6733 *Rob Percival <robpercival@google.com>* 6734 6735 * SSLv3 is by default disabled at build-time. Builds that are not 6736 configured with "enable-ssl3" will not support SSLv3. 6737 6738 *Kurt Roeckx* 6739 6740OpenSSL 1.0.2 6741------------- 6742 6743### Changes between 1.0.2s and 1.0.2t [10 Sep 2019] 6744 6745 * For built-in EC curves, ensure an EC_GROUP built from the curve name is 6746 used even when parsing explicit parameters, when loading a encoded key 6747 or calling `EC_GROUP_new_from_ecpkparameters()`/ 6748 `EC_GROUP_new_from_ecparameters()`. 6749 This prevents bypass of security hardening and performance gains, 6750 especially for curves with specialized EC_METHODs. 6751 By default, if a key encoded with explicit parameters is loaded and later 6752 encoded, the output is still encoded with explicit parameters, even if 6753 internally a "named" EC_GROUP is used for computation. 6754 6755 *Nicola Tuveri* 6756 6757 * Compute ECC cofactors if not provided during EC_GROUP construction. Before 6758 this change, EC_GROUP_set_generator would accept order and/or cofactor as 6759 NULL. After this change, only the cofactor parameter can be NULL. It also 6760 does some minimal sanity checks on the passed order. 6761 ([CVE-2019-1547]) 6762 6763 *Billy Bob Brumley* 6764 6765 * Fixed a padding oracle in PKCS7_dataDecode and CMS_decrypt_set1_pkey. 6766 An attack is simple, if the first CMS_recipientInfo is valid but the 6767 second CMS_recipientInfo is chosen ciphertext. If the second 6768 recipientInfo decodes to PKCS #1 v1.5 form plaintext, the correct 6769 encryption key will be replaced by garbage, and the message cannot be 6770 decoded, but if the RSA decryption fails, the correct encryption key is 6771 used and the recipient will not notice the attack. 6772 As a work around for this potential attack the length of the decrypted 6773 key must be equal to the cipher default key length, in case the 6774 certificate is not given and all recipientInfo are tried out. 6775 The old behaviour can be re-enabled in the CMS code by setting the 6776 CMS_DEBUG_DECRYPT flag. 6777 ([CVE-2019-1563]) 6778 6779 *Bernd Edlinger* 6780 6781 * Document issue with installation paths in diverse Windows builds 6782 6783 '/usr/local/ssl' is an unsafe prefix for location to install OpenSSL 6784 binaries and run-time config file. 6785 ([CVE-2019-1552]) 6786 6787 *Richard Levitte* 6788 6789### Changes between 1.0.2r and 1.0.2s [28 May 2019] 6790 6791 * Change the default RSA, DSA and DH size to 2048 bit instead of 1024. 6792 This changes the size when using the `genpkey` command when no size is given. 6793 It fixes an omission in earlier changes that changed all RSA, DSA and DH 6794 generation commands to use 2048 bits by default. 6795 6796 *Kurt Roeckx* 6797 6798 * Add FIPS support for Android Arm 64-bit 6799 6800 Support for Android Arm 64-bit was added to the OpenSSL FIPS Object 6801 Module in Version 2.0.10. For some reason, the corresponding target 6802 'android64-aarch64' was missing OpenSSL 1.0.2, whence it could not be 6803 built with FIPS support on Android Arm 64-bit. This omission has been 6804 fixed. 6805 6806 *Matthias St. Pierre* 6807 6808### Changes between 1.0.2q and 1.0.2r [26 Feb 2019] 6809 6810 * 0-byte record padding oracle 6811 6812 If an application encounters a fatal protocol error and then calls 6813 SSL_shutdown() twice (once to send a close_notify, and once to receive one) 6814 then OpenSSL can respond differently to the calling application if a 0 byte 6815 record is received with invalid padding compared to if a 0 byte record is 6816 received with an invalid MAC. If the application then behaves differently 6817 based on that in a way that is detectable to the remote peer, then this 6818 amounts to a padding oracle that could be used to decrypt data. 6819 6820 In order for this to be exploitable "non-stitched" ciphersuites must be in 6821 use. Stitched ciphersuites are optimised implementations of certain 6822 commonly used ciphersuites. Also the application must call SSL_shutdown() 6823 twice even if a protocol error has occurred (applications should not do 6824 this but some do anyway). 6825 6826 This issue was discovered by Juraj Somorovsky, Robert Merget and Nimrod 6827 Aviram, with additional investigation by Steven Collison and Andrew 6828 Hourselt. It was reported to OpenSSL on 10th December 2018. 6829 ([CVE-2019-1559]) 6830 6831 *Matt Caswell* 6832 6833 * Move strictness check from EVP_PKEY_asn1_new() to EVP_PKEY_asn1_add0(). 6834 6835 *Richard Levitte* 6836 6837### Changes between 1.0.2p and 1.0.2q [20 Nov 2018] 6838 6839 * Microarchitecture timing vulnerability in ECC scalar multiplication 6840 6841 OpenSSL ECC scalar multiplication, used in e.g. ECDSA and ECDH, has been 6842 shown to be vulnerable to a microarchitecture timing side channel attack. 6843 An attacker with sufficient access to mount local timing attacks during 6844 ECDSA signature generation could recover the private key. 6845 6846 This issue was reported to OpenSSL on 26th October 2018 by Alejandro 6847 Cabrera Aldaya, Billy Brumley, Sohaib ul Hassan, Cesar Pereida Garcia and 6848 Nicola Tuveri. 6849 ([CVE-2018-5407]) 6850 6851 *Billy Brumley* 6852 6853 * Timing vulnerability in DSA signature generation 6854 6855 The OpenSSL DSA signature algorithm has been shown to be vulnerable to a 6856 timing side channel attack. An attacker could use variations in the signing 6857 algorithm to recover the private key. 6858 6859 This issue was reported to OpenSSL on 16th October 2018 by Samuel Weiser. 6860 ([CVE-2018-0734]) 6861 6862 *Paul Dale* 6863 6864 * Resolve a compatibility issue in EC_GROUP handling with the FIPS Object 6865 Module, accidentally introduced while backporting security fixes from the 6866 development branch and hindering the use of ECC in FIPS mode. 6867 6868 *Nicola Tuveri* 6869 6870### Changes between 1.0.2o and 1.0.2p [14 Aug 2018] 6871 6872 * Client DoS due to large DH parameter 6873 6874 During key agreement in a TLS handshake using a DH(E) based ciphersuite a 6875 malicious server can send a very large prime value to the client. This will 6876 cause the client to spend an unreasonably long period of time generating a 6877 key for this prime resulting in a hang until the client has finished. This 6878 could be exploited in a Denial Of Service attack. 6879 6880 This issue was reported to OpenSSL on 5th June 2018 by Guido Vranken 6881 ([CVE-2018-0732]) 6882 6883 *Guido Vranken* 6884 6885 * Cache timing vulnerability in RSA Key Generation 6886 6887 The OpenSSL RSA Key generation algorithm has been shown to be vulnerable to 6888 a cache timing side channel attack. An attacker with sufficient access to 6889 mount cache timing attacks during the RSA key generation process could 6890 recover the private key. 6891 6892 This issue was reported to OpenSSL on 4th April 2018 by Alejandro Cabrera 6893 Aldaya, Billy Brumley, Cesar Pereida Garcia and Luis Manuel Alvarez Tapia. 6894 ([CVE-2018-0737]) 6895 6896 *Billy Brumley* 6897 6898 * Make EVP_PKEY_asn1_new() a bit stricter about its input. A NULL pem_str 6899 parameter is no longer accepted, as it leads to a corrupt table. NULL 6900 pem_str is reserved for alias entries only. 6901 6902 *Richard Levitte* 6903 6904 * Revert blinding in ECDSA sign and instead make problematic addition 6905 length-invariant. Switch even to fixed-length Montgomery multiplication. 6906 6907 *Andy Polyakov* 6908 6909 * Change generating and checking of primes so that the error rate of not 6910 being prime depends on the intended use based on the size of the input. 6911 For larger primes this will result in more rounds of Miller-Rabin. 6912 The maximal error rate for primes with more than 1080 bits is lowered 6913 to 2^-128. 6914 6915 *Kurt Roeckx, Annie Yousar* 6916 6917 * Increase the number of Miller-Rabin rounds for DSA key generating to 64. 6918 6919 *Kurt Roeckx* 6920 6921 * Add blinding to ECDSA and DSA signatures to protect against side channel 6922 attacks discovered by Keegan Ryan (NCC Group). 6923 6924 *Matt Caswell* 6925 6926 * When unlocking a pass phrase protected PEM file or PKCS#8 container, we 6927 now allow empty (zero character) pass phrases. 6928 6929 *Richard Levitte* 6930 6931 * Certificate time validation (X509_cmp_time) enforces stricter 6932 compliance with RFC 5280. Fractional seconds and timezone offsets 6933 are no longer allowed. 6934 6935 *Emilia Käsper* 6936 6937### Changes between 1.0.2n and 1.0.2o [27 Mar 2018] 6938 6939 * Constructed ASN.1 types with a recursive definition could exceed the stack 6940 6941 Constructed ASN.1 types with a recursive definition (such as can be found 6942 in PKCS7) could eventually exceed the stack given malicious input with 6943 excessive recursion. This could result in a Denial Of Service attack. There 6944 are no such structures used within SSL/TLS that come from untrusted sources 6945 so this is considered safe. 6946 6947 This issue was reported to OpenSSL on 4th January 2018 by the OSS-fuzz 6948 project. 6949 ([CVE-2018-0739]) 6950 6951 *Matt Caswell* 6952 6953### Changes between 1.0.2m and 1.0.2n [7 Dec 2017] 6954 6955 * Read/write after SSL object in error state 6956 6957 OpenSSL 1.0.2 (starting from version 1.0.2b) introduced an "error state" 6958 mechanism. The intent was that if a fatal error occurred during a handshake 6959 then OpenSSL would move into the error state and would immediately fail if 6960 you attempted to continue the handshake. This works as designed for the 6961 explicit handshake functions (SSL_do_handshake(), SSL_accept() and 6962 SSL_connect()), however due to a bug it does not work correctly if 6963 SSL_read() or SSL_write() is called directly. In that scenario, if the 6964 handshake fails then a fatal error will be returned in the initial function 6965 call. If SSL_read()/SSL_write() is subsequently called by the application 6966 for the same SSL object then it will succeed and the data is passed without 6967 being decrypted/encrypted directly from the SSL/TLS record layer. 6968 6969 In order to exploit this issue an application bug would have to be present 6970 that resulted in a call to SSL_read()/SSL_write() being issued after having 6971 already received a fatal error. 6972 6973 This issue was reported to OpenSSL by David Benjamin (Google). 6974 ([CVE-2017-3737]) 6975 6976 *Matt Caswell* 6977 6978 * rsaz_1024_mul_avx2 overflow bug on x86_64 6979 6980 There is an overflow bug in the AVX2 Montgomery multiplication procedure 6981 used in exponentiation with 1024-bit moduli. No EC algorithms are affected. 6982 Analysis suggests that attacks against RSA and DSA as a result of this 6983 defect would be very difficult to perform and are not believed likely. 6984 Attacks against DH1024 are considered just feasible, because most of the 6985 work necessary to deduce information about a private key may be performed 6986 offline. The amount of resources required for such an attack would be 6987 significant. However, for an attack on TLS to be meaningful, the server 6988 would have to share the DH1024 private key among multiple clients, which is 6989 no longer an option since CVE-2016-0701. 6990 6991 This only affects processors that support the AVX2 but not ADX extensions 6992 like Intel Haswell (4th generation). 6993 6994 This issue was reported to OpenSSL by David Benjamin (Google). The issue 6995 was originally found via the OSS-Fuzz project. 6996 ([CVE-2017-3738]) 6997 6998 *Andy Polyakov* 6999 7000### Changes between 1.0.2l and 1.0.2m [2 Nov 2017] 7001 7002 * bn_sqrx8x_internal carry bug on x86_64 7003 7004 There is a carry propagating bug in the x86_64 Montgomery squaring 7005 procedure. No EC algorithms are affected. Analysis suggests that attacks 7006 against RSA and DSA as a result of this defect would be very difficult to 7007 perform and are not believed likely. Attacks against DH are considered just 7008 feasible (although very difficult) because most of the work necessary to 7009 deduce information about a private key may be performed offline. The amount 7010 of resources required for such an attack would be very significant and 7011 likely only accessible to a limited number of attackers. An attacker would 7012 additionally need online access to an unpatched system using the target 7013 private key in a scenario with persistent DH parameters and a private 7014 key that is shared between multiple clients. 7015 7016 This only affects processors that support the BMI1, BMI2 and ADX extensions 7017 like Intel Broadwell (5th generation) and later or AMD Ryzen. 7018 7019 This issue was reported to OpenSSL by the OSS-Fuzz project. 7020 ([CVE-2017-3736]) 7021 7022 *Andy Polyakov* 7023 7024 * Malformed X.509 IPAddressFamily could cause OOB read 7025 7026 If an X.509 certificate has a malformed IPAddressFamily extension, 7027 OpenSSL could do a one-byte buffer overread. The most likely result 7028 would be an erroneous display of the certificate in text format. 7029 7030 This issue was reported to OpenSSL by the OSS-Fuzz project. 7031 7032 *Rich Salz* 7033 7034### Changes between 1.0.2k and 1.0.2l [25 May 2017] 7035 7036 * Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target 7037 platform rather than 'mingw'. 7038 7039 *Richard Levitte* 7040 7041### Changes between 1.0.2j and 1.0.2k [26 Jan 2017] 7042 7043 * Truncated packet could crash via OOB read 7044 7045 If one side of an SSL/TLS path is running on a 32-bit host and a specific 7046 cipher is being used, then a truncated packet can cause that host to 7047 perform an out-of-bounds read, usually resulting in a crash. 7048 7049 This issue was reported to OpenSSL by Robert Święcki of Google. 7050 ([CVE-2017-3731]) 7051 7052 *Andy Polyakov* 7053 7054 * BN_mod_exp may produce incorrect results on x86_64 7055 7056 There is a carry propagating bug in the x86_64 Montgomery squaring 7057 procedure. No EC algorithms are affected. Analysis suggests that attacks 7058 against RSA and DSA as a result of this defect would be very difficult to 7059 perform and are not believed likely. Attacks against DH are considered just 7060 feasible (although very difficult) because most of the work necessary to 7061 deduce information about a private key may be performed offline. The amount 7062 of resources required for such an attack would be very significant and 7063 likely only accessible to a limited number of attackers. An attacker would 7064 additionally need online access to an unpatched system using the target 7065 private key in a scenario with persistent DH parameters and a private 7066 key that is shared between multiple clients. For example this can occur by 7067 default in OpenSSL DHE based SSL/TLS ciphersuites. Note: This issue is very 7068 similar to CVE-2015-3193 but must be treated as a separate problem. 7069 7070 This issue was reported to OpenSSL by the OSS-Fuzz project. 7071 ([CVE-2017-3732]) 7072 7073 *Andy Polyakov* 7074 7075 * Montgomery multiplication may produce incorrect results 7076 7077 There is a carry propagating bug in the Broadwell-specific Montgomery 7078 multiplication procedure that handles input lengths divisible by, but 7079 longer than 256 bits. Analysis suggests that attacks against RSA, DSA 7080 and DH private keys are impossible. This is because the subroutine in 7081 question is not used in operations with the private key itself and an input 7082 of the attacker's direct choice. Otherwise the bug can manifest itself as 7083 transient authentication and key negotiation failures or reproducible 7084 erroneous outcome of public-key operations with specially crafted input. 7085 Among EC algorithms only Brainpool P-512 curves are affected and one 7086 presumably can attack ECDH key negotiation. Impact was not analyzed in 7087 detail, because pre-requisites for attack are considered unlikely. Namely 7088 multiple clients have to choose the curve in question and the server has to 7089 share the private key among them, neither of which is default behaviour. 7090 Even then only clients that chose the curve will be affected. 7091 7092 This issue was publicly reported as transient failures and was not 7093 initially recognized as a security issue. Thanks to Richard Morgan for 7094 providing reproducible case. 7095 ([CVE-2016-7055]) 7096 7097 *Andy Polyakov* 7098 7099 * OpenSSL now fails if it receives an unrecognised record type in TLS1.0 7100 or TLS1.1. Previously this only happened in SSLv3 and TLS1.2. This is to 7101 prevent issues where no progress is being made and the peer continually 7102 sends unrecognised record types, using up resources processing them. 7103 7104 *Matt Caswell* 7105 7106### Changes between 1.0.2i and 1.0.2j [26 Sep 2016] 7107 7108 * Missing CRL sanity check 7109 7110 A bug fix which included a CRL sanity check was added to OpenSSL 1.1.0 7111 but was omitted from OpenSSL 1.0.2i. As a result any attempt to use 7112 CRLs in OpenSSL 1.0.2i will crash with a null pointer exception. 7113 7114 This issue only affects the OpenSSL 1.0.2i 7115 ([CVE-2016-7052]) 7116 7117 *Matt Caswell* 7118 7119### Changes between 1.0.2h and 1.0.2i [22 Sep 2016] 7120 7121 * OCSP Status Request extension unbounded memory growth 7122 7123 A malicious client can send an excessively large OCSP Status Request 7124 extension. If that client continually requests renegotiation, sending a 7125 large OCSP Status Request extension each time, then there will be unbounded 7126 memory growth on the server. This will eventually lead to a Denial Of 7127 Service attack through memory exhaustion. Servers with a default 7128 configuration are vulnerable even if they do not support OCSP. Builds using 7129 the "no-ocsp" build time option are not affected. 7130 7131 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 7132 ([CVE-2016-6304]) 7133 7134 *Matt Caswell* 7135 7136 * In order to mitigate the SWEET32 attack, the DES ciphers were moved from 7137 HIGH to MEDIUM. 7138 7139 This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan 7140 Leurent (INRIA) 7141 ([CVE-2016-2183]) 7142 7143 *Rich Salz* 7144 7145 * OOB write in MDC2_Update() 7146 7147 An overflow can occur in MDC2_Update() either if called directly or 7148 through the EVP_DigestUpdate() function using MDC2. If an attacker 7149 is able to supply very large amounts of input data after a previous 7150 call to EVP_EncryptUpdate() with a partial block then a length check 7151 can overflow resulting in a heap corruption. 7152 7153 The amount of data needed is comparable to SIZE_MAX which is impractical 7154 on most platforms. 7155 7156 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 7157 ([CVE-2016-6303]) 7158 7159 *Stephen Henson* 7160 7161 * Malformed SHA512 ticket DoS 7162 7163 If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a 7164 DoS attack where a malformed ticket will result in an OOB read which will 7165 ultimately crash. 7166 7167 The use of SHA512 in TLS session tickets is comparatively rare as it requires 7168 a custom server callback and ticket lookup mechanism. 7169 7170 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 7171 ([CVE-2016-6302]) 7172 7173 *Stephen Henson* 7174 7175 * OOB write in BN_bn2dec() 7176 7177 The function BN_bn2dec() does not check the return value of BN_div_word(). 7178 This can cause an OOB write if an application uses this function with an 7179 overly large BIGNUM. This could be a problem if an overly large certificate 7180 or CRL is printed out from an untrusted source. TLS is not affected because 7181 record limits will reject an oversized certificate before it is parsed. 7182 7183 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 7184 ([CVE-2016-2182]) 7185 7186 *Stephen Henson* 7187 7188 * OOB read in TS_OBJ_print_bio() 7189 7190 The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is 7191 the total length the OID text representation would use and not the amount 7192 of data written. This will result in OOB reads when large OIDs are 7193 presented. 7194 7195 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 7196 ([CVE-2016-2180]) 7197 7198 *Stephen Henson* 7199 7200 * Pointer arithmetic undefined behaviour 7201 7202 Avoid some undefined pointer arithmetic 7203 7204 A common idiom in the codebase is to check limits in the following manner: 7205 "p + len > limit" 7206 7207 Where "p" points to some malloc'd data of SIZE bytes and 7208 limit == p + SIZE 7209 7210 "len" here could be from some externally supplied data (e.g. from a TLS 7211 message). 7212 7213 The rules of C pointer arithmetic are such that "p + len" is only well 7214 defined where len <= SIZE. Therefore the above idiom is actually 7215 undefined behaviour. 7216 7217 For example this could cause problems if some malloc implementation 7218 provides an address for "p" such that "p + len" actually overflows for 7219 values of len that are too big and therefore p + len < limit. 7220 7221 This issue was reported to OpenSSL by Guido Vranken 7222 ([CVE-2016-2177]) 7223 7224 *Matt Caswell* 7225 7226 * Constant time flag not preserved in DSA signing 7227 7228 Operations in the DSA signing algorithm should run in constant time in 7229 order to avoid side channel attacks. A flaw in the OpenSSL DSA 7230 implementation means that a non-constant time codepath is followed for 7231 certain operations. This has been demonstrated through a cache-timing 7232 attack to be sufficient for an attacker to recover the private DSA key. 7233 7234 This issue was reported by César Pereida (Aalto University), Billy Brumley 7235 (Tampere University of Technology), and Yuval Yarom (The University of 7236 Adelaide and NICTA). 7237 ([CVE-2016-2178]) 7238 7239 *César Pereida* 7240 7241 * DTLS buffered message DoS 7242 7243 In a DTLS connection where handshake messages are delivered out-of-order 7244 those messages that OpenSSL is not yet ready to process will be buffered 7245 for later use. Under certain circumstances, a flaw in the logic means that 7246 those messages do not get removed from the buffer even though the handshake 7247 has been completed. An attacker could force up to approx. 15 messages to 7248 remain in the buffer when they are no longer required. These messages will 7249 be cleared when the DTLS connection is closed. The default maximum size for 7250 a message is 100k. Therefore, the attacker could force an additional 1500k 7251 to be consumed per connection. By opening many simultaneous connections an 7252 attacker could cause a DoS attack through memory exhaustion. 7253 7254 This issue was reported to OpenSSL by Quan Luo. 7255 ([CVE-2016-2179]) 7256 7257 *Matt Caswell* 7258 7259 * DTLS replay protection DoS 7260 7261 A flaw in the DTLS replay attack protection mechanism means that records 7262 that arrive for future epochs update the replay protection "window" before 7263 the MAC for the record has been validated. This could be exploited by an 7264 attacker by sending a record for the next epoch (which does not have to 7265 decrypt or have a valid MAC), with a very large sequence number. This means 7266 that all subsequent legitimate packets are dropped causing a denial of 7267 service for a specific DTLS connection. 7268 7269 This issue was reported to OpenSSL by the OCAP audit team. 7270 ([CVE-2016-2181]) 7271 7272 *Matt Caswell* 7273 7274 * Certificate message OOB reads 7275 7276 In OpenSSL 1.0.2 and earlier some missing message length checks can result 7277 in OOB reads of up to 2 bytes beyond an allocated buffer. There is a 7278 theoretical DoS risk but this has not been observed in practice on common 7279 platforms. 7280 7281 The messages affected are client certificate, client certificate request 7282 and server certificate. As a result the attack can only be performed 7283 against a client or a server which enables client authentication. 7284 7285 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 7286 ([CVE-2016-6306]) 7287 7288 *Stephen Henson* 7289 7290### Changes between 1.0.2g and 1.0.2h [3 May 2016] 7291 7292 * Prevent padding oracle in AES-NI CBC MAC check 7293 7294 A MITM attacker can use a padding oracle attack to decrypt traffic 7295 when the connection uses an AES CBC cipher and the server support 7296 AES-NI. 7297 7298 This issue was introduced as part of the fix for Lucky 13 padding 7299 attack ([CVE-2013-0169]). The padding check was rewritten to be in 7300 constant time by making sure that always the same bytes are read and 7301 compared against either the MAC or padding bytes. But it no longer 7302 checked that there was enough data to have both the MAC and padding 7303 bytes. 7304 7305 This issue was reported by Juraj Somorovsky using TLS-Attacker. 7306 7307 *Kurt Roeckx* 7308 7309 * Fix EVP_EncodeUpdate overflow 7310 7311 An overflow can occur in the EVP_EncodeUpdate() function which is used for 7312 Base64 encoding of binary data. If an attacker is able to supply very large 7313 amounts of input data then a length check can overflow resulting in a heap 7314 corruption. 7315 7316 Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by 7317 the `PEM_write_bio*` family of functions. These are mainly used within the 7318 OpenSSL command line applications, so any application which processes data 7319 from an untrusted source and outputs it as a PEM file should be considered 7320 vulnerable to this issue. User applications that call these APIs directly 7321 with large amounts of untrusted data may also be vulnerable. 7322 7323 This issue was reported by Guido Vranken. 7324 ([CVE-2016-2105]) 7325 7326 *Matt Caswell* 7327 7328 * Fix EVP_EncryptUpdate overflow 7329 7330 An overflow can occur in the EVP_EncryptUpdate() function. If an attacker 7331 is able to supply very large amounts of input data after a previous call to 7332 EVP_EncryptUpdate() with a partial block then a length check can overflow 7333 resulting in a heap corruption. Following an analysis of all OpenSSL 7334 internal usage of the EVP_EncryptUpdate() function all usage is one of two 7335 forms. The first form is where the EVP_EncryptUpdate() call is known to be 7336 the first called function after an EVP_EncryptInit(), and therefore that 7337 specific call must be safe. The second form is where the length passed to 7338 EVP_EncryptUpdate() can be seen from the code to be some small value and 7339 therefore there is no possibility of an overflow. Since all instances are 7340 one of these two forms, it is believed that there can be no overflows in 7341 internal code due to this problem. It should be noted that 7342 EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths. 7343 Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances 7344 of these calls have also been analysed too and it is believed there are no 7345 instances in internal usage where an overflow could occur. 7346 7347 This issue was reported by Guido Vranken. 7348 ([CVE-2016-2106]) 7349 7350 *Matt Caswell* 7351 7352 * Prevent ASN.1 BIO excessive memory allocation 7353 7354 When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio() 7355 a short invalid encoding can cause allocation of large amounts of memory 7356 potentially consuming excessive resources or exhausting memory. 7357 7358 Any application parsing untrusted data through d2i BIO functions is 7359 affected. The memory based functions such as d2i_X509() are *not* affected. 7360 Since the memory based functions are used by the TLS library, TLS 7361 applications are not affected. 7362 7363 This issue was reported by Brian Carpenter. 7364 ([CVE-2016-2109]) 7365 7366 *Stephen Henson* 7367 7368 * EBCDIC overread 7369 7370 ASN1 Strings that are over 1024 bytes can cause an overread in applications 7371 using the X509_NAME_oneline() function on EBCDIC systems. This could result 7372 in arbitrary stack data being returned in the buffer. 7373 7374 This issue was reported by Guido Vranken. 7375 ([CVE-2016-2176]) 7376 7377 *Matt Caswell* 7378 7379 * Modify behavior of ALPN to invoke callback after SNI/servername 7380 callback, such that updates to the SSL_CTX affect ALPN. 7381 7382 *Todd Short* 7383 7384 * Remove LOW from the DEFAULT cipher list. This removes singles DES from the 7385 default. 7386 7387 *Kurt Roeckx* 7388 7389 * Only remove the SSLv2 methods with the no-ssl2-method option. When the 7390 methods are enabled and ssl2 is disabled the methods return NULL. 7391 7392 *Kurt Roeckx* 7393 7394### Changes between 1.0.2f and 1.0.2g [1 Mar 2016] 7395 7396* Disable weak ciphers in SSLv3 and up in default builds of OpenSSL. 7397 Builds that are not configured with "enable-weak-ssl-ciphers" will not 7398 provide any "EXPORT" or "LOW" strength ciphers. 7399 7400 *Viktor Dukhovni* 7401 7402* Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2 7403 is by default disabled at build-time. Builds that are not configured with 7404 "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used, 7405 users who want to negotiate SSLv2 via the version-flexible SSLv23_method() 7406 will need to explicitly call either of: 7407 7408 SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2); 7409 or 7410 SSL_clear_options(ssl, SSL_OP_NO_SSLv2); 7411 7412 as appropriate. Even if either of those is used, or the application 7413 explicitly uses the version-specific SSLv2_method() or its client and 7414 server variants, SSLv2 ciphers vulnerable to exhaustive search key 7415 recovery have been removed. Specifically, the SSLv2 40-bit EXPORT 7416 ciphers, and SSLv2 56-bit DES are no longer available. 7417 ([CVE-2016-0800]) 7418 7419 *Viktor Dukhovni* 7420 7421 * Fix a double-free in DSA code 7422 7423 A double free bug was discovered when OpenSSL parses malformed DSA private 7424 keys and could lead to a DoS attack or memory corruption for applications 7425 that receive DSA private keys from untrusted sources. This scenario is 7426 considered rare. 7427 7428 This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using 7429 libFuzzer. 7430 ([CVE-2016-0705]) 7431 7432 *Stephen Henson* 7433 7434 * Disable SRP fake user seed to address a server memory leak. 7435 7436 Add a new method SRP_VBASE_get1_by_user that handles the seed properly. 7437 7438 SRP_VBASE_get_by_user had inconsistent memory management behaviour. 7439 In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user 7440 was changed to ignore the "fake user" SRP seed, even if the seed 7441 is configured. 7442 7443 Users should use SRP_VBASE_get1_by_user instead. Note that in 7444 SRP_VBASE_get1_by_user, caller must free the returned value. Note 7445 also that even though configuring the SRP seed attempts to hide 7446 invalid usernames by continuing the handshake with fake 7447 credentials, this behaviour is not constant time and no strong 7448 guarantees are made that the handshake is indistinguishable from 7449 that of a valid user. 7450 ([CVE-2016-0798]) 7451 7452 *Emilia Käsper* 7453 7454 * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption 7455 7456 In the BN_hex2bn function the number of hex digits is calculated using an 7457 int value `i`. Later `bn_expand` is called with a value of `i * 4`. For 7458 large values of `i` this can result in `bn_expand` not allocating any 7459 memory because `i * 4` is negative. This can leave the internal BIGNUM data 7460 field as NULL leading to a subsequent NULL ptr deref. For very large values 7461 of `i`, the calculation `i * 4` could be a positive value smaller than `i`. 7462 In this case memory is allocated to the internal BIGNUM data field, but it 7463 is insufficiently sized leading to heap corruption. A similar issue exists 7464 in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn 7465 is ever called by user applications with very large untrusted hex/dec data. 7466 This is anticipated to be a rare occurrence. 7467 7468 All OpenSSL internal usage of these functions use data that is not expected 7469 to be untrusted, e.g. config file data or application command line 7470 arguments. If user developed applications generate config file data based 7471 on untrusted data then it is possible that this could also lead to security 7472 consequences. This is also anticipated to be rare. 7473 7474 This issue was reported to OpenSSL by Guido Vranken. 7475 ([CVE-2016-0797]) 7476 7477 *Matt Caswell* 7478 7479 * Fix memory issues in `BIO_*printf` functions 7480 7481 The internal `fmtstr` function used in processing a "%s" format string in 7482 the `BIO_*printf` functions could overflow while calculating the length of a 7483 string and cause an OOB read when printing very long strings. 7484 7485 Additionally the internal `doapr_outch` function can attempt to write to an 7486 OOB memory location (at an offset from the NULL pointer) in the event of a 7487 memory allocation failure. In 1.0.2 and below this could be caused where 7488 the size of a buffer to be allocated is greater than INT_MAX. E.g. this 7489 could be in processing a very long "%s" format string. Memory leaks can 7490 also occur. 7491 7492 The first issue may mask the second issue dependent on compiler behaviour. 7493 These problems could enable attacks where large amounts of untrusted data 7494 is passed to the `BIO_*printf` functions. If applications use these functions 7495 in this way then they could be vulnerable. OpenSSL itself uses these 7496 functions when printing out human-readable dumps of ASN.1 data. Therefore 7497 applications that print this data could be vulnerable if the data is from 7498 untrusted sources. OpenSSL command line applications could also be 7499 vulnerable where they print out ASN.1 data, or if untrusted data is passed 7500 as command line arguments. 7501 7502 Libssl is not considered directly vulnerable. Additionally certificates etc 7503 received via remote connections via libssl are also unlikely to be able to 7504 trigger these issues because of message size limits enforced within libssl. 7505 7506 This issue was reported to OpenSSL Guido Vranken. 7507 ([CVE-2016-0799]) 7508 7509 *Matt Caswell* 7510 7511 * Side channel attack on modular exponentiation 7512 7513 A side-channel attack was found which makes use of cache-bank conflicts on 7514 the Intel Sandy-Bridge microarchitecture which could lead to the recovery 7515 of RSA keys. The ability to exploit this issue is limited as it relies on 7516 an attacker who has control of code in a thread running on the same 7517 hyper-threaded core as the victim thread which is performing decryptions. 7518 7519 This issue was reported to OpenSSL by Yuval Yarom, The University of 7520 Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and 7521 Nadia Heninger, University of Pennsylvania with more information at 7522 <http://cachebleed.info>. 7523 ([CVE-2016-0702]) 7524 7525 *Andy Polyakov* 7526 7527 * Change the `req` command to generate a 2048-bit RSA/DSA key by default, 7528 if no keysize is specified with default_bits. This fixes an 7529 omission in an earlier change that changed all RSA/DSA key generation 7530 commands to use 2048 bits by default. 7531 7532 *Emilia Käsper* 7533 7534### Changes between 1.0.2e and 1.0.2f [28 Jan 2016] 7535 7536 * DH small subgroups 7537 7538 Historically OpenSSL only ever generated DH parameters based on "safe" 7539 primes. More recently (in version 1.0.2) support was provided for 7540 generating X9.42 style parameter files such as those required for RFC 5114 7541 support. The primes used in such files may not be "safe". Where an 7542 application is using DH configured with parameters based on primes that are 7543 not "safe" then an attacker could use this fact to find a peer's private 7544 DH exponent. This attack requires that the attacker complete multiple 7545 handshakes in which the peer uses the same private DH exponent. For example 7546 this could be used to discover a TLS server's private DH exponent if it's 7547 reusing the private DH exponent or it's using a static DH ciphersuite. 7548 7549 OpenSSL provides the option SSL_OP_SINGLE_DH_USE for ephemeral DH (DHE) in 7550 TLS. It is not on by default. If the option is not set then the server 7551 reuses the same private DH exponent for the life of the server process and 7552 would be vulnerable to this attack. It is believed that many popular 7553 applications do set this option and would therefore not be at risk. 7554 7555 The fix for this issue adds an additional check where a "q" parameter is 7556 available (as is the case in X9.42 based parameters). This detects the 7557 only known attack, and is the only possible defense for static DH 7558 ciphersuites. This could have some performance impact. 7559 7560 Additionally the SSL_OP_SINGLE_DH_USE option has been switched on by 7561 default and cannot be disabled. This could have some performance impact. 7562 7563 This issue was reported to OpenSSL by Antonio Sanso (Adobe). 7564 ([CVE-2016-0701]) 7565 7566 *Matt Caswell* 7567 7568 * SSLv2 doesn't block disabled ciphers 7569 7570 A malicious client can negotiate SSLv2 ciphers that have been disabled on 7571 the server and complete SSLv2 handshakes even if all SSLv2 ciphers have 7572 been disabled, provided that the SSLv2 protocol was not also disabled via 7573 SSL_OP_NO_SSLv2. 7574 7575 This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram 7576 and Sebastian Schinzel. 7577 ([CVE-2015-3197]) 7578 7579 *Viktor Dukhovni* 7580 7581### Changes between 1.0.2d and 1.0.2e [3 Dec 2015] 7582 7583 * BN_mod_exp may produce incorrect results on x86_64 7584 7585 There is a carry propagating bug in the x86_64 Montgomery squaring 7586 procedure. No EC algorithms are affected. Analysis suggests that attacks 7587 against RSA and DSA as a result of this defect would be very difficult to 7588 perform and are not believed likely. Attacks against DH are considered just 7589 feasible (although very difficult) because most of the work necessary to 7590 deduce information about a private key may be performed offline. The amount 7591 of resources required for such an attack would be very significant and 7592 likely only accessible to a limited number of attackers. An attacker would 7593 additionally need online access to an unpatched system using the target 7594 private key in a scenario with persistent DH parameters and a private 7595 key that is shared between multiple clients. For example this can occur by 7596 default in OpenSSL DHE based SSL/TLS ciphersuites. 7597 7598 This issue was reported to OpenSSL by Hanno Böck. 7599 ([CVE-2015-3193]) 7600 7601 *Andy Polyakov* 7602 7603 * Certificate verify crash with missing PSS parameter 7604 7605 The signature verification routines will crash with a NULL pointer 7606 dereference if presented with an ASN.1 signature using the RSA PSS 7607 algorithm and absent mask generation function parameter. Since these 7608 routines are used to verify certificate signature algorithms this can be 7609 used to crash any certificate verification operation and exploited in a 7610 DoS attack. Any application which performs certificate verification is 7611 vulnerable including OpenSSL clients and servers which enable client 7612 authentication. 7613 7614 This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG). 7615 ([CVE-2015-3194]) 7616 7617 *Stephen Henson* 7618 7619 * X509_ATTRIBUTE memory leak 7620 7621 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak 7622 memory. This structure is used by the PKCS#7 and CMS routines so any 7623 application which reads PKCS#7 or CMS data from untrusted sources is 7624 affected. SSL/TLS is not affected. 7625 7626 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using 7627 libFuzzer. 7628 ([CVE-2015-3195]) 7629 7630 *Stephen Henson* 7631 7632 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs. 7633 This changes the decoding behaviour for some invalid messages, 7634 though the change is mostly in the more lenient direction, and 7635 legacy behaviour is preserved as much as possible. 7636 7637 *Emilia Käsper* 7638 7639 * In DSA_generate_parameters_ex, if the provided seed is too short, 7640 return an error 7641 7642 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>* 7643 7644### Changes between 1.0.2c and 1.0.2d [9 Jul 2015] 7645 7646 * Alternate chains certificate forgery 7647 7648 During certificate verification, OpenSSL will attempt to find an 7649 alternative certificate chain if the first attempt to build such a chain 7650 fails. An error in the implementation of this logic can mean that an 7651 attacker could cause certain checks on untrusted certificates to be 7652 bypassed, such as the CA flag, enabling them to use a valid leaf 7653 certificate to act as a CA and "issue" an invalid certificate. 7654 7655 This issue was reported to OpenSSL by Adam Langley/David Benjamin 7656 (Google/BoringSSL). 7657 7658 *Matt Caswell* 7659 7660### Changes between 1.0.2b and 1.0.2c [12 Jun 2015] 7661 7662 * Fix HMAC ABI incompatibility. The previous version introduced an ABI 7663 incompatibility in the handling of HMAC. The previous ABI has now been 7664 restored. 7665 7666 *Matt Caswell* 7667 7668### Changes between 1.0.2a and 1.0.2b [11 Jun 2015] 7669 7670 * Malformed ECParameters causes infinite loop 7671 7672 When processing an ECParameters structure OpenSSL enters an infinite loop 7673 if the curve specified is over a specially malformed binary polynomial 7674 field. 7675 7676 This can be used to perform denial of service against any 7677 system which processes public keys, certificate requests or 7678 certificates. This includes TLS clients and TLS servers with 7679 client authentication enabled. 7680 7681 This issue was reported to OpenSSL by Joseph Barr-Pixton. 7682 ([CVE-2015-1788]) 7683 7684 *Andy Polyakov* 7685 7686 * Exploitable out-of-bounds read in X509_cmp_time 7687 7688 X509_cmp_time does not properly check the length of the ASN1_TIME 7689 string and can read a few bytes out of bounds. In addition, 7690 X509_cmp_time accepts an arbitrary number of fractional seconds in the 7691 time string. 7692 7693 An attacker can use this to craft malformed certificates and CRLs of 7694 various sizes and potentially cause a segmentation fault, resulting in 7695 a DoS on applications that verify certificates or CRLs. TLS clients 7696 that verify CRLs are affected. TLS clients and servers with client 7697 authentication enabled may be affected if they use custom verification 7698 callbacks. 7699 7700 This issue was reported to OpenSSL by Robert Swiecki (Google), and 7701 independently by Hanno Böck. 7702 ([CVE-2015-1789]) 7703 7704 *Emilia Käsper* 7705 7706 * PKCS7 crash with missing EnvelopedContent 7707 7708 The PKCS#7 parsing code does not handle missing inner EncryptedContent 7709 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs 7710 with missing content and trigger a NULL pointer dereference on parsing. 7711 7712 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7 7713 structures from untrusted sources are affected. OpenSSL clients and 7714 servers are not affected. 7715 7716 This issue was reported to OpenSSL by Michal Zalewski (Google). 7717 ([CVE-2015-1790]) 7718 7719 *Emilia Käsper* 7720 7721 * CMS verify infinite loop with unknown hash function 7722 7723 When verifying a signedData message the CMS code can enter an infinite loop 7724 if presented with an unknown hash function OID. This can be used to perform 7725 denial of service against any system which verifies signedData messages using 7726 the CMS code. 7727 This issue was reported to OpenSSL by Johannes Bauer. 7728 ([CVE-2015-1792]) 7729 7730 *Stephen Henson* 7731 7732 * Race condition handling NewSessionTicket 7733 7734 If a NewSessionTicket is received by a multi-threaded client when attempting to 7735 reuse a previous ticket then a race condition can occur potentially leading to 7736 a double free of the ticket data. 7737 ([CVE-2015-1791]) 7738 7739 *Matt Caswell* 7740 7741 * Only support 256-bit or stronger elliptic curves with the 7742 'ecdh_auto' setting (server) or by default (client). Of supported 7743 curves, prefer P-256 (both). 7744 7745 *Emilia Kasper* 7746 7747### Changes between 1.0.2 and 1.0.2a [19 Mar 2015] 7748 7749 * ClientHello sigalgs DoS fix 7750 7751 If a client connects to an OpenSSL 1.0.2 server and renegotiates with an 7752 invalid signature algorithms extension a NULL pointer dereference will 7753 occur. This can be exploited in a DoS attack against the server. 7754 7755 This issue was was reported to OpenSSL by David Ramos of Stanford 7756 University. 7757 ([CVE-2015-0291]) 7758 7759 *Stephen Henson and Matt Caswell* 7760 7761 * Multiblock corrupted pointer fix 7762 7763 OpenSSL 1.0.2 introduced the "multiblock" performance improvement. This 7764 feature only applies on 64 bit x86 architecture platforms that support AES 7765 NI instructions. A defect in the implementation of "multiblock" can cause 7766 OpenSSL's internal write buffer to become incorrectly set to NULL when 7767 using non-blocking IO. Typically, when the user application is using a 7768 socket BIO for writing, this will only result in a failed connection. 7769 However if some other BIO is used then it is likely that a segmentation 7770 fault will be triggered, thus enabling a potential DoS attack. 7771 7772 This issue was reported to OpenSSL by Daniel Danner and Rainer Mueller. 7773 ([CVE-2015-0290]) 7774 7775 *Matt Caswell* 7776 7777 * Segmentation fault in DTLSv1_listen fix 7778 7779 The DTLSv1_listen function is intended to be stateless and processes the 7780 initial ClientHello from many peers. It is common for user code to loop 7781 over the call to DTLSv1_listen until a valid ClientHello is received with 7782 an associated cookie. A defect in the implementation of DTLSv1_listen means 7783 that state is preserved in the SSL object from one invocation to the next 7784 that can lead to a segmentation fault. Errors processing the initial 7785 ClientHello can trigger this scenario. An example of such an error could be 7786 that a DTLS1.0 only client is attempting to connect to a DTLS1.2 only 7787 server. 7788 7789 This issue was reported to OpenSSL by Per Allansson. 7790 ([CVE-2015-0207]) 7791 7792 *Matt Caswell* 7793 7794 * Segmentation fault in ASN1_TYPE_cmp fix 7795 7796 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is 7797 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check 7798 certificate signature algorithm consistency this can be used to crash any 7799 certificate verification operation and exploited in a DoS attack. Any 7800 application which performs certificate verification is vulnerable including 7801 OpenSSL clients and servers which enable client authentication. 7802 ([CVE-2015-0286]) 7803 7804 *Stephen Henson* 7805 7806 * Segmentation fault for invalid PSS parameters fix 7807 7808 The signature verification routines will crash with a NULL pointer 7809 dereference if presented with an ASN.1 signature using the RSA PSS 7810 algorithm and invalid parameters. Since these routines are used to verify 7811 certificate signature algorithms this can be used to crash any 7812 certificate verification operation and exploited in a DoS attack. Any 7813 application which performs certificate verification is vulnerable including 7814 OpenSSL clients and servers which enable client authentication. 7815 7816 This issue was was reported to OpenSSL by Brian Carpenter. 7817 ([CVE-2015-0208]) 7818 7819 *Stephen Henson* 7820 7821 * ASN.1 structure reuse memory corruption fix 7822 7823 Reusing a structure in ASN.1 parsing may allow an attacker to cause 7824 memory corruption via an invalid write. Such reuse is and has been 7825 strongly discouraged and is believed to be rare. 7826 7827 Applications that parse structures containing CHOICE or ANY DEFINED BY 7828 components may be affected. Certificate parsing (d2i_X509 and related 7829 functions) are however not affected. OpenSSL clients and servers are 7830 not affected. 7831 ([CVE-2015-0287]) 7832 7833 *Stephen Henson* 7834 7835 * PKCS7 NULL pointer dereferences fix 7836 7837 The PKCS#7 parsing code does not handle missing outer ContentInfo 7838 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with 7839 missing content and trigger a NULL pointer dereference on parsing. 7840 7841 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or 7842 otherwise parse PKCS#7 structures from untrusted sources are 7843 affected. OpenSSL clients and servers are not affected. 7844 7845 This issue was reported to OpenSSL by Michal Zalewski (Google). 7846 ([CVE-2015-0289]) 7847 7848 *Emilia Käsper* 7849 7850 * DoS via reachable assert in SSLv2 servers fix 7851 7852 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in 7853 servers that both support SSLv2 and enable export cipher suites by sending 7854 a specially crafted SSLv2 CLIENT-MASTER-KEY message. 7855 7856 This issue was discovered by Sean Burford (Google) and Emilia Käsper 7857 (OpenSSL development team). 7858 ([CVE-2015-0293]) 7859 7860 *Emilia Käsper* 7861 7862 * Empty CKE with client auth and DHE fix 7863 7864 If client auth is used then a server can seg fault in the event of a DHE 7865 ciphersuite being selected and a zero length ClientKeyExchange message 7866 being sent by the client. This could be exploited in a DoS attack. 7867 ([CVE-2015-1787]) 7868 7869 *Matt Caswell* 7870 7871 * Handshake with unseeded PRNG fix 7872 7873 Under certain conditions an OpenSSL 1.0.2 client can complete a handshake 7874 with an unseeded PRNG. The conditions are: 7875 - The client is on a platform where the PRNG has not been seeded 7876 automatically, and the user has not seeded manually 7877 - A protocol specific client method version has been used (i.e. not 7878 SSL_client_methodv23) 7879 - A ciphersuite is used that does not require additional random data from 7880 the PRNG beyond the initial ClientHello client random (e.g. PSK-RC4-SHA). 7881 7882 If the handshake succeeds then the client random that has been used will 7883 have been generated from a PRNG with insufficient entropy and therefore the 7884 output may be predictable. 7885 7886 For example using the following command with an unseeded openssl will 7887 succeed on an unpatched platform: 7888 7889 openssl s_client -psk 1a2b3c4d -tls1_2 -cipher PSK-RC4-SHA 7890 ([CVE-2015-0285]) 7891 7892 *Matt Caswell* 7893 7894 * Use After Free following d2i_ECPrivatekey error fix 7895 7896 A malformed EC private key file consumed via the d2i_ECPrivateKey function 7897 could cause a use after free condition. This, in turn, could cause a double 7898 free in several private key parsing functions (such as d2i_PrivateKey 7899 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption 7900 for applications that receive EC private keys from untrusted 7901 sources. This scenario is considered rare. 7902 7903 This issue was discovered by the BoringSSL project and fixed in their 7904 commit 517073cd4b. 7905 ([CVE-2015-0209]) 7906 7907 *Matt Caswell* 7908 7909 * X509_to_X509_REQ NULL pointer deref fix 7910 7911 The function X509_to_X509_REQ will crash with a NULL pointer dereference if 7912 the certificate key is invalid. This function is rarely used in practice. 7913 7914 This issue was discovered by Brian Carpenter. 7915 ([CVE-2015-0288]) 7916 7917 *Stephen Henson* 7918 7919 * Removed the export ciphers from the DEFAULT ciphers 7920 7921 *Kurt Roeckx* 7922 7923### Changes between 1.0.1l and 1.0.2 [22 Jan 2015] 7924 7925 * Facilitate "universal" ARM builds targeting range of ARM ISAs, e.g. 7926 ARMv5 through ARMv8, as opposite to "locking" it to single one. 7927 So far those who have to target multiple platforms would compromise 7928 and argue that binary targeting say ARMv5 would still execute on 7929 ARMv8. "Universal" build resolves this compromise by providing 7930 near-optimal performance even on newer platforms. 7931 7932 *Andy Polyakov* 7933 7934 * Accelerated NIST P-256 elliptic curve implementation for x86_64 7935 (other platforms pending). 7936 7937 *Shay Gueron & Vlad Krasnov (Intel Corp), Andy Polyakov* 7938 7939 * Add support for the SignedCertificateTimestampList certificate and 7940 OCSP response extensions from RFC6962. 7941 7942 *Rob Stradling* 7943 7944 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.) 7945 for corner cases. (Certain input points at infinity could lead to 7946 bogus results, with non-infinity inputs mapped to infinity too.) 7947 7948 *Bodo Moeller* 7949 7950 * Initial support for PowerISA 2.0.7, first implemented in POWER8. 7951 This covers AES, SHA256/512 and GHASH. "Initial" means that most 7952 common cases are optimized and there still is room for further 7953 improvements. Vector Permutation AES for Altivec is also added. 7954 7955 *Andy Polyakov* 7956 7957 * Add support for little-endian ppc64 Linux target. 7958 7959 *Marcelo Cerri (IBM)* 7960 7961 * Initial support for AMRv8 ISA crypto extensions. This covers AES, 7962 SHA1, SHA256 and GHASH. "Initial" means that most common cases 7963 are optimized and there still is room for further improvements. 7964 Both 32- and 64-bit modes are supported. 7965 7966 *Andy Polyakov, Ard Biesheuvel (Linaro)* 7967 7968 * Improved ARMv7 NEON support. 7969 7970 *Andy Polyakov* 7971 7972 * Support for SPARC Architecture 2011 crypto extensions, first 7973 implemented in SPARC T4. This covers AES, DES, Camellia, SHA1, 7974 SHA256/512, MD5, GHASH and modular exponentiation. 7975 7976 *Andy Polyakov, David Miller* 7977 7978 * Accelerated modular exponentiation for Intel processors, a.k.a. 7979 RSAZ. 7980 7981 *Shay Gueron & Vlad Krasnov (Intel Corp)* 7982 7983 * Support for new and upcoming Intel processors, including AVX2, 7984 BMI and SHA ISA extensions. This includes additional "stitched" 7985 implementations, AESNI-SHA256 and GCM, and multi-buffer support 7986 for TLS encrypt. 7987 7988 This work was sponsored by Intel Corp. 7989 7990 *Andy Polyakov* 7991 7992 * Support for DTLS 1.2. This adds two sets of DTLS methods: DTLS_*_method() 7993 supports both DTLS 1.2 and 1.0 and should use whatever version the peer 7994 supports and DTLSv1_2_*_method() which supports DTLS 1.2 only. 7995 7996 *Steve Henson* 7997 7998 * Use algorithm specific chains in SSL_CTX_use_certificate_chain_file(): 7999 this fixes a limitation in previous versions of OpenSSL. 8000 8001 *Steve Henson* 8002 8003 * Extended RSA OAEP support via EVP_PKEY API. Options to specify digest, 8004 MGF1 digest and OAEP label. 8005 8006 *Steve Henson* 8007 8008 * Add EVP support for key wrapping algorithms, to avoid problems with 8009 existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in 8010 the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap 8011 algorithms and include tests cases. 8012 8013 *Steve Henson* 8014 8015 * Add functions to allocate and set the fields of an ECDSA_METHOD 8016 structure. 8017 8018 *Douglas E. Engert, Steve Henson* 8019 8020 * New functions OPENSSL_gmtime_diff and ASN1_TIME_diff to find the 8021 difference in days and seconds between two tm or ASN1_TIME structures. 8022 8023 *Steve Henson* 8024 8025 * Add -rev test option to s_server to just reverse order of characters 8026 received by client and send back to server. Also prints an abbreviated 8027 summary of the connection parameters. 8028 8029 *Steve Henson* 8030 8031 * New option -brief for s_client and s_server to print out a brief summary 8032 of connection parameters. 8033 8034 *Steve Henson* 8035 8036 * Add callbacks for arbitrary TLS extensions. 8037 8038 *Trevor Perrin <trevp@trevp.net> and Ben Laurie* 8039 8040 * New option -crl_download in several openssl utilities to download CRLs 8041 from CRLDP extension in certificates. 8042 8043 *Steve Henson* 8044 8045 * New options -CRL and -CRLform for s_client and s_server for CRLs. 8046 8047 *Steve Henson* 8048 8049 * New function X509_CRL_diff to generate a delta CRL from the difference 8050 of two full CRLs. Add support to "crl" utility. 8051 8052 *Steve Henson* 8053 8054 * New functions to set lookup_crls function and to retrieve 8055 X509_STORE from X509_STORE_CTX. 8056 8057 *Steve Henson* 8058 8059 * Print out deprecated issuer and subject unique ID fields in 8060 certificates. 8061 8062 *Steve Henson* 8063 8064 * Extend OCSP I/O functions so they can be used for simple general purpose 8065 HTTP as well as OCSP. New wrapper function which can be used to download 8066 CRLs using the OCSP API. 8067 8068 *Steve Henson* 8069 8070 * Delegate command line handling in s_client/s_server to SSL_CONF APIs. 8071 8072 *Steve Henson* 8073 8074 * `SSL_CONF*` functions. These provide a common framework for application 8075 configuration using configuration files or command lines. 8076 8077 *Steve Henson* 8078 8079 * SSL/TLS tracing code. This parses out SSL/TLS records using the 8080 message callback and prints the results. Needs compile time option 8081 "enable-ssl-trace". New options to s_client and s_server to enable 8082 tracing. 8083 8084 *Steve Henson* 8085 8086 * New ctrl and macro to retrieve supported points extensions. 8087 Print out extension in s_server and s_client. 8088 8089 *Steve Henson* 8090 8091 * New functions to retrieve certificate signature and signature 8092 OID NID. 8093 8094 *Steve Henson* 8095 8096 * Add functions to retrieve and manipulate the raw cipherlist sent by a 8097 client to OpenSSL. 8098 8099 *Steve Henson* 8100 8101 * New Suite B modes for TLS code. These use and enforce the requirements 8102 of RFC6460: restrict ciphersuites, only permit Suite B algorithms and 8103 only use Suite B curves. The Suite B modes can be set by using the 8104 strings "SUITEB128", "SUITEB192" or "SUITEB128ONLY" for the cipherstring. 8105 8106 *Steve Henson* 8107 8108 * New chain verification flags for Suite B levels of security. Check 8109 algorithms are acceptable when flags are set in X509_verify_cert. 8110 8111 *Steve Henson* 8112 8113 * Make tls1_check_chain return a set of flags indicating checks passed 8114 by a certificate chain. Add additional tests to handle client 8115 certificates: checks for matching certificate type and issuer name 8116 comparison. 8117 8118 *Steve Henson* 8119 8120 * If an attempt is made to use a signature algorithm not in the peer 8121 preference list abort the handshake. If client has no suitable 8122 signature algorithms in response to a certificate request do not 8123 use the certificate. 8124 8125 *Steve Henson* 8126 8127 * If server EC tmp key is not in client preference list abort handshake. 8128 8129 *Steve Henson* 8130 8131 * Add support for certificate stores in CERT structure. This makes it 8132 possible to have different stores per SSL structure or one store in 8133 the parent SSL_CTX. Include distinct stores for certificate chain 8134 verification and chain building. New ctrl SSL_CTRL_BUILD_CERT_CHAIN 8135 to build and store a certificate chain in CERT structure: returning 8136 an error if the chain cannot be built: this will allow applications 8137 to test if a chain is correctly configured. 8138 8139 Note: if the CERT based stores are not set then the parent SSL_CTX 8140 store is used to retain compatibility with existing behaviour. 8141 8142 *Steve Henson* 8143 8144 * New function ssl_set_client_disabled to set a ciphersuite disabled 8145 mask based on the current session, check mask when sending client 8146 hello and checking the requested ciphersuite. 8147 8148 *Steve Henson* 8149 8150 * New ctrls to retrieve and set certificate types in a certificate 8151 request message. Print out received values in s_client. If certificate 8152 types is not set with custom values set sensible values based on 8153 supported signature algorithms. 8154 8155 *Steve Henson* 8156 8157 * Support for distinct client and server supported signature algorithms. 8158 8159 *Steve Henson* 8160 8161 * Add certificate callback. If set this is called whenever a certificate 8162 is required by client or server. An application can decide which 8163 certificate chain to present based on arbitrary criteria: for example 8164 supported signature algorithms. Add very simple example to s_server. 8165 This fixes many of the problems and restrictions of the existing client 8166 certificate callback: for example you can now clear an existing 8167 certificate and specify the whole chain. 8168 8169 *Steve Henson* 8170 8171 * Add new "valid_flags" field to CERT_PKEY structure which determines what 8172 the certificate can be used for (if anything). Set valid_flags field 8173 in new tls1_check_chain function. Simplify ssl_set_cert_masks which used 8174 to have similar checks in it. 8175 8176 Add new "cert_flags" field to CERT structure and include a "strict mode". 8177 This enforces some TLS certificate requirements (such as only permitting 8178 certificate signature algorithms contained in the supported algorithms 8179 extension) which some implementations ignore: this option should be used 8180 with caution as it could cause interoperability issues. 8181 8182 *Steve Henson* 8183 8184 * Update and tidy signature algorithm extension processing. Work out 8185 shared signature algorithms based on preferences and peer algorithms 8186 and print them out in s_client and s_server. Abort handshake if no 8187 shared signature algorithms. 8188 8189 *Steve Henson* 8190 8191 * Add new functions to allow customised supported signature algorithms 8192 for SSL and SSL_CTX structures. Add options to s_client and s_server 8193 to support them. 8194 8195 *Steve Henson* 8196 8197 * New function SSL_certs_clear() to delete all references to certificates 8198 from an SSL structure. Before this once a certificate had been added 8199 it couldn't be removed. 8200 8201 *Steve Henson* 8202 8203 * Integrate hostname, email address and IP address checking with certificate 8204 verification. New verify options supporting checking in openssl utility. 8205 8206 *Steve Henson* 8207 8208 * Fixes and wildcard matching support to hostname and email checking 8209 functions. Add manual page. 8210 8211 *Florian Weimer (Red Hat Product Security Team)* 8212 8213 * New functions to check a hostname email or IP address against a 8214 certificate. Add options x509 utility to print results of checks against 8215 a certificate. 8216 8217 *Steve Henson* 8218 8219 * Fix OCSP checking. 8220 8221 *Rob Stradling <rob.stradling@comodo.com> and Ben Laurie* 8222 8223 * Initial experimental support for explicitly trusted non-root CAs. 8224 OpenSSL still tries to build a complete chain to a root but if an 8225 intermediate CA has a trust setting included that is used. The first 8226 setting is used: whether to trust (e.g., -addtrust option to the x509 8227 utility) or reject. 8228 8229 *Steve Henson* 8230 8231 * Add -trusted_first option which attempts to find certificates in the 8232 trusted store even if an untrusted chain is also supplied. 8233 8234 *Steve Henson* 8235 8236 * MIPS assembly pack updates: support for MIPS32r2 and SmartMIPS ASE, 8237 platform support for Linux and Android. 8238 8239 *Andy Polyakov* 8240 8241 * Support for linux-x32, ILP32 environment in x86_64 framework. 8242 8243 *Andy Polyakov* 8244 8245 * Experimental multi-implementation support for FIPS capable OpenSSL. 8246 When in FIPS mode the approved implementations are used as normal, 8247 when not in FIPS mode the internal unapproved versions are used instead. 8248 This means that the FIPS capable OpenSSL isn't forced to use the 8249 (often lower performance) FIPS implementations outside FIPS mode. 8250 8251 *Steve Henson* 8252 8253 * Transparently support X9.42 DH parameters when calling 8254 PEM_read_bio_DHparameters. This means existing applications can handle 8255 the new parameter format automatically. 8256 8257 *Steve Henson* 8258 8259 * Initial experimental support for X9.42 DH parameter format: mainly 8260 to support use of 'q' parameter for RFC5114 parameters. 8261 8262 *Steve Henson* 8263 8264 * Add DH parameters from RFC5114 including test data to dhtest. 8265 8266 *Steve Henson* 8267 8268 * Support for automatic EC temporary key parameter selection. If enabled 8269 the most preferred EC parameters are automatically used instead of 8270 hardcoded fixed parameters. Now a server just has to call: 8271 SSL_CTX_set_ecdh_auto(ctx, 1) and the server will automatically 8272 support ECDH and use the most appropriate parameters. 8273 8274 *Steve Henson* 8275 8276 * Enhance and tidy EC curve and point format TLS extension code. Use 8277 static structures instead of allocation if default values are used. 8278 New ctrls to set curves we wish to support and to retrieve shared curves. 8279 Print out shared curves in s_server. New options to s_server and s_client 8280 to set list of supported curves. 8281 8282 *Steve Henson* 8283 8284 * New ctrls to retrieve supported signature algorithms and 8285 supported curve values as an array of NIDs. Extend openssl utility 8286 to print out received values. 8287 8288 *Steve Henson* 8289 8290 * Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert 8291 between NIDs and the more common NIST names such as "P-256". Enhance 8292 ecparam utility and ECC method to recognise the NIST names for curves. 8293 8294 *Steve Henson* 8295 8296 * Enhance SSL/TLS certificate chain handling to support different 8297 chains for each certificate instead of one chain in the parent SSL_CTX. 8298 8299 *Steve Henson* 8300 8301 * Support for fixed DH ciphersuite client authentication: where both 8302 server and client use DH certificates with common parameters. 8303 8304 *Steve Henson* 8305 8306 * Support for fixed DH ciphersuites: those requiring DH server 8307 certificates. 8308 8309 *Steve Henson* 8310 8311 * New function i2d_re_X509_tbs for re-encoding the TBS portion of 8312 the certificate. 8313 Note: Related 1.0.2-beta specific macros X509_get_cert_info, 8314 X509_CINF_set_modified, X509_CINF_get_issuer, X509_CINF_get_extensions and 8315 X509_CINF_get_signature were reverted post internal team review. 8316 8317OpenSSL 1.0.1 8318------------- 8319 8320### Changes between 1.0.1t and 1.0.1u [22 Sep 2016] 8321 8322 * OCSP Status Request extension unbounded memory growth 8323 8324 A malicious client can send an excessively large OCSP Status Request 8325 extension. If that client continually requests renegotiation, sending a 8326 large OCSP Status Request extension each time, then there will be unbounded 8327 memory growth on the server. This will eventually lead to a Denial Of 8328 Service attack through memory exhaustion. Servers with a default 8329 configuration are vulnerable even if they do not support OCSP. Builds using 8330 the "no-ocsp" build time option are not affected. 8331 8332 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 8333 ([CVE-2016-6304]) 8334 8335 *Matt Caswell* 8336 8337 * In order to mitigate the SWEET32 attack, the DES ciphers were moved from 8338 HIGH to MEDIUM. 8339 8340 This issue was reported to OpenSSL Karthikeyan Bhargavan and Gaetan 8341 Leurent (INRIA) 8342 ([CVE-2016-2183]) 8343 8344 *Rich Salz* 8345 8346 * OOB write in MDC2_Update() 8347 8348 An overflow can occur in MDC2_Update() either if called directly or 8349 through the EVP_DigestUpdate() function using MDC2. If an attacker 8350 is able to supply very large amounts of input data after a previous 8351 call to EVP_EncryptUpdate() with a partial block then a length check 8352 can overflow resulting in a heap corruption. 8353 8354 The amount of data needed is comparable to SIZE_MAX which is impractical 8355 on most platforms. 8356 8357 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 8358 ([CVE-2016-6303]) 8359 8360 *Stephen Henson* 8361 8362 * Malformed SHA512 ticket DoS 8363 8364 If a server uses SHA512 for TLS session ticket HMAC it is vulnerable to a 8365 DoS attack where a malformed ticket will result in an OOB read which will 8366 ultimately crash. 8367 8368 The use of SHA512 in TLS session tickets is comparatively rare as it requires 8369 a custom server callback and ticket lookup mechanism. 8370 8371 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 8372 ([CVE-2016-6302]) 8373 8374 *Stephen Henson* 8375 8376 * OOB write in BN_bn2dec() 8377 8378 The function BN_bn2dec() does not check the return value of BN_div_word(). 8379 This can cause an OOB write if an application uses this function with an 8380 overly large BIGNUM. This could be a problem if an overly large certificate 8381 or CRL is printed out from an untrusted source. TLS is not affected because 8382 record limits will reject an oversized certificate before it is parsed. 8383 8384 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 8385 ([CVE-2016-2182]) 8386 8387 *Stephen Henson* 8388 8389 * OOB read in TS_OBJ_print_bio() 8390 8391 The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is 8392 the total length the OID text representation would use and not the amount 8393 of data written. This will result in OOB reads when large OIDs are 8394 presented. 8395 8396 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 8397 ([CVE-2016-2180]) 8398 8399 *Stephen Henson* 8400 8401 * Pointer arithmetic undefined behaviour 8402 8403 Avoid some undefined pointer arithmetic 8404 8405 A common idiom in the codebase is to check limits in the following manner: 8406 "p + len > limit" 8407 8408 Where "p" points to some malloc'd data of SIZE bytes and 8409 limit == p + SIZE 8410 8411 "len" here could be from some externally supplied data (e.g. from a TLS 8412 message). 8413 8414 The rules of C pointer arithmetic are such that "p + len" is only well 8415 defined where len <= SIZE. Therefore, the above idiom is actually 8416 undefined behaviour. 8417 8418 For example this could cause problems if some malloc implementation 8419 provides an address for "p" such that "p + len" actually overflows for 8420 values of len that are too big and therefore p + len < limit. 8421 8422 This issue was reported to OpenSSL by Guido Vranken 8423 ([CVE-2016-2177]) 8424 8425 *Matt Caswell* 8426 8427 * Constant time flag not preserved in DSA signing 8428 8429 Operations in the DSA signing algorithm should run in constant time in 8430 order to avoid side channel attacks. A flaw in the OpenSSL DSA 8431 implementation means that a non-constant time codepath is followed for 8432 certain operations. This has been demonstrated through a cache-timing 8433 attack to be sufficient for an attacker to recover the private DSA key. 8434 8435 This issue was reported by César Pereida (Aalto University), Billy Brumley 8436 (Tampere University of Technology), and Yuval Yarom (The University of 8437 Adelaide and NICTA). 8438 ([CVE-2016-2178]) 8439 8440 *César Pereida* 8441 8442 * DTLS buffered message DoS 8443 8444 In a DTLS connection where handshake messages are delivered out-of-order 8445 those messages that OpenSSL is not yet ready to process will be buffered 8446 for later use. Under certain circumstances, a flaw in the logic means that 8447 those messages do not get removed from the buffer even though the handshake 8448 has been completed. An attacker could force up to approx. 15 messages to 8449 remain in the buffer when they are no longer required. These messages will 8450 be cleared when the DTLS connection is closed. The default maximum size for 8451 a message is 100k. Therefore, the attacker could force an additional 1500k 8452 to be consumed per connection. By opening many simultaneous connections an 8453 attacker could cause a DoS attack through memory exhaustion. 8454 8455 This issue was reported to OpenSSL by Quan Luo. 8456 ([CVE-2016-2179]) 8457 8458 *Matt Caswell* 8459 8460 * DTLS replay protection DoS 8461 8462 A flaw in the DTLS replay attack protection mechanism means that records 8463 that arrive for future epochs update the replay protection "window" before 8464 the MAC for the record has been validated. This could be exploited by an 8465 attacker by sending a record for the next epoch (which does not have to 8466 decrypt or have a valid MAC), with a very large sequence number. This means 8467 that all subsequent legitimate packets are dropped causing a denial of 8468 service for a specific DTLS connection. 8469 8470 This issue was reported to OpenSSL by the OCAP audit team. 8471 ([CVE-2016-2181]) 8472 8473 *Matt Caswell* 8474 8475 * Certificate message OOB reads 8476 8477 In OpenSSL 1.0.2 and earlier some missing message length checks can result 8478 in OOB reads of up to 2 bytes beyond an allocated buffer. There is a 8479 theoretical DoS risk but this has not been observed in practice on common 8480 platforms. 8481 8482 The messages affected are client certificate, client certificate request 8483 and server certificate. As a result the attack can only be performed 8484 against a client or a server which enables client authentication. 8485 8486 This issue was reported to OpenSSL by Shi Lei (Gear Team, Qihoo 360 Inc.) 8487 ([CVE-2016-6306]) 8488 8489 *Stephen Henson* 8490 8491### Changes between 1.0.1s and 1.0.1t [3 May 2016] 8492 8493 * Prevent padding oracle in AES-NI CBC MAC check 8494 8495 A MITM attacker can use a padding oracle attack to decrypt traffic 8496 when the connection uses an AES CBC cipher and the server support 8497 AES-NI. 8498 8499 This issue was introduced as part of the fix for Lucky 13 padding 8500 attack ([CVE-2013-0169]). The padding check was rewritten to be in 8501 constant time by making sure that always the same bytes are read and 8502 compared against either the MAC or padding bytes. But it no longer 8503 checked that there was enough data to have both the MAC and padding 8504 bytes. 8505 8506 This issue was reported by Juraj Somorovsky using TLS-Attacker. 8507 ([CVE-2016-2107]) 8508 8509 *Kurt Roeckx* 8510 8511 * Fix EVP_EncodeUpdate overflow 8512 8513 An overflow can occur in the EVP_EncodeUpdate() function which is used for 8514 Base64 encoding of binary data. If an attacker is able to supply very large 8515 amounts of input data then a length check can overflow resulting in a heap 8516 corruption. 8517 8518 Internally to OpenSSL the EVP_EncodeUpdate() function is primarily used by 8519 the `PEM_write_bio*` family of functions. These are mainly used within the 8520 OpenSSL command line applications, so any application which processes data 8521 from an untrusted source and outputs it as a PEM file should be considered 8522 vulnerable to this issue. User applications that call these APIs directly 8523 with large amounts of untrusted data may also be vulnerable. 8524 8525 This issue was reported by Guido Vranken. 8526 ([CVE-2016-2105]) 8527 8528 *Matt Caswell* 8529 8530 * Fix EVP_EncryptUpdate overflow 8531 8532 An overflow can occur in the EVP_EncryptUpdate() function. If an attacker 8533 is able to supply very large amounts of input data after a previous call to 8534 EVP_EncryptUpdate() with a partial block then a length check can overflow 8535 resulting in a heap corruption. Following an analysis of all OpenSSL 8536 internal usage of the EVP_EncryptUpdate() function all usage is one of two 8537 forms. The first form is where the EVP_EncryptUpdate() call is known to be 8538 the first called function after an EVP_EncryptInit(), and therefore that 8539 specific call must be safe. The second form is where the length passed to 8540 EVP_EncryptUpdate() can be seen from the code to be some small value and 8541 therefore there is no possibility of an overflow. Since all instances are 8542 one of these two forms, it is believed that there can be no overflows in 8543 internal code due to this problem. It should be noted that 8544 EVP_DecryptUpdate() can call EVP_EncryptUpdate() in certain code paths. 8545 Also EVP_CipherUpdate() is a synonym for EVP_EncryptUpdate(). All instances 8546 of these calls have also been analysed too and it is believed there are no 8547 instances in internal usage where an overflow could occur. 8548 8549 This issue was reported by Guido Vranken. 8550 ([CVE-2016-2106]) 8551 8552 *Matt Caswell* 8553 8554 * Prevent ASN.1 BIO excessive memory allocation 8555 8556 When ASN.1 data is read from a BIO using functions such as d2i_CMS_bio() 8557 a short invalid encoding can casuse allocation of large amounts of memory 8558 potentially consuming excessive resources or exhausting memory. 8559 8560 Any application parsing untrusted data through d2i BIO functions is 8561 affected. The memory based functions such as d2i_X509() are *not* affected. 8562 Since the memory based functions are used by the TLS library, TLS 8563 applications are not affected. 8564 8565 This issue was reported by Brian Carpenter. 8566 ([CVE-2016-2109]) 8567 8568 *Stephen Henson* 8569 8570 * EBCDIC overread 8571 8572 ASN1 Strings that are over 1024 bytes can cause an overread in applications 8573 using the X509_NAME_oneline() function on EBCDIC systems. This could result 8574 in arbitrary stack data being returned in the buffer. 8575 8576 This issue was reported by Guido Vranken. 8577 ([CVE-2016-2176]) 8578 8579 *Matt Caswell* 8580 8581 * Modify behavior of ALPN to invoke callback after SNI/servername 8582 callback, such that updates to the SSL_CTX affect ALPN. 8583 8584 *Todd Short* 8585 8586 * Remove LOW from the DEFAULT cipher list. This removes singles DES from the 8587 default. 8588 8589 *Kurt Roeckx* 8590 8591 * Only remove the SSLv2 methods with the no-ssl2-method option. When the 8592 methods are enabled and ssl2 is disabled the methods return NULL. 8593 8594 *Kurt Roeckx* 8595 8596### Changes between 1.0.1r and 1.0.1s [1 Mar 2016] 8597 8598* Disable weak ciphers in SSLv3 and up in default builds of OpenSSL. 8599 Builds that are not configured with "enable-weak-ssl-ciphers" will not 8600 provide any "EXPORT" or "LOW" strength ciphers. 8601 8602 *Viktor Dukhovni* 8603 8604* Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2 8605 is by default disabled at build-time. Builds that are not configured with 8606 "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used, 8607 users who want to negotiate SSLv2 via the version-flexible SSLv23_method() 8608 will need to explicitly call either of: 8609 8610 SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2); 8611 or 8612 SSL_clear_options(ssl, SSL_OP_NO_SSLv2); 8613 8614 as appropriate. Even if either of those is used, or the application 8615 explicitly uses the version-specific SSLv2_method() or its client and 8616 server variants, SSLv2 ciphers vulnerable to exhaustive search key 8617 recovery have been removed. Specifically, the SSLv2 40-bit EXPORT 8618 ciphers, and SSLv2 56-bit DES are no longer available. 8619 ([CVE-2016-0800]) 8620 8621 *Viktor Dukhovni* 8622 8623 * Fix a double-free in DSA code 8624 8625 A double free bug was discovered when OpenSSL parses malformed DSA private 8626 keys and could lead to a DoS attack or memory corruption for applications 8627 that receive DSA private keys from untrusted sources. This scenario is 8628 considered rare. 8629 8630 This issue was reported to OpenSSL by Adam Langley(Google/BoringSSL) using 8631 libFuzzer. 8632 ([CVE-2016-0705]) 8633 8634 *Stephen Henson* 8635 8636 * Disable SRP fake user seed to address a server memory leak. 8637 8638 Add a new method SRP_VBASE_get1_by_user that handles the seed properly. 8639 8640 SRP_VBASE_get_by_user had inconsistent memory management behaviour. 8641 In order to fix an unavoidable memory leak, SRP_VBASE_get_by_user 8642 was changed to ignore the "fake user" SRP seed, even if the seed 8643 is configured. 8644 8645 Users should use SRP_VBASE_get1_by_user instead. Note that in 8646 SRP_VBASE_get1_by_user, caller must free the returned value. Note 8647 also that even though configuring the SRP seed attempts to hide 8648 invalid usernames by continuing the handshake with fake 8649 credentials, this behaviour is not constant time and no strong 8650 guarantees are made that the handshake is indistinguishable from 8651 that of a valid user. 8652 ([CVE-2016-0798]) 8653 8654 *Emilia Käsper* 8655 8656 * Fix BN_hex2bn/BN_dec2bn NULL pointer deref/heap corruption 8657 8658 In the BN_hex2bn function the number of hex digits is calculated using an 8659 int value `i`. Later `bn_expand` is called with a value of `i * 4`. For 8660 large values of `i` this can result in `bn_expand` not allocating any 8661 memory because `i * 4` is negative. This can leave the internal BIGNUM data 8662 field as NULL leading to a subsequent NULL ptr deref. For very large values 8663 of `i`, the calculation `i * 4` could be a positive value smaller than `i`. 8664 In this case memory is allocated to the internal BIGNUM data field, but it 8665 is insufficiently sized leading to heap corruption. A similar issue exists 8666 in BN_dec2bn. This could have security consequences if BN_hex2bn/BN_dec2bn 8667 is ever called by user applications with very large untrusted hex/dec data. 8668 This is anticipated to be a rare occurrence. 8669 8670 All OpenSSL internal usage of these functions use data that is not expected 8671 to be untrusted, e.g. config file data or application command line 8672 arguments. If user developed applications generate config file data based 8673 on untrusted data then it is possible that this could also lead to security 8674 consequences. This is also anticipated to be rare. 8675 8676 This issue was reported to OpenSSL by Guido Vranken. 8677 ([CVE-2016-0797]) 8678 8679 *Matt Caswell* 8680 8681 * Fix memory issues in `BIO_*printf` functions 8682 8683 The internal `fmtstr` function used in processing a "%s" format string in 8684 the `BIO_*printf` functions could overflow while calculating the length of a 8685 string and cause an OOB read when printing very long strings. 8686 8687 Additionally the internal `doapr_outch` function can attempt to write to an 8688 OOB memory location (at an offset from the NULL pointer) in the event of a 8689 memory allocation failure. In 1.0.2 and below this could be caused where 8690 the size of a buffer to be allocated is greater than INT_MAX. E.g. this 8691 could be in processing a very long "%s" format string. Memory leaks can 8692 also occur. 8693 8694 The first issue may mask the second issue dependent on compiler behaviour. 8695 These problems could enable attacks where large amounts of untrusted data 8696 is passed to the `BIO_*printf` functions. If applications use these functions 8697 in this way then they could be vulnerable. OpenSSL itself uses these 8698 functions when printing out human-readable dumps of ASN.1 data. Therefore 8699 applications that print this data could be vulnerable if the data is from 8700 untrusted sources. OpenSSL command line applications could also be 8701 vulnerable where they print out ASN.1 data, or if untrusted data is passed 8702 as command line arguments. 8703 8704 Libssl is not considered directly vulnerable. Additionally certificates etc 8705 received via remote connections via libssl are also unlikely to be able to 8706 trigger these issues because of message size limits enforced within libssl. 8707 8708 This issue was reported to OpenSSL Guido Vranken. 8709 ([CVE-2016-0799]) 8710 8711 *Matt Caswell* 8712 8713 * Side channel attack on modular exponentiation 8714 8715 A side-channel attack was found which makes use of cache-bank conflicts on 8716 the Intel Sandy-Bridge microarchitecture which could lead to the recovery 8717 of RSA keys. The ability to exploit this issue is limited as it relies on 8718 an attacker who has control of code in a thread running on the same 8719 hyper-threaded core as the victim thread which is performing decryptions. 8720 8721 This issue was reported to OpenSSL by Yuval Yarom, The University of 8722 Adelaide and NICTA, Daniel Genkin, Technion and Tel Aviv University, and 8723 Nadia Heninger, University of Pennsylvania with more information at 8724 <http://cachebleed.info>. 8725 ([CVE-2016-0702]) 8726 8727 *Andy Polyakov* 8728 8729 * Change the req command to generate a 2048-bit RSA/DSA key by default, 8730 if no keysize is specified with default_bits. This fixes an 8731 omission in an earlier change that changed all RSA/DSA key generation 8732 commands to use 2048 bits by default. 8733 8734 *Emilia Käsper* 8735 8736### Changes between 1.0.1q and 1.0.1r [28 Jan 2016] 8737 8738 * Protection for DH small subgroup attacks 8739 8740 As a precautionary measure the SSL_OP_SINGLE_DH_USE option has been 8741 switched on by default and cannot be disabled. This could have some 8742 performance impact. 8743 8744 *Matt Caswell* 8745 8746 * SSLv2 doesn't block disabled ciphers 8747 8748 A malicious client can negotiate SSLv2 ciphers that have been disabled on 8749 the server and complete SSLv2 handshakes even if all SSLv2 ciphers have 8750 been disabled, provided that the SSLv2 protocol was not also disabled via 8751 SSL_OP_NO_SSLv2. 8752 8753 This issue was reported to OpenSSL on 26th December 2015 by Nimrod Aviram 8754 and Sebastian Schinzel. 8755 ([CVE-2015-3197]) 8756 8757 *Viktor Dukhovni* 8758 8759 * Reject DH handshakes with parameters shorter than 1024 bits. 8760 8761 *Kurt Roeckx* 8762 8763### Changes between 1.0.1p and 1.0.1q [3 Dec 2015] 8764 8765 * Certificate verify crash with missing PSS parameter 8766 8767 The signature verification routines will crash with a NULL pointer 8768 dereference if presented with an ASN.1 signature using the RSA PSS 8769 algorithm and absent mask generation function parameter. Since these 8770 routines are used to verify certificate signature algorithms this can be 8771 used to crash any certificate verification operation and exploited in a 8772 DoS attack. Any application which performs certificate verification is 8773 vulnerable including OpenSSL clients and servers which enable client 8774 authentication. 8775 8776 This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG). 8777 ([CVE-2015-3194]) 8778 8779 *Stephen Henson* 8780 8781 * X509_ATTRIBUTE memory leak 8782 8783 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak 8784 memory. This structure is used by the PKCS#7 and CMS routines so any 8785 application which reads PKCS#7 or CMS data from untrusted sources is 8786 affected. SSL/TLS is not affected. 8787 8788 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using 8789 libFuzzer. 8790 ([CVE-2015-3195]) 8791 8792 *Stephen Henson* 8793 8794 * Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs. 8795 This changes the decoding behaviour for some invalid messages, 8796 though the change is mostly in the more lenient direction, and 8797 legacy behaviour is preserved as much as possible. 8798 8799 *Emilia Käsper* 8800 8801 * In DSA_generate_parameters_ex, if the provided seed is too short, 8802 use a random seed, as already documented. 8803 8804 *Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>* 8805 8806### Changes between 1.0.1o and 1.0.1p [9 Jul 2015] 8807 8808 * Alternate chains certificate forgery 8809 8810 During certificate verification, OpenSSL will attempt to find an 8811 alternative certificate chain if the first attempt to build such a chain 8812 fails. An error in the implementation of this logic can mean that an 8813 attacker could cause certain checks on untrusted certificates to be 8814 bypassed, such as the CA flag, enabling them to use a valid leaf 8815 certificate to act as a CA and "issue" an invalid certificate. 8816 8817 This issue was reported to OpenSSL by Adam Langley/David Benjamin 8818 (Google/BoringSSL). 8819 ([CVE-2015-1793]) 8820 8821 *Matt Caswell* 8822 8823 * Race condition handling PSK identify hint 8824 8825 If PSK identity hints are received by a multi-threaded client then 8826 the values are wrongly updated in the parent SSL_CTX structure. This can 8827 result in a race condition potentially leading to a double free of the 8828 identify hint data. 8829 ([CVE-2015-3196]) 8830 8831 *Stephen Henson* 8832 8833### Changes between 1.0.1n and 1.0.1o [12 Jun 2015] 8834 8835 * Fix HMAC ABI incompatibility. The previous version introduced an ABI 8836 incompatibility in the handling of HMAC. The previous ABI has now been 8837 restored. 8838 8839### Changes between 1.0.1m and 1.0.1n [11 Jun 2015] 8840 8841 * Malformed ECParameters causes infinite loop 8842 8843 When processing an ECParameters structure OpenSSL enters an infinite loop 8844 if the curve specified is over a specially malformed binary polynomial 8845 field. 8846 8847 This can be used to perform denial of service against any 8848 system which processes public keys, certificate requests or 8849 certificates. This includes TLS clients and TLS servers with 8850 client authentication enabled. 8851 8852 This issue was reported to OpenSSL by Joseph Barr-Pixton. 8853 ([CVE-2015-1788]) 8854 8855 *Andy Polyakov* 8856 8857 * Exploitable out-of-bounds read in X509_cmp_time 8858 8859 X509_cmp_time does not properly check the length of the ASN1_TIME 8860 string and can read a few bytes out of bounds. In addition, 8861 X509_cmp_time accepts an arbitrary number of fractional seconds in the 8862 time string. 8863 8864 An attacker can use this to craft malformed certificates and CRLs of 8865 various sizes and potentially cause a segmentation fault, resulting in 8866 a DoS on applications that verify certificates or CRLs. TLS clients 8867 that verify CRLs are affected. TLS clients and servers with client 8868 authentication enabled may be affected if they use custom verification 8869 callbacks. 8870 8871 This issue was reported to OpenSSL by Robert Swiecki (Google), and 8872 independently by Hanno Böck. 8873 ([CVE-2015-1789]) 8874 8875 *Emilia Käsper* 8876 8877 * PKCS7 crash with missing EnvelopedContent 8878 8879 The PKCS#7 parsing code does not handle missing inner EncryptedContent 8880 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs 8881 with missing content and trigger a NULL pointer dereference on parsing. 8882 8883 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7 8884 structures from untrusted sources are affected. OpenSSL clients and 8885 servers are not affected. 8886 8887 This issue was reported to OpenSSL by Michal Zalewski (Google). 8888 ([CVE-2015-1790]) 8889 8890 *Emilia Käsper* 8891 8892 * CMS verify infinite loop with unknown hash function 8893 8894 When verifying a signedData message the CMS code can enter an infinite loop 8895 if presented with an unknown hash function OID. This can be used to perform 8896 denial of service against any system which verifies signedData messages using 8897 the CMS code. 8898 This issue was reported to OpenSSL by Johannes Bauer. 8899 ([CVE-2015-1792]) 8900 8901 *Stephen Henson* 8902 8903 * Race condition handling NewSessionTicket 8904 8905 If a NewSessionTicket is received by a multi-threaded client when attempting to 8906 reuse a previous ticket then a race condition can occur potentially leading to 8907 a double free of the ticket data. 8908 ([CVE-2015-1791]) 8909 8910 *Matt Caswell* 8911 8912 * Reject DH handshakes with parameters shorter than 768 bits. 8913 8914 *Kurt Roeckx and Emilia Kasper* 8915 8916 * dhparam: generate 2048-bit parameters by default. 8917 8918 *Kurt Roeckx and Emilia Kasper* 8919 8920### Changes between 1.0.1l and 1.0.1m [19 Mar 2015] 8921 8922 * Segmentation fault in ASN1_TYPE_cmp fix 8923 8924 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is 8925 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check 8926 certificate signature algorithm consistency this can be used to crash any 8927 certificate verification operation and exploited in a DoS attack. Any 8928 application which performs certificate verification is vulnerable including 8929 OpenSSL clients and servers which enable client authentication. 8930 ([CVE-2015-0286]) 8931 8932 *Stephen Henson* 8933 8934 * ASN.1 structure reuse memory corruption fix 8935 8936 Reusing a structure in ASN.1 parsing may allow an attacker to cause 8937 memory corruption via an invalid write. Such reuse is and has been 8938 strongly discouraged and is believed to be rare. 8939 8940 Applications that parse structures containing CHOICE or ANY DEFINED BY 8941 components may be affected. Certificate parsing (d2i_X509 and related 8942 functions) are however not affected. OpenSSL clients and servers are 8943 not affected. 8944 ([CVE-2015-0287]) 8945 8946 *Stephen Henson* 8947 8948 * PKCS7 NULL pointer dereferences fix 8949 8950 The PKCS#7 parsing code does not handle missing outer ContentInfo 8951 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with 8952 missing content and trigger a NULL pointer dereference on parsing. 8953 8954 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or 8955 otherwise parse PKCS#7 structures from untrusted sources are 8956 affected. OpenSSL clients and servers are not affected. 8957 8958 This issue was reported to OpenSSL by Michal Zalewski (Google). 8959 ([CVE-2015-0289]) 8960 8961 *Emilia Käsper* 8962 8963 * DoS via reachable assert in SSLv2 servers fix 8964 8965 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in 8966 servers that both support SSLv2 and enable export cipher suites by sending 8967 a specially crafted SSLv2 CLIENT-MASTER-KEY message. 8968 8969 This issue was discovered by Sean Burford (Google) and Emilia Käsper 8970 (OpenSSL development team). 8971 ([CVE-2015-0293]) 8972 8973 *Emilia Käsper* 8974 8975 * Use After Free following d2i_ECPrivatekey error fix 8976 8977 A malformed EC private key file consumed via the d2i_ECPrivateKey function 8978 could cause a use after free condition. This, in turn, could cause a double 8979 free in several private key parsing functions (such as d2i_PrivateKey 8980 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption 8981 for applications that receive EC private keys from untrusted 8982 sources. This scenario is considered rare. 8983 8984 This issue was discovered by the BoringSSL project and fixed in their 8985 commit 517073cd4b. 8986 ([CVE-2015-0209]) 8987 8988 *Matt Caswell* 8989 8990 * X509_to_X509_REQ NULL pointer deref fix 8991 8992 The function X509_to_X509_REQ will crash with a NULL pointer dereference if 8993 the certificate key is invalid. This function is rarely used in practice. 8994 8995 This issue was discovered by Brian Carpenter. 8996 ([CVE-2015-0288]) 8997 8998 *Stephen Henson* 8999 9000 * Removed the export ciphers from the DEFAULT ciphers 9001 9002 *Kurt Roeckx* 9003 9004### Changes between 1.0.1k and 1.0.1l [15 Jan 2015] 9005 9006 * Build fixes for the Windows and OpenVMS platforms 9007 9008 *Matt Caswell and Richard Levitte* 9009 9010### Changes between 1.0.1j and 1.0.1k [8 Jan 2015] 9011 9012 * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS 9013 message can cause a segmentation fault in OpenSSL due to a NULL pointer 9014 dereference. This could lead to a Denial Of Service attack. Thanks to 9015 Markus Stenberg of Cisco Systems, Inc. for reporting this issue. 9016 ([CVE-2014-3571]) 9017 9018 *Steve Henson* 9019 9020 * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the 9021 dtls1_buffer_record function under certain conditions. In particular this 9022 could occur if an attacker sent repeated DTLS records with the same 9023 sequence number but for the next epoch. The memory leak could be exploited 9024 by an attacker in a Denial of Service attack through memory exhaustion. 9025 Thanks to Chris Mueller for reporting this issue. 9026 ([CVE-2015-0206]) 9027 9028 *Matt Caswell* 9029 9030 * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is 9031 built with the no-ssl3 option and an SSL v3 ClientHello is received the ssl 9032 method would be set to NULL which could later result in a NULL pointer 9033 dereference. Thanks to Frank Schmirler for reporting this issue. 9034 ([CVE-2014-3569]) 9035 9036 *Kurt Roeckx* 9037 9038 * Abort handshake if server key exchange message is omitted for ephemeral 9039 ECDH ciphersuites. 9040 9041 Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for 9042 reporting this issue. 9043 ([CVE-2014-3572]) 9044 9045 *Steve Henson* 9046 9047 * Remove non-export ephemeral RSA code on client and server. This code 9048 violated the TLS standard by allowing the use of temporary RSA keys in 9049 non-export ciphersuites and could be used by a server to effectively 9050 downgrade the RSA key length used to a value smaller than the server 9051 certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at 9052 INRIA or reporting this issue. 9053 ([CVE-2015-0204]) 9054 9055 *Steve Henson* 9056 9057 * Fixed issue where DH client certificates are accepted without verification. 9058 An OpenSSL server will accept a DH certificate for client authentication 9059 without the certificate verify message. This effectively allows a client to 9060 authenticate without the use of a private key. This only affects servers 9061 which trust a client certificate authority which issues certificates 9062 containing DH keys: these are extremely rare and hardly ever encountered. 9063 Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting 9064 this issue. 9065 ([CVE-2015-0205]) 9066 9067 *Steve Henson* 9068 9069 * Ensure that the session ID context of an SSL is updated when its 9070 SSL_CTX is updated via SSL_set_SSL_CTX. 9071 9072 The session ID context is typically set from the parent SSL_CTX, 9073 and can vary with the CTX. 9074 9075 *Adam Langley* 9076 9077 * Fix various certificate fingerprint issues. 9078 9079 By using non-DER or invalid encodings outside the signed portion of a 9080 certificate the fingerprint can be changed without breaking the signature. 9081 Although no details of the signed portion of the certificate can be changed 9082 this can cause problems with some applications: e.g. those using the 9083 certificate fingerprint for blacklists. 9084 9085 1. Reject signatures with non zero unused bits. 9086 9087 If the BIT STRING containing the signature has non zero unused bits reject 9088 the signature. All current signature algorithms require zero unused bits. 9089 9090 2. Check certificate algorithm consistency. 9091 9092 Check the AlgorithmIdentifier inside TBS matches the one in the 9093 certificate signature. NB: this will result in signature failure 9094 errors for some broken certificates. 9095 9096 Thanks to Konrad Kraszewski from Google for reporting this issue. 9097 9098 3. Check DSA/ECDSA signatures use DER. 9099 9100 Re-encode DSA/ECDSA signatures and compare with the original received 9101 signature. Return an error if there is a mismatch. 9102 9103 This will reject various cases including garbage after signature 9104 (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS 9105 program for discovering this case) and use of BER or invalid ASN.1 INTEGERs 9106 (negative or with leading zeroes). 9107 9108 Further analysis was conducted and fixes were developed by Stephen Henson 9109 of the OpenSSL core team. 9110 9111 ([CVE-2014-8275]) 9112 9113 *Steve Henson* 9114 9115 * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect 9116 results on some platforms, including x86_64. This bug occurs at random 9117 with a very low probability, and is not known to be exploitable in any 9118 way, though its exact impact is difficult to determine. Thanks to Pieter 9119 Wuille (Blockstream) who reported this issue and also suggested an initial 9120 fix. Further analysis was conducted by the OpenSSL development team and 9121 Adam Langley of Google. The final fix was developed by Andy Polyakov of 9122 the OpenSSL core team. 9123 ([CVE-2014-3570]) 9124 9125 *Andy Polyakov* 9126 9127 * Do not resume sessions on the server if the negotiated protocol 9128 version does not match the session's version. Resuming with a different 9129 version, while not strictly forbidden by the RFC, is of questionable 9130 sanity and breaks all known clients. 9131 9132 *David Benjamin, Emilia Käsper* 9133 9134 * Tighten handling of the ChangeCipherSpec (CCS) message: reject 9135 early CCS messages during renegotiation. (Note that because 9136 renegotiation is encrypted, this early CCS was not exploitable.) 9137 9138 *Emilia Käsper* 9139 9140 * Tighten client-side session ticket handling during renegotiation: 9141 ensure that the client only accepts a session ticket if the server sends 9142 the extension anew in the ServerHello. Previously, a TLS client would 9143 reuse the old extension state and thus accept a session ticket if one was 9144 announced in the initial ServerHello. 9145 9146 Similarly, ensure that the client requires a session ticket if one 9147 was advertised in the ServerHello. Previously, a TLS client would 9148 ignore a missing NewSessionTicket message. 9149 9150 *Emilia Käsper* 9151 9152### Changes between 1.0.1i and 1.0.1j [15 Oct 2014] 9153 9154 * SRTP Memory Leak. 9155 9156 A flaw in the DTLS SRTP extension parsing code allows an attacker, who 9157 sends a carefully crafted handshake message, to cause OpenSSL to fail 9158 to free up to 64k of memory causing a memory leak. This could be 9159 exploited in a Denial Of Service attack. This issue affects OpenSSL 9160 1.0.1 server implementations for both SSL/TLS and DTLS regardless of 9161 whether SRTP is used or configured. Implementations of OpenSSL that 9162 have been compiled with OPENSSL_NO_SRTP defined are not affected. 9163 9164 The fix was developed by the OpenSSL team. 9165 ([CVE-2014-3513]) 9166 9167 *OpenSSL team* 9168 9169 * Session Ticket Memory Leak. 9170 9171 When an OpenSSL SSL/TLS/DTLS server receives a session ticket the 9172 integrity of that ticket is first verified. In the event of a session 9173 ticket integrity check failing, OpenSSL will fail to free memory 9174 causing a memory leak. By sending a large number of invalid session 9175 tickets an attacker could exploit this issue in a Denial Of Service 9176 attack. 9177 ([CVE-2014-3567]) 9178 9179 *Steve Henson* 9180 9181 * Build option no-ssl3 is incomplete. 9182 9183 When OpenSSL is configured with "no-ssl3" as a build option, servers 9184 could accept and complete an SSL 3.0 handshake, and clients could be 9185 configured to send them. 9186 ([CVE-2014-3568]) 9187 9188 *Akamai and the OpenSSL team* 9189 9190 * Add support for TLS_FALLBACK_SCSV. 9191 Client applications doing fallback retries should call 9192 SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV). 9193 ([CVE-2014-3566]) 9194 9195 *Adam Langley, Bodo Moeller* 9196 9197 * Add additional DigestInfo checks. 9198 9199 Re-encode DigestInto in DER and check against the original when 9200 verifying RSA signature: this will reject any improperly encoded 9201 DigestInfo structures. 9202 9203 Note: this is a precautionary measure and no attacks are currently known. 9204 9205 *Steve Henson* 9206 9207### Changes between 1.0.1h and 1.0.1i [6 Aug 2014] 9208 9209 * Fix SRP buffer overrun vulnerability. Invalid parameters passed to the 9210 SRP code can be overrun an internal buffer. Add sanity check that 9211 g, A, B < N to SRP code. 9212 9213 Thanks to Sean Devlin and Watson Ladd of Cryptography Services, NCC 9214 Group for discovering this issue. 9215 ([CVE-2014-3512]) 9216 9217 *Steve Henson* 9218 9219 * A flaw in the OpenSSL SSL/TLS server code causes the server to negotiate 9220 TLS 1.0 instead of higher protocol versions when the ClientHello message 9221 is badly fragmented. This allows a man-in-the-middle attacker to force a 9222 downgrade to TLS 1.0 even if both the server and the client support a 9223 higher protocol version, by modifying the client's TLS records. 9224 9225 Thanks to David Benjamin and Adam Langley (Google) for discovering and 9226 researching this issue. 9227 ([CVE-2014-3511]) 9228 9229 *David Benjamin* 9230 9231 * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject 9232 to a denial of service attack. A malicious server can crash the client 9233 with a null pointer dereference (read) by specifying an anonymous (EC)DH 9234 ciphersuite and sending carefully crafted handshake messages. 9235 9236 Thanks to Felix Gröbert (Google) for discovering and researching this 9237 issue. 9238 ([CVE-2014-3510]) 9239 9240 *Emilia Käsper* 9241 9242 * By sending carefully crafted DTLS packets an attacker could cause openssl 9243 to leak memory. This can be exploited through a Denial of Service attack. 9244 Thanks to Adam Langley for discovering and researching this issue. 9245 ([CVE-2014-3507]) 9246 9247 *Adam Langley* 9248 9249 * An attacker can force openssl to consume large amounts of memory whilst 9250 processing DTLS handshake messages. This can be exploited through a 9251 Denial of Service attack. 9252 Thanks to Adam Langley for discovering and researching this issue. 9253 ([CVE-2014-3506]) 9254 9255 *Adam Langley* 9256 9257 * An attacker can force an error condition which causes openssl to crash 9258 whilst processing DTLS packets due to memory being freed twice. This 9259 can be exploited through a Denial of Service attack. 9260 Thanks to Adam Langley and Wan-Teh Chang for discovering and researching 9261 this issue. 9262 ([CVE-2014-3505]) 9263 9264 *Adam Langley* 9265 9266 * If a multithreaded client connects to a malicious server using a resumed 9267 session and the server sends an ec point format extension it could write 9268 up to 255 bytes to freed memory. 9269 9270 Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this 9271 issue. 9272 ([CVE-2014-3509]) 9273 9274 *Gabor Tyukasz* 9275 9276 * A malicious server can crash an OpenSSL client with a null pointer 9277 dereference (read) by specifying an SRP ciphersuite even though it was not 9278 properly negotiated with the client. This can be exploited through a 9279 Denial of Service attack. 9280 9281 Thanks to Joonas Kuorilehto and Riku Hietamäki (Codenomicon) for 9282 discovering and researching this issue. 9283 ([CVE-2014-5139]) 9284 9285 *Steve Henson* 9286 9287 * A flaw in OBJ_obj2txt may cause pretty printing functions such as 9288 X509_name_oneline, X509_name_print_ex et al. to leak some information 9289 from the stack. Applications may be affected if they echo pretty printing 9290 output to the attacker. 9291 9292 Thanks to Ivan Fratric (Google) for discovering this issue. 9293 ([CVE-2014-3508]) 9294 9295 *Emilia Käsper, and Steve Henson* 9296 9297 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.) 9298 for corner cases. (Certain input points at infinity could lead to 9299 bogus results, with non-infinity inputs mapped to infinity too.) 9300 9301 *Bodo Moeller* 9302 9303### Changes between 1.0.1g and 1.0.1h [5 Jun 2014] 9304 9305 * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted 9306 handshake can force the use of weak keying material in OpenSSL 9307 SSL/TLS clients and servers. 9308 9309 Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and 9310 researching this issue. ([CVE-2014-0224]) 9311 9312 *KIKUCHI Masashi, Steve Henson* 9313 9314 * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an 9315 OpenSSL DTLS client the code can be made to recurse eventually crashing 9316 in a DoS attack. 9317 9318 Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue. 9319 ([CVE-2014-0221]) 9320 9321 *Imre Rad, Steve Henson* 9322 9323 * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can 9324 be triggered by sending invalid DTLS fragments to an OpenSSL DTLS 9325 client or server. This is potentially exploitable to run arbitrary 9326 code on a vulnerable client or server. 9327 9328 Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195]) 9329 9330 *Jüri Aedla, Steve Henson* 9331 9332 * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites 9333 are subject to a denial of service attack. 9334 9335 Thanks to Felix Gröbert and Ivan Fratric at Google for discovering 9336 this issue. ([CVE-2014-3470]) 9337 9338 *Felix Gröbert, Ivan Fratric, Steve Henson* 9339 9340 * Harmonize version and its documentation. -f flag is used to display 9341 compilation flags. 9342 9343 *mancha <mancha1@zoho.com>* 9344 9345 * Fix eckey_priv_encode so it immediately returns an error upon a failure 9346 in i2d_ECPrivateKey. 9347 9348 *mancha <mancha1@zoho.com>* 9349 9350 * Fix some double frees. These are not thought to be exploitable. 9351 9352 *mancha <mancha1@zoho.com>* 9353 9354### Changes between 1.0.1f and 1.0.1g [7 Apr 2014] 9355 9356 * A missing bounds check in the handling of the TLS heartbeat extension 9357 can be used to reveal up to 64k of memory to a connected client or 9358 server. 9359 9360 Thanks for Neel Mehta of Google Security for discovering this bug and to 9361 Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for 9362 preparing the fix ([CVE-2014-0160]) 9363 9364 *Adam Langley, Bodo Moeller* 9365 9366 * Fix for the attack described in the paper "Recovering OpenSSL 9367 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack" 9368 by Yuval Yarom and Naomi Benger. Details can be obtained from: 9369 <http://eprint.iacr.org/2014/140> 9370 9371 Thanks to Yuval Yarom and Naomi Benger for discovering this 9372 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076]) 9373 9374 *Yuval Yarom and Naomi Benger* 9375 9376 * TLS pad extension: draft-agl-tls-padding-03 9377 9378 Workaround for the "TLS hang bug" (see FAQ and PR#2771): if the 9379 TLS client Hello record length value would otherwise be > 255 and 9380 less that 512 pad with a dummy extension containing zeroes so it 9381 is at least 512 bytes long. 9382 9383 *Adam Langley, Steve Henson* 9384 9385### Changes between 1.0.1e and 1.0.1f [6 Jan 2014] 9386 9387 * Fix for TLS record tampering bug. A carefully crafted invalid 9388 handshake could crash OpenSSL with a NULL pointer exception. 9389 Thanks to Anton Johansson for reporting this issues. 9390 ([CVE-2013-4353]) 9391 9392 * Keep original DTLS digest and encryption contexts in retransmission 9393 structures so we can use the previous session parameters if they need 9394 to be resent. ([CVE-2013-6450]) 9395 9396 *Steve Henson* 9397 9398 * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which 9399 avoids preferring ECDHE-ECDSA ciphers when the client appears to be 9400 Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for 9401 several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug 9402 is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing 9403 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer. 9404 9405 *Rob Stradling, Adam Langley* 9406 9407### Changes between 1.0.1d and 1.0.1e [11 Feb 2013] 9408 9409 * Correct fix for CVE-2013-0169. The original didn't work on AES-NI 9410 supporting platforms or when small records were transferred. 9411 9412 *Andy Polyakov, Steve Henson* 9413 9414### Changes between 1.0.1c and 1.0.1d [5 Feb 2013] 9415 9416 * Make the decoding of SSLv3, TLS and DTLS CBC records constant time. 9417 9418 This addresses the flaw in CBC record processing discovered by 9419 Nadhem Alfardan and Kenny Paterson. Details of this attack can be found 9420 at: <http://www.isg.rhul.ac.uk/tls/> 9421 9422 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information 9423 Security Group at Royal Holloway, University of London 9424 (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and 9425 Emilia Käsper for the initial patch. 9426 ([CVE-2013-0169]) 9427 9428 *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson* 9429 9430 * Fix flaw in AESNI handling of TLS 1.2 and 1.1 records for CBC mode 9431 ciphersuites which can be exploited in a denial of service attack. 9432 Thanks go to and to Adam Langley <agl@chromium.org> for discovering 9433 and detecting this bug and to Wolfgang Ettlinger 9434 <wolfgang.ettlinger@gmail.com> for independently discovering this issue. 9435 ([CVE-2012-2686]) 9436 9437 *Adam Langley* 9438 9439 * Return an error when checking OCSP signatures when key is NULL. 9440 This fixes a DoS attack. ([CVE-2013-0166]) 9441 9442 *Steve Henson* 9443 9444 * Make openssl verify return errors. 9445 9446 *Chris Palmer <palmer@google.com> and Ben Laurie* 9447 9448 * Call OCSP Stapling callback after ciphersuite has been chosen, so 9449 the right response is stapled. Also change SSL_get_certificate() 9450 so it returns the certificate actually sent. 9451 See <http://rt.openssl.org/Ticket/Display.html?id=2836>. 9452 9453 *Rob Stradling <rob.stradling@comodo.com>* 9454 9455 * Fix possible deadlock when decoding public keys. 9456 9457 *Steve Henson* 9458 9459 * Don't use TLS 1.0 record version number in initial client hello 9460 if renegotiating. 9461 9462 *Steve Henson* 9463 9464### Changes between 1.0.1b and 1.0.1c [10 May 2012] 9465 9466 * Sanity check record length before skipping explicit IV in TLS 9467 1.2, 1.1 and DTLS to fix DoS attack. 9468 9469 Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic 9470 fuzzing as a service testing platform. 9471 ([CVE-2012-2333]) 9472 9473 *Steve Henson* 9474 9475 * Initialise tkeylen properly when encrypting CMS messages. 9476 Thanks to Solar Designer of Openwall for reporting this issue. 9477 9478 *Steve Henson* 9479 9480 * In FIPS mode don't try to use composite ciphers as they are not 9481 approved. 9482 9483 *Steve Henson* 9484 9485### Changes between 1.0.1a and 1.0.1b [26 Apr 2012] 9486 9487 * OpenSSL 1.0.0 sets SSL_OP_ALL to 0x80000FFFL and OpenSSL 1.0.1 and 9488 1.0.1a set SSL_OP_NO_TLSv1_1 to 0x00000400L which would unfortunately 9489 mean any application compiled against OpenSSL 1.0.0 headers setting 9490 SSL_OP_ALL would also set SSL_OP_NO_TLSv1_1, unintentionally disabling 9491 TLS 1.1 also. Fix this by changing the value of SSL_OP_NO_TLSv1_1 to 9492 0x10000000L Any application which was previously compiled against 9493 OpenSSL 1.0.1 or 1.0.1a headers and which cares about SSL_OP_NO_TLSv1_1 9494 will need to be recompiled as a result. Letting be results in 9495 inability to disable specifically TLS 1.1 and in client context, 9496 in unlike event, limit maximum offered version to TLS 1.0 [see below]. 9497 9498 *Steve Henson* 9499 9500 * In order to ensure interoperability SSL_OP_NO_protocolX does not 9501 disable just protocol X, but all protocols above X *if* there are 9502 protocols *below* X still enabled. In more practical terms it means 9503 that if application wants to disable TLS1.0 in favor of TLS1.1 and 9504 above, it's not sufficient to pass `SSL_OP_NO_TLSv1`, one has to pass 9505 `SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv3|SSL_OP_NO_SSLv2`. This applies to 9506 client side. 9507 9508 *Andy Polyakov* 9509 9510### Changes between 1.0.1 and 1.0.1a [19 Apr 2012] 9511 9512 * Check for potentially exploitable overflows in asn1_d2i_read_bio 9513 BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer 9514 in CRYPTO_realloc_clean. 9515 9516 Thanks to Tavis Ormandy, Google Security Team, for discovering this 9517 issue and to Adam Langley <agl@chromium.org> for fixing it. 9518 ([CVE-2012-2110]) 9519 9520 *Adam Langley (Google), Tavis Ormandy, Google Security Team* 9521 9522 * Don't allow TLS 1.2 SHA-256 ciphersuites in TLS 1.0, 1.1 connections. 9523 9524 *Adam Langley* 9525 9526 * Workarounds for some broken servers that "hang" if a client hello 9527 record length exceeds 255 bytes. 9528 9529 1. Do not use record version number > TLS 1.0 in initial client 9530 hello: some (but not all) hanging servers will now work. 9531 2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate 9532 the number of ciphers sent in the client hello. This should be 9533 set to an even number, such as 50, for example by passing: 9534 -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 to config or Configure. 9535 Most broken servers should now work. 9536 3. If all else fails setting OPENSSL_NO_TLS1_2_CLIENT will disable 9537 TLS 1.2 client support entirely. 9538 9539 *Steve Henson* 9540 9541 * Fix SEGV in Vector Permutation AES module observed in OpenSSH. 9542 9543 *Andy Polyakov* 9544 9545### Changes between 1.0.0h and 1.0.1 [14 Mar 2012] 9546 9547 * Add compatibility with old MDC2 signatures which use an ASN1 OCTET 9548 STRING form instead of a DigestInfo. 9549 9550 *Steve Henson* 9551 9552 * The format used for MDC2 RSA signatures is inconsistent between EVP 9553 and the RSA_sign/RSA_verify functions. This was made more apparent when 9554 OpenSSL used RSA_sign/RSA_verify for some RSA signatures in particular 9555 those which went through EVP_PKEY_METHOD in 1.0.0 and later. Detect 9556 the correct format in RSA_verify so both forms transparently work. 9557 9558 *Steve Henson* 9559 9560 * Some servers which support TLS 1.0 can choke if we initially indicate 9561 support for TLS 1.2 and later renegotiate using TLS 1.0 in the RSA 9562 encrypted premaster secret. As a workaround use the maximum permitted 9563 client version in client hello, this should keep such servers happy 9564 and still work with previous versions of OpenSSL. 9565 9566 *Steve Henson* 9567 9568 * Add support for TLS/DTLS heartbeats. 9569 9570 *Robin Seggelmann <seggelmann@fh-muenster.de>* 9571 9572 * Add support for SCTP. 9573 9574 *Robin Seggelmann <seggelmann@fh-muenster.de>* 9575 9576 * Improved PRNG seeding for VOS. 9577 9578 *Paul Green <Paul.Green@stratus.com>* 9579 9580 * Extensive assembler packs updates, most notably: 9581 9582 - x86[_64]: AES-NI, PCLMULQDQ, RDRAND support; 9583 - x86[_64]: SSSE3 support (SHA1, vector-permutation AES); 9584 - x86_64: bit-sliced AES implementation; 9585 - ARM: NEON support, contemporary platforms optimizations; 9586 - s390x: z196 support; 9587 - `*`: GHASH and GF(2^m) multiplication implementations; 9588 9589 *Andy Polyakov* 9590 9591 * Make TLS-SRP code conformant with RFC 5054 API cleanup 9592 (removal of unnecessary code) 9593 9594 *Peter Sylvester <peter.sylvester@edelweb.fr>* 9595 9596 * Add TLS key material exporter from RFC 5705. 9597 9598 *Eric Rescorla* 9599 9600 * Add DTLS-SRTP negotiation from RFC 5764. 9601 9602 *Eric Rescorla* 9603 9604 * Add Next Protocol Negotiation, 9605 <http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00>. Can be 9606 disabled with a no-npn flag to config or Configure. Code donated 9607 by Google. 9608 9609 *Adam Langley <agl@google.com> and Ben Laurie* 9610 9611 * Add optional 64-bit optimized implementations of elliptic curves NIST-P224, 9612 NIST-P256, NIST-P521, with constant-time single point multiplication on 9613 typical inputs. Compiler support for the nonstandard type `__uint128_t` is 9614 required to use this (present in gcc 4.4 and later, for 64-bit builds). 9615 Code made available under Apache License version 2.0. 9616 9617 Specify "enable-ec_nistp_64_gcc_128" on the Configure (or config) command 9618 line to include this in your build of OpenSSL, and run "make depend" (or 9619 "make update"). This enables the following EC_METHODs: 9620 9621 EC_GFp_nistp224_method() 9622 EC_GFp_nistp256_method() 9623 EC_GFp_nistp521_method() 9624 9625 EC_GROUP_new_by_curve_name() will automatically use these (while 9626 EC_GROUP_new_curve_GFp() currently prefers the more flexible 9627 implementations). 9628 9629 *Emilia Käsper, Adam Langley, Bodo Moeller (Google)* 9630 9631 * Use type ossl_ssize_t instead of ssize_t which isn't available on 9632 all platforms. Move ssize_t definition from e_os.h to the public 9633 header file e_os2.h as it now appears in public header file cms.h 9634 9635 *Steve Henson* 9636 9637 * New -sigopt option to the ca, req and x509 utilities. Additional 9638 signature parameters can be passed using this option and in 9639 particular PSS. 9640 9641 *Steve Henson* 9642 9643 * Add RSA PSS signing function. This will generate and set the 9644 appropriate AlgorithmIdentifiers for PSS based on those in the 9645 corresponding EVP_MD_CTX structure. No application support yet. 9646 9647 *Steve Henson* 9648 9649 * Support for companion algorithm specific ASN1 signing routines. 9650 New function ASN1_item_sign_ctx() signs a pre-initialised 9651 EVP_MD_CTX structure and sets AlgorithmIdentifiers based on 9652 the appropriate parameters. 9653 9654 *Steve Henson* 9655 9656 * Add new algorithm specific ASN1 verification initialisation function 9657 to EVP_PKEY_ASN1_METHOD: this is not in EVP_PKEY_METHOD since the ASN1 9658 handling will be the same no matter what EVP_PKEY_METHOD is used. 9659 Add a PSS handler to support verification of PSS signatures: checked 9660 against a number of sample certificates. 9661 9662 *Steve Henson* 9663 9664 * Add signature printing for PSS. Add PSS OIDs. 9665 9666 *Steve Henson, Martin Kaiser <lists@kaiser.cx>* 9667 9668 * Add algorithm specific signature printing. An individual ASN1 method 9669 can now print out signatures instead of the standard hex dump. 9670 9671 More complex signatures (e.g. PSS) can print out more meaningful 9672 information. Include DSA version that prints out the signature 9673 parameters r, s. 9674 9675 *Steve Henson* 9676 9677 * Password based recipient info support for CMS library: implementing 9678 RFC3211. 9679 9680 *Steve Henson* 9681 9682 * Split password based encryption into PBES2 and PBKDF2 functions. This 9683 neatly separates the code into cipher and PBE sections and is required 9684 for some algorithms that split PBES2 into separate pieces (such as 9685 password based CMS). 9686 9687 *Steve Henson* 9688 9689 * Session-handling fixes: 9690 - Fix handling of connections that are resuming with a session ID, 9691 but also support Session Tickets. 9692 - Fix a bug that suppressed issuing of a new ticket if the client 9693 presented a ticket with an expired session. 9694 - Try to set the ticket lifetime hint to something reasonable. 9695 - Make tickets shorter by excluding irrelevant information. 9696 - On the client side, don't ignore renewed tickets. 9697 9698 *Adam Langley, Bodo Moeller (Google)* 9699 9700 * Fix PSK session representation. 9701 9702 *Bodo Moeller* 9703 9704 * Add RC4-MD5 and AESNI-SHA1 "stitched" implementations. 9705 9706 This work was sponsored by Intel. 9707 9708 *Andy Polyakov* 9709 9710 * Add GCM support to TLS library. Some custom code is needed to split 9711 the IV between the fixed (from PRF) and explicit (from TLS record) 9712 portions. This adds all GCM ciphersuites supported by RFC5288 and 9713 RFC5289. Generalise some `AES*` cipherstrings to include GCM and 9714 add a special AESGCM string for GCM only. 9715 9716 *Steve Henson* 9717 9718 * Expand range of ctrls for AES GCM. Permit setting invocation 9719 field on decrypt and retrieval of invocation field only on encrypt. 9720 9721 *Steve Henson* 9722 9723 * Add HMAC ECC ciphersuites from RFC5289. Include SHA384 PRF support. 9724 As required by RFC5289 these ciphersuites cannot be used if for 9725 versions of TLS earlier than 1.2. 9726 9727 *Steve Henson* 9728 9729 * For FIPS capable OpenSSL interpret a NULL default public key method 9730 as unset and return the appropriate default but do *not* set the default. 9731 This means we can return the appropriate method in applications that 9732 switch between FIPS and non-FIPS modes. 9733 9734 *Steve Henson* 9735 9736 * Redirect HMAC and CMAC operations to FIPS module in FIPS mode. If an 9737 ENGINE is used then we cannot handle that in the FIPS module so we 9738 keep original code iff non-FIPS operations are allowed. 9739 9740 *Steve Henson* 9741 9742 * Add -attime option to openssl utilities. 9743 9744 *Peter Eckersley <pde@eff.org>, Ben Laurie and Steve Henson* 9745 9746 * Redirect DSA and DH operations to FIPS module in FIPS mode. 9747 9748 *Steve Henson* 9749 9750 * Redirect ECDSA and ECDH operations to FIPS module in FIPS mode. Also use 9751 FIPS EC methods unconditionally for now. 9752 9753 *Steve Henson* 9754 9755 * New build option no-ec2m to disable characteristic 2 code. 9756 9757 *Steve Henson* 9758 9759 * Backport libcrypto audit of return value checking from 1.1.0-dev; not 9760 all cases can be covered as some introduce binary incompatibilities. 9761 9762 *Steve Henson* 9763 9764 * Redirect RSA operations to FIPS module including keygen, 9765 encrypt, decrypt, sign and verify. Block use of non FIPS RSA methods. 9766 9767 *Steve Henson* 9768 9769 * Add similar low-level API blocking to ciphers. 9770 9771 *Steve Henson* 9772 9773 * low-level digest APIs are not approved in FIPS mode: any attempt 9774 to use these will cause a fatal error. Applications that *really* want 9775 to use them can use the `private_*` version instead. 9776 9777 *Steve Henson* 9778 9779 * Redirect cipher operations to FIPS module for FIPS builds. 9780 9781 *Steve Henson* 9782 9783 * Redirect digest operations to FIPS module for FIPS builds. 9784 9785 *Steve Henson* 9786 9787 * Update build system to add "fips" flag which will link in fipscanister.o 9788 for static and shared library builds embedding a signature if needed. 9789 9790 *Steve Henson* 9791 9792 * Output TLS supported curves in preference order instead of numerical 9793 order. This is currently hardcoded for the highest order curves first. 9794 This should be configurable so applications can judge speed vs strength. 9795 9796 *Steve Henson* 9797 9798 * Add TLS v1.2 server support for client authentication. 9799 9800 *Steve Henson* 9801 9802 * Add support for FIPS mode in ssl library: disable SSLv3, non-FIPS ciphers 9803 and enable MD5. 9804 9805 *Steve Henson* 9806 9807 * Functions FIPS_mode_set() and FIPS_mode() which call the underlying 9808 FIPS modules versions. 9809 9810 *Steve Henson* 9811 9812 * Add TLS v1.2 client side support for client authentication. Keep cache 9813 of handshake records longer as we don't know the hash algorithm to use 9814 until after the certificate request message is received. 9815 9816 *Steve Henson* 9817 9818 * Initial TLS v1.2 client support. Add a default signature algorithms 9819 extension including all the algorithms we support. Parse new signature 9820 format in client key exchange. Relax some ECC signing restrictions for 9821 TLS v1.2 as indicated in RFC5246. 9822 9823 *Steve Henson* 9824 9825 * Add server support for TLS v1.2 signature algorithms extension. Switch 9826 to new signature format when needed using client digest preference. 9827 All server ciphersuites should now work correctly in TLS v1.2. No client 9828 support yet and no support for client certificates. 9829 9830 *Steve Henson* 9831 9832 * Initial TLS v1.2 support. Add new SHA256 digest to ssl code, switch 9833 to SHA256 for PRF when using TLS v1.2 and later. Add new SHA256 based 9834 ciphersuites. At present only RSA key exchange ciphersuites work with 9835 TLS v1.2. Add new option for TLS v1.2 replacing the old and obsolete 9836 SSL_OP_PKCS1_CHECK flags with SSL_OP_NO_TLSv1_2. New TLSv1.2 methods 9837 and version checking. 9838 9839 *Steve Henson* 9840 9841 * New option OPENSSL_NO_SSL_INTERN. If an application can be compiled 9842 with this defined it will not be affected by any changes to ssl internal 9843 structures. Add several utility functions to allow openssl application 9844 to work with OPENSSL_NO_SSL_INTERN defined. 9845 9846 *Steve Henson* 9847 9848 * A long standing patch to add support for SRP from EdelWeb (Peter 9849 Sylvester and Christophe Renou) was integrated. 9850 *Christophe Renou <christophe.renou@edelweb.fr>, Peter Sylvester 9851 <peter.sylvester@edelweb.fr>, Tom Wu <tjw@cs.stanford.edu>, and 9852 Ben Laurie* 9853 9854 * Add functions to copy EVP_PKEY_METHOD and retrieve flags and id. 9855 9856 *Steve Henson* 9857 9858 * Permit abbreviated handshakes when renegotiating using the function 9859 SSL_renegotiate_abbreviated(). 9860 9861 *Robin Seggelmann <seggelmann@fh-muenster.de>* 9862 9863 * Add call to ENGINE_register_all_complete() to 9864 ENGINE_load_builtin_engines(), so some implementations get used 9865 automatically instead of needing explicit application support. 9866 9867 *Steve Henson* 9868 9869 * Add support for TLS key exporter as described in RFC5705. 9870 9871 *Robin Seggelmann <seggelmann@fh-muenster.de>, Steve Henson* 9872 9873 * Initial TLSv1.1 support. Since TLSv1.1 is very similar to TLS v1.0 only 9874 a few changes are required: 9875 9876 Add SSL_OP_NO_TLSv1_1 flag. 9877 Add TLSv1_1 methods. 9878 Update version checking logic to handle version 1.1. 9879 Add explicit IV handling (ported from DTLS code). 9880 Add command line options to s_client/s_server. 9881 9882 *Steve Henson* 9883 9884OpenSSL 1.0.0 9885------------- 9886 9887### Changes between 1.0.0s and 1.0.0t [3 Dec 2015] 9888 9889 * X509_ATTRIBUTE memory leak 9890 9891 When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak 9892 memory. This structure is used by the PKCS#7 and CMS routines so any 9893 application which reads PKCS#7 or CMS data from untrusted sources is 9894 affected. SSL/TLS is not affected. 9895 9896 This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using 9897 libFuzzer. 9898 ([CVE-2015-3195]) 9899 9900 *Stephen Henson* 9901 9902 * Race condition handling PSK identify hint 9903 9904 If PSK identity hints are received by a multi-threaded client then 9905 the values are wrongly updated in the parent SSL_CTX structure. This can 9906 result in a race condition potentially leading to a double free of the 9907 identify hint data. 9908 ([CVE-2015-3196]) 9909 9910 *Stephen Henson* 9911 9912### Changes between 1.0.0r and 1.0.0s [11 Jun 2015] 9913 9914 * Malformed ECParameters causes infinite loop 9915 9916 When processing an ECParameters structure OpenSSL enters an infinite loop 9917 if the curve specified is over a specially malformed binary polynomial 9918 field. 9919 9920 This can be used to perform denial of service against any 9921 system which processes public keys, certificate requests or 9922 certificates. This includes TLS clients and TLS servers with 9923 client authentication enabled. 9924 9925 This issue was reported to OpenSSL by Joseph Barr-Pixton. 9926 ([CVE-2015-1788]) 9927 9928 *Andy Polyakov* 9929 9930 * Exploitable out-of-bounds read in X509_cmp_time 9931 9932 X509_cmp_time does not properly check the length of the ASN1_TIME 9933 string and can read a few bytes out of bounds. In addition, 9934 X509_cmp_time accepts an arbitrary number of fractional seconds in the 9935 time string. 9936 9937 An attacker can use this to craft malformed certificates and CRLs of 9938 various sizes and potentially cause a segmentation fault, resulting in 9939 a DoS on applications that verify certificates or CRLs. TLS clients 9940 that verify CRLs are affected. TLS clients and servers with client 9941 authentication enabled may be affected if they use custom verification 9942 callbacks. 9943 9944 This issue was reported to OpenSSL by Robert Swiecki (Google), and 9945 independently by Hanno Böck. 9946 ([CVE-2015-1789]) 9947 9948 *Emilia Käsper* 9949 9950 * PKCS7 crash with missing EnvelopedContent 9951 9952 The PKCS#7 parsing code does not handle missing inner EncryptedContent 9953 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs 9954 with missing content and trigger a NULL pointer dereference on parsing. 9955 9956 Applications that decrypt PKCS#7 data or otherwise parse PKCS#7 9957 structures from untrusted sources are affected. OpenSSL clients and 9958 servers are not affected. 9959 9960 This issue was reported to OpenSSL by Michal Zalewski (Google). 9961 ([CVE-2015-1790]) 9962 9963 *Emilia Käsper* 9964 9965 * CMS verify infinite loop with unknown hash function 9966 9967 When verifying a signedData message the CMS code can enter an infinite loop 9968 if presented with an unknown hash function OID. This can be used to perform 9969 denial of service against any system which verifies signedData messages using 9970 the CMS code. 9971 This issue was reported to OpenSSL by Johannes Bauer. 9972 ([CVE-2015-1792]) 9973 9974 *Stephen Henson* 9975 9976 * Race condition handling NewSessionTicket 9977 9978 If a NewSessionTicket is received by a multi-threaded client when attempting to 9979 reuse a previous ticket then a race condition can occur potentially leading to 9980 a double free of the ticket data. 9981 ([CVE-2015-1791]) 9982 9983 *Matt Caswell* 9984 9985### Changes between 1.0.0q and 1.0.0r [19 Mar 2015] 9986 9987 * Segmentation fault in ASN1_TYPE_cmp fix 9988 9989 The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is 9990 made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check 9991 certificate signature algorithm consistency this can be used to crash any 9992 certificate verification operation and exploited in a DoS attack. Any 9993 application which performs certificate verification is vulnerable including 9994 OpenSSL clients and servers which enable client authentication. 9995 ([CVE-2015-0286]) 9996 9997 *Stephen Henson* 9998 9999 * ASN.1 structure reuse memory corruption fix 10000 10001 Reusing a structure in ASN.1 parsing may allow an attacker to cause 10002 memory corruption via an invalid write. Such reuse is and has been 10003 strongly discouraged and is believed to be rare. 10004 10005 Applications that parse structures containing CHOICE or ANY DEFINED BY 10006 components may be affected. Certificate parsing (d2i_X509 and related 10007 functions) are however not affected. OpenSSL clients and servers are 10008 not affected. 10009 ([CVE-2015-0287]) 10010 10011 *Stephen Henson* 10012 10013 * PKCS7 NULL pointer dereferences fix 10014 10015 The PKCS#7 parsing code does not handle missing outer ContentInfo 10016 correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with 10017 missing content and trigger a NULL pointer dereference on parsing. 10018 10019 Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or 10020 otherwise parse PKCS#7 structures from untrusted sources are 10021 affected. OpenSSL clients and servers are not affected. 10022 10023 This issue was reported to OpenSSL by Michal Zalewski (Google). 10024 ([CVE-2015-0289]) 10025 10026 *Emilia Käsper* 10027 10028 * DoS via reachable assert in SSLv2 servers fix 10029 10030 A malicious client can trigger an OPENSSL_assert (i.e., an abort) in 10031 servers that both support SSLv2 and enable export cipher suites by sending 10032 a specially crafted SSLv2 CLIENT-MASTER-KEY message. 10033 10034 This issue was discovered by Sean Burford (Google) and Emilia Käsper 10035 (OpenSSL development team). 10036 ([CVE-2015-0293]) 10037 10038 *Emilia Käsper* 10039 10040 * Use After Free following d2i_ECPrivatekey error fix 10041 10042 A malformed EC private key file consumed via the d2i_ECPrivateKey function 10043 could cause a use after free condition. This, in turn, could cause a double 10044 free in several private key parsing functions (such as d2i_PrivateKey 10045 or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption 10046 for applications that receive EC private keys from untrusted 10047 sources. This scenario is considered rare. 10048 10049 This issue was discovered by the BoringSSL project and fixed in their 10050 commit 517073cd4b. 10051 ([CVE-2015-0209]) 10052 10053 *Matt Caswell* 10054 10055 * X509_to_X509_REQ NULL pointer deref fix 10056 10057 The function X509_to_X509_REQ will crash with a NULL pointer dereference if 10058 the certificate key is invalid. This function is rarely used in practice. 10059 10060 This issue was discovered by Brian Carpenter. 10061 ([CVE-2015-0288]) 10062 10063 *Stephen Henson* 10064 10065 * Removed the export ciphers from the DEFAULT ciphers 10066 10067 *Kurt Roeckx* 10068 10069### Changes between 1.0.0p and 1.0.0q [15 Jan 2015] 10070 10071 * Build fixes for the Windows and OpenVMS platforms 10072 10073 *Matt Caswell and Richard Levitte* 10074 10075### Changes between 1.0.0o and 1.0.0p [8 Jan 2015] 10076 10077 * Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS 10078 message can cause a segmentation fault in OpenSSL due to a NULL pointer 10079 dereference. This could lead to a Denial Of Service attack. Thanks to 10080 Markus Stenberg of Cisco Systems, Inc. for reporting this issue. 10081 ([CVE-2014-3571]) 10082 10083 *Steve Henson* 10084 10085 * Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the 10086 dtls1_buffer_record function under certain conditions. In particular this 10087 could occur if an attacker sent repeated DTLS records with the same 10088 sequence number but for the next epoch. The memory leak could be exploited 10089 by an attacker in a Denial of Service attack through memory exhaustion. 10090 Thanks to Chris Mueller for reporting this issue. 10091 ([CVE-2015-0206]) 10092 10093 *Matt Caswell* 10094 10095 * Fix issue where no-ssl3 configuration sets method to NULL. When openssl is 10096 built with the no-ssl3 option and an SSL v3 ClientHello is received the ssl 10097 method would be set to NULL which could later result in a NULL pointer 10098 dereference. Thanks to Frank Schmirler for reporting this issue. 10099 ([CVE-2014-3569]) 10100 10101 *Kurt Roeckx* 10102 10103 * Abort handshake if server key exchange message is omitted for ephemeral 10104 ECDH ciphersuites. 10105 10106 Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for 10107 reporting this issue. 10108 ([CVE-2014-3572]) 10109 10110 *Steve Henson* 10111 10112 * Remove non-export ephemeral RSA code on client and server. This code 10113 violated the TLS standard by allowing the use of temporary RSA keys in 10114 non-export ciphersuites and could be used by a server to effectively 10115 downgrade the RSA key length used to a value smaller than the server 10116 certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at 10117 INRIA or reporting this issue. 10118 ([CVE-2015-0204]) 10119 10120 *Steve Henson* 10121 10122 * Fixed issue where DH client certificates are accepted without verification. 10123 An OpenSSL server will accept a DH certificate for client authentication 10124 without the certificate verify message. This effectively allows a client to 10125 authenticate without the use of a private key. This only affects servers 10126 which trust a client certificate authority which issues certificates 10127 containing DH keys: these are extremely rare and hardly ever encountered. 10128 Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting 10129 this issue. 10130 ([CVE-2015-0205]) 10131 10132 *Steve Henson* 10133 10134 * Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect 10135 results on some platforms, including x86_64. This bug occurs at random 10136 with a very low probability, and is not known to be exploitable in any 10137 way, though its exact impact is difficult to determine. Thanks to Pieter 10138 Wuille (Blockstream) who reported this issue and also suggested an initial 10139 fix. Further analysis was conducted by the OpenSSL development team and 10140 Adam Langley of Google. The final fix was developed by Andy Polyakov of 10141 the OpenSSL core team. 10142 ([CVE-2014-3570]) 10143 10144 *Andy Polyakov* 10145 10146 * Fix various certificate fingerprint issues. 10147 10148 By using non-DER or invalid encodings outside the signed portion of a 10149 certificate the fingerprint can be changed without breaking the signature. 10150 Although no details of the signed portion of the certificate can be changed 10151 this can cause problems with some applications: e.g. those using the 10152 certificate fingerprint for blacklists. 10153 10154 1. Reject signatures with non zero unused bits. 10155 10156 If the BIT STRING containing the signature has non zero unused bits reject 10157 the signature. All current signature algorithms require zero unused bits. 10158 10159 2. Check certificate algorithm consistency. 10160 10161 Check the AlgorithmIdentifier inside TBS matches the one in the 10162 certificate signature. NB: this will result in signature failure 10163 errors for some broken certificates. 10164 10165 Thanks to Konrad Kraszewski from Google for reporting this issue. 10166 10167 3. Check DSA/ECDSA signatures use DER. 10168 10169 Re-encode DSA/ECDSA signatures and compare with the original received 10170 signature. Return an error if there is a mismatch. 10171 10172 This will reject various cases including garbage after signature 10173 (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS 10174 program for discovering this case) and use of BER or invalid ASN.1 INTEGERs 10175 (negative or with leading zeroes). 10176 10177 Further analysis was conducted and fixes were developed by Stephen Henson 10178 of the OpenSSL core team. 10179 10180 ([CVE-2014-8275]) 10181 10182 *Steve Henson* 10183 10184### Changes between 1.0.0n and 1.0.0o [15 Oct 2014] 10185 10186 * Session Ticket Memory Leak. 10187 10188 When an OpenSSL SSL/TLS/DTLS server receives a session ticket the 10189 integrity of that ticket is first verified. In the event of a session 10190 ticket integrity check failing, OpenSSL will fail to free memory 10191 causing a memory leak. By sending a large number of invalid session 10192 tickets an attacker could exploit this issue in a Denial Of Service 10193 attack. 10194 ([CVE-2014-3567]) 10195 10196 *Steve Henson* 10197 10198 * Build option no-ssl3 is incomplete. 10199 10200 When OpenSSL is configured with "no-ssl3" as a build option, servers 10201 could accept and complete an SSL 3.0 handshake, and clients could be 10202 configured to send them. 10203 ([CVE-2014-3568]) 10204 10205 *Akamai and the OpenSSL team* 10206 10207 * Add support for TLS_FALLBACK_SCSV. 10208 Client applications doing fallback retries should call 10209 SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV). 10210 ([CVE-2014-3566]) 10211 10212 *Adam Langley, Bodo Moeller* 10213 10214 * Add additional DigestInfo checks. 10215 10216 Re-encode DigestInto in DER and check against the original when 10217 verifying RSA signature: this will reject any improperly encoded 10218 DigestInfo structures. 10219 10220 Note: this is a precautionary measure and no attacks are currently known. 10221 10222 *Steve Henson* 10223 10224### Changes between 1.0.0m and 1.0.0n [6 Aug 2014] 10225 10226 * OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject 10227 to a denial of service attack. A malicious server can crash the client 10228 with a null pointer dereference (read) by specifying an anonymous (EC)DH 10229 ciphersuite and sending carefully crafted handshake messages. 10230 10231 Thanks to Felix Gröbert (Google) for discovering and researching this 10232 issue. 10233 ([CVE-2014-3510]) 10234 10235 *Emilia Käsper* 10236 10237 * By sending carefully crafted DTLS packets an attacker could cause openssl 10238 to leak memory. This can be exploited through a Denial of Service attack. 10239 Thanks to Adam Langley for discovering and researching this issue. 10240 ([CVE-2014-3507]) 10241 10242 *Adam Langley* 10243 10244 * An attacker can force openssl to consume large amounts of memory whilst 10245 processing DTLS handshake messages. This can be exploited through a 10246 Denial of Service attack. 10247 Thanks to Adam Langley for discovering and researching this issue. 10248 ([CVE-2014-3506]) 10249 10250 *Adam Langley* 10251 10252 * An attacker can force an error condition which causes openssl to crash 10253 whilst processing DTLS packets due to memory being freed twice. This 10254 can be exploited through a Denial of Service attack. 10255 Thanks to Adam Langley and Wan-Teh Chang for discovering and researching 10256 this issue. 10257 ([CVE-2014-3505]) 10258 10259 *Adam Langley* 10260 10261 * If a multithreaded client connects to a malicious server using a resumed 10262 session and the server sends an ec point format extension it could write 10263 up to 255 bytes to freed memory. 10264 10265 Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this 10266 issue. 10267 ([CVE-2014-3509]) 10268 10269 *Gabor Tyukasz* 10270 10271 * A flaw in OBJ_obj2txt may cause pretty printing functions such as 10272 X509_name_oneline, X509_name_print_ex et al. to leak some information 10273 from the stack. Applications may be affected if they echo pretty printing 10274 output to the attacker. 10275 10276 Thanks to Ivan Fratric (Google) for discovering this issue. 10277 ([CVE-2014-3508]) 10278 10279 *Emilia Käsper, and Steve Henson* 10280 10281 * Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.) 10282 for corner cases. (Certain input points at infinity could lead to 10283 bogus results, with non-infinity inputs mapped to infinity too.) 10284 10285 *Bodo Moeller* 10286 10287### Changes between 1.0.0l and 1.0.0m [5 Jun 2014] 10288 10289 * Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted 10290 handshake can force the use of weak keying material in OpenSSL 10291 SSL/TLS clients and servers. 10292 10293 Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and 10294 researching this issue. ([CVE-2014-0224]) 10295 10296 *KIKUCHI Masashi, Steve Henson* 10297 10298 * Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an 10299 OpenSSL DTLS client the code can be made to recurse eventually crashing 10300 in a DoS attack. 10301 10302 Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue. 10303 ([CVE-2014-0221]) 10304 10305 *Imre Rad, Steve Henson* 10306 10307 * Fix DTLS invalid fragment vulnerability. A buffer overrun attack can 10308 be triggered by sending invalid DTLS fragments to an OpenSSL DTLS 10309 client or server. This is potentially exploitable to run arbitrary 10310 code on a vulnerable client or server. 10311 10312 Thanks to Jüri Aedla for reporting this issue. ([CVE-2014-0195]) 10313 10314 *Jüri Aedla, Steve Henson* 10315 10316 * Fix bug in TLS code where clients enable anonymous ECDH ciphersuites 10317 are subject to a denial of service attack. 10318 10319 Thanks to Felix Gröbert and Ivan Fratric at Google for discovering 10320 this issue. ([CVE-2014-3470]) 10321 10322 *Felix Gröbert, Ivan Fratric, Steve Henson* 10323 10324 * Harmonize version and its documentation. -f flag is used to display 10325 compilation flags. 10326 10327 *mancha <mancha1@zoho.com>* 10328 10329 * Fix eckey_priv_encode so it immediately returns an error upon a failure 10330 in i2d_ECPrivateKey. 10331 10332 *mancha <mancha1@zoho.com>* 10333 10334 * Fix some double frees. These are not thought to be exploitable. 10335 10336 *mancha <mancha1@zoho.com>* 10337 10338 * Fix for the attack described in the paper "Recovering OpenSSL 10339 ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack" 10340 by Yuval Yarom and Naomi Benger. Details can be obtained from: 10341 <http://eprint.iacr.org/2014/140> 10342 10343 Thanks to Yuval Yarom and Naomi Benger for discovering this 10344 flaw and to Yuval Yarom for supplying a fix ([CVE-2014-0076]) 10345 10346 *Yuval Yarom and Naomi Benger* 10347 10348### Changes between 1.0.0k and 1.0.0l [6 Jan 2014] 10349 10350 * Keep original DTLS digest and encryption contexts in retransmission 10351 structures so we can use the previous session parameters if they need 10352 to be resent. ([CVE-2013-6450]) 10353 10354 *Steve Henson* 10355 10356 * Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which 10357 avoids preferring ECDHE-ECDSA ciphers when the client appears to be 10358 Safari on OS X. Safari on OS X 10.8..10.8.3 advertises support for 10359 several ECDHE-ECDSA ciphers, but fails to negotiate them. The bug 10360 is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing 10361 10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer. 10362 10363 *Rob Stradling, Adam Langley* 10364 10365### Changes between 1.0.0j and 1.0.0k [5 Feb 2013] 10366 10367 * Make the decoding of SSLv3, TLS and DTLS CBC records constant time. 10368 10369 This addresses the flaw in CBC record processing discovered by 10370 Nadhem Alfardan and Kenny Paterson. Details of this attack can be found 10371 at: <http://www.isg.rhul.ac.uk/tls/> 10372 10373 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information 10374 Security Group at Royal Holloway, University of London 10375 (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and 10376 Emilia Käsper for the initial patch. 10377 ([CVE-2013-0169]) 10378 10379 *Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson* 10380 10381 * Return an error when checking OCSP signatures when key is NULL. 10382 This fixes a DoS attack. ([CVE-2013-0166]) 10383 10384 *Steve Henson* 10385 10386 * Call OCSP Stapling callback after ciphersuite has been chosen, so 10387 the right response is stapled. Also change SSL_get_certificate() 10388 so it returns the certificate actually sent. 10389 See <http://rt.openssl.org/Ticket/Display.html?id=2836>. 10390 (This is a backport) 10391 10392 *Rob Stradling <rob.stradling@comodo.com>* 10393 10394 * Fix possible deadlock when decoding public keys. 10395 10396 *Steve Henson* 10397 10398### Changes between 1.0.0i and 1.0.0j [10 May 2012] 10399 10400[NB: OpenSSL 1.0.0i and later 1.0.0 patch levels were released after 10401OpenSSL 1.0.1.] 10402 10403 * Sanity check record length before skipping explicit IV in DTLS 10404 to fix DoS attack. 10405 10406 Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic 10407 fuzzing as a service testing platform. 10408 ([CVE-2012-2333]) 10409 10410 *Steve Henson* 10411 10412 * Initialise tkeylen properly when encrypting CMS messages. 10413 Thanks to Solar Designer of Openwall for reporting this issue. 10414 10415 *Steve Henson* 10416 10417### Changes between 1.0.0h and 1.0.0i [19 Apr 2012] 10418 10419 * Check for potentially exploitable overflows in asn1_d2i_read_bio 10420 BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer 10421 in CRYPTO_realloc_clean. 10422 10423 Thanks to Tavis Ormandy, Google Security Team, for discovering this 10424 issue and to Adam Langley <agl@chromium.org> for fixing it. 10425 ([CVE-2012-2110]) 10426 10427 *Adam Langley (Google), Tavis Ormandy, Google Security Team* 10428 10429### Changes between 1.0.0g and 1.0.0h [12 Mar 2012] 10430 10431 * Fix MMA (Bleichenbacher's attack on PKCS #1 v1.5 RSA padding) weakness 10432 in CMS and PKCS7 code. When RSA decryption fails use a random key for 10433 content decryption and always return the same error. Note: this attack 10434 needs on average 2^20 messages so it only affects automated senders. The 10435 old behaviour can be re-enabled in the CMS code by setting the 10436 CMS_DEBUG_DECRYPT flag: this is useful for debugging and testing where 10437 an MMA defence is not necessary. 10438 Thanks to Ivan Nestlerode <inestlerode@us.ibm.com> for discovering 10439 this issue. ([CVE-2012-0884]) 10440 10441 *Steve Henson* 10442 10443 * Fix CVE-2011-4619: make sure we really are receiving a 10444 client hello before rejecting multiple SGC restarts. Thanks to 10445 Ivan Nestlerode <inestlerode@us.ibm.com> for discovering this bug. 10446 10447 *Steve Henson* 10448 10449### Changes between 1.0.0f and 1.0.0g [18 Jan 2012] 10450 10451 * Fix for DTLS DoS issue introduced by fix for CVE-2011-4109. 10452 Thanks to Antonio Martin, Enterprise Secure Access Research and 10453 Development, Cisco Systems, Inc. for discovering this bug and 10454 preparing a fix. ([CVE-2012-0050]) 10455 10456 *Antonio Martin* 10457 10458### Changes between 1.0.0e and 1.0.0f [4 Jan 2012] 10459 10460 * Nadhem Alfardan and Kenny Paterson have discovered an extension 10461 of the Vaudenay padding oracle attack on CBC mode encryption 10462 which enables an efficient plaintext recovery attack against 10463 the OpenSSL implementation of DTLS. Their attack exploits timing 10464 differences arising during decryption processing. A research 10465 paper describing this attack can be found at: 10466 <http://www.isg.rhul.ac.uk/~kp/dtls.pdf> 10467 Thanks go to Nadhem Alfardan and Kenny Paterson of the Information 10468 Security Group at Royal Holloway, University of London 10469 (www.isg.rhul.ac.uk) for discovering this flaw and to Robin Seggelmann 10470 <seggelmann@fh-muenster.de> and Michael Tuexen <tuexen@fh-muenster.de> 10471 for preparing the fix. ([CVE-2011-4108]) 10472 10473 *Robin Seggelmann, Michael Tuexen* 10474 10475 * Clear bytes used for block padding of SSL 3.0 records. 10476 ([CVE-2011-4576]) 10477 10478 *Adam Langley (Google)* 10479 10480 * Only allow one SGC handshake restart for SSL/TLS. Thanks to George 10481 Kadianakis <desnacked@gmail.com> for discovering this issue and 10482 Adam Langley for preparing the fix. ([CVE-2011-4619]) 10483 10484 *Adam Langley (Google)* 10485 10486 * Check parameters are not NULL in GOST ENGINE. ([CVE-2012-0027]) 10487 10488 *Andrey Kulikov <amdeich@gmail.com>* 10489 10490 * Prevent malformed RFC3779 data triggering an assertion failure. 10491 Thanks to Andrew Chi, BBN Technologies, for discovering the flaw 10492 and Rob Austein <sra@hactrn.net> for fixing it. ([CVE-2011-4577]) 10493 10494 *Rob Austein <sra@hactrn.net>* 10495 10496 * Improved PRNG seeding for VOS. 10497 10498 *Paul Green <Paul.Green@stratus.com>* 10499 10500 * Fix ssl_ciph.c set-up race. 10501 10502 *Adam Langley (Google)* 10503 10504 * Fix spurious failures in ecdsatest.c. 10505 10506 *Emilia Käsper (Google)* 10507 10508 * Fix the BIO_f_buffer() implementation (which was mixing different 10509 interpretations of the `..._len` fields). 10510 10511 *Adam Langley (Google)* 10512 10513 * Fix handling of BN_BLINDING: now BN_BLINDING_invert_ex (rather than 10514 BN_BLINDING_invert_ex) calls BN_BLINDING_update, ensuring that concurrent 10515 threads won't reuse the same blinding coefficients. 10516 10517 This also avoids the need to obtain the CRYPTO_LOCK_RSA_BLINDING 10518 lock to call BN_BLINDING_invert_ex, and avoids one use of 10519 BN_BLINDING_update for each BN_BLINDING structure (previously, 10520 the last update always remained unused). 10521 10522 *Emilia Käsper (Google)* 10523 10524 * In ssl3_clear, preserve s3->init_extra along with s3->rbuf. 10525 10526 *Bob Buckholz (Google)* 10527 10528### Changes between 1.0.0d and 1.0.0e [6 Sep 2011] 10529 10530 * Fix bug where CRLs with nextUpdate in the past are sometimes accepted 10531 by initialising X509_STORE_CTX properly. ([CVE-2011-3207]) 10532 10533 *Kaspar Brand <ossl@velox.ch>* 10534 10535 * Fix SSL memory handling for (EC)DH ciphersuites, in particular 10536 for multi-threaded use of ECDH. ([CVE-2011-3210]) 10537 10538 *Adam Langley (Google)* 10539 10540 * Fix x509_name_ex_d2i memory leak on bad inputs. 10541 10542 *Bodo Moeller* 10543 10544 * Remove hard coded ecdsaWithSHA1 signature tests in ssl code and check 10545 signature public key algorithm by using OID xref utilities instead. 10546 Before this you could only use some ECC ciphersuites with SHA1 only. 10547 10548 *Steve Henson* 10549 10550 * Add protection against ECDSA timing attacks as mentioned in the paper 10551 by Billy Bob Brumley and Nicola Tuveri, see: 10552 <http://eprint.iacr.org/2011/232.pdf> 10553 10554 *Billy Bob Brumley and Nicola Tuveri* 10555 10556### Changes between 1.0.0c and 1.0.0d [8 Feb 2011] 10557 10558 * Fix parsing of OCSP stapling ClientHello extension. CVE-2011-0014 10559 10560 *Neel Mehta, Adam Langley, Bodo Moeller (Google)* 10561 10562 * Fix bug in string printing code: if *any* escaping is enabled we must 10563 escape the escape character (backslash) or the resulting string is 10564 ambiguous. 10565 10566 *Steve Henson* 10567 10568### Changes between 1.0.0b and 1.0.0c [2 Dec 2010] 10569 10570 * Disable code workaround for ancient and obsolete Netscape browsers 10571 and servers: an attacker can use it in a ciphersuite downgrade attack. 10572 Thanks to Martin Rex for discovering this bug. CVE-2010-4180 10573 10574 *Steve Henson* 10575 10576 * Fixed J-PAKE implementation error, originally discovered by 10577 Sebastien Martini, further info and confirmation from Stefan 10578 Arentz and Feng Hao. Note that this fix is a security fix. CVE-2010-4252 10579 10580 *Ben Laurie* 10581 10582### Changes between 1.0.0a and 1.0.0b [16 Nov 2010] 10583 10584 * Fix extension code to avoid race conditions which can result in a buffer 10585 overrun vulnerability: resumed sessions must not be modified as they can 10586 be shared by multiple threads. CVE-2010-3864 10587 10588 *Steve Henson* 10589 10590 * Fix WIN32 build system to correctly link an ENGINE directory into 10591 a DLL. 10592 10593 *Steve Henson* 10594 10595### Changes between 1.0.0 and 1.0.0a [01 Jun 2010] 10596 10597 * Check return value of int_rsa_verify in pkey_rsa_verifyrecover 10598 ([CVE-2010-1633]) 10599 10600 *Steve Henson, Peter-Michael Hager <hager@dortmund.net>* 10601 10602### Changes between 0.9.8n and 1.0.0 [29 Mar 2010] 10603 10604 * Add "missing" function EVP_CIPHER_CTX_copy(). This copies a cipher 10605 context. The operation can be customised via the ctrl mechanism in 10606 case ENGINEs want to include additional functionality. 10607 10608 *Steve Henson* 10609 10610 * Tolerate yet another broken PKCS#8 key format: private key value negative. 10611 10612 *Steve Henson* 10613 10614 * Add new -subject_hash_old and -issuer_hash_old options to x509 utility to 10615 output hashes compatible with older versions of OpenSSL. 10616 10617 *Willy Weisz <weisz@vcpc.univie.ac.at>* 10618 10619 * Fix compression algorithm handling: if resuming a session use the 10620 compression algorithm of the resumed session instead of determining 10621 it from client hello again. Don't allow server to change algorithm. 10622 10623 *Steve Henson* 10624 10625 * Add load_crls() function to commands tidying load_certs() too. Add option 10626 to verify utility to allow additional CRLs to be included. 10627 10628 *Steve Henson* 10629 10630 * Update OCSP request code to permit adding custom headers to the request: 10631 some responders need this. 10632 10633 *Steve Henson* 10634 10635 * The function EVP_PKEY_sign() returns <=0 on error: check return code 10636 correctly. 10637 10638 *Julia Lawall <julia@diku.dk>* 10639 10640 * Update verify callback code in `apps/s_cb.c` and `apps/verify.c`, it 10641 needlessly dereferenced structures, used obsolete functions and 10642 didn't handle all updated verify codes correctly. 10643 10644 *Steve Henson* 10645 10646 * Disable MD2 in the default configuration. 10647 10648 *Steve Henson* 10649 10650 * In BIO_pop() and BIO_push() use the ctrl argument (which was NULL) to 10651 indicate the initial BIO being pushed or popped. This makes it possible 10652 to determine whether the BIO is the one explicitly called or as a result 10653 of the ctrl being passed down the chain. Fix BIO_pop() and SSL BIOs so 10654 it handles reference counts correctly and doesn't zero out the I/O bio 10655 when it is not being explicitly popped. WARNING: applications which 10656 included workarounds for the old buggy behaviour will need to be modified 10657 or they could free up already freed BIOs. 10658 10659 *Steve Henson* 10660 10661 * Extend the uni2asc/asc2uni => OPENSSL_uni2asc/OPENSSL_asc2uni 10662 renaming to all platforms (within the 0.9.8 branch, this was 10663 done conditionally on Netware platforms to avoid a name clash). 10664 10665 *Guenter <lists@gknw.net>* 10666 10667 * Add ECDHE and PSK support to DTLS. 10668 10669 *Michael Tuexen <tuexen@fh-muenster.de>* 10670 10671 * Add CHECKED_STACK_OF macro to safestack.h, otherwise safestack can't 10672 be used on C++. 10673 10674 *Steve Henson* 10675 10676 * Add "missing" function EVP_MD_flags() (without this the only way to 10677 retrieve a digest flags is by accessing the structure directly. Update 10678 `EVP_MD_do_all*()` and `EVP_CIPHER_do_all*()` to include the name a digest 10679 or cipher is registered as in the "from" argument. Print out all 10680 registered digests in the dgst usage message instead of manually 10681 attempting to work them out. 10682 10683 *Steve Henson* 10684 10685 * If no SSLv2 ciphers are used don't use an SSLv2 compatible client hello: 10686 this allows the use of compression and extensions. Change default cipher 10687 string to remove SSLv2 ciphersuites. This effectively avoids ancient SSLv2 10688 by default unless an application cipher string requests it. 10689 10690 *Steve Henson* 10691 10692 * Alter match criteria in PKCS12_parse(). It used to try to use local 10693 key ids to find matching certificates and keys but some PKCS#12 files 10694 don't follow the (somewhat unwritten) rules and this strategy fails. 10695 Now just gather all certificates together and the first private key 10696 then look for the first certificate that matches the key. 10697 10698 *Steve Henson* 10699 10700 * Support use of registered digest and cipher names for dgst and cipher 10701 commands instead of having to add each one as a special case. So now 10702 you can do: 10703 10704 openssl sha256 foo 10705 10706 as well as: 10707 10708 openssl dgst -sha256 foo 10709 10710 and this works for ENGINE based algorithms too. 10711 10712 *Steve Henson* 10713 10714 * Update Gost ENGINE to support parameter files. 10715 10716 *Victor B. Wagner <vitus@cryptocom.ru>* 10717 10718 * Support GeneralizedTime in ca utility. 10719 10720 *Oliver Martin <oliver@volatilevoid.net>, Steve Henson* 10721 10722 * Enhance the hash format used for certificate directory links. The new 10723 form uses the canonical encoding (meaning equivalent names will work 10724 even if they aren't identical) and uses SHA1 instead of MD5. This form 10725 is incompatible with the older format and as a result c_rehash should 10726 be used to rebuild symbolic links. 10727 10728 *Steve Henson* 10729 10730 * Make PKCS#8 the default write format for private keys, replacing the 10731 traditional format. This form is standardised, more secure and doesn't 10732 include an implicit MD5 dependency. 10733 10734 *Steve Henson* 10735 10736 * Add a $gcc_devteam_warn option to Configure. The idea is that any code 10737 committed to OpenSSL should pass this lot as a minimum. 10738 10739 *Steve Henson* 10740 10741 * Add session ticket override functionality for use by EAP-FAST. 10742 10743 *Jouni Malinen <j@w1.fi>* 10744 10745 * Modify HMAC functions to return a value. Since these can be implemented 10746 in an ENGINE errors can occur. 10747 10748 *Steve Henson* 10749 10750 * Type-checked OBJ_bsearch_ex. 10751 10752 *Ben Laurie* 10753 10754 * Type-checked OBJ_bsearch. Also some constification necessitated 10755 by type-checking. Still to come: TXT_DB, bsearch(?), 10756 OBJ_bsearch_ex, qsort, CRYPTO_EX_DATA, ASN1_VALUE, ASN1_STRING, 10757 CONF_VALUE. 10758 10759 *Ben Laurie* 10760 10761 * New function OPENSSL_gmtime_adj() to add a specific number of days and 10762 seconds to a tm structure directly, instead of going through OS 10763 specific date routines. This avoids any issues with OS routines such 10764 as the year 2038 bug. New `*_adj()` functions for ASN1 time structures 10765 and X509_time_adj_ex() to cover the extended range. The existing 10766 X509_time_adj() is still usable and will no longer have any date issues. 10767 10768 *Steve Henson* 10769 10770 * Delta CRL support. New use deltas option which will attempt to locate 10771 and search any appropriate delta CRLs available. 10772 10773 This work was sponsored by Google. 10774 10775 *Steve Henson* 10776 10777 * Support for CRLs partitioned by reason code. Reorganise CRL processing 10778 code and add additional score elements. Validate alternate CRL paths 10779 as part of the CRL checking and indicate a new error "CRL path validation 10780 error" in this case. Applications wanting additional details can use 10781 the verify callback and check the new "parent" field. If this is not 10782 NULL CRL path validation is taking place. Existing applications won't 10783 see this because it requires extended CRL support which is off by 10784 default. 10785 10786 This work was sponsored by Google. 10787 10788 *Steve Henson* 10789 10790 * Support for freshest CRL extension. 10791 10792 This work was sponsored by Google. 10793 10794 *Steve Henson* 10795 10796 * Initial indirect CRL support. Currently only supported in the CRLs 10797 passed directly and not via lookup. Process certificate issuer 10798 CRL entry extension and lookup CRL entries by bother issuer name 10799 and serial number. Check and process CRL issuer entry in IDP extension. 10800 10801 This work was sponsored by Google. 10802 10803 *Steve Henson* 10804 10805 * Add support for distinct certificate and CRL paths. The CRL issuer 10806 certificate is validated separately in this case. Only enabled if 10807 an extended CRL support flag is set: this flag will enable additional 10808 CRL functionality in future. 10809 10810 This work was sponsored by Google. 10811 10812 *Steve Henson* 10813 10814 * Add support for policy mappings extension. 10815 10816 This work was sponsored by Google. 10817 10818 *Steve Henson* 10819 10820 * Fixes to pathlength constraint, self issued certificate handling, 10821 policy processing to align with RFC3280 and PKITS tests. 10822 10823 This work was sponsored by Google. 10824 10825 *Steve Henson* 10826 10827 * Support for name constraints certificate extension. DN, email, DNS 10828 and URI types are currently supported. 10829 10830 This work was sponsored by Google. 10831 10832 *Steve Henson* 10833 10834 * To cater for systems that provide a pointer-based thread ID rather 10835 than numeric, deprecate the current numeric thread ID mechanism and 10836 replace it with a structure and associated callback type. This 10837 mechanism allows a numeric "hash" to be extracted from a thread ID in 10838 either case, and on platforms where pointers are larger than 'long', 10839 mixing is done to help ensure the numeric 'hash' is usable even if it 10840 can't be guaranteed unique. The default mechanism is to use "&errno" 10841 as a pointer-based thread ID to distinguish between threads. 10842 10843 Applications that want to provide their own thread IDs should now use 10844 CRYPTO_THREADID_set_callback() to register a callback that will call 10845 either CRYPTO_THREADID_set_numeric() or CRYPTO_THREADID_set_pointer(). 10846 10847 Note that ERR_remove_state() is now deprecated, because it is tied 10848 to the assumption that thread IDs are numeric. ERR_remove_state(0) 10849 to free the current thread's error state should be replaced by 10850 ERR_remove_thread_state(NULL). 10851 10852 (This new approach replaces the functions CRYPTO_set_idptr_callback(), 10853 CRYPTO_get_idptr_callback(), and CRYPTO_thread_idptr() that existed in 10854 OpenSSL 0.9.9-dev between June 2006 and August 2008. Also, if an 10855 application was previously providing a numeric thread callback that 10856 was inappropriate for distinguishing threads, then uniqueness might 10857 have been obtained with &errno that happened immediately in the 10858 intermediate development versions of OpenSSL; this is no longer the 10859 case, the numeric thread callback will now override the automatic use 10860 of &errno.) 10861 10862 *Geoff Thorpe, with help from Bodo Moeller* 10863 10864 * Initial support for different CRL issuing certificates. This covers a 10865 simple case where the self issued certificates in the chain exist and 10866 the real CRL issuer is higher in the existing chain. 10867 10868 This work was sponsored by Google. 10869 10870 *Steve Henson* 10871 10872 * Removed effectively defunct crypto/store from the build. 10873 10874 *Ben Laurie* 10875 10876 * Revamp of STACK to provide stronger type-checking. Still to come: 10877 TXT_DB, bsearch(?), OBJ_bsearch, qsort, CRYPTO_EX_DATA, ASN1_VALUE, 10878 ASN1_STRING, CONF_VALUE. 10879 10880 *Ben Laurie* 10881 10882 * Add a new SSL_MODE_RELEASE_BUFFERS mode flag to release unused buffer 10883 RAM on SSL connections. This option can save about 34k per idle SSL. 10884 10885 *Nick Mathewson* 10886 10887 * Revamp of LHASH to provide stronger type-checking. Still to come: 10888 STACK, TXT_DB, bsearch, qsort. 10889 10890 *Ben Laurie* 10891 10892 * Initial support for Cryptographic Message Syntax (aka CMS) based 10893 on RFC3850, RFC3851 and RFC3852. New cms directory and cms utility, 10894 support for data, signedData, compressedData, digestedData and 10895 encryptedData, envelopedData types included. Scripts to check against 10896 RFC4134 examples draft and interop and consistency checks of many 10897 content types and variants. 10898 10899 *Steve Henson* 10900 10901 * Add options to enc utility to support use of zlib compression BIO. 10902 10903 *Steve Henson* 10904 10905 * Extend mk1mf to support importing of options and assembly language 10906 files from Configure script, currently only included in VC-WIN32. 10907 The assembly language rules can now optionally generate the source 10908 files from the associated perl scripts. 10909 10910 *Steve Henson* 10911 10912 * Implement remaining functionality needed to support GOST ciphersuites. 10913 Interop testing has been performed using CryptoPro implementations. 10914 10915 *Victor B. Wagner <vitus@cryptocom.ru>* 10916 10917 * s390x assembler pack. 10918 10919 *Andy Polyakov* 10920 10921 * ARMv4 assembler pack. ARMv4 refers to v4 and later ISA, not CPU 10922 "family." 10923 10924 *Andy Polyakov* 10925 10926 * Implement Opaque PRF Input TLS extension as specified in 10927 draft-rescorla-tls-opaque-prf-input-00.txt. Since this is not an 10928 official specification yet and no extension type assignment by 10929 IANA exists, this extension (for now) will have to be explicitly 10930 enabled when building OpenSSL by providing the extension number 10931 to use. For example, specify an option 10932 10933 -DTLSEXT_TYPE_opaque_prf_input=0x9527 10934 10935 to the "config" or "Configure" script to enable the extension, 10936 assuming extension number 0x9527 (which is a completely arbitrary 10937 and unofficial assignment based on the MD5 hash of the Internet 10938 Draft). Note that by doing so, you potentially lose 10939 interoperability with other TLS implementations since these might 10940 be using the same extension number for other purposes. 10941 10942 SSL_set_tlsext_opaque_prf_input(ssl, src, len) is used to set the 10943 opaque PRF input value to use in the handshake. This will create 10944 an internal copy of the length-'len' string at 'src', and will 10945 return non-zero for success. 10946 10947 To get more control and flexibility, provide a callback function 10948 by using 10949 10950 SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx, cb) 10951 SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx, arg) 10952 10953 where 10954 10955 int (*cb)(SSL *, void *peerinput, size_t len, void *arg); 10956 void *arg; 10957 10958 Callback function 'cb' will be called in handshakes, and is 10959 expected to use SSL_set_tlsext_opaque_prf_input() as appropriate. 10960 Argument 'arg' is for application purposes (the value as given to 10961 SSL_CTX_set_tlsext_opaque_prf_input_callback_arg() will directly 10962 be provided to the callback function). The callback function 10963 has to return non-zero to report success: usually 1 to use opaque 10964 PRF input just if possible, or 2 to enforce use of the opaque PRF 10965 input. In the latter case, the library will abort the handshake 10966 if opaque PRF input is not successfully negotiated. 10967 10968 Arguments 'peerinput' and 'len' given to the callback function 10969 will always be NULL and 0 in the case of a client. A server will 10970 see the client's opaque PRF input through these variables if 10971 available (NULL and 0 otherwise). Note that if the server 10972 provides an opaque PRF input, the length must be the same as the 10973 length of the client's opaque PRF input. 10974 10975 Note that the callback function will only be called when creating 10976 a new session (session resumption can resume whatever was 10977 previously negotiated), and will not be called in SSL 2.0 10978 handshakes; thus, SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) or 10979 SSL_set_options(ssl, SSL_OP_NO_SSLv2) is especially recommended 10980 for applications that need to enforce opaque PRF input. 10981 10982 *Bodo Moeller* 10983 10984 * Update ssl code to support digests other than SHA1+MD5 for handshake 10985 MAC. 10986 10987 *Victor B. Wagner <vitus@cryptocom.ru>* 10988 10989 * Add RFC4507 support to OpenSSL. This includes the corrections in 10990 RFC4507bis. The encrypted ticket format is an encrypted encoded 10991 SSL_SESSION structure, that way new session features are automatically 10992 supported. 10993 10994 If a client application caches session in an SSL_SESSION structure 10995 support is transparent because tickets are now stored in the encoded 10996 SSL_SESSION. 10997 10998 The SSL_CTX structure automatically generates keys for ticket 10999 protection in servers so again support should be possible 11000 with no application modification. 11001 11002 If a client or server wishes to disable RFC4507 support then the option 11003 SSL_OP_NO_TICKET can be set. 11004 11005 Add a TLS extension debugging callback to allow the contents of any client 11006 or server extensions to be examined. 11007 11008 This work was sponsored by Google. 11009 11010 *Steve Henson* 11011 11012 * Final changes to avoid use of pointer pointer casts in OpenSSL. 11013 OpenSSL should now compile cleanly on gcc 4.2 11014 11015 *Peter Hartley <pdh@utter.chaos.org.uk>, Steve Henson* 11016 11017 * Update SSL library to use new EVP_PKEY MAC API. Include generic MAC 11018 support including streaming MAC support: this is required for GOST 11019 ciphersuite support. 11020 11021 *Victor B. Wagner <vitus@cryptocom.ru>, Steve Henson* 11022 11023 * Add option -stream to use PKCS#7 streaming in smime utility. New 11024 function i2d_PKCS7_bio_stream() and PEM_write_PKCS7_bio_stream() 11025 to output in BER and PEM format. 11026 11027 *Steve Henson* 11028 11029 * Experimental support for use of HMAC via EVP_PKEY interface. This 11030 allows HMAC to be handled via the `EVP_DigestSign*()` interface. The 11031 EVP_PKEY "key" in this case is the HMAC key, potentially allowing 11032 ENGINE support for HMAC keys which are unextractable. New -mac and 11033 -macopt options to dgst utility. 11034 11035 *Steve Henson* 11036 11037 * New option -sigopt to dgst utility. Update dgst to use 11038 `EVP_Digest{Sign,Verify}*`. These two changes make it possible to use 11039 alternative signing parameters such as X9.31 or PSS in the dgst 11040 utility. 11041 11042 *Steve Henson* 11043 11044 * Change ssl_cipher_apply_rule(), the internal function that does 11045 the work each time a ciphersuite string requests enabling 11046 ("foo+bar"), moving ("+foo+bar"), disabling ("-foo+bar", or 11047 removing ("!foo+bar") a class of ciphersuites: Now it maintains 11048 the order of disabled ciphersuites such that those ciphersuites 11049 that most recently went from enabled to disabled not only stay 11050 in order with respect to each other, but also have higher priority 11051 than other disabled ciphersuites the next time ciphersuites are 11052 enabled again. 11053 11054 This means that you can now say, e.g., "PSK:-PSK:HIGH" to enable 11055 the same ciphersuites as with "HIGH" alone, but in a specific 11056 order where the PSK ciphersuites come first (since they are the 11057 most recently disabled ciphersuites when "HIGH" is parsed). 11058 11059 Also, change ssl_create_cipher_list() (using this new 11060 functionality) such that between otherwise identical 11061 ciphersuites, ephemeral ECDH is preferred over ephemeral DH in 11062 the default order. 11063 11064 *Bodo Moeller* 11065 11066 * Change ssl_create_cipher_list() so that it automatically 11067 arranges the ciphersuites in reasonable order before starting 11068 to process the rule string. Thus, the definition for "DEFAULT" 11069 (SSL_DEFAULT_CIPHER_LIST) now is just "ALL:!aNULL:!eNULL", but 11070 remains equivalent to `"AES:ALL:!aNULL:!eNULL:+aECDH:+kRSA:+RC4:@STRENGTH"`. 11071 This makes it much easier to arrive at a reasonable default order 11072 in applications for which anonymous ciphers are OK (meaning 11073 that you can't actually use DEFAULT). 11074 11075 *Bodo Moeller; suggested by Victor Duchovni* 11076 11077 * Split the SSL/TLS algorithm mask (as used for ciphersuite string 11078 processing) into multiple integers instead of setting 11079 "SSL_MKEY_MASK" bits, "SSL_AUTH_MASK" bits, "SSL_ENC_MASK", 11080 "SSL_MAC_MASK", and "SSL_SSL_MASK" bits all in a single integer. 11081 (These masks as well as the individual bit definitions are hidden 11082 away into the non-exported interface ssl/ssl_locl.h, so this 11083 change to the definition of the SSL_CIPHER structure shouldn't 11084 affect applications.) This give us more bits for each of these 11085 categories, so there is no longer a need to coagulate AES128 and 11086 AES256 into a single algorithm bit, and to coagulate Camellia128 11087 and Camellia256 into a single algorithm bit, which has led to all 11088 kinds of kludges. 11089 11090 Thus, among other things, the kludge introduced in 0.9.7m and 11091 0.9.8e for masking out AES256 independently of AES128 or masking 11092 out Camellia256 independently of AES256 is not needed here in 0.9.9. 11093 11094 With the change, we also introduce new ciphersuite aliases that 11095 so far were missing: "AES128", "AES256", "CAMELLIA128", and 11096 "CAMELLIA256". 11097 11098 *Bodo Moeller* 11099 11100 * Add support for dsa-with-SHA224 and dsa-with-SHA256. 11101 Use the leftmost N bytes of the signature input if the input is 11102 larger than the prime q (with N being the size in bytes of q). 11103 11104 *Nils Larsch* 11105 11106 * Very *very* experimental PKCS#7 streaming encoder support. Nothing uses 11107 it yet and it is largely untested. 11108 11109 *Steve Henson* 11110 11111 * Add support for the ecdsa-with-SHA224/256/384/512 signature types. 11112 11113 *Nils Larsch* 11114 11115 * Initial incomplete changes to avoid need for function casts in OpenSSL 11116 some compilers (gcc 4.2 and later) reject their use. Safestack is 11117 reimplemented. Update ASN1 to avoid use of legacy functions. 11118 11119 *Steve Henson* 11120 11121 * Win32/64 targets are linked with Winsock2. 11122 11123 *Andy Polyakov* 11124 11125 * Add an X509_CRL_METHOD structure to allow CRL processing to be redirected 11126 to external functions. This can be used to increase CRL handling 11127 efficiency especially when CRLs are very large by (for example) storing 11128 the CRL revoked certificates in a database. 11129 11130 *Steve Henson* 11131 11132 * Overhaul of by_dir code. Add support for dynamic loading of CRLs so 11133 new CRLs added to a directory can be used. New command line option 11134 -verify_return_error to s_client and s_server. This causes real errors 11135 to be returned by the verify callback instead of carrying on no matter 11136 what. This reflects the way a "real world" verify callback would behave. 11137 11138 *Steve Henson* 11139 11140 * GOST engine, supporting several GOST algorithms and public key formats. 11141 Kindly donated by Cryptocom. 11142 11143 *Cryptocom* 11144 11145 * Partial support for Issuing Distribution Point CRL extension. CRLs 11146 partitioned by DP are handled but no indirect CRL or reason partitioning 11147 (yet). Complete overhaul of CRL handling: now the most suitable CRL is 11148 selected via a scoring technique which handles IDP and AKID in CRLs. 11149 11150 *Steve Henson* 11151 11152 * New X509_STORE_CTX callbacks lookup_crls() and lookup_certs() which 11153 will ultimately be used for all verify operations: this will remove the 11154 X509_STORE dependency on certificate verification and allow alternative 11155 lookup methods. X509_STORE based implementations of these two callbacks. 11156 11157 *Steve Henson* 11158 11159 * Allow multiple CRLs to exist in an X509_STORE with matching issuer names. 11160 Modify get_crl() to find a valid (unexpired) CRL if possible. 11161 11162 *Steve Henson* 11163 11164 * New function X509_CRL_match() to check if two CRLs are identical. Normally 11165 this would be called X509_CRL_cmp() but that name is already used by 11166 a function that just compares CRL issuer names. Cache several CRL 11167 extensions in X509_CRL structure and cache CRLDP in X509. 11168 11169 *Steve Henson* 11170 11171 * Store a "canonical" representation of X509_NAME structure (ASN1 Name) 11172 this maps equivalent X509_NAME structures into a consistent structure. 11173 Name comparison can then be performed rapidly using memcmp(). 11174 11175 *Steve Henson* 11176 11177 * Non-blocking OCSP request processing. Add -timeout option to ocsp 11178 utility. 11179 11180 *Steve Henson* 11181 11182 * Allow digests to supply their own micalg string for S/MIME type using 11183 the ctrl EVP_MD_CTRL_MICALG. 11184 11185 *Steve Henson* 11186 11187 * During PKCS7 signing pass the PKCS7 SignerInfo structure to the 11188 EVP_PKEY_METHOD before and after signing via the EVP_PKEY_CTRL_PKCS7_SIGN 11189 ctrl. It can then customise the structure before and/or after signing 11190 if necessary. 11191 11192 *Steve Henson* 11193 11194 * New function OBJ_add_sigid() to allow application defined signature OIDs 11195 to be added to OpenSSLs internal tables. New function OBJ_sigid_free() 11196 to free up any added signature OIDs. 11197 11198 *Steve Henson* 11199 11200 * New functions EVP_CIPHER_do_all(), EVP_CIPHER_do_all_sorted(), 11201 EVP_MD_do_all() and EVP_MD_do_all_sorted() to enumerate internal 11202 digest and cipher tables. New options added to openssl utility: 11203 list-message-digest-algorithms and list-cipher-algorithms. 11204 11205 *Steve Henson* 11206 11207 * Change the array representation of binary polynomials: the list 11208 of degrees of non-zero coefficients is now terminated with -1. 11209 Previously it was terminated with 0, which was also part of the 11210 value; thus, the array representation was not applicable to 11211 polynomials where t^0 has coefficient zero. This change makes 11212 the array representation useful in a more general context. 11213 11214 *Douglas Stebila* 11215 11216 * Various modifications and fixes to SSL/TLS cipher string 11217 handling. For ECC, the code now distinguishes between fixed ECDH 11218 with RSA certificates on the one hand and with ECDSA certificates 11219 on the other hand, since these are separate ciphersuites. The 11220 unused code for Fortezza ciphersuites has been removed. 11221 11222 For consistency with EDH, ephemeral ECDH is now called "EECDH" 11223 (not "ECDHE"). For consistency with the code for DH 11224 certificates, use of ECDH certificates is now considered ECDH 11225 authentication, not RSA or ECDSA authentication (the latter is 11226 merely the CA's signing algorithm and not actively used in the 11227 protocol). 11228 11229 The temporary ciphersuite alias "ECCdraft" is no longer 11230 available, and ECC ciphersuites are no longer excluded from "ALL" 11231 and "DEFAULT". The following aliases now exist for RFC 4492 11232 ciphersuites, most of these by analogy with the DH case: 11233 11234 kECDHr - ECDH cert, signed with RSA 11235 kECDHe - ECDH cert, signed with ECDSA 11236 kECDH - ECDH cert (signed with either RSA or ECDSA) 11237 kEECDH - ephemeral ECDH 11238 ECDH - ECDH cert or ephemeral ECDH 11239 11240 aECDH - ECDH cert 11241 aECDSA - ECDSA cert 11242 ECDSA - ECDSA cert 11243 11244 AECDH - anonymous ECDH 11245 EECDH - non-anonymous ephemeral ECDH (equivalent to "kEECDH:-AECDH") 11246 11247 *Bodo Moeller* 11248 11249 * Add additional S/MIME capabilities for AES and GOST ciphers if supported. 11250 Use correct micalg parameters depending on digest(s) in signed message. 11251 11252 *Steve Henson* 11253 11254 * Add engine support for EVP_PKEY_ASN1_METHOD. Add functions to process 11255 an ENGINE asn1 method. Support ENGINE lookups in the ASN1 code. 11256 11257 *Steve Henson* 11258 11259 * Initial engine support for EVP_PKEY_METHOD. New functions to permit 11260 an engine to register a method. Add ENGINE lookups for methods and 11261 functional reference processing. 11262 11263 *Steve Henson* 11264 11265 * New functions `EVP_Digest{Sign,Verify)*`. These are enhanced versions of 11266 `EVP_{Sign,Verify}*` which allow an application to customise the signature 11267 process. 11268 11269 *Steve Henson* 11270 11271 * New -resign option to smime utility. This adds one or more signers 11272 to an existing PKCS#7 signedData structure. Also -md option to use an 11273 alternative message digest algorithm for signing. 11274 11275 *Steve Henson* 11276 11277 * Tidy up PKCS#7 routines and add new functions to make it easier to 11278 create PKCS7 structures containing multiple signers. Update smime 11279 application to support multiple signers. 11280 11281 *Steve Henson* 11282 11283 * New -macalg option to pkcs12 utility to allow setting of an alternative 11284 digest MAC. 11285 11286 *Steve Henson* 11287 11288 * Initial support for PKCS#5 v2.0 PRFs other than default SHA1 HMAC. 11289 Reorganize PBE internals to lookup from a static table using NIDs, 11290 add support for HMAC PBE OID translation. Add a EVP_CIPHER ctrl: 11291 EVP_CTRL_PBE_PRF_NID this allows a cipher to specify an alternative 11292 PRF which will be automatically used with PBES2. 11293 11294 *Steve Henson* 11295 11296 * Replace the algorithm specific calls to generate keys in "req" with the 11297 new API. 11298 11299 *Steve Henson* 11300 11301 * Update PKCS#7 enveloped data routines to use new API. This is now 11302 supported by any public key method supporting the encrypt operation. A 11303 ctrl is added to allow the public key algorithm to examine or modify 11304 the PKCS#7 RecipientInfo structure if it needs to: for RSA this is 11305 a no op. 11306 11307 *Steve Henson* 11308 11309 * Add a ctrl to asn1 method to allow a public key algorithm to express 11310 a default digest type to use. In most cases this will be SHA1 but some 11311 algorithms (such as GOST) need to specify an alternative digest. The 11312 return value indicates how strong the preference is 1 means optional and 11313 2 is mandatory (that is it is the only supported type). Modify 11314 ASN1_item_sign() to accept a NULL digest argument to indicate it should 11315 use the default md. Update openssl utilities to use the default digest 11316 type for signing if it is not explicitly indicated. 11317 11318 *Steve Henson* 11319 11320 * Use OID cross reference table in ASN1_sign() and ASN1_verify(). New 11321 EVP_MD flag EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. This uses the relevant 11322 signing method from the key type. This effectively removes the link 11323 between digests and public key types. 11324 11325 *Steve Henson* 11326 11327 * Add an OID cross reference table and utility functions. Its purpose is to 11328 translate between signature OIDs such as SHA1WithrsaEncryption and SHA1, 11329 rsaEncryption. This will allow some of the algorithm specific hackery 11330 needed to use the correct OID to be removed. 11331 11332 *Steve Henson* 11333 11334 * Remove algorithm specific dependencies when setting PKCS7_SIGNER_INFO 11335 structures for PKCS7_sign(). They are now set up by the relevant public 11336 key ASN1 method. 11337 11338 *Steve Henson* 11339 11340 * Add provisional EC pkey method with support for ECDSA and ECDH. 11341 11342 *Steve Henson* 11343 11344 * Add support for key derivation (agreement) in the API, DH method and 11345 pkeyutl. 11346 11347 *Steve Henson* 11348 11349 * Add DSA pkey method and DH pkey methods, extend DH ASN1 method to support 11350 public and private key formats. As a side effect these add additional 11351 command line functionality not previously available: DSA signatures can be 11352 generated and verified using pkeyutl and DH key support and generation in 11353 pkey, genpkey. 11354 11355 *Steve Henson* 11356 11357 * BeOS support. 11358 11359 *Oliver Tappe <zooey@hirschkaefer.de>* 11360 11361 * New make target "install_html_docs" installs HTML renditions of the 11362 manual pages. 11363 11364 *Oliver Tappe <zooey@hirschkaefer.de>* 11365 11366 * New utility "genpkey" this is analogous to "genrsa" etc except it can 11367 generate keys for any algorithm. Extend and update EVP_PKEY_METHOD to 11368 support key and parameter generation and add initial key generation 11369 functionality for RSA. 11370 11371 *Steve Henson* 11372 11373 * Add functions for main EVP_PKEY_method operations. The undocumented 11374 functions `EVP_PKEY_{encrypt,decrypt}` have been renamed to 11375 `EVP_PKEY_{encrypt,decrypt}_old`. 11376 11377 *Steve Henson* 11378 11379 * Initial definitions for EVP_PKEY_METHOD. This will be a high level public 11380 key API, doesn't do much yet. 11381 11382 *Steve Henson* 11383 11384 * New function EVP_PKEY_asn1_get0_info() to retrieve information about 11385 public key algorithms. New option to openssl utility: 11386 "list-public-key-algorithms" to print out info. 11387 11388 *Steve Henson* 11389 11390 * Implement the Supported Elliptic Curves Extension for 11391 ECC ciphersuites from draft-ietf-tls-ecc-12.txt. 11392 11393 *Douglas Stebila* 11394 11395 * Don't free up OIDs in OBJ_cleanup() if they are in use by EVP_MD or 11396 EVP_CIPHER structures to avoid later problems in EVP_cleanup(). 11397 11398 *Steve Henson* 11399 11400 * New utilities pkey and pkeyparam. These are similar to algorithm specific 11401 utilities such as rsa, dsa, dsaparam etc except they process any key 11402 type. 11403 11404 *Steve Henson* 11405 11406 * Transfer public key printing routines to EVP_PKEY_ASN1_METHOD. New 11407 functions EVP_PKEY_print_public(), EVP_PKEY_print_private(), 11408 EVP_PKEY_print_param() to print public key data from an EVP_PKEY 11409 structure. 11410 11411 *Steve Henson* 11412 11413 * Initial support for pluggable public key ASN1. 11414 De-spaghettify the public key ASN1 handling. Move public and private 11415 key ASN1 handling to a new EVP_PKEY_ASN1_METHOD structure. Relocate 11416 algorithm specific handling to a single module within the relevant 11417 algorithm directory. Add functions to allow (near) opaque processing 11418 of public and private key structures. 11419 11420 *Steve Henson* 11421 11422 * Implement the Supported Point Formats Extension for 11423 ECC ciphersuites from draft-ietf-tls-ecc-12.txt. 11424 11425 *Douglas Stebila* 11426 11427 * Add initial support for RFC 4279 PSK TLS ciphersuites. Add members 11428 for the psk identity [hint] and the psk callback functions to the 11429 SSL_SESSION, SSL and SSL_CTX structure. 11430 11431 New ciphersuites: 11432 PSK-RC4-SHA, PSK-3DES-EDE-CBC-SHA, PSK-AES128-CBC-SHA, 11433 PSK-AES256-CBC-SHA 11434 11435 New functions: 11436 SSL_CTX_use_psk_identity_hint 11437 SSL_get_psk_identity_hint 11438 SSL_get_psk_identity 11439 SSL_use_psk_identity_hint 11440 11441 *Mika Kousa and Pasi Eronen of Nokia Corporation* 11442 11443 * Add RFC 3161 compliant time stamp request creation, response generation 11444 and response verification functionality. 11445 11446 *Zoltán Glózik <zglozik@opentsa.org>, The OpenTSA Project* 11447 11448 * Add initial support for TLS extensions, specifically for the server_name 11449 extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now 11450 have new members for a hostname. The SSL data structure has an 11451 additional member `SSL_CTX *initial_ctx` so that new sessions can be 11452 stored in that context to allow for session resumption, even after the 11453 SSL has been switched to a new SSL_CTX in reaction to a client's 11454 server_name extension. 11455 11456 New functions (subject to change): 11457 11458 SSL_get_servername() 11459 SSL_get_servername_type() 11460 SSL_set_SSL_CTX() 11461 11462 New CTRL codes and macros (subject to change): 11463 11464 SSL_CTRL_SET_TLSEXT_SERVERNAME_CB 11465 - SSL_CTX_set_tlsext_servername_callback() 11466 SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG 11467 - SSL_CTX_set_tlsext_servername_arg() 11468 SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name() 11469 11470 openssl s_client has a new '-servername ...' option. 11471 11472 openssl s_server has new options '-servername_host ...', '-cert2 ...', 11473 '-key2 ...', '-servername_fatal' (subject to change). This allows 11474 testing the HostName extension for a specific single hostname ('-cert' 11475 and '-key' remain fallbacks for handshakes without HostName 11476 negotiation). If the unrecognized_name alert has to be sent, this by 11477 default is a warning; it becomes fatal with the '-servername_fatal' 11478 option. 11479 11480 *Peter Sylvester, Remy Allais, Christophe Renou* 11481 11482 * Whirlpool hash implementation is added. 11483 11484 *Andy Polyakov* 11485 11486 * BIGNUM code on 64-bit SPARCv9 targets is switched from bn(64,64) to 11487 bn(64,32). Because of instruction set limitations it doesn't have 11488 any negative impact on performance. This was done mostly in order 11489 to make it possible to share assembler modules, such as bn_mul_mont 11490 implementations, between 32- and 64-bit builds without hassle. 11491 11492 *Andy Polyakov* 11493 11494 * Move code previously exiled into file crypto/ec/ec2_smpt.c 11495 to ec2_smpl.c, and no longer require the OPENSSL_EC_BIN_PT_COMP 11496 macro. 11497 11498 *Bodo Moeller* 11499 11500 * New candidate for BIGNUM assembler implementation, bn_mul_mont, 11501 dedicated Montgomery multiplication procedure, is introduced. 11502 BN_MONT_CTX is modified to allow bn_mul_mont to reach for higher 11503 "64-bit" performance on certain 32-bit targets. 11504 11505 *Andy Polyakov* 11506 11507 * New option SSL_OP_NO_COMP to disable use of compression selectively 11508 in SSL structures. New SSL ctrl to set maximum send fragment size. 11509 Save memory by setting the I/O buffer sizes dynamically instead of 11510 using the maximum available value. 11511 11512 *Steve Henson* 11513 11514 * New option -V for 'openssl ciphers'. This prints the ciphersuite code 11515 in addition to the text details. 11516 11517 *Bodo Moeller* 11518 11519 * Very, very preliminary EXPERIMENTAL support for printing of general 11520 ASN1 structures. This currently produces rather ugly output and doesn't 11521 handle several customised structures at all. 11522 11523 *Steve Henson* 11524 11525 * Integrated support for PVK file format and some related formats such 11526 as MS PUBLICKEYBLOB and PRIVATEKEYBLOB. Command line switches to support 11527 these in the 'rsa' and 'dsa' utilities. 11528 11529 *Steve Henson* 11530 11531 * Support for PKCS#1 RSAPublicKey format on rsa utility command line. 11532 11533 *Steve Henson* 11534 11535 * Remove the ancient ASN1_METHOD code. This was only ever used in one 11536 place for the (very old) "NETSCAPE" format certificates which are now 11537 handled using new ASN1 code equivalents. 11538 11539 *Steve Henson* 11540 11541 * Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD 11542 pointer and make the SSL_METHOD parameter in SSL_CTX_new, 11543 SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'. 11544 11545 *Nils Larsch* 11546 11547 * Modify CRL distribution points extension code to print out previously 11548 unsupported fields. Enhance extension setting code to allow setting of 11549 all fields. 11550 11551 *Steve Henson* 11552 11553 * Add print and set support for Issuing Distribution Point CRL extension. 11554 11555 *Steve Henson* 11556 11557 * Change 'Configure' script to enable Camellia by default. 11558 11559 *NTT* 11560 11561OpenSSL 0.9.x 11562------------- 11563 11564### Changes between 0.9.8m and 0.9.8n [24 Mar 2010] 11565 11566 * When rejecting SSL/TLS records due to an incorrect version number, never 11567 update s->server with a new major version number. As of 11568 - OpenSSL 0.9.8m if 'short' is a 16-bit type, 11569 - OpenSSL 0.9.8f if 'short' is longer than 16 bits, 11570 the previous behavior could result in a read attempt at NULL when 11571 receiving specific incorrect SSL/TLS records once record payload 11572 protection is active. ([CVE-2010-0740]) 11573 11574 *Bodo Moeller, Adam Langley <agl@chromium.org>* 11575 11576 * Fix for CVE-2010-0433 where some kerberos enabled versions of OpenSSL 11577 could be crashed if the relevant tables were not present (e.g. chrooted). 11578 11579 *Tomas Hoger <thoger@redhat.com>* 11580 11581### Changes between 0.9.8l and 0.9.8m [25 Feb 2010] 11582 11583 * Always check bn_wexpand() return values for failure. ([CVE-2009-3245]) 11584 11585 *Martin Olsson, Neel Mehta* 11586 11587 * Fix X509_STORE locking: Every 'objs' access requires a lock (to 11588 accommodate for stack sorting, always a write lock!). 11589 11590 *Bodo Moeller* 11591 11592 * On some versions of WIN32 Heap32Next is very slow. This can cause 11593 excessive delays in the RAND_poll(): over a minute. As a workaround 11594 include a time check in the inner Heap32Next loop too. 11595 11596 *Steve Henson* 11597 11598 * The code that handled flushing of data in SSL/TLS originally used the 11599 BIO_CTRL_INFO ctrl to see if any data was pending first. This caused 11600 the problem outlined in PR#1949. The fix suggested there however can 11601 trigger problems with buggy BIO_CTRL_WPENDING (e.g. some versions 11602 of Apache). So instead simplify the code to flush unconditionally. 11603 This should be fine since flushing with no data to flush is a no op. 11604 11605 *Steve Henson* 11606 11607 * Handle TLS versions 2.0 and later properly and correctly use the 11608 highest version of TLS/SSL supported. Although TLS >= 2.0 is some way 11609 off ancient servers have a habit of sticking around for a while... 11610 11611 *Steve Henson* 11612 11613 * Modify compression code so it frees up structures without using the 11614 ex_data callbacks. This works around a problem where some applications 11615 call CRYPTO_cleanup_all_ex_data() before application exit (e.g. when 11616 restarting) then use compression (e.g. SSL with compression) later. 11617 This results in significant per-connection memory leaks and 11618 has caused some security issues including CVE-2008-1678 and 11619 CVE-2009-4355. 11620 11621 *Steve Henson* 11622 11623 * Constify crypto/cast (i.e., <openssl/cast.h>): a CAST_KEY doesn't 11624 change when encrypting or decrypting. 11625 11626 *Bodo Moeller* 11627 11628 * Add option SSL_OP_LEGACY_SERVER_CONNECT which will allow clients to 11629 connect and renegotiate with servers which do not support RI. 11630 Until RI is more widely deployed this option is enabled by default. 11631 11632 *Steve Henson* 11633 11634 * Add "missing" ssl ctrls to clear options and mode. 11635 11636 *Steve Henson* 11637 11638 * If client attempts to renegotiate and doesn't support RI respond with 11639 a no_renegotiation alert as required by RFC5746. Some renegotiating 11640 TLS clients will continue a connection gracefully when they receive 11641 the alert. Unfortunately OpenSSL mishandled this alert and would hang 11642 waiting for a server hello which it will never receive. Now we treat a 11643 received no_renegotiation alert as a fatal error. This is because 11644 applications requesting a renegotiation might well expect it to succeed 11645 and would have no code in place to handle the server denying it so the 11646 only safe thing to do is to terminate the connection. 11647 11648 *Steve Henson* 11649 11650 * Add ctrl macro SSL_get_secure_renegotiation_support() which returns 1 if 11651 peer supports secure renegotiation and 0 otherwise. Print out peer 11652 renegotiation support in s_client/s_server. 11653 11654 *Steve Henson* 11655 11656 * Replace the highly broken and deprecated SPKAC certification method with 11657 the updated NID creation version. This should correctly handle UTF8. 11658 11659 *Steve Henson* 11660 11661 * Implement RFC5746. Re-enable renegotiation but require the extension 11662 as needed. Unfortunately, SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION 11663 turns out to be a bad idea. It has been replaced by 11664 SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION which can be set with 11665 SSL_CTX_set_options(). This is really not recommended unless you 11666 know what you are doing. 11667 11668 *Eric Rescorla <ekr@networkresonance.com>, Ben Laurie, Steve Henson* 11669 11670 * Fixes to stateless session resumption handling. Use initial_ctx when 11671 issuing and attempting to decrypt tickets in case it has changed during 11672 servername handling. Use a non-zero length session ID when attempting 11673 stateless session resumption: this makes it possible to determine if 11674 a resumption has occurred immediately after receiving server hello 11675 (several places in OpenSSL subtly assume this) instead of later in 11676 the handshake. 11677 11678 *Steve Henson* 11679 11680 * The functions ENGINE_ctrl(), OPENSSL_isservice(), 11681 CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error 11682 fixes for a few places where the return code is not checked 11683 correctly. 11684 11685 *Julia Lawall <julia@diku.dk>* 11686 11687 * Add --strict-warnings option to Configure script to include devteam 11688 warnings in other configurations. 11689 11690 *Steve Henson* 11691 11692 * Add support for --libdir option and LIBDIR variable in makefiles. This 11693 makes it possible to install openssl libraries in locations which 11694 have names other than "lib", for example "/usr/lib64" which some 11695 systems need. 11696 11697 *Steve Henson, based on patch from Jeremy Utley* 11698 11699 * Don't allow the use of leading 0x80 in OIDs. This is a violation of 11700 X690 8.9.12 and can produce some misleading textual output of OIDs. 11701 11702 *Steve Henson, reported by Dan Kaminsky* 11703 11704 * Delete MD2 from algorithm tables. This follows the recommendation in 11705 several standards that it is not used in new applications due to 11706 several cryptographic weaknesses. For binary compatibility reasons 11707 the MD2 API is still compiled in by default. 11708 11709 *Steve Henson* 11710 11711 * Add compression id to {d2i,i2d}_SSL_SESSION so it is correctly saved 11712 and restored. 11713 11714 *Steve Henson* 11715 11716 * Rename uni2asc and asc2uni functions to OPENSSL_uni2asc and 11717 OPENSSL_asc2uni conditionally on Netware platforms to avoid a name 11718 clash. 11719 11720 *Guenter <lists@gknw.net>* 11721 11722 * Fix the server certificate chain building code to use X509_verify_cert(), 11723 it used to have an ad-hoc builder which was unable to cope with anything 11724 other than a simple chain. 11725 11726 *David Woodhouse <dwmw2@infradead.org>, Steve Henson* 11727 11728 * Don't check self signed certificate signatures in X509_verify_cert() 11729 by default (a flag can override this): it just wastes time without 11730 adding any security. As a useful side effect self signed root CAs 11731 with non-FIPS digests are now usable in FIPS mode. 11732 11733 *Steve Henson* 11734 11735 * In dtls1_process_out_of_seq_message() the check if the current message 11736 is already buffered was missing. For every new message was memory 11737 allocated, allowing an attacker to perform an denial of service attack 11738 with sending out of seq handshake messages until there is no memory 11739 left. Additionally every future message was buffered, even if the 11740 sequence number made no sense and would be part of another handshake. 11741 So only messages with sequence numbers less than 10 in advance will be 11742 buffered. ([CVE-2009-1378]) 11743 11744 *Robin Seggelmann, discovered by Daniel Mentz* 11745 11746 * Records are buffered if they arrive with a future epoch to be 11747 processed after finishing the corresponding handshake. There is 11748 currently no limitation to this buffer allowing an attacker to perform 11749 a DOS attack with sending records with future epochs until there is no 11750 memory left. This patch adds the pqueue_size() function to determine 11751 the size of a buffer and limits the record buffer to 100 entries. 11752 ([CVE-2009-1377]) 11753 11754 *Robin Seggelmann, discovered by Daniel Mentz* 11755 11756 * Keep a copy of frag->msg_header.frag_len so it can be used after the 11757 parent structure is freed. ([CVE-2009-1379]) 11758 11759 *Daniel Mentz* 11760 11761 * Handle non-blocking I/O properly in SSL_shutdown() call. 11762 11763 *Darryl Miles <darryl-mailinglists@netbauds.net>* 11764 11765 * Add `2.5.4.*` OIDs 11766 11767 *Ilya O. <vrghost@gmail.com>* 11768 11769### Changes between 0.9.8k and 0.9.8l [5 Nov 2009] 11770 11771 * Disable renegotiation completely - this fixes a severe security 11772 problem ([CVE-2009-3555]) at the cost of breaking all 11773 renegotiation. Renegotiation can be re-enabled by setting 11774 SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION in s3->flags at 11775 run-time. This is really not recommended unless you know what 11776 you're doing. 11777 11778 *Ben Laurie* 11779 11780### Changes between 0.9.8j and 0.9.8k [25 Mar 2009] 11781 11782 * Don't set val to NULL when freeing up structures, it is freed up by 11783 underlying code. If `sizeof(void *) > sizeof(long)` this can result in 11784 zeroing past the valid field. ([CVE-2009-0789]) 11785 11786 *Paolo Ganci <Paolo.Ganci@AdNovum.CH>* 11787 11788 * Fix bug where return value of CMS_SignerInfo_verify_content() was not 11789 checked correctly. This would allow some invalid signed attributes to 11790 appear to verify correctly. ([CVE-2009-0591]) 11791 11792 *Ivan Nestlerode <inestlerode@us.ibm.com>* 11793 11794 * Reject UniversalString and BMPString types with invalid lengths. This 11795 prevents a crash in ASN1_STRING_print_ex() which assumes the strings have 11796 a legal length. ([CVE-2009-0590]) 11797 11798 *Steve Henson* 11799 11800 * Set S/MIME signing as the default purpose rather than setting it 11801 unconditionally. This allows applications to override it at the store 11802 level. 11803 11804 *Steve Henson* 11805 11806 * Permit restricted recursion of ASN1 strings. This is needed in practice 11807 to handle some structures. 11808 11809 *Steve Henson* 11810 11811 * Improve efficiency of mem_gets: don't search whole buffer each time 11812 for a '\n' 11813 11814 *Jeremy Shapiro <jnshapir@us.ibm.com>* 11815 11816 * New -hex option for openssl rand. 11817 11818 *Matthieu Herrb* 11819 11820 * Print out UTF8String and NumericString when parsing ASN1. 11821 11822 *Steve Henson* 11823 11824 * Support NumericString type for name components. 11825 11826 *Steve Henson* 11827 11828 * Allow CC in the environment to override the automatically chosen 11829 compiler. Note that nothing is done to ensure flags work with the 11830 chosen compiler. 11831 11832 *Ben Laurie* 11833 11834### Changes between 0.9.8i and 0.9.8j [07 Jan 2009] 11835 11836 * Properly check EVP_VerifyFinal() and similar return values 11837 ([CVE-2008-5077]). 11838 11839 *Ben Laurie, Bodo Moeller, Google Security Team* 11840 11841 * Enable TLS extensions by default. 11842 11843 *Ben Laurie* 11844 11845 * Allow the CHIL engine to be loaded, whether the application is 11846 multithreaded or not. (This does not release the developer from the 11847 obligation to set up the dynamic locking callbacks.) 11848 11849 *Sander Temme <sander@temme.net>* 11850 11851 * Use correct exit code if there is an error in dgst command. 11852 11853 *Steve Henson; problem pointed out by Roland Dirlewanger* 11854 11855 * Tweak Configure so that you need to say "experimental-jpake" to enable 11856 JPAKE, and need to use -DOPENSSL_EXPERIMENTAL_JPAKE in applications. 11857 11858 *Bodo Moeller* 11859 11860 * Add experimental JPAKE support, including demo authentication in 11861 s_client and s_server. 11862 11863 *Ben Laurie* 11864 11865 * Set the comparison function in v3_addr_canonize(). 11866 11867 *Rob Austein <sra@hactrn.net>* 11868 11869 * Add support for XMPP STARTTLS in s_client. 11870 11871 *Philip Paeps <philip@freebsd.org>* 11872 11873 * Change the server-side SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG behavior 11874 to ensure that even with this option, only ciphersuites in the 11875 server's preference list will be accepted. (Note that the option 11876 applies only when resuming a session, so the earlier behavior was 11877 just about the algorithm choice for symmetric cryptography.) 11878 11879 *Bodo Moeller* 11880 11881### Changes between 0.9.8h and 0.9.8i [15 Sep 2008] 11882 11883 * Fix NULL pointer dereference if a DTLS server received 11884 ChangeCipherSpec as first record ([CVE-2009-1386]). 11885 11886 *PR #1679* 11887 11888 * Fix a state transition in s3_srvr.c and d1_srvr.c 11889 (was using SSL3_ST_CW_CLNT_HELLO_B, should be `..._ST_SW_SRVR_...`). 11890 11891 *Nagendra Modadugu* 11892 11893 * The fix in 0.9.8c that supposedly got rid of unsafe 11894 double-checked locking was incomplete for RSA blinding, 11895 addressing just one layer of what turns out to have been 11896 doubly unsafe triple-checked locking. 11897 11898 So now fix this for real by retiring the MONT_HELPER macro 11899 in crypto/rsa/rsa_eay.c. 11900 11901 *Bodo Moeller; problem pointed out by Marius Schilder* 11902 11903 * Various precautionary measures: 11904 11905 - Avoid size_t integer overflow in HASH_UPDATE (md32_common.h). 11906 11907 - Avoid a buffer overflow in d2i_SSL_SESSION() (ssl_asn1.c). 11908 (NB: This would require knowledge of the secret session ticket key 11909 to exploit, in which case you'd be SOL either way.) 11910 11911 - Change bn_nist.c so that it will properly handle input BIGNUMs 11912 outside the expected range. 11913 11914 - Enforce the 'num' check in BN_div() (bn_div.c) for non-BN_DEBUG 11915 builds. 11916 11917 *Neel Mehta, Bodo Moeller* 11918 11919 * Allow engines to be "soft loaded" - i.e. optionally don't die if 11920 the load fails. Useful for distros. 11921 11922 *Ben Laurie and the FreeBSD team* 11923 11924 * Add support for Local Machine Keyset attribute in PKCS#12 files. 11925 11926 *Steve Henson* 11927 11928 * Fix BN_GF2m_mod_arr() top-bit cleanup code. 11929 11930 *Huang Ying* 11931 11932 * Expand ENGINE to support engine supplied SSL client certificate functions. 11933 11934 This work was sponsored by Logica. 11935 11936 *Steve Henson* 11937 11938 * Add CryptoAPI ENGINE to support use of RSA and DSA keys held in Windows 11939 keystores. Support for SSL/TLS client authentication too. 11940 Not compiled unless enable-capieng specified to Configure. 11941 11942 This work was sponsored by Logica. 11943 11944 *Steve Henson* 11945 11946 * Fix bug in X509_ATTRIBUTE creation: don't set attribute using 11947 ASN1_TYPE_set1 if MBSTRING flag set. This bug would crash certain 11948 attribute creation routines such as certificate requests and PKCS#12 11949 files. 11950 11951 *Steve Henson* 11952 11953### Changes between 0.9.8g and 0.9.8h [28 May 2008] 11954 11955 * Fix flaw if 'Server Key exchange message' is omitted from a TLS 11956 handshake which could lead to a client crash as found using the 11957 Codenomicon TLS test suite ([CVE-2008-1672]) 11958 11959 *Steve Henson, Mark Cox* 11960 11961 * Fix double free in TLS server name extensions which could lead to 11962 a remote crash found by Codenomicon TLS test suite ([CVE-2008-0891]) 11963 11964 *Joe Orton* 11965 11966 * Clear error queue in SSL_CTX_use_certificate_chain_file() 11967 11968 Clear the error queue to ensure that error entries left from 11969 older function calls do not interfere with the correct operation. 11970 11971 *Lutz Jaenicke, Erik de Castro Lopo* 11972 11973 * Remove root CA certificates of commercial CAs: 11974 11975 The OpenSSL project does not recommend any specific CA and does not 11976 have any policy with respect to including or excluding any CA. 11977 Therefore, it does not make any sense to ship an arbitrary selection 11978 of root CA certificates with the OpenSSL software. 11979 11980 *Lutz Jaenicke* 11981 11982 * RSA OAEP patches to fix two separate invalid memory reads. 11983 The first one involves inputs when 'lzero' is greater than 11984 'SHA_DIGEST_LENGTH' (it would read about SHA_DIGEST_LENGTH bytes 11985 before the beginning of from). The second one involves inputs where 11986 the 'db' section contains nothing but zeroes (there is a one-byte 11987 invalid read after the end of 'db'). 11988 11989 *Ivan Nestlerode <inestlerode@us.ibm.com>* 11990 11991 * Partial backport from 0.9.9-dev: 11992 11993 Introduce bn_mul_mont (dedicated Montgomery multiplication 11994 procedure) as a candidate for BIGNUM assembler implementation. 11995 While 0.9.9-dev uses assembler for various architectures, only 11996 x86_64 is available by default here in the 0.9.8 branch, and 11997 32-bit x86 is available through a compile-time setting. 11998 11999 To try the 32-bit x86 assembler implementation, use Configure 12000 option "enable-montasm" (which exists only for this backport). 12001 12002 As "enable-montasm" for 32-bit x86 disclaims code stability 12003 anyway, in this constellation we activate additional code 12004 backported from 0.9.9-dev for further performance improvements, 12005 namely BN_from_montgomery_word. (To enable this otherwise, 12006 e.g. x86_64, try `-DMONT_FROM_WORD___NON_DEFAULT_0_9_8_BUILD`.) 12007 12008 *Andy Polyakov (backport partially by Bodo Moeller)* 12009 12010 * Add TLS session ticket callback. This allows an application to set 12011 TLS ticket cipher and HMAC keys rather than relying on hardcoded fixed 12012 values. This is useful for key rollover for example where several key 12013 sets may exist with different names. 12014 12015 *Steve Henson* 12016 12017 * Reverse ENGINE-internal logic for caching default ENGINE handles. 12018 This was broken until now in 0.9.8 releases, such that the only way 12019 a registered ENGINE could be used (assuming it initialises 12020 successfully on the host) was to explicitly set it as the default 12021 for the relevant algorithms. This is in contradiction with 0.9.7 12022 behaviour and the documentation. With this fix, when an ENGINE is 12023 registered into a given algorithm's table of implementations, the 12024 'uptodate' flag is reset so that auto-discovery will be used next 12025 time a new context for that algorithm attempts to select an 12026 implementation. 12027 12028 *Ian Lister (tweaked by Geoff Thorpe)* 12029 12030 * Backport of CMS code to OpenSSL 0.9.8. This differs from the 0.9.9 12031 implementation in the following ways: 12032 12033 Lack of EVP_PKEY_ASN1_METHOD means algorithm parameters have to be 12034 hard coded. 12035 12036 Lack of BER streaming support means one pass streaming processing is 12037 only supported if data is detached: setting the streaming flag is 12038 ignored for embedded content. 12039 12040 CMS support is disabled by default and must be explicitly enabled 12041 with the enable-cms configuration option. 12042 12043 *Steve Henson* 12044 12045 * Update the GMP engine glue to do direct copies between BIGNUM and 12046 mpz_t when openssl and GMP use the same limb size. Otherwise the 12047 existing "conversion via a text string export" trick is still used. 12048 12049 *Paul Sheer <paulsheer@gmail.com>* 12050 12051 * Zlib compression BIO. This is a filter BIO which compressed and 12052 uncompresses any data passed through it. 12053 12054 *Steve Henson* 12055 12056 * Add AES_wrap_key() and AES_unwrap_key() functions to implement 12057 RFC3394 compatible AES key wrapping. 12058 12059 *Steve Henson* 12060 12061 * Add utility functions to handle ASN1 structures. ASN1_STRING_set0(): 12062 sets string data without copying. X509_ALGOR_set0() and 12063 X509_ALGOR_get0(): set and retrieve X509_ALGOR (AlgorithmIdentifier) 12064 data. Attribute function X509at_get0_data_by_OBJ(): retrieves data 12065 from an X509_ATTRIBUTE structure optionally checking it occurs only 12066 once. ASN1_TYPE_set1(): set and ASN1_TYPE structure copying supplied 12067 data. 12068 12069 *Steve Henson* 12070 12071 * Fix BN flag handling in RSA_eay_mod_exp() and BN_MONT_CTX_set() 12072 to get the expected BN_FLG_CONSTTIME behavior. 12073 12074 *Bodo Moeller (Google)* 12075 12076 * Netware support: 12077 12078 - fixed wrong usage of ioctlsocket() when build for LIBC BSD sockets 12079 - fixed do_tests.pl to run the test suite with CLIB builds too (CLIB_OPT) 12080 - added some more tests to do_tests.pl 12081 - fixed RunningProcess usage so that it works with newer LIBC NDKs too 12082 - removed usage of BN_LLONG for CLIB builds to avoid runtime dependency 12083 - added new Configure targets netware-clib-bsdsock, netware-clib-gcc, 12084 netware-clib-bsdsock-gcc, netware-libc-bsdsock-gcc 12085 - various changes to netware.pl to enable gcc-cross builds on Win32 12086 platform 12087 - changed crypto/bio/b_sock.c to work with macro functions (CLIB BSD) 12088 - various changes to fix missing prototype warnings 12089 - fixed x86nasm.pl to create correct asm files for NASM COFF output 12090 - added AES, WHIRLPOOL and CPUID assembler code to build files 12091 - added missing AES assembler make rules to mk1mf.pl 12092 - fixed order of includes in `apps/ocsp.c` so that `e_os.h` settings apply 12093 12094 *Guenter Knauf <eflash@gmx.net>* 12095 12096 * Implement certificate status request TLS extension defined in RFC3546. 12097 A client can set the appropriate parameters and receive the encoded 12098 OCSP response via a callback. A server can query the supplied parameters 12099 and set the encoded OCSP response in the callback. Add simplified examples 12100 to s_client and s_server. 12101 12102 *Steve Henson* 12103 12104### Changes between 0.9.8f and 0.9.8g [19 Oct 2007] 12105 12106 * Fix various bugs: 12107 + Binary incompatibility of ssl_ctx_st structure 12108 + DTLS interoperation with non-compliant servers 12109 + Don't call get_session_cb() without proposed session 12110 + Fix ia64 assembler code 12111 12112 *Andy Polyakov, Steve Henson* 12113 12114### Changes between 0.9.8e and 0.9.8f [11 Oct 2007] 12115 12116 * DTLS Handshake overhaul. There were longstanding issues with 12117 OpenSSL DTLS implementation, which were making it impossible for 12118 RFC 4347 compliant client to communicate with OpenSSL server. 12119 Unfortunately just fixing these incompatibilities would "cut off" 12120 pre-0.9.8f clients. To allow for hassle free upgrade post-0.9.8e 12121 server keeps tolerating non RFC compliant syntax. The opposite is 12122 not true, 0.9.8f client can not communicate with earlier server. 12123 This update even addresses CVE-2007-4995. 12124 12125 *Andy Polyakov* 12126 12127 * Changes to avoid need for function casts in OpenSSL: some compilers 12128 (gcc 4.2 and later) reject their use. 12129 *Kurt Roeckx <kurt@roeckx.be>, Peter Hartley <pdh@utter.chaos.org.uk>, 12130 Steve Henson* 12131 12132 * Add RFC4507 support to OpenSSL. This includes the corrections in 12133 RFC4507bis. The encrypted ticket format is an encrypted encoded 12134 SSL_SESSION structure, that way new session features are automatically 12135 supported. 12136 12137 If a client application caches session in an SSL_SESSION structure 12138 support is transparent because tickets are now stored in the encoded 12139 SSL_SESSION. 12140 12141 The SSL_CTX structure automatically generates keys for ticket 12142 protection in servers so again support should be possible 12143 with no application modification. 12144 12145 If a client or server wishes to disable RFC4507 support then the option 12146 SSL_OP_NO_TICKET can be set. 12147 12148 Add a TLS extension debugging callback to allow the contents of any client 12149 or server extensions to be examined. 12150 12151 This work was sponsored by Google. 12152 12153 *Steve Henson* 12154 12155 * Add initial support for TLS extensions, specifically for the server_name 12156 extension so far. The SSL_SESSION, SSL_CTX, and SSL data structures now 12157 have new members for a hostname. The SSL data structure has an 12158 additional member `SSL_CTX *initial_ctx` so that new sessions can be 12159 stored in that context to allow for session resumption, even after the 12160 SSL has been switched to a new SSL_CTX in reaction to a client's 12161 server_name extension. 12162 12163 New functions (subject to change): 12164 12165 SSL_get_servername() 12166 SSL_get_servername_type() 12167 SSL_set_SSL_CTX() 12168 12169 New CTRL codes and macros (subject to change): 12170 12171 SSL_CTRL_SET_TLSEXT_SERVERNAME_CB 12172 - SSL_CTX_set_tlsext_servername_callback() 12173 SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG 12174 - SSL_CTX_set_tlsext_servername_arg() 12175 SSL_CTRL_SET_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name() 12176 12177 openssl s_client has a new '-servername ...' option. 12178 12179 openssl s_server has new options '-servername_host ...', '-cert2 ...', 12180 '-key2 ...', '-servername_fatal' (subject to change). This allows 12181 testing the HostName extension for a specific single hostname ('-cert' 12182 and '-key' remain fallbacks for handshakes without HostName 12183 negotiation). If the unrecognized_name alert has to be sent, this by 12184 default is a warning; it becomes fatal with the '-servername_fatal' 12185 option. 12186 12187 *Peter Sylvester, Remy Allais, Christophe Renou, Steve Henson* 12188 12189 * Add AES and SSE2 assembly language support to VC++ build. 12190 12191 *Steve Henson* 12192 12193 * Mitigate attack on final subtraction in Montgomery reduction. 12194 12195 *Andy Polyakov* 12196 12197 * Fix crypto/ec/ec_mult.c to work properly with scalars of value 0 12198 (which previously caused an internal error). 12199 12200 *Bodo Moeller* 12201 12202 * Squeeze another 10% out of IGE mode when in != out. 12203 12204 *Ben Laurie* 12205 12206 * AES IGE mode speedup. 12207 12208 *Dean Gaudet (Google)* 12209 12210 * Add the Korean symmetric 128-bit cipher SEED (see 12211 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp>) and 12212 add SEED ciphersuites from RFC 4162: 12213 12214 TLS_RSA_WITH_SEED_CBC_SHA = "SEED-SHA" 12215 TLS_DHE_DSS_WITH_SEED_CBC_SHA = "DHE-DSS-SEED-SHA" 12216 TLS_DHE_RSA_WITH_SEED_CBC_SHA = "DHE-RSA-SEED-SHA" 12217 TLS_DH_anon_WITH_SEED_CBC_SHA = "ADH-SEED-SHA" 12218 12219 To minimize changes between patchlevels in the OpenSSL 0.9.8 12220 series, SEED remains excluded from compilation unless OpenSSL 12221 is configured with 'enable-seed'. 12222 12223 *KISA, Bodo Moeller* 12224 12225 * Mitigate branch prediction attacks, which can be practical if a 12226 single processor is shared, allowing a spy process to extract 12227 information. For detailed background information, see 12228 <http://eprint.iacr.org/2007/039> (O. Aciicmez, S. Gueron, 12229 J.-P. Seifert, "New Branch Prediction Vulnerabilities in OpenSSL 12230 and Necessary Software Countermeasures"). The core of the change 12231 are new versions BN_div_no_branch() and 12232 BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(), 12233 respectively, which are slower, but avoid the security-relevant 12234 conditional branches. These are automatically called by BN_div() 12235 and BN_mod_inverse() if the flag BN_FLG_CONSTTIME is set for one 12236 of the input BIGNUMs. Also, BN_is_bit_set() has been changed to 12237 remove a conditional branch. 12238 12239 BN_FLG_CONSTTIME is the new name for the previous 12240 BN_FLG_EXP_CONSTTIME flag, since it now affects more than just 12241 modular exponentiation. (Since OpenSSL 0.9.7h, setting this flag 12242 in the exponent causes BN_mod_exp_mont() to use the alternative 12243 implementation in BN_mod_exp_mont_consttime().) The old name 12244 remains as a deprecated alias. 12245 12246 Similarly, RSA_FLAG_NO_EXP_CONSTTIME is replaced by a more general 12247 RSA_FLAG_NO_CONSTTIME flag since the RSA implementation now uses 12248 constant-time implementations for more than just exponentiation. 12249 Here too the old name is kept as a deprecated alias. 12250 12251 BN_BLINDING_new() will now use BN_dup() for the modulus so that 12252 the BN_BLINDING structure gets an independent copy of the 12253 modulus. This means that the previous `BIGNUM *m` argument to 12254 BN_BLINDING_new() and to BN_BLINDING_create_param() now 12255 essentially becomes `const BIGNUM *m`, although we can't actually 12256 change this in the header file before 0.9.9. It allows 12257 RSA_setup_blinding() to use BN_with_flags() on the modulus to 12258 enable BN_FLG_CONSTTIME. 12259 12260 *Matthew D Wood (Intel Corp)* 12261 12262 * In the SSL/TLS server implementation, be strict about session ID 12263 context matching (which matters if an application uses a single 12264 external cache for different purposes). Previously, 12265 out-of-context reuse was forbidden only if SSL_VERIFY_PEER was 12266 set. This did ensure strict client verification, but meant that, 12267 with applications using a single external cache for quite 12268 different requirements, clients could circumvent ciphersuite 12269 restrictions for a given session ID context by starting a session 12270 in a different context. 12271 12272 *Bodo Moeller* 12273 12274 * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that 12275 a ciphersuite string such as "DEFAULT:RSA" cannot enable 12276 authentication-only ciphersuites. 12277 12278 *Bodo Moeller* 12279 12280 * Update the SSL_get_shared_ciphers() fix CVE-2006-3738 which was 12281 not complete and could lead to a possible single byte overflow 12282 ([CVE-2007-5135]) [Ben Laurie] 12283 12284### Changes between 0.9.8d and 0.9.8e [23 Feb 2007] 12285 12286 * Since AES128 and AES256 (and similarly Camellia128 and 12287 Camellia256) share a single mask bit in the logic of 12288 ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a 12289 kludge to work properly if AES128 is available and AES256 isn't 12290 (or if Camellia128 is available and Camellia256 isn't). 12291 12292 *Victor Duchovni* 12293 12294 * Fix the BIT STRING encoding generated by crypto/ec/ec_asn1.c 12295 (within i2d_ECPrivateKey, i2d_ECPKParameters, i2d_ECParameters): 12296 When a point or a seed is encoded in a BIT STRING, we need to 12297 prevent the removal of trailing zero bits to get the proper DER 12298 encoding. (By default, crypto/asn1/a_bitstr.c assumes the case 12299 of a NamedBitList, for which trailing 0 bits need to be removed.) 12300 12301 *Bodo Moeller* 12302 12303 * Have SSL/TLS server implementation tolerate "mismatched" record 12304 protocol version while receiving ClientHello even if the 12305 ClientHello is fragmented. (The server can't insist on the 12306 particular protocol version it has chosen before the ServerHello 12307 message has informed the client about his choice.) 12308 12309 *Bodo Moeller* 12310 12311 * Add RFC 3779 support. 12312 12313 *Rob Austein for ARIN, Ben Laurie* 12314 12315 * Load error codes if they are not already present instead of using a 12316 static variable. This allows them to be cleanly unloaded and reloaded. 12317 Improve header file function name parsing. 12318 12319 *Steve Henson* 12320 12321 * extend SMTP and IMAP protocol emulation in s_client to use EHLO 12322 or CAPABILITY handshake as required by RFCs. 12323 12324 *Goetz Babin-Ebell* 12325 12326### Changes between 0.9.8c and 0.9.8d [28 Sep 2006] 12327 12328 * Introduce limits to prevent malicious keys being able to 12329 cause a denial of service. ([CVE-2006-2940]) 12330 12331 *Steve Henson, Bodo Moeller* 12332 12333 * Fix ASN.1 parsing of certain invalid structures that can result 12334 in a denial of service. ([CVE-2006-2937]) [Steve Henson] 12335 12336 * Fix buffer overflow in SSL_get_shared_ciphers() function. 12337 ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team] 12338 12339 * Fix SSL client code which could crash if connecting to a 12340 malicious SSLv2 server. ([CVE-2006-4343]) 12341 12342 *Tavis Ormandy and Will Drewry, Google Security Team* 12343 12344 * Since 0.9.8b, ciphersuite strings naming explicit ciphersuites 12345 match only those. Before that, "AES256-SHA" would be interpreted 12346 as a pattern and match "AES128-SHA" too (since AES128-SHA got 12347 the same strength classification in 0.9.7h) as we currently only 12348 have a single AES bit in the ciphersuite description bitmap. 12349 That change, however, also applied to ciphersuite strings such as 12350 "RC4-MD5" that intentionally matched multiple ciphersuites -- 12351 namely, SSL 2.0 ciphersuites in addition to the more common ones 12352 from SSL 3.0/TLS 1.0. 12353 12354 So we change the selection algorithm again: Naming an explicit 12355 ciphersuite selects this one ciphersuite, and any other similar 12356 ciphersuite (same bitmap) from *other* protocol versions. 12357 Thus, "RC4-MD5" again will properly select both the SSL 2.0 12358 ciphersuite and the SSL 3.0/TLS 1.0 ciphersuite. 12359 12360 Since SSL 2.0 does not have any ciphersuites for which the 12361 128/256 bit distinction would be relevant, this works for now. 12362 The proper fix will be to use different bits for AES128 and 12363 AES256, which would have avoided the problems from the beginning; 12364 however, bits are scarce, so we can only do this in a new release 12365 (not just a patchlevel) when we can change the SSL_CIPHER 12366 definition to split the single 'unsigned long mask' bitmap into 12367 multiple values to extend the available space. 12368 12369 *Bodo Moeller* 12370 12371### Changes between 0.9.8b and 0.9.8c [05 Sep 2006] 12372 12373 * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher 12374 ([CVE-2006-4339]) [Ben Laurie and Google Security Team] 12375 12376 * Add AES IGE and biIGE modes. 12377 12378 *Ben Laurie* 12379 12380 * Change the Unix randomness entropy gathering to use poll() when 12381 possible instead of select(), since the latter has some 12382 undesirable limitations. 12383 12384 *Darryl Miles via Richard Levitte and Bodo Moeller* 12385 12386 * Disable "ECCdraft" ciphersuites more thoroughly. Now special 12387 treatment in ssl/ssl_ciph.s makes sure that these ciphersuites 12388 cannot be implicitly activated as part of, e.g., the "AES" alias. 12389 However, please upgrade to OpenSSL 0.9.9[-dev] for 12390 non-experimental use of the ECC ciphersuites to get TLS extension 12391 support, which is required for curve and point format negotiation 12392 to avoid potential handshake problems. 12393 12394 *Bodo Moeller* 12395 12396 * Disable rogue ciphersuites: 12397 12398 - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5") 12399 - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5") 12400 - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5") 12401 12402 The latter two were purportedly from 12403 draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really 12404 appear there. 12405 12406 Also deactivate the remaining ciphersuites from 12407 draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as 12408 unofficial, and the ID has long expired. 12409 12410 *Bodo Moeller* 12411 12412 * Fix RSA blinding Heisenbug (problems sometimes occurred on 12413 dual-core machines) and other potential thread-safety issues. 12414 12415 *Bodo Moeller* 12416 12417 * Add the symmetric cipher Camellia (128-bit, 192-bit, 256-bit key 12418 versions), which is now available for royalty-free use 12419 (see <http://info.isl.ntt.co.jp/crypt/eng/info/chiteki.html>). 12420 Also, add Camellia TLS ciphersuites from RFC 4132. 12421 12422 To minimize changes between patchlevels in the OpenSSL 0.9.8 12423 series, Camellia remains excluded from compilation unless OpenSSL 12424 is configured with 'enable-camellia'. 12425 12426 *NTT* 12427 12428 * Disable the padding bug check when compression is in use. The padding 12429 bug check assumes the first packet is of even length, this is not 12430 necessarily true if compression is enabled and can result in false 12431 positives causing handshake failure. The actual bug test is ancient 12432 code so it is hoped that implementations will either have fixed it by 12433 now or any which still have the bug do not support compression. 12434 12435 *Steve Henson* 12436 12437### Changes between 0.9.8a and 0.9.8b [04 May 2006] 12438 12439 * When applying a cipher rule check to see if string match is an explicit 12440 cipher suite and only match that one cipher suite if it is. 12441 12442 *Steve Henson* 12443 12444 * Link in manifests for VC++ if needed. 12445 12446 *Austin Ziegler <halostatue@gmail.com>* 12447 12448 * Update support for ECC-based TLS ciphersuites according to 12449 draft-ietf-tls-ecc-12.txt with proposed changes (but without 12450 TLS extensions, which are supported starting with the 0.9.9 12451 branch, not in the OpenSSL 0.9.8 branch). 12452 12453 *Douglas Stebila* 12454 12455 * New functions EVP_CIPHER_CTX_new() and EVP_CIPHER_CTX_free() to support 12456 opaque EVP_CIPHER_CTX handling. 12457 12458 *Steve Henson* 12459 12460 * Fixes and enhancements to zlib compression code. We now only use 12461 "zlib1.dll" and use the default `__cdecl` calling convention on Win32 12462 to conform with the standards mentioned here: 12463 <http://www.zlib.net/DLL_FAQ.txt> 12464 Static zlib linking now works on Windows and the new --with-zlib-include 12465 --with-zlib-lib options to Configure can be used to supply the location 12466 of the headers and library. Gracefully handle case where zlib library 12467 can't be loaded. 12468 12469 *Steve Henson* 12470 12471 * Several fixes and enhancements to the OID generation code. The old code 12472 sometimes allowed invalid OIDs (1.X for X >= 40 for example), couldn't 12473 handle numbers larger than ULONG_MAX, truncated printing and had a 12474 non standard OBJ_obj2txt() behaviour. 12475 12476 *Steve Henson* 12477 12478 * Add support for building of engines under engine/ as shared libraries 12479 under VC++ build system. 12480 12481 *Steve Henson* 12482 12483 * Corrected the numerous bugs in the Win32 path splitter in DSO. 12484 Hopefully, we will not see any false combination of paths any more. 12485 12486 *Richard Levitte* 12487 12488### Changes between 0.9.8 and 0.9.8a [11 Oct 2005] 12489 12490 * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING 12491 (part of SSL_OP_ALL). This option used to disable the 12492 countermeasure against man-in-the-middle protocol-version 12493 rollback in the SSL 2.0 server implementation, which is a bad 12494 idea. ([CVE-2005-2969]) 12495 12496 *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center 12497 for Information Security, National Institute of Advanced Industrial 12498 Science and Technology [AIST], Japan)* 12499 12500 * Add two function to clear and return the verify parameter flags. 12501 12502 *Steve Henson* 12503 12504 * Keep cipherlists sorted in the source instead of sorting them at 12505 runtime, thus removing the need for a lock. 12506 12507 *Nils Larsch* 12508 12509 * Avoid some small subgroup attacks in Diffie-Hellman. 12510 12511 *Nick Mathewson and Ben Laurie* 12512 12513 * Add functions for well-known primes. 12514 12515 *Nick Mathewson* 12516 12517 * Extended Windows CE support. 12518 12519 *Satoshi Nakamura and Andy Polyakov* 12520 12521 * Initialize SSL_METHOD structures at compile time instead of during 12522 runtime, thus removing the need for a lock. 12523 12524 *Steve Henson* 12525 12526 * Make PKCS7_decrypt() work even if no certificate is supplied by 12527 attempting to decrypt each encrypted key in turn. Add support to 12528 smime utility. 12529 12530 *Steve Henson* 12531 12532### Changes between 0.9.7h and 0.9.8 [05 Jul 2005] 12533 12534[NB: OpenSSL 0.9.7i and later 0.9.7 patch levels were released after 12535OpenSSL 0.9.8.] 12536 12537 * Add libcrypto.pc and libssl.pc for those who feel they need them. 12538 12539 *Richard Levitte* 12540 12541 * Change CA.sh and CA.pl so they don't bundle the CSR and the private 12542 key into the same file any more. 12543 12544 *Richard Levitte* 12545 12546 * Add initial support for Win64, both IA64 and AMD64/x64 flavors. 12547 12548 *Andy Polyakov* 12549 12550 * Add -utf8 command line and config file option to 'ca'. 12551 12552 *Stefan <stf@udoma.org* 12553 12554 * Removed the macro des_crypt(), as it seems to conflict with some 12555 libraries. Use DES_crypt(). 12556 12557 *Richard Levitte* 12558 12559 * Correct naming of the 'chil' and '4758cca' ENGINEs. This 12560 involves renaming the source and generated shared-libs for 12561 both. The engines will accept the corrected or legacy ids 12562 ('ncipher' and '4758_cca' respectively) when binding. NB, 12563 this only applies when building 'shared'. 12564 12565 *Corinna Vinschen <vinschen@redhat.com> and Geoff Thorpe* 12566 12567 * Add attribute functions to EVP_PKEY structure. Modify 12568 PKCS12_create() to recognize a CSP name attribute and 12569 use it. Make -CSP option work again in pkcs12 utility. 12570 12571 *Steve Henson* 12572 12573 * Add new functionality to the bn blinding code: 12574 - automatic re-creation of the BN_BLINDING parameters after 12575 a fixed number of uses (currently 32) 12576 - add new function for parameter creation 12577 - introduce flags to control the update behaviour of the 12578 BN_BLINDING parameters 12579 - hide BN_BLINDING structure 12580 Add a second BN_BLINDING slot to the RSA structure to improve 12581 performance when a single RSA object is shared among several 12582 threads. 12583 12584 *Nils Larsch* 12585 12586 * Add support for DTLS. 12587 12588 *Nagendra Modadugu <nagendra@cs.stanford.edu> and Ben Laurie* 12589 12590 * Add support for DER encoded private keys (SSL_FILETYPE_ASN1) 12591 to SSL_CTX_use_PrivateKey_file() and SSL_use_PrivateKey_file() 12592 12593 *Walter Goulet* 12594 12595 * Remove buggy and incomplete DH cert support from 12596 ssl/ssl_rsa.c and ssl/s3_both.c 12597 12598 *Nils Larsch* 12599 12600 * Use SHA-1 instead of MD5 as the default digest algorithm for 12601 the `apps/openssl` commands. 12602 12603 *Nils Larsch* 12604 12605 * Compile clean with "-Wall -Wmissing-prototypes 12606 -Wstrict-prototypes -Wmissing-declarations -Werror". Currently 12607 DEBUG_SAFESTACK must also be set. 12608 12609 *Ben Laurie* 12610 12611 * Change ./Configure so that certain algorithms can be disabled by default. 12612 The new counterpiece to "no-xxx" is "enable-xxx". 12613 12614 The patented RC5 and MDC2 algorithms will now be disabled unless 12615 "enable-rc5" and "enable-mdc2", respectively, are specified. 12616 12617 (IDEA remains enabled despite being patented. This is because IDEA 12618 is frequently required for interoperability, and there is no license 12619 fee for non-commercial use. As before, "no-idea" can be used to 12620 avoid this algorithm.) 12621 12622 *Bodo Moeller* 12623 12624 * Add processing of proxy certificates (see RFC 3820). This work was 12625 sponsored by KTH (The Royal Institute of Technology in Stockholm) and 12626 EGEE (Enabling Grids for E-science in Europe). 12627 12628 *Richard Levitte* 12629 12630 * RC4 performance overhaul on modern architectures/implementations, such 12631 as Intel P4, IA-64 and AMD64. 12632 12633 *Andy Polyakov* 12634 12635 * New utility extract-section.pl. This can be used specify an alternative 12636 section number in a pod file instead of having to treat each file as 12637 a separate case in Makefile. This can be done by adding two lines to the 12638 pod file: 12639 12640 =for comment openssl_section:XXX 12641 12642 The blank line is mandatory. 12643 12644 *Steve Henson* 12645 12646 * New arguments -certform, -keyform and -pass for s_client and s_server 12647 to allow alternative format key and certificate files and passphrase 12648 sources. 12649 12650 *Steve Henson* 12651 12652 * New structure X509_VERIFY_PARAM which combines current verify parameters, 12653 update associated structures and add various utility functions. 12654 12655 Add new policy related verify parameters, include policy checking in 12656 standard verify code. Enhance 'smime' application with extra parameters 12657 to support policy checking and print out. 12658 12659 *Steve Henson* 12660 12661 * Add a new engine to support VIA PadLock ACE extensions in the VIA C3 12662 Nehemiah processors. These extensions support AES encryption in hardware 12663 as well as RNG (though RNG support is currently disabled). 12664 12665 *Michal Ludvig <michal@logix.cz>, with help from Andy Polyakov* 12666 12667 * Deprecate `BN_[get|set]_params()` functions (they were ignored internally). 12668 12669 *Geoff Thorpe* 12670 12671 * New FIPS 180-2 algorithms, SHA-224/-256/-384/-512 are implemented. 12672 12673 *Andy Polyakov and a number of other people* 12674 12675 * Improved PowerPC platform support. Most notably BIGNUM assembler 12676 implementation contributed by IBM. 12677 12678 *Suresh Chari, Peter Waltenberg, Andy Polyakov* 12679 12680 * The new 'RSA_generate_key_ex' function now takes a BIGNUM for the public 12681 exponent rather than 'unsigned long'. There is a corresponding change to 12682 the new 'rsa_keygen' element of the RSA_METHOD structure. 12683 12684 *Jelte Jansen, Geoff Thorpe* 12685 12686 * Functionality for creating the initial serial number file is now 12687 moved from CA.pl to the 'ca' utility with a new option -create_serial. 12688 12689 (Before OpenSSL 0.9.7e, CA.pl used to initialize the serial 12690 number file to 1, which is bound to cause problems. To avoid 12691 the problems while respecting compatibility between different 0.9.7 12692 patchlevels, 0.9.7e employed 'openssl x509 -next_serial' in 12693 CA.pl for serial number initialization. With the new release 0.9.8, 12694 we can fix the problem directly in the 'ca' utility.) 12695 12696 *Steve Henson* 12697 12698 * Reduced header interdependencies by declaring more opaque objects in 12699 ossl_typ.h. As a consequence, including some headers (eg. engine.h) will 12700 give fewer recursive includes, which could break lazy source code - so 12701 this change is covered by the OPENSSL_NO_DEPRECATED symbol. As always, 12702 developers should define this symbol when building and using openssl to 12703 ensure they track the recommended behaviour, interfaces, [etc], but 12704 backwards-compatible behaviour prevails when this isn't defined. 12705 12706 *Geoff Thorpe* 12707 12708 * New function X509_POLICY_NODE_print() which prints out policy nodes. 12709 12710 *Steve Henson* 12711 12712 * Add new EVP function EVP_CIPHER_CTX_rand_key and associated functionality. 12713 This will generate a random key of the appropriate length based on the 12714 cipher context. The EVP_CIPHER can provide its own random key generation 12715 routine to support keys of a specific form. This is used in the des and 12716 3des routines to generate a key of the correct parity. Update S/MIME 12717 code to use new functions and hence generate correct parity DES keys. 12718 Add EVP_CHECK_DES_KEY #define to return an error if the key is not 12719 valid (weak or incorrect parity). 12720 12721 *Steve Henson* 12722 12723 * Add a local set of CRLs that can be used by X509_verify_cert() as well 12724 as looking them up. This is useful when the verified structure may contain 12725 CRLs, for example PKCS#7 signedData. Modify PKCS7_verify() to use any CRLs 12726 present unless the new PKCS7_NO_CRL flag is asserted. 12727 12728 *Steve Henson* 12729 12730 * Extend ASN1 oid configuration module. It now additionally accepts the 12731 syntax: 12732 12733 shortName = some long name, 1.2.3.4 12734 12735 *Steve Henson* 12736 12737 * Reimplemented the BN_CTX implementation. There is now no more static 12738 limitation on the number of variables it can handle nor the depth of the 12739 "stack" handling for BN_CTX_start()/BN_CTX_end() pairs. The stack 12740 information can now expand as required, and rather than having a single 12741 static array of bignums, BN_CTX now uses a linked-list of such arrays 12742 allowing it to expand on demand whilst maintaining the usefulness of 12743 BN_CTX's "bundling". 12744 12745 *Geoff Thorpe* 12746 12747 * Add a missing BN_CTX parameter to the 'rsa_mod_exp' callback in RSA_METHOD 12748 to allow all RSA operations to function using a single BN_CTX. 12749 12750 *Geoff Thorpe* 12751 12752 * Preliminary support for certificate policy evaluation and checking. This 12753 is initially intended to pass the tests outlined in "Conformance Testing 12754 of Relying Party Client Certificate Path Processing Logic" v1.07. 12755 12756 *Steve Henson* 12757 12758 * bn_dup_expand() has been deprecated, it was introduced in 0.9.7 and 12759 remained unused and not that useful. A variety of other little bignum 12760 tweaks and fixes have also been made continuing on from the audit (see 12761 below). 12762 12763 *Geoff Thorpe* 12764 12765 * Constify all or almost all d2i, c2i, s2i and r2i functions, along with 12766 associated ASN1, EVP and SSL functions and old ASN1 macros. 12767 12768 *Richard Levitte* 12769 12770 * BN_zero() only needs to set 'top' and 'neg' to zero for correct results, 12771 and this should never fail. So the return value from the use of 12772 BN_set_word() (which can fail due to needless expansion) is now deprecated; 12773 if OPENSSL_NO_DEPRECATED is defined, BN_zero() is a void macro. 12774 12775 *Geoff Thorpe* 12776 12777 * BN_CTX_get() should return zero-valued bignums, providing the same 12778 initialised value as BN_new(). 12779 12780 *Geoff Thorpe, suggested by Ulf Möller* 12781 12782 * Support for inhibitAnyPolicy certificate extension. 12783 12784 *Steve Henson* 12785 12786 * An audit of the BIGNUM code is underway, for which debugging code is 12787 enabled when BN_DEBUG is defined. This makes stricter enforcements on what 12788 is considered valid when processing BIGNUMs, and causes execution to 12789 assert() when a problem is discovered. If BN_DEBUG_RAND is defined, 12790 further steps are taken to deliberately pollute unused data in BIGNUM 12791 structures to try and expose faulty code further on. For now, openssl will 12792 (in its default mode of operation) continue to tolerate the inconsistent 12793 forms that it has tolerated in the past, but authors and packagers should 12794 consider trying openssl and their own applications when compiled with 12795 these debugging symbols defined. It will help highlight potential bugs in 12796 their own code, and will improve the test coverage for OpenSSL itself. At 12797 some point, these tighter rules will become openssl's default to improve 12798 maintainability, though the assert()s and other overheads will remain only 12799 in debugging configurations. See bn.h for more details. 12800 12801 *Geoff Thorpe, Nils Larsch, Ulf Möller* 12802 12803 * BN_CTX_init() has been deprecated, as BN_CTX is an opaque structure 12804 that can only be obtained through BN_CTX_new() (which implicitly 12805 initialises it). The presence of this function only made it possible 12806 to overwrite an existing structure (and cause memory leaks). 12807 12808 *Geoff Thorpe* 12809 12810 * Because of the callback-based approach for implementing LHASH as a 12811 template type, lh_insert() adds opaque objects to hash-tables and 12812 lh_doall() or lh_doall_arg() are typically used with a destructor callback 12813 to clean up those corresponding objects before destroying the hash table 12814 (and losing the object pointers). So some over-zealous constifications in 12815 LHASH have been relaxed so that lh_insert() does not take (nor store) the 12816 objects as "const" and the `lh_doall[_arg]` callback wrappers are not 12817 prototyped to have "const" restrictions on the object pointers they are 12818 given (and so aren't required to cast them away any more). 12819 12820 *Geoff Thorpe* 12821 12822 * The tmdiff.h API was so ugly and minimal that our own timing utility 12823 (speed) prefers to use its own implementation. The two implementations 12824 haven't been consolidated as yet (volunteers?) but the tmdiff API has had 12825 its object type properly exposed (MS_TM) instead of casting to/from 12826 `char *`. This may still change yet if someone realises MS_TM and 12827 `ms_time_***` 12828 aren't necessarily the greatest nomenclatures - but this is what was used 12829 internally to the implementation so I've used that for now. 12830 12831 *Geoff Thorpe* 12832 12833 * Ensure that deprecated functions do not get compiled when 12834 OPENSSL_NO_DEPRECATED is defined. Some "openssl" subcommands and a few of 12835 the self-tests were still using deprecated key-generation functions so 12836 these have been updated also. 12837 12838 *Geoff Thorpe* 12839 12840 * Reorganise PKCS#7 code to separate the digest location functionality 12841 into PKCS7_find_digest(), digest addition into PKCS7_bio_add_digest(). 12842 New function PKCS7_set_digest() to set the digest type for PKCS#7 12843 digestedData type. Add additional code to correctly generate the 12844 digestedData type and add support for this type in PKCS7 initialization 12845 functions. 12846 12847 *Steve Henson* 12848 12849 * New function PKCS7_set0_type_other() this initializes a PKCS7 12850 structure of type "other". 12851 12852 *Steve Henson* 12853 12854 * Fix prime generation loop in crypto/bn/bn_prime.pl by making 12855 sure the loop does correctly stop and breaking ("division by zero") 12856 modulus operations are not performed. The (pre-generated) prime 12857 table crypto/bn/bn_prime.h was already correct, but it could not be 12858 re-generated on some platforms because of the "division by zero" 12859 situation in the script. 12860 12861 *Ralf S. Engelschall* 12862 12863 * Update support for ECC-based TLS ciphersuites according to 12864 draft-ietf-tls-ecc-03.txt: the KDF1 key derivation function with 12865 SHA-1 now is only used for "small" curves (where the 12866 representation of a field element takes up to 24 bytes); for 12867 larger curves, the field element resulting from ECDH is directly 12868 used as premaster secret. 12869 12870 *Douglas Stebila (Sun Microsystems Laboratories)* 12871 12872 * Add code for kP+lQ timings to crypto/ec/ectest.c, and add SEC2 12873 curve secp160r1 to the tests. 12874 12875 *Douglas Stebila (Sun Microsystems Laboratories)* 12876 12877 * Add the possibility to load symbols globally with DSO. 12878 12879 *Götz Babin-Ebell <babin-ebell@trustcenter.de> via Richard Levitte* 12880 12881 * Add the functions ERR_set_mark() and ERR_pop_to_mark() for better 12882 control of the error stack. 12883 12884 *Richard Levitte* 12885 12886 * Add support for STORE in ENGINE. 12887 12888 *Richard Levitte* 12889 12890 * Add the STORE type. The intention is to provide a common interface 12891 to certificate and key stores, be they simple file-based stores, or 12892 HSM-type store, or LDAP stores, or... 12893 NOTE: The code is currently UNTESTED and isn't really used anywhere. 12894 12895 *Richard Levitte* 12896 12897 * Add a generic structure called OPENSSL_ITEM. This can be used to 12898 pass a list of arguments to any function as well as provide a way 12899 for a function to pass data back to the caller. 12900 12901 *Richard Levitte* 12902 12903 * Add the functions BUF_strndup() and BUF_memdup(). BUF_strndup() 12904 works like BUF_strdup() but can be used to duplicate a portion of 12905 a string. The copy gets NUL-terminated. BUF_memdup() duplicates 12906 a memory area. 12907 12908 *Richard Levitte* 12909 12910 * Add the function sk_find_ex() which works like sk_find(), but will 12911 return an index to an element even if an exact match couldn't be 12912 found. The index is guaranteed to point at the element where the 12913 searched-for key would be inserted to preserve sorting order. 12914 12915 *Richard Levitte* 12916 12917 * Add the function OBJ_bsearch_ex() which works like OBJ_bsearch() but 12918 takes an extra flags argument for optional functionality. Currently, 12919 the following flags are defined: 12920 12921 OBJ_BSEARCH_VALUE_ON_NOMATCH 12922 This one gets OBJ_bsearch_ex() to return a pointer to the first 12923 element where the comparing function returns a negative or zero 12924 number. 12925 12926 OBJ_BSEARCH_FIRST_VALUE_ON_MATCH 12927 This one gets OBJ_bsearch_ex() to return a pointer to the first 12928 element where the comparing function returns zero. This is useful 12929 if there are more than one element where the comparing function 12930 returns zero. 12931 12932 *Richard Levitte* 12933 12934 * Make it possible to create self-signed certificates with 'openssl ca' 12935 in such a way that the self-signed certificate becomes part of the 12936 CA database and uses the same mechanisms for serial number generation 12937 as all other certificate signing. The new flag '-selfsign' enables 12938 this functionality. Adapt CA.sh and CA.pl.in. 12939 12940 *Richard Levitte* 12941 12942 * Add functionality to check the public key of a certificate request 12943 against a given private. This is useful to check that a certificate 12944 request can be signed by that key (self-signing). 12945 12946 *Richard Levitte* 12947 12948 * Make it possible to have multiple active certificates with the same 12949 subject in the CA index file. This is done only if the keyword 12950 'unique_subject' is set to 'no' in the main CA section (default 12951 if 'CA_default') of the configuration file. The value is saved 12952 with the database itself in a separate index attribute file, 12953 named like the index file with '.attr' appended to the name. 12954 12955 *Richard Levitte* 12956 12957 * Generate multi-valued AVAs using '+' notation in config files for 12958 req and dirName. 12959 12960 *Steve Henson* 12961 12962 * Support for nameConstraints certificate extension. 12963 12964 *Steve Henson* 12965 12966 * Support for policyConstraints certificate extension. 12967 12968 *Steve Henson* 12969 12970 * Support for policyMappings certificate extension. 12971 12972 *Steve Henson* 12973 12974 * Make sure the default DSA_METHOD implementation only uses its 12975 dsa_mod_exp() and/or bn_mod_exp() handlers if they are non-NULL, 12976 and change its own handlers to be NULL so as to remove unnecessary 12977 indirection. This lets alternative implementations fallback to the 12978 default implementation more easily. 12979 12980 *Geoff Thorpe* 12981 12982 * Support for directoryName in GeneralName related extensions 12983 in config files. 12984 12985 *Steve Henson* 12986 12987 * Make it possible to link applications using Makefile.shared. 12988 Make that possible even when linking against static libraries! 12989 12990 *Richard Levitte* 12991 12992 * Support for single pass processing for S/MIME signing. This now 12993 means that S/MIME signing can be done from a pipe, in addition 12994 cleartext signing (multipart/signed type) is effectively streaming 12995 and the signed data does not need to be all held in memory. 12996 12997 This is done with a new flag PKCS7_STREAM. When this flag is set 12998 PKCS7_sign() only initializes the PKCS7 structure and the actual signing 12999 is done after the data is output (and digests calculated) in 13000 SMIME_write_PKCS7(). 13001 13002 *Steve Henson* 13003 13004 * Add full support for -rpath/-R, both in shared libraries and 13005 applications, at least on the platforms where it's known how 13006 to do it. 13007 13008 *Richard Levitte* 13009 13010 * In crypto/ec/ec_mult.c, implement fast point multiplication with 13011 precomputation, based on wNAF splitting: EC_GROUP_precompute_mult() 13012 will now compute a table of multiples of the generator that 13013 makes subsequent invocations of EC_POINTs_mul() or EC_POINT_mul() 13014 faster (notably in the case of a single point multiplication, 13015 scalar * generator). 13016 13017 *Nils Larsch, Bodo Moeller* 13018 13019 * IPv6 support for certificate extensions. The various extensions 13020 which use the IP:a.b.c.d can now take IPv6 addresses using the 13021 formats of RFC1884 2.2 . IPv6 addresses are now also displayed 13022 correctly. 13023 13024 *Steve Henson* 13025 13026 * Added an ENGINE that implements RSA by performing private key 13027 exponentiations with the GMP library. The conversions to and from 13028 GMP's mpz_t format aren't optimised nor are any montgomery forms 13029 cached, and on x86 it appears OpenSSL's own performance has caught up. 13030 However there are likely to be other architectures where GMP could 13031 provide a boost. This ENGINE is not built in by default, but it can be 13032 specified at Configure time and should be accompanied by the necessary 13033 linker additions, eg; 13034 ./config -DOPENSSL_USE_GMP -lgmp 13035 13036 *Geoff Thorpe* 13037 13038 * "openssl engine" will not display ENGINE/DSO load failure errors when 13039 testing availability of engines with "-t" - the old behaviour is 13040 produced by increasing the feature's verbosity with "-tt". 13041 13042 *Geoff Thorpe* 13043 13044 * ECDSA routines: under certain error conditions uninitialized BN objects 13045 could be freed. Solution: make sure initialization is performed early 13046 enough. (Reported and fix supplied by Nils Larsch <nla@trustcenter.de> 13047 via PR#459) 13048 13049 *Lutz Jaenicke* 13050 13051 * Key-generation can now be implemented in RSA_METHOD, DSA_METHOD 13052 and DH_METHOD (eg. by ENGINE implementations) to override the normal 13053 software implementations. For DSA and DH, parameter generation can 13054 also be overridden by providing the appropriate method callbacks. 13055 13056 *Geoff Thorpe* 13057 13058 * Change the "progress" mechanism used in key-generation and 13059 primality testing to functions that take a new BN_GENCB pointer in 13060 place of callback/argument pairs. The new API functions have `_ex` 13061 postfixes and the older functions are reimplemented as wrappers for 13062 the new ones. The OPENSSL_NO_DEPRECATED symbol can be used to hide 13063 declarations of the old functions to help (graceful) attempts to 13064 migrate to the new functions. Also, the new key-generation API 13065 functions operate on a caller-supplied key-structure and return 13066 success/failure rather than returning a key or NULL - this is to 13067 help make "keygen" another member function of RSA_METHOD etc. 13068 13069 Example for using the new callback interface: 13070 13071 int (*my_callback)(int a, int b, BN_GENCB *cb) = ...; 13072 void *my_arg = ...; 13073 BN_GENCB my_cb; 13074 13075 BN_GENCB_set(&my_cb, my_callback, my_arg); 13076 13077 return BN_is_prime_ex(some_bignum, BN_prime_checks, NULL, &cb); 13078 /* For the meaning of a, b in calls to my_callback(), see the 13079 * documentation of the function that calls the callback. 13080 * cb will point to my_cb; my_arg can be retrieved as cb->arg. 13081 * my_callback should return 1 if it wants BN_is_prime_ex() 13082 * to continue, or 0 to stop. 13083 */ 13084 13085 *Geoff Thorpe* 13086 13087 * Change the ZLIB compression method to be stateful, and make it 13088 available to TLS with the number defined in 13089 draft-ietf-tls-compression-04.txt. 13090 13091 *Richard Levitte* 13092 13093 * Add the ASN.1 structures and functions for CertificatePair, which 13094 is defined as follows (according to X.509_4thEditionDraftV6.pdf): 13095 13096 CertificatePair ::= SEQUENCE { 13097 forward [0] Certificate OPTIONAL, 13098 reverse [1] Certificate OPTIONAL, 13099 -- at least one of the pair shall be present -- } 13100 13101 Also implement the PEM functions to read and write certificate 13102 pairs, and defined the PEM tag as "CERTIFICATE PAIR". 13103 13104 This needed to be defined, mostly for the sake of the LDAP 13105 attribute crossCertificatePair, but may prove useful elsewhere as 13106 well. 13107 13108 *Richard Levitte* 13109 13110 * Make it possible to inhibit symlinking of shared libraries in 13111 Makefile.shared, for Cygwin's sake. 13112 13113 *Richard Levitte* 13114 13115 * Extend the BIGNUM API by creating a function 13116 void BN_set_negative(BIGNUM *a, int neg); 13117 and a macro that behave like 13118 int BN_is_negative(const BIGNUM *a); 13119 13120 to avoid the need to access 'a->neg' directly in applications. 13121 13122 *Nils Larsch* 13123 13124 * Implement fast modular reduction for pseudo-Mersenne primes 13125 used in NIST curves (crypto/bn/bn_nist.c, crypto/ec/ecp_nist.c). 13126 EC_GROUP_new_curve_GFp() will now automatically use this 13127 if applicable. 13128 13129 *Nils Larsch <nla@trustcenter.de>* 13130 13131 * Add new lock type (CRYPTO_LOCK_BN). 13132 13133 *Bodo Moeller* 13134 13135 * Change the ENGINE framework to automatically load engines 13136 dynamically from specific directories unless they could be 13137 found to already be built in or loaded. Move all the 13138 current engines except for the cryptodev one to a new 13139 directory engines/. 13140 The engines in engines/ are built as shared libraries if 13141 the "shared" options was given to ./Configure or ./config. 13142 Otherwise, they are inserted in libcrypto.a. 13143 /usr/local/ssl/engines is the default directory for dynamic 13144 engines, but that can be overridden at configure time through 13145 the usual use of --prefix and/or --openssldir, and at run 13146 time with the environment variable OPENSSL_ENGINES. 13147 13148 *Geoff Thorpe and Richard Levitte* 13149 13150 * Add Makefile.shared, a helper makefile to build shared 13151 libraries. Adapt Makefile.org. 13152 13153 *Richard Levitte* 13154 13155 * Add version info to Win32 DLLs. 13156 13157 *Peter 'Luna' Runestig" <peter@runestig.com>* 13158 13159 * Add new 'medium level' PKCS#12 API. Certificates and keys 13160 can be added using this API to created arbitrary PKCS#12 13161 files while avoiding the low-level API. 13162 13163 New options to PKCS12_create(), key or cert can be NULL and 13164 will then be omitted from the output file. The encryption 13165 algorithm NIDs can be set to -1 for no encryption, the mac 13166 iteration count can be set to 0 to omit the mac. 13167 13168 Enhance pkcs12 utility by making the -nokeys and -nocerts 13169 options work when creating a PKCS#12 file. New option -nomac 13170 to omit the mac, NONE can be set for an encryption algorithm. 13171 New code is modified to use the enhanced PKCS12_create() 13172 instead of the low-level API. 13173 13174 *Steve Henson* 13175 13176 * Extend ASN1 encoder to support indefinite length constructed 13177 encoding. This can output sequences tags and octet strings in 13178 this form. Modify pk7_asn1.c to support indefinite length 13179 encoding. This is experimental and needs additional code to 13180 be useful, such as an ASN1 bio and some enhanced streaming 13181 PKCS#7 code. 13182 13183 Extend template encode functionality so that tagging is passed 13184 down to the template encoder. 13185 13186 *Steve Henson* 13187 13188 * Let 'openssl req' fail if an argument to '-newkey' is not 13189 recognized instead of using RSA as a default. 13190 13191 *Bodo Moeller* 13192 13193 * Add support for ECC-based ciphersuites from draft-ietf-tls-ecc-01.txt. 13194 As these are not official, they are not included in "ALL"; 13195 the "ECCdraft" ciphersuite group alias can be used to select them. 13196 13197 *Vipul Gupta and Sumit Gupta (Sun Microsystems Laboratories)* 13198 13199 * Add ECDH engine support. 13200 13201 *Nils Gura and Douglas Stebila (Sun Microsystems Laboratories)* 13202 13203 * Add ECDH in new directory crypto/ecdh/. 13204 13205 *Douglas Stebila (Sun Microsystems Laboratories)* 13206 13207 * Let BN_rand_range() abort with an error after 100 iterations 13208 without success (which indicates a broken PRNG). 13209 13210 *Bodo Moeller* 13211 13212 * Change BN_mod_sqrt() so that it verifies that the input value 13213 is really the square of the return value. (Previously, 13214 BN_mod_sqrt would show GIGO behaviour.) 13215 13216 *Bodo Moeller* 13217 13218 * Add named elliptic curves over binary fields from X9.62, SECG, 13219 and WAP/WTLS; add OIDs that were still missing. 13220 13221 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* 13222 13223 * Extend the EC library for elliptic curves over binary fields 13224 (new files ec2_smpl.c, ec2_smpt.c, ec2_mult.c in crypto/ec/). 13225 New EC_METHOD: 13226 13227 EC_GF2m_simple_method 13228 13229 New API functions: 13230 13231 EC_GROUP_new_curve_GF2m 13232 EC_GROUP_set_curve_GF2m 13233 EC_GROUP_get_curve_GF2m 13234 EC_POINT_set_affine_coordinates_GF2m 13235 EC_POINT_get_affine_coordinates_GF2m 13236 EC_POINT_set_compressed_coordinates_GF2m 13237 13238 Point compression for binary fields is disabled by default for 13239 patent reasons (compile with OPENSSL_EC_BIN_PT_COMP defined to 13240 enable it). 13241 13242 As binary polynomials are represented as BIGNUMs, various members 13243 of the EC_GROUP and EC_POINT data structures can be shared 13244 between the implementations for prime fields and binary fields; 13245 the above `..._GF2m functions` (except for EX_GROUP_new_curve_GF2m) 13246 are essentially identical to their `..._GFp` counterparts. 13247 (For simplicity, the `..._GFp` prefix has been dropped from 13248 various internal method names.) 13249 13250 An internal 'field_div' method (similar to 'field_mul' and 13251 'field_sqr') has been added; this is used only for binary fields. 13252 13253 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* 13254 13255 * Optionally dispatch EC_POINT_mul(), EC_POINT_precompute_mult() 13256 through methods ('mul', 'precompute_mult'). 13257 13258 The generic implementations (now internally called 'ec_wNAF_mul' 13259 and 'ec_wNAF_precomputed_mult') remain the default if these 13260 methods are undefined. 13261 13262 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* 13263 13264 * New function EC_GROUP_get_degree, which is defined through 13265 EC_METHOD. For curves over prime fields, this returns the bit 13266 length of the modulus. 13267 13268 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* 13269 13270 * New functions EC_GROUP_dup, EC_POINT_dup. 13271 (These simply call ..._new and ..._copy). 13272 13273 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* 13274 13275 * Add binary polynomial arithmetic software in crypto/bn/bn_gf2m.c. 13276 Polynomials are represented as BIGNUMs (where the sign bit is not 13277 used) in the following functions [macros]: 13278 13279 BN_GF2m_add 13280 BN_GF2m_sub [= BN_GF2m_add] 13281 BN_GF2m_mod [wrapper for BN_GF2m_mod_arr] 13282 BN_GF2m_mod_mul [wrapper for BN_GF2m_mod_mul_arr] 13283 BN_GF2m_mod_sqr [wrapper for BN_GF2m_mod_sqr_arr] 13284 BN_GF2m_mod_inv 13285 BN_GF2m_mod_exp [wrapper for BN_GF2m_mod_exp_arr] 13286 BN_GF2m_mod_sqrt [wrapper for BN_GF2m_mod_sqrt_arr] 13287 BN_GF2m_mod_solve_quad [wrapper for BN_GF2m_mod_solve_quad_arr] 13288 BN_GF2m_cmp [= BN_ucmp] 13289 13290 (Note that only the 'mod' functions are actually for fields GF(2^m). 13291 BN_GF2m_add() is misnomer, but this is for the sake of consistency.) 13292 13293 For some functions, an the irreducible polynomial defining a 13294 field can be given as an 'unsigned int[]' with strictly 13295 decreasing elements giving the indices of those bits that are set; 13296 i.e., p[] represents the polynomial 13297 f(t) = t^p[0] + t^p[1] + ... + t^p[k] 13298 where 13299 p[0] > p[1] > ... > p[k] = 0. 13300 This applies to the following functions: 13301 13302 BN_GF2m_mod_arr 13303 BN_GF2m_mod_mul_arr 13304 BN_GF2m_mod_sqr_arr 13305 BN_GF2m_mod_inv_arr [wrapper for BN_GF2m_mod_inv] 13306 BN_GF2m_mod_div_arr [wrapper for BN_GF2m_mod_div] 13307 BN_GF2m_mod_exp_arr 13308 BN_GF2m_mod_sqrt_arr 13309 BN_GF2m_mod_solve_quad_arr 13310 BN_GF2m_poly2arr 13311 BN_GF2m_arr2poly 13312 13313 Conversion can be performed by the following functions: 13314 13315 BN_GF2m_poly2arr 13316 BN_GF2m_arr2poly 13317 13318 bntest.c has additional tests for binary polynomial arithmetic. 13319 13320 Two implementations for BN_GF2m_mod_div() are available. 13321 The default algorithm simply uses BN_GF2m_mod_inv() and 13322 BN_GF2m_mod_mul(). The alternative algorithm is compiled in only 13323 if OPENSSL_SUN_GF2M_DIV is defined (patent pending; read the 13324 copyright notice in crypto/bn/bn_gf2m.c before enabling it). 13325 13326 *Sheueling Chang Shantz and Douglas Stebila (Sun Microsystems Laboratories)* 13327 13328 * Add new error code 'ERR_R_DISABLED' that can be used when some 13329 functionality is disabled at compile-time. 13330 13331 *Douglas Stebila <douglas.stebila@sun.com>* 13332 13333 * Change default behaviour of 'openssl asn1parse' so that more 13334 information is visible when viewing, e.g., a certificate: 13335 13336 Modify asn1_parse2 (crypto/asn1/asn1_par.c) so that in non-'dump' 13337 mode the content of non-printable OCTET STRINGs is output in a 13338 style similar to INTEGERs, but with '[HEX DUMP]' prepended to 13339 avoid the appearance of a printable string. 13340 13341 *Nils Larsch <nla@trustcenter.de>* 13342 13343 * Add 'asn1_flag' and 'asn1_form' member to EC_GROUP with access 13344 functions 13345 EC_GROUP_set_asn1_flag() 13346 EC_GROUP_get_asn1_flag() 13347 EC_GROUP_set_point_conversion_form() 13348 EC_GROUP_get_point_conversion_form() 13349 These control ASN1 encoding details: 13350 - Curves (i.e., groups) are encoded explicitly unless asn1_flag 13351 has been set to OPENSSL_EC_NAMED_CURVE. 13352 - Points are encoded in uncompressed form by default; options for 13353 asn1_for are as for point2oct, namely 13354 POINT_CONVERSION_COMPRESSED 13355 POINT_CONVERSION_UNCOMPRESSED 13356 POINT_CONVERSION_HYBRID 13357 13358 Also add 'seed' and 'seed_len' members to EC_GROUP with access 13359 functions 13360 EC_GROUP_set_seed() 13361 EC_GROUP_get0_seed() 13362 EC_GROUP_get_seed_len() 13363 This is used only for ASN1 purposes (so far). 13364 13365 *Nils Larsch <nla@trustcenter.de>* 13366 13367 * Add 'field_type' member to EC_METHOD, which holds the NID 13368 of the appropriate field type OID. The new function 13369 EC_METHOD_get_field_type() returns this value. 13370 13371 *Nils Larsch <nla@trustcenter.de>* 13372 13373 * Add functions 13374 EC_POINT_point2bn() 13375 EC_POINT_bn2point() 13376 EC_POINT_point2hex() 13377 EC_POINT_hex2point() 13378 providing useful interfaces to EC_POINT_point2oct() and 13379 EC_POINT_oct2point(). 13380 13381 *Nils Larsch <nla@trustcenter.de>* 13382 13383 * Change internals of the EC library so that the functions 13384 EC_GROUP_set_generator() 13385 EC_GROUP_get_generator() 13386 EC_GROUP_get_order() 13387 EC_GROUP_get_cofactor() 13388 are implemented directly in crypto/ec/ec_lib.c and not dispatched 13389 to methods, which would lead to unnecessary code duplication when 13390 adding different types of curves. 13391 13392 *Nils Larsch <nla@trustcenter.de> with input by Bodo Moeller* 13393 13394 * Implement compute_wNAF (crypto/ec/ec_mult.c) without BIGNUM 13395 arithmetic, and such that modified wNAFs are generated 13396 (which avoid length expansion in many cases). 13397 13398 *Bodo Moeller* 13399 13400 * Add a function EC_GROUP_check_discriminant() (defined via 13401 EC_METHOD) that verifies that the curve discriminant is non-zero. 13402 13403 Add a function EC_GROUP_check() that makes some sanity tests 13404 on a EC_GROUP, its generator and order. This includes 13405 EC_GROUP_check_discriminant(). 13406 13407 *Nils Larsch <nla@trustcenter.de>* 13408 13409 * Add ECDSA in new directory crypto/ecdsa/. 13410 13411 Add applications 'openssl ecparam' and 'openssl ecdsa' 13412 (these are based on 'openssl dsaparam' and 'openssl dsa'). 13413 13414 ECDSA support is also included in various other files across the 13415 library. Most notably, 13416 - 'openssl req' now has a '-newkey ecdsa:file' option; 13417 - EVP_PKCS82PKEY (crypto/evp/evp_pkey.c) now can handle ECDSA; 13418 - X509_PUBKEY_get (crypto/asn1/x_pubkey.c) and 13419 d2i_PublicKey (crypto/asn1/d2i_pu.c) have been modified to make 13420 them suitable for ECDSA where domain parameters must be 13421 extracted before the specific public key; 13422 - ECDSA engine support has been added. 13423 13424 *Nils Larsch <nla@trustcenter.de>* 13425 13426 * Include some named elliptic curves, and add OIDs from X9.62, 13427 SECG, and WAP/WTLS. Each curve can be obtained from the new 13428 function 13429 EC_GROUP_new_by_curve_name(), 13430 and the list of available named curves can be obtained with 13431 EC_get_builtin_curves(). 13432 Also add a 'curve_name' member to EC_GROUP objects, which can be 13433 accessed via 13434 EC_GROUP_set_curve_name() 13435 EC_GROUP_get_curve_name() 13436 13437 *Nils Larsch <larsch@trustcenter.de, Bodo Moeller* 13438 13439 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there 13440 was actually never needed) and in BN_mul(). The removal in BN_mul() 13441 required a small change in bn_mul_part_recursive() and the addition 13442 of the functions bn_cmp_part_words(), bn_sub_part_words() and 13443 bn_add_part_words(), which do the same thing as bn_cmp_words(), 13444 bn_sub_words() and bn_add_words() except they take arrays with 13445 differing sizes. 13446 13447 *Richard Levitte* 13448 13449### Changes between 0.9.7l and 0.9.7m [23 Feb 2007] 13450 13451 * Cleanse PEM buffers before freeing them since they may contain 13452 sensitive data. 13453 13454 *Benjamin Bennett <ben@psc.edu>* 13455 13456 * Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that 13457 a ciphersuite string such as "DEFAULT:RSA" cannot enable 13458 authentication-only ciphersuites. 13459 13460 *Bodo Moeller* 13461 13462 * Since AES128 and AES256 share a single mask bit in the logic of 13463 ssl/ssl_ciph.c, the code for masking out disabled ciphers needs a 13464 kludge to work properly if AES128 is available and AES256 isn't. 13465 13466 *Victor Duchovni* 13467 13468 * Expand security boundary to match 1.1.1 module. 13469 13470 *Steve Henson* 13471 13472 * Remove redundant features: hash file source, editing of test vectors 13473 modify fipsld to use external fips_premain.c signature. 13474 13475 *Steve Henson* 13476 13477 * New perl script mkfipsscr.pl to create shell scripts or batch files to 13478 run algorithm test programs. 13479 13480 *Steve Henson* 13481 13482 * Make algorithm test programs more tolerant of whitespace. 13483 13484 *Steve Henson* 13485 13486 * Have SSL/TLS server implementation tolerate "mismatched" record 13487 protocol version while receiving ClientHello even if the 13488 ClientHello is fragmented. (The server can't insist on the 13489 particular protocol version it has chosen before the ServerHello 13490 message has informed the client about his choice.) 13491 13492 *Bodo Moeller* 13493 13494 * Load error codes if they are not already present instead of using a 13495 static variable. This allows them to be cleanly unloaded and reloaded. 13496 13497 *Steve Henson* 13498 13499### Changes between 0.9.7k and 0.9.7l [28 Sep 2006] 13500 13501 * Introduce limits to prevent malicious keys being able to 13502 cause a denial of service. ([CVE-2006-2940]) 13503 13504 *Steve Henson, Bodo Moeller* 13505 13506 * Fix ASN.1 parsing of certain invalid structures that can result 13507 in a denial of service. ([CVE-2006-2937]) [Steve Henson] 13508 13509 * Fix buffer overflow in SSL_get_shared_ciphers() function. 13510 ([CVE-2006-3738]) [Tavis Ormandy and Will Drewry, Google Security Team] 13511 13512 * Fix SSL client code which could crash if connecting to a 13513 malicious SSLv2 server. ([CVE-2006-4343]) 13514 13515 *Tavis Ormandy and Will Drewry, Google Security Team* 13516 13517 * Change ciphersuite string processing so that an explicit 13518 ciphersuite selects this one ciphersuite (so that "AES256-SHA" 13519 will no longer include "AES128-SHA"), and any other similar 13520 ciphersuite (same bitmap) from *other* protocol versions (so that 13521 "RC4-MD5" will still include both the SSL 2.0 ciphersuite and the 13522 SSL 3.0/TLS 1.0 ciphersuite). This is a backport combining 13523 changes from 0.9.8b and 0.9.8d. 13524 13525 *Bodo Moeller* 13526 13527### Changes between 0.9.7j and 0.9.7k [05 Sep 2006] 13528 13529 * Avoid PKCS #1 v1.5 signature attack discovered by Daniel Bleichenbacher 13530 ([CVE-2006-4339]) [Ben Laurie and Google Security Team] 13531 13532 * Change the Unix randomness entropy gathering to use poll() when 13533 possible instead of select(), since the latter has some 13534 undesirable limitations. 13535 13536 *Darryl Miles via Richard Levitte and Bodo Moeller* 13537 13538 * Disable rogue ciphersuites: 13539 13540 - SSLv2 0x08 0x00 0x80 ("RC4-64-MD5") 13541 - SSLv3/TLSv1 0x00 0x61 ("EXP1024-RC2-CBC-MD5") 13542 - SSLv3/TLSv1 0x00 0x60 ("EXP1024-RC4-MD5") 13543 13544 The latter two were purportedly from 13545 draft-ietf-tls-56-bit-ciphersuites-0[01].txt, but do not really 13546 appear there. 13547 13548 Also deactivate the remaining ciphersuites from 13549 draft-ietf-tls-56-bit-ciphersuites-01.txt. These are just as 13550 unofficial, and the ID has long expired. 13551 13552 *Bodo Moeller* 13553 13554 * Fix RSA blinding Heisenbug (problems sometimes occurred on 13555 dual-core machines) and other potential thread-safety issues. 13556 13557 *Bodo Moeller* 13558 13559### Changes between 0.9.7i and 0.9.7j [04 May 2006] 13560 13561 * Adapt fipsld and the build system to link against the validated FIPS 13562 module in FIPS mode. 13563 13564 *Steve Henson* 13565 13566 * Fixes for VC++ 2005 build under Windows. 13567 13568 *Steve Henson* 13569 13570 * Add new Windows build target VC-32-GMAKE for VC++. This uses GNU make 13571 from a Windows bash shell such as MSYS. It is autodetected from the 13572 "config" script when run from a VC++ environment. Modify standard VC++ 13573 build to use fipscanister.o from the GNU make build. 13574 13575 *Steve Henson* 13576 13577### Changes between 0.9.7h and 0.9.7i [14 Oct 2005] 13578 13579 * Wrapped the definition of EVP_MAX_MD_SIZE in a #ifdef OPENSSL_FIPS. 13580 The value now differs depending on if you build for FIPS or not. 13581 BEWARE! A program linked with a shared FIPSed libcrypto can't be 13582 safely run with a non-FIPSed libcrypto, as it may crash because of 13583 the difference induced by this change. 13584 13585 *Andy Polyakov* 13586 13587### Changes between 0.9.7g and 0.9.7h [11 Oct 2005] 13588 13589 * Remove the functionality of SSL_OP_MSIE_SSLV2_RSA_PADDING 13590 (part of SSL_OP_ALL). This option used to disable the 13591 countermeasure against man-in-the-middle protocol-version 13592 rollback in the SSL 2.0 server implementation, which is a bad 13593 idea. ([CVE-2005-2969]) 13594 13595 *Bodo Moeller; problem pointed out by Yutaka Oiwa (Research Center 13596 for Information Security, National Institute of Advanced Industrial 13597 Science and Technology [AIST, Japan)]* 13598 13599 * Minimal support for X9.31 signatures and PSS padding modes. This is 13600 mainly for FIPS compliance and not fully integrated at this stage. 13601 13602 *Steve Henson* 13603 13604 * For DSA signing, unless DSA_FLAG_NO_EXP_CONSTTIME is set, perform 13605 the exponentiation using a fixed-length exponent. (Otherwise, 13606 the information leaked through timing could expose the secret key 13607 after many signatures; cf. Bleichenbacher's attack on DSA with 13608 biased k.) 13609 13610 *Bodo Moeller* 13611 13612 * Make a new fixed-window mod_exp implementation the default for 13613 RSA, DSA, and DH private-key operations so that the sequence of 13614 squares and multiplies and the memory access pattern are 13615 independent of the particular secret key. This will mitigate 13616 cache-timing and potential related attacks. 13617 13618 BN_mod_exp_mont_consttime() is the new exponentiation implementation, 13619 and this is automatically used by BN_mod_exp_mont() if the new flag 13620 BN_FLG_EXP_CONSTTIME is set for the exponent. RSA, DSA, and DH 13621 will use this BN flag for private exponents unless the flag 13622 RSA_FLAG_NO_EXP_CONSTTIME, DSA_FLAG_NO_EXP_CONSTTIME, or 13623 DH_FLAG_NO_EXP_CONSTTIME, respectively, is set. 13624 13625 *Matthew D Wood (Intel Corp), with some changes by Bodo Moeller* 13626 13627 * Change the client implementation for SSLv23_method() and 13628 SSLv23_client_method() so that is uses the SSL 3.0/TLS 1.0 13629 Client Hello message format if the SSL_OP_NO_SSLv2 option is set. 13630 (Previously, the SSL 2.0 backwards compatible Client Hello 13631 message format would be used even with SSL_OP_NO_SSLv2.) 13632 13633 *Bodo Moeller* 13634 13635 * Add support for smime-type MIME parameter in S/MIME messages which some 13636 clients need. 13637 13638 *Steve Henson* 13639 13640 * New function BN_MONT_CTX_set_locked() to set montgomery parameters in 13641 a threadsafe manner. Modify rsa code to use new function and add calls 13642 to dsa and dh code (which had race conditions before). 13643 13644 *Steve Henson* 13645 13646 * Include the fixed error library code in the C error file definitions 13647 instead of fixing them up at runtime. This keeps the error code 13648 structures constant. 13649 13650 *Steve Henson* 13651 13652### Changes between 0.9.7f and 0.9.7g [11 Apr 2005] 13653 13654[NB: OpenSSL 0.9.7h and later 0.9.7 patch levels were released after 13655OpenSSL 0.9.8.] 13656 13657 * Fixes for newer kerberos headers. NB: the casts are needed because 13658 the 'length' field is signed on one version and unsigned on another 13659 with no (?) obvious way to tell the difference, without these VC++ 13660 complains. Also the "definition" of FAR (blank) is no longer included 13661 nor is the error ENOMEM. KRB5_PRIVATE has to be set to 1 to pick up 13662 some needed definitions. 13663 13664 *Steve Henson* 13665 13666 * Undo Cygwin change. 13667 13668 *Ulf Möller* 13669 13670 * Added support for proxy certificates according to RFC 3820. 13671 Because they may be a security thread to unaware applications, 13672 they must be explicitly allowed in run-time. See 13673 docs/HOWTO/proxy_certificates.txt for further information. 13674 13675 *Richard Levitte* 13676 13677### Changes between 0.9.7e and 0.9.7f [22 Mar 2005] 13678 13679 * Use (SSL_RANDOM_VALUE - 4) bytes of pseudo random data when generating 13680 server and client random values. Previously 13681 (SSL_RANDOM_VALUE - sizeof(time_t)) would be used which would result in 13682 less random data when sizeof(time_t) > 4 (some 64 bit platforms). 13683 13684 This change has negligible security impact because: 13685 13686 1. Server and client random values still have 24 bytes of pseudo random 13687 data. 13688 13689 2. Server and client random values are sent in the clear in the initial 13690 handshake. 13691 13692 3. The master secret is derived using the premaster secret (48 bytes in 13693 size for static RSA ciphersuites) as well as client server and random 13694 values. 13695 13696 The OpenSSL team would like to thank the UK NISCC for bringing this issue 13697 to our attention. 13698 13699 *Stephen Henson, reported by UK NISCC* 13700 13701 * Use Windows randomness collection on Cygwin. 13702 13703 *Ulf Möller* 13704 13705 * Fix hang in EGD/PRNGD query when communication socket is closed 13706 prematurely by EGD/PRNGD. 13707 13708 *Darren Tucker <dtucker@zip.com.au> via Lutz Jänicke, resolves #1014* 13709 13710 * Prompt for pass phrases when appropriate for PKCS12 input format. 13711 13712 *Steve Henson* 13713 13714 * Back-port of selected performance improvements from development 13715 branch, as well as improved support for PowerPC platforms. 13716 13717 *Andy Polyakov* 13718 13719 * Add lots of checks for memory allocation failure, error codes to indicate 13720 failure and freeing up memory if a failure occurs. 13721 13722 *Nauticus Networks SSL Team <openssl@nauticusnet.com>, Steve Henson* 13723 13724 * Add new -passin argument to dgst. 13725 13726 *Steve Henson* 13727 13728 * Perform some character comparisons of different types in X509_NAME_cmp: 13729 this is needed for some certificates that re-encode DNs into UTF8Strings 13730 (in violation of RFC3280) and can't or won't issue name rollover 13731 certificates. 13732 13733 *Steve Henson* 13734 13735 * Make an explicit check during certificate validation to see that 13736 the CA setting in each certificate on the chain is correct. As a 13737 side effect always do the following basic checks on extensions, 13738 not just when there's an associated purpose to the check: 13739 13740 - if there is an unhandled critical extension (unless the user 13741 has chosen to ignore this fault) 13742 - if the path length has been exceeded (if one is set at all) 13743 - that certain extensions fit the associated purpose (if one has 13744 been given) 13745 13746 *Richard Levitte* 13747 13748### Changes between 0.9.7d and 0.9.7e [25 Oct 2004] 13749 13750 * Avoid a race condition when CRLs are checked in a multi threaded 13751 environment. This would happen due to the reordering of the revoked 13752 entries during signature checking and serial number lookup. Now the 13753 encoding is cached and the serial number sort performed under a lock. 13754 Add new STACK function sk_is_sorted(). 13755 13756 *Steve Henson* 13757 13758 * Add Delta CRL to the extension code. 13759 13760 *Steve Henson* 13761 13762 * Various fixes to s3_pkt.c so alerts are sent properly. 13763 13764 *David Holmes <d.holmes@f5.com>* 13765 13766 * Reduce the chances of duplicate issuer name and serial numbers (in 13767 violation of RFC3280) using the OpenSSL certificate creation utilities. 13768 This is done by creating a random 64 bit value for the initial serial 13769 number when a serial number file is created or when a self signed 13770 certificate is created using 'openssl req -x509'. The initial serial 13771 number file is created using 'openssl x509 -next_serial' in CA.pl 13772 rather than being initialized to 1. 13773 13774 *Steve Henson* 13775 13776### Changes between 0.9.7c and 0.9.7d [17 Mar 2004] 13777 13778 * Fix null-pointer assignment in do_change_cipher_spec() revealed 13779 by using the Codenomicon TLS Test Tool ([CVE-2004-0079]) 13780 13781 *Joe Orton, Steve Henson* 13782 13783 * Fix flaw in SSL/TLS handshaking when using Kerberos ciphersuites 13784 ([CVE-2004-0112]) 13785 13786 *Joe Orton, Steve Henson* 13787 13788 * Make it possible to have multiple active certificates with the same 13789 subject in the CA index file. This is done only if the keyword 13790 'unique_subject' is set to 'no' in the main CA section (default 13791 if 'CA_default') of the configuration file. The value is saved 13792 with the database itself in a separate index attribute file, 13793 named like the index file with '.attr' appended to the name. 13794 13795 *Richard Levitte* 13796 13797 * X509 verify fixes. Disable broken certificate workarounds when 13798 X509_V_FLAGS_X509_STRICT is set. Check CRL issuer has cRLSign set if 13799 keyUsage extension present. Don't accept CRLs with unhandled critical 13800 extensions: since verify currently doesn't process CRL extensions this 13801 rejects a CRL with *any* critical extensions. Add new verify error codes 13802 for these cases. 13803 13804 *Steve Henson* 13805 13806 * When creating an OCSP nonce use an OCTET STRING inside the extnValue. 13807 A clarification of RFC2560 will require the use of OCTET STRINGs and 13808 some implementations cannot handle the current raw format. Since OpenSSL 13809 copies and compares OCSP nonces as opaque blobs without any attempt at 13810 parsing them this should not create any compatibility issues. 13811 13812 *Steve Henson* 13813 13814 * New md flag EVP_MD_CTX_FLAG_REUSE this allows md_data to be reused when 13815 calling EVP_MD_CTX_copy_ex() to avoid calling OPENSSL_malloc(). Without 13816 this HMAC (and other) operations are several times slower than OpenSSL 13817 < 0.9.7. 13818 13819 *Steve Henson* 13820 13821 * Print out GeneralizedTime and UTCTime in ASN1_STRING_print_ex(). 13822 13823 *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>* 13824 13825 * Use the correct content when signing type "other". 13826 13827 *Steve Henson* 13828 13829### Changes between 0.9.7b and 0.9.7c [30 Sep 2003] 13830 13831 * Fix various bugs revealed by running the NISCC test suite: 13832 13833 Stop out of bounds reads in the ASN1 code when presented with 13834 invalid tags (CVE-2003-0543 and CVE-2003-0544). 13835 13836 Free up ASN1_TYPE correctly if ANY type is invalid ([CVE-2003-0545]). 13837 13838 If verify callback ignores invalid public key errors don't try to check 13839 certificate signature with the NULL public key. 13840 13841 *Steve Henson* 13842 13843 * New -ignore_err option in ocsp application to stop the server 13844 exiting on the first error in a request. 13845 13846 *Steve Henson* 13847 13848 * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate 13849 if the server requested one: as stated in TLS 1.0 and SSL 3.0 13850 specifications. 13851 13852 *Steve Henson* 13853 13854 * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional 13855 extra data after the compression methods not only for TLS 1.0 13856 but also for SSL 3.0 (as required by the specification). 13857 13858 *Bodo Moeller; problem pointed out by Matthias Loepfe* 13859 13860 * Change X509_certificate_type() to mark the key as exported/exportable 13861 when it's 512 *bits* long, not 512 bytes. 13862 13863 *Richard Levitte* 13864 13865 * Change AES_cbc_encrypt() so it outputs exact multiple of 13866 blocks during encryption. 13867 13868 *Richard Levitte* 13869 13870 * Various fixes to base64 BIO and non blocking I/O. On write 13871 flushes were not handled properly if the BIO retried. On read 13872 data was not being buffered properly and had various logic bugs. 13873 This also affects blocking I/O when the data being decoded is a 13874 certain size. 13875 13876 *Steve Henson* 13877 13878 * Various S/MIME bugfixes and compatibility changes: 13879 output correct application/pkcs7 MIME type if 13880 PKCS7_NOOLDMIMETYPE is set. Tolerate some broken signatures. 13881 Output CR+LF for EOL if PKCS7_CRLFEOL is set (this makes opening 13882 of files as .eml work). Correctly handle very long lines in MIME 13883 parser. 13884 13885 *Steve Henson* 13886 13887### Changes between 0.9.7a and 0.9.7b [10 Apr 2003] 13888 13889 * Countermeasure against the Klima-Pokorny-Rosa extension of 13890 Bleichbacher's attack on PKCS #1 v1.5 padding: treat 13891 a protocol version number mismatch like a decryption error 13892 in ssl3_get_client_key_exchange (ssl/s3_srvr.c). 13893 13894 *Bodo Moeller* 13895 13896 * Turn on RSA blinding by default in the default implementation 13897 to avoid a timing attack. Applications that don't want it can call 13898 RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING. 13899 They would be ill-advised to do so in most cases. 13900 13901 *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller* 13902 13903 * Change RSA blinding code so that it works when the PRNG is not 13904 seeded (in this case, the secret RSA exponent is abused as 13905 an unpredictable seed -- if it is not unpredictable, there 13906 is no point in blinding anyway). Make RSA blinding thread-safe 13907 by remembering the creator's thread ID in rsa->blinding and 13908 having all other threads use local one-time blinding factors 13909 (this requires more computation than sharing rsa->blinding, but 13910 avoids excessive locking; and if an RSA object is not shared 13911 between threads, blinding will still be very fast). 13912 13913 *Bodo Moeller* 13914 13915 * Fixed a typo bug that would cause ENGINE_set_default() to set an 13916 ENGINE as defaults for all supported algorithms irrespective of 13917 the 'flags' parameter. 'flags' is now honoured, so applications 13918 should make sure they are passing it correctly. 13919 13920 *Geoff Thorpe* 13921 13922 * Target "mingw" now allows native Windows code to be generated in 13923 the Cygwin environment as well as with the MinGW compiler. 13924 13925 *Ulf Moeller* 13926 13927### Changes between 0.9.7 and 0.9.7a [19 Feb 2003] 13928 13929 * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked 13930 via timing by performing a MAC computation even if incorrect 13931 block cipher padding has been found. This is a countermeasure 13932 against active attacks where the attacker has to distinguish 13933 between bad padding and a MAC verification error. ([CVE-2003-0078]) 13934 13935 *Bodo Moeller; problem pointed out by Brice Canvel (EPFL), 13936 Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and 13937 Martin Vuagnoux (EPFL, Ilion)* 13938 13939 * Make the no-err option work as intended. The intention with no-err 13940 is not to have the whole error stack handling routines removed from 13941 libcrypto, it's only intended to remove all the function name and 13942 reason texts, thereby removing some of the footprint that may not 13943 be interesting if those errors aren't displayed anyway. 13944 13945 NOTE: it's still possible for any application or module to have its 13946 own set of error texts inserted. The routines are there, just not 13947 used by default when no-err is given. 13948 13949 *Richard Levitte* 13950 13951 * Add support for FreeBSD on IA64. 13952 13953 *dirk.meyer@dinoex.sub.org via Richard Levitte, resolves #454* 13954 13955 * Adjust DES_cbc_cksum() so it returns the same value as the MIT 13956 Kerberos function mit_des_cbc_cksum(). Before this change, 13957 the value returned by DES_cbc_cksum() was like the one from 13958 mit_des_cbc_cksum(), except the bytes were swapped. 13959 13960 *Kevin Greaney <Kevin.Greaney@hp.com> and Richard Levitte* 13961 13962 * Allow an application to disable the automatic SSL chain building. 13963 Before this a rather primitive chain build was always performed in 13964 ssl3_output_cert_chain(): an application had no way to send the 13965 correct chain if the automatic operation produced an incorrect result. 13966 13967 Now the chain builder is disabled if either: 13968 13969 1. Extra certificates are added via SSL_CTX_add_extra_chain_cert(). 13970 13971 2. The mode flag SSL_MODE_NO_AUTO_CHAIN is set. 13972 13973 The reasoning behind this is that an application would not want the 13974 auto chain building to take place if extra chain certificates are 13975 present and it might also want a means of sending no additional 13976 certificates (for example the chain has two certificates and the 13977 root is omitted). 13978 13979 *Steve Henson* 13980 13981 * Add the possibility to build without the ENGINE framework. 13982 13983 *Steven Reddie <smr@essemer.com.au> via Richard Levitte* 13984 13985 * Under Win32 gmtime() can return NULL: check return value in 13986 OPENSSL_gmtime(). Add error code for case where gmtime() fails. 13987 13988 *Steve Henson* 13989 13990 * DSA routines: under certain error conditions uninitialized BN objects 13991 could be freed. Solution: make sure initialization is performed early 13992 enough. (Reported and fix supplied by Ivan D Nestlerode <nestler@MIT.EDU>, 13993 Nils Larsch <nla@trustcenter.de> via PR#459) 13994 13995 *Lutz Jaenicke* 13996 13997 * Another fix for SSLv2 session ID handling: the session ID was incorrectly 13998 checked on reconnect on the client side, therefore session resumption 13999 could still fail with a "ssl session id is different" error. This 14000 behaviour is masked when SSL_OP_ALL is used due to 14001 SSL_OP_MICROSOFT_SESS_ID_BUG being set. 14002 Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as 14003 followup to PR #377. 14004 14005 *Lutz Jaenicke* 14006 14007 * IA-32 assembler support enhancements: unified ELF targets, support 14008 for SCO/Caldera platforms, fix for Cygwin shared build. 14009 14010 *Andy Polyakov* 14011 14012 * Add support for FreeBSD on sparc64. As a consequence, support for 14013 FreeBSD on non-x86 processors is separate from x86 processors on 14014 the config script, much like the NetBSD support. 14015 14016 *Richard Levitte & Kris Kennaway <kris@obsecurity.org>* 14017 14018### Changes between 0.9.6h and 0.9.7 [31 Dec 2002] 14019 14020[NB: OpenSSL 0.9.6i and later 0.9.6 patch levels were released after 14021OpenSSL 0.9.7.] 14022 14023 * Fix session ID handling in SSLv2 client code: the SERVER FINISHED 14024 code (06) was taken as the first octet of the session ID and the last 14025 octet was ignored consequently. As a result SSLv2 client side session 14026 caching could not have worked due to the session ID mismatch between 14027 client and server. 14028 Behaviour observed by Crispin Flowerday <crispin@flowerday.cx> as 14029 PR #377. 14030 14031 *Lutz Jaenicke* 14032 14033 * Change the declaration of needed Kerberos libraries to use EX_LIBS 14034 instead of the special (and badly supported) LIBKRB5. LIBKRB5 is 14035 removed entirely. 14036 14037 *Richard Levitte* 14038 14039 * The hw_ncipher.c engine requires dynamic locks. Unfortunately, it 14040 seems that in spite of existing for more than a year, many application 14041 author have done nothing to provide the necessary callbacks, which 14042 means that this particular engine will not work properly anywhere. 14043 This is a very unfortunate situation which forces us, in the name 14044 of usability, to give the hw_ncipher.c a static lock, which is part 14045 of libcrypto. 14046 NOTE: This is for the 0.9.7 series ONLY. This hack will never 14047 appear in 0.9.8 or later. We EXPECT application authors to have 14048 dealt properly with this when 0.9.8 is released (unless we actually 14049 make such changes in the libcrypto locking code that changes will 14050 have to be made anyway). 14051 14052 *Richard Levitte* 14053 14054 * In asn1_d2i_read_bio() repeatedly call BIO_read() until all content 14055 octets have been read, EOF or an error occurs. Without this change 14056 some truncated ASN1 structures will not produce an error. 14057 14058 *Steve Henson* 14059 14060 * Disable Heimdal support, since it hasn't been fully implemented. 14061 Still give the possibility to force the use of Heimdal, but with 14062 warnings and a request that patches get sent to openssl-dev. 14063 14064 *Richard Levitte* 14065 14066 * Add the VC-CE target, introduce the WINCE sysname, and add 14067 INSTALL.WCE and appropriate conditionals to make it build. 14068 14069 *Steven Reddie <smr@essemer.com.au> via Richard Levitte* 14070 14071 * Change the DLL names for Cygwin to cygcrypto-x.y.z.dll and 14072 cygssl-x.y.z.dll, where x, y and z are the major, minor and 14073 edit numbers of the version. 14074 14075 *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte* 14076 14077 * Introduce safe string copy and catenation functions 14078 (BUF_strlcpy() and BUF_strlcat()). 14079 14080 *Ben Laurie (CHATS) and Richard Levitte* 14081 14082 * Avoid using fixed-size buffers for one-line DNs. 14083 14084 *Ben Laurie (CHATS)* 14085 14086 * Add BUF_MEM_grow_clean() to avoid information leakage when 14087 resizing buffers containing secrets, and use where appropriate. 14088 14089 *Ben Laurie (CHATS)* 14090 14091 * Avoid using fixed size buffers for configuration file location. 14092 14093 *Ben Laurie (CHATS)* 14094 14095 * Avoid filename truncation for various CA files. 14096 14097 *Ben Laurie (CHATS)* 14098 14099 * Use sizeof in preference to magic numbers. 14100 14101 *Ben Laurie (CHATS)* 14102 14103 * Avoid filename truncation in cert requests. 14104 14105 *Ben Laurie (CHATS)* 14106 14107 * Add assertions to check for (supposedly impossible) buffer 14108 overflows. 14109 14110 *Ben Laurie (CHATS)* 14111 14112 * Don't cache truncated DNS entries in the local cache (this could 14113 potentially lead to a spoofing attack). 14114 14115 *Ben Laurie (CHATS)* 14116 14117 * Fix various buffers to be large enough for hex/decimal 14118 representations in a platform independent manner. 14119 14120 *Ben Laurie (CHATS)* 14121 14122 * Add CRYPTO_realloc_clean() to avoid information leakage when 14123 resizing buffers containing secrets, and use where appropriate. 14124 14125 *Ben Laurie (CHATS)* 14126 14127 * Add BIO_indent() to avoid much slightly worrying code to do 14128 indents. 14129 14130 *Ben Laurie (CHATS)* 14131 14132 * Convert sprintf()/BIO_puts() to BIO_printf(). 14133 14134 *Ben Laurie (CHATS)* 14135 14136 * buffer_gets() could terminate with the buffer only half 14137 full. Fixed. 14138 14139 *Ben Laurie (CHATS)* 14140 14141 * Add assertions to prevent user-supplied crypto functions from 14142 overflowing internal buffers by having large block sizes, etc. 14143 14144 *Ben Laurie (CHATS)* 14145 14146 * New OPENSSL_assert() macro (similar to assert(), but enabled 14147 unconditionally). 14148 14149 *Ben Laurie (CHATS)* 14150 14151 * Eliminate unused copy of key in RC4. 14152 14153 *Ben Laurie (CHATS)* 14154 14155 * Eliminate unused and incorrectly sized buffers for IV in pem.h. 14156 14157 *Ben Laurie (CHATS)* 14158 14159 * Fix off-by-one error in EGD path. 14160 14161 *Ben Laurie (CHATS)* 14162 14163 * If RANDFILE path is too long, ignore instead of truncating. 14164 14165 *Ben Laurie (CHATS)* 14166 14167 * Eliminate unused and incorrectly sized X.509 structure 14168 CBCParameter. 14169 14170 *Ben Laurie (CHATS)* 14171 14172 * Eliminate unused and dangerous function knumber(). 14173 14174 *Ben Laurie (CHATS)* 14175 14176 * Eliminate unused and dangerous structure, KSSL_ERR. 14177 14178 *Ben Laurie (CHATS)* 14179 14180 * Protect against overlong session ID context length in an encoded 14181 session object. Since these are local, this does not appear to be 14182 exploitable. 14183 14184 *Ben Laurie (CHATS)* 14185 14186 * Change from security patch (see 0.9.6e below) that did not affect 14187 the 0.9.6 release series: 14188 14189 Remote buffer overflow in SSL3 protocol - an attacker could 14190 supply an oversized master key in Kerberos-enabled versions. 14191 ([CVE-2002-0657]) 14192 14193 *Ben Laurie (CHATS)* 14194 14195 * Change the SSL kerb5 codes to match RFC 2712. 14196 14197 *Richard Levitte* 14198 14199 * Make -nameopt work fully for req and add -reqopt switch. 14200 14201 *Michael Bell <michael.bell@rz.hu-berlin.de>, Steve Henson* 14202 14203 * The "block size" for block ciphers in CFB and OFB mode should be 1. 14204 14205 *Steve Henson, reported by Yngve Nysaeter Pettersen <yngve@opera.com>* 14206 14207 * Make sure tests can be performed even if the corresponding algorithms 14208 have been removed entirely. This was also the last step to make 14209 OpenSSL compilable with DJGPP under all reasonable conditions. 14210 14211 *Richard Levitte, Doug Kaufman <dkaufman@rahul.net>* 14212 14213 * Add cipher selection rules COMPLEMENTOFALL and COMPLEMENTOFDEFAULT 14214 to allow version independent disabling of normally unselected ciphers, 14215 which may be activated as a side-effect of selecting a single cipher. 14216 14217 (E.g., cipher list string "RSA" enables ciphersuites that are left 14218 out of "ALL" because they do not provide symmetric encryption. 14219 "RSA:!COMPLEMEMENTOFALL" avoids these unsafe ciphersuites.) 14220 14221 *Lutz Jaenicke, Bodo Moeller* 14222 14223 * Add appropriate support for separate platform-dependent build 14224 directories. The recommended way to make a platform-dependent 14225 build directory is the following (tested on Linux), maybe with 14226 some local tweaks: 14227 14228 # Place yourself outside of the OpenSSL source tree. In 14229 # this example, the environment variable OPENSSL_SOURCE 14230 # is assumed to contain the absolute OpenSSL source directory. 14231 mkdir -p objtree/"`uname -s`-`uname -r`-`uname -m`" 14232 cd objtree/"`uname -s`-`uname -r`-`uname -m`" 14233 (cd $OPENSSL_SOURCE; find . -type f) | while read F; do 14234 mkdir -p `dirname $F` 14235 ln -s $OPENSSL_SOURCE/$F $F 14236 done 14237 14238 To be absolutely sure not to disturb the source tree, a "make clean" 14239 is a good thing. If it isn't successful, don't worry about it, 14240 it probably means the source directory is very clean. 14241 14242 *Richard Levitte* 14243 14244 * Make sure any ENGINE control commands make local copies of string 14245 pointers passed to them whenever necessary. Otherwise it is possible 14246 the caller may have overwritten (or deallocated) the original string 14247 data when a later ENGINE operation tries to use the stored values. 14248 14249 *Götz Babin-Ebell <babinebell@trustcenter.de>* 14250 14251 * Improve diagnostics in file reading and command-line digests. 14252 14253 *Ben Laurie aided and abetted by Solar Designer <solar@openwall.com>* 14254 14255 * Add AES modes CFB and OFB to the object database. Correct an 14256 error in AES-CFB decryption. 14257 14258 *Richard Levitte* 14259 14260 * Remove most calls to EVP_CIPHER_CTX_cleanup() in evp_enc.c, this 14261 allows existing EVP_CIPHER_CTX structures to be reused after 14262 calling `EVP_*Final()`. This behaviour is used by encryption 14263 BIOs and some applications. This has the side effect that 14264 applications must explicitly clean up cipher contexts with 14265 EVP_CIPHER_CTX_cleanup() or they will leak memory. 14266 14267 *Steve Henson* 14268 14269 * Check the values of dna and dnb in bn_mul_recursive before calling 14270 bn_mul_comba (a non zero value means the a or b arrays do not contain 14271 n2 elements) and fallback to bn_mul_normal if either is not zero. 14272 14273 *Steve Henson* 14274 14275 * Fix escaping of non-ASCII characters when using the -subj option 14276 of the "openssl req" command line tool. (Robert Joop <joop@fokus.gmd.de>) 14277 14278 *Lutz Jaenicke* 14279 14280 * Make object definitions compliant to LDAP (RFC2256): SN is the short 14281 form for "surname", serialNumber has no short form. 14282 Use "mail" as the short name for "rfc822Mailbox" according to RFC2798; 14283 therefore remove "mail" short name for "internet 7". 14284 The OID for unique identifiers in X509 certificates is 14285 x500UniqueIdentifier, not uniqueIdentifier. 14286 Some more OID additions. (Michael Bell <michael.bell@rz.hu-berlin.de>) 14287 14288 *Lutz Jaenicke* 14289 14290 * Add an "init" command to the ENGINE config module and auto initialize 14291 ENGINEs. Without any "init" command the ENGINE will be initialized 14292 after all ctrl commands have been executed on it. If init=1 the 14293 ENGINE is initialized at that point (ctrls before that point are run 14294 on the uninitialized ENGINE and after on the initialized one). If 14295 init=0 then the ENGINE will not be initialized at all. 14296 14297 *Steve Henson* 14298 14299 * Fix the 'app_verify_callback' interface so that the user-defined 14300 argument is actually passed to the callback: In the 14301 SSL_CTX_set_cert_verify_callback() prototype, the callback 14302 declaration has been changed from 14303 int (*cb)() 14304 into 14305 int (*cb)(X509_STORE_CTX *,void *); 14306 in ssl_verify_cert_chain (ssl/ssl_cert.c), the call 14307 i=s->ctx->app_verify_callback(&ctx) 14308 has been changed into 14309 i=s->ctx->app_verify_callback(&ctx, s->ctx->app_verify_arg). 14310 14311 To update applications using SSL_CTX_set_cert_verify_callback(), 14312 a dummy argument can be added to their callback functions. 14313 14314 *D. K. Smetters <smetters@parc.xerox.com>* 14315 14316 * Added the '4758cca' ENGINE to support IBM 4758 cards. 14317 14318 *Maurice Gittens <maurice@gittens.nl>, touchups by Geoff Thorpe* 14319 14320 * Add and OPENSSL_LOAD_CONF define which will cause 14321 OpenSSL_add_all_algorithms() to load the openssl.cnf config file. 14322 This allows older applications to transparently support certain 14323 OpenSSL features: such as crypto acceleration and dynamic ENGINE loading. 14324 Two new functions OPENSSL_add_all_algorithms_noconf() which will never 14325 load the config file and OPENSSL_add_all_algorithms_conf() which will 14326 always load it have also been added. 14327 14328 *Steve Henson* 14329 14330 * Add the OFB, CFB and CTR (all with 128 bit feedback) to AES. 14331 Adjust NIDs and EVP layer. 14332 14333 *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte* 14334 14335 * Config modules support in openssl utility. 14336 14337 Most commands now load modules from the config file, 14338 though in a few (such as version) this isn't done 14339 because it couldn't be used for anything. 14340 14341 In the case of ca and req the config file used is 14342 the same as the utility itself: that is the -config 14343 command line option can be used to specify an 14344 alternative file. 14345 14346 *Steve Henson* 14347 14348 * Move default behaviour from OPENSSL_config(). If appname is NULL 14349 use "openssl_conf" if filename is NULL use default openssl config file. 14350 14351 *Steve Henson* 14352 14353 * Add an argument to OPENSSL_config() to allow the use of an alternative 14354 config section name. Add a new flag to tolerate a missing config file 14355 and move code to CONF_modules_load_file(). 14356 14357 *Steve Henson* 14358 14359 * Support for crypto accelerator cards from Accelerated Encryption 14360 Processing, www.aep.ie. (Use engine 'aep') 14361 The support was copied from 0.9.6c [engine] and adapted/corrected 14362 to work with the new engine framework. 14363 14364 *AEP Inc. and Richard Levitte* 14365 14366 * Support for SureWare crypto accelerator cards from Baltimore 14367 Technologies. (Use engine 'sureware') 14368 The support was copied from 0.9.6c [engine] and adapted 14369 to work with the new engine framework. 14370 14371 *Richard Levitte* 14372 14373 * Have the CHIL engine fork-safe (as defined by nCipher) and actually 14374 make the newer ENGINE framework commands for the CHIL engine work. 14375 14376 *Toomas Kiisk <vix@cyber.ee> and Richard Levitte* 14377 14378 * Make it possible to produce shared libraries on ReliantUNIX. 14379 14380 *Robert Dahlem <Robert.Dahlem@ffm2.siemens.de> via Richard Levitte* 14381 14382 * Add the configuration target debug-linux-ppro. 14383 Make 'openssl rsa' use the general key loading routines 14384 implemented in `apps.c`, and make those routines able to 14385 handle the key format FORMAT_NETSCAPE and the variant 14386 FORMAT_IISSGC. 14387 14388 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte* 14389 14390 * Fix a crashbug and a logic bug in hwcrhk_load_pubkey(). 14391 14392 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte* 14393 14394 * Add -keyform to rsautl, and document -engine. 14395 14396 *Richard Levitte, inspired by Toomas Kiisk <vix@cyber.ee>* 14397 14398 * Change BIO_new_file (crypto/bio/bss_file.c) to use new 14399 BIO_R_NO_SUCH_FILE error code rather than the generic 14400 ERR_R_SYS_LIB error code if fopen() fails with ENOENT. 14401 14402 *Ben Laurie* 14403 14404 * Add new functions 14405 ERR_peek_last_error 14406 ERR_peek_last_error_line 14407 ERR_peek_last_error_line_data. 14408 These are similar to 14409 ERR_peek_error 14410 ERR_peek_error_line 14411 ERR_peek_error_line_data, 14412 but report on the latest error recorded rather than the first one 14413 still in the error queue. 14414 14415 *Ben Laurie, Bodo Moeller* 14416 14417 * default_algorithms option in ENGINE config module. This allows things 14418 like: 14419 default_algorithms = ALL 14420 default_algorithms = RSA, DSA, RAND, CIPHERS, DIGESTS 14421 14422 *Steve Henson* 14423 14424 * Preliminary ENGINE config module. 14425 14426 *Steve Henson* 14427 14428 * New experimental application configuration code. 14429 14430 *Steve Henson* 14431 14432 * Change the AES code to follow the same name structure as all other 14433 symmetric ciphers, and behave the same way. Move everything to 14434 the directory crypto/aes, thereby obsoleting crypto/rijndael. 14435 14436 *Stephen Sprunk <stephen@sprunk.org> and Richard Levitte* 14437 14438 * SECURITY: remove unsafe setjmp/signal interaction from ui_openssl.c. 14439 14440 *Ben Laurie and Theo de Raadt* 14441 14442 * Add option to output public keys in req command. 14443 14444 *Massimiliano Pala madwolf@openca.org* 14445 14446 * Use wNAFs in EC_POINTs_mul() for improved efficiency 14447 (up to about 10% better than before for P-192 and P-224). 14448 14449 *Bodo Moeller* 14450 14451 * New functions/macros 14452 14453 SSL_CTX_set_msg_callback(ctx, cb) 14454 SSL_CTX_set_msg_callback_arg(ctx, arg) 14455 SSL_set_msg_callback(ssl, cb) 14456 SSL_set_msg_callback_arg(ssl, arg) 14457 14458 to request calling a callback function 14459 14460 void cb(int write_p, int version, int content_type, 14461 const void *buf, size_t len, SSL *ssl, void *arg) 14462 14463 whenever a protocol message has been completely received 14464 (write_p == 0) or sent (write_p == 1). Here 'version' is the 14465 protocol version according to which the SSL library interprets 14466 the current protocol message (SSL2_VERSION, SSL3_VERSION, or 14467 TLS1_VERSION). 'content_type' is 0 in the case of SSL 2.0, or 14468 the content type as defined in the SSL 3.0/TLS 1.0 protocol 14469 specification (change_cipher_spec(20), alert(21), handshake(22)). 14470 'buf' and 'len' point to the actual message, 'ssl' to the 14471 SSL object, and 'arg' is the application-defined value set by 14472 SSL[_CTX]_set_msg_callback_arg(). 14473 14474 'openssl s_client' and 'openssl s_server' have new '-msg' options 14475 to enable a callback that displays all protocol messages. 14476 14477 *Bodo Moeller* 14478 14479 * Change the shared library support so shared libraries are built as 14480 soon as the corresponding static library is finished, and thereby get 14481 openssl and the test programs linked against the shared library. 14482 This still only happens when the keyword "shard" has been given to 14483 the configuration scripts. 14484 14485 NOTE: shared library support is still an experimental thing, and 14486 backward binary compatibility is still not guaranteed. 14487 14488 *"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> and Richard Levitte* 14489 14490 * Add support for Subject Information Access extension. 14491 14492 *Peter Sylvester <Peter.Sylvester@EdelWeb.fr>* 14493 14494 * Make BUF_MEM_grow() behaviour more consistent: Initialise to zero 14495 additional bytes when new memory had to be allocated, not just 14496 when reusing an existing buffer. 14497 14498 *Bodo Moeller* 14499 14500 * New command line and configuration option 'utf8' for the req command. 14501 This allows field values to be specified as UTF8 strings. 14502 14503 *Steve Henson* 14504 14505 * Add -multi and -mr options to "openssl speed" - giving multiple parallel 14506 runs for the former and machine-readable output for the latter. 14507 14508 *Ben Laurie* 14509 14510 * Add '-noemailDN' option to 'openssl ca'. This prevents inclusion 14511 of the e-mail address in the DN (i.e., it will go into a certificate 14512 extension only). The new configuration file option 'email_in_dn = no' 14513 has the same effect. 14514 14515 *Massimiliano Pala madwolf@openca.org* 14516 14517 * Change all functions with names starting with `des_` to be starting 14518 with `DES_` instead. Add wrappers that are compatible with libdes, 14519 but are named `_ossl_old_des_*`. Finally, add macros that map the 14520 `des_*` symbols to the corresponding `_ossl_old_des_*` if libdes 14521 compatibility is desired. If OpenSSL 0.9.6c compatibility is 14522 desired, the `des_*` symbols will be mapped to `DES_*`, with one 14523 exception. 14524 14525 Since we provide two compatibility mappings, the user needs to 14526 define the macro OPENSSL_DES_LIBDES_COMPATIBILITY if libdes 14527 compatibility is desired. The default (i.e., when that macro 14528 isn't defined) is OpenSSL 0.9.6c compatibility. 14529 14530 There are also macros that enable and disable the support of old 14531 des functions altogether. Those are OPENSSL_ENABLE_OLD_DES_SUPPORT 14532 and OPENSSL_DISABLE_OLD_DES_SUPPORT. If none or both of those 14533 are defined, the default will apply: to support the old des routines. 14534 14535 In either case, one must include openssl/des.h to get the correct 14536 definitions. Do not try to just include openssl/des_old.h, that 14537 won't work. 14538 14539 NOTE: This is a major break of an old API into a new one. Software 14540 authors are encouraged to switch to the `DES_` style functions. Some 14541 time in the future, des_old.h and the libdes compatibility functions 14542 will be disable (i.e. OPENSSL_DISABLE_OLD_DES_SUPPORT will be the 14543 default), and then completely removed. 14544 14545 *Richard Levitte* 14546 14547 * Test for certificates which contain unsupported critical extensions. 14548 If such a certificate is found during a verify operation it is 14549 rejected by default: this behaviour can be overridden by either 14550 handling the new error X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION or 14551 by setting the verify flag X509_V_FLAG_IGNORE_CRITICAL. A new function 14552 X509_supported_extension() has also been added which returns 1 if a 14553 particular extension is supported. 14554 14555 *Steve Henson* 14556 14557 * Modify the behaviour of EVP cipher functions in similar way to digests 14558 to retain compatibility with existing code. 14559 14560 *Steve Henson* 14561 14562 * Modify the behaviour of EVP_DigestInit() and EVP_DigestFinal() to retain 14563 compatibility with existing code. In particular the 'ctx' parameter does 14564 not have to be to be initialized before the call to EVP_DigestInit() and 14565 it is tidied up after a call to EVP_DigestFinal(). New function 14566 EVP_DigestFinal_ex() which does not tidy up the ctx. Similarly function 14567 EVP_MD_CTX_copy() changed to not require the destination to be 14568 initialized valid and new function EVP_MD_CTX_copy_ex() added which 14569 requires the destination to be valid. 14570 14571 Modify all the OpenSSL digest calls to use EVP_DigestInit_ex(), 14572 EVP_DigestFinal_ex() and EVP_MD_CTX_copy_ex(). 14573 14574 *Steve Henson* 14575 14576 * Change ssl3_get_message (ssl/s3_both.c) and the functions using it 14577 so that complete 'Handshake' protocol structures are kept in memory 14578 instead of overwriting 'msg_type' and 'length' with 'body' data. 14579 14580 *Bodo Moeller* 14581 14582 * Add an implementation of SSL_add_dir_cert_subjects_to_stack for Win32. 14583 14584 *Massimo Santin via Richard Levitte* 14585 14586 * Major restructuring to the underlying ENGINE code. This includes 14587 reduction of linker bloat, separation of pure "ENGINE" manipulation 14588 (initialisation, etc) from functionality dealing with implementations 14589 of specific crypto interfaces. This change also introduces integrated 14590 support for symmetric ciphers and digest implementations - so ENGINEs 14591 can now accelerate these by providing EVP_CIPHER and EVP_MD 14592 implementations of their own. This is detailed in 14593 [crypto/engine/README.md](crypto/engine/README.md) 14594 as it couldn't be adequately described here. However, there are a few 14595 API changes worth noting - some RSA, DSA, DH, and RAND functions that 14596 were changed in the original introduction of ENGINE code have now 14597 reverted back - the hooking from this code to ENGINE is now a good 14598 deal more passive and at run-time, operations deal directly with 14599 RSA_METHODs, DSA_METHODs (etc) as they did before, rather than 14600 dereferencing through an ENGINE pointer any more. Also, the ENGINE 14601 functions dealing with `BN_MOD_EXP[_CRT]` handlers have been removed - 14602 they were not being used by the framework as there is no concept of a 14603 BIGNUM_METHOD and they could not be generalised to the new 14604 'ENGINE_TABLE' mechanism that underlies the new code. Similarly, 14605 ENGINE_cpy() has been removed as it cannot be consistently defined in 14606 the new code. 14607 14608 *Geoff Thorpe* 14609 14610 * Change ASN1_GENERALIZEDTIME_check() to allow fractional seconds. 14611 14612 *Steve Henson* 14613 14614 * Change mkdef.pl to sort symbols that get the same entry number, 14615 and make sure the automatically generated functions `ERR_load_*` 14616 become part of libeay.num as well. 14617 14618 *Richard Levitte* 14619 14620 * New function SSL_renegotiate_pending(). This returns true once 14621 renegotiation has been requested (either SSL_renegotiate() call 14622 or HelloRequest/ClientHello received from the peer) and becomes 14623 false once a handshake has been completed. 14624 (For servers, SSL_renegotiate() followed by SSL_do_handshake() 14625 sends a HelloRequest, but does not ensure that a handshake takes 14626 place. SSL_renegotiate_pending() is useful for checking if the 14627 client has followed the request.) 14628 14629 *Bodo Moeller* 14630 14631 * New SSL option SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION. 14632 By default, clients may request session resumption even during 14633 renegotiation (if session ID contexts permit); with this option, 14634 session resumption is possible only in the first handshake. 14635 14636 SSL_OP_ALL is now 0x00000FFFL instead of 0x000FFFFFL. This makes 14637 more bits available for options that should not be part of 14638 SSL_OP_ALL (such as SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION). 14639 14640 *Bodo Moeller* 14641 14642 * Add some demos for certificate and certificate request creation. 14643 14644 *Steve Henson* 14645 14646 * Make maximum certificate chain size accepted from the peer application 14647 settable (`SSL*_get/set_max_cert_list()`), as proposed by 14648 "Douglas E. Engert" <deengert@anl.gov>. 14649 14650 *Lutz Jaenicke* 14651 14652 * Add support for shared libraries for Unixware-7 14653 (Boyd Lynn Gerber <gerberb@zenez.com>). 14654 14655 *Lutz Jaenicke* 14656 14657 * Add a "destroy" handler to ENGINEs that allows structural cleanup to 14658 be done prior to destruction. Use this to unload error strings from 14659 ENGINEs that load their own error strings. NB: This adds two new API 14660 functions to "get" and "set" this destroy handler in an ENGINE. 14661 14662 *Geoff Thorpe* 14663 14664 * Alter all existing ENGINE implementations (except "openssl" and 14665 "openbsd") to dynamically instantiate their own error strings. This 14666 makes them more flexible to be built both as statically-linked ENGINEs 14667 and self-contained shared-libraries loadable via the "dynamic" ENGINE. 14668 Also, add stub code to each that makes building them as self-contained 14669 shared-libraries easier (see [README-Engine.md](README-Engine.md)). 14670 14671 *Geoff Thorpe* 14672 14673 * Add a "dynamic" ENGINE that provides a mechanism for binding ENGINE 14674 implementations into applications that are completely implemented in 14675 self-contained shared-libraries. The "dynamic" ENGINE exposes control 14676 commands that can be used to configure what shared-library to load and 14677 to control aspects of the way it is handled. Also, made an update to 14678 the [README-Engine.md](README-Engine.md) file 14679 that brings its information up-to-date and 14680 provides some information and instructions on the "dynamic" ENGINE 14681 (ie. how to use it, how to build "dynamic"-loadable ENGINEs, etc). 14682 14683 *Geoff Thorpe* 14684 14685 * Make it possible to unload ranges of ERR strings with a new 14686 "ERR_unload_strings" function. 14687 14688 *Geoff Thorpe* 14689 14690 * Add a copy() function to EVP_MD. 14691 14692 *Ben Laurie* 14693 14694 * Make EVP_MD routines take a context pointer instead of just the 14695 md_data void pointer. 14696 14697 *Ben Laurie* 14698 14699 * Add flags to EVP_MD and EVP_MD_CTX. EVP_MD_FLAG_ONESHOT indicates 14700 that the digest can only process a single chunk of data 14701 (typically because it is provided by a piece of 14702 hardware). EVP_MD_CTX_FLAG_ONESHOT indicates that the application 14703 is only going to provide a single chunk of data, and hence the 14704 framework needn't accumulate the data for oneshot drivers. 14705 14706 *Ben Laurie* 14707 14708 * As with "ERR", make it possible to replace the underlying "ex_data" 14709 functions. This change also alters the storage and management of global 14710 ex_data state - it's now all inside ex_data.c and all "class" code (eg. 14711 RSA, BIO, SSL_CTX, etc) no longer stores its own STACKS and per-class 14712 index counters. The API functions that use this state have been changed 14713 to take a "class_index" rather than pointers to the class's local STACK 14714 and counter, and there is now an API function to dynamically create new 14715 classes. This centralisation allows us to (a) plug a lot of the 14716 thread-safety problems that existed, and (b) makes it possible to clean 14717 up all allocated state using "CRYPTO_cleanup_all_ex_data()". W.r.t. (b) 14718 such data would previously have always leaked in application code and 14719 workarounds were in place to make the memory debugging turn a blind eye 14720 to it. Application code that doesn't use this new function will still 14721 leak as before, but their memory debugging output will announce it now 14722 rather than letting it slide. 14723 14724 Besides the addition of CRYPTO_cleanup_all_ex_data(), another API change 14725 induced by the "ex_data" overhaul is that X509_STORE_CTX_init() now 14726 has a return value to indicate success or failure. 14727 14728 *Geoff Thorpe* 14729 14730 * Make it possible to replace the underlying "ERR" functions such that the 14731 global state (2 LHASH tables and 2 locks) is only used by the "default" 14732 implementation. This change also adds two functions to "get" and "set" 14733 the implementation prior to it being automatically set the first time 14734 any other ERR function takes place. Ie. an application can call "get", 14735 pass the return value to a module it has just loaded, and that module 14736 can call its own "set" function using that value. This means the 14737 module's "ERR" operations will use (and modify) the error state in the 14738 application and not in its own statically linked copy of OpenSSL code. 14739 14740 *Geoff Thorpe* 14741 14742 * Give DH, DSA, and RSA types their own `*_up_ref()` function to increment 14743 reference counts. This performs normal REF_PRINT/REF_CHECK macros on 14744 the operation, and provides a more encapsulated way for external code 14745 (crypto/evp/ and ssl/) to do this. Also changed the evp and ssl code 14746 to use these functions rather than manually incrementing the counts. 14747 14748 Also rename "DSO_up()" function to more descriptive "DSO_up_ref()". 14749 14750 *Geoff Thorpe* 14751 14752 * Add EVP test program. 14753 14754 *Ben Laurie* 14755 14756 * Add symmetric cipher support to ENGINE. Expect the API to change! 14757 14758 *Ben Laurie* 14759 14760 * New CRL functions: X509_CRL_set_version(), X509_CRL_set_issuer_name() 14761 X509_CRL_set_lastUpdate(), X509_CRL_set_nextUpdate(), X509_CRL_sort(), 14762 X509_REVOKED_set_serialNumber(), and X509_REVOKED_set_revocationDate(). 14763 These allow a CRL to be built without having to access X509_CRL fields 14764 directly. Modify 'ca' application to use new functions. 14765 14766 *Steve Henson* 14767 14768 * Move SSL_OP_TLS_ROLLBACK_BUG out of the SSL_OP_ALL list of recommended 14769 bug workarounds. Rollback attack detection is a security feature. 14770 The problem will only arise on OpenSSL servers when TLSv1 is not 14771 available (sslv3_server_method() or SSL_OP_NO_TLSv1). 14772 Software authors not wanting to support TLSv1 will have special reasons 14773 for their choice and can explicitly enable this option. 14774 14775 *Bodo Moeller, Lutz Jaenicke* 14776 14777 * Rationalise EVP so it can be extended: don't include a union of 14778 cipher/digest structures, add init/cleanup functions for EVP_MD_CTX 14779 (similar to those existing for EVP_CIPHER_CTX). 14780 Usage example: 14781 14782 EVP_MD_CTX md; 14783 14784 EVP_MD_CTX_init(&md); /* new function call */ 14785 EVP_DigestInit(&md, EVP_sha1()); 14786 EVP_DigestUpdate(&md, in, len); 14787 EVP_DigestFinal(&md, out, NULL); 14788 EVP_MD_CTX_cleanup(&md); /* new function call */ 14789 14790 *Ben Laurie* 14791 14792 * Make DES key schedule conform to the usual scheme, as well as 14793 correcting its structure. This means that calls to DES functions 14794 now have to pass a pointer to a des_key_schedule instead of a 14795 plain des_key_schedule (which was actually always a pointer 14796 anyway): E.g., 14797 14798 des_key_schedule ks; 14799 14800 des_set_key_checked(..., &ks); 14801 des_ncbc_encrypt(..., &ks, ...); 14802 14803 (Note that a later change renames 'des_...' into 'DES_...'.) 14804 14805 *Ben Laurie* 14806 14807 * Initial reduction of linker bloat: the use of some functions, such as 14808 PEM causes large amounts of unused functions to be linked in due to 14809 poor organisation. For example pem_all.c contains every PEM function 14810 which has a knock on effect of linking in large amounts of (unused) 14811 ASN1 code. Grouping together similar functions and splitting unrelated 14812 functions prevents this. 14813 14814 *Steve Henson* 14815 14816 * Cleanup of EVP macros. 14817 14818 *Ben Laurie* 14819 14820 * Change historical references to `{NID,SN,LN}_des_ede` and ede3 to add the 14821 correct `_ecb suffix`. 14822 14823 *Ben Laurie* 14824 14825 * Add initial OCSP responder support to ocsp application. The 14826 revocation information is handled using the text based index 14827 use by the ca application. The responder can either handle 14828 requests generated internally, supplied in files (for example 14829 via a CGI script) or using an internal minimal server. 14830 14831 *Steve Henson* 14832 14833 * Add configuration choices to get zlib compression for TLS. 14834 14835 *Richard Levitte* 14836 14837 * Changes to Kerberos SSL for RFC 2712 compliance: 14838 1. Implemented real KerberosWrapper, instead of just using 14839 KRB5 AP_REQ message. [Thanks to Simon Wilkinson <sxw@sxw.org.uk>] 14840 2. Implemented optional authenticator field of KerberosWrapper. 14841 14842 Added openssl-style ASN.1 macros for Kerberos ticket, ap_req, 14843 and authenticator structs; see crypto/krb5/. 14844 14845 Generalized Kerberos calls to support multiple Kerberos libraries. 14846 *Vern Staats <staatsvr@asc.hpc.mil>, Jeffrey Altman <jaltman@columbia.edu> 14847 via Richard Levitte* 14848 14849 * Cause 'openssl speed' to use fully hard-coded DSA keys as it 14850 already does with RSA. testdsa.h now has 'priv_key/pub_key' 14851 values for each of the key sizes rather than having just 14852 parameters (and 'speed' generating keys each time). 14853 14854 *Geoff Thorpe* 14855 14856 * Speed up EVP routines. 14857 Before: 14858crypt 14859pe 8 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 14860s-cbc 4408.85k 5560.51k 5778.46k 5862.20k 5825.16k 14861s-cbc 4389.55k 5571.17k 5792.23k 5846.91k 5832.11k 14862s-cbc 4394.32k 5575.92k 5807.44k 5848.37k 5841.30k 14863crypt 14864s-cbc 3482.66k 5069.49k 5496.39k 5614.16k 5639.28k 14865s-cbc 3480.74k 5068.76k 5510.34k 5609.87k 5635.52k 14866s-cbc 3483.72k 5067.62k 5504.60k 5708.01k 5724.80k 14867 After: 14868crypt 14869s-cbc 4660.16k 5650.19k 5807.19k 5827.13k 5783.32k 14870crypt 14871s-cbc 3624.96k 5258.21k 5530.91k 5624.30k 5628.26k 14872 14873 *Ben Laurie* 14874 14875 * Added the OS2-EMX target. 14876 14877 *"Brian Havard" <brianh@kheldar.apana.org.au> and Richard Levitte* 14878 14879 * Rewrite commands to use `NCONF` routines instead of the old `CONF`. 14880 New functions to support `NCONF` routines in extension code. 14881 New function `CONF_set_nconf()` 14882 to allow functions which take an `NCONF` to also handle the old `LHASH` 14883 structure: this means that the old `CONF` compatible routines can be 14884 retained (in particular w.rt. extensions) without having to duplicate the 14885 code. New function `X509V3_add_ext_nconf_sk()` to add extensions to a stack. 14886 14887 *Steve Henson* 14888 14889 * Enhance the general user interface with mechanisms for inner control 14890 and with possibilities to have yes/no kind of prompts. 14891 14892 *Richard Levitte* 14893 14894 * Change all calls to low-level digest routines in the library and 14895 applications to use EVP. Add missing calls to HMAC_cleanup() and 14896 don't assume HMAC_CTX can be copied using memcpy(). 14897 14898 *Verdon Walker <VWalker@novell.com>, Steve Henson* 14899 14900 * Add the possibility to control engines through control names but with 14901 arbitrary arguments instead of just a string. 14902 Change the key loaders to take a UI_METHOD instead of a callback 14903 function pointer. NOTE: this breaks binary compatibility with earlier 14904 versions of OpenSSL [engine]. 14905 Adapt the nCipher code for these new conditions and add a card insertion 14906 callback. 14907 14908 *Richard Levitte* 14909 14910 * Enhance the general user interface with mechanisms to better support 14911 dialog box interfaces, application-defined prompts, the possibility 14912 to use defaults (for example default passwords from somewhere else) 14913 and interrupts/cancellations. 14914 14915 *Richard Levitte* 14916 14917 * Tidy up PKCS#12 attribute handling. Add support for the CSP name 14918 attribute in PKCS#12 files, add new -CSP option to pkcs12 utility. 14919 14920 *Steve Henson* 14921 14922 * Fix a memory leak in 'sk_dup()' in the case reallocation fails. (Also 14923 tidy up some unnecessarily weird code in 'sk_new()'). 14924 14925 *Geoff, reported by Diego Tartara <dtartara@novamens.com>* 14926 14927 * Change the key loading routines for ENGINEs to use the same kind 14928 callback (pem_password_cb) as all other routines that need this 14929 kind of callback. 14930 14931 *Richard Levitte* 14932 14933 * Increase ENTROPY_NEEDED to 32 bytes, as Rijndael can operate with 14934 256 bit (=32 byte) keys. Of course seeding with more entropy bytes 14935 than this minimum value is recommended. 14936 14937 *Lutz Jaenicke* 14938 14939 * New random seeder for OpenVMS, using the system process statistics 14940 that are easily reachable. 14941 14942 *Richard Levitte* 14943 14944 * Windows apparently can't transparently handle global 14945 variables defined in DLLs. Initialisations such as: 14946 14947 const ASN1_ITEM *it = &ASN1_INTEGER_it; 14948 14949 won't compile. This is used by the any applications that need to 14950 declare their own ASN1 modules. This was fixed by adding the option 14951 EXPORT_VAR_AS_FN to all Win32 platforms, although this isn't strictly 14952 needed for static libraries under Win32. 14953 14954 *Steve Henson* 14955 14956 * New functions X509_PURPOSE_set() and X509_TRUST_set() to handle 14957 setting of purpose and trust fields. New X509_STORE trust and 14958 purpose functions and tidy up setting in other SSL functions. 14959 14960 *Steve Henson* 14961 14962 * Add copies of X509_STORE_CTX fields and callbacks to X509_STORE 14963 structure. These are inherited by X509_STORE_CTX when it is 14964 initialised. This allows various defaults to be set in the 14965 X509_STORE structure (such as flags for CRL checking and custom 14966 purpose or trust settings) for functions which only use X509_STORE_CTX 14967 internally such as S/MIME. 14968 14969 Modify X509_STORE_CTX_purpose_inherit() so it only sets purposes and 14970 trust settings if they are not set in X509_STORE. This allows X509_STORE 14971 purposes and trust (in S/MIME for example) to override any set by default. 14972 14973 Add command line options for CRL checking to smime, s_client and s_server 14974 applications. 14975 14976 *Steve Henson* 14977 14978 * Initial CRL based revocation checking. If the CRL checking flag(s) 14979 are set then the CRL is looked up in the X509_STORE structure and 14980 its validity and signature checked, then if the certificate is found 14981 in the CRL the verify fails with a revoked error. 14982 14983 Various new CRL related callbacks added to X509_STORE_CTX structure. 14984 14985 Command line options added to 'verify' application to support this. 14986 14987 This needs some additional work, such as being able to handle multiple 14988 CRLs with different times, extension based lookup (rather than just 14989 by subject name) and ultimately more complete V2 CRL extension 14990 handling. 14991 14992 *Steve Henson* 14993 14994 * Add a general user interface API (crypto/ui/). This is designed 14995 to replace things like des_read_password and friends (backward 14996 compatibility functions using this new API are provided). 14997 The purpose is to remove prompting functions from the DES code 14998 section as well as provide for prompting through dialog boxes in 14999 a window system and the like. 15000 15001 *Richard Levitte* 15002 15003 * Add "ex_data" support to ENGINE so implementations can add state at a 15004 per-structure level rather than having to store it globally. 15005 15006 *Geoff* 15007 15008 * Make it possible for ENGINE structures to be copied when retrieved by 15009 ENGINE_by_id() if the ENGINE specifies a new flag: ENGINE_FLAGS_BY_ID_COPY. 15010 This causes the "original" ENGINE structure to act like a template, 15011 analogous to the RSA vs. RSA_METHOD type of separation. Because of this 15012 operational state can be localised to each ENGINE structure, despite the 15013 fact they all share the same "methods". New ENGINE structures returned in 15014 this case have no functional references and the return value is the single 15015 structural reference. This matches the single structural reference returned 15016 by ENGINE_by_id() normally, when it is incremented on the pre-existing 15017 ENGINE structure. 15018 15019 *Geoff* 15020 15021 * Fix ASN1 decoder when decoding type ANY and V_ASN1_OTHER: since this 15022 needs to match any other type at all we need to manually clear the 15023 tag cache. 15024 15025 *Steve Henson* 15026 15027 * Changes to the "openssl engine" utility to include; 15028 - verbosity levels ('-v', '-vv', and '-vvv') that provide information 15029 about an ENGINE's available control commands. 15030 - executing control commands from command line arguments using the 15031 '-pre' and '-post' switches. '-post' is only used if '-t' is 15032 specified and the ENGINE is successfully initialised. The syntax for 15033 the individual commands are colon-separated, for example; 15034 openssl engine chil -pre FORK_CHECK:0 -pre SO_PATH:/lib/test.so 15035 15036 *Geoff* 15037 15038 * New dynamic control command support for ENGINEs. ENGINEs can now 15039 declare their own commands (numbers), names (strings), descriptions, 15040 and input types for run-time discovery by calling applications. A 15041 subset of these commands are implicitly classed as "executable" 15042 depending on their input type, and only these can be invoked through 15043 the new string-based API function ENGINE_ctrl_cmd_string(). (Eg. this 15044 can be based on user input, config files, etc). The distinction is 15045 that "executable" commands cannot return anything other than a boolean 15046 result and can only support numeric or string input, whereas some 15047 discoverable commands may only be for direct use through 15048 ENGINE_ctrl(), eg. supporting the exchange of binary data, function 15049 pointers, or other custom uses. The "executable" commands are to 15050 support parameterisations of ENGINE behaviour that can be 15051 unambiguously defined by ENGINEs and used consistently across any 15052 OpenSSL-based application. Commands have been added to all the 15053 existing hardware-supporting ENGINEs, noticeably "SO_PATH" to allow 15054 control over shared-library paths without source code alterations. 15055 15056 *Geoff* 15057 15058 * Changed all ENGINE implementations to dynamically allocate their 15059 ENGINEs rather than declaring them statically. Apart from this being 15060 necessary with the removal of the ENGINE_FLAGS_MALLOCED distinction, 15061 this also allows the implementations to compile without using the 15062 internal engine_int.h header. 15063 15064 *Geoff* 15065 15066 * Minor adjustment to "rand" code. RAND_get_rand_method() now returns a 15067 'const' value. Any code that should be able to modify a RAND_METHOD 15068 should already have non-const pointers to it (ie. they should only 15069 modify their own ones). 15070 15071 *Geoff* 15072 15073 * Made a variety of little tweaks to the ENGINE code. 15074 - "atalla" and "ubsec" string definitions were moved from header files 15075 to C code. "nuron" string definitions were placed in variables 15076 rather than hard-coded - allowing parameterisation of these values 15077 later on via ctrl() commands. 15078 - Removed unused "#if 0"'d code. 15079 - Fixed engine list iteration code so it uses ENGINE_free() to release 15080 structural references. 15081 - Constified the RAND_METHOD element of ENGINE structures. 15082 - Constified various get/set functions as appropriate and added 15083 missing functions (including a catch-all ENGINE_cpy that duplicates 15084 all ENGINE values onto a new ENGINE except reference counts/state). 15085 - Removed NULL parameter checks in get/set functions. Setting a method 15086 or function to NULL is a way of cancelling out a previously set 15087 value. Passing a NULL ENGINE parameter is just plain stupid anyway 15088 and doesn't justify the extra error symbols and code. 15089 - Deprecate the ENGINE_FLAGS_MALLOCED define and move the area for 15090 flags from engine_int.h to engine.h. 15091 - Changed prototypes for ENGINE handler functions (init(), finish(), 15092 ctrl(), key-load functions, etc) to take an (ENGINE*) parameter. 15093 15094 *Geoff* 15095 15096 * Implement binary inversion algorithm for BN_mod_inverse in addition 15097 to the algorithm using long division. The binary algorithm can be 15098 used only if the modulus is odd. On 32-bit systems, it is faster 15099 only for relatively small moduli (roughly 20-30% for 128-bit moduli, 15100 roughly 5-15% for 256-bit moduli), so we use it only for moduli 15101 up to 450 bits. In 64-bit environments, the binary algorithm 15102 appears to be advantageous for much longer moduli; here we use it 15103 for moduli up to 2048 bits. 15104 15105 *Bodo Moeller* 15106 15107 * Rewrite CHOICE field setting in ASN1_item_ex_d2i(). The old code 15108 could not support the combine flag in choice fields. 15109 15110 *Steve Henson* 15111 15112 * Add a 'copy_extensions' option to the 'ca' utility. This copies 15113 extensions from a certificate request to the certificate. 15114 15115 *Steve Henson* 15116 15117 * Allow multiple 'certopt' and 'nameopt' options to be separated 15118 by commas. Add 'namopt' and 'certopt' options to the 'ca' config 15119 file: this allows the display of the certificate about to be 15120 signed to be customised, to allow certain fields to be included 15121 or excluded and extension details. The old system didn't display 15122 multicharacter strings properly, omitted fields not in the policy 15123 and couldn't display additional details such as extensions. 15124 15125 *Steve Henson* 15126 15127 * Function EC_POINTs_mul for multiple scalar multiplication 15128 of an arbitrary number of elliptic curve points 15129 \sum scalars[i]*points[i], 15130 optionally including the generator defined for the EC_GROUP: 15131 scalar*generator + \sum scalars[i]*points[i]. 15132 15133 EC_POINT_mul is a simple wrapper function for the typical case 15134 that the point list has just one item (besides the optional 15135 generator). 15136 15137 *Bodo Moeller* 15138 15139 * First EC_METHODs for curves over GF(p): 15140 15141 EC_GFp_simple_method() uses the basic BN_mod_mul and BN_mod_sqr 15142 operations and provides various method functions that can also 15143 operate with faster implementations of modular arithmetic. 15144 15145 EC_GFp_mont_method() reuses most functions that are part of 15146 EC_GFp_simple_method, but uses Montgomery arithmetic. 15147 15148 *Bodo Moeller; point addition and point doubling 15149 implementation directly derived from source code provided by 15150 Lenka Fibikova <fibikova@exp-math.uni-essen.de>* 15151 15152 * Framework for elliptic curves (crypto/ec/ec.h, crypto/ec/ec_lcl.h, 15153 crypto/ec/ec_lib.c): 15154 15155 Curves are EC_GROUP objects (with an optional group generator) 15156 based on EC_METHODs that are built into the library. 15157 15158 Points are EC_POINT objects based on EC_GROUP objects. 15159 15160 Most of the framework would be able to handle curves over arbitrary 15161 finite fields, but as there are no obvious types for fields other 15162 than GF(p), some functions are limited to that for now. 15163 15164 *Bodo Moeller* 15165 15166 * Add the -HTTP option to s_server. It is similar to -WWW, but requires 15167 that the file contains a complete HTTP response. 15168 15169 *Richard Levitte* 15170 15171 * Add the ec directory to mkdef.pl and mkfiles.pl. In mkdef.pl 15172 change the def and num file printf format specifier from "%-40sXXX" 15173 to "%-39s XXX". The latter will always guarantee a space after the 15174 field while the former will cause them to run together if the field 15175 is 40 of more characters long. 15176 15177 *Steve Henson* 15178 15179 * Constify the cipher and digest 'method' functions and structures 15180 and modify related functions to take constant EVP_MD and EVP_CIPHER 15181 pointers. 15182 15183 *Steve Henson* 15184 15185 * Hide BN_CTX structure details in bn_lcl.h instead of publishing them 15186 in <openssl/bn.h>. Also further increase BN_CTX_NUM to 32. 15187 15188 *Bodo Moeller* 15189 15190 * Modify `EVP_Digest*()` routines so they now return values. Although the 15191 internal software routines can never fail additional hardware versions 15192 might. 15193 15194 *Steve Henson* 15195 15196 * Clean up crypto/err/err.h and change some error codes to avoid conflicts: 15197 15198 Previously ERR_R_FATAL was too small and coincided with ERR_LIB_PKCS7 15199 (= ERR_R_PKCS7_LIB); it is now 64 instead of 32. 15200 15201 ASN1 error codes 15202 ERR_R_NESTED_ASN1_ERROR 15203 ... 15204 ERR_R_MISSING_ASN1_EOS 15205 were 4 .. 9, conflicting with 15206 ERR_LIB_RSA (= ERR_R_RSA_LIB) 15207 ... 15208 ERR_LIB_PEM (= ERR_R_PEM_LIB). 15209 They are now 58 .. 63 (i.e., just below ERR_R_FATAL). 15210 15211 Add new error code 'ERR_R_INTERNAL_ERROR'. 15212 15213 *Bodo Moeller* 15214 15215 * Don't overuse locks in crypto/err/err.c: For data retrieval, CRYPTO_r_lock 15216 suffices. 15217 15218 *Bodo Moeller* 15219 15220 * New option '-subj arg' for 'openssl req' and 'openssl ca'. This 15221 sets the subject name for a new request or supersedes the 15222 subject name in a given request. Formats that can be parsed are 15223 'CN=Some Name, OU=myOU, C=IT' 15224 and 15225 'CN=Some Name/OU=myOU/C=IT'. 15226 15227 Add options '-batch' and '-verbose' to 'openssl req'. 15228 15229 *Massimiliano Pala <madwolf@hackmasters.net>* 15230 15231 * Introduce the possibility to access global variables through 15232 functions on platform were that's the best way to handle exporting 15233 global variables in shared libraries. To enable this functionality, 15234 one must configure with "EXPORT_VAR_AS_FN" or defined the C macro 15235 "OPENSSL_EXPORT_VAR_AS_FUNCTION" in crypto/opensslconf.h (the latter 15236 is normally done by Configure or something similar). 15237 15238 To implement a global variable, use the macro OPENSSL_IMPLEMENT_GLOBAL 15239 in the source file (foo.c) like this: 15240 15241 OPENSSL_IMPLEMENT_GLOBAL(int,foo)=1; 15242 OPENSSL_IMPLEMENT_GLOBAL(double,bar); 15243 15244 To declare a global variable, use the macros OPENSSL_DECLARE_GLOBAL 15245 and OPENSSL_GLOBAL_REF in the header file (foo.h) like this: 15246 15247 OPENSSL_DECLARE_GLOBAL(int,foo); 15248 #define foo OPENSSL_GLOBAL_REF(foo) 15249 OPENSSL_DECLARE_GLOBAL(double,bar); 15250 #define bar OPENSSL_GLOBAL_REF(bar) 15251 15252 The #defines are very important, and therefore so is including the 15253 header file everywhere where the defined globals are used. 15254 15255 The macro OPENSSL_EXPORT_VAR_AS_FUNCTION also affects the definition 15256 of ASN.1 items, but that structure is a bit different. 15257 15258 The largest change is in util/mkdef.pl which has been enhanced with 15259 better and easier to understand logic to choose which symbols should 15260 go into the Windows .def files as well as a number of fixes and code 15261 cleanup (among others, algorithm keywords are now sorted 15262 lexicographically to avoid constant rewrites). 15263 15264 *Richard Levitte* 15265 15266 * In BN_div() keep a copy of the sign of 'num' before writing the 15267 result to 'rm' because if rm==num the value will be overwritten 15268 and produce the wrong result if 'num' is negative: this caused 15269 problems with BN_mod() and BN_nnmod(). 15270 15271 *Steve Henson* 15272 15273 * Function OCSP_request_verify(). This checks the signature on an 15274 OCSP request and verifies the signer certificate. The signer 15275 certificate is just checked for a generic purpose and OCSP request 15276 trust settings. 15277 15278 *Steve Henson* 15279 15280 * Add OCSP_check_validity() function to check the validity of OCSP 15281 responses. OCSP responses are prepared in real time and may only 15282 be a few seconds old. Simply checking that the current time lies 15283 between thisUpdate and nextUpdate max reject otherwise valid responses 15284 caused by either OCSP responder or client clock inaccuracy. Instead 15285 we allow thisUpdate and nextUpdate to fall within a certain period of 15286 the current time. The age of the response can also optionally be 15287 checked. Two new options -validity_period and -status_age added to 15288 ocsp utility. 15289 15290 *Steve Henson* 15291 15292 * If signature or public key algorithm is unrecognized print out its 15293 OID rather that just UNKNOWN. 15294 15295 *Steve Henson* 15296 15297 * Change OCSP_cert_to_id() to tolerate a NULL subject certificate and 15298 OCSP_cert_id_new() a NULL serialNumber. This allows a partial certificate 15299 ID to be generated from the issuer certificate alone which can then be 15300 passed to OCSP_id_issuer_cmp(). 15301 15302 *Steve Henson* 15303 15304 * New compilation option ASN1_ITEM_FUNCTIONS. This causes the new 15305 ASN1 modules to export functions returning ASN1_ITEM pointers 15306 instead of the ASN1_ITEM structures themselves. This adds several 15307 new macros which allow the underlying ASN1 function/structure to 15308 be accessed transparently. As a result code should not use ASN1_ITEM 15309 references directly (such as &X509_it) but instead use the relevant 15310 macros (such as ASN1_ITEM_rptr(X509)). This option is to allow 15311 use of the new ASN1 code on platforms where exporting structures 15312 is problematical (for example in shared libraries) but exporting 15313 functions returning pointers to structures is not. 15314 15315 *Steve Henson* 15316 15317 * Add support for overriding the generation of SSL/TLS session IDs. 15318 These callbacks can be registered either in an SSL_CTX or per SSL. 15319 The purpose of this is to allow applications to control, if they wish, 15320 the arbitrary values chosen for use as session IDs, particularly as it 15321 can be useful for session caching in multiple-server environments. A 15322 command-line switch for testing this (and any client code that wishes 15323 to use such a feature) has been added to "s_server". 15324 15325 *Geoff Thorpe, Lutz Jaenicke* 15326 15327 * Modify mkdef.pl to recognise and parse preprocessor conditionals 15328 of the form `#if defined(...) || defined(...) || ...` and 15329 `#if !defined(...) && !defined(...) && ...`. This also avoids 15330 the growing number of special cases it was previously handling. 15331 15332 *Richard Levitte* 15333 15334 * Make all configuration macros available for application by making 15335 sure they are available in opensslconf.h, by giving them names starting 15336 with `OPENSSL_` to avoid conflicts with other packages and by making 15337 sure e_os2.h will cover all platform-specific cases together with 15338 opensslconf.h. 15339 Additionally, it is now possible to define configuration/platform- 15340 specific names (called "system identities"). In the C code, these 15341 are prefixed with `OPENSSL_SYSNAME_`. e_os2.h will create another 15342 macro with the name beginning with `OPENSSL_SYS_`, which is determined 15343 from `OPENSSL_SYSNAME_*` or compiler-specific macros depending on 15344 what is available. 15345 15346 *Richard Levitte* 15347 15348 * New option -set_serial to 'req' and 'x509' this allows the serial 15349 number to use to be specified on the command line. Previously self 15350 signed certificates were hard coded with serial number 0 and the 15351 CA options of 'x509' had to use a serial number in a file which was 15352 auto incremented. 15353 15354 *Steve Henson* 15355 15356 * New options to 'ca' utility to support V2 CRL entry extensions. 15357 Currently CRL reason, invalidity date and hold instruction are 15358 supported. Add new CRL extensions to V3 code and some new objects. 15359 15360 *Steve Henson* 15361 15362 * New function EVP_CIPHER_CTX_set_padding() this is used to 15363 disable standard block padding (aka PKCS#5 padding) in the EVP 15364 API, which was previously mandatory. This means that the data is 15365 not padded in any way and so the total length much be a multiple 15366 of the block size, otherwise an error occurs. 15367 15368 *Steve Henson* 15369 15370 * Initial (incomplete) OCSP SSL support. 15371 15372 *Steve Henson* 15373 15374 * New function OCSP_parse_url(). This splits up a URL into its host, 15375 port and path components: primarily to parse OCSP URLs. New -url 15376 option to ocsp utility. 15377 15378 *Steve Henson* 15379 15380 * New nonce behavior. The return value of OCSP_check_nonce() now 15381 reflects the various checks performed. Applications can decide 15382 whether to tolerate certain situations such as an absent nonce 15383 in a response when one was present in a request: the ocsp application 15384 just prints out a warning. New function OCSP_add1_basic_nonce() 15385 this is to allow responders to include a nonce in a response even if 15386 the request is nonce-less. 15387 15388 *Steve Henson* 15389 15390 * Disable stdin buffering in `load_cert()` (`apps/apps.c`) so that no certs are 15391 skipped when using openssl x509 multiple times on a single input file, 15392 e.g. `(openssl x509 -out cert1; openssl x509 -out cert2) <certs`. 15393 15394 *Bodo Moeller* 15395 15396 * Make ASN1_UTCTIME_set_string() and ASN1_GENERALIZEDTIME_set_string() 15397 set string type: to handle setting ASN1_TIME structures. Fix ca 15398 utility to correctly initialize revocation date of CRLs. 15399 15400 *Steve Henson* 15401 15402 * New option SSL_OP_CIPHER_SERVER_PREFERENCE allows the server to override 15403 the clients preferred ciphersuites and rather use its own preferences. 15404 Should help to work around M$ SGC (Server Gated Cryptography) bug in 15405 Internet Explorer by ensuring unchanged hash method during stepup. 15406 (Also replaces the broken/deactivated SSL_OP_NON_EXPORT_FIRST option.) 15407 15408 *Lutz Jaenicke* 15409 15410 * Make mkdef.pl recognise all DECLARE_ASN1 macros, change rijndael 15411 to aes and add a new 'exist' option to print out symbols that don't 15412 appear to exist. 15413 15414 *Steve Henson* 15415 15416 * Additional options to ocsp utility to allow flags to be set and 15417 additional certificates supplied. 15418 15419 *Steve Henson* 15420 15421 * Add the option -VAfile to 'openssl ocsp', so the user can give the 15422 OCSP client a number of certificate to only verify the response 15423 signature against. 15424 15425 *Richard Levitte* 15426 15427 * Update Rijndael code to version 3.0 and change EVP AES ciphers to 15428 handle the new API. Currently only ECB, CBC modes supported. Add new 15429 AES OIDs. 15430 15431 Add TLS AES ciphersuites as described in RFC3268, "Advanced 15432 Encryption Standard (AES) Ciphersuites for Transport Layer 15433 Security (TLS)". (In beta versions of OpenSSL 0.9.7, these were 15434 not enabled by default and were not part of the "ALL" ciphersuite 15435 alias because they were not yet official; they could be 15436 explicitly requested by specifying the "AESdraft" ciphersuite 15437 group alias. In the final release of OpenSSL 0.9.7, the group 15438 alias is called "AES" and is part of "ALL".) 15439 15440 *Ben Laurie, Steve Henson, Bodo Moeller* 15441 15442 * New function OCSP_copy_nonce() to copy nonce value (if present) from 15443 request to response. 15444 15445 *Steve Henson* 15446 15447 * Functions for OCSP responders. OCSP_request_onereq_count(), 15448 OCSP_request_onereq_get0(), OCSP_onereq_get0_id() and OCSP_id_get0_info() 15449 extract information from a certificate request. OCSP_response_create() 15450 creates a response and optionally adds a basic response structure. 15451 OCSP_basic_add1_status() adds a complete single response to a basic 15452 response and returns the OCSP_SINGLERESP structure just added (to allow 15453 extensions to be included for example). OCSP_basic_add1_cert() adds a 15454 certificate to a basic response and OCSP_basic_sign() signs a basic 15455 response with various flags. New helper functions ASN1_TIME_check() 15456 (checks validity of ASN1_TIME structure) and ASN1_TIME_to_generalizedtime() 15457 (converts ASN1_TIME to GeneralizedTime). 15458 15459 *Steve Henson* 15460 15461 * Various new functions. EVP_Digest() combines EVP_Digest{Init,Update,Final}() 15462 in a single operation. X509_get0_pubkey_bitstr() extracts the public_key 15463 structure from a certificate. X509_pubkey_digest() digests the public_key 15464 contents: this is used in various key identifiers. 15465 15466 *Steve Henson* 15467 15468 * Make sk_sort() tolerate a NULL argument. 15469 15470 *Steve Henson reported by Massimiliano Pala <madwolf@comune.modena.it>* 15471 15472 * New OCSP verify flag OCSP_TRUSTOTHER. When set the "other" certificates 15473 passed by the function are trusted implicitly. If any of them signed the 15474 response then it is assumed to be valid and is not verified. 15475 15476 *Steve Henson* 15477 15478 * In PKCS7_set_type() initialise content_type in PKCS7_ENC_CONTENT 15479 to data. This was previously part of the PKCS7 ASN1 code. This 15480 was causing problems with OpenSSL created PKCS#12 and PKCS#7 structures. 15481 *Steve Henson, reported by Kenneth R. Robinette 15482 <support@securenetterm.com>* 15483 15484 * Add CRYPTO_push_info() and CRYPTO_pop_info() calls to new ASN1 15485 routines: without these tracing memory leaks is very painful. 15486 Fix leaks in PKCS12 and PKCS7 routines. 15487 15488 *Steve Henson* 15489 15490 * Make X509_time_adj() cope with the new behaviour of ASN1_TIME_new(). 15491 Previously it initialised the 'type' argument to V_ASN1_UTCTIME which 15492 effectively meant GeneralizedTime would never be used. Now it 15493 is initialised to -1 but X509_time_adj() now has to check the value 15494 and use ASN1_TIME_set() if the value is not V_ASN1_UTCTIME or 15495 V_ASN1_GENERALIZEDTIME, without this it always uses GeneralizedTime. 15496 *Steve Henson, reported by Kenneth R. Robinette 15497 <support@securenetterm.com>* 15498 15499 * Fixes to BN_to_ASN1_INTEGER when bn is zero. This would previously 15500 result in a zero length in the ASN1_INTEGER structure which was 15501 not consistent with the structure when d2i_ASN1_INTEGER() was used 15502 and would cause ASN1_INTEGER_cmp() to fail. Enhance s2i_ASN1_INTEGER() 15503 to cope with hex and negative integers. Fix bug in i2a_ASN1_INTEGER() 15504 where it did not print out a minus for negative ASN1_INTEGER. 15505 15506 *Steve Henson* 15507 15508 * Add summary printout to ocsp utility. The various functions which 15509 convert status values to strings have been renamed to: 15510 OCSP_response_status_str(), OCSP_cert_status_str() and 15511 OCSP_crl_reason_str() and are no longer static. New options 15512 to verify nonce values and to disable verification. OCSP response 15513 printout format cleaned up. 15514 15515 *Steve Henson* 15516 15517 * Add additional OCSP certificate checks. These are those specified 15518 in RFC2560. This consists of two separate checks: the CA of the 15519 certificate being checked must either be the OCSP signer certificate 15520 or the issuer of the OCSP signer certificate. In the latter case the 15521 OCSP signer certificate must contain the OCSP signing extended key 15522 usage. This check is performed by attempting to match the OCSP 15523 signer or the OCSP signer CA to the issuerNameHash and issuerKeyHash 15524 in the OCSP_CERTID structures of the response. 15525 15526 *Steve Henson* 15527 15528 * Initial OCSP certificate verification added to OCSP_basic_verify() 15529 and related routines. This uses the standard OpenSSL certificate 15530 verify routines to perform initial checks (just CA validity) and 15531 to obtain the certificate chain. Then additional checks will be 15532 performed on the chain. Currently the root CA is checked to see 15533 if it is explicitly trusted for OCSP signing. This is used to set 15534 a root CA as a global signing root: that is any certificate that 15535 chains to that CA is an acceptable OCSP signing certificate. 15536 15537 *Steve Henson* 15538 15539 * New '-extfile ...' option to 'openssl ca' for reading X.509v3 15540 extensions from a separate configuration file. 15541 As when reading extensions from the main configuration file, 15542 the '-extensions ...' option may be used for specifying the 15543 section to use. 15544 15545 *Massimiliano Pala <madwolf@comune.modena.it>* 15546 15547 * New OCSP utility. Allows OCSP requests to be generated or 15548 read. The request can be sent to a responder and the output 15549 parsed, outputted or printed in text form. Not complete yet: 15550 still needs to check the OCSP response validity. 15551 15552 *Steve Henson* 15553 15554 * New subcommands for 'openssl ca': 15555 `openssl ca -status <serial>` prints the status of the cert with 15556 the given serial number (according to the index file). 15557 `openssl ca -updatedb` updates the expiry status of certificates 15558 in the index file. 15559 15560 *Massimiliano Pala <madwolf@comune.modena.it>* 15561 15562 * New '-newreq-nodes' command option to CA.pl. This is like 15563 '-newreq', but calls 'openssl req' with the '-nodes' option 15564 so that the resulting key is not encrypted. 15565 15566 *Damien Miller <djm@mindrot.org>* 15567 15568 * New configuration for the GNU Hurd. 15569 15570 *Jonathan Bartlett <johnnyb@wolfram.com> via Richard Levitte* 15571 15572 * Initial code to implement OCSP basic response verify. This 15573 is currently incomplete. Currently just finds the signer's 15574 certificate and verifies the signature on the response. 15575 15576 *Steve Henson* 15577 15578 * New SSLeay_version code SSLEAY_DIR to determine the compiled-in 15579 value of OPENSSLDIR. This is available via the new '-d' option 15580 to 'openssl version', and is also included in 'openssl version -a'. 15581 15582 *Bodo Moeller* 15583 15584 * Allowing defining memory allocation callbacks that will be given 15585 file name and line number information in additional arguments 15586 (a `const char*` and an int). The basic functionality remains, as 15587 well as the original possibility to just replace malloc(), 15588 realloc() and free() by functions that do not know about these 15589 additional arguments. To register and find out the current 15590 settings for extended allocation functions, the following 15591 functions are provided: 15592 15593 CRYPTO_set_mem_ex_functions 15594 CRYPTO_set_locked_mem_ex_functions 15595 CRYPTO_get_mem_ex_functions 15596 CRYPTO_get_locked_mem_ex_functions 15597 15598 These work the same way as CRYPTO_set_mem_functions and friends. 15599 `CRYPTO_get_[locked_]mem_functions` now writes 0 where such an 15600 extended allocation function is enabled. 15601 Similarly, `CRYPTO_get_[locked_]mem_ex_functions` writes 0 where 15602 a conventional allocation function is enabled. 15603 15604 *Richard Levitte, Bodo Moeller* 15605 15606 * Finish off removing the remaining LHASH function pointer casts. 15607 There should no longer be any prototype-casting required when using 15608 the LHASH abstraction, and any casts that remain are "bugs". See 15609 the callback types and macros at the head of lhash.h for details 15610 (and "OBJ_cleanup" in crypto/objects/obj_dat.c as an example). 15611 15612 *Geoff Thorpe* 15613 15614 * Add automatic query of EGD sockets in RAND_poll() for the unix variant. 15615 If /dev/[u]random devices are not available or do not return enough 15616 entropy, EGD style sockets (served by EGD or PRNGD) will automatically 15617 be queried. 15618 The locations /var/run/egd-pool, /dev/egd-pool, /etc/egd-pool, and 15619 /etc/entropy will be queried once each in this sequence, querying stops 15620 when enough entropy was collected without querying more sockets. 15621 15622 *Lutz Jaenicke* 15623 15624 * Change the Unix RAND_poll() variant to be able to poll several 15625 random devices, as specified by DEVRANDOM, until a sufficient amount 15626 of data has been collected. We spend at most 10 ms on each file 15627 (select timeout) and read in non-blocking mode. DEVRANDOM now 15628 defaults to the list "/dev/urandom", "/dev/random", "/dev/srandom" 15629 (previously it was just the string "/dev/urandom"), so on typical 15630 platforms the 10 ms delay will never occur. 15631 Also separate out the Unix variant to its own file, rand_unix.c. 15632 For VMS, there's a currently-empty rand_vms.c. 15633 15634 *Richard Levitte* 15635 15636 * Move OCSP client related routines to ocsp_cl.c. These 15637 provide utility functions which an application needing 15638 to issue a request to an OCSP responder and analyse the 15639 response will typically need: as opposed to those which an 15640 OCSP responder itself would need which will be added later. 15641 15642 OCSP_request_sign() signs an OCSP request with an API similar 15643 to PKCS7_sign(). OCSP_response_status() returns status of OCSP 15644 response. OCSP_response_get1_basic() extracts basic response 15645 from response. OCSP_resp_find_status(): finds and extracts status 15646 information from an OCSP_CERTID structure (which will be created 15647 when the request structure is built). These are built from lower 15648 level functions which work on OCSP_SINGLERESP structures but 15649 won't normally be used unless the application wishes to examine 15650 extensions in the OCSP response for example. 15651 15652 Replace nonce routines with a pair of functions. 15653 OCSP_request_add1_nonce() adds a nonce value and optionally 15654 generates a random value. OCSP_check_nonce() checks the 15655 validity of the nonce in an OCSP response. 15656 15657 *Steve Henson* 15658 15659 * Change function OCSP_request_add() to OCSP_request_add0_id(). 15660 This doesn't copy the supplied OCSP_CERTID and avoids the 15661 need to free up the newly created id. Change return type 15662 to OCSP_ONEREQ to return the internal OCSP_ONEREQ structure. 15663 This can then be used to add extensions to the request. 15664 Deleted OCSP_request_new(), since most of its functionality 15665 is now in OCSP_REQUEST_new() (and the case insensitive name 15666 clash) apart from the ability to set the request name which 15667 will be added elsewhere. 15668 15669 *Steve Henson* 15670 15671 * Update OCSP API. Remove obsolete extensions argument from 15672 various functions. Extensions are now handled using the new 15673 OCSP extension code. New simple OCSP HTTP function which 15674 can be used to send requests and parse the response. 15675 15676 *Steve Henson* 15677 15678 * Fix the PKCS#7 (S/MIME) code to work with new ASN1. Two new 15679 ASN1_ITEM structures help with sign and verify. PKCS7_ATTR_SIGN 15680 uses the special reorder version of SET OF to sort the attributes 15681 and reorder them to match the encoded order. This resolves a long 15682 standing problem: a verify on a PKCS7 structure just after signing 15683 it used to fail because the attribute order did not match the 15684 encoded order. PKCS7_ATTR_VERIFY does not reorder the attributes: 15685 it uses the received order. This is necessary to tolerate some broken 15686 software that does not order SET OF. This is handled by encoding 15687 as a SEQUENCE OF but using implicit tagging (with UNIVERSAL class) 15688 to produce the required SET OF. 15689 15690 *Steve Henson* 15691 15692 * Have mk1mf.pl generate the macros OPENSSL_BUILD_SHLIBCRYPTO and 15693 OPENSSL_BUILD_SHLIBSSL and use them appropriately in the header 15694 files to get correct declarations of the ASN.1 item variables. 15695 15696 *Richard Levitte* 15697 15698 * Rewrite of PKCS#12 code to use new ASN1 functionality. Replace many 15699 PKCS#12 macros with real functions. Fix two unrelated ASN1 bugs: 15700 asn1_check_tlen() would sometimes attempt to use 'ctx' when it was 15701 NULL and ASN1_TYPE was not dereferenced properly in asn1_ex_c2i(). 15702 New ASN1 macro: DECLARE_ASN1_ITEM() which just declares the relevant 15703 ASN1_ITEM and no wrapper functions. 15704 15705 *Steve Henson* 15706 15707 * New functions or ASN1_item_d2i_fp() and ASN1_item_d2i_bio(). These 15708 replace the old function pointer based I/O routines. Change most of 15709 the `*_d2i_bio()` and `*_d2i_fp()` functions to use these. 15710 15711 *Steve Henson* 15712 15713 * Enhance mkdef.pl to be more accepting about spacing in C preprocessor 15714 lines, recognize more "algorithms" that can be deselected, and make 15715 it complain about algorithm deselection that isn't recognised. 15716 15717 *Richard Levitte* 15718 15719 * New ASN1 functions to handle dup, sign, verify, digest, pack and 15720 unpack operations in terms of ASN1_ITEM. Modify existing wrappers 15721 to use new functions. Add NO_ASN1_OLD which can be set to remove 15722 some old style ASN1 functions: this can be used to determine if old 15723 code will still work when these eventually go away. 15724 15725 *Steve Henson* 15726 15727 * New extension functions for OCSP structures, these follow the 15728 same conventions as certificates and CRLs. 15729 15730 *Steve Henson* 15731 15732 * New function X509V3_add1_i2d(). This automatically encodes and 15733 adds an extension. Its behaviour can be customised with various 15734 flags to append, replace or delete. Various wrappers added for 15735 certificates and CRLs. 15736 15737 *Steve Henson* 15738 15739 * Fix to avoid calling the underlying ASN1 print routine when 15740 an extension cannot be parsed. Correct a typo in the 15741 OCSP_SERVICELOC extension. Tidy up print OCSP format. 15742 15743 *Steve Henson* 15744 15745 * Make mkdef.pl parse some of the ASN1 macros and add appropriate 15746 entries for variables. 15747 15748 *Steve Henson* 15749 15750 * Add functionality to `apps/openssl.c` for detecting locking 15751 problems: As the program is single-threaded, all we have 15752 to do is register a locking callback using an array for 15753 storing which locks are currently held by the program. 15754 15755 *Bodo Moeller* 15756 15757 * Use a lock around the call to CRYPTO_get_ex_new_index() in 15758 SSL_get_ex_data_X509_STORE_idx(), which is used in 15759 ssl_verify_cert_chain() and thus can be called at any time 15760 during TLS/SSL handshakes so that thread-safety is essential. 15761 Unfortunately, the ex_data design is not at all suited 15762 for multi-threaded use, so it probably should be abolished. 15763 15764 *Bodo Moeller* 15765 15766 * Added Broadcom "ubsec" ENGINE to OpenSSL. 15767 15768 *Broadcom, tweaked and integrated by Geoff Thorpe* 15769 15770 * Move common extension printing code to new function 15771 X509V3_print_extensions(). Reorganise OCSP print routines and 15772 implement some needed OCSP ASN1 functions. Add OCSP extensions. 15773 15774 *Steve Henson* 15775 15776 * New function X509_signature_print() to remove duplication in some 15777 print routines. 15778 15779 *Steve Henson* 15780 15781 * Add a special meaning when SET OF and SEQUENCE OF flags are both 15782 set (this was treated exactly the same as SET OF previously). This 15783 is used to reorder the STACK representing the structure to match the 15784 encoding. This will be used to get round a problem where a PKCS7 15785 structure which was signed could not be verified because the STACK 15786 order did not reflect the encoded order. 15787 15788 *Steve Henson* 15789 15790 * Reimplement the OCSP ASN1 module using the new code. 15791 15792 *Steve Henson* 15793 15794 * Update the X509V3 code to permit the use of an ASN1_ITEM structure 15795 for its ASN1 operations. The old style function pointers still exist 15796 for now but they will eventually go away. 15797 15798 *Steve Henson* 15799 15800 * Merge in replacement ASN1 code from the ASN1 branch. This almost 15801 completely replaces the old ASN1 functionality with a table driven 15802 encoder and decoder which interprets an ASN1_ITEM structure describing 15803 the ASN1 module. Compatibility with the existing ASN1 API (i2d,d2i) is 15804 largely maintained. Almost all of the old asn1_mac.h macro based ASN1 15805 has also been converted to the new form. 15806 15807 *Steve Henson* 15808 15809 * Change BN_mod_exp_recp so that negative moduli are tolerated 15810 (the sign is ignored). Similarly, ignore the sign in BN_MONT_CTX_set 15811 so that BN_mod_exp_mont and BN_mod_exp_mont_word work 15812 for negative moduli. 15813 15814 *Bodo Moeller* 15815 15816 * Fix BN_uadd and BN_usub: Always return non-negative results instead 15817 of not touching the result's sign bit. 15818 15819 *Bodo Moeller* 15820 15821 * BN_div bugfix: If the result is 0, the sign (res->neg) must not be 15822 set. 15823 15824 *Bodo Moeller* 15825 15826 * Changed the LHASH code to use prototypes for callbacks, and created 15827 macros to declare and implement thin (optionally static) functions 15828 that provide type-safety and avoid function pointer casting for the 15829 type-specific callbacks. 15830 15831 *Geoff Thorpe* 15832 15833 * Added Kerberos Cipher Suites to be used with TLS, as written in 15834 RFC 2712. 15835 *Veers Staats <staatsvr@asc.hpc.mil>, 15836 Jeffrey Altman <jaltman@columbia.edu>, via Richard Levitte* 15837 15838 * Reformat the FAQ so the different questions and answers can be divided 15839 in sections depending on the subject. 15840 15841 *Richard Levitte* 15842 15843 * Have the zlib compression code load ZLIB.DLL dynamically under 15844 Windows. 15845 15846 *Richard Levitte* 15847 15848 * New function BN_mod_sqrt for computing square roots modulo a prime 15849 (using the probabilistic Tonelli-Shanks algorithm unless 15850 p == 3 (mod 4) or p == 5 (mod 8), which are cases that can 15851 be handled deterministically). 15852 15853 *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller* 15854 15855 * Make BN_mod_inverse faster by explicitly handling small quotients 15856 in the Euclid loop. (Speed gain about 20% for small moduli [256 or 15857 512 bits], about 30% for larger ones [1024 or 2048 bits].) 15858 15859 *Bodo Moeller* 15860 15861 * New function BN_kronecker. 15862 15863 *Bodo Moeller* 15864 15865 * Fix BN_gcd so that it works on negative inputs; the result is 15866 positive unless both parameters are zero. 15867 Previously something reasonably close to an infinite loop was 15868 possible because numbers could be growing instead of shrinking 15869 in the implementation of Euclid's algorithm. 15870 15871 *Bodo Moeller* 15872 15873 * Fix BN_is_word() and BN_is_one() macros to take into account the 15874 sign of the number in question. 15875 15876 Fix BN_is_word(a,w) to work correctly for w == 0. 15877 15878 The old BN_is_word(a,w) macro is now called BN_abs_is_word(a,w) 15879 because its test if the absolute value of 'a' equals 'w'. 15880 Note that BN_abs_is_word does *not* handle w == 0 reliably; 15881 it exists mostly for use in the implementations of BN_is_zero(), 15882 BN_is_one(), and BN_is_word(). 15883 15884 *Bodo Moeller* 15885 15886 * New function BN_swap. 15887 15888 *Bodo Moeller* 15889 15890 * Use BN_nnmod instead of BN_mod in crypto/bn/bn_exp.c so that 15891 the exponentiation functions are more likely to produce reasonable 15892 results on negative inputs. 15893 15894 *Bodo Moeller* 15895 15896 * Change BN_mod_mul so that the result is always non-negative. 15897 Previously, it could be negative if one of the factors was negative; 15898 I don't think anyone really wanted that behaviour. 15899 15900 *Bodo Moeller* 15901 15902 * Move `BN_mod_...` functions into new file `crypto/bn/bn_mod.c` 15903 (except for exponentiation, which stays in `crypto/bn/bn_exp.c`, 15904 and `BN_mod_mul_reciprocal`, which stays in `crypto/bn/bn_recp.c`) 15905 and add new functions: 15906 15907 BN_nnmod 15908 BN_mod_sqr 15909 BN_mod_add 15910 BN_mod_add_quick 15911 BN_mod_sub 15912 BN_mod_sub_quick 15913 BN_mod_lshift1 15914 BN_mod_lshift1_quick 15915 BN_mod_lshift 15916 BN_mod_lshift_quick 15917 15918 These functions always generate non-negative results. 15919 15920 `BN_nnmod` otherwise is `like BN_mod` (if `BN_mod` computes a remainder `r` 15921 such that `|m| < r < 0`, `BN_nnmod` will output `rem + |m|` instead). 15922 15923 `BN_mod_XXX_quick(r, a, [b,] m)` generates the same result as 15924 `BN_mod_XXX(r, a, [b,] m, ctx)`, but requires that `a` [and `b`] 15925 be reduced modulo `m`. 15926 15927 *Lenka Fibikova <fibikova@exp-math.uni-essen.de>, Bodo Moeller* 15928 15929<!-- 15930 The following entry accidentally appeared in the CHANGES file 15931 distributed with OpenSSL 0.9.7. The modifications described in 15932 it do *not* apply to OpenSSL 0.9.7. 15933 15934 * Remove a few calls to bn_wexpand() in BN_sqr() (the one in there 15935 was actually never needed) and in BN_mul(). The removal in BN_mul() 15936 required a small change in bn_mul_part_recursive() and the addition 15937 of the functions bn_cmp_part_words(), bn_sub_part_words() and 15938 bn_add_part_words(), which do the same thing as bn_cmp_words(), 15939 bn_sub_words() and bn_add_words() except they take arrays with 15940 differing sizes. 15941 15942 *Richard Levitte* 15943--> 15944 15945 * In 'openssl passwd', verify passwords read from the terminal 15946 unless the '-salt' option is used (which usually means that 15947 verification would just waste user's time since the resulting 15948 hash is going to be compared with some given password hash) 15949 or the new '-noverify' option is used. 15950 15951 This is an incompatible change, but it does not affect 15952 non-interactive use of 'openssl passwd' (passwords on the command 15953 line, '-stdin' option, '-in ...' option) and thus should not 15954 cause any problems. 15955 15956 *Bodo Moeller* 15957 15958 * Remove all references to RSAref, since there's no more need for it. 15959 15960 *Richard Levitte* 15961 15962 * Make DSO load along a path given through an environment variable 15963 (SHLIB_PATH) with shl_load(). 15964 15965 *Richard Levitte* 15966 15967 * Constify the ENGINE code as a result of BIGNUM constification. 15968 Also constify the RSA code and most things related to it. In a 15969 few places, most notable in the depth of the ASN.1 code, ugly 15970 casts back to non-const were required (to be solved at a later 15971 time) 15972 15973 *Richard Levitte* 15974 15975 * Make it so the openssl application has all engines loaded by default. 15976 15977 *Richard Levitte* 15978 15979 * Constify the BIGNUM routines a little more. 15980 15981 *Richard Levitte* 15982 15983 * Add the following functions: 15984 15985 ENGINE_load_cswift() 15986 ENGINE_load_chil() 15987 ENGINE_load_atalla() 15988 ENGINE_load_nuron() 15989 ENGINE_load_builtin_engines() 15990 15991 That way, an application can itself choose if external engines that 15992 are built-in in OpenSSL shall ever be used or not. The benefit is 15993 that applications won't have to be linked with libdl or other dso 15994 libraries unless it's really needed. 15995 15996 Changed 'openssl engine' to load all engines on demand. 15997 Changed the engine header files to avoid the duplication of some 15998 declarations (they differed!). 15999 16000 *Richard Levitte* 16001 16002 * 'openssl engine' can now list capabilities. 16003 16004 *Richard Levitte* 16005 16006 * Better error reporting in 'openssl engine'. 16007 16008 *Richard Levitte* 16009 16010 * Never call load_dh_param(NULL) in s_server. 16011 16012 *Bodo Moeller* 16013 16014 * Add engine application. It can currently list engines by name and 16015 identity, and test if they are actually available. 16016 16017 *Richard Levitte* 16018 16019 * Improve RPM specification file by forcing symbolic linking and making 16020 sure the installed documentation is also owned by root.root. 16021 16022 *Damien Miller <djm@mindrot.org>* 16023 16024 * Give the OpenSSL applications more possibilities to make use of 16025 keys (public as well as private) handled by engines. 16026 16027 *Richard Levitte* 16028 16029 * Add OCSP code that comes from CertCo. 16030 16031 *Richard Levitte* 16032 16033 * Add VMS support for the Rijndael code. 16034 16035 *Richard Levitte* 16036 16037 * Added untested support for Nuron crypto accelerator. 16038 16039 *Ben Laurie* 16040 16041 * Add support for external cryptographic devices. This code was 16042 previously distributed separately as the "engine" branch. 16043 16044 *Geoff Thorpe, Richard Levitte* 16045 16046 * Rework the filename-translation in the DSO code. It is now possible to 16047 have far greater control over how a "name" is turned into a filename 16048 depending on the operating environment and any oddities about the 16049 different shared library filenames on each system. 16050 16051 *Geoff Thorpe* 16052 16053 * Support threads on FreeBSD-elf in Configure. 16054 16055 *Richard Levitte* 16056 16057 * Fix for SHA1 assembly problem with MASM: it produces 16058 warnings about corrupt line number information when assembling 16059 with debugging information. This is caused by the overlapping 16060 of two sections. 16061 16062 *Bernd Matthes <mainbug@celocom.de>, Steve Henson* 16063 16064 * NCONF changes. 16065 NCONF_get_number() has no error checking at all. As a replacement, 16066 NCONF_get_number_e() is defined (`_e` for "error checking") and is 16067 promoted strongly. The old NCONF_get_number is kept around for 16068 binary backward compatibility. 16069 Make it possible for methods to load from something other than a BIO, 16070 by providing a function pointer that is given a name instead of a BIO. 16071 For example, this could be used to load configuration data from an 16072 LDAP server. 16073 16074 *Richard Levitte* 16075 16076 * Fix for non blocking accept BIOs. Added new I/O special reason 16077 BIO_RR_ACCEPT to cover this case. Previously use of accept BIOs 16078 with non blocking I/O was not possible because no retry code was 16079 implemented. Also added new SSL code SSL_WANT_ACCEPT to cover 16080 this case. 16081 16082 *Steve Henson* 16083 16084 * Added the beginnings of Rijndael support. 16085 16086 *Ben Laurie* 16087 16088 * Fix for bug in DirectoryString mask setting. Add support for 16089 X509_NAME_print_ex() in 'req' and X509_print_ex() function 16090 to allow certificate printing to more controllable, additional 16091 'certopt' option to 'x509' to allow new printing options to be 16092 set. 16093 16094 *Steve Henson* 16095 16096 * Clean old EAY MD5 hack from e_os.h. 16097 16098 *Richard Levitte* 16099 16100### Changes between 0.9.6l and 0.9.6m [17 Mar 2004] 16101 16102 * Fix null-pointer assignment in do_change_cipher_spec() revealed 16103 by using the Codenomicon TLS Test Tool ([CVE-2004-0079]) 16104 16105 *Joe Orton, Steve Henson* 16106 16107### Changes between 0.9.6k and 0.9.6l [04 Nov 2003] 16108 16109 * Fix additional bug revealed by the NISCC test suite: 16110 16111 Stop bug triggering large recursion when presented with 16112 certain ASN.1 tags ([CVE-2003-0851]) 16113 16114 *Steve Henson* 16115 16116### Changes between 0.9.6j and 0.9.6k [30 Sep 2003] 16117 16118 * Fix various bugs revealed by running the NISCC test suite: 16119 16120 Stop out of bounds reads in the ASN1 code when presented with 16121 invalid tags (CVE-2003-0543 and CVE-2003-0544). 16122 16123 If verify callback ignores invalid public key errors don't try to check 16124 certificate signature with the NULL public key. 16125 16126 *Steve Henson* 16127 16128 * In ssl3_accept() (ssl/s3_srvr.c) only accept a client certificate 16129 if the server requested one: as stated in TLS 1.0 and SSL 3.0 16130 specifications. 16131 16132 *Steve Henson* 16133 16134 * In ssl3_get_client_hello() (ssl/s3_srvr.c), tolerate additional 16135 extra data after the compression methods not only for TLS 1.0 16136 but also for SSL 3.0 (as required by the specification). 16137 16138 *Bodo Moeller; problem pointed out by Matthias Loepfe* 16139 16140 * Change X509_certificate_type() to mark the key as exported/exportable 16141 when it's 512 *bits* long, not 512 bytes. 16142 16143 *Richard Levitte* 16144 16145### Changes between 0.9.6i and 0.9.6j [10 Apr 2003] 16146 16147 * Countermeasure against the Klima-Pokorny-Rosa extension of 16148 Bleichbacher's attack on PKCS #1 v1.5 padding: treat 16149 a protocol version number mismatch like a decryption error 16150 in ssl3_get_client_key_exchange (ssl/s3_srvr.c). 16151 16152 *Bodo Moeller* 16153 16154 * Turn on RSA blinding by default in the default implementation 16155 to avoid a timing attack. Applications that don't want it can call 16156 RSA_blinding_off() or use the new flag RSA_FLAG_NO_BLINDING. 16157 They would be ill-advised to do so in most cases. 16158 16159 *Ben Laurie, Steve Henson, Geoff Thorpe, Bodo Moeller* 16160 16161 * Change RSA blinding code so that it works when the PRNG is not 16162 seeded (in this case, the secret RSA exponent is abused as 16163 an unpredictable seed -- if it is not unpredictable, there 16164 is no point in blinding anyway). Make RSA blinding thread-safe 16165 by remembering the creator's thread ID in rsa->blinding and 16166 having all other threads use local one-time blinding factors 16167 (this requires more computation than sharing rsa->blinding, but 16168 avoids excessive locking; and if an RSA object is not shared 16169 between threads, blinding will still be very fast). 16170 16171 *Bodo Moeller* 16172 16173### Changes between 0.9.6h and 0.9.6i [19 Feb 2003] 16174 16175 * In ssl3_get_record (ssl/s3_pkt.c), minimize information leaked 16176 via timing by performing a MAC computation even if incorrect 16177 block cipher padding has been found. This is a countermeasure 16178 against active attacks where the attacker has to distinguish 16179 between bad padding and a MAC verification error. ([CVE-2003-0078]) 16180 16181 *Bodo Moeller; problem pointed out by Brice Canvel (EPFL), 16182 Alain Hiltgen (UBS), Serge Vaudenay (EPFL), and 16183 Martin Vuagnoux (EPFL, Ilion)* 16184 16185### Changes between 0.9.6g and 0.9.6h [5 Dec 2002] 16186 16187 * New function OPENSSL_cleanse(), which is used to cleanse a section of 16188 memory from its contents. This is done with a counter that will 16189 place alternating values in each byte. This can be used to solve 16190 two issues: 1) the removal of calls to memset() by highly optimizing 16191 compilers, and 2) cleansing with other values than 0, since those can 16192 be read through on certain media, for example a swap space on disk. 16193 16194 *Geoff Thorpe* 16195 16196 * Bugfix: client side session caching did not work with external caching, 16197 because the session->cipher setting was not restored when reloading 16198 from the external cache. This problem was masked, when 16199 SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG (part of SSL_OP_ALL) was set. 16200 (Found by Steve Haslam <steve@araqnid.ddts.net>.) 16201 16202 *Lutz Jaenicke* 16203 16204 * Fix client_certificate (ssl/s2_clnt.c): The permissible total 16205 length of the REQUEST-CERTIFICATE message is 18 .. 34, not 17 .. 33. 16206 16207 *Zeev Lieber <zeev-l@yahoo.com>* 16208 16209 * Undo an undocumented change introduced in 0.9.6e which caused 16210 repeated calls to OpenSSL_add_all_ciphers() and 16211 OpenSSL_add_all_digests() to be ignored, even after calling 16212 EVP_cleanup(). 16213 16214 *Richard Levitte* 16215 16216 * Change the default configuration reader to deal with last line not 16217 being properly terminated. 16218 16219 *Richard Levitte* 16220 16221 * Change X509_NAME_cmp() so it applies the special rules on handling 16222 DN values that are of type PrintableString, as well as RDNs of type 16223 emailAddress where the value has the type ia5String. 16224 16225 *stefank@valicert.com via Richard Levitte* 16226 16227 * Add an SSL_SESS_CACHE_NO_INTERNAL_STORE flag to take over half 16228 the job SSL_SESS_CACHE_NO_INTERNAL_LOOKUP was inconsistently 16229 doing, define a new flag (SSL_SESS_CACHE_NO_INTERNAL) to be 16230 the bitwise-OR of the two for use by the majority of applications 16231 wanting this behaviour, and update the docs. The documented 16232 behaviour and actual behaviour were inconsistent and had been 16233 changing anyway, so this is more a bug-fix than a behavioural 16234 change. 16235 16236 *Geoff Thorpe, diagnosed by Nadav Har'El* 16237 16238 * Don't impose a 16-byte length minimum on session IDs in ssl/s3_clnt.c 16239 (the SSL 3.0 and TLS 1.0 specifications allow any length up to 32 bytes). 16240 16241 *Bodo Moeller* 16242 16243 * Fix initialization code race conditions in 16244 SSLv23_method(), SSLv23_client_method(), SSLv23_server_method(), 16245 SSLv2_method(), SSLv2_client_method(), SSLv2_server_method(), 16246 SSLv3_method(), SSLv3_client_method(), SSLv3_server_method(), 16247 TLSv1_method(), TLSv1_client_method(), TLSv1_server_method(), 16248 ssl2_get_cipher_by_char(), 16249 ssl3_get_cipher_by_char(). 16250 16251 *Patrick McCormick <patrick@tellme.com>, Bodo Moeller* 16252 16253 * Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after 16254 the cached sessions are flushed, as the remove_cb() might use ex_data 16255 contents. Bug found by Sam Varshavchik <mrsam@courier-mta.com> 16256 (see [openssl.org #212]). 16257 16258 *Geoff Thorpe, Lutz Jaenicke* 16259 16260 * Fix typo in OBJ_txt2obj which incorrectly passed the content 16261 length, instead of the encoding length to d2i_ASN1_OBJECT. 16262 16263 *Steve Henson* 16264 16265### Changes between 0.9.6f and 0.9.6g [9 Aug 2002] 16266 16267 * [In 0.9.6g-engine release:] 16268 Fix crypto/engine/vendor_defns/cswift.h for WIN32 (use `_stdcall`). 16269 16270 *Lynn Gazis <lgazis@rainbow.com>* 16271 16272### Changes between 0.9.6e and 0.9.6f [8 Aug 2002] 16273 16274 * Fix ASN1 checks. Check for overflow by comparing with LONG_MAX 16275 and get fix the header length calculation. 16276 *Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>, 16277 Alon Kantor <alonk@checkpoint.com> (and others), Steve Henson* 16278 16279 * Use proper error handling instead of 'assertions' in buffer 16280 overflow checks added in 0.9.6e. This prevents DoS (the 16281 assertions could call abort()). 16282 16283 *Arne Ansper <arne@ats.cyber.ee>, Bodo Moeller* 16284 16285### Changes between 0.9.6d and 0.9.6e [30 Jul 2002] 16286 16287 * Add various sanity checks to asn1_get_length() to reject 16288 the ASN1 length bytes if they exceed sizeof(long), will appear 16289 negative or the content length exceeds the length of the 16290 supplied buffer. 16291 16292 *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>* 16293 16294 * Fix cipher selection routines: ciphers without encryption had no flags 16295 for the cipher strength set and where therefore not handled correctly 16296 by the selection routines (PR #130). 16297 16298 *Lutz Jaenicke* 16299 16300 * Fix EVP_dsa_sha macro. 16301 16302 *Nils Larsch* 16303 16304 * New option 16305 SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS 16306 for disabling the SSL 3.0/TLS 1.0 CBC vulnerability countermeasure 16307 that was added in OpenSSL 0.9.6d. 16308 16309 As the countermeasure turned out to be incompatible with some 16310 broken SSL implementations, the new option is part of SSL_OP_ALL. 16311 SSL_OP_ALL is usually employed when compatibility with weird SSL 16312 implementations is desired (e.g. '-bugs' option to 's_client' and 16313 's_server'), so the new option is automatically set in many 16314 applications. 16315 16316 *Bodo Moeller* 16317 16318 * Changes in security patch: 16319 16320 Changes marked "(CHATS)" were sponsored by the Defense Advanced 16321 Research Projects Agency (DARPA) and Air Force Research Laboratory, 16322 Air Force Materiel Command, USAF, under agreement number 16323 F30602-01-2-0537. 16324 16325 * Add various sanity checks to asn1_get_length() to reject 16326 the ASN1 length bytes if they exceed sizeof(long), will appear 16327 negative or the content length exceeds the length of the 16328 supplied buffer. ([CVE-2002-0659]) 16329 16330 *Steve Henson, Adi Stav <stav@mercury.co.il>, James Yonan <jim@ntlp.com>* 16331 16332 * Assertions for various potential buffer overflows, not known to 16333 happen in practice. 16334 16335 *Ben Laurie (CHATS)* 16336 16337 * Various temporary buffers to hold ASCII versions of integers were 16338 too small for 64 bit platforms. ([CVE-2002-0655]) 16339 *Matthew Byng-Maddick <mbm@aldigital.co.uk> and Ben Laurie (CHATS)>* 16340 16341 * Remote buffer overflow in SSL3 protocol - an attacker could 16342 supply an oversized session ID to a client. ([CVE-2002-0656]) 16343 16344 *Ben Laurie (CHATS)* 16345 16346 * Remote buffer overflow in SSL2 protocol - an attacker could 16347 supply an oversized client master key. ([CVE-2002-0656]) 16348 16349 *Ben Laurie (CHATS)* 16350 16351### Changes between 0.9.6c and 0.9.6d [9 May 2002] 16352 16353 * Fix crypto/asn1/a_sign.c so that 'parameters' is omitted (not 16354 encoded as NULL) with id-dsa-with-sha1. 16355 16356 *Nils Larsch <nla@trustcenter.de>; problem pointed out by Bodo Moeller* 16357 16358 * Check various `X509_...()` return values in `apps/req.c`. 16359 16360 *Nils Larsch <nla@trustcenter.de>* 16361 16362 * Fix BASE64 decode (EVP_DecodeUpdate) for data with CR/LF ended lines: 16363 an end-of-file condition would erroneously be flagged, when the CRLF 16364 was just at the end of a processed block. The bug was discovered when 16365 processing data through a buffering memory BIO handing the data to a 16366 BASE64-decoding BIO. Bug fund and patch submitted by Pavel Tsekov 16367 <ptsekov@syntrex.com> and Nedelcho Stanev. 16368 16369 *Lutz Jaenicke* 16370 16371 * Implement a countermeasure against a vulnerability recently found 16372 in CBC ciphersuites in SSL 3.0/TLS 1.0: Send an empty fragment 16373 before application data chunks to avoid the use of known IVs 16374 with data potentially chosen by the attacker. 16375 16376 *Bodo Moeller* 16377 16378 * Fix length checks in ssl3_get_client_hello(). 16379 16380 *Bodo Moeller* 16381 16382 * TLS/SSL library bugfix: use s->s3->in_read_app_data differently 16383 to prevent ssl3_read_internal() from incorrectly assuming that 16384 ssl3_read_bytes() found application data while handshake 16385 processing was enabled when in fact s->s3->in_read_app_data was 16386 merely automatically cleared during the initial handshake. 16387 16388 *Bodo Moeller; problem pointed out by Arne Ansper <arne@ats.cyber.ee>* 16389 16390 * Fix object definitions for Private and Enterprise: they were not 16391 recognized in their shortname (=lowercase) representation. Extend 16392 obj_dat.pl to issue an error when using undefined keywords instead 16393 of silently ignoring the problem (Svenning Sorensen 16394 <sss@sss.dnsalias.net>). 16395 16396 *Lutz Jaenicke* 16397 16398 * Fix DH_generate_parameters() so that it works for 'non-standard' 16399 generators, i.e. generators other than 2 and 5. (Previously, the 16400 code did not properly initialise the 'add' and 'rem' values to 16401 BN_generate_prime().) 16402 16403 In the new general case, we do not insist that 'generator' is 16404 actually a primitive root: This requirement is rather pointless; 16405 a generator of the order-q subgroup is just as good, if not 16406 better. 16407 16408 *Bodo Moeller* 16409 16410 * Map new X509 verification errors to alerts. Discovered and submitted by 16411 Tom Wu <tom@arcot.com>. 16412 16413 *Lutz Jaenicke* 16414 16415 * Fix ssl3_pending() (ssl/s3_lib.c) to prevent SSL_pending() from 16416 returning non-zero before the data has been completely received 16417 when using non-blocking I/O. 16418 16419 *Bodo Moeller; problem pointed out by John Hughes* 16420 16421 * Some of the ciphers missed the strength entry (SSL_LOW etc). 16422 16423 *Ben Laurie, Lutz Jaenicke* 16424 16425 * Fix bug in SSL_clear(): bad sessions were not removed (found by 16426 Yoram Zahavi <YoramZ@gilian.com>). 16427 16428 *Lutz Jaenicke* 16429 16430 * Add information about CygWin 1.3 and on, and preserve proper 16431 configuration for the versions before that. 16432 16433 *Corinna Vinschen <vinschen@redhat.com> and Richard Levitte* 16434 16435 * Make removal from session cache (SSL_CTX_remove_session()) more robust: 16436 check whether we deal with a copy of a session and do not delete from 16437 the cache in this case. Problem reported by "Izhar Shoshani Levi" 16438 <izhar@checkpoint.com>. 16439 16440 *Lutz Jaenicke* 16441 16442 * Do not store session data into the internal session cache, if it 16443 is never intended to be looked up (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP 16444 flag is set). Proposed by Aslam <aslam@funk.com>. 16445 16446 *Lutz Jaenicke* 16447 16448 * Have ASN1_BIT_STRING_set_bit() really clear a bit when the requested 16449 value is 0. 16450 16451 *Richard Levitte* 16452 16453 * [In 0.9.6d-engine release:] 16454 Fix a crashbug and a logic bug in hwcrhk_load_pubkey(). 16455 16456 *Toomas Kiisk <vix@cyber.ee> via Richard Levitte* 16457 16458 * Add the configuration target linux-s390x. 16459 16460 *Neale Ferguson <Neale.Ferguson@SoftwareAG-USA.com> via Richard Levitte* 16461 16462 * The earlier bugfix for the SSL3_ST_SW_HELLO_REQ_C case of 16463 ssl3_accept (ssl/s3_srvr.c) incorrectly used a local flag 16464 variable as an indication that a ClientHello message has been 16465 received. As the flag value will be lost between multiple 16466 invocations of ssl3_accept when using non-blocking I/O, the 16467 function may not be aware that a handshake has actually taken 16468 place, thus preventing a new session from being added to the 16469 session cache. 16470 16471 To avoid this problem, we now set s->new_session to 2 instead of 16472 using a local variable. 16473 16474 *Lutz Jaenicke, Bodo Moeller* 16475 16476 * Bugfix: Return -1 from ssl3_get_server_done (ssl3/s3_clnt.c) 16477 if the SSL_R_LENGTH_MISMATCH error is detected. 16478 16479 *Geoff Thorpe, Bodo Moeller* 16480 16481 * New 'shared_ldflag' column in Configure platform table. 16482 16483 *Richard Levitte* 16484 16485 * Fix EVP_CIPHER_mode macro. 16486 16487 *"Dan S. Camper" <dan@bti.net>* 16488 16489 * Fix ssl3_read_bytes (ssl/s3_pkt.c): To ignore messages of unknown 16490 type, we must throw them away by setting rr->length to 0. 16491 16492 *D P Chang <dpc@qualys.com>* 16493 16494### Changes between 0.9.6b and 0.9.6c [21 dec 2001] 16495 16496 * Fix BN_rand_range bug pointed out by Dominikus Scherkl 16497 <Dominikus.Scherkl@biodata.com>. (The previous implementation 16498 worked incorrectly for those cases where range = `10..._2` and 16499 `3*range` is two bits longer than range.) 16500 16501 *Bodo Moeller* 16502 16503 * Only add signing time to PKCS7 structures if it is not already 16504 present. 16505 16506 *Steve Henson* 16507 16508 * Fix crypto/objects/objects.h: "ld-ce" should be "id-ce", 16509 OBJ_ld_ce should be OBJ_id_ce. 16510 Also some ip-pda OIDs in crypto/objects/objects.txt were 16511 incorrect (cf. RFC 3039). 16512 16513 *Matt Cooper, Frederic Giudicelli, Bodo Moeller* 16514 16515 * Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid() 16516 returns early because it has nothing to do. 16517 16518 *Andy Schneider <andy.schneider@bjss.co.uk>* 16519 16520 * [In 0.9.6c-engine release:] 16521 Fix mutex callback return values in crypto/engine/hw_ncipher.c. 16522 16523 *Andy Schneider <andy.schneider@bjss.co.uk>* 16524 16525 * [In 0.9.6c-engine release:] 16526 Add support for Cryptographic Appliance's keyserver technology. 16527 (Use engine 'keyclient') 16528 16529 *Cryptographic Appliances and Geoff Thorpe* 16530 16531 * Add a configuration entry for OS/390 Unix. The C compiler 'c89' 16532 is called via tools/c89.sh because arguments have to be 16533 rearranged (all '-L' options must appear before the first object 16534 modules). 16535 16536 *Richard Shapiro <rshapiro@abinitio.com>* 16537 16538 * [In 0.9.6c-engine release:] 16539 Add support for Broadcom crypto accelerator cards, backported 16540 from 0.9.7. 16541 16542 *Broadcom, Nalin Dahyabhai <nalin@redhat.com>, Mark Cox* 16543 16544 * [In 0.9.6c-engine release:] 16545 Add support for SureWare crypto accelerator cards from 16546 Baltimore Technologies. (Use engine 'sureware') 16547 16548 *Baltimore Technologies and Mark Cox* 16549 16550 * [In 0.9.6c-engine release:] 16551 Add support for crypto accelerator cards from Accelerated 16552 Encryption Processing, www.aep.ie. (Use engine 'aep') 16553 16554 *AEP Inc. and Mark Cox* 16555 16556 * Add a configuration entry for gcc on UnixWare. 16557 16558 *Gary Benson <gbenson@redhat.com>* 16559 16560 * Change ssl/s2_clnt.c and ssl/s2_srvr.c so that received handshake 16561 messages are stored in a single piece (fixed-length part and 16562 variable-length part combined) and fix various bugs found on the way. 16563 16564 *Bodo Moeller* 16565 16566 * Disable caching in BIO_gethostbyname(), directly use gethostbyname() 16567 instead. BIO_gethostbyname() does not know what timeouts are 16568 appropriate, so entries would stay in cache even when they have 16569 become invalid. 16570 *Bodo Moeller; problem pointed out by Rich Salz <rsalz@zolera.com>* 16571 16572 * Change ssl23_get_client_hello (ssl/s23_srvr.c) behaviour when 16573 faced with a pathologically small ClientHello fragment that does 16574 not contain client_version: Instead of aborting with an error, 16575 simply choose the highest available protocol version (i.e., 16576 TLS 1.0 unless it is disabled). In practice, ClientHello 16577 messages are never sent like this, but this change gives us 16578 strictly correct behaviour at least for TLS. 16579 16580 *Bodo Moeller* 16581 16582 * Fix SSL handshake functions and SSL_clear() such that SSL_clear() 16583 never resets s->method to s->ctx->method when called from within 16584 one of the SSL handshake functions. 16585 16586 *Bodo Moeller; problem pointed out by Niko Baric* 16587 16588 * In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert 16589 (sent using the client's version number) if client_version is 16590 smaller than the protocol version in use. Also change 16591 ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if 16592 the client demanded SSL 3.0 but only TLS 1.0 is enabled; then 16593 the client will at least see that alert. 16594 16595 *Bodo Moeller* 16596 16597 * Fix ssl3_get_message (ssl/s3_both.c) to handle message fragmentation 16598 correctly. 16599 16600 *Bodo Moeller* 16601 16602 * Avoid infinite loop in ssl3_get_message (ssl/s3_both.c) if a 16603 client receives HelloRequest while in a handshake. 16604 16605 *Bodo Moeller; bug noticed by Andy Schneider <andy.schneider@bjss.co.uk>* 16606 16607 * Bugfix in ssl3_accept (ssl/s3_srvr.c): Case SSL3_ST_SW_HELLO_REQ_C 16608 should end in 'break', not 'goto end' which circumvents various 16609 cleanups done in state SSL_ST_OK. But session related stuff 16610 must be disabled for SSL_ST_OK in the case that we just sent a 16611 HelloRequest. 16612 16613 Also avoid some overhead by not calling ssl_init_wbio_buffer() 16614 before just sending a HelloRequest. 16615 16616 *Bodo Moeller, Eric Rescorla <ekr@rtfm.com>* 16617 16618 * Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don't 16619 reveal whether illegal block cipher padding was found or a MAC 16620 verification error occurred. (Neither SSLerr() codes nor alerts 16621 are directly visible to potential attackers, but the information 16622 may leak via logfiles.) 16623 16624 Similar changes are not required for the SSL 2.0 implementation 16625 because the number of padding bytes is sent in clear for SSL 2.0, 16626 and the extra bytes are just ignored. However ssl/s2_pkt.c 16627 failed to verify that the purported number of padding bytes is in 16628 the legal range. 16629 16630 *Bodo Moeller* 16631 16632 * Add OpenUNIX-8 support including shared libraries 16633 (Boyd Lynn Gerber <gerberb@zenez.com>). 16634 16635 *Lutz Jaenicke* 16636 16637 * Improve RSA_padding_check_PKCS1_OAEP() check again to avoid 16638 'wristwatch attack' using huge encoding parameters (cf. 16639 James H. Manger's CRYPTO 2001 paper). Note that the 16640 RSA_PKCS1_OAEP_PADDING case of RSA_private_decrypt() does not use 16641 encoding parameters and hence was not vulnerable. 16642 16643 *Bodo Moeller* 16644 16645 * BN_sqr() bug fix. 16646 16647 *Ulf Möller, reported by Jim Ellis <jim.ellis@cavium.com>* 16648 16649 * Rabin-Miller test analyses assume uniformly distributed witnesses, 16650 so use BN_pseudo_rand_range() instead of using BN_pseudo_rand() 16651 followed by modular reduction. 16652 16653 *Bodo Moeller; pointed out by Adam Young <AYoung1@NCSUS.JNJ.COM>* 16654 16655 * Add BN_pseudo_rand_range() with obvious functionality: BN_rand_range() 16656 equivalent based on BN_pseudo_rand() instead of BN_rand(). 16657 16658 *Bodo Moeller* 16659 16660 * s3_srvr.c: allow sending of large client certificate lists (> 16 kB). 16661 This function was broken, as the check for a new client hello message 16662 to handle SGC did not allow these large messages. 16663 (Tracked down by "Douglas E. Engert" <deengert@anl.gov>.) 16664 16665 *Lutz Jaenicke* 16666 16667 * Add alert descriptions for TLSv1 to `SSL_alert_desc_string[_long]()`. 16668 16669 *Lutz Jaenicke* 16670 16671 * Fix buggy behaviour of BIO_get_num_renegotiates() and BIO_ctrl() 16672 for BIO_C_GET_WRITE_BUF_SIZE ("Stephen Hinton" <shinton@netopia.com>). 16673 16674 *Lutz Jaenicke* 16675 16676 * Rework the configuration and shared library support for Tru64 Unix. 16677 The configuration part makes use of modern compiler features and 16678 still retains old compiler behavior for those that run older versions 16679 of the OS. The shared library support part includes a variant that 16680 uses the RPATH feature, and is available through the special 16681 configuration target "alpha-cc-rpath", which will never be selected 16682 automatically. 16683 16684 *Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> via Richard Levitte* 16685 16686 * In ssl3_get_key_exchange (ssl/s3_clnt.c), call ssl3_get_message() 16687 with the same message size as in ssl3_get_certificate_request(). 16688 Otherwise, if no ServerKeyExchange message occurs, CertificateRequest 16689 messages might inadvertently be reject as too long. 16690 16691 *Petr Lampa <lampa@fee.vutbr.cz>* 16692 16693 * Enhanced support for IA-64 Unix platforms (well, Linux and HP-UX). 16694 16695 *Andy Polyakov* 16696 16697 * Modified SSL library such that the verify_callback that has been set 16698 specifically for an SSL object with SSL_set_verify() is actually being 16699 used. Before the change, a verify_callback set with this function was 16700 ignored and the verify_callback() set in the SSL_CTX at the time of 16701 the call was used. New function X509_STORE_CTX_set_verify_cb() introduced 16702 to allow the necessary settings. 16703 16704 *Lutz Jaenicke* 16705 16706 * Initialize static variable in crypto/dsa/dsa_lib.c and crypto/dh/dh_lib.c 16707 explicitly to NULL, as at least on Solaris 8 this seems not always to be 16708 done automatically (in contradiction to the requirements of the C 16709 standard). This made problems when used from OpenSSH. 16710 16711 *Lutz Jaenicke* 16712 16713 * In OpenSSL 0.9.6a and 0.9.6b, crypto/dh/dh_key.c ignored 16714 dh->length and always used 16715 16716 BN_rand_range(priv_key, dh->p). 16717 16718 BN_rand_range() is not necessary for Diffie-Hellman, and this 16719 specific range makes Diffie-Hellman unnecessarily inefficient if 16720 dh->length (recommended exponent length) is much smaller than the 16721 length of dh->p. We could use BN_rand_range() if the order of 16722 the subgroup was stored in the DH structure, but we only have 16723 dh->length. 16724 16725 So switch back to 16726 16727 BN_rand(priv_key, l, ...) 16728 16729 where 'l' is dh->length if this is defined, or BN_num_bits(dh->p)-1 16730 otherwise. 16731 16732 *Bodo Moeller* 16733 16734 * In 16735 16736 RSA_eay_public_encrypt 16737 RSA_eay_private_decrypt 16738 RSA_eay_private_encrypt (signing) 16739 RSA_eay_public_decrypt (signature verification) 16740 16741 (default implementations for RSA_public_encrypt, 16742 RSA_private_decrypt, RSA_private_encrypt, RSA_public_decrypt), 16743 always reject numbers >= n. 16744 16745 *Bodo Moeller* 16746 16747 * In crypto/rand/md_rand.c, use a new short-time lock CRYPTO_LOCK_RAND2 16748 to synchronize access to 'locking_thread'. This is necessary on 16749 systems where access to 'locking_thread' (an 'unsigned long' 16750 variable) is not atomic. 16751 16752 *Bodo Moeller* 16753 16754 * In crypto/rand/md_rand.c, set 'locking_thread' to current thread's ID 16755 *before* setting the 'crypto_lock_rand' flag. The previous code had 16756 a race condition if 0 is a valid thread ID. 16757 16758 *Travis Vitek <vitek@roguewave.com>* 16759 16760 * Add support for shared libraries under Irix. 16761 16762 *Albert Chin-A-Young <china@thewrittenword.com>* 16763 16764 * Add configuration option to build on Linux on both big-endian and 16765 little-endian MIPS. 16766 16767 *Ralf Baechle <ralf@uni-koblenz.de>* 16768 16769 * Add the possibility to create shared libraries on HP-UX. 16770 16771 *Richard Levitte* 16772 16773### Changes between 0.9.6a and 0.9.6b [9 Jul 2001] 16774 16775 * Change ssleay_rand_bytes (crypto/rand/md_rand.c) 16776 to avoid an SSLeay/OpenSSL PRNG weakness pointed out by 16777 Markku-Juhani O. Saarinen <markku-juhani.saarinen@nokia.com>: 16778 PRNG state recovery was possible based on the output of 16779 one PRNG request appropriately sized to gain knowledge on 16780 'md' followed by enough consecutive 1-byte PRNG requests 16781 to traverse all of 'state'. 16782 16783 1. When updating 'md_local' (the current thread's copy of 'md') 16784 during PRNG output generation, hash all of the previous 16785 'md_local' value, not just the half used for PRNG output. 16786 16787 2. Make the number of bytes from 'state' included into the hash 16788 independent from the number of PRNG bytes requested. 16789 16790 The first measure alone would be sufficient to avoid 16791 Markku-Juhani's attack. (Actually it had never occurred 16792 to me that the half of 'md_local' used for chaining was the 16793 half from which PRNG output bytes were taken -- I had always 16794 assumed that the secret half would be used.) The second 16795 measure makes sure that additional data from 'state' is never 16796 mixed into 'md_local' in small portions; this heuristically 16797 further strengthens the PRNG. 16798 16799 *Bodo Moeller* 16800 16801 * Fix crypto/bn/asm/mips3.s. 16802 16803 *Andy Polyakov* 16804 16805 * When only the key is given to "enc", the IV is undefined. Print out 16806 an error message in this case. 16807 16808 *Lutz Jaenicke* 16809 16810 * Handle special case when X509_NAME is empty in X509 printing routines. 16811 16812 *Steve Henson* 16813 16814 * In dsa_do_verify (crypto/dsa/dsa_ossl.c), verify that r and s are 16815 positive and less than q. 16816 16817 *Bodo Moeller* 16818 16819 * Don't change `*pointer` in CRYPTO_add_lock() is add_lock_callback is 16820 used: it isn't thread safe and the add_lock_callback should handle 16821 that itself. 16822 16823 *Paul Rose <Paul.Rose@bridge.com>* 16824 16825 * Verify that incoming data obeys the block size in 16826 ssl3_enc (ssl/s3_enc.c) and tls1_enc (ssl/t1_enc.c). 16827 16828 *Bodo Moeller* 16829 16830 * Fix OAEP check. 16831 16832 *Ulf Möller, Bodo Möller* 16833 16834 * The countermeasure against Bleichbacher's attack on PKCS #1 v1.5 16835 RSA encryption was accidentally removed in s3_srvr.c in OpenSSL 0.9.5 16836 when fixing the server behaviour for backwards-compatible 'client 16837 hello' messages. (Note that the attack is impractical against 16838 SSL 3.0 and TLS 1.0 anyway because length and version checking 16839 means that the probability of guessing a valid ciphertext is 16840 around 2^-40; see section 5 in Bleichenbacher's CRYPTO '98 16841 paper.) 16842 16843 Before 0.9.5, the countermeasure (hide the error by generating a 16844 random 'decryption result') did not work properly because 16845 ERR_clear_error() was missing, meaning that SSL_get_error() would 16846 detect the supposedly ignored error. 16847 16848 Both problems are now fixed. 16849 16850 *Bodo Moeller* 16851 16852 * In crypto/bio/bf_buff.c, increase DEFAULT_BUFFER_SIZE to 4096 16853 (previously it was 1024). 16854 16855 *Bodo Moeller* 16856 16857 * Fix for compatibility mode trust settings: ignore trust settings 16858 unless some valid trust or reject settings are present. 16859 16860 *Steve Henson* 16861 16862 * Fix for blowfish EVP: its a variable length cipher. 16863 16864 *Steve Henson* 16865 16866 * Fix various bugs related to DSA S/MIME verification. Handle missing 16867 parameters in DSA public key structures and return an error in the 16868 DSA routines if parameters are absent. 16869 16870 *Steve Henson* 16871 16872 * In versions up to 0.9.6, RAND_file_name() resorted to file ".rnd" 16873 in the current directory if neither $RANDFILE nor $HOME was set. 16874 RAND_file_name() in 0.9.6a returned NULL in this case. This has 16875 caused some confusion to Windows users who haven't defined $HOME. 16876 Thus RAND_file_name() is changed again: e_os.h can define a 16877 DEFAULT_HOME, which will be used if $HOME is not set. 16878 For Windows, we use "C:"; on other platforms, we still require 16879 environment variables. 16880 16881 * Move 'if (!initialized) RAND_poll()' into regions protected by 16882 CRYPTO_LOCK_RAND. This is not strictly necessary, but avoids 16883 having multiple threads call RAND_poll() concurrently. 16884 16885 *Bodo Moeller* 16886 16887 * In crypto/rand/md_rand.c, replace 'add_do_not_lock' flag by a 16888 combination of a flag and a thread ID variable. 16889 Otherwise while one thread is in ssleay_rand_bytes (which sets the 16890 flag), *other* threads can enter ssleay_add_bytes without obeying 16891 the CRYPTO_LOCK_RAND lock (and may even illegally release the lock 16892 that they do not hold after the first thread unsets add_do_not_lock). 16893 16894 *Bodo Moeller* 16895 16896 * Change bctest again: '-x' expressions are not available in all 16897 versions of 'test'. 16898 16899 *Bodo Moeller* 16900 16901### Changes between 0.9.6 and 0.9.6a [5 Apr 2001] 16902 16903 * Fix a couple of memory leaks in PKCS7_dataDecode() 16904 16905 *Steve Henson, reported by Heyun Zheng <hzheng@atdsprint.com>* 16906 16907 * Change Configure and Makefiles to provide EXE_EXT, which will contain 16908 the default extension for executables, if any. Also, make the perl 16909 scripts that use symlink() to test if it really exists and use "cp" 16910 if it doesn't. All this made OpenSSL compilable and installable in 16911 CygWin. 16912 16913 *Richard Levitte* 16914 16915 * Fix for asn1_GetSequence() for indefinite length constructed data. 16916 If SEQUENCE is length is indefinite just set c->slen to the total 16917 amount of data available. 16918 16919 *Steve Henson, reported by shige@FreeBSD.org* 16920 16921 *This change does not apply to 0.9.7.* 16922 16923 * Change bctest to avoid here-documents inside command substitution 16924 (workaround for FreeBSD /bin/sh bug). 16925 For compatibility with Ultrix, avoid shell functions (introduced 16926 in the bctest version that searches along $PATH). 16927 16928 *Bodo Moeller* 16929 16930 * Rename 'des_encrypt' to 'des_encrypt1'. This avoids the clashes 16931 with des_encrypt() defined on some operating systems, like Solaris 16932 and UnixWare. 16933 16934 *Richard Levitte* 16935 16936 * Check the result of RSA-CRT (see D. Boneh, R. DeMillo, R. Lipton: 16937 On the Importance of Eliminating Errors in Cryptographic 16938 Computations, J. Cryptology 14 (2001) 2, 101-119, 16939 <http://theory.stanford.edu/~dabo/papers/faults.ps.gz>). 16940 16941 *Ulf Moeller* 16942 16943 * MIPS assembler BIGNUM division bug fix. 16944 16945 *Andy Polyakov* 16946 16947 * Disabled incorrect Alpha assembler code. 16948 16949 *Richard Levitte* 16950 16951 * Fix PKCS#7 decode routines so they correctly update the length 16952 after reading an EOC for the EXPLICIT tag. 16953 16954 *Steve Henson* 16955 16956 *This change does not apply to 0.9.7.* 16957 16958 * Fix bug in PKCS#12 key generation routines. This was triggered 16959 if a 3DES key was generated with a 0 initial byte. Include 16960 PKCS12_BROKEN_KEYGEN compilation option to retain the old 16961 (but broken) behaviour. 16962 16963 *Steve Henson* 16964 16965 * Enhance bctest to search for a working bc along $PATH and print 16966 it when found. 16967 16968 *Tim Rice <tim@multitalents.net> via Richard Levitte* 16969 16970 * Fix memory leaks in err.c: free err_data string if necessary; 16971 don't write to the wrong index in ERR_set_error_data. 16972 16973 *Bodo Moeller* 16974 16975 * Implement ssl23_peek (analogous to ssl23_read), which previously 16976 did not exist. 16977 16978 *Bodo Moeller* 16979 16980 * Replace rdtsc with `_emit` statements for VC++ version 5. 16981 16982 *Jeremy Cooper <jeremy@baymoo.org>* 16983 16984 * Make it possible to reuse SSLv2 sessions. 16985 16986 *Richard Levitte* 16987 16988 * In copy_email() check for >= 0 as a return value for 16989 X509_NAME_get_index_by_NID() since 0 is a valid index. 16990 16991 *Steve Henson reported by Massimiliano Pala <madwolf@opensca.org>* 16992 16993 * Avoid coredump with unsupported or invalid public keys by checking if 16994 X509_get_pubkey() fails in PKCS7_verify(). Fix memory leak when 16995 PKCS7_verify() fails with non detached data. 16996 16997 *Steve Henson* 16998 16999 * Don't use getenv in library functions when run as setuid/setgid. 17000 New function OPENSSL_issetugid(). 17001 17002 *Ulf Moeller* 17003 17004 * Avoid false positives in memory leak detection code (crypto/mem_dbg.c) 17005 due to incorrect handling of multi-threading: 17006 17007 1. Fix timing glitch in the MemCheck_off() portion of CRYPTO_mem_ctrl(). 17008 17009 2. Fix logical glitch in is_MemCheck_on() aka CRYPTO_is_mem_check_on(). 17010 17011 3. Count how many times MemCheck_off() has been called so that 17012 nested use can be treated correctly. This also avoids 17013 inband-signalling in the previous code (which relied on the 17014 assumption that thread ID 0 is impossible). 17015 17016 *Bodo Moeller* 17017 17018 * Add "-rand" option also to s_client and s_server. 17019 17020 *Lutz Jaenicke* 17021 17022 * Fix CPU detection on Irix 6.x. 17023 *Kurt Hockenbury <khockenb@stevens-tech.edu> and 17024 "Bruce W. Forsberg" <bruce.forsberg@baesystems.com>* 17025 17026 * Fix X509_NAME bug which produced incorrect encoding if X509_NAME 17027 was empty. 17028 17029 *Steve Henson* 17030 17031 *This change does not apply to 0.9.7.* 17032 17033 * Use the cached encoding of an X509_NAME structure rather than 17034 copying it. This is apparently the reason for the libsafe "errors" 17035 but the code is actually correct. 17036 17037 *Steve Henson* 17038 17039 * Add new function BN_rand_range(), and fix DSA_sign_setup() to prevent 17040 Bleichenbacher's DSA attack. 17041 Extend BN_[pseudo_]rand: As before, top=1 forces the highest two bits 17042 to be set and top=0 forces the highest bit to be set; top=-1 is new 17043 and leaves the highest bit random. 17044 17045 *Ulf Moeller, Bodo Moeller* 17046 17047 * In the `NCONF_...`-based implementations for `CONF_...` queries 17048 (crypto/conf/conf_lib.c), if the input LHASH is NULL, avoid using 17049 a temporary CONF structure with the data component set to NULL 17050 (which gives segmentation faults in lh_retrieve). 17051 Instead, use NULL for the CONF pointer in CONF_get_string and 17052 CONF_get_number (which may use environment variables) and directly 17053 return NULL from CONF_get_section. 17054 17055 *Bodo Moeller* 17056 17057 * Fix potential buffer overrun for EBCDIC. 17058 17059 *Ulf Moeller* 17060 17061 * Tolerate nonRepudiation as being valid for S/MIME signing and certSign 17062 keyUsage if basicConstraints absent for a CA. 17063 17064 *Steve Henson* 17065 17066 * Make SMIME_write_PKCS7() write mail header values with a format that 17067 is more generally accepted (no spaces before the semicolon), since 17068 some programs can't parse those values properly otherwise. Also make 17069 sure BIO's that break lines after each write do not create invalid 17070 headers. 17071 17072 *Richard Levitte* 17073 17074 * Make the CRL encoding routines work with empty SEQUENCE OF. The 17075 macros previously used would not encode an empty SEQUENCE OF 17076 and break the signature. 17077 17078 *Steve Henson* 17079 17080 *This change does not apply to 0.9.7.* 17081 17082 * Zero the premaster secret after deriving the master secret in 17083 DH ciphersuites. 17084 17085 *Steve Henson* 17086 17087 * Add some EVP_add_digest_alias registrations (as found in 17088 OpenSSL_add_all_digests()) to SSL_library_init() 17089 aka OpenSSL_add_ssl_algorithms(). This provides improved 17090 compatibility with peers using X.509 certificates 17091 with unconventional AlgorithmIdentifier OIDs. 17092 17093 *Bodo Moeller* 17094 17095 * Fix for Irix with NO_ASM. 17096 17097 *"Bruce W. Forsberg" <bruce.forsberg@baesystems.com>* 17098 17099 * ./config script fixes. 17100 17101 *Ulf Moeller, Richard Levitte* 17102 17103 * Fix 'openssl passwd -1'. 17104 17105 *Bodo Moeller* 17106 17107 * Change PKCS12_key_gen_asc() so it can cope with non null 17108 terminated strings whose length is passed in the passlen 17109 parameter, for example from PEM callbacks. This was done 17110 by adding an extra length parameter to asc2uni(). 17111 17112 *Steve Henson, reported by <oddissey@samsung.co.kr>* 17113 17114 * Fix C code generated by 'openssl dsaparam -C': If a BN_bin2bn 17115 call failed, free the DSA structure. 17116 17117 *Bodo Moeller* 17118 17119 * Fix to uni2asc() to cope with zero length Unicode strings. 17120 These are present in some PKCS#12 files. 17121 17122 *Steve Henson* 17123 17124 * Increase s2->wbuf allocation by one byte in ssl2_new (ssl/s2_lib.c). 17125 Otherwise do_ssl_write (ssl/s2_pkt.c) will write beyond buffer limits 17126 when writing a 32767 byte record. 17127 17128 *Bodo Moeller; problem reported by Eric Day <eday@concentric.net>* 17129 17130 * In `RSA_eay_public_{en,ed}crypt` and RSA_eay_mod_exp (rsa_eay.c), 17131 obtain lock CRYPTO_LOCK_RSA before setting `rsa->_method_mod_{n,p,q}`. 17132 17133 (RSA objects have a reference count access to which is protected 17134 by CRYPTO_LOCK_RSA [see rsa_lib.c, s3_srvr.c, ssl_cert.c, ssl_rsa.c], 17135 so they are meant to be shared between threads.) 17136 *Bodo Moeller, Geoff Thorpe; original patch submitted by 17137 "Reddie, Steven" <Steven.Reddie@ca.com>* 17138 17139 * Fix a deadlock in CRYPTO_mem_leaks(). 17140 17141 *Bodo Moeller* 17142 17143 * Use better test patterns in bntest. 17144 17145 *Ulf Möller* 17146 17147 * rand_win.c fix for Borland C. 17148 17149 *Ulf Möller* 17150 17151 * BN_rshift bugfix for n == 0. 17152 17153 *Bodo Moeller* 17154 17155 * Add a 'bctest' script that checks for some known 'bc' bugs 17156 so that 'make test' does not abort just because 'bc' is broken. 17157 17158 *Bodo Moeller* 17159 17160 * Store verify_result within SSL_SESSION also for client side to 17161 avoid potential security hole. (Reused sessions on the client side 17162 always resulted in verify_result==X509_V_OK, not using the original 17163 result of the server certificate verification.) 17164 17165 *Lutz Jaenicke* 17166 17167 * Fix ssl3_pending: If the record in s->s3->rrec is not of type 17168 SSL3_RT_APPLICATION_DATA, return 0. 17169 Similarly, change ssl2_pending to return 0 if SSL_in_init(s) is true. 17170 17171 *Bodo Moeller* 17172 17173 * Fix SSL_peek: 17174 Both ssl2_peek and ssl3_peek, which were totally broken in earlier 17175 releases, have been re-implemented by renaming the previous 17176 implementations of ssl2_read and ssl3_read to ssl2_read_internal 17177 and ssl3_read_internal, respectively, and adding 'peek' parameters 17178 to them. The new ssl[23]_{read,peek} functions are calls to 17179 ssl[23]_read_internal with the 'peek' flag set appropriately. 17180 A 'peek' parameter has also been added to ssl3_read_bytes, which 17181 does the actual work for ssl3_read_internal. 17182 17183 *Bodo Moeller* 17184 17185 * Initialise "ex_data" member of RSA/DSA/DH structures prior to calling 17186 the method-specific "init()" handler. Also clean up ex_data after 17187 calling the method-specific "finish()" handler. Previously, this was 17188 happening the other way round. 17189 17190 *Geoff Thorpe* 17191 17192 * Increase BN_CTX_NUM (the number of BIGNUMs in a BN_CTX) to 16. 17193 The previous value, 12, was not always sufficient for BN_mod_exp(). 17194 17195 *Bodo Moeller* 17196 17197 * Make sure that shared libraries get the internal name engine with 17198 the full version number and not just 0. This should mark the 17199 shared libraries as not backward compatible. Of course, this should 17200 be changed again when we can guarantee backward binary compatibility. 17201 17202 *Richard Levitte* 17203 17204 * Fix typo in get_cert_by_subject() in by_dir.c 17205 17206 *Jean-Marc Desperrier <jean-marc.desperrier@certplus.com>* 17207 17208 * Rework the system to generate shared libraries: 17209 17210 - Make note of the expected extension for the shared libraries and 17211 if there is a need for symbolic links from for example libcrypto.so.0 17212 to libcrypto.so.0.9.7. There is extended info in Configure for 17213 that. 17214 17215 - Make as few rebuilds of the shared libraries as possible. 17216 17217 - Still avoid linking the OpenSSL programs with the shared libraries. 17218 17219 - When installing, install the shared libraries separately from the 17220 static ones. 17221 17222 *Richard Levitte* 17223 17224 * Fix SSL_CTX_set_read_ahead macro to actually use its argument. 17225 17226 Copy SSL_CTX's read_ahead flag to SSL object directly in SSL_new 17227 and not in SSL_clear because the latter is also used by the 17228 accept/connect functions; previously, the settings made by 17229 SSL_set_read_ahead would be lost during the handshake. 17230 17231 *Bodo Moeller; problems reported by Anders Gertz <gertz@epact.se>* 17232 17233 * Correct util/mkdef.pl to be selective about disabled algorithms. 17234 Previously, it would create entries for disabled algorithms no 17235 matter what. 17236 17237 *Richard Levitte* 17238 17239 * Added several new manual pages for SSL_* function. 17240 17241 *Lutz Jaenicke* 17242 17243### Changes between 0.9.5a and 0.9.6 [24 Sep 2000] 17244 17245 * In ssl23_get_client_hello, generate an error message when faced 17246 with an initial SSL 3.0/TLS record that is too small to contain the 17247 first two bytes of the ClientHello message, i.e. client_version. 17248 (Note that this is a pathologic case that probably has never happened 17249 in real life.) The previous approach was to use the version number 17250 from the record header as a substitute; but our protocol choice 17251 should not depend on that one because it is not authenticated 17252 by the Finished messages. 17253 17254 *Bodo Moeller* 17255 17256 * More robust randomness gathering functions for Windows. 17257 17258 *Jeffrey Altman <jaltman@columbia.edu>* 17259 17260 * For compatibility reasons if the flag X509_V_FLAG_ISSUER_CHECK is 17261 not set then we don't setup the error code for issuer check errors 17262 to avoid possibly overwriting other errors which the callback does 17263 handle. If an application does set the flag then we assume it knows 17264 what it is doing and can handle the new informational codes 17265 appropriately. 17266 17267 *Steve Henson* 17268 17269 * Fix for a nasty bug in ASN1_TYPE handling. ASN1_TYPE is used for 17270 a general "ANY" type, as such it should be able to decode anything 17271 including tagged types. However it didn't check the class so it would 17272 wrongly interpret tagged types in the same way as their universal 17273 counterpart and unknown types were just rejected. Changed so that the 17274 tagged and unknown types are handled in the same way as a SEQUENCE: 17275 that is the encoding is stored intact. There is also a new type 17276 "V_ASN1_OTHER" which is used when the class is not universal, in this 17277 case we have no idea what the actual type is so we just lump them all 17278 together. 17279 17280 *Steve Henson* 17281 17282 * On VMS, stdout may very well lead to a file that is written to 17283 in a record-oriented fashion. That means that every write() will 17284 write a separate record, which will be read separately by the 17285 programs trying to read from it. This can be very confusing. 17286 17287 The solution is to put a BIO filter in the way that will buffer 17288 text until a linefeed is reached, and then write everything a 17289 line at a time, so every record written will be an actual line, 17290 not chunks of lines and not (usually doesn't happen, but I've 17291 seen it once) several lines in one record. BIO_f_linebuffer() is 17292 the answer. 17293 17294 Currently, it's a VMS-only method, because that's where it has 17295 been tested well enough. 17296 17297 *Richard Levitte* 17298 17299 * Remove 'optimized' squaring variant in BN_mod_mul_montgomery, 17300 it can return incorrect results. 17301 (Note: The buggy variant was not enabled in OpenSSL 0.9.5a, 17302 but it was in 0.9.6-beta[12].) 17303 17304 *Bodo Moeller* 17305 17306 * Disable the check for content being present when verifying detached 17307 signatures in pk7_smime.c. Some versions of Netscape (wrongly) 17308 include zero length content when signing messages. 17309 17310 *Steve Henson* 17311 17312 * New BIO_shutdown_wr macro, which invokes the BIO_C_SHUTDOWN_WR 17313 BIO_ctrl (for BIO pairs). 17314 17315 *Bodo Möller* 17316 17317 * Add DSO method for VMS. 17318 17319 *Richard Levitte* 17320 17321 * Bug fix: Montgomery multiplication could produce results with the 17322 wrong sign. 17323 17324 *Ulf Möller* 17325 17326 * Add RPM specification openssl.spec and modify it to build three 17327 packages. The default package contains applications, application 17328 documentation and run-time libraries. The devel package contains 17329 include files, static libraries and function documentation. The 17330 doc package contains the contents of the doc directory. The original 17331 openssl.spec was provided by Damien Miller <djm@mindrot.org>. 17332 17333 *Richard Levitte* 17334 17335 * Add a large number of documentation files for many SSL routines. 17336 17337 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>* 17338 17339 * Add a configuration entry for Sony News 4. 17340 17341 *NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>* 17342 17343 * Don't set the two most significant bits to one when generating a 17344 random number < q in the DSA library. 17345 17346 *Ulf Möller* 17347 17348 * New SSL API mode 'SSL_MODE_AUTO_RETRY'. This disables the default 17349 behaviour that SSL_read may result in SSL_ERROR_WANT_READ (even if 17350 the underlying transport is blocking) if a handshake took place. 17351 (The default behaviour is needed by applications such as s_client 17352 and s_server that use select() to determine when to use SSL_read; 17353 but for applications that know in advance when to expect data, it 17354 just makes things more complicated.) 17355 17356 *Bodo Moeller* 17357 17358 * Add RAND_egd_bytes(), which gives control over the number of bytes read 17359 from EGD. 17360 17361 *Ben Laurie* 17362 17363 * Add a few more EBCDIC conditionals that make `req` and `x509` 17364 work better on such systems. 17365 17366 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>* 17367 17368 * Add two demo programs for PKCS12_parse() and PKCS12_create(). 17369 Update PKCS12_parse() so it copies the friendlyName and the 17370 keyid to the certificates aux info. 17371 17372 *Steve Henson* 17373 17374 * Fix bug in PKCS7_verify() which caused an infinite loop 17375 if there was more than one signature. 17376 17377 *Sven Uszpelkat <su@celocom.de>* 17378 17379 * Major change in util/mkdef.pl to include extra information 17380 about each symbol, as well as presenting variables as well 17381 as functions. This change means that there's n more need 17382 to rebuild the .num files when some algorithms are excluded. 17383 17384 *Richard Levitte* 17385 17386 * Allow the verify time to be set by an application, 17387 rather than always using the current time. 17388 17389 *Steve Henson* 17390 17391 * Phase 2 verify code reorganisation. The certificate 17392 verify code now looks up an issuer certificate by a 17393 number of criteria: subject name, authority key id 17394 and key usage. It also verifies self signed certificates 17395 by the same criteria. The main comparison function is 17396 X509_check_issued() which performs these checks. 17397 17398 Lot of changes were necessary in order to support this 17399 without completely rewriting the lookup code. 17400 17401 Authority and subject key identifier are now cached. 17402 17403 The LHASH 'certs' is X509_STORE has now been replaced 17404 by a STACK_OF(X509_OBJECT). This is mainly because an 17405 LHASH can't store or retrieve multiple objects with 17406 the same hash value. 17407 17408 As a result various functions (which were all internal 17409 use only) have changed to handle the new X509_STORE 17410 structure. This will break anything that messed round 17411 with X509_STORE internally. 17412 17413 The functions X509_STORE_add_cert() now checks for an 17414 exact match, rather than just subject name. 17415 17416 The X509_STORE API doesn't directly support the retrieval 17417 of multiple certificates matching a given criteria, however 17418 this can be worked round by performing a lookup first 17419 (which will fill the cache with candidate certificates) 17420 and then examining the cache for matches. This is probably 17421 the best we can do without throwing out X509_LOOKUP 17422 entirely (maybe later...). 17423 17424 The X509_VERIFY_CTX structure has been enhanced considerably. 17425 17426 All certificate lookup operations now go via a get_issuer() 17427 callback. Although this currently uses an X509_STORE it 17428 can be replaced by custom lookups. This is a simple way 17429 to bypass the X509_STORE hackery necessary to make this 17430 work and makes it possible to use more efficient techniques 17431 in future. A very simple version which uses a simple 17432 STACK for its trusted certificate store is also provided 17433 using X509_STORE_CTX_trusted_stack(). 17434 17435 The verify_cb() and verify() callbacks now have equivalents 17436 in the X509_STORE_CTX structure. 17437 17438 X509_STORE_CTX also has a 'flags' field which can be used 17439 to customise the verify behaviour. 17440 17441 *Steve Henson* 17442 17443 * Add new PKCS#7 signing option PKCS7_NOSMIMECAP which 17444 excludes S/MIME capabilities. 17445 17446 *Steve Henson* 17447 17448 * When a certificate request is read in keep a copy of the 17449 original encoding of the signed data and use it when outputting 17450 again. Signatures then use the original encoding rather than 17451 a decoded, encoded version which may cause problems if the 17452 request is improperly encoded. 17453 17454 *Steve Henson* 17455 17456 * For consistency with other BIO_puts implementations, call 17457 buffer_write(b, ...) directly in buffer_puts instead of calling 17458 BIO_write(b, ...). 17459 17460 In BIO_puts, increment b->num_write as in BIO_write. 17461 17462 *Peter.Sylvester@EdelWeb.fr* 17463 17464 * Fix BN_mul_word for the case where the word is 0. (We have to use 17465 BN_zero, we may not return a BIGNUM with an array consisting of 17466 words set to zero.) 17467 17468 *Bodo Moeller* 17469 17470 * Avoid calling abort() from within the library when problems are 17471 detected, except if preprocessor symbols have been defined 17472 (such as REF_CHECK, BN_DEBUG etc.). 17473 17474 *Bodo Moeller* 17475 17476 * New openssl application 'rsautl'. This utility can be 17477 used for low-level RSA operations. DER public key 17478 BIO/fp routines also added. 17479 17480 *Steve Henson* 17481 17482 * New Configure entry and patches for compiling on QNX 4. 17483 17484 *Andreas Schneider <andreas@ds3.etech.fh-hamburg.de>* 17485 17486 * A demo state-machine implementation was sponsored by 17487 Nuron (<http://www.nuron.com/>) and is now available in 17488 demos/state_machine. 17489 17490 *Ben Laurie* 17491 17492 * New options added to the 'dgst' utility for signature 17493 generation and verification. 17494 17495 *Steve Henson* 17496 17497 * Unrecognized PKCS#7 content types are now handled via a 17498 catch all ASN1_TYPE structure. This allows unsupported 17499 types to be stored as a "blob" and an application can 17500 encode and decode it manually. 17501 17502 *Steve Henson* 17503 17504 * Fix various signed/unsigned issues to make a_strex.c 17505 compile under VC++. 17506 17507 *Oscar Jacobsson <oscar.jacobsson@celocom.com>* 17508 17509 * ASN1 fixes. i2d_ASN1_OBJECT was not returning the correct 17510 length if passed a buffer. ASN1_INTEGER_to_BN failed 17511 if passed a NULL BN and its argument was negative. 17512 17513 *Steve Henson, pointed out by Sven Heiberg <sven@tartu.cyber.ee>* 17514 17515 * Modification to PKCS#7 encoding routines to output definite 17516 length encoding. Since currently the whole structures are in 17517 memory there's not real point in using indefinite length 17518 constructed encoding. However if OpenSSL is compiled with 17519 the flag PKCS7_INDEFINITE_ENCODING the old form is used. 17520 17521 *Steve Henson* 17522 17523 * Added BIO_vprintf() and BIO_vsnprintf(). 17524 17525 *Richard Levitte* 17526 17527 * Added more prefixes to parse for in the strings written 17528 through a logging bio, to cover all the levels that are available 17529 through syslog. The prefixes are now: 17530 17531 PANIC, EMERG, EMR => LOG_EMERG 17532 ALERT, ALR => LOG_ALERT 17533 CRIT, CRI => LOG_CRIT 17534 ERROR, ERR => LOG_ERR 17535 WARNING, WARN, WAR => LOG_WARNING 17536 NOTICE, NOTE, NOT => LOG_NOTICE 17537 INFO, INF => LOG_INFO 17538 DEBUG, DBG => LOG_DEBUG 17539 17540 and as before, if none of those prefixes are present at the 17541 beginning of the string, LOG_ERR is chosen. 17542 17543 On Win32, the `LOG_*` levels are mapped according to this: 17544 17545 LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR => EVENTLOG_ERROR_TYPE 17546 LOG_WARNING => EVENTLOG_WARNING_TYPE 17547 LOG_NOTICE, LOG_INFO, LOG_DEBUG => EVENTLOG_INFORMATION_TYPE 17548 17549 *Richard Levitte* 17550 17551 * Made it possible to reconfigure with just the configuration 17552 argument "reconf" or "reconfigure". The command line arguments 17553 are stored in Makefile.ssl in the variable CONFIGURE_ARGS, 17554 and are retrieved from there when reconfiguring. 17555 17556 *Richard Levitte* 17557 17558 * MD4 implemented. 17559 17560 *Assar Westerlund <assar@sics.se>, Richard Levitte* 17561 17562 * Add the arguments -CAfile and -CApath to the pkcs12 utility. 17563 17564 *Richard Levitte* 17565 17566 * The obj_dat.pl script was messing up the sorting of object 17567 names. The reason was that it compared the quoted version 17568 of strings as a result "OCSP" > "OCSP Signing" because 17569 " > SPACE. Changed script to store unquoted versions of 17570 names and add quotes on output. It was also omitting some 17571 names from the lookup table if they were given a default 17572 value (that is if SN is missing it is given the same 17573 value as LN and vice versa), these are now added on the 17574 grounds that if an object has a name we should be able to 17575 look it up. Finally added warning output when duplicate 17576 short or long names are found. 17577 17578 *Steve Henson* 17579 17580 * Changes needed for Tandem NSK. 17581 17582 *Scott Uroff <scott@xypro.com>* 17583 17584 * Fix SSL 2.0 rollback checking: Due to an off-by-one error in 17585 RSA_padding_check_SSLv23(), special padding was never detected 17586 and thus the SSL 3.0/TLS 1.0 countermeasure against protocol 17587 version rollback attacks was not effective. 17588 17589 In s23_clnt.c, don't use special rollback-attack detection padding 17590 (RSA_SSLV23_PADDING) if SSL 2.0 is the only protocol enabled in the 17591 client; similarly, in s23_srvr.c, don't do the rollback check if 17592 SSL 2.0 is the only protocol enabled in the server. 17593 17594 *Bodo Moeller* 17595 17596 * Make it possible to get hexdumps of unprintable data with 'openssl 17597 asn1parse'. By implication, the functions ASN1_parse_dump() and 17598 BIO_dump_indent() are added. 17599 17600 *Richard Levitte* 17601 17602 * New functions ASN1_STRING_print_ex() and X509_NAME_print_ex() 17603 these print out strings and name structures based on various 17604 flags including RFC2253 support and proper handling of 17605 multibyte characters. Added options to the 'x509' utility 17606 to allow the various flags to be set. 17607 17608 *Steve Henson* 17609 17610 * Various fixes to use ASN1_TIME instead of ASN1_UTCTIME. 17611 Also change the functions X509_cmp_current_time() and 17612 X509_gmtime_adj() work with an ASN1_TIME structure, 17613 this will enable certificates using GeneralizedTime in validity 17614 dates to be checked. 17615 17616 *Steve Henson* 17617 17618 * Make the NEG_PUBKEY_BUG code (which tolerates invalid 17619 negative public key encodings) on by default, 17620 NO_NEG_PUBKEY_BUG can be set to disable it. 17621 17622 *Steve Henson* 17623 17624 * New function c2i_ASN1_OBJECT() which acts on ASN1_OBJECT 17625 content octets. An i2c_ASN1_OBJECT is unnecessary because 17626 the encoding can be trivially obtained from the structure. 17627 17628 *Steve Henson* 17629 17630 * crypto/err.c locking bugfix: Use write locks (`CRYPTO_w_[un]lock`), 17631 not read locks (`CRYPTO_r_[un]lock`). 17632 17633 *Bodo Moeller* 17634 17635 * A first attempt at creating official support for shared 17636 libraries through configuration. I've kept it so the 17637 default is static libraries only, and the OpenSSL programs 17638 are always statically linked for now, but there are 17639 preparations for dynamic linking in place. 17640 This has been tested on Linux and Tru64. 17641 17642 *Richard Levitte* 17643 17644 * Randomness polling function for Win9x, as described in: 17645 Peter Gutmann, Software Generation of Practically Strong 17646 Random Numbers. 17647 17648 *Ulf Möller* 17649 17650 * Fix so PRNG is seeded in req if using an already existing 17651 DSA key. 17652 17653 *Steve Henson* 17654 17655 * New options to smime application. -inform and -outform 17656 allow alternative formats for the S/MIME message including 17657 PEM and DER. The -content option allows the content to be 17658 specified separately. This should allow things like Netscape 17659 form signing output easier to verify. 17660 17661 *Steve Henson* 17662 17663 * Fix the ASN1 encoding of tags using the 'long form'. 17664 17665 *Steve Henson* 17666 17667 * New ASN1 functions, `i2c_*` and `c2i_*` for INTEGER and BIT 17668 STRING types. These convert content octets to and from the 17669 underlying type. The actual tag and length octets are 17670 already assumed to have been read in and checked. These 17671 are needed because all other string types have virtually 17672 identical handling apart from the tag. By having versions 17673 of the ASN1 functions that just operate on content octets 17674 IMPLICIT tagging can be handled properly. It also allows 17675 the ASN1_ENUMERATED code to be cut down because ASN1_ENUMERATED 17676 and ASN1_INTEGER are identical apart from the tag. 17677 17678 *Steve Henson* 17679 17680 * Change the handling of OID objects as follows: 17681 17682 - New object identifiers are inserted in objects.txt, following 17683 the syntax given in [crypto/objects/README.md](crypto/objects/README.md). 17684 - objects.pl is used to process obj_mac.num and create a new 17685 obj_mac.h. 17686 - obj_dat.pl is used to create a new obj_dat.h, using the data in 17687 obj_mac.h. 17688 17689 This is currently kind of a hack, and the perl code in objects.pl 17690 isn't very elegant, but it works as I intended. The simplest way 17691 to check that it worked correctly is to look in obj_dat.h and 17692 check the array nid_objs and make sure the objects haven't moved 17693 around (this is important!). Additions are OK, as well as 17694 consistent name changes. 17695 17696 *Richard Levitte* 17697 17698 * Add BSD-style MD5-based passwords to 'openssl passwd' (option '-1'). 17699 17700 *Bodo Moeller* 17701 17702 * Addition of the command line parameter '-rand file' to 'openssl req'. 17703 The given file adds to whatever has already been seeded into the 17704 random pool through the RANDFILE configuration file option or 17705 environment variable, or the default random state file. 17706 17707 *Richard Levitte* 17708 17709 * mkstack.pl now sorts each macro group into lexical order. 17710 Previously the output order depended on the order the files 17711 appeared in the directory, resulting in needless rewriting 17712 of safestack.h . 17713 17714 *Steve Henson* 17715 17716 * Patches to make OpenSSL compile under Win32 again. Mostly 17717 work arounds for the VC++ problem that it treats func() as 17718 func(void). Also stripped out the parts of mkdef.pl that 17719 added extra typesafe functions: these no longer exist. 17720 17721 *Steve Henson* 17722 17723 * Reorganisation of the stack code. The macros are now all 17724 collected in safestack.h . Each macro is defined in terms of 17725 a "stack macro" of the form `SKM_<name>(type, a, b)`. The 17726 DEBUG_SAFESTACK is now handled in terms of function casts, 17727 this has the advantage of retaining type safety without the 17728 use of additional functions. If DEBUG_SAFESTACK is not defined 17729 then the non typesafe macros are used instead. Also modified the 17730 mkstack.pl script to handle the new form. Needs testing to see 17731 if which (if any) compilers it chokes and maybe make DEBUG_SAFESTACK 17732 the default if no major problems. Similar behaviour for ASN1_SET_OF 17733 and PKCS12_STACK_OF. 17734 17735 *Steve Henson* 17736 17737 * When some versions of IIS use the 'NET' form of private key the 17738 key derivation algorithm is different. Normally MD5(password) is 17739 used as a 128 bit RC4 key. In the modified case 17740 MD5(MD5(password) + "SGCKEYSALT") is used instead. Added some 17741 new functions i2d_RSA_NET(), d2i_RSA_NET() etc which are the same 17742 as the old Netscape_RSA functions except they have an additional 17743 'sgckey' parameter which uses the modified algorithm. Also added 17744 an -sgckey command line option to the rsa utility. Thanks to 17745 Adrian Peck <bertie@ncipher.com> for posting details of the modified 17746 algorithm to openssl-dev. 17747 17748 *Steve Henson* 17749 17750 * The evp_local.h macros were using 'c.##kname' which resulted in 17751 invalid expansion on some systems (SCO 5.0.5 for example). 17752 Corrected to 'c.kname'. 17753 17754 *Phillip Porch <root@theporch.com>* 17755 17756 * New X509_get1_email() and X509_REQ_get1_email() functions that return 17757 a STACK of email addresses from a certificate or request, these look 17758 in the subject name and the subject alternative name extensions and 17759 omit any duplicate addresses. 17760 17761 *Steve Henson* 17762 17763 * Re-implement BN_mod_exp2_mont using independent (and larger) windows. 17764 This makes DSA verification about 2 % faster. 17765 17766 *Bodo Moeller* 17767 17768 * Increase maximum window size in `BN_mod_exp_...` to 6 bits instead of 5 17769 (meaning that now 2^5 values will be precomputed, which is only 4 KB 17770 plus overhead for 1024 bit moduli). 17771 This makes exponentiations about 0.5 % faster for 1024 bit 17772 exponents (as measured by "openssl speed rsa2048"). 17773 17774 *Bodo Moeller* 17775 17776 * Rename memory handling macros to avoid conflicts with other 17777 software: 17778 Malloc => OPENSSL_malloc 17779 Malloc_locked => OPENSSL_malloc_locked 17780 Realloc => OPENSSL_realloc 17781 Free => OPENSSL_free 17782 17783 *Richard Levitte* 17784 17785 * New function BN_mod_exp_mont_word for small bases (roughly 15% 17786 faster than BN_mod_exp_mont, i.e. 7% for a full DH exchange). 17787 17788 *Bodo Moeller* 17789 17790 * CygWin32 support. 17791 17792 *John Jarvie <jjarvie@newsguy.com>* 17793 17794 * The type-safe stack code has been rejigged. It is now only compiled 17795 in when OpenSSL is configured with the DEBUG_SAFESTACK option and 17796 by default all type-specific stack functions are "#define"d back to 17797 standard stack functions. This results in more streamlined output 17798 but retains the type-safety checking possibilities of the original 17799 approach. 17800 17801 *Geoff Thorpe* 17802 17803 * The STACK code has been cleaned up, and certain type declarations 17804 that didn't make a lot of sense have been brought in line. This has 17805 also involved a cleanup of sorts in safestack.h to more correctly 17806 map type-safe stack functions onto their plain stack counterparts. 17807 This work has also resulted in a variety of "const"ifications of 17808 lots of the code, especially `_cmp` operations which should normally 17809 be prototyped with "const" parameters anyway. 17810 17811 *Geoff Thorpe* 17812 17813 * When generating bytes for the first time in md_rand.c, 'stir the pool' 17814 by seeding with STATE_SIZE dummy bytes (with zero entropy count). 17815 (The PRNG state consists of two parts, the large pool 'state' and 'md', 17816 where all of 'md' is used each time the PRNG is used, but 'state' 17817 is used only indexed by a cyclic counter. As entropy may not be 17818 well distributed from the beginning, 'md' is important as a 17819 chaining variable. However, the output function chains only half 17820 of 'md', i.e. 80 bits. ssleay_rand_add, on the other hand, chains 17821 all of 'md', and seeding with STATE_SIZE dummy bytes will result 17822 in all of 'state' being rewritten, with the new values depending 17823 on virtually all of 'md'. This overcomes the 80 bit limitation.) 17824 17825 *Bodo Moeller* 17826 17827 * In ssl/s2_clnt.c and ssl/s3_clnt.c, call ERR_clear_error() when 17828 the handshake is continued after ssl_verify_cert_chain(); 17829 otherwise, if SSL_VERIFY_NONE is set, remaining error codes 17830 can lead to 'unexplainable' connection aborts later. 17831 17832 *Bodo Moeller; problem tracked down by Lutz Jaenicke* 17833 17834 * Major EVP API cipher revision. 17835 Add hooks for extra EVP features. This allows various cipher 17836 parameters to be set in the EVP interface. Support added for variable 17837 key length ciphers via the EVP_CIPHER_CTX_set_key_length() function and 17838 setting of RC2 and RC5 parameters. 17839 17840 Modify EVP_OpenInit() and EVP_SealInit() to cope with variable key length 17841 ciphers. 17842 17843 Remove lots of duplicated code from the EVP library. For example *every* 17844 cipher init() function handles the 'iv' in the same way according to the 17845 cipher mode. They also all do nothing if the 'key' parameter is NULL and 17846 for CFB and OFB modes they zero ctx->num. 17847 17848 New functionality allows removal of S/MIME code RC2 hack. 17849 17850 Most of the routines have the same form and so can be declared in terms 17851 of macros. 17852 17853 By shifting this to the top level EVP_CipherInit() it can be removed from 17854 all individual ciphers. If the cipher wants to handle IVs or keys 17855 differently it can set the EVP_CIPH_CUSTOM_IV or EVP_CIPH_ALWAYS_CALL_INIT 17856 flags. 17857 17858 Change lots of functions like EVP_EncryptUpdate() to now return a 17859 value: although software versions of the algorithms cannot fail 17860 any installed hardware versions can. 17861 17862 *Steve Henson* 17863 17864 * Implement SSL_OP_TLS_ROLLBACK_BUG: In ssl3_get_client_key_exchange, if 17865 this option is set, tolerate broken clients that send the negotiated 17866 protocol version number instead of the requested protocol version 17867 number. 17868 17869 *Bodo Moeller* 17870 17871 * Call dh_tmp_cb (set by `..._TMP_DH_CB`) with correct 'is_export' flag; 17872 i.e. non-zero for export ciphersuites, zero otherwise. 17873 Previous versions had this flag inverted, inconsistent with 17874 rsa_tmp_cb (..._TMP_RSA_CB). 17875 17876 *Bodo Moeller; problem reported by Amit Chopra* 17877 17878 * Add missing DSA library text string. Work around for some IIS 17879 key files with invalid SEQUENCE encoding. 17880 17881 *Steve Henson* 17882 17883 * Add a document (doc/standards.txt) that list all kinds of standards 17884 and so on that are implemented in OpenSSL. 17885 17886 *Richard Levitte* 17887 17888 * Enhance c_rehash script. Old version would mishandle certificates 17889 with the same subject name hash and wouldn't handle CRLs at all. 17890 Added -fingerprint option to crl utility, to support new c_rehash 17891 features. 17892 17893 *Steve Henson* 17894 17895 * Eliminate non-ANSI declarations in crypto.h and stack.h. 17896 17897 *Ulf Möller* 17898 17899 * Fix for SSL server purpose checking. Server checking was 17900 rejecting certificates which had extended key usage present 17901 but no ssl client purpose. 17902 17903 *Steve Henson, reported by Rene Grosser <grosser@hisolutions.com>* 17904 17905 * Make PKCS#12 code work with no password. The PKCS#12 spec 17906 is a little unclear about how a blank password is handled. 17907 Since the password in encoded as a BMPString with terminating 17908 double NULL a zero length password would end up as just the 17909 double NULL. However no password at all is different and is 17910 handled differently in the PKCS#12 key generation code. NS 17911 treats a blank password as zero length. MSIE treats it as no 17912 password on export: but it will try both on import. We now do 17913 the same: PKCS12_parse() tries zero length and no password if 17914 the password is set to "" or NULL (NULL is now a valid password: 17915 it wasn't before) as does the pkcs12 application. 17916 17917 *Steve Henson* 17918 17919 * Bugfixes in `apps/x509.c`: Avoid a memory leak; and don't use 17920 perror when PEM_read_bio_X509_REQ fails, the error message must 17921 be obtained from the error queue. 17922 17923 *Bodo Moeller* 17924 17925 * Avoid 'thread_hash' memory leak in crypto/err/err.c by freeing 17926 it in ERR_remove_state if appropriate, and change ERR_get_state 17927 accordingly to avoid race conditions (this is necessary because 17928 thread_hash is no longer constant once set). 17929 17930 *Bodo Moeller* 17931 17932 * Bugfix for linux-elf makefile.one. 17933 17934 *Ulf Möller* 17935 17936 * RSA_get_default_method() will now cause a default 17937 RSA_METHOD to be chosen if one doesn't exist already. 17938 Previously this was only set during a call to RSA_new() 17939 or RSA_new_method(NULL) meaning it was possible for 17940 RSA_get_default_method() to return NULL. 17941 17942 *Geoff Thorpe* 17943 17944 * Added native name translation to the existing DSO code 17945 that will convert (if the flag to do so is set) filenames 17946 that are sufficiently small and have no path information 17947 into a canonical native form. Eg. "blah" converted to 17948 "libblah.so" or "blah.dll" etc. 17949 17950 *Geoff Thorpe* 17951 17952 * New function ERR_error_string_n(e, buf, len) which is like 17953 ERR_error_string(e, buf), but writes at most 'len' bytes 17954 including the 0 terminator. For ERR_error_string_n, 'buf' 17955 may not be NULL. 17956 17957 *Damien Miller <djm@mindrot.org>, Bodo Moeller* 17958 17959 * CONF library reworked to become more general. A new CONF 17960 configuration file reader "class" is implemented as well as a 17961 new functions (`NCONF_*`, for "New CONF") to handle it. The now 17962 old `CONF_*` functions are still there, but are reimplemented to 17963 work in terms of the new functions. Also, a set of functions 17964 to handle the internal storage of the configuration data is 17965 provided to make it easier to write new configuration file 17966 reader "classes" (I can definitely see something reading a 17967 configuration file in XML format, for example), called `_CONF_*`, 17968 or "the configuration storage API"... 17969 17970 The new configuration file reading functions are: 17971 17972 NCONF_new, NCONF_free, NCONF_load, NCONF_load_fp, NCONF_load_bio, 17973 NCONF_get_section, NCONF_get_string, NCONF_get_numbre 17974 17975 NCONF_default, NCONF_WIN32 17976 17977 NCONF_dump_fp, NCONF_dump_bio 17978 17979 NCONF_default and NCONF_WIN32 are method (or "class") choosers, 17980 NCONF_new creates a new CONF object. This works in the same way 17981 as other interfaces in OpenSSL, like the BIO interface. 17982 `NCONF_dump_*` dump the internal storage of the configuration file, 17983 which is useful for debugging. All other functions take the same 17984 arguments as the old `CONF_*` functions with the exception of the 17985 first that must be a `CONF *` instead of a `LHASH *`. 17986 17987 To make it easier to use the new classes with the old `CONF_*` functions, 17988 the function CONF_set_default_method is provided. 17989 17990 *Richard Levitte* 17991 17992 * Add '-tls1' option to 'openssl ciphers', which was already 17993 mentioned in the documentation but had not been implemented. 17994 (This option is not yet really useful because even the additional 17995 experimental TLS 1.0 ciphers are currently treated as SSL 3.0 ciphers.) 17996 17997 *Bodo Moeller* 17998 17999 * Initial DSO code added into libcrypto for letting OpenSSL (and 18000 OpenSSL-based applications) load shared libraries and bind to 18001 them in a portable way. 18002 18003 *Geoff Thorpe, with contributions from Richard Levitte* 18004 18005### Changes between 0.9.5 and 0.9.5a [1 Apr 2000] 18006 18007 * Make sure _lrotl and _lrotr are only used with MSVC. 18008 18009 * Use lock CRYPTO_LOCK_RAND correctly in ssleay_rand_status 18010 (the default implementation of RAND_status). 18011 18012 * Rename openssl x509 option '-crlext', which was added in 0.9.5, 18013 to '-clrext' (= clear extensions), as intended and documented. 18014 *Bodo Moeller; inconsistency pointed out by Michael Attili 18015 <attili@amaxo.com>* 18016 18017 * Fix for HMAC. It wasn't zeroing the rest of the block if the key length 18018 was larger than the MD block size. 18019 18020 *Steve Henson, pointed out by Yost William <YostW@tce.com>* 18021 18022 * Modernise PKCS12_parse() so it uses STACK_OF(X509) for its ca argument 18023 fix a leak when the ca argument was passed as NULL. Stop X509_PUBKEY_set() 18024 using the passed key: if the passed key was a private key the result 18025 of X509_print(), for example, would be to print out all the private key 18026 components. 18027 18028 *Steve Henson* 18029 18030 * des_quad_cksum() byte order bug fix. 18031 *Ulf Möller, using the problem description in krb4-0.9.7, where 18032 the solution is attributed to Derrick J Brashear <shadow@DEMENTIA.ORG>* 18033 18034 * Fix so V_ASN1_APP_CHOOSE works again: however its use is strongly 18035 discouraged. 18036 18037 *Steve Henson, pointed out by Brian Korver <briank@cs.stanford.edu>* 18038 18039 * For easily testing in shell scripts whether some command 18040 'openssl XXX' exists, the new pseudo-command 'openssl no-XXX' 18041 returns with exit code 0 iff no command of the given name is available. 18042 'no-XXX' is printed in this case, 'XXX' otherwise. In both cases, 18043 the output goes to stdout and nothing is printed to stderr. 18044 Additional arguments are always ignored. 18045 18046 Since for each cipher there is a command of the same name, 18047 the 'no-cipher' compilation switches can be tested this way. 18048 18049 ('openssl no-XXX' is not able to detect pseudo-commands such 18050 as 'quit', 'list-XXX-commands', or 'no-XXX' itself.) 18051 18052 *Bodo Moeller* 18053 18054 * Update test suite so that 'make test' succeeds in 'no-rsa' configuration. 18055 18056 *Bodo Moeller* 18057 18058 * For SSL_[CTX_]set_tmp_dh, don't create a DH key if SSL_OP_SINGLE_DH_USE 18059 is set; it will be thrown away anyway because each handshake creates 18060 its own key. 18061 ssl_cert_dup, which is used by SSL_new, now copies DH keys in addition 18062 to parameters -- in previous versions (since OpenSSL 0.9.3) the 18063 'default key' from SSL_CTX_set_tmp_dh would always be lost, meaning 18064 you effectively got SSL_OP_SINGLE_DH_USE when using this macro. 18065 18066 *Bodo Moeller* 18067 18068 * New s_client option -ign_eof: EOF at stdin is ignored, and 18069 'Q' and 'R' lose their special meanings (quit/renegotiate). 18070 This is part of what -quiet does; unlike -quiet, -ign_eof 18071 does not suppress any output. 18072 18073 *Richard Levitte* 18074 18075 * Add compatibility options to the purpose and trust code. The 18076 purpose X509_PURPOSE_ANY is "any purpose" which automatically 18077 accepts a certificate or CA, this was the previous behaviour, 18078 with all the associated security issues. 18079 18080 X509_TRUST_COMPAT is the old trust behaviour: only and 18081 automatically trust self signed roots in certificate store. A 18082 new trust setting X509_TRUST_DEFAULT is used to specify that 18083 a purpose has no associated trust setting and it should instead 18084 use the value in the default purpose. 18085 18086 *Steve Henson* 18087 18088 * Fix the PKCS#8 DSA private key code so it decodes keys again 18089 and fix a memory leak. 18090 18091 *Steve Henson* 18092 18093 * In util/mkerr.pl (which implements 'make errors'), preserve 18094 reason strings from the previous version of the .c file, as 18095 the default to have only downcase letters (and digits) in 18096 automatically generated reasons codes is not always appropriate. 18097 18098 *Bodo Moeller* 18099 18100 * In ERR_load_ERR_strings(), build an ERR_LIB_SYS error reason table 18101 using strerror. Previously, ERR_reason_error_string() returned 18102 library names as reason strings for SYSerr; but SYSerr is a special 18103 case where small numbers are errno values, not library numbers. 18104 18105 *Bodo Moeller* 18106 18107 * Add '-dsaparam' option to 'openssl dhparam' application. This 18108 converts DSA parameters into DH parameters. (When creating parameters, 18109 DSA_generate_parameters is used.) 18110 18111 *Bodo Moeller* 18112 18113 * Include 'length' (recommended exponent length) in C code generated 18114 by 'openssl dhparam -C'. 18115 18116 *Bodo Moeller* 18117 18118 * The second argument to set_label in perlasm was already being used 18119 so couldn't be used as a "file scope" flag. Moved to third argument 18120 which was free. 18121 18122 *Steve Henson* 18123 18124 * In PEM_ASN1_write_bio and some other functions, use RAND_pseudo_bytes 18125 instead of RAND_bytes for encryption IVs and salts. 18126 18127 *Bodo Moeller* 18128 18129 * Include RAND_status() into RAND_METHOD instead of implementing 18130 it only for md_rand.c Otherwise replacing the PRNG by calling 18131 RAND_set_rand_method would be impossible. 18132 18133 *Bodo Moeller* 18134 18135 * Don't let DSA_generate_key() enter an infinite loop if the random 18136 number generation fails. 18137 18138 *Bodo Moeller* 18139 18140 * New 'rand' application for creating pseudo-random output. 18141 18142 *Bodo Moeller* 18143 18144 * Added configuration support for Linux/IA64 18145 18146 *Rolf Haberrecker <rolf@suse.de>* 18147 18148 * Assembler module support for Mingw32. 18149 18150 *Ulf Möller* 18151 18152 * Shared library support for HPUX (in shlib/). 18153 18154 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE> and Anonymous* 18155 18156 * Shared library support for Solaris gcc. 18157 18158 *Lutz Behnke <behnke@trustcenter.de>* 18159 18160### Changes between 0.9.4 and 0.9.5 [28 Feb 2000] 18161 18162 * PKCS7_encrypt() was adding text MIME headers twice because they 18163 were added manually and by SMIME_crlf_copy(). 18164 18165 *Steve Henson* 18166 18167 * In bntest.c don't call BN_rand with zero bits argument. 18168 18169 *Steve Henson, pointed out by Andrew W. Gray <agray@iconsinc.com>* 18170 18171 * BN_mul bugfix: In bn_mul_part_recursion() only the a>a[n] && b>b[n] 18172 case was implemented. This caused BN_div_recp() to fail occasionally. 18173 18174 *Ulf Möller* 18175 18176 * Add an optional second argument to the set_label() in the perl 18177 assembly language builder. If this argument exists and is set 18178 to 1 it signals that the assembler should use a symbol whose 18179 scope is the entire file, not just the current function. This 18180 is needed with MASM which uses the format label:: for this scope. 18181 18182 *Steve Henson, pointed out by Peter Runestig <peter@runestig.com>* 18183 18184 * Change the ASN1 types so they are typedefs by default. Before 18185 almost all types were #define'd to ASN1_STRING which was causing 18186 STACK_OF() problems: you couldn't declare STACK_OF(ASN1_UTF8STRING) 18187 for example. 18188 18189 *Steve Henson* 18190 18191 * Change names of new functions to the new get1/get0 naming 18192 convention: After 'get1', the caller owns a reference count 18193 and has to call `..._free`; 'get0' returns a pointer to some 18194 data structure without incrementing reference counters. 18195 (Some of the existing 'get' functions increment a reference 18196 counter, some don't.) 18197 Similarly, 'set1' and 'add1' functions increase reference 18198 counters or duplicate objects. 18199 18200 *Steve Henson* 18201 18202 * Allow for the possibility of temp RSA key generation failure: 18203 the code used to assume it always worked and crashed on failure. 18204 18205 *Steve Henson* 18206 18207 * Fix potential buffer overrun problem in BIO_printf(). 18208 *Ulf Möller, using public domain code by Patrick Powell; problem 18209 pointed out by David Sacerdote <das33@cornell.edu>* 18210 18211 * Support EGD <http://www.lothar.com/tech/crypto/>. New functions 18212 RAND_egd() and RAND_status(). In the command line application, 18213 the EGD socket can be specified like a seed file using RANDFILE 18214 or -rand. 18215 18216 *Ulf Möller* 18217 18218 * Allow the string CERTIFICATE to be tolerated in PKCS#7 structures. 18219 Some CAs (e.g. Verisign) distribute certificates in this form. 18220 18221 *Steve Henson* 18222 18223 * Remove the SSL_ALLOW_ADH compile option and set the default cipher 18224 list to exclude them. This means that no special compilation option 18225 is needed to use anonymous DH: it just needs to be included in the 18226 cipher list. 18227 18228 *Steve Henson* 18229 18230 * Change the EVP_MD_CTX_type macro so its meaning consistent with 18231 EVP_MD_type. The old functionality is available in a new macro called 18232 EVP_MD_md(). Change code that uses it and update docs. 18233 18234 *Steve Henson* 18235 18236 * `..._ctrl` functions now have corresponding `..._callback_ctrl` functions 18237 where the `void *` argument is replaced by a function pointer argument. 18238 Previously `void *` was abused to point to functions, which works on 18239 many platforms, but is not correct. As these functions are usually 18240 called by macros defined in OpenSSL header files, most source code 18241 should work without changes. 18242 18243 *Richard Levitte* 18244 18245 * `<openssl/opensslconf.h>` (which is created by Configure) now contains 18246 sections with information on -D... compiler switches used for 18247 compiling the library so that applications can see them. To enable 18248 one of these sections, a pre-processor symbol `OPENSSL_..._DEFINES` 18249 must be defined. E.g., 18250 #define OPENSSL_ALGORITHM_DEFINES 18251 #include <openssl/opensslconf.h> 18252 defines all pertinent `NO_<algo>` symbols, such as NO_IDEA, NO_RSA, etc. 18253 18254 *Richard Levitte, Ulf and Bodo Möller* 18255 18256 * Bugfix: Tolerate fragmentation and interleaving in the SSL 3/TLS 18257 record layer. 18258 18259 *Bodo Moeller* 18260 18261 * Change the 'other' type in certificate aux info to a STACK_OF 18262 X509_ALGOR. Although not an AlgorithmIdentifier as such it has 18263 the required ASN1 format: arbitrary types determined by an OID. 18264 18265 *Steve Henson* 18266 18267 * Add some PEM_write_X509_REQ_NEW() functions and a command line 18268 argument to 'req'. This is not because the function is newer or 18269 better than others it just uses the work 'NEW' in the certificate 18270 request header lines. Some software needs this. 18271 18272 *Steve Henson* 18273 18274 * Reorganise password command line arguments: now passwords can be 18275 obtained from various sources. Delete the PEM_cb function and make 18276 it the default behaviour: i.e. if the callback is NULL and the 18277 usrdata argument is not NULL interpret it as a null terminated pass 18278 phrase. If usrdata and the callback are NULL then the pass phrase 18279 is prompted for as usual. 18280 18281 *Steve Henson* 18282 18283 * Add support for the Compaq Atalla crypto accelerator. If it is installed, 18284 the support is automatically enabled. The resulting binaries will 18285 autodetect the card and use it if present. 18286 18287 *Ben Laurie and Compaq Inc.* 18288 18289 * Work around for Netscape hang bug. This sends certificate request 18290 and server done in one record. Since this is perfectly legal in the 18291 SSL/TLS protocol it isn't a "bug" option and is on by default. See 18292 the bugs/SSLv3 entry for more info. 18293 18294 *Steve Henson* 18295 18296 * HP-UX tune-up: new unified configs, HP C compiler bug workaround. 18297 18298 *Andy Polyakov* 18299 18300 * Add -rand argument to smime and pkcs12 applications and read/write 18301 of seed file. 18302 18303 *Steve Henson* 18304 18305 * New 'passwd' tool for crypt(3) and apr1 password hashes. 18306 18307 *Bodo Moeller* 18308 18309 * Add command line password options to the remaining applications. 18310 18311 *Steve Henson* 18312 18313 * Bug fix for BN_div_recp() for numerators with an even number of 18314 bits. 18315 18316 *Ulf Möller* 18317 18318 * More tests in bntest.c, and changed test_bn output. 18319 18320 *Ulf Möller* 18321 18322 * ./config recognizes MacOS X now. 18323 18324 *Andy Polyakov* 18325 18326 * Bug fix for BN_div() when the first words of num and divisor are 18327 equal (it gave wrong results if `(rem=(n1-q*d0)&BN_MASK2) < d0)`. 18328 18329 *Ulf Möller* 18330 18331 * Add support for various broken PKCS#8 formats, and command line 18332 options to produce them. 18333 18334 *Steve Henson* 18335 18336 * New functions BN_CTX_start(), BN_CTX_get() and BT_CTX_end() to 18337 get temporary BIGNUMs from a BN_CTX. 18338 18339 *Ulf Möller* 18340 18341 * Correct return values in BN_mod_exp_mont() and BN_mod_exp2_mont() 18342 for p == 0. 18343 18344 *Ulf Möller* 18345 18346 * Change the `SSLeay_add_all_*()` functions to `OpenSSL_add_all_*()` and 18347 include a #define from the old name to the new. The original intent 18348 was that statically linked binaries could for example just call 18349 SSLeay_add_all_ciphers() to just add ciphers to the table and not 18350 link with digests. This never worked because SSLeay_add_all_digests() 18351 and SSLeay_add_all_ciphers() were in the same source file so calling 18352 one would link with the other. They are now in separate source files. 18353 18354 *Steve Henson* 18355 18356 * Add a new -notext option to 'ca' and a -pubkey option to 'spkac'. 18357 18358 *Steve Henson* 18359 18360 * Use a less unusual form of the Miller-Rabin primality test (it used 18361 a binary algorithm for exponentiation integrated into the Miller-Rabin 18362 loop, our standard modexp algorithms are faster). 18363 18364 *Bodo Moeller* 18365 18366 * Support for the EBCDIC character set completed. 18367 18368 *Martin Kraemer <Martin.Kraemer@Mch.SNI.De>* 18369 18370 * Source code cleanups: use const where appropriate, eliminate casts, 18371 use `void *` instead of `char *` in lhash. 18372 18373 *Ulf Möller* 18374 18375 * Bugfix: ssl3_send_server_key_exchange was not restartable 18376 (the state was not changed to SSL3_ST_SW_KEY_EXCH_B, and because of 18377 this the server could overwrite ephemeral keys that the client 18378 has already seen). 18379 18380 *Bodo Moeller* 18381 18382 * Turn DSA_is_prime into a macro that calls BN_is_prime, 18383 using 50 iterations of the Rabin-Miller test. 18384 18385 DSA_generate_parameters now uses BN_is_prime_fasttest (with 50 18386 iterations of the Rabin-Miller test as required by the appendix 18387 to FIPS PUB 186[-1]) instead of DSA_is_prime. 18388 As BN_is_prime_fasttest includes trial division, DSA parameter 18389 generation becomes much faster. 18390 18391 This implies a change for the callback functions in DSA_is_prime 18392 and DSA_generate_parameters: The callback function is called once 18393 for each positive witness in the Rabin-Miller test, not just 18394 occasionally in the inner loop; and the parameters to the 18395 callback function now provide an iteration count for the outer 18396 loop rather than for the current invocation of the inner loop. 18397 DSA_generate_parameters additionally can call the callback 18398 function with an 'iteration count' of -1, meaning that a 18399 candidate has passed the trial division test (when q is generated 18400 from an application-provided seed, trial division is skipped). 18401 18402 *Bodo Moeller* 18403 18404 * New function BN_is_prime_fasttest that optionally does trial 18405 division before starting the Rabin-Miller test and has 18406 an additional BN_CTX * argument (whereas BN_is_prime always 18407 has to allocate at least one BN_CTX). 18408 'callback(1, -1, cb_arg)' is called when a number has passed the 18409 trial division stage. 18410 18411 *Bodo Moeller* 18412 18413 * Fix for bug in CRL encoding. The validity dates weren't being handled 18414 as ASN1_TIME. 18415 18416 *Steve Henson* 18417 18418 * New -pkcs12 option to CA.pl script to write out a PKCS#12 file. 18419 18420 *Steve Henson* 18421 18422 * New function BN_pseudo_rand(). 18423 18424 *Ulf Möller* 18425 18426 * Clean up BN_mod_mul_montgomery(): replace the broken (and unreadable) 18427 bignum version of BN_from_montgomery() with the working code from 18428 SSLeay 0.9.0 (the word based version is faster anyway), and clean up 18429 the comments. 18430 18431 *Ulf Möller* 18432 18433 * Avoid a race condition in s2_clnt.c (function get_server_hello) that 18434 made it impossible to use the same SSL_SESSION data structure in 18435 SSL2 clients in multiple threads. 18436 18437 *Bodo Moeller* 18438 18439 * The return value of RAND_load_file() no longer counts bytes obtained 18440 by stat(). RAND_load_file(..., -1) is new and uses the complete file 18441 to seed the PRNG (previously an explicit byte count was required). 18442 18443 *Ulf Möller, Bodo Möller* 18444 18445 * Clean up CRYPTO_EX_DATA functions, some of these didn't have prototypes 18446 used `char *` instead of `void *` and had casts all over the place. 18447 18448 *Steve Henson* 18449 18450 * Make BN_generate_prime() return NULL on error if ret!=NULL. 18451 18452 *Ulf Möller* 18453 18454 * Retain source code compatibility for BN_prime_checks macro: 18455 BN_is_prime(..., BN_prime_checks, ...) now uses 18456 BN_prime_checks_for_size to determine the appropriate number of 18457 Rabin-Miller iterations. 18458 18459 *Ulf Möller* 18460 18461 * Diffie-Hellman uses "safe" primes: DH_check() return code renamed to 18462 DH_CHECK_P_NOT_SAFE_PRIME. 18463 (Check if this is true? OpenPGP calls them "strong".) 18464 18465 *Ulf Möller* 18466 18467 * Merge the functionality of "dh" and "gendh" programs into a new program 18468 "dhparam". The old programs are retained for now but will handle DH keys 18469 (instead of parameters) in future. 18470 18471 *Steve Henson* 18472 18473 * Make the ciphers, s_server and s_client programs check the return values 18474 when a new cipher list is set. 18475 18476 *Steve Henson* 18477 18478 * Enhance the SSL/TLS cipher mechanism to correctly handle the TLS 56bit 18479 ciphers. Before when the 56bit ciphers were enabled the sorting was 18480 wrong. 18481 18482 The syntax for the cipher sorting has been extended to support sorting by 18483 cipher-strength (using the strength_bits hard coded in the tables). 18484 The new command is `@STRENGTH` (see also `doc/apps/ciphers.pod`). 18485 18486 Fix a bug in the cipher-command parser: when supplying a cipher command 18487 string with an "undefined" symbol (neither command nor alphanumeric 18488 *A-Za-z0-9*, ssl_set_cipher_list used to hang in an endless loop. Now 18489 an error is flagged. 18490 18491 Due to the strength-sorting extension, the code of the 18492 ssl_create_cipher_list() function was completely rearranged. I hope that 18493 the readability was also increased :-) 18494 18495 *Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>* 18496 18497 * Minor change to 'x509' utility. The -CAcreateserial option now uses 1 18498 for the first serial number and places 2 in the serial number file. This 18499 avoids problems when the root CA is created with serial number zero and 18500 the first user certificate has the same issuer name and serial number 18501 as the root CA. 18502 18503 *Steve Henson* 18504 18505 * Fixes to X509_ATTRIBUTE utilities, change the 'req' program so it uses 18506 the new code. Add documentation for this stuff. 18507 18508 *Steve Henson* 18509 18510 * Changes to X509_ATTRIBUTE utilities. These have been renamed from 18511 `X509_*()` to `X509at_*()` on the grounds that they don't handle X509 18512 structures and behave in an analogous way to the X509v3 functions: 18513 they shouldn't be called directly but wrapper functions should be used 18514 instead. 18515 18516 So we also now have some wrapper functions that call the X509at functions 18517 when passed certificate requests. (TO DO: similar things can be done with 18518 PKCS#7 signed and unsigned attributes, PKCS#12 attributes and a few other 18519 things. Some of these need some d2i or i2d and print functionality 18520 because they handle more complex structures.) 18521 18522 *Steve Henson* 18523 18524 * Add missing #ifndefs that caused missing symbols when building libssl 18525 as a shared library without RSA. Use #ifndef NO_SSL2 instead of 18526 NO_RSA in `ssl/s2*.c`. 18527 18528 *Kris Kennaway <kris@hub.freebsd.org>, modified by Ulf Möller* 18529 18530 * Precautions against using the PRNG uninitialized: RAND_bytes() now 18531 has a return value which indicates the quality of the random data 18532 (1 = ok, 0 = not seeded). Also an error is recorded on the thread's 18533 error queue. New function RAND_pseudo_bytes() generates output that is 18534 guaranteed to be unique but not unpredictable. RAND_add is like 18535 RAND_seed, but takes an extra argument for an entropy estimate 18536 (RAND_seed always assumes full entropy). 18537 18538 *Ulf Möller* 18539 18540 * Do more iterations of Rabin-Miller probable prime test (specifically, 18541 3 for 1024-bit primes, 6 for 512-bit primes, 12 for 256-bit primes 18542 instead of only 2 for all lengths; see BN_prime_checks_for_size definition 18543 in crypto/bn/bn_prime.c for the complete table). This guarantees a 18544 false-positive rate of at most 2^-80 for random input. 18545 18546 *Bodo Moeller* 18547 18548 * Rewrite ssl3_read_n (ssl/s3_pkt.c) avoiding a couple of bugs. 18549 18550 *Bodo Moeller* 18551 18552 * New function X509_CTX_rget_chain() (renamed to X509_CTX_get1_chain 18553 in the 0.9.5 release), this returns the chain 18554 from an X509_CTX structure with a dup of the stack and all 18555 the X509 reference counts upped: so the stack will exist 18556 after X509_CTX_cleanup() has been called. Modify pkcs12.c 18557 to use this. 18558 18559 Also make SSL_SESSION_print() print out the verify return 18560 code. 18561 18562 *Steve Henson* 18563 18564 * Add manpage for the pkcs12 command. Also change the default 18565 behaviour so MAC iteration counts are used unless the new 18566 -nomaciter option is used. This improves file security and 18567 only older versions of MSIE (4.0 for example) need it. 18568 18569 *Steve Henson* 18570 18571 * Honor the no-xxx Configure options when creating .DEF files. 18572 18573 *Ulf Möller* 18574 18575 * Add PKCS#10 attributes to field table: challengePassword, 18576 unstructuredName and unstructuredAddress. These are taken from 18577 draft PKCS#9 v2.0 but are compatible with v1.2 provided no 18578 international characters are used. 18579 18580 More changes to X509_ATTRIBUTE code: allow the setting of types 18581 based on strings. Remove the 'loc' parameter when adding 18582 attributes because these will be a SET OF encoding which is sorted 18583 in ASN1 order. 18584 18585 *Steve Henson* 18586 18587 * Initial changes to the 'req' utility to allow request generation 18588 automation. This will allow an application to just generate a template 18589 file containing all the field values and have req construct the 18590 request. 18591 18592 Initial support for X509_ATTRIBUTE handling. Stacks of these are 18593 used all over the place including certificate requests and PKCS#7 18594 structures. They are currently handled manually where necessary with 18595 some primitive wrappers for PKCS#7. The new functions behave in a 18596 manner analogous to the X509 extension functions: they allow 18597 attributes to be looked up by NID and added. 18598 18599 Later something similar to the X509V3 code would be desirable to 18600 automatically handle the encoding, decoding and printing of the 18601 more complex types. The string types like challengePassword can 18602 be handled by the string table functions. 18603 18604 Also modified the multi byte string table handling. Now there is 18605 a 'global mask' which masks out certain types. The table itself 18606 can use the flag STABLE_NO_MASK to ignore the mask setting: this 18607 is useful when for example there is only one permissible type 18608 (as in countryName) and using the mask might result in no valid 18609 types at all. 18610 18611 *Steve Henson* 18612 18613 * Clean up 'Finished' handling, and add functions SSL_get_finished and 18614 SSL_get_peer_finished to allow applications to obtain the latest 18615 Finished messages sent to the peer or expected from the peer, 18616 respectively. (SSL_get_peer_finished is usually the Finished message 18617 actually received from the peer, otherwise the protocol will be aborted.) 18618 18619 As the Finished message are message digests of the complete handshake 18620 (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can 18621 be used for external authentication procedures when the authentication 18622 provided by SSL/TLS is not desired or is not enough. 18623 18624 *Bodo Moeller* 18625 18626 * Enhanced support for Alpha Linux is added. Now ./config checks if 18627 the host supports BWX extension and if Compaq C is present on the 18628 $PATH. Just exploiting of the BWX extension results in 20-30% 18629 performance kick for some algorithms, e.g. DES and RC4 to mention 18630 a couple. Compaq C in turn generates ~20% faster code for MD5 and 18631 SHA1. 18632 18633 *Andy Polyakov* 18634 18635 * Add support for MS "fast SGC". This is arguably a violation of the 18636 SSL3/TLS protocol. Netscape SGC does two handshakes: the first with 18637 weak crypto and after checking the certificate is SGC a second one 18638 with strong crypto. MS SGC stops the first handshake after receiving 18639 the server certificate message and sends a second client hello. Since 18640 a server will typically do all the time consuming operations before 18641 expecting any further messages from the client (server key exchange 18642 is the most expensive) there is little difference between the two. 18643 18644 To get OpenSSL to support MS SGC we have to permit a second client 18645 hello message after we have sent server done. In addition we have to 18646 reset the MAC if we do get this second client hello. 18647 18648 *Steve Henson* 18649 18650 * Add a function 'd2i_AutoPrivateKey()' this will automatically decide 18651 if a DER encoded private key is RSA or DSA traditional format. Changed 18652 d2i_PrivateKey_bio() to use it. This is only needed for the "traditional" 18653 format DER encoded private key. Newer code should use PKCS#8 format which 18654 has the key type encoded in the ASN1 structure. Added DER private key 18655 support to pkcs8 application. 18656 18657 *Steve Henson* 18658 18659 * SSL 3/TLS 1 servers now don't request certificates when an anonymous 18660 ciphersuites has been selected (as required by the SSL 3/TLS 1 18661 specifications). Exception: When SSL_VERIFY_FAIL_IF_NO_PEER_CERT 18662 is set, we interpret this as a request to violate the specification 18663 (the worst that can happen is a handshake failure, and 'correct' 18664 behaviour would result in a handshake failure anyway). 18665 18666 *Bodo Moeller* 18667 18668 * In SSL_CTX_add_session, take into account that there might be multiple 18669 SSL_SESSION structures with the same session ID (e.g. when two threads 18670 concurrently obtain them from an external cache). 18671 The internal cache can handle only one SSL_SESSION with a given ID, 18672 so if there's a conflict, we now throw out the old one to achieve 18673 consistency. 18674 18675 *Bodo Moeller* 18676 18677 * Add OIDs for idea and blowfish in CBC mode. This will allow both 18678 to be used in PKCS#5 v2.0 and S/MIME. Also add checking to 18679 some routines that use cipher OIDs: some ciphers do not have OIDs 18680 defined and so they cannot be used for S/MIME and PKCS#5 v2.0 for 18681 example. 18682 18683 *Steve Henson* 18684 18685 * Simplify the trust setting structure and code. Now we just have 18686 two sequences of OIDs for trusted and rejected settings. These will 18687 typically have values the same as the extended key usage extension 18688 and any application specific purposes. 18689 18690 The trust checking code now has a default behaviour: it will just 18691 check for an object with the same NID as the passed id. Functions can 18692 be provided to override either the default behaviour or the behaviour 18693 for a given id. SSL client, server and email already have functions 18694 in place for compatibility: they check the NID and also return "trusted" 18695 if the certificate is self signed. 18696 18697 *Steve Henson* 18698 18699 * Add d2i,i2d bio/fp functions for PrivateKey: these convert the 18700 traditional format into an EVP_PKEY structure. 18701 18702 *Steve Henson* 18703 18704 * Add a password callback function PEM_cb() which either prompts for 18705 a password if usr_data is NULL or otherwise assumes it is a null 18706 terminated password. Allow passwords to be passed on command line 18707 environment or config files in a few more utilities. 18708 18709 *Steve Henson* 18710 18711 * Add a bunch of DER and PEM functions to handle PKCS#8 format private 18712 keys. Add some short names for PKCS#8 PBE algorithms and allow them 18713 to be specified on the command line for the pkcs8 and pkcs12 utilities. 18714 Update documentation. 18715 18716 *Steve Henson* 18717 18718 * Support for ASN1 "NULL" type. This could be handled before by using 18719 ASN1_TYPE but there wasn't any function that would try to read a NULL 18720 and produce an error if it couldn't. For compatibility we also have 18721 ASN1_NULL_new() and ASN1_NULL_free() functions but these are faked and 18722 don't allocate anything because they don't need to. 18723 18724 *Steve Henson* 18725 18726 * Initial support for MacOS is now provided. Examine INSTALL.MacOS 18727 for details. 18728 18729 *Andy Polyakov, Roy Woods <roy@centicsystems.ca>* 18730 18731 * Rebuild of the memory allocation routines used by OpenSSL code and 18732 possibly others as well. The purpose is to make an interface that 18733 provide hooks so anyone can build a separate set of allocation and 18734 deallocation routines to be used by OpenSSL, for example memory 18735 pool implementations, or something else, which was previously hard 18736 since Malloc(), Realloc() and Free() were defined as macros having 18737 the values malloc, realloc and free, respectively (except for Win32 18738 compilations). The same is provided for memory debugging code. 18739 OpenSSL already comes with functionality to find memory leaks, but 18740 this gives people a chance to debug other memory problems. 18741 18742 With these changes, a new set of functions and macros have appeared: 18743 18744 CRYPTO_set_mem_debug_functions() [F] 18745 CRYPTO_get_mem_debug_functions() [F] 18746 CRYPTO_dbg_set_options() [F] 18747 CRYPTO_dbg_get_options() [F] 18748 CRYPTO_malloc_debug_init() [M] 18749 18750 The memory debug functions are NULL by default, unless the library 18751 is compiled with CRYPTO_MDEBUG or friends is defined. If someone 18752 wants to debug memory anyway, CRYPTO_malloc_debug_init() (which 18753 gives the standard debugging functions that come with OpenSSL) or 18754 CRYPTO_set_mem_debug_functions() (tells OpenSSL to use functions 18755 provided by the library user) must be used. When the standard 18756 debugging functions are used, CRYPTO_dbg_set_options can be used to 18757 request additional information: 18758 CRYPTO_dbg_set_options(V_CYRPTO_MDEBUG_xxx) corresponds to setting 18759 the CRYPTO_MDEBUG_xxx macro when compiling the library. 18760 18761 Also, things like CRYPTO_set_mem_functions will always give the 18762 expected result (the new set of functions is used for allocation 18763 and deallocation) at all times, regardless of platform and compiler 18764 options. 18765 18766 To finish it up, some functions that were never use in any other 18767 way than through macros have a new API and new semantic: 18768 18769 CRYPTO_dbg_malloc() 18770 CRYPTO_dbg_realloc() 18771 CRYPTO_dbg_free() 18772 18773 All macros of value have retained their old syntax. 18774 18775 *Richard Levitte and Bodo Moeller* 18776 18777 * Some S/MIME fixes. The OID for SMIMECapabilities was wrong, the 18778 ordering of SMIMECapabilities wasn't in "strength order" and there 18779 was a missing NULL in the AlgorithmIdentifier for the SHA1 signature 18780 algorithm. 18781 18782 *Steve Henson* 18783 18784 * Some ASN1 types with illegal zero length encoding (INTEGER, 18785 ENUMERATED and OBJECT IDENTIFIER) choked the ASN1 routines. 18786 18787 *Frans Heymans <fheymans@isaserver.be>, modified by Steve Henson* 18788 18789 * Merge in my S/MIME library for OpenSSL. This provides a simple 18790 S/MIME API on top of the PKCS#7 code, a MIME parser (with enough 18791 functionality to handle multipart/signed properly) and a utility 18792 called 'smime' to call all this stuff. This is based on code I 18793 originally wrote for Celo who have kindly allowed it to be 18794 included in OpenSSL. 18795 18796 *Steve Henson* 18797 18798 * Add variants des_set_key_checked and des_set_key_unchecked of 18799 des_set_key (aka des_key_sched). Global variable des_check_key 18800 decides which of these is called by des_set_key; this way 18801 des_check_key behaves as it always did, but applications and 18802 the library itself, which was buggy for des_check_key == 1, 18803 have a cleaner way to pick the version they need. 18804 18805 *Bodo Moeller* 18806 18807 * New function PKCS12_newpass() which changes the password of a 18808 PKCS12 structure. 18809 18810 *Steve Henson* 18811 18812 * Modify X509_TRUST and X509_PURPOSE so it also uses a static and 18813 dynamic mix. In both cases the ids can be used as an index into the 18814 table. Also modified the X509_TRUST_add() and X509_PURPOSE_add() 18815 functions so they accept a list of the field values and the 18816 application doesn't need to directly manipulate the X509_TRUST 18817 structure. 18818 18819 *Steve Henson* 18820 18821 * Modify the ASN1_STRING_TABLE stuff so it also uses bsearch and doesn't 18822 need initialising. 18823 18824 *Steve Henson* 18825 18826 * Modify the way the V3 extension code looks up extensions. This now 18827 works in a similar way to the object code: we have some "standard" 18828 extensions in a static table which is searched with OBJ_bsearch() 18829 and the application can add dynamic ones if needed. The file 18830 crypto/x509v3/ext_dat.h now has the info: this file needs to be 18831 updated whenever a new extension is added to the core code and kept 18832 in ext_nid order. There is a simple program 'tabtest.c' which checks 18833 this. New extensions are not added too often so this file can readily 18834 be maintained manually. 18835 18836 There are two big advantages in doing things this way. The extensions 18837 can be looked up immediately and no longer need to be "added" using 18838 X509V3_add_standard_extensions(): this function now does nothing. 18839 Side note: I get *lots* of email saying the extension code doesn't 18840 work because people forget to call this function. 18841 Also no dynamic allocation is done unless new extensions are added: 18842 so if we don't add custom extensions there is no need to call 18843 X509V3_EXT_cleanup(). 18844 18845 *Steve Henson* 18846 18847 * Modify enc utility's salting as follows: make salting the default. Add a 18848 magic header, so unsalted files fail gracefully instead of just decrypting 18849 to garbage. This is because not salting is a big security hole, so people 18850 should be discouraged from doing it. 18851 18852 *Ben Laurie* 18853 18854 * Fixes and enhancements to the 'x509' utility. It allowed a message 18855 digest to be passed on the command line but it only used this 18856 parameter when signing a certificate. Modified so all relevant 18857 operations are affected by the digest parameter including the 18858 -fingerprint and -x509toreq options. Also -x509toreq choked if a 18859 DSA key was used because it didn't fix the digest. 18860 18861 *Steve Henson* 18862 18863 * Initial certificate chain verify code. Currently tests the untrusted 18864 certificates for consistency with the verify purpose (which is set 18865 when the X509_STORE_CTX structure is set up) and checks the pathlength. 18866 18867 There is a NO_CHAIN_VERIFY compilation option to keep the old behaviour: 18868 this is because it will reject chains with invalid extensions whereas 18869 every previous version of OpenSSL and SSLeay made no checks at all. 18870 18871 Trust code: checks the root CA for the relevant trust settings. Trust 18872 settings have an initial value consistent with the verify purpose: e.g. 18873 if the verify purpose is for SSL client use it expects the CA to be 18874 trusted for SSL client use. However the default value can be changed to 18875 permit custom trust settings: one example of this would be to only trust 18876 certificates from a specific "secure" set of CAs. 18877 18878 Also added X509_STORE_CTX_new() and X509_STORE_CTX_free() functions 18879 which should be used for version portability: especially since the 18880 verify structure is likely to change more often now. 18881 18882 SSL integration. Add purpose and trust to SSL_CTX and SSL and functions 18883 to set them. If not set then assume SSL clients will verify SSL servers 18884 and vice versa. 18885 18886 Two new options to the verify program: -untrusted allows a set of 18887 untrusted certificates to be passed in and -purpose which sets the 18888 intended purpose of the certificate. If a purpose is set then the 18889 new chain verify code is used to check extension consistency. 18890 18891 *Steve Henson* 18892 18893 * Support for the authority information access extension. 18894 18895 *Steve Henson* 18896 18897 * Modify RSA and DSA PEM read routines to transparently handle 18898 PKCS#8 format private keys. New *_PUBKEY_* functions that handle 18899 public keys in a format compatible with certificate 18900 SubjectPublicKeyInfo structures. Unfortunately there were already 18901 functions called *_PublicKey_* which used various odd formats so 18902 these are retained for compatibility: however the DSA variants were 18903 never in a public release so they have been deleted. Changed dsa/rsa 18904 utilities to handle the new format: note no releases ever handled public 18905 keys so we should be OK. 18906 18907 The primary motivation for this change is to avoid the same fiasco 18908 that dogs private keys: there are several incompatible private key 18909 formats some of which are standard and some OpenSSL specific and 18910 require various evil hacks to allow partial transparent handling and 18911 even then it doesn't work with DER formats. Given the option anything 18912 other than PKCS#8 should be dumped: but the other formats have to 18913 stay in the name of compatibility. 18914 18915 With public keys and the benefit of hindsight one standard format 18916 is used which works with EVP_PKEY, RSA or DSA structures: though 18917 it clearly returns an error if you try to read the wrong kind of key. 18918 18919 Added a -pubkey option to the 'x509' utility to output the public key. 18920 Also rename the `EVP_PKEY_get_*()` to `EVP_PKEY_rget_*()` 18921 (renamed to `EVP_PKEY_get1_*()` in the OpenSSL 0.9.5 release) and add 18922 `EVP_PKEY_rset_*()` functions (renamed to `EVP_PKEY_set1_*()`) 18923 that do the same as the `EVP_PKEY_assign_*()` except they up the 18924 reference count of the added key (they don't "swallow" the 18925 supplied key). 18926 18927 *Steve Henson* 18928 18929 * Fixes to crypto/x509/by_file.c the code to read in certificates and 18930 CRLs would fail if the file contained no certificates or no CRLs: 18931 added a new function to read in both types and return the number 18932 read: this means that if none are read it will be an error. The 18933 DER versions of the certificate and CRL reader would always fail 18934 because it isn't possible to mix certificates and CRLs in DER format 18935 without choking one or the other routine. Changed this to just read 18936 a certificate: this is the best we can do. Also modified the code 18937 in `apps/verify.c` to take notice of return codes: it was previously 18938 attempting to read in certificates from NULL pointers and ignoring 18939 any errors: this is one reason why the cert and CRL reader seemed 18940 to work. It doesn't check return codes from the default certificate 18941 routines: these may well fail if the certificates aren't installed. 18942 18943 *Steve Henson* 18944 18945 * Code to support otherName option in GeneralName. 18946 18947 *Steve Henson* 18948 18949 * First update to verify code. Change the verify utility 18950 so it warns if it is passed a self signed certificate: 18951 for consistency with the normal behaviour. X509_verify 18952 has been modified to it will now verify a self signed 18953 certificate if *exactly* the same certificate appears 18954 in the store: it was previously impossible to trust a 18955 single self signed certificate. This means that: 18956 openssl verify ss.pem 18957 now gives a warning about a self signed certificate but 18958 openssl verify -CAfile ss.pem ss.pem 18959 is OK. 18960 18961 *Steve Henson* 18962 18963 * For servers, store verify_result in SSL_SESSION data structure 18964 (and add it to external session representation). 18965 This is needed when client certificate verifications fails, 18966 but an application-provided verification callback (set by 18967 SSL_CTX_set_cert_verify_callback) allows accepting the session 18968 anyway (i.e. leaves x509_store_ctx->error != X509_V_OK 18969 but returns 1): When the session is reused, we have to set 18970 ssl->verify_result to the appropriate error code to avoid 18971 security holes. 18972 18973 *Bodo Moeller, problem pointed out by Lutz Jaenicke* 18974 18975 * Fix a bug in the new PKCS#7 code: it didn't consider the 18976 case in PKCS7_dataInit() where the signed PKCS7 structure 18977 didn't contain any existing data because it was being created. 18978 18979 *Po-Cheng Chen <pocheng@nst.com.tw>, slightly modified by Steve Henson* 18980 18981 * Add a salt to the key derivation routines in enc.c. This 18982 forms the first 8 bytes of the encrypted file. Also add a 18983 -S option to allow a salt to be input on the command line. 18984 18985 *Steve Henson* 18986 18987 * New function X509_cmp(). Oddly enough there wasn't a function 18988 to compare two certificates. We do this by working out the SHA1 18989 hash and comparing that. X509_cmp() will be needed by the trust 18990 code. 18991 18992 *Steve Henson* 18993 18994 * SSL_get1_session() is like SSL_get_session(), but increments 18995 the reference count in the SSL_SESSION returned. 18996 18997 *Geoff Thorpe <geoff@eu.c2.net>* 18998 18999 * Fix for 'req': it was adding a null to request attributes. 19000 Also change the X509_LOOKUP and X509_INFO code to handle 19001 certificate auxiliary information. 19002 19003 *Steve Henson* 19004 19005 * Add support for 40 and 64 bit RC2 and RC4 algorithms: document 19006 the 'enc' command. 19007 19008 *Steve Henson* 19009 19010 * Add the possibility to add extra information to the memory leak 19011 detecting output, to form tracebacks, showing from where each 19012 allocation was originated: CRYPTO_push_info("constant string") adds 19013 the string plus current file name and line number to a per-thread 19014 stack, CRYPTO_pop_info() does the obvious, CRYPTO_remove_all_info() 19015 is like calling CYRPTO_pop_info() until the stack is empty. 19016 Also updated memory leak detection code to be multi-thread-safe. 19017 19018 *Richard Levitte* 19019 19020 * Add options -text and -noout to pkcs7 utility and delete the 19021 encryption options which never did anything. Update docs. 19022 19023 *Steve Henson* 19024 19025 * Add options to some of the utilities to allow the pass phrase 19026 to be included on either the command line (not recommended on 19027 OSes like Unix) or read from the environment. Update the 19028 manpages and fix a few bugs. 19029 19030 *Steve Henson* 19031 19032 * Add a few manpages for some of the openssl commands. 19033 19034 *Steve Henson* 19035 19036 * Fix the -revoke option in ca. It was freeing up memory twice, 19037 leaking and not finding already revoked certificates. 19038 19039 *Steve Henson* 19040 19041 * Extensive changes to support certificate auxiliary information. 19042 This involves the use of X509_CERT_AUX structure and X509_AUX 19043 functions. An X509_AUX function such as PEM_read_X509_AUX() 19044 can still read in a certificate file in the usual way but it 19045 will also read in any additional "auxiliary information". By 19046 doing things this way a fair degree of compatibility can be 19047 retained: existing certificates can have this information added 19048 using the new 'x509' options. 19049 19050 Current auxiliary information includes an "alias" and some trust 19051 settings. The trust settings will ultimately be used in enhanced 19052 certificate chain verification routines: currently a certificate 19053 can only be trusted if it is self signed and then it is trusted 19054 for all purposes. 19055 19056 *Steve Henson* 19057 19058 * Fix assembler for Alpha (tested only on DEC OSF not Linux or `*BSD`). 19059 The problem was that one of the replacement routines had not been working 19060 since SSLeay releases. For now the offending routine has been replaced 19061 with non-optimised assembler. Even so, this now gives around 95% 19062 performance improvement for 1024 bit RSA signs. 19063 19064 *Mark Cox* 19065 19066 * Hack to fix PKCS#7 decryption when used with some unorthodox RC2 19067 handling. Most clients have the effective key size in bits equal to 19068 the key length in bits: so a 40 bit RC2 key uses a 40 bit (5 byte) key. 19069 A few however don't do this and instead use the size of the decrypted key 19070 to determine the RC2 key length and the AlgorithmIdentifier to determine 19071 the effective key length. In this case the effective key length can still 19072 be 40 bits but the key length can be 168 bits for example. This is fixed 19073 by manually forcing an RC2 key into the EVP_PKEY structure because the 19074 EVP code can't currently handle unusual RC2 key sizes: it always assumes 19075 the key length and effective key length are equal. 19076 19077 *Steve Henson* 19078 19079 * Add a bunch of functions that should simplify the creation of 19080 X509_NAME structures. Now you should be able to do: 19081 X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC, "Steve", -1, -1, 0); 19082 and have it automatically work out the correct field type and fill in 19083 the structures. The more adventurous can try: 19084 X509_NAME_add_entry_by_txt(nm, field, MBSTRING_UTF8, str, -1, -1, 0); 19085 and it will (hopefully) work out the correct multibyte encoding. 19086 19087 *Steve Henson* 19088 19089 * Change the 'req' utility to use the new field handling and multibyte 19090 copy routines. Before the DN field creation was handled in an ad hoc 19091 way in req, ca, and x509 which was rather broken and didn't support 19092 BMPStrings or UTF8Strings. Since some software doesn't implement 19093 BMPStrings or UTF8Strings yet, they can be enabled using the config file 19094 using the dirstring_type option. See the new comment in the default 19095 openssl.cnf for more info. 19096 19097 *Steve Henson* 19098 19099 * Make crypto/rand/md_rand.c more robust: 19100 - Assure unique random numbers after fork(). 19101 - Make sure that concurrent threads access the global counter and 19102 md serializably so that we never lose entropy in them 19103 or use exactly the same state in multiple threads. 19104 Access to the large state is not always serializable because 19105 the additional locking could be a performance killer, and 19106 md should be large enough anyway. 19107 19108 *Bodo Moeller* 19109 19110 * New file `apps/app_rand.c` with commonly needed functionality 19111 for handling the random seed file. 19112 19113 Use the random seed file in some applications that previously did not: 19114 ca, 19115 dsaparam -genkey (which also ignored its '-rand' option), 19116 s_client, 19117 s_server, 19118 x509 (when signing). 19119 Except on systems with /dev/urandom, it is crucial to have a random 19120 seed file at least for key creation, DSA signing, and for DH exchanges; 19121 for RSA signatures we could do without one. 19122 19123 gendh and gendsa (unlike genrsa) used to read only the first byte 19124 of each file listed in the '-rand' option. The function as previously 19125 found in genrsa is now in app_rand.c and is used by all programs 19126 that support '-rand'. 19127 19128 *Bodo Moeller* 19129 19130 * In RAND_write_file, use mode 0600 for creating files; 19131 don't just chmod when it may be too late. 19132 19133 *Bodo Moeller* 19134 19135 * Report an error from X509_STORE_load_locations 19136 when X509_LOOKUP_load_file or X509_LOOKUP_add_dir failed. 19137 19138 *Bill Perry* 19139 19140 * New function ASN1_mbstring_copy() this copies a string in either 19141 ASCII, Unicode, Universal (4 bytes per character) or UTF8 format 19142 into an ASN1_STRING type. A mask of permissible types is passed 19143 and it chooses the "minimal" type to use or an error if not type 19144 is suitable. 19145 19146 *Steve Henson* 19147 19148 * Add function equivalents to the various macros in asn1.h. The old 19149 macros are retained with an `M_` prefix. Code inside the library can 19150 use the `M_` macros. External code (including the openssl utility) 19151 should *NOT* in order to be "shared library friendly". 19152 19153 *Steve Henson* 19154 19155 * Add various functions that can check a certificate's extensions 19156 to see if it usable for various purposes such as SSL client, 19157 server or S/MIME and CAs of these types. This is currently 19158 VERY EXPERIMENTAL but will ultimately be used for certificate chain 19159 verification. Also added a -purpose flag to x509 utility to 19160 print out all the purposes. 19161 19162 *Steve Henson* 19163 19164 * Add a CRYPTO_EX_DATA to X509 certificate structure and associated 19165 functions. 19166 19167 *Steve Henson* 19168 19169 * New `X509V3_{X509,CRL,REVOKED}_get_d2i()` functions. These will search 19170 for, obtain and decode and extension and obtain its critical flag. 19171 This allows all the necessary extension code to be handled in a 19172 single function call. 19173 19174 *Steve Henson* 19175 19176 * RC4 tune-up featuring 30-40% performance improvement on most RISC 19177 platforms. See crypto/rc4/rc4_enc.c for further details. 19178 19179 *Andy Polyakov* 19180 19181 * New -noout option to asn1parse. This causes no output to be produced 19182 its main use is when combined with -strparse and -out to extract data 19183 from a file (which may not be in ASN.1 format). 19184 19185 *Steve Henson* 19186 19187 * Fix for pkcs12 program. It was hashing an invalid certificate pointer 19188 when producing the local key id. 19189 19190 *Richard Levitte <levitte@stacken.kth.se>* 19191 19192 * New option -dhparam in s_server. This allows a DH parameter file to be 19193 stated explicitly. If it is not stated then it tries the first server 19194 certificate file. The previous behaviour hard coded the filename 19195 "server.pem". 19196 19197 *Steve Henson* 19198 19199 * Add -pubin and -pubout options to the rsa and dsa commands. These allow 19200 a public key to be input or output. For example: 19201 openssl rsa -in key.pem -pubout -out pubkey.pem 19202 Also added necessary DSA public key functions to handle this. 19203 19204 *Steve Henson* 19205 19206 * Fix so PKCS7_dataVerify() doesn't crash if no certificates are contained 19207 in the message. This was handled by allowing 19208 X509_find_by_issuer_and_serial() to tolerate a NULL passed to it. 19209 19210 *Steve Henson, reported by Sampo Kellomaki <sampo@mail.neuronio.pt>* 19211 19212 * Fix for bug in d2i_ASN1_bytes(): other ASN1 functions add an extra null 19213 to the end of the strings whereas this didn't. This would cause problems 19214 if strings read with d2i_ASN1_bytes() were later modified. 19215 19216 *Steve Henson, reported by Arne Ansper <arne@ats.cyber.ee>* 19217 19218 * Fix for base64 decode bug. When a base64 bio reads only one line of 19219 data and it contains EOF it will end up returning an error. This is 19220 caused by input 46 bytes long. The cause is due to the way base64 19221 BIOs find the start of base64 encoded data. They do this by trying a 19222 trial decode on each line until they find one that works. When they 19223 do a flag is set and it starts again knowing it can pass all the 19224 data directly through the decoder. Unfortunately it doesn't reset 19225 the context it uses. This means that if EOF is reached an attempt 19226 is made to pass two EOFs through the context and this causes the 19227 resulting error. This can also cause other problems as well. As is 19228 usual with these problems it takes *ages* to find and the fix is 19229 trivial: move one line. 19230 19231 *Steve Henson, reported by ian@uns.ns.ac.yu (Ivan Nejgebauer)* 19232 19233 * Ugly workaround to get s_client and s_server working under Windows. The 19234 old code wouldn't work because it needed to select() on sockets and the 19235 tty (for keypresses and to see if data could be written). Win32 only 19236 supports select() on sockets so we select() with a 1s timeout on the 19237 sockets and then see if any characters are waiting to be read, if none 19238 are present then we retry, we also assume we can always write data to 19239 the tty. This isn't nice because the code then blocks until we've 19240 received a complete line of data and it is effectively polling the 19241 keyboard at 1s intervals: however it's quite a bit better than not 19242 working at all :-) A dedicated Windows application might handle this 19243 with an event loop for example. 19244 19245 *Steve Henson* 19246 19247 * Enhance RSA_METHOD structure. Now there are two extra methods, rsa_sign 19248 and rsa_verify. When the RSA_FLAGS_SIGN_VER option is set these functions 19249 will be called when RSA_sign() and RSA_verify() are used. This is useful 19250 if rsa_pub_dec() and rsa_priv_enc() equivalents are not available. 19251 For this to work properly RSA_public_decrypt() and RSA_private_encrypt() 19252 should *not* be used: RSA_sign() and RSA_verify() must be used instead. 19253 This necessitated the support of an extra signature type NID_md5_sha1 19254 for SSL signatures and modifications to the SSL library to use it instead 19255 of calling RSA_public_decrypt() and RSA_private_encrypt(). 19256 19257 *Steve Henson* 19258 19259 * Add new -verify -CAfile and -CApath options to the crl program, these 19260 will lookup a CRL issuers certificate and verify the signature in a 19261 similar way to the verify program. Tidy up the crl program so it 19262 no longer accesses structures directly. Make the ASN1 CRL parsing a bit 19263 less strict. It will now permit CRL extensions even if it is not 19264 a V2 CRL: this will allow it to tolerate some broken CRLs. 19265 19266 *Steve Henson* 19267 19268 * Initialize all non-automatic variables each time one of the openssl 19269 sub-programs is started (this is necessary as they may be started 19270 multiple times from the "OpenSSL>" prompt). 19271 19272 *Lennart Bang, Bodo Moeller* 19273 19274 * Preliminary compilation option RSA_NULL which disables RSA crypto without 19275 removing all other RSA functionality (this is what NO_RSA does). This 19276 is so (for example) those in the US can disable those operations covered 19277 by the RSA patent while allowing storage and parsing of RSA keys and RSA 19278 key generation. 19279 19280 *Steve Henson* 19281 19282 * Non-copying interface to BIO pairs. 19283 (still largely untested) 19284 19285 *Bodo Moeller* 19286 19287 * New function ASN1_tag2str() to convert an ASN1 tag to a descriptive 19288 ASCII string. This was handled independently in various places before. 19289 19290 *Steve Henson* 19291 19292 * New functions UTF8_getc() and UTF8_putc() that parse and generate 19293 UTF8 strings a character at a time. 19294 19295 *Steve Henson* 19296 19297 * Use client_version from client hello to select the protocol 19298 (s23_srvr.c) and for RSA client key exchange verification 19299 (s3_srvr.c), as required by the SSL 3.0/TLS 1.0 specifications. 19300 19301 *Bodo Moeller* 19302 19303 * Add various utility functions to handle SPKACs, these were previously 19304 handled by poking round in the structure internals. Added new function 19305 NETSCAPE_SPKI_print() to print out SPKAC and a new utility 'spkac' to 19306 print, verify and generate SPKACs. Based on an original idea from 19307 Massimiliano Pala <madwolf@comune.modena.it> but extensively modified. 19308 19309 *Steve Henson* 19310 19311 * RIPEMD160 is operational on all platforms and is back in 'make test'. 19312 19313 *Andy Polyakov* 19314 19315 * Allow the config file extension section to be overwritten on the 19316 command line. Based on an original idea from Massimiliano Pala 19317 <madwolf@comune.modena.it>. The new option is called -extensions 19318 and can be applied to ca, req and x509. Also -reqexts to override 19319 the request extensions in req and -crlexts to override the crl extensions 19320 in ca. 19321 19322 *Steve Henson* 19323 19324 * Add new feature to the SPKAC handling in ca. Now you can include 19325 the same field multiple times by preceding it by "XXXX." for example: 19326 1.OU="Unit name 1" 19327 2.OU="Unit name 2" 19328 this is the same syntax as used in the req config file. 19329 19330 *Steve Henson* 19331 19332 * Allow certificate extensions to be added to certificate requests. These 19333 are specified in a 'req_extensions' option of the req section of the 19334 config file. They can be printed out with the -text option to req but 19335 are otherwise ignored at present. 19336 19337 *Steve Henson* 19338 19339 * Fix a horrible bug in enc_read() in crypto/evp/bio_enc.c: if the first 19340 data read consists of only the final block it would not decrypted because 19341 EVP_CipherUpdate() would correctly report zero bytes had been decrypted. 19342 A misplaced 'break' also meant the decrypted final block might not be 19343 copied until the next read. 19344 19345 *Steve Henson* 19346 19347 * Initial support for DH_METHOD. Again based on RSA_METHOD. Also added 19348 a few extra parameters to the DH structure: these will be useful if 19349 for example we want the value of 'q' or implement X9.42 DH. 19350 19351 *Steve Henson* 19352 19353 * Initial support for DSA_METHOD. This is based on the RSA_METHOD and 19354 provides hooks that allow the default DSA functions or functions on a 19355 "per key" basis to be replaced. This allows hardware acceleration and 19356 hardware key storage to be handled without major modification to the 19357 library. Also added low-level modexp hooks and CRYPTO_EX structure and 19358 associated functions. 19359 19360 *Steve Henson* 19361 19362 * Add a new flag to memory BIOs, BIO_FLAG_MEM_RDONLY. This marks the BIO 19363 as "read only": it can't be written to and the buffer it points to will 19364 not be freed. Reading from a read only BIO is much more efficient than 19365 a normal memory BIO. This was added because there are several times when 19366 an area of memory needs to be read from a BIO. The previous method was 19367 to create a memory BIO and write the data to it, this results in two 19368 copies of the data and an O(n^2) reading algorithm. There is a new 19369 function BIO_new_mem_buf() which creates a read only memory BIO from 19370 an area of memory. Also modified the PKCS#7 routines to use read only 19371 memory BIOs. 19372 19373 *Steve Henson* 19374 19375 * Bugfix: ssl23_get_client_hello did not work properly when called in 19376 state SSL23_ST_SR_CLNT_HELLO_B, i.e. when the first 7 bytes of 19377 an SSLv2-compatible client hello for SSLv3 or TLSv1 could be read, 19378 but a retry condition occurred while trying to read the rest. 19379 19380 *Bodo Moeller* 19381 19382 * The PKCS7_ENC_CONTENT_new() function was setting the content type as 19383 NID_pkcs7_encrypted by default: this was wrong since this should almost 19384 always be NID_pkcs7_data. Also modified the PKCS7_set_type() to handle 19385 the encrypted data type: this is a more sensible place to put it and it 19386 allows the PKCS#12 code to be tidied up that duplicated this 19387 functionality. 19388 19389 *Steve Henson* 19390 19391 * Changed obj_dat.pl script so it takes its input and output files on 19392 the command line. This should avoid shell escape redirection problems 19393 under Win32. 19394 19395 *Steve Henson* 19396 19397 * Initial support for certificate extension requests, these are included 19398 in things like Xenroll certificate requests. Included functions to allow 19399 extensions to be obtained and added. 19400 19401 *Steve Henson* 19402 19403 * -crlf option to s_client and s_server for sending newlines as 19404 CRLF (as required by many protocols). 19405 19406 *Bodo Moeller* 19407 19408### Changes between 0.9.3a and 0.9.4 [09 Aug 1999] 19409 19410 * Install libRSAglue.a when OpenSSL is built with RSAref. 19411 19412 *Ralf S. Engelschall* 19413 19414 * A few more `#ifndef NO_FP_API / #endif` pairs for consistency. 19415 19416 *Andrija Antonijevic <TheAntony2@bigfoot.com>* 19417 19418 * Fix -startdate and -enddate (which was missing) arguments to 'ca' 19419 program. 19420 19421 *Steve Henson* 19422 19423 * New function DSA_dup_DH, which duplicates DSA parameters/keys as 19424 DH parameters/keys (q is lost during that conversion, but the resulting 19425 DH parameters contain its length). 19426 19427 For 1024-bit p, DSA_generate_parameters followed by DSA_dup_DH is 19428 much faster than DH_generate_parameters (which creates parameters 19429 where `p = 2*q + 1`), and also the smaller q makes DH computations 19430 much more efficient (160-bit exponentiation instead of 1024-bit 19431 exponentiation); so this provides a convenient way to support DHE 19432 ciphersuites in SSL/TLS servers (see ssl/ssltest.c). It is of 19433 utter importance to use 19434 SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_DH_USE); 19435 or 19436 SSL_set_options(s_ctx, SSL_OP_SINGLE_DH_USE); 19437 when such DH parameters are used, because otherwise small subgroup 19438 attacks may become possible! 19439 19440 *Bodo Moeller* 19441 19442 * Avoid memory leak in i2d_DHparams. 19443 19444 *Bodo Moeller* 19445 19446 * Allow the -k option to be used more than once in the enc program: 19447 this allows the same encrypted message to be read by multiple recipients. 19448 19449 *Steve Henson* 19450 19451 * New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts 19452 an ASN1_OBJECT to a text string. If the "no_name" parameter is set then 19453 it will always use the numerical form of the OID, even if it has a short 19454 or long name. 19455 19456 *Steve Henson* 19457 19458 * Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp 19459 method only got called if p,q,dmp1,dmq1,iqmp components were present, 19460 otherwise bn_mod_exp was called. In the case of hardware keys for example 19461 no private key components need be present and it might store extra data 19462 in the RSA structure, which cannot be accessed from bn_mod_exp. 19463 By setting RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for 19464 private key operations. 19465 19466 *Steve Henson* 19467 19468 * Added support for SPARC Linux. 19469 19470 *Andy Polyakov* 19471 19472 * pem_password_cb function type incompatibly changed from 19473 typedef int pem_password_cb(char *buf, int size, int rwflag); 19474 to 19475 ....(char *buf, int size, int rwflag, void *userdata); 19476 so that applications can pass data to their callbacks: 19477 The `PEM[_ASN1]_{read,write}...` functions and macros now take an 19478 additional void * argument, which is just handed through whenever 19479 the password callback is called. 19480 19481 *Damien Miller <dmiller@ilogic.com.au>; tiny changes by Bodo Moeller* 19482 19483 New function SSL_CTX_set_default_passwd_cb_userdata. 19484 19485 Compatibility note: As many C implementations push function arguments 19486 onto the stack in reverse order, the new library version is likely to 19487 interoperate with programs that have been compiled with the old 19488 pem_password_cb definition (PEM_whatever takes some data that 19489 happens to be on the stack as its last argument, and the callback 19490 just ignores this garbage); but there is no guarantee whatsoever that 19491 this will work. 19492 19493 * The -DPLATFORM="\"$(PLATFORM)\"" definition and the similar -DCFLAGS=... 19494 (both in crypto/Makefile.ssl for use by crypto/cversion.c) caused 19495 problems not only on Windows, but also on some Unix platforms. 19496 To avoid problematic command lines, these definitions are now in an 19497 auto-generated file crypto/buildinf.h (created by crypto/Makefile.ssl 19498 for standard "make" builds, by util/mk1mf.pl for "mk1mf" builds). 19499 19500 *Bodo Moeller* 19501 19502 * MIPS III/IV assembler module is reimplemented. 19503 19504 *Andy Polyakov* 19505 19506 * More DES library cleanups: remove references to srand/rand and 19507 delete an unused file. 19508 19509 *Ulf Möller* 19510 19511 * Add support for the free Netwide assembler (NASM) under Win32, 19512 since not many people have MASM (ml) and it can be hard to obtain. 19513 This is currently experimental but it seems to work OK and pass all 19514 the tests. Check out INSTALL.W32 for info. 19515 19516 *Steve Henson* 19517 19518 * Fix memory leaks in s3_clnt.c: All non-anonymous SSL3/TLS1 connections 19519 without temporary keys kept an extra copy of the server key, 19520 and connections with temporary keys did not free everything in case 19521 of an error. 19522 19523 *Bodo Moeller* 19524 19525 * New function RSA_check_key and new openssl rsa option -check 19526 for verifying the consistency of RSA keys. 19527 19528 *Ulf Moeller, Bodo Moeller* 19529 19530 * Various changes to make Win32 compile work: 19531 1. Casts to avoid "loss of data" warnings in p5_crpt2.c 19532 2. Change unsigned int to int in b_dump.c to avoid "signed/unsigned 19533 comparison" warnings. 19534 3. Add `sk_<TYPE>_sort` to DEF file generator and do make update. 19535 19536 *Steve Henson* 19537 19538 * Add a debugging option to PKCS#5 v2 key generation function: when 19539 you #define DEBUG_PKCS5V2 passwords, salts, iteration counts and 19540 derived keys are printed to stderr. 19541 19542 *Steve Henson* 19543 19544 * Copy the flags in ASN1_STRING_dup(). 19545 19546 *Roman E. Pavlov <pre@mo.msk.ru>* 19547 19548 * The x509 application mishandled signing requests containing DSA 19549 keys when the signing key was also DSA and the parameters didn't match. 19550 19551 It was supposed to omit the parameters when they matched the signing key: 19552 the verifying software was then supposed to automatically use the CA's 19553 parameters if they were absent from the end user certificate. 19554 19555 Omitting parameters is no longer recommended. The test was also 19556 the wrong way round! This was probably due to unusual behaviour in 19557 EVP_cmp_parameters() which returns 1 if the parameters match. 19558 This meant that parameters were omitted when they *didn't* match and 19559 the certificate was useless. Certificates signed with 'ca' didn't have 19560 this bug. 19561 19562 *Steve Henson, reported by Doug Erickson <Doug.Erickson@Part.NET>* 19563 19564 * Memory leak checking (-DCRYPTO_MDEBUG) had some problems. 19565 The interface is as follows: 19566 Applications can use 19567 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) aka MemCheck_start(), 19568 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF) aka MemCheck_stop(); 19569 "off" is now the default. 19570 The library internally uses 19571 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE) aka MemCheck_off(), 19572 CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE) aka MemCheck_on() 19573 to disable memory-checking temporarily. 19574 19575 Some inconsistent states that previously were possible (and were 19576 even the default) are now avoided. 19577 19578 -DCRYPTO_MDEBUG_TIME is new and additionally stores the current time 19579 with each memory chunk allocated; this is occasionally more helpful 19580 than just having a counter. 19581 19582 -DCRYPTO_MDEBUG_THREAD is also new and adds the thread ID. 19583 19584 -DCRYPTO_MDEBUG_ALL enables all of the above, plus any future 19585 extensions. 19586 19587 *Bodo Moeller* 19588 19589 * Introduce "mode" for SSL structures (with defaults in SSL_CTX), 19590 which largely parallels "options", but is for changing API behaviour, 19591 whereas "options" are about protocol behaviour. 19592 Initial "mode" flags are: 19593 19594 SSL_MODE_ENABLE_PARTIAL_WRITE Allow SSL_write to report success when 19595 a single record has been written. 19596 SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER Don't insist that SSL_write 19597 retries use the same buffer location. 19598 (But all of the contents must be 19599 copied!) 19600 19601 *Bodo Moeller* 19602 19603 * Bugfix: SSL_set_options ignored its parameter, only SSL_CTX_set_options 19604 worked. 19605 19606 * Fix problems with no-hmac etc. 19607 19608 *Ulf Möller, pointed out by Brian Wellington <bwelling@tislabs.com>* 19609 19610 * New functions RSA_get_default_method(), RSA_set_method() and 19611 RSA_get_method(). These allows replacement of RSA_METHODs without having 19612 to mess around with the internals of an RSA structure. 19613 19614 *Steve Henson* 19615 19616 * Fix memory leaks in DSA_do_sign and DSA_is_prime. 19617 Also really enable memory leak checks in openssl.c and in some 19618 test programs. 19619 19620 *Chad C. Mulligan, Bodo Moeller* 19621 19622 * Fix a bug in d2i_ASN1_INTEGER() and i2d_ASN1_INTEGER() which can mess 19623 up the length of negative integers. This has now been simplified to just 19624 store the length when it is first determined and use it later, rather 19625 than trying to keep track of where data is copied and updating it to 19626 point to the end. 19627 *Steve Henson, reported by Brien Wheeler <bwheeler@authentica-security.com>* 19628 19629 * Add a new function PKCS7_signatureVerify. This allows the verification 19630 of a PKCS#7 signature but with the signing certificate passed to the 19631 function itself. This contrasts with PKCS7_dataVerify which assumes the 19632 certificate is present in the PKCS#7 structure. This isn't always the 19633 case: certificates can be omitted from a PKCS#7 structure and be 19634 distributed by "out of band" means (such as a certificate database). 19635 19636 *Steve Henson* 19637 19638 * Complete the `PEM_*` macros with DECLARE_PEM versions to replace the 19639 function prototypes in pem.h, also change util/mkdef.pl to add the 19640 necessary function names. 19641 19642 *Steve Henson* 19643 19644 * mk1mf.pl (used by Windows builds) did not properly read the 19645 options set by Configure in the top level Makefile, and Configure 19646 was not even able to write more than one option correctly. 19647 Fixed, now "no-idea no-rc5 -DCRYPTO_MDEBUG" etc. works as intended. 19648 19649 *Bodo Moeller* 19650 19651 * New functions CONF_load_bio() and CONF_load_fp() to allow a config 19652 file to be loaded from a BIO or FILE pointer. The BIO version will 19653 for example allow memory BIOs to contain config info. 19654 19655 *Steve Henson* 19656 19657 * New function "CRYPTO_num_locks" that returns CRYPTO_NUM_LOCKS. 19658 Whoever hopes to achieve shared-library compatibility across versions 19659 must use this, not the compile-time macro. 19660 (Exercise 0.9.4: Which is the minimum library version required by 19661 such programs?) 19662 Note: All this applies only to multi-threaded programs, others don't 19663 need locks. 19664 19665 *Bodo Moeller* 19666 19667 * Add missing case to s3_clnt.c state machine -- one of the new SSL tests 19668 through a BIO pair triggered the default case, i.e. 19669 SSLerr(...,SSL_R_UNKNOWN_STATE). 19670 19671 *Bodo Moeller* 19672 19673 * New "BIO pair" concept (crypto/bio/bss_bio.c) so that applications 19674 can use the SSL library even if none of the specific BIOs is 19675 appropriate. 19676 19677 *Bodo Moeller* 19678 19679 * Fix a bug in i2d_DSAPublicKey() which meant it returned the wrong value 19680 for the encoded length. 19681 19682 *Jeon KyoungHo <khjeon@sds.samsung.co.kr>* 19683 19684 * Add initial documentation of the X509V3 functions. 19685 19686 *Steve Henson* 19687 19688 * Add a new pair of functions PEM_write_PKCS8PrivateKey() and 19689 PEM_write_bio_PKCS8PrivateKey() that are equivalent to 19690 PEM_write_PrivateKey() and PEM_write_bio_PrivateKey() but use the more 19691 secure PKCS#8 private key format with a high iteration count. 19692 19693 *Steve Henson* 19694 19695 * Fix determination of Perl interpreter: A perl or perl5 19696 *directory* in $PATH was also accepted as the interpreter. 19697 19698 *Ralf S. Engelschall* 19699 19700 * Fix demos/sign/sign.c: well there wasn't anything strictly speaking 19701 wrong with it but it was very old and did things like calling 19702 PEM_ASN1_read() directly and used MD5 for the hash not to mention some 19703 unusual formatting. 19704 19705 *Steve Henson* 19706 19707 * Fix demos/selfsign.c: it used obsolete and deleted functions, changed 19708 to use the new extension code. 19709 19710 *Steve Henson* 19711 19712 * Implement the PEM_read/PEM_write functions in crypto/pem/pem_all.c 19713 with macros. This should make it easier to change their form, add extra 19714 arguments etc. Fix a few PEM prototypes which didn't have cipher as a 19715 constant. 19716 19717 *Steve Henson* 19718 19719 * Add to configuration table a new entry that can specify an alternative 19720 name for unistd.h (for pre-POSIX systems); we need this for NeXTstep, 19721 according to Mark Crispin <MRC@Panda.COM>. 19722 19723 *Bodo Moeller* 19724 19725 * DES CBC did not update the IV. Weird. 19726 19727 *Ben Laurie* 19728lse 19729 des_cbc_encrypt does not update the IV, but des_ncbc_encrypt does. 19730 Changing the behaviour of the former might break existing programs -- 19731 where IV updating is needed, des_ncbc_encrypt can be used. 19732ndif 19733 19734 * When bntest is run from "make test" it drives bc to check its 19735 calculations, as well as internally checking them. If an internal check 19736 fails, it needs to cause bc to give a non-zero result or make test carries 19737 on without noticing the failure. Fixed. 19738 19739 *Ben Laurie* 19740 19741 * DES library cleanups. 19742 19743 *Ulf Möller* 19744 19745 * Add support for PKCS#5 v2.0 PBE algorithms. This will permit PKCS#8 to be 19746 used with any cipher unlike PKCS#5 v1.5 which can at most handle 64 bit 19747 ciphers. NOTE: although the key derivation function has been verified 19748 against some published test vectors it has not been extensively tested 19749 yet. Added a -v2 "cipher" option to pkcs8 application to allow the use 19750 of v2.0. 19751 19752 *Steve Henson* 19753 19754 * Instead of "mkdir -p", which is not fully portable, use new 19755 Perl script "util/mkdir-p.pl". 19756 19757 *Bodo Moeller* 19758 19759 * Rewrite the way password based encryption (PBE) is handled. It used to 19760 assume that the ASN1 AlgorithmIdentifier parameter was a PBEParameter 19761 structure. This was true for the PKCS#5 v1.5 and PKCS#12 PBE algorithms 19762 but doesn't apply to PKCS#5 v2.0 where it can be something else. Now 19763 the 'parameter' field of the AlgorithmIdentifier is passed to the 19764 underlying key generation function so it must do its own ASN1 parsing. 19765 This has also changed the EVP_PBE_CipherInit() function which now has a 19766 'parameter' argument instead of literal salt and iteration count values 19767 and the function EVP_PBE_ALGOR_CipherInit() has been deleted. 19768 19769 *Steve Henson* 19770 19771 * Support for PKCS#5 v1.5 compatible password based encryption algorithms 19772 and PKCS#8 functionality. New 'pkcs8' application linked to openssl. 19773 Needed to change the PEM_STRING_EVP_PKEY value which was just "PRIVATE 19774 KEY" because this clashed with PKCS#8 unencrypted string. Since this 19775 value was just used as a "magic string" and not used directly its 19776 value doesn't matter. 19777 19778 *Steve Henson* 19779 19780 * Introduce some semblance of const correctness to BN. Shame C doesn't 19781 support mutable. 19782 19783 *Ben Laurie* 19784 19785 * "linux-sparc64" configuration (ultrapenguin). 19786 19787 *Ray Miller <ray.miller@oucs.ox.ac.uk>* 19788 "linux-sparc" configuration. 19789 19790 *Christian Forster <fo@hawo.stw.uni-erlangen.de>* 19791 19792 * config now generates no-xxx options for missing ciphers. 19793 19794 *Ulf Möller* 19795 19796 * Support the EBCDIC character set (work in progress). 19797 File ebcdic.c not yet included because it has a different license. 19798 19799 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>* 19800 19801 * Support BS2000/OSD-POSIX. 19802 19803 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>* 19804 19805 * Make callbacks for key generation use `void *` instead of `char *`. 19806 19807 *Ben Laurie* 19808 19809 * Make S/MIME samples compile (not yet tested). 19810 19811 *Ben Laurie* 19812 19813 * Additional typesafe stacks. 19814 19815 *Ben Laurie* 19816 19817 * New configuration variants "bsdi-elf-gcc" (BSD/OS 4.x). 19818 19819 *Bodo Moeller* 19820 19821### Changes between 0.9.3 and 0.9.3a [29 May 1999] 19822 19823 * New configuration variant "sco5-gcc". 19824 19825 * Updated some demos. 19826 19827 *Sean O Riordain, Wade Scholine* 19828 19829 * Add missing BIO_free at exit of pkcs12 application. 19830 19831 *Wu Zhigang* 19832 19833 * Fix memory leak in conf.c. 19834 19835 *Steve Henson* 19836 19837 * Updates for Win32 to assembler version of MD5. 19838 19839 *Steve Henson* 19840 19841 * Set #! path to perl in `apps/der_chop` to where we found it 19842 instead of using a fixed path. 19843 19844 *Bodo Moeller* 19845 19846 * SHA library changes for irix64-mips4-cc. 19847 19848 *Andy Polyakov* 19849 19850 * Improvements for VMS support. 19851 19852 *Richard Levitte* 19853 19854### Changes between 0.9.2b and 0.9.3 [24 May 1999] 19855 19856 * Bignum library bug fix. IRIX 6 passes "make test" now! 19857 This also avoids the problems with SC4.2 and unpatched SC5. 19858 19859 *Andy Polyakov <appro@fy.chalmers.se>* 19860 19861 * New functions sk_num, sk_value and sk_set to replace the previous macros. 19862 These are required because of the typesafe stack would otherwise break 19863 existing code. If old code used a structure member which used to be STACK 19864 and is now STACK_OF (for example cert in a PKCS7_SIGNED structure) with 19865 sk_num or sk_value it would produce an error because the num, data members 19866 are not present in STACK_OF. Now it just produces a warning. sk_set 19867 replaces the old method of assigning a value to sk_value 19868 (e.g. sk_value(x, i) = y) which the library used in a few cases. Any code 19869 that does this will no longer work (and should use sk_set instead) but 19870 this could be regarded as a "questionable" behaviour anyway. 19871 19872 *Steve Henson* 19873 19874 * Fix most of the other PKCS#7 bugs. The "experimental" code can now 19875 correctly handle encrypted S/MIME data. 19876 19877 *Steve Henson* 19878 19879 * Change type of various DES function arguments from des_cblock 19880 (which means, in function argument declarations, pointer to char) 19881 to des_cblock * (meaning pointer to array with 8 char elements), 19882 which allows the compiler to do more typechecking; it was like 19883 that back in SSLeay, but with lots of ugly casts. 19884 19885 Introduce new type const_des_cblock. 19886 19887 *Bodo Moeller* 19888 19889 * Reorganise the PKCS#7 library and get rid of some of the more obvious 19890 problems: find RecipientInfo structure that matches recipient certificate 19891 and initialise the ASN1 structures properly based on passed cipher. 19892 19893 *Steve Henson* 19894 19895 * Belatedly make the BN tests actually check the results. 19896 19897 *Ben Laurie* 19898 19899 * Fix the encoding and decoding of negative ASN1 INTEGERS and conversion 19900 to and from BNs: it was completely broken. New compilation option 19901 NEG_PUBKEY_BUG to allow for some broken certificates that encode public 19902 key elements as negative integers. 19903 19904 *Steve Henson* 19905 19906 * Reorganize and speed up MD5. 19907 19908 *Andy Polyakov <appro@fy.chalmers.se>* 19909 19910 * VMS support. 19911 19912 *Richard Levitte <richard@levitte.org>* 19913 19914 * New option -out to asn1parse to allow the parsed structure to be 19915 output to a file. This is most useful when combined with the -strparse 19916 option to examine the output of things like OCTET STRINGS. 19917 19918 *Steve Henson* 19919 19920 * Make SSL library a little more fool-proof by not requiring any longer 19921 that `SSL_set_{accept,connect}_state` be called before 19922 `SSL_{accept,connect}` may be used (`SSL_set_..._state` is omitted 19923 in many applications because usually everything *appeared* to work as 19924 intended anyway -- now it really works as intended). 19925 19926 *Bodo Moeller* 19927 19928 * Move openssl.cnf out of lib/. 19929 19930 *Ulf Möller* 19931 19932 * Fix various things to let OpenSSL even pass "egcc -pipe -O2 -Wall 19933 -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes 19934 -Wmissing-declarations -Wnested-externs -Winline" with EGCS 1.1.2+ 19935 19936 *Ralf S. Engelschall* 19937 19938 * Various fixes to the EVP and PKCS#7 code. It may now be able to 19939 handle PKCS#7 enveloped data properly. 19940 19941 *Sebastian Akerman <sak@parallelconsulting.com>, modified by Steve* 19942 19943 * Create a duplicate of the SSL_CTX's CERT in SSL_new instead of 19944 copying pointers. The cert_st handling is changed by this in 19945 various ways (and thus what used to be known as ctx->default_cert 19946 is now called ctx->cert, since we don't resort to `s->ctx->[default_]cert` 19947 any longer when s->cert does not give us what we need). 19948 ssl_cert_instantiate becomes obsolete by this change. 19949 As soon as we've got the new code right (possibly it already is?), 19950 we have solved a couple of bugs of the earlier code where s->cert 19951 was used as if it could not have been shared with other SSL structures. 19952 19953 Note that using the SSL API in certain dirty ways now will result 19954 in different behaviour than observed with earlier library versions: 19955 Changing settings for an `SSL_CTX *ctx` after having done s = SSL_new(ctx) 19956 does not influence s as it used to. 19957 19958 In order to clean up things more thoroughly, inside SSL_SESSION 19959 we don't use CERT any longer, but a new structure SESS_CERT 19960 that holds per-session data (if available); currently, this is 19961 the peer's certificate chain and, for clients, the server's certificate 19962 and temporary key. CERT holds only those values that can have 19963 meaningful defaults in an SSL_CTX. 19964 19965 *Bodo Moeller* 19966 19967 * New function X509V3_EXT_i2d() to create an X509_EXTENSION structure 19968 from the internal representation. Various PKCS#7 fixes: remove some 19969 evil casts and set the enc_dig_alg field properly based on the signing 19970 key type. 19971 19972 *Steve Henson* 19973 19974 * Allow PKCS#12 password to be set from the command line or the 19975 environment. Let 'ca' get its config file name from the environment 19976 variables "OPENSSL_CONF" or "SSLEAY_CONF" (for consistency with 'req' 19977 and 'x509'). 19978 19979 *Steve Henson* 19980 19981 * Allow certificate policies extension to use an IA5STRING for the 19982 organization field. This is contrary to the PKIX definition but 19983 VeriSign uses it and IE5 only recognises this form. Document 'x509' 19984 extension option. 19985 19986 *Steve Henson* 19987 19988 * Add PEDANTIC compiler flag to allow compilation with gcc -pedantic, 19989 without disallowing inline assembler and the like for non-pedantic builds. 19990 19991 *Ben Laurie* 19992 19993 * Support Borland C++ builder. 19994 19995 *Janez Jere <jj@void.si>, modified by Ulf Möller* 19996 19997 * Support Mingw32. 19998 19999 *Ulf Möller* 20000 20001 * SHA-1 cleanups and performance enhancements. 20002 20003 *Andy Polyakov <appro@fy.chalmers.se>* 20004 20005 * Sparc v8plus assembler for the bignum library. 20006 20007 *Andy Polyakov <appro@fy.chalmers.se>* 20008 20009 * Accept any -xxx and +xxx compiler options in Configure. 20010 20011 *Ulf Möller* 20012 20013 * Update HPUX configuration. 20014 20015 *Anonymous* 20016 20017 * Add missing `sk_<type>_unshift()` function to safestack.h 20018 20019 *Ralf S. Engelschall* 20020 20021 * New function SSL_CTX_use_certificate_chain_file that sets the 20022 "extra_cert"s in addition to the certificate. (This makes sense 20023 only for "PEM" format files, as chains as a whole are not 20024 DER-encoded.) 20025 20026 *Bodo Moeller* 20027 20028 * Support verify_depth from the SSL API. 20029 x509_vfy.c had what can be considered an off-by-one-error: 20030 Its depth (which was not part of the external interface) 20031 was actually counting the number of certificates in a chain; 20032 now it really counts the depth. 20033 20034 *Bodo Moeller* 20035 20036 * Bugfix in crypto/x509/x509_cmp.c: The SSLerr macro was used 20037 instead of X509err, which often resulted in confusing error 20038 messages since the error codes are not globally unique 20039 (e.g. an alleged error in ssl3_accept when a certificate 20040 didn't match the private key). 20041 20042 * New function SSL_CTX_set_session_id_context that allows to set a default 20043 value (so that you don't need SSL_set_session_id_context for each 20044 connection using the SSL_CTX). 20045 20046 *Bodo Moeller* 20047 20048 * OAEP decoding bug fix. 20049 20050 *Ulf Möller* 20051 20052 * Support INSTALL_PREFIX for package builders, as proposed by 20053 David Harris. 20054 20055 *Bodo Moeller* 20056 20057 * New Configure options "threads" and "no-threads". For systems 20058 where the proper compiler options are known (currently Solaris 20059 and Linux), "threads" is the default. 20060 20061 *Bodo Moeller* 20062 20063 * New script util/mklink.pl as a faster substitute for util/mklink.sh. 20064 20065 *Bodo Moeller* 20066 20067 * Install various scripts to $(OPENSSLDIR)/misc, not to 20068 $(INSTALLTOP)/bin -- they shouldn't clutter directories 20069 such as /usr/local/bin. 20070 20071 *Bodo Moeller* 20072 20073 * "make linux-shared" to build shared libraries. 20074 20075 *Niels Poppe <niels@netbox.org>* 20076 20077 * New Configure option `no-<cipher>` (rsa, idea, rc5, ...). 20078 20079 *Ulf Möller* 20080 20081 * Add the PKCS#12 API documentation to openssl.txt. Preliminary support for 20082 extension adding in x509 utility. 20083 20084 *Steve Henson* 20085 20086 * Remove NOPROTO sections and error code comments. 20087 20088 *Ulf Möller* 20089 20090 * Partial rewrite of the DEF file generator to now parse the ANSI 20091 prototypes. 20092 20093 *Steve Henson* 20094 20095 * New Configure options --prefix=DIR and --openssldir=DIR. 20096 20097 *Ulf Möller* 20098 20099 * Complete rewrite of the error code script(s). It is all now handled 20100 by one script at the top level which handles error code gathering, 20101 header rewriting and C source file generation. It should be much better 20102 than the old method: it now uses a modified version of Ulf's parser to 20103 read the ANSI prototypes in all header files (thus the old K&R definitions 20104 aren't needed for error creation any more) and do a better job of 20105 translating function codes into names. The old 'ASN1 error code embedded 20106 in a comment' is no longer necessary and it doesn't use .err files which 20107 have now been deleted. Also the error code call doesn't have to appear all 20108 on one line (which resulted in some large lines...). 20109 20110 *Steve Henson* 20111 20112 * Change #include filenames from `<foo.h>` to `<openssl/foo.h>`. 20113 20114 *Bodo Moeller* 20115 20116 * Change behaviour of ssl2_read when facing length-0 packets: Don't return 20117 0 (which usually indicates a closed connection), but continue reading. 20118 20119 *Bodo Moeller* 20120 20121 * Fix some race conditions. 20122 20123 *Bodo Moeller* 20124 20125 * Add support for CRL distribution points extension. Add Certificate 20126 Policies and CRL distribution points documentation. 20127 20128 *Steve Henson* 20129 20130 * Move the autogenerated header file parts to crypto/opensslconf.h. 20131 20132 *Ulf Möller* 20133 20134 * Fix new 56-bit DES export ciphersuites: they were using 7 bytes instead of 20135 8 of keying material. Merlin has also confirmed interop with this fix 20136 between OpenSSL and Baltimore C/SSL 2.0 and J/SSL 2.0. 20137 20138 *Merlin Hughes <merlin@baltimore.ie>* 20139 20140 * Fix lots of warnings. 20141 20142 *Richard Levitte <levitte@stacken.kth.se>* 20143 20144 * In add_cert_dir() in crypto/x509/by_dir.c, break out of the loop if 20145 the directory spec didn't end with a LIST_SEPARATOR_CHAR. 20146 20147 *Richard Levitte <levitte@stacken.kth.se>* 20148 20149 * Fix problems with sizeof(long) == 8. 20150 20151 *Andy Polyakov <appro@fy.chalmers.se>* 20152 20153 * Change functions to ANSI C. 20154 20155 *Ulf Möller* 20156 20157 * Fix typos in error codes. 20158 20159 *Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>, Ulf Möller* 20160 20161 * Remove defunct assembler files from Configure. 20162 20163 *Ulf Möller* 20164 20165 * SPARC v8 assembler BIGNUM implementation. 20166 20167 *Andy Polyakov <appro@fy.chalmers.se>* 20168 20169 * Support for Certificate Policies extension: both print and set. 20170 Various additions to support the r2i method this uses. 20171 20172 *Steve Henson* 20173 20174 * A lot of constification, and fix a bug in X509_NAME_oneline() that could 20175 return a const string when you are expecting an allocated buffer. 20176 20177 *Ben Laurie* 20178 20179 * Add support for ASN1 types UTF8String and VISIBLESTRING, also the CHOICE 20180 types DirectoryString and DisplayText. 20181 20182 *Steve Henson* 20183 20184 * Add code to allow r2i extensions to access the configuration database, 20185 add an LHASH database driver and add several ctx helper functions. 20186 20187 *Steve Henson* 20188 20189 * Fix an evil bug in bn_expand2() which caused various BN functions to 20190 fail when they extended the size of a BIGNUM. 20191 20192 *Steve Henson* 20193 20194 * Various utility functions to handle SXNet extension. Modify mkdef.pl to 20195 support typesafe stack. 20196 20197 *Steve Henson* 20198 20199 * Fix typo in SSL_[gs]et_options(). 20200 20201 *Nils Frostberg <nils@medcom.se>* 20202 20203 * Delete various functions and files that belonged to the (now obsolete) 20204 old X509V3 handling code. 20205 20206 *Steve Henson* 20207 20208 * New Configure option "rsaref". 20209 20210 *Ulf Möller* 20211 20212 * Don't auto-generate pem.h. 20213 20214 *Bodo Moeller* 20215 20216 * Introduce type-safe ASN.1 SETs. 20217 20218 *Ben Laurie* 20219 20220 * Convert various additional casted stacks to type-safe STACK_OF() variants. 20221 20222 *Ben Laurie, Ralf S. Engelschall, Steve Henson* 20223 20224 * Introduce type-safe STACKs. This will almost certainly break lots of code 20225 that links with OpenSSL (well at least cause lots of warnings), but fear 20226 not: the conversion is trivial, and it eliminates loads of evil casts. A 20227 few STACKed things have been converted already. Feel free to convert more. 20228 In the fullness of time, I'll do away with the STACK type altogether. 20229 20230 *Ben Laurie* 20231 20232 * Add `openssl ca -revoke <certfile>` facility which revokes a certificate 20233 specified in `<certfile>` by updating the entry in the index.txt file. 20234 This way one no longer has to edit the index.txt file manually for 20235 revoking a certificate. The -revoke option does the gory details now. 20236 20237 *Massimiliano Pala <madwolf@openca.org>, Ralf S. Engelschall* 20238 20239 * Fix `openssl crl -noout -text` combination where `-noout` killed the 20240 `-text` option at all and this way the `-noout -text` combination was 20241 inconsistent in `openssl crl` with the friends in `openssl x509|rsa|dsa`. 20242 20243 *Ralf S. Engelschall* 20244 20245 * Make sure a corresponding plain text error message exists for the 20246 X509_V_ERR_CERT_REVOKED/23 error number which can occur when a 20247 verify callback function determined that a certificate was revoked. 20248 20249 *Ralf S. Engelschall* 20250 20251 * Bugfix: In test/testenc, don't test `openssl <cipher>` for 20252 ciphers that were excluded, e.g. by -DNO_IDEA. Also, test 20253 all available ciphers including rc5, which was forgotten until now. 20254 In order to let the testing shell script know which algorithms 20255 are available, a new (up to now undocumented) command 20256 `openssl list-cipher-commands` is used. 20257 20258 *Bodo Moeller* 20259 20260 * Bugfix: s_client occasionally would sleep in select() when 20261 it should have checked SSL_pending() first. 20262 20263 *Bodo Moeller* 20264 20265 * New functions DSA_do_sign and DSA_do_verify to provide access to 20266 the raw DSA values prior to ASN.1 encoding. 20267 20268 *Ulf Möller* 20269 20270 * Tweaks to Configure 20271 20272 *Niels Poppe <niels@netbox.org>* 20273 20274 * Add support for PKCS#5 v2.0 ASN1 PBES2 structures. No other support, 20275 yet... 20276 20277 *Steve Henson* 20278 20279 * New variables $(RANLIB) and $(PERL) in the Makefiles. 20280 20281 *Ulf Möller* 20282 20283 * New config option to avoid instructions that are illegal on the 80386. 20284 The default code is faster, but requires at least a 486. 20285 20286 *Ulf Möller* 20287 20288 * Got rid of old SSL2_CLIENT_VERSION (inconsistently used) and 20289 SSL2_SERVER_VERSION (not used at all) macros, which are now the 20290 same as SSL2_VERSION anyway. 20291 20292 *Bodo Moeller* 20293 20294 * New "-showcerts" option for s_client. 20295 20296 *Bodo Moeller* 20297 20298 * Still more PKCS#12 integration. Add pkcs12 application to openssl 20299 application. Various cleanups and fixes. 20300 20301 *Steve Henson* 20302 20303 * More PKCS#12 integration. Add new pkcs12 directory with Makefile.ssl and 20304 modify error routines to work internally. Add error codes and PBE init 20305 to library startup routines. 20306 20307 *Steve Henson* 20308 20309 * Further PKCS#12 integration. Added password based encryption, PKCS#8 and 20310 packing functions to asn1 and evp. Changed function names and error 20311 codes along the way. 20312 20313 *Steve Henson* 20314 20315 * PKCS12 integration: and so it begins... First of several patches to 20316 slowly integrate PKCS#12 functionality into OpenSSL. Add PKCS#12 20317 objects to objects.h 20318 20319 *Steve Henson* 20320 20321 * Add a new 'indent' option to some X509V3 extension code. Initial ASN1 20322 and display support for Thawte strong extranet extension. 20323 20324 *Steve Henson* 20325 20326 * Add LinuxPPC support. 20327 20328 *Jeff Dubrule <igor@pobox.org>* 20329 20330 * Get rid of redundant BN file bn_mulw.c, and rename bn_div64 to 20331 bn_div_words in alpha.s. 20332 20333 *Hannes Reinecke <H.Reinecke@hw.ac.uk> and Ben Laurie* 20334 20335 * Make sure the RSA OAEP test is skipped under -DRSAref because 20336 OAEP isn't supported when OpenSSL is built with RSAref. 20337 20338 *Ulf Moeller <ulf@fitug.de>* 20339 20340 * Move definitions of IS_SET/IS_SEQUENCE inside crypto/asn1/asn1.h 20341 so they no longer are missing under -DNOPROTO. 20342 20343 *Soren S. Jorvang <soren@t.dk>* 20344 20345### Changes between 0.9.1c and 0.9.2b [22 Mar 1999] 20346 20347 * Make SSL_get_peer_cert_chain() work in servers. Unfortunately, it still 20348 doesn't work when the session is reused. Coming soon! 20349 20350 *Ben Laurie* 20351 20352 * Fix a security hole, that allows sessions to be reused in the wrong 20353 context thus bypassing client cert protection! All software that uses 20354 client certs and session caches in multiple contexts NEEDS PATCHING to 20355 allow session reuse! A fuller solution is in the works. 20356 20357 *Ben Laurie, problem pointed out by Holger Reif, Bodo Moeller (and ???)* 20358 20359 * Some more source tree cleanups (removed obsolete files 20360 crypto/bf/asm/bf586.pl, test/test.txt and crypto/sha/asm/f.s; changed 20361 permission on "config" script to be executable) and a fix for the INSTALL 20362 document. 20363 20364 *Ulf Moeller <ulf@fitug.de>* 20365 20366 * Remove some legacy and erroneous uses of malloc, free instead of 20367 Malloc, Free. 20368 20369 *Lennart Bang <lob@netstream.se>, with minor changes by Steve* 20370 20371 * Make rsa_oaep_test return non-zero on error. 20372 20373 *Ulf Moeller <ulf@fitug.de>* 20374 20375 * Add support for native Solaris shared libraries. Configure 20376 solaris-sparc-sc4-pic, make, then run shlib/solaris-sc4.sh. It'd be nice 20377 if someone would make that last step automatic. 20378 20379 *Matthias Loepfe <Matthias.Loepfe@AdNovum.CH>* 20380 20381 * ctx_size was not built with the right compiler during "make links". Fixed. 20382 20383 *Ben Laurie* 20384 20385 * Change the meaning of 'ALL' in the cipher list. It now means "everything 20386 except NULL ciphers". This means the default cipher list will no longer 20387 enable NULL ciphers. They need to be specifically enabled e.g. with 20388 the string "DEFAULT:eNULL". 20389 20390 *Steve Henson* 20391 20392 * Fix to RSA private encryption routines: if p < q then it would 20393 occasionally produce an invalid result. This will only happen with 20394 externally generated keys because OpenSSL (and SSLeay) ensure p > q. 20395 20396 *Steve Henson* 20397 20398 * Be less restrictive and allow also `perl util/perlpath.pl 20399 /path/to/bin/perl` in addition to `perl util/perlpath.pl /path/to/bin`, 20400 because this way one can also use an interpreter named `perl5` (which is 20401 usually the name of Perl 5.xxx on platforms where an Perl 4.x is still 20402 installed as `perl`). 20403 20404 *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>* 20405 20406 * Let util/clean-depend.pl work also with older Perl 5.00x versions. 20407 20408 *Matthias Loepfe <Matthias.Loepfe@adnovum.ch>* 20409 20410 * Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add 20411 advapi32.lib to Win32 build and change the pem test comparison 20412 to fc.exe (thanks to Ulrich Kroener <kroneru@yahoo.com> for the 20413 suggestion). Fix misplaced ASNI prototypes and declarations in evp.h 20414 and crypto/des/ede_cbcm_enc.c. 20415 20416 *Steve Henson* 20417 20418 * DES quad checksum was broken on big-endian architectures. Fixed. 20419 20420 *Ben Laurie* 20421 20422 * Comment out two functions in bio.h that aren't implemented. Fix up the 20423 Win32 test batch file so it (might) work again. The Win32 test batch file 20424 is horrible: I feel ill.... 20425 20426 *Steve Henson* 20427 20428 * Move various #ifdefs around so NO_SYSLOG, NO_DIRENT etc are now selected 20429 in e_os.h. Audit of header files to check ANSI and non ANSI 20430 sections: 10 functions were absent from non ANSI section and not exported 20431 from Windows DLLs. Fixed up libeay.num for new functions. 20432 20433 *Steve Henson* 20434 20435 * Make `openssl version` output lines consistent. 20436 20437 *Ralf S. Engelschall* 20438 20439 * Fix Win32 symbol export lists for BIO functions: Added 20440 BIO_get_ex_new_index, BIO_get_ex_num, BIO_get_ex_data and BIO_set_ex_data 20441 to ms/libeay{16,32}.def. 20442 20443 *Ralf S. Engelschall* 20444 20445 * Second round of fixing the OpenSSL perl/ stuff. It now at least compiled 20446 fine under Unix and passes some trivial tests I've now added. But the 20447 whole stuff is horribly incomplete, so a README.1ST with a disclaimer was 20448 added to make sure no one expects that this stuff really works in the 20449 OpenSSL 0.9.2 release. Additionally I've started to clean the XS sources 20450 up and fixed a few little bugs and inconsistencies in OpenSSL.{pm,xs} and 20451 openssl_bio.xs. 20452 20453 *Ralf S. Engelschall* 20454 20455 * Fix the generation of two part addresses in perl. 20456 20457 *Kenji Miyake <kenji@miyake.org>, integrated by Ben Laurie* 20458 20459 * Add config entry for Linux on MIPS. 20460 20461 *John Tobey <jtobey@channel1.com>* 20462 20463 * Make links whenever Configure is run, unless we are on Windoze. 20464 20465 *Ben Laurie* 20466 20467 * Permit extensions to be added to CRLs using crl_section in openssl.cnf. 20468 Currently only issuerAltName and AuthorityKeyIdentifier make any sense 20469 in CRLs. 20470 20471 *Steve Henson* 20472 20473 * Add a useful kludge to allow package maintainers to specify compiler and 20474 other platforms details on the command line without having to patch the 20475 Configure script every time: One now can use 20476 `perl Configure <id>:<details>`, 20477 i.e. platform ids are allowed to have details appended 20478 to them (separated by colons). This is treated as there would be a static 20479 pre-configured entry in Configure's %table under key `<id>` with value 20480 `<details>` and `perl Configure <id>` is called. So, when you want to 20481 perform a quick test-compile under FreeBSD 3.1 with pgcc and without 20482 assembler stuff you can use `perl Configure "FreeBSD-elf:pgcc:-O6:::"` 20483 now, which overrides the FreeBSD-elf entry on-the-fly. 20484 20485 *Ralf S. Engelschall* 20486 20487 * Disable new TLS1 ciphersuites by default: they aren't official yet. 20488 20489 *Ben Laurie* 20490 20491 * Allow DSO flags like -fpic, -fPIC, -KPIC etc. to be specified 20492 on the `perl Configure ...` command line. This way one can compile 20493 OpenSSL libraries with Position Independent Code (PIC) which is needed 20494 for linking it into DSOs. 20495 20496 *Ralf S. Engelschall* 20497 20498 * Remarkably, export ciphers were totally broken and no-one had noticed! 20499 Fixed. 20500 20501 *Ben Laurie* 20502 20503 * Cleaned up the LICENSE document: The official contact for any license 20504 questions now is the OpenSSL core team under openssl-core@openssl.org. 20505 And add a paragraph about the dual-license situation to make sure people 20506 recognize that _BOTH_ the OpenSSL license _AND_ the SSLeay license apply 20507 to the OpenSSL toolkit. 20508 20509 *Ralf S. Engelschall* 20510 20511 * General source tree makefile cleanups: Made `making xxx in yyy...` 20512 display consistent in the source tree and replaced `/bin/rm` by `rm`. 20513 Additionally cleaned up the `make links` target: Remove unnecessary 20514 semicolons, subsequent redundant removes, inline point.sh into mklink.sh 20515 to speed processing and no longer clutter the display with confusing 20516 stuff. Instead only the actually done links are displayed. 20517 20518 *Ralf S. Engelschall* 20519 20520 * Permit null encryption ciphersuites, used for authentication only. It used 20521 to be necessary to set the preprocessor define SSL_ALLOW_ENULL to do this. 20522 It is now necessary to set SSL_FORBID_ENULL to prevent the use of null 20523 encryption. 20524 20525 *Ben Laurie* 20526 20527 * Add a bunch of fixes to the PKCS#7 stuff. It used to sometimes reorder 20528 signed attributes when verifying signatures (this would break them), 20529 the detached data encoding was wrong and public keys obtained using 20530 X509_get_pubkey() weren't freed. 20531 20532 *Steve Henson* 20533 20534 * Add text documentation for the BUFFER functions. Also added a work around 20535 to a Win95 console bug. This was triggered by the password read stuff: the 20536 last character typed gets carried over to the next fread(). If you were 20537 generating a new cert request using 'req' for example then the last 20538 character of the passphrase would be CR which would then enter the first 20539 field as blank. 20540 20541 *Steve Henson* 20542 20543 * Added the new 'Includes OpenSSL Cryptography Software' button as 20544 doc/openssl_button.{gif,html} which is similar in style to the old SSLeay 20545 button and can be used by applications based on OpenSSL to show the 20546 relationship to the OpenSSL project. 20547 20548 *Ralf S. Engelschall* 20549 20550 * Remove confusing variables in function signatures in files 20551 ssl/ssl_lib.c and ssl/ssl.h. 20552 20553 *Lennart Bong <lob@kulthea.stacken.kth.se>* 20554 20555 * Don't install bss_file.c under PREFIX/include/ 20556 20557 *Lennart Bong <lob@kulthea.stacken.kth.se>* 20558 20559 * Get the Win32 compile working again. Modify mkdef.pl so it can handle 20560 functions that return function pointers and has support for NT specific 20561 stuff. Fix mk1mf.pl and VC-32.pl to support NT differences also. Various 20562 #ifdef WIN32 and WINNTs sprinkled about the place and some changes from 20563 unsigned to signed types: this was killing the Win32 compile. 20564 20565 *Steve Henson* 20566 20567 * Add new certificate file to stack functions, 20568 SSL_add_dir_cert_subjects_to_stack() and 20569 SSL_add_file_cert_subjects_to_stack(). These largely supplant 20570 SSL_load_client_CA_file(), and can be used to add multiple certs easily 20571 to a stack (usually this is then handed to SSL_CTX_set_client_CA_list()). 20572 This means that Apache-SSL and similar packages don't have to mess around 20573 to add as many CAs as they want to the preferred list. 20574 20575 *Ben Laurie* 20576 20577 * Experiment with doxygen documentation. Currently only partially applied to 20578 ssl/ssl_lib.c. 20579 See <http://www.stack.nl/~dimitri/doxygen/index.html>, and run doxygen with 20580 openssl.doxy as the configuration file. 20581 20582 *Ben Laurie* 20583 20584 * Get rid of remaining C++-style comments which strict C compilers hate. 20585 20586 *Ralf S. Engelschall, pointed out by Carlos Amengual* 20587 20588 * Changed BN_RECURSION in bn_mont.c to BN_RECURSION_MONT so it is not 20589 compiled in by default: it has problems with large keys. 20590 20591 *Steve Henson* 20592 20593 * Add a bunch of SSL_xxx() functions for configuring the temporary RSA and 20594 DH private keys and/or callback functions which directly correspond to 20595 their SSL_CTX_xxx() counterparts but work on a per-connection basis. This 20596 is needed for applications which have to configure certificates on a 20597 per-connection basis (e.g. Apache+mod_ssl) instead of a per-context basis 20598 (e.g. s_server). 20599 For the RSA certificate situation is makes no difference, but 20600 for the DSA certificate situation this fixes the "no shared cipher" 20601 problem where the OpenSSL cipher selection procedure failed because the 20602 temporary keys were not overtaken from the context and the API provided 20603 no way to reconfigure them. 20604 The new functions now let applications reconfigure the stuff and they 20605 are in detail: SSL_need_tmp_RSA, SSL_set_tmp_rsa, SSL_set_tmp_dh, 20606 SSL_set_tmp_rsa_callback and SSL_set_tmp_dh_callback. Additionally a new 20607 non-public-API function ssl_cert_instantiate() is used as a helper 20608 function and also to reduce code redundancy inside ssl_rsa.c. 20609 20610 *Ralf S. Engelschall* 20611 20612 * Move s_server -dcert and -dkey options out of the undocumented feature 20613 area because they are useful for the DSA situation and should be 20614 recognized by the users. 20615 20616 *Ralf S. Engelschall* 20617 20618 * Fix the cipher decision scheme for export ciphers: the export bits are 20619 *not* within SSL_MKEY_MASK or SSL_AUTH_MASK, they are within 20620 SSL_EXP_MASK. So, the original variable has to be used instead of the 20621 already masked variable. 20622 20623 *Richard Levitte <levitte@stacken.kth.se>* 20624 20625 * Fix `port` variable from `int` to `unsigned int` in crypto/bio/b_sock.c 20626 20627 *Richard Levitte <levitte@stacken.kth.se>* 20628 20629 * Change type of another md_len variable in pk7_doit.c:PKCS7_dataFinal() 20630 from `int` to `unsigned int` because it is a length and initialized by 20631 EVP_DigestFinal() which expects an `unsigned int *`. 20632 20633 *Richard Levitte <levitte@stacken.kth.se>* 20634 20635 * Don't hard-code path to Perl interpreter on shebang line of Configure 20636 script. Instead use the usual Shell->Perl transition trick. 20637 20638 *Ralf S. Engelschall* 20639 20640 * Make `openssl x509 -noout -modulus`' functional also for DSA certificates 20641 (in addition to RSA certificates) to match the behaviour of `openssl dsa 20642 -noout -modulus` as it's already the case for `openssl rsa -noout 20643 -modulus`. For RSA the -modulus is the real "modulus" while for DSA 20644 currently the public key is printed (a decision which was already done by 20645 `openssl dsa -modulus` in the past) which serves a similar purpose. 20646 Additionally the NO_RSA no longer completely removes the whole -modulus 20647 option; it now only avoids using the RSA stuff. Same applies to NO_DSA 20648 now, too. 20649 20650 *Ralf S. Engelschall* 20651 20652 * Add Arne Ansper's reliable BIO - this is an encrypted, block-digested 20653 BIO. See the source (crypto/evp/bio_ok.c) for more info. 20654 20655 *Arne Ansper <arne@ats.cyber.ee>* 20656 20657 * Dump the old yucky req code that tried (and failed) to allow raw OIDs 20658 to be added. Now both 'req' and 'ca' can use new objects defined in the 20659 config file. 20660 20661 *Steve Henson* 20662 20663 * Add cool BIO that does syslog (or event log on NT). 20664 20665 *Arne Ansper <arne@ats.cyber.ee>, integrated by Ben Laurie* 20666 20667 * Add support for new TLS ciphersuites, TLS_RSA_EXPORT56_WITH_RC4_56_MD5, 20668 TLS_RSA_EXPORT56_WITH_RC2_CBC_56_MD5 and 20669 TLS_RSA_EXPORT56_WITH_DES_CBC_SHA, as specified in "56-bit Export Cipher 20670 Suites For TLS", draft-ietf-tls-56-bit-ciphersuites-00.txt. 20671 20672 *Ben Laurie* 20673 20674 * Add preliminary config info for new extension code. 20675 20676 *Steve Henson* 20677 20678 * Make RSA_NO_PADDING really use no padding. 20679 20680 *Ulf Moeller <ulf@fitug.de>* 20681 20682 * Generate errors when private/public key check is done. 20683 20684 *Ben Laurie* 20685 20686 * Overhaul for 'crl' utility. New function X509_CRL_print. Partial support 20687 for some CRL extensions and new objects added. 20688 20689 *Steve Henson* 20690 20691 * Really fix the ASN1 IMPLICIT bug this time... Partial support for private 20692 key usage extension and fuller support for authority key id. 20693 20694 *Steve Henson* 20695 20696 * Add OAEP encryption for the OpenSSL crypto library. OAEP is the improved 20697 padding method for RSA, which is recommended for new applications in PKCS 20698 #1 v2.0 (RFC 2437, October 1998). 20699 OAEP (Optimal Asymmetric Encryption Padding) has better theoretical 20700 foundations than the ad-hoc padding used in PKCS #1 v1.5. It is secure 20701 against Bleichbacher's attack on RSA. 20702 *Ulf Moeller <ulf@fitug.de>, reformatted, corrected and integrated by 20703 Ben Laurie* 20704 20705 * Updates to the new SSL compression code 20706 20707 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)* 20708 20709 * Fix so that the version number in the master secret, when passed 20710 via RSA, checks that if TLS was proposed, but we roll back to SSLv3 20711 (because the server will not accept higher), that the version number 20712 is 0x03,0x01, not 0x03,0x00 20713 20714 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)* 20715 20716 * Run extensive memory leak checks on SSL commands. Fixed *lots* of memory 20717 leaks in `ssl/` relating to new `X509_get_pubkey()` behaviour. Also fixes 20718 in `apps/` and an unrelated leak in `crypto/dsa/dsa_vrf.c`. 20719 20720 *Steve Henson* 20721 20722 * Support for RAW extensions where an arbitrary extension can be 20723 created by including its DER encoding. See `apps/openssl.cnf` for 20724 an example. 20725 20726 *Steve Henson* 20727 20728 * Make sure latest Perl versions don't interpret some generated C array 20729 code as Perl array code in the crypto/err/err_genc.pl script. 20730 20731 *Lars Weber <3weber@informatik.uni-hamburg.de>* 20732 20733 * Modify ms/do_ms.bat to not generate assembly language makefiles since 20734 not many people have the assembler. Various Win32 compilation fixes and 20735 update to the INSTALL.W32 file with (hopefully) more accurate Win32 20736 build instructions. 20737 20738 *Steve Henson* 20739 20740 * Modify configure script 'Configure' to automatically create crypto/date.h 20741 file under Win32 and also build pem.h from pem.org. New script 20742 util/mkfiles.pl to create the MINFO file on environments that can't do a 20743 'make files': perl util/mkfiles.pl >MINFO should work. 20744 20745 *Steve Henson* 20746 20747 * Major rework of DES function declarations, in the pursuit of correctness 20748 and purity. As a result, many evil casts evaporated, and some weirdness, 20749 too. You may find this causes warnings in your code. Zapping your evil 20750 casts will probably fix them. Mostly. 20751 20752 *Ben Laurie* 20753 20754 * Fix for a typo in asn1.h. Bug fix to object creation script 20755 obj_dat.pl. It considered a zero in an object definition to mean 20756 "end of object": none of the objects in objects.h have any zeros 20757 so it wasn't spotted. 20758 20759 *Steve Henson, reported by Erwann ABALEA <eabalea@certplus.com>* 20760 20761 * Add support for Triple DES Cipher Block Chaining with Output Feedback 20762 Masking (CBCM). In the absence of test vectors, the best I have been able 20763 to do is check that the decrypt undoes the encrypt, so far. Send me test 20764 vectors if you have them. 20765 20766 *Ben Laurie* 20767 20768 * Correct calculation of key length for export ciphers (too much space was 20769 allocated for null ciphers). This has not been tested! 20770 20771 *Ben Laurie* 20772 20773 * Modifications to the mkdef.pl for Win32 DEF file creation. The usage 20774 message is now correct (it understands "crypto" and "ssl" on its 20775 command line). There is also now an "update" option. This will update 20776 the util/ssleay.num and util/libeay.num files with any new functions. 20777 If you do a: 20778 perl util/mkdef.pl crypto ssl update 20779 it will update them. 20780 20781 *Steve Henson* 20782 20783 * Overhauled the Perl interface: 20784 - ported BN stuff to OpenSSL's different BN library 20785 - made the perl/ source tree CVS-aware 20786 - renamed the package from SSLeay to OpenSSL (the files still contain 20787 their history because I've copied them in the repository) 20788 - removed obsolete files (the test scripts will be replaced 20789 by better Test::Harness variants in the future) 20790 20791 *Ralf S. Engelschall* 20792 20793 * First cut for a very conservative source tree cleanup: 20794 1. merge various obsolete readme texts into doc/ssleay.txt 20795 where we collect the old documents and readme texts. 20796 2. remove the first part of files where I'm already sure that we no 20797 longer need them because of three reasons: either they are just temporary 20798 files which were left by Eric or they are preserved original files where 20799 I've verified that the diff is also available in the CVS via "cvs diff 20800 -rSSLeay_0_8_1b" or they were renamed (as it was definitely the case for 20801 the crypto/md/ stuff). 20802 20803 *Ralf S. Engelschall* 20804 20805 * More extension code. Incomplete support for subject and issuer alt 20806 name, issuer and authority key id. Change the i2v function parameters 20807 and add an extra 'crl' parameter in the X509V3_CTX structure: guess 20808 what that's for :-) Fix to ASN1 macro which messed up 20809 IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED. 20810 20811 *Steve Henson* 20812 20813 * Preliminary support for ENUMERATED type. This is largely copied from the 20814 INTEGER code. 20815 20816 *Steve Henson* 20817 20818 * Add new function, EVP_MD_CTX_copy() to replace frequent use of memcpy. 20819 20820 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)* 20821 20822 * Make sure `make rehash` target really finds the `openssl` program. 20823 20824 *Ralf S. Engelschall, Matthias Loepfe <Matthias.Loepfe@adnovum.ch>* 20825 20826 * Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd 20827 like to hear about it if this slows down other processors. 20828 20829 *Ben Laurie* 20830 20831 * Add CygWin32 platform information to Configure script. 20832 20833 *Alan Batie <batie@aahz.jf.intel.com>* 20834 20835 * Fixed ms/32all.bat script: `no_asm` -> `no-asm` 20836 20837 *Rainer W. Gerling <gerling@mpg-gv.mpg.de>* 20838 20839 * New program nseq to manipulate netscape certificate sequences 20840 20841 *Steve Henson* 20842 20843 * Modify crl2pkcs7 so it supports multiple -certfile arguments. Fix a 20844 few typos. 20845 20846 *Steve Henson* 20847 20848 * Fixes to BN code. Previously the default was to define BN_RECURSION 20849 but the BN code had some problems that would cause failures when 20850 doing certificate verification and some other functions. 20851 20852 *Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)* 20853 20854 * Add ASN1 and PEM code to support netscape certificate sequences. 20855 20856 *Steve Henson* 20857 20858 * Add ASN1 and PEM code to support netscape certificate sequences. 20859 20860 *Steve Henson* 20861 20862 * Add several PKIX and private extended key usage OIDs. 20863 20864 *Steve Henson* 20865 20866 * Modify the 'ca' program to handle the new extension code. Modify 20867 openssl.cnf for new extension format, add comments. 20868 20869 *Steve Henson* 20870 20871 * More X509 V3 changes. Fix typo in v3_bitstr.c. Add support to 'req' 20872 and add a sample to openssl.cnf so req -x509 now adds appropriate 20873 CA extensions. 20874 20875 *Steve Henson* 20876 20877 * Continued X509 V3 changes. Add to other makefiles, integrate with the 20878 error code, add initial support to X509_print() and x509 application. 20879 20880 *Steve Henson* 20881 20882 * Takes a deep breath and start adding X509 V3 extension support code. Add 20883 files in crypto/x509v3. Move original stuff to crypto/x509v3/old. All this 20884 stuff is currently isolated and isn't even compiled yet. 20885 20886 *Steve Henson* 20887 20888 * Continuing patches for GeneralizedTime. Fix up certificate and CRL 20889 ASN1 to use ASN1_TIME and modify print routines to use ASN1_TIME_print. 20890 Removed the versions check from X509 routines when loading extensions: 20891 this allows certain broken certificates that don't set the version 20892 properly to be processed. 20893 20894 *Steve Henson* 20895 20896 * Deal with irritating shit to do with dependencies, in YAAHW (Yet Another 20897 Ad Hoc Way) - Makefile.ssls now all contain local dependencies, which 20898 can still be regenerated with "make depend". 20899 20900 *Ben Laurie* 20901 20902 * Spelling mistake in C version of CAST-128. 20903 20904 *Ben Laurie, reported by Jeremy Hylton <jeremy@cnri.reston.va.us>* 20905 20906 * Changes to the error generation code. The perl script err-code.pl 20907 now reads in the old error codes and retains the old numbers, only 20908 adding new ones if necessary. It also only changes the .err files if new 20909 codes are added. The makefiles have been modified to only insert errors 20910 when needed (to avoid needlessly modifying header files). This is done 20911 by only inserting errors if the .err file is newer than the auto generated 20912 C file. To rebuild all the error codes from scratch (the old behaviour) 20913 either modify crypto/Makefile.ssl to pass the -regen flag to err_code.pl 20914 or delete all the .err files. 20915 20916 *Steve Henson* 20917 20918 * CAST-128 was incorrectly implemented for short keys. The C version has 20919 been fixed, but is untested. The assembler versions are also fixed, but 20920 new assembler HAS NOT BEEN GENERATED FOR WIN32 - the Makefile needs fixing 20921 to regenerate it if needed. 20922 *Ben Laurie, reported (with fix for C version) by Jun-ichiro itojun 20923 Hagino <itojun@kame.net>* 20924 20925 * File was opened incorrectly in randfile.c. 20926 20927 *Ulf Möller <ulf@fitug.de>* 20928 20929 * Beginning of support for GeneralizedTime. d2i, i2d, check and print 20930 functions. Also ASN1_TIME suite which is a CHOICE of UTCTime or 20931 GeneralizedTime. ASN1_TIME is the proper type used in certificates et 20932 al: it's just almost always a UTCTime. Note this patch adds new error 20933 codes so do a "make errors" if there are problems. 20934 20935 *Steve Henson* 20936 20937 * Correct Linux 1 recognition in config. 20938 20939 *Ulf Möller <ulf@fitug.de>* 20940 20941 * Remove pointless MD5 hash when using DSA keys in ca. 20942 20943 *Anonymous <nobody@replay.com>* 20944 20945 * Generate an error if given an empty string as a cert directory. Also 20946 generate an error if handed NULL (previously returned 0 to indicate an 20947 error, but didn't set one). 20948 20949 *Ben Laurie, reported by Anonymous <nobody@replay.com>* 20950 20951 * Add prototypes to SSL methods. Make SSL_write's buffer const, at last. 20952 20953 *Ben Laurie* 20954 20955 * Fix the dummy function BN_ref_mod_exp() in rsaref.c to have the correct 20956 parameters. This was causing a warning which killed off the Win32 compile. 20957 20958 *Steve Henson* 20959 20960 * Remove C++ style comments from crypto/bn/bn_local.h. 20961 20962 *Neil Costigan <neil.costigan@celocom.com>* 20963 20964 * The function OBJ_txt2nid was broken. It was supposed to return a nid 20965 based on a text string, looking up short and long names and finally 20966 "dot" format. The "dot" format stuff didn't work. Added new function 20967 OBJ_txt2obj to do the same but return an ASN1_OBJECT and rewrote 20968 OBJ_txt2nid to use it. OBJ_txt2obj can also return objects even if the 20969 OID is not part of the table. 20970 20971 *Steve Henson* 20972 20973 * Add prototypes to X509 lookup/verify methods, fixing a bug in 20974 X509_LOOKUP_by_alias(). 20975 20976 *Ben Laurie* 20977 20978 * Sort openssl functions by name. 20979 20980 *Ben Laurie* 20981 20982 * Get the `gendsa` command working and add it to the `list` command. Remove 20983 encryption from sample DSA keys (in case anyone is interested the password 20984 was "1234"). 20985 20986 *Steve Henson* 20987 20988 * Make *all* `*_free` functions accept a NULL pointer. 20989 20990 *Frans Heymans <fheymans@isaserver.be>* 20991 20992 * If a DH key is generated in s3_srvr.c, don't blow it by trying to use 20993 NULL pointers. 20994 20995 *Anonymous <nobody@replay.com>* 20996 20997 * s_server should send the CAfile as acceptable CAs, not its own cert. 20998 20999 *Bodo Moeller <3moeller@informatik.uni-hamburg.de>* 21000 21001 * Don't blow it for numeric `-newkey` arguments to `apps/req`. 21002 21003 *Bodo Moeller <3moeller@informatik.uni-hamburg.de>* 21004 21005 * Temp key "for export" tests were wrong in s3_srvr.c. 21006 21007 *Anonymous <nobody@replay.com>* 21008 21009 * Add prototype for temp key callback functions 21010 SSL_CTX_set_tmp_{rsa,dh}_callback(). 21011 21012 *Ben Laurie* 21013 21014 * Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and 21015 DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey(). 21016 21017 *Steve Henson* 21018 21019 * X509_name_add_entry() freed the wrong thing after an error. 21020 21021 *Arne Ansper <arne@ats.cyber.ee>* 21022 21023 * rsa_eay.c would attempt to free a NULL context. 21024 21025 *Arne Ansper <arne@ats.cyber.ee>* 21026 21027 * BIO_s_socket() had a broken should_retry() on Windoze. 21028 21029 *Arne Ansper <arne@ats.cyber.ee>* 21030 21031 * BIO_f_buffer() didn't pass on BIO_CTRL_FLUSH. 21032 21033 *Arne Ansper <arne@ats.cyber.ee>* 21034 21035 * Make sure the already existing X509_STORE->depth variable is initialized 21036 in X509_STORE_new(), but document the fact that this variable is still 21037 unused in the certificate verification process. 21038 21039 *Ralf S. Engelschall* 21040 21041 * Fix the various library and `apps/` files to free up pkeys obtained from 21042 X509_PUBKEY_get() et al. Also allow x509.c to handle netscape extensions. 21043 21044 *Steve Henson* 21045 21046 * Fix reference counting in X509_PUBKEY_get(). This makes 21047 demos/maurice/example2.c work, amongst others, probably. 21048 21049 *Steve Henson and Ben Laurie* 21050 21051 * First cut of a cleanup for `apps/`. First the `ssleay` program is now named 21052 `openssl` and second, the shortcut symlinks for the `openssl <command>` 21053 are no longer created. This way we have a single and consistent command 21054 line interface `openssl <command>`, similar to `cvs <command>`. 21055 21056 *Ralf S. Engelschall, Paul Sutton and Ben Laurie* 21057 21058 * ca.c: move test for DSA keys inside #ifndef NO_DSA. Make pubkey 21059 BIT STRING wrapper always have zero unused bits. 21060 21061 *Steve Henson* 21062 21063 * Add CA.pl, perl version of CA.sh, add extended key usage OID. 21064 21065 *Steve Henson* 21066 21067 * Make the top-level INSTALL documentation easier to understand. 21068 21069 *Paul Sutton* 21070 21071 * Makefiles updated to exit if an error occurs in a sub-directory 21072 make (including if user presses ^C) [Paul Sutton] 21073 21074 * Make Montgomery context stuff explicit in RSA data structure. 21075 21076 *Ben Laurie* 21077 21078 * Fix build order of pem and err to allow for generated pem.h. 21079 21080 *Ben Laurie* 21081 21082 * Fix renumbering bug in X509_NAME_delete_entry(). 21083 21084 *Ben Laurie* 21085 21086 * Enhanced the err-ins.pl script so it makes the error library number 21087 global and can add a library name. This is needed for external ASN1 and 21088 other error libraries. 21089 21090 *Steve Henson* 21091 21092 * Fixed sk_insert which never worked properly. 21093 21094 *Steve Henson* 21095 21096 * Fix ASN1 macros so they can handle indefinite length constructed 21097 EXPLICIT tags. Some non standard certificates use these: they can now 21098 be read in. 21099 21100 *Steve Henson* 21101 21102 * Merged the various old/obsolete SSLeay documentation files (doc/xxx.doc) 21103 into a single doc/ssleay.txt bundle. This way the information is still 21104 preserved but no longer messes up this directory. Now it's new room for 21105 the new set of documentation files. 21106 21107 *Ralf S. Engelschall* 21108 21109 * SETs were incorrectly DER encoded. This was a major pain, because they 21110 shared code with SEQUENCEs, which aren't coded the same. This means that 21111 almost everything to do with SETs or SEQUENCEs has either changed name or 21112 number of arguments. 21113 21114 *Ben Laurie, based on a partial fix by GP Jayan <gp@nsj.co.jp>* 21115 21116 * Fix test data to work with the above. 21117 21118 *Ben Laurie* 21119 21120 * Fix the RSA header declarations that hid a bug I fixed in 0.9.0b but 21121 was already fixed by Eric for 0.9.1 it seems. 21122 21123 *Ben Laurie - pointed out by Ulf Möller <ulf@fitug.de>* 21124 21125 * Autodetect FreeBSD3. 21126 21127 *Ben Laurie* 21128 21129 * Fix various bugs in Configure. This affects the following platforms: 21130 nextstep 21131 ncr-scde 21132 unixware-2.0 21133 unixware-2.0-pentium 21134 sco5-cc. 21135 21136 *Ben Laurie* 21137 21138 * Eliminate generated files from CVS. Reorder tests to regenerate files 21139 before they are needed. 21140 21141 *Ben Laurie* 21142 21143 * Generate Makefile.ssl from Makefile.org (to keep CVS happy). 21144 21145 *Ben Laurie* 21146 21147### Changes between 0.9.1b and 0.9.1c [23-Dec-1998] 21148 21149 * Added OPENSSL_VERSION_NUMBER to crypto/crypto.h and 21150 changed SSLeay to OpenSSL in version strings. 21151 21152 *Ralf S. Engelschall* 21153 21154 * Some fixups to the top-level documents. 21155 21156 *Paul Sutton* 21157 21158 * Fixed the nasty bug where rsaref.h was not found under compile-time 21159 because the symlink to include/ was missing. 21160 21161 *Ralf S. Engelschall* 21162 21163 * Incorporated the popular no-RSA/DSA-only patches 21164 which allow to compile an RSA-free SSLeay. 21165 21166 *Andrew Cooke / Interrader Ldt., Ralf S. Engelschall* 21167 21168 * Fixed nasty rehash problem under `make -f Makefile.ssl links` 21169 when "ssleay" is still not found. 21170 21171 *Ralf S. Engelschall* 21172 21173 * Added more platforms to Configure: Cray T3E, HPUX 11, 21174 21175 *Ralf S. Engelschall, Beckmann <beckman@acl.lanl.gov>* 21176 21177 * Updated the README file. 21178 21179 *Ralf S. Engelschall* 21180 21181 * Added various .cvsignore files in the CVS repository subdirs 21182 to make a "cvs update" really silent. 21183 21184 *Ralf S. Engelschall* 21185 21186 * Recompiled the error-definition header files and added 21187 missing symbols to the Win32 linker tables. 21188 21189 *Ralf S. Engelschall* 21190 21191 * Cleaned up the top-level documents; 21192 o new files: CHANGES and LICENSE 21193 o merged VERSION, HISTORY* and README* files a CHANGES.SSLeay 21194 o merged COPYRIGHT into LICENSE 21195 o removed obsolete TODO file 21196 o renamed MICROSOFT to INSTALL.W32 21197 21198 *Ralf S. Engelschall* 21199 21200 * Removed dummy files from the 0.9.1b source tree: 21201 crypto/asn1/x crypto/bio/cd crypto/bio/fg crypto/bio/grep crypto/bio/vi 21202 crypto/bn/asm/......add.c crypto/bn/asm/a.out crypto/dsa/f crypto/md5/f 21203 crypto/pem/gmon.out crypto/perlasm/f crypto/pkcs7/build crypto/rsa/f 21204 crypto/sha/asm/f crypto/threads/f ms/zzz ssl/f ssl/f.mak test/f 21205 util/f.mak util/pl/f util/pl/f.mak crypto/bf/bf_locl.old apps/f 21206 21207 *Ralf S. Engelschall* 21208 21209 * Added various platform portability fixes. 21210 21211 *Mark J. Cox* 21212 21213 * The Genesis of the OpenSSL rpject: 21214 We start with the latest (unreleased) SSLeay version 0.9.1b which Eric A. 21215 Young and Tim J. Hudson created while they were working for C2Net until 21216 summer 1998. 21217 21218 *The OpenSSL Project* 21219 21220### Changes between 0.9.0b and 0.9.1b [not released] 21221 21222 * Updated a few CA certificates under certs/ 21223 21224 *Eric A. Young* 21225 21226 * Changed some BIGNUM api stuff. 21227 21228 *Eric A. Young* 21229 21230 * Various platform ports: OpenBSD, Ultrix, IRIX 64bit, NetBSD, 21231 DGUX x86, Linux Alpha, etc. 21232 21233 *Eric A. Young* 21234 21235 * New COMP library [crypto/comp/] for SSL Record Layer Compression: 21236 RLE (dummy implemented) and ZLIB (really implemented when ZLIB is 21237 available). 21238 21239 *Eric A. Young* 21240 21241 * Add -strparse option to asn1pars program which parses nested 21242 binary structures 21243 21244 *Dr Stephen Henson <shenson@bigfoot.com>* 21245 21246 * Added "oid_file" to ssleay.cnf for "ca" and "req" programs. 21247 21248 *Eric A. Young* 21249 21250 * DSA fix for "ca" program. 21251 21252 *Eric A. Young* 21253 21254 * Added "-genkey" option to "dsaparam" program. 21255 21256 *Eric A. Young* 21257 21258 * Added RIPE MD160 (rmd160) message digest. 21259 21260 *Eric A. Young* 21261 21262 * Added -a (all) option to "ssleay version" command. 21263 21264 *Eric A. Young* 21265 21266 * Added PLATFORM define which is the id given to Configure. 21267 21268 *Eric A. Young* 21269 21270 * Added MemCheck_XXXX functions to crypto/mem.c for memory checking. 21271 21272 *Eric A. Young* 21273 21274 * Extended the ASN.1 parser routines. 21275 21276 *Eric A. Young* 21277 21278 * Extended BIO routines to support REUSEADDR, seek, tell, etc. 21279 21280 *Eric A. Young* 21281 21282 * Added a BN_CTX to the BN library. 21283 21284 *Eric A. Young* 21285 21286 * Fixed the weak key values in DES library 21287 21288 *Eric A. Young* 21289 21290 * Changed API in EVP library for cipher aliases. 21291 21292 *Eric A. Young* 21293 21294 * Added support for RC2/64bit cipher. 21295 21296 *Eric A. Young* 21297 21298 * Converted the lhash library to the crypto/mem.c functions. 21299 21300 *Eric A. Young* 21301 21302 * Added more recognized ASN.1 object ids. 21303 21304 *Eric A. Young* 21305 21306 * Added more RSA padding checks for SSL/TLS. 21307 21308 *Eric A. Young* 21309 21310 * Added BIO proxy/filter functionality. 21311 21312 *Eric A. Young* 21313 21314 * Added extra_certs to SSL_CTX which can be used 21315 send extra CA certificates to the client in the CA cert chain sending 21316 process. It can be configured with SSL_CTX_add_extra_chain_cert(). 21317 21318 *Eric A. Young* 21319 21320 * Now Fortezza is denied in the authentication phase because 21321 this is key exchange mechanism is not supported by SSLeay at all. 21322 21323 *Eric A. Young* 21324 21325 * Additional PKCS1 checks. 21326 21327 *Eric A. Young* 21328 21329 * Support the string "TLSv1" for all TLS v1 ciphers. 21330 21331 *Eric A. Young* 21332 21333 * Added function SSL_get_ex_data_X509_STORE_CTX_idx() which gives the 21334 ex_data index of the SSL context in the X509_STORE_CTX ex_data. 21335 21336 *Eric A. Young* 21337 21338 * Fixed a few memory leaks. 21339 21340 *Eric A. Young* 21341 21342 * Fixed various code and comment typos. 21343 21344 *Eric A. Young* 21345 21346 * A minor bug in ssl/s3_clnt.c where there would always be 4 0 21347 bytes sent in the client random. 21348 21349 *Edward Bishop <ebishop@spyglass.com>* 21350 21351<!-- Links --> 21352 21353[CVE-2025-9232]: https://www.openssl.org/news/vulnerabilities.html#CVE-2025-9232 21354[CVE-2025-9231]: https://www.openssl.org/news/vulnerabilities.html#CVE-2025-9231 21355[CVE-2025-9230]: https://www.openssl.org/news/vulnerabilities.html#CVE-2025-9230 21356[CVE-2025-4575]: https://www.openssl.org/news/vulnerabilities.html#CVE-2025-4575 21357[CVE-2024-13176]: https://www.openssl.org/news/vulnerabilities.html#CVE-2024-13176 21358[CVE-2024-9143]: https://www.openssl.org/news/vulnerabilities.html#CVE-2024-9143 21359[CVE-2024-6119]: https://www.openssl.org/news/vulnerabilities.html#CVE-2024-6119 21360[CVE-2024-5535]: https://www.openssl.org/news/vulnerabilities.html#CVE-2024-5535 21361[CVE-2024-4741]: https://www.openssl.org/news/vulnerabilities.html#CVE-2024-4741 21362[CVE-2024-4603]: https://www.openssl.org/news/vulnerabilities.html#CVE-2024-4603 21363[CVE-2024-2511]: https://www.openssl.org/news/vulnerabilities.html#CVE-2024-2511 21364[CVE-2024-0727]: https://www.openssl.org/news/vulnerabilities.html#CVE-2024-0727 21365[CVE-2023-6237]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-6237 21366[CVE-2023-6129]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-6129 21367[CVE-2023-5678]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-5678 21368[CVE-2023-5363]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-5363 21369[CVE-2023-4807]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-4807 21370[CVE-2023-3817]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-3817 21371[CVE-2023-3446]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-3446 21372[CVE-2023-2975]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-2975 21373[RFC 2578 (STD 58), section 3.5]: https://datatracker.ietf.org/doc/html/rfc2578#section-3.5 21374[CVE-2023-2650]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-2650 21375[CVE-2023-1255]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-1255 21376[CVE-2023-0466]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0466 21377[CVE-2023-0465]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0465 21378[CVE-2023-0464]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0464 21379[CVE-2023-0401]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0401 21380[CVE-2023-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0286 21381[CVE-2023-0217]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0217 21382[CVE-2023-0216]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0216 21383[CVE-2023-0215]: https://www.openssl.org/news/vulnerabilities.html#CVE-2023-0215 21384[CVE-2022-4450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4450 21385[CVE-2022-4304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4304 21386[CVE-2022-4203]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-4203 21387[CVE-2022-3996]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-3996 21388[CVE-2022-2274]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-2274 21389[CVE-2022-2097]: https://www.openssl.org/news/vulnerabilities.html#CVE-2022-2097 21390[CVE-2020-1971]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1971 21391[CVE-2020-1967]: https://www.openssl.org/news/vulnerabilities.html#CVE-2020-1967 21392[CVE-2019-1563]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1563 21393[CVE-2019-1559]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1559 21394[CVE-2019-1552]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1552 21395[CVE-2019-1551]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1551 21396[CVE-2019-1549]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1549 21397[CVE-2019-1547]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1547 21398[CVE-2019-1543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2019-1543 21399[CVE-2018-5407]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-5407 21400[CVE-2018-0739]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0739 21401[CVE-2018-0737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0737 21402[CVE-2018-0735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0735 21403[CVE-2018-0734]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0734 21404[CVE-2018-0733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0733 21405[CVE-2018-0732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2018-0732 21406[CVE-2017-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3738 21407[CVE-2017-3737]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3737 21408[CVE-2017-3736]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3736 21409[CVE-2017-3735]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3735 21410[CVE-2017-3733]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3733 21411[CVE-2017-3732]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3732 21412[CVE-2017-3731]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3731 21413[CVE-2017-3730]: https://www.openssl.org/news/vulnerabilities.html#CVE-2017-3730 21414[CVE-2016-7055]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7055 21415[CVE-2016-7054]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7054 21416[CVE-2016-7053]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7053 21417[CVE-2016-7052]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-7052 21418[CVE-2016-6309]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6309 21419[CVE-2016-6308]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6308 21420[CVE-2016-6307]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6307 21421[CVE-2016-6306]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6306 21422[CVE-2016-6305]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6305 21423[CVE-2016-6304]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6304 21424[CVE-2016-6303]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6303 21425[CVE-2016-6302]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-6302 21426[CVE-2016-2183]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2183 21427[CVE-2016-2182]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2182 21428[CVE-2016-2181]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2181 21429[CVE-2016-2180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2180 21430[CVE-2016-2179]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2179 21431[CVE-2016-2178]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2178 21432[CVE-2016-2177]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2177 21433[CVE-2016-2176]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2176 21434[CVE-2016-2109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2109 21435[CVE-2016-2107]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2107 21436[CVE-2016-2106]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2106 21437[CVE-2016-2105]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-2105 21438[CVE-2016-0800]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0800 21439[CVE-2016-0799]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0799 21440[CVE-2016-0798]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0798 21441[CVE-2016-0797]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0797 21442[CVE-2016-0705]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0705 21443[CVE-2016-0702]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0702 21444[CVE-2016-0701]: https://www.openssl.org/news/vulnerabilities.html#CVE-2016-0701 21445[CVE-2015-3197]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3197 21446[CVE-2015-3196]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3196 21447[CVE-2015-3195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3195 21448[CVE-2015-3194]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3194 21449[CVE-2015-3193]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-3193 21450[CVE-2015-1793]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1793 21451[CVE-2015-1792]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1792 21452[CVE-2015-1791]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1791 21453[CVE-2015-1790]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1790 21454[CVE-2015-1789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1789 21455[CVE-2015-1788]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1788 21456[CVE-2015-1787]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-1787 21457[CVE-2015-0293]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0293 21458[CVE-2015-0291]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0291 21459[CVE-2015-0290]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0290 21460[CVE-2015-0289]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0289 21461[CVE-2015-0288]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0288 21462[CVE-2015-0287]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0287 21463[CVE-2015-0286]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0286 21464[CVE-2015-0285]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0285 21465[CVE-2015-0209]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0209 21466[CVE-2015-0208]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0208 21467[CVE-2015-0207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0207 21468[CVE-2015-0206]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0206 21469[CVE-2015-0205]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0205 21470[CVE-2015-0204]: https://www.openssl.org/news/vulnerabilities.html#CVE-2015-0204 21471[CVE-2014-8275]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-8275 21472[CVE-2014-5139]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-5139 21473[CVE-2014-3572]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3572 21474[CVE-2014-3571]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3571 21475[CVE-2014-3570]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3570 21476[CVE-2014-3569]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3569 21477[CVE-2014-3568]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3568 21478[CVE-2014-3567]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3567 21479[CVE-2014-3566]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3566 21480[CVE-2014-3513]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3513 21481[CVE-2014-3512]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3512 21482[CVE-2014-3511]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3511 21483[CVE-2014-3510]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3510 21484[CVE-2014-3509]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3509 21485[CVE-2014-3508]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3508 21486[CVE-2014-3507]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3507 21487[CVE-2014-3506]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3506 21488[CVE-2014-3505]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3505 21489[CVE-2014-3470]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-3470 21490[CVE-2014-0224]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0224 21491[CVE-2014-0221]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0221 21492[CVE-2014-0195]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0195 21493[CVE-2014-0160]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0160 21494[CVE-2014-0076]: https://www.openssl.org/news/vulnerabilities.html#CVE-2014-0076 21495[CVE-2013-6450]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-6450 21496[CVE-2013-4353]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-4353 21497[CVE-2013-0169]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0169 21498[CVE-2013-0166]: https://www.openssl.org/news/vulnerabilities.html#CVE-2013-0166 21499[CVE-2012-2686]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2686 21500[CVE-2012-2333]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2333 21501[CVE-2012-2110]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-2110 21502[CVE-2012-0884]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0884 21503[CVE-2012-0050]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0050 21504[CVE-2012-0027]: https://www.openssl.org/news/vulnerabilities.html#CVE-2012-0027 21505[CVE-2011-4619]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4619 21506[CVE-2011-4577]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4577 21507[CVE-2011-4576]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4576 21508[CVE-2011-4109]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4109 21509[CVE-2011-4108]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-4108 21510[CVE-2011-3210]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3210 21511[CVE-2011-3207]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-3207 21512[CVE-2011-0014]: https://www.openssl.org/news/vulnerabilities.html#CVE-2011-0014 21513[CVE-2010-4252]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4252 21514[CVE-2010-4180]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-4180 21515[CVE-2010-3864]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-3864 21516[CVE-2010-1633]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-1633 21517[CVE-2010-0740]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0740 21518[CVE-2010-0433]: https://www.openssl.org/news/vulnerabilities.html#CVE-2010-0433 21519[CVE-2009-4355]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-4355 21520[CVE-2009-3555]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3555 21521[CVE-2009-3245]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-3245 21522[CVE-2009-1386]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1386 21523[CVE-2009-1379]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1379 21524[CVE-2009-1378]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1378 21525[CVE-2009-1377]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-1377 21526[CVE-2009-0789]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0789 21527[CVE-2009-0591]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0591 21528[CVE-2009-0590]: https://www.openssl.org/news/vulnerabilities.html#CVE-2009-0590 21529[CVE-2008-5077]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-5077 21530[CVE-2008-1678]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1678 21531[CVE-2008-1672]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-1672 21532[CVE-2008-0891]: https://www.openssl.org/news/vulnerabilities.html#CVE-2008-0891 21533[CVE-2007-5135]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-5135 21534[CVE-2007-4995]: https://www.openssl.org/news/vulnerabilities.html#CVE-2007-4995 21535[CVE-2006-4343]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4343 21536[CVE-2006-4339]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-4339 21537[CVE-2006-3738]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-3738 21538[CVE-2006-2940]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2940 21539[CVE-2006-2937]: https://www.openssl.org/news/vulnerabilities.html#CVE-2006-2937 21540[CVE-2005-2969]: https://www.openssl.org/news/vulnerabilities.html#CVE-2005-2969 21541[CVE-2004-0112]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0112 21542[CVE-2004-0079]: https://www.openssl.org/news/vulnerabilities.html#CVE-2004-0079 21543[CVE-2003-0851]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0851 21544[CVE-2003-0545]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0545 21545[CVE-2003-0544]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0544 21546[CVE-2003-0543]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0543 21547[CVE-2003-0078]: https://www.openssl.org/news/vulnerabilities.html#CVE-2003-0078 21548[CVE-2002-0659]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0659 21549[CVE-2002-0657]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0657 21550[CVE-2002-0656]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0656 21551[CVE-2002-0655]: https://www.openssl.org/news/vulnerabilities.html#CVE-2002-0655 21552[CMVP]: https://csrc.nist.gov/projects/cryptographic-module-validation-program 21553[ESV]: https://csrc.nist.gov/Projects/cryptographic-module-validation-program/entropy-validations 21554