Use SHA256 not MD5 as default digest.
[openssl.git] / CHANGES
1
2  OpenSSL CHANGES
3  _______________
4
5  Changes between 1.0.2e and 1.1.0  [xx XXX xxxx]
6
7   *) Support for ChaCha20 and Poly1305 added to libcrypto and libssl.
8      [Andy Polyakov]
9
10   *) New EC_KEY_METHOD, this replaces the older ECDSA_METHOD and ECDH_METHOD
11      and integrates ECDSA and ECDH functionality into EC. Implementations can
12      now redirect key generation and no longer need to convert to or from
13      ECDSA_SIG format.
14
15      Note: the ecdsa.h and ecdh.h headers are now no longer needed and just
16      include the ec.h header file instead.
17      [Steve Henson]
18
19   *) Remove support for all 40 and 56 bit ciphers.  This includes all the export
20      ciphers who are no longer supported and drops support the ephemeral RSA key
21      exchange. The LOW ciphers currently doesn't have any ciphers in it.
22      [Kurt Roeckx]
23
24   *) Make EVP_MD_CTX, EVP_MD and HMAC_CTX opaque.  For HMAC_CTX, the
25      following constructors and destructors were added:
26
27         HMAC_CTX *HMAC_CTX_new(void);
28         void HMAC_CTX_free(HMAC_CTX *ctx);
29
30      For EVP_MD, a complete API to create, fill and destroy such
31      methods has been added.  See EVP_MD_meth_new(3) for
32      documentation.
33
34      Additional changes:
35      1) HMAC_CTX_cleanup() and EVP_MD_CTX_cleanup() were removed,
36         HMAC_CTX_init() and EVP_MD_CTX_init() should be called instead
37         to reinitialise and already created structure.  Also,
38         HMAC_CTX_init() and EVP_MD_CTX_init() now return 0 for failure
39         and 1 for success (they previously had the return type void).
40      2) For consistency with the majority of our object creators and
41         destructors, EVP_MD_CTX_(create|destroy) were renamed to
42         EVP_MD_CTX_(new|free).  The old names are retained as macros
43         for deprecated builds.
44      [Richard Levitte]
45
46   *) Added ASYNC support. Libcrypto now includes the async sub-library to enable
47      cryptographic operations to be performed asynchronously as long as an
48      asynchronous capable engine is used. See the ASYNC_start_job() man page for
49      further details. Libssl has also had this capability integrated with the
50      introduction of the new mode SSL_MODE_ASYNC and associated error
51      SSL_ERROR_WANT_ASYNC. See the SSL_CTX_set_mode() and SSL_get_error() man
52      pages. This work was developed in partnership with Intel Corp.
53      [Matt Caswell]
54
55   *) SSL_{CTX_}set_ecdh_auto() has been removed and ECDH is support is
56      always enabled now.  If you want to disable the support you should
57      exclude it using the list of supported ciphers.
58      [Kurt Roeckx]
59
60   *) SSL_{CTX}_set_tmp_ecdh() which can set 1 EC curve now internally calls
61      SSL_{CTX_}set1_curves() which can set a list.
62      [Kurt Roeckx]
63
64   *) Remove support for SSL_{CTX_}set_tmp_ecdh_callback().  You should set the
65      curve you want to support using SSL_{CTX_}set1_curves().
66      [Kurt Roeckx]
67
68   *) State machine rewrite. The state machine code has been significantly
69      refactored in order to remove much duplication of code and solve issues
70      with the old code (see ssl/statem/README for further details). This change
71      does have some associated API changes. Notably the SSL_state() function
72      has been removed and replaced by SSL_get_state which now returns an
73      "OSSL_HANDSHAKE_STATE" instead of an int. SSL_set_state() has been removed
74      altogether. The previous handshake states defined in ssl.h and ssl3.h have
75      also been removed.
76      [Matt Caswell]
77
78   *) All instances of the string "ssleay" in the public API were replaced
79      with OpenSSL (case-matching; e.g., OPENSSL_VERSION for #define's)
80      Some error codes related to internal RSA_eay API's were renamed.
81      [Rich Salz]
82
83   *) The demo files in crypto/threads were moved to demo/threads.
84      [Rich Salz]
85
86   *) Removed obsolete engines: 4758cca, aep, atalla, cswift, nuron and sureware.
87      [Matt Caswell]
88
89   *) New ASN.1 embed macro.
90
91      New ASN.1 macro ASN1_EMBED. This is the same as ASN1_SIMPLE except the
92      structure is not allocated: it is part of the parent. That is instead of
93
94      FOO *x;
95
96      it must be:
97
98      FOO x;
99
100      This reduces memory fragmentation and make it impossible to accidentally
101      set a mandatory field to NULL.
102
103      This currently only works for some fields specifically a SEQUENCE, CHOICE,
104      or ASN1_STRING type which is part of a parent SEQUENCE. Since it is
105      equivalent to ASN1_SIMPLE it cannot be tagged, OPTIONAL, SET OF or
106      SEQUENCE OF.
107      [Steve Henson]
108
109   *) Remove EVP_CHECK_DES_KEY, a compile-time option that never compiled.
110      [Emilia Käsper]
111
112   *) Removed DES and RC4 ciphersuites from DEFAULT. Also removed RC2 although
113      in 1.0.2 EXPORT was already removed and the only RC2 ciphersuite is also
114      an EXPORT one. COMPLEMENTOFDEFAULT has been updated accordingly to add
115      DES and RC4 ciphersuites.
116      [Matt Caswell]
117
118   *) Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
119      This changes the decoding behaviour for some invalid messages,
120      though the change is mostly in the more lenient direction, and
121      legacy behaviour is preserved as much as possible.
122      [Emilia Käsper]
123
124   *) Fix no-stdio build.
125     [ David Woodhouse <David.Woodhouse@intel.com> and also
126       Ivan Nestlerode <ivan.nestlerode@sonos.com> ]
127
128   *) New testing framework
129      The testing framework has been largely rewritten and is now using
130      perl and the perl modules Test::Harness and an extended variant of
131      Test::More called OpenSSL::Test to do its work.  All test scripts in
132      test/ have been rewritten into test recipes, and all direct calls to
133      executables in test/Makefile have become individual recipes using the
134      simplified testing OpenSSL::Test::Simple.
135
136      For documentation on our testing modules, do:
137
138         perldoc test/testlib/OpenSSL/Test/Simple.pm
139         perldoc test/testlib/OpenSSL/Test.pm
140
141      [Richard Levitte]
142
143   *) In DSA_generate_parameters_ex, if the provided seed is too short,
144      return an error
145      [Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>]
146
147   *) Rewrite PSK to support ECDHE_PSK, DHE_PSK and RSA_PSK. Add ciphersuites
148      from RFC4279, RFC4785, RFC5487, RFC5489.
149
150      Thanks to Christian J. Dietrich and Giuseppe D'Angelo for the
151      original RSA_PSK patch.
152      [Steve Henson]
153
154   *) Dropped support for the SSL3_FLAGS_DELAY_CLIENT_FINISHED flag. This SSLeay
155      era flag was never set throughout the codebase (only read). Also removed
156      SSL3_FLAGS_POP_BUFFER which was only used if
157      SSL3_FLAGS_DELAY_CLIENT_FINISHED was also set.
158      [Matt Caswell]
159
160   *) Changed the default name options in the "ca", "crl", "req" and "x509"
161      to be "oneline" instead of "compat".
162      [Richard Levitte]
163
164   *) Remove SSL_OP_TLS_BLOCK_PADDING_BUG. This is SSLeay legacy, we're
165      not aware of clients that still exhibit this bug, and the workaround
166      hasn't been working properly for a while.
167      [Emilia Käsper]
168
169   *) The return type of BIO_number_read() and BIO_number_written() as well as
170      the corresponding num_read and num_write members in the BIO structure has
171      changed from unsigned long to uint64_t. On platforms where an unsigned
172      long is 32 bits (e.g. Windows) these counters could overflow if >4Gb is
173      transferred.
174      [Matt Caswell]
175
176   *) Given the pervasive nature of TLS extensions it is inadvisable to run
177      OpenSSL without support for them. It also means that maintaining
178      the OPENSSL_NO_TLSEXT option within the code is very invasive (and probably
179      not well tested). Therefore the OPENSSL_NO_TLSEXT option has been removed.
180      [Matt Caswell]
181
182   *) Removed support for the two export grade static DH ciphersuites
183      EXP-DH-RSA-DES-CBC-SHA and EXP-DH-DSS-DES-CBC-SHA. These two ciphersuites
184      were newly added (along with a number of other static DH ciphersuites) to
185      1.0.2. However the two export ones have *never* worked since they were
186      introduced. It seems strange in any case to be adding new export
187      ciphersuites, and given "logjam" it also does not seem correct to fix them.
188      [Matt Caswell]
189
190   *) Version negotiation has been rewritten. In particular SSLv23_method(),
191      SSLv23_client_method() and SSLv23_server_method() have been deprecated,
192      and turned into macros which simply call the new preferred function names
193      TLS_method(), TLS_client_method() and TLS_server_method(). All new code
194      should use the new names instead. Also as part of this change the ssl23.h
195      header file has been removed.
196      [Matt Caswell]
197
198   *) Support for Kerberos ciphersuites in TLS (RFC2712) has been removed. This
199      code and the associated standard is no longer considered fit-for-purpose.
200      [Matt Caswell]
201
202   *) RT2547 was closed.  When generating a private key, try to make the
203      output file readable only by the owner.  This behavior change might
204      be noticeable when interacting with other software.
205
206   *) Documented all exdata functions.  Added CRYPTO_free_ex_index.
207      Added a test.
208      [Rich Salz]
209
210   *) Added HTTP GET support to the ocsp command.
211      [Rich Salz]
212
213   *) Changed default digest for the dgst and enc commands from MD5 to
214      sha256
215      [Rich Salz]
216
217   *) RAND_pseudo_bytes has been deprecated. Users should use RAND_bytes instead.
218      [Matt Caswell]
219
220   *) Added support for TLS extended master secret from
221      draft-ietf-tls-session-hash-03.txt. Thanks for Alfredo Pironti for an
222      initial patch which was a great help during development.
223      [Steve Henson]
224
225   *) All libssl internal structures have been removed from the public header
226      files, and the OPENSSL_NO_SSL_INTERN option has been removed (since it is
227      now redundant). Users should not attempt to access internal structures
228      directly. Instead they should use the provided API functions.
229      [Matt Caswell]
230
231   *) config has been changed so that by default OPENSSL_NO_DEPRECATED is used.
232      Access to deprecated functions can be re-enabled by running config with
233      "enable-deprecated". In addition applications wishing to use deprecated
234      functions must define OPENSSL_USE_DEPRECATED. Note that this new behaviour
235      will, by default, disable some transitive includes that previously existed
236      in the header files (e.g. ec.h will no longer, by default, include bn.h)
237      [Matt Caswell]
238
239   *) Added support for OCB mode. OpenSSL has been granted a patent license
240      compatible with the OpenSSL license for use of OCB. Details are available
241      at https://www.openssl.org/source/OCB-patent-grant-OpenSSL.pdf. Support
242      for OCB can be removed by calling config with no-ocb.
243      [Matt Caswell]
244
245   *) SSLv2 support has been removed.  It still supports receiving a SSLv2
246      compatible client hello.
247      [Kurt Roeckx]
248
249   *) Increased the minimal RSA keysize from 256 to 512 bits [Rich Salz],
250      done while fixing the error code for the key-too-small case.
251      [Annie Yousar <a.yousar@informatik.hu-berlin.de>]
252
253   *) CA.sh has been removmed; use CA.pl instead.
254      [Rich Salz]
255
256   *) Removed old DES API.
257      [Rich Salz]
258
259   *) Remove various unsupported platforms:
260         Sony NEWS4
261         BEOS and BEOS_R5
262         NeXT
263         SUNOS
264         MPE/iX
265         Sinix/ReliantUNIX RM400
266         DGUX
267         NCR
268         Tandem
269         Cray
270         16-bit platforms such as WIN16
271      [Rich Salz]
272
273   *) Clean up OPENSSL_NO_xxx #define's
274         Use setbuf() and remove OPENSSL_NO_SETVBUF_IONBF
275         Rename OPENSSL_SYSNAME_xxx to OPENSSL_SYS_xxx
276         OPENSSL_NO_EC{DH,DSA} merged into OPENSSL_NO_EC
277         OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160
278         OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO
279         Remove OPENSSL_NO_BIO OPENSSL_NO_BUFFER OPENSSL_NO_CHAIN_VERIFY
280         OPENSSL_NO_EVP OPENSSL_NO_FIPS_ERR OPENSSL_NO_HASH_COMP
281         OPENSSL_NO_LHASH OPENSSL_NO_OBJECT OPENSSL_NO_SPEED OPENSSL_NO_STACK
282         OPENSSL_NO_X509 OPENSSL_NO_X509_VERIFY
283         Remove MS_STATIC; it's a relic from platforms <32 bits.
284      [Rich Salz]
285
286   *) Cleaned up dead code
287         Remove all but one '#ifdef undef' which is to be looked at.
288      [Rich Salz]
289
290   *) Clean up calling of xxx_free routines.
291         Just like free(), fix most of the xxx_free routines to accept
292         NULL.  Remove the non-null checks from callers.  Save much code.
293      [Rich Salz]
294
295   *) Add secure heap for storage of private keys (when possible).
296      Add BIO_s_secmem(), CBIGNUM, etc.
297      Contributed by Akamai Technologies under our Corporate CLA.
298      [Rich Salz]
299
300   *) Experimental support for a new, fast, unbiased prime candidate generator,
301      bn_probable_prime_dh_coprime(). Not currently used by any prime generator.
302      [Felix Laurie von Massenbach <felix@erbridge.co.uk>]
303
304   *) New output format NSS in the sess_id command line tool. This allows
305      exporting the session id and the master key in NSS keylog format.
306      [Martin Kaiser <martin@kaiser.cx>]
307
308   *) Harmonize version and its documentation. -f flag is used to display
309      compilation flags.
310      [mancha <mancha1@zoho.com>]
311
312   *) Fix eckey_priv_encode so it immediately returns an error upon a failure
313      in i2d_ECPrivateKey.  Thanks to Ted Unangst for feedback on this issue.
314      [mancha <mancha1@zoho.com>]
315
316   *) Fix some double frees. These are not thought to be exploitable.
317      [mancha <mancha1@zoho.com>]
318
319   *) A missing bounds check in the handling of the TLS heartbeat extension
320      can be used to reveal up to 64k of memory to a connected client or
321      server.
322
323      Thanks for Neel Mehta of Google Security for discovering this bug and to
324      Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
325      preparing the fix (CVE-2014-0160)
326      [Adam Langley, Bodo Moeller]
327
328   *) Fix for the attack described in the paper "Recovering OpenSSL
329      ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
330      by Yuval Yarom and Naomi Benger. Details can be obtained from:
331      http://eprint.iacr.org/2014/140
332
333      Thanks to Yuval Yarom and Naomi Benger for discovering this
334      flaw and to Yuval Yarom for supplying a fix (CVE-2014-0076)
335      [Yuval Yarom and Naomi Benger]
336
337   *) Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
338      this fixes a limitation in previous versions of OpenSSL.
339      [Steve Henson]
340
341   *) Experimental encrypt-then-mac support.
342     
343      Experimental support for encrypt then mac from
344      draft-gutmann-tls-encrypt-then-mac-02.txt
345
346      To enable it set the appropriate extension number (0x42 for the test
347      server) using e.g. -DTLSEXT_TYPE_encrypt_then_mac=0x42
348  
349      For non-compliant peers (i.e. just about everything) this should have no
350      effect.
351
352      WARNING: EXPERIMENTAL, SUBJECT TO CHANGE.
353
354      [Steve Henson]
355
356   *) Add EVP support for key wrapping algorithms, to avoid problems with
357      existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
358      the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
359      algorithms and include tests cases.
360      [Steve Henson]
361
362   *) Extend CMS code to support RSA-PSS signatures and RSA-OAEP for
363      enveloped data.
364      [Steve Henson]
365
366   *) Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
367      MGF1 digest and OAEP label.
368      [Steve Henson]
369
370   *) Make openssl verify return errors.
371      [Chris Palmer <palmer@google.com> and Ben Laurie]
372
373   *) New function ASN1_TIME_diff to calculate the difference between two
374      ASN1_TIME structures or one structure and the current time.
375      [Steve Henson]
376
377   *) Update fips_test_suite to support multiple command line options. New
378      test to induce all self test errors in sequence and check expected
379      failures.
380      [Steve Henson]
381
382   *) Add FIPS_{rsa,dsa,ecdsa}_{sign,verify} functions which digest and
383      sign or verify all in one operation.
384      [Steve Henson]
385
386   *) Add fips_algvs: a multicall fips utility incorporating all the algorithm
387      test programs and fips_test_suite. Includes functionality to parse
388      the minimal script output of fipsalgest.pl directly.
389      [Steve Henson]
390
391   *) Add authorisation parameter to FIPS_module_mode_set().
392      [Steve Henson]
393
394   *) Add FIPS selftest for ECDH algorithm using P-224 and B-233 curves.
395      [Steve Henson]
396
397   *) Use separate DRBG fields for internal and external flags. New function
398      FIPS_drbg_health_check() to perform on demand health checking. Add
399      generation tests to fips_test_suite with reduced health check interval to 
400      demonstrate periodic health checking. Add "nodh" option to
401      fips_test_suite to skip very slow DH test.
402      [Steve Henson]
403
404   *) New function FIPS_get_cipherbynid() to lookup FIPS supported ciphers
405      based on NID.
406      [Steve Henson]
407
408   *) More extensive health check for DRBG checking many more failure modes.
409      New function FIPS_selftest_drbg_all() to handle every possible DRBG
410      combination: call this in fips_test_suite.
411      [Steve Henson]
412
413   *) Add support for Dual EC DRBG from SP800-90. Update DRBG algorithm test
414      and POST to handle Dual EC cases.
415      [Steve Henson]
416
417   *) Add support for canonical generation of DSA parameter 'g'. See 
418      FIPS 186-3 A.2.3.
419
420   *) Add support for HMAC DRBG from SP800-90. Update DRBG algorithm test and
421      POST to handle HMAC cases.
422      [Steve Henson]
423
424   *) Add functions FIPS_module_version() and FIPS_module_version_text()
425      to return numerical and string versions of the FIPS module number.
426      [Steve Henson]
427
428   *) Rename FIPS_mode_set and FIPS_mode to FIPS_module_mode_set and
429      FIPS_module_mode. FIPS_mode and FIPS_mode_set will be implemented
430      outside the validated module in the FIPS capable OpenSSL.
431      [Steve Henson]
432
433   *) Minor change to DRBG entropy callback semantics. In some cases
434      there is no multiple of the block length between min_len and
435      max_len. Allow the callback to return more than max_len bytes
436      of entropy but discard any extra: it is the callback's responsibility
437      to ensure that the extra data discarded does not impact the
438      requested amount of entropy.
439      [Steve Henson]
440
441   *) Add PRNG security strength checks to RSA, DSA and ECDSA using 
442      information in FIPS186-3, SP800-57 and SP800-131A.
443      [Steve Henson]
444
445   *) CCM support via EVP. Interface is very similar to GCM case except we
446      must supply all data in one chunk (i.e. no update, final) and the
447      message length must be supplied if AAD is used. Add algorithm test
448      support.
449      [Steve Henson]
450
451   *) Initial version of POST overhaul. Add POST callback to allow the status
452      of POST to be monitored and/or failures induced. Modify fips_test_suite
453      to use callback. Always run all selftests even if one fails.
454      [Steve Henson]
455
456   *) XTS support including algorithm test driver in the fips_gcmtest program.
457      Note: this does increase the maximum key length from 32 to 64 bytes but
458      there should be no binary compatibility issues as existing applications
459      will never use XTS mode.
460      [Steve Henson]
461
462   *) Extensive reorganisation of FIPS PRNG behaviour. Remove all dependencies
463      to OpenSSL RAND code and replace with a tiny FIPS RAND API which also
464      performs algorithm blocking for unapproved PRNG types. Also do not
465      set PRNG type in FIPS_mode_set(): leave this to the application.
466      Add default OpenSSL DRBG handling: sets up FIPS PRNG and seeds with
467      the standard OpenSSL PRNG: set additional data to a date time vector.
468      [Steve Henson]
469
470   *) Rename old X9.31 PRNG functions of the form FIPS_rand* to FIPS_x931*.
471      This shouldn't present any incompatibility problems because applications
472      shouldn't be using these directly and any that are will need to rethink
473      anyway as the X9.31 PRNG is now deprecated by FIPS 140-2
474      [Steve Henson]
475
476   *) Extensive self tests and health checking required by SP800-90 DRBG.
477      Remove strength parameter from FIPS_drbg_instantiate and always
478      instantiate at maximum supported strength.
479      [Steve Henson]
480
481   *) Add ECDH code to fips module and fips_ecdhvs for primitives only testing.
482      [Steve Henson]
483
484   *) New algorithm test program fips_dhvs to handle DH primitives only testing.
485      [Steve Henson]
486
487   *) New function DH_compute_key_padded() to compute a DH key and pad with
488      leading zeroes if needed: this complies with SP800-56A et al.
489      [Steve Henson]
490
491   *) Initial implementation of SP800-90 DRBGs for Hash and CTR. Not used by
492      anything, incomplete, subject to change and largely untested at present.
493      [Steve Henson]
494
495   *) Modify fipscanisteronly build option to only build the necessary object
496      files by filtering FIPS_EX_OBJ through a perl script in crypto/Makefile.
497      [Steve Henson]
498
499   *) Add experimental option FIPSSYMS to give all symbols in
500      fipscanister.o and FIPS or fips prefix. This will avoid
501      conflicts with future versions of OpenSSL. Add perl script
502      util/fipsas.pl to preprocess assembly language source files
503      and rename any affected symbols.
504      [Steve Henson]
505
506   *) Add selftest checks and algorithm block of non-fips algorithms in
507      FIPS mode. Remove DES2 from selftests.
508      [Steve Henson]
509
510   *) Add ECDSA code to fips module. Add tiny fips_ecdsa_check to just
511      return internal method without any ENGINE dependencies. Add new
512      tiny fips sign and verify functions.
513      [Steve Henson]
514
515   *) New build option no-ec2m to disable characteristic 2 code.
516      [Steve Henson]
517
518   *) New build option "fipscanisteronly". This only builds fipscanister.o
519      and (currently) associated fips utilities. Uses the file Makefile.fips
520      instead of Makefile.org as the prototype.
521      [Steve Henson]
522
523   *) Add some FIPS mode restrictions to GCM. Add internal IV generator.
524      Update fips_gcmtest to use IV generator.
525      [Steve Henson]
526
527   *) Initial, experimental EVP support for AES-GCM. AAD can be input by
528      setting output buffer to NULL. The *Final function must be
529      called although it will not retrieve any additional data. The tag
530      can be set or retrieved with a ctrl. The IV length is by default 12
531      bytes (96 bits) but can be set to an alternative value. If the IV
532      length exceeds the maximum IV length (currently 16 bytes) it cannot be
533      set before the key. 
534      [Steve Henson]
535
536   *) New flag in ciphers: EVP_CIPH_FLAG_CUSTOM_CIPHER. This means the
537      underlying do_cipher function handles all cipher semantics itself
538      including padding and finalisation. This is useful if (for example)
539      an ENGINE cipher handles block padding itself. The behaviour of
540      do_cipher is subtly changed if this flag is set: the return value
541      is the number of characters written to the output buffer (zero is
542      no longer an error code) or a negative error code. Also if the
543      input buffer is NULL and length 0 finalisation should be performed.
544      [Steve Henson]
545
546   *) If a candidate issuer certificate is already part of the constructed
547      path ignore it: new debug notification X509_V_ERR_PATH_LOOP for this case.
548      [Steve Henson]
549
550   *) Improve forward-security support: add functions
551
552        void SSL_CTX_set_not_resumable_session_callback(SSL_CTX *ctx, int (*cb)(SSL *ssl, int is_forward_secure))
553        void SSL_set_not_resumable_session_callback(SSL *ssl, int (*cb)(SSL *ssl, int is_forward_secure))
554
555      for use by SSL/TLS servers; the callback function will be called whenever a
556      new session is created, and gets to decide whether the session may be
557      cached to make it resumable (return 0) or not (return 1).  (As by the
558      SSL/TLS protocol specifications, the session_id sent by the server will be
559      empty to indicate that the session is not resumable; also, the server will
560      not generate RFC 4507 (RFC 5077) session tickets.)
561
562      A simple reasonable callback implementation is to return is_forward_secure.
563      This parameter will be set to 1 or 0 depending on the ciphersuite selected
564      by the SSL/TLS server library, indicating whether it can provide forward
565      security.
566      [Emilia Käsper <emilia.kasper@esat.kuleuven.be> (Google)]
567
568   *) New -verify_name option in command line utilities to set verification
569      parameters by name.
570      [Steve Henson]
571
572   *) Initial CMAC implementation. WARNING: EXPERIMENTAL, API MAY CHANGE.
573      Add CMAC pkey methods.
574      [Steve Henson]
575
576   *) Experimental renegotiation in s_server -www mode. If the client 
577      browses /reneg connection is renegotiated. If /renegcert it is
578      renegotiated requesting a certificate.
579      [Steve Henson]
580
581   *) Add an "external" session cache for debugging purposes to s_server. This
582      should help trace issues which normally are only apparent in deployed
583      multi-process servers.
584      [Steve Henson]
585
586   *) Extensive audit of libcrypto with DEBUG_UNUSED. Fix many cases where
587      return value is ignored. NB. The functions RAND_add(), RAND_seed(),
588      BIO_set_cipher() and some obscure PEM functions were changed so they
589      can now return an error. The RAND changes required a change to the
590      RAND_METHOD structure.
591      [Steve Henson]
592
593   *) New macro __owur for "OpenSSL Warn Unused Result". This makes use of
594      a gcc attribute to warn if the result of a function is ignored. This
595      is enable if DEBUG_UNUSED is set. Add to several functions in evp.h
596      whose return value is often ignored. 
597      [Steve Henson]
598
599  Changes between 1.0.2d and 1.0.2e [3 Dec 2015]
600
601   *) BN_mod_exp may produce incorrect results on x86_64
602
603      There is a carry propagating bug in the x86_64 Montgomery squaring
604      procedure. No EC algorithms are affected. Analysis suggests that attacks
605      against RSA and DSA as a result of this defect would be very difficult to
606      perform and are not believed likely. Attacks against DH are considered just
607      feasible (although very difficult) because most of the work necessary to
608      deduce information about a private key may be performed offline. The amount
609      of resources required for such an attack would be very significant and
610      likely only accessible to a limited number of attackers. An attacker would
611      additionally need online access to an unpatched system using the target
612      private key in a scenario with persistent DH parameters and a private
613      key that is shared between multiple clients. For example this can occur by
614      default in OpenSSL DHE based SSL/TLS ciphersuites.
615
616      This issue was reported to OpenSSL by Hanno Böck.
617      (CVE-2015-3193)
618      [Andy Polyakov]
619
620   *) Certificate verify crash with missing PSS parameter
621
622      The signature verification routines will crash with a NULL pointer
623      dereference if presented with an ASN.1 signature using the RSA PSS
624      algorithm and absent mask generation function parameter. Since these
625      routines are used to verify certificate signature algorithms this can be
626      used to crash any certificate verification operation and exploited in a
627      DoS attack. Any application which performs certificate verification is
628      vulnerable including OpenSSL clients and servers which enable client
629      authentication.
630
631      This issue was reported to OpenSSL by Loïc Jonas Etienne (Qnective AG).
632      (CVE-2015-3194)
633      [Stephen Henson]
634
635   *) X509_ATTRIBUTE memory leak
636
637      When presented with a malformed X509_ATTRIBUTE structure OpenSSL will leak
638      memory. This structure is used by the PKCS#7 and CMS routines so any
639      application which reads PKCS#7 or CMS data from untrusted sources is
640      affected. SSL/TLS is not affected.
641
642      This issue was reported to OpenSSL by Adam Langley (Google/BoringSSL) using
643      libFuzzer.
644      (CVE-2015-3195)
645      [Stephen Henson]
646
647   *) Rewrite EVP_DecodeUpdate (base64 decoding) to fix several bugs.
648      This changes the decoding behaviour for some invalid messages,
649      though the change is mostly in the more lenient direction, and
650      legacy behaviour is preserved as much as possible.
651      [Emilia Käsper]
652
653   *) In DSA_generate_parameters_ex, if the provided seed is too short,
654      return an error
655      [Rich Salz and Ismo Puustinen <ismo.puustinen@intel.com>]
656
657  Changes between 1.0.2c and 1.0.2d [9 Jul 2015]
658
659   *) Alternate chains certificate forgery
660
661      During certificate verfification, OpenSSL will attempt to find an
662      alternative certificate chain if the first attempt to build such a chain
663      fails. An error in the implementation of this logic can mean that an
664      attacker could cause certain checks on untrusted certificates to be
665      bypassed, such as the CA flag, enabling them to use a valid leaf
666      certificate to act as a CA and "issue" an invalid certificate.
667
668      This issue was reported to OpenSSL by Adam Langley/David Benjamin
669      (Google/BoringSSL).
670      [Matt Caswell]
671
672  Changes between 1.0.2b and 1.0.2c [12 Jun 2015]
673
674   *) Fix HMAC ABI incompatibility. The previous version introduced an ABI
675      incompatibility in the handling of HMAC. The previous ABI has now been
676      restored.
677      [Matt Caswell]
678
679  Changes between 1.0.2a and 1.0.2b [11 Jun 2015]
680
681   *) Malformed ECParameters causes infinite loop
682
683      When processing an ECParameters structure OpenSSL enters an infinite loop
684      if the curve specified is over a specially malformed binary polynomial
685      field.
686
687      This can be used to perform denial of service against any
688      system which processes public keys, certificate requests or
689      certificates.  This includes TLS clients and TLS servers with
690      client authentication enabled.
691
692      This issue was reported to OpenSSL by Joseph Barr-Pixton.
693      (CVE-2015-1788)
694      [Andy Polyakov]
695
696   *) Exploitable out-of-bounds read in X509_cmp_time
697
698      X509_cmp_time does not properly check the length of the ASN1_TIME
699      string and can read a few bytes out of bounds. In addition,
700      X509_cmp_time accepts an arbitrary number of fractional seconds in the
701      time string.
702
703      An attacker can use this to craft malformed certificates and CRLs of
704      various sizes and potentially cause a segmentation fault, resulting in
705      a DoS on applications that verify certificates or CRLs. TLS clients
706      that verify CRLs are affected. TLS clients and servers with client
707      authentication enabled may be affected if they use custom verification
708      callbacks.
709
710      This issue was reported to OpenSSL by Robert Swiecki (Google), and
711      independently by Hanno Böck.
712      (CVE-2015-1789)
713      [Emilia Käsper]
714
715   *) PKCS7 crash with missing EnvelopedContent
716
717      The PKCS#7 parsing code does not handle missing inner EncryptedContent
718      correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs
719      with missing content and trigger a NULL pointer dereference on parsing.
720
721      Applications that decrypt PKCS#7 data or otherwise parse PKCS#7
722      structures from untrusted sources are affected. OpenSSL clients and
723      servers are not affected.
724
725      This issue was reported to OpenSSL by Michal Zalewski (Google).
726      (CVE-2015-1790)
727      [Emilia Käsper]
728
729   *) CMS verify infinite loop with unknown hash function
730
731      When verifying a signedData message the CMS code can enter an infinite loop
732      if presented with an unknown hash function OID. This can be used to perform
733      denial of service against any system which verifies signedData messages using
734      the CMS code.
735      This issue was reported to OpenSSL by Johannes Bauer.
736      (CVE-2015-1792)
737      [Stephen Henson]
738
739   *) Race condition handling NewSessionTicket
740
741      If a NewSessionTicket is received by a multi-threaded client when attempting to
742      reuse a previous ticket then a race condition can occur potentially leading to
743      a double free of the ticket data.
744      (CVE-2015-1791)
745      [Matt Caswell]
746
747   *) Only support 256-bit or stronger elliptic curves with the
748      'ecdh_auto' setting (server) or by default (client). Of supported
749      curves, prefer P-256 (both).
750      [Emilia Kasper]
751
752  Changes between 1.0.2 and 1.0.2a [19 Mar 2015]
753
754   *) ClientHello sigalgs DoS fix
755
756      If a client connects to an OpenSSL 1.0.2 server and renegotiates with an
757      invalid signature algorithms extension a NULL pointer dereference will
758      occur. This can be exploited in a DoS attack against the server.
759
760      This issue was was reported to OpenSSL by David Ramos of Stanford
761      University.
762      (CVE-2015-0291)
763      [Stephen Henson and Matt Caswell]
764
765   *) Multiblock corrupted pointer fix
766
767      OpenSSL 1.0.2 introduced the "multiblock" performance improvement. This
768      feature only applies on 64 bit x86 architecture platforms that support AES
769      NI instructions. A defect in the implementation of "multiblock" can cause
770      OpenSSL's internal write buffer to become incorrectly set to NULL when
771      using non-blocking IO. Typically, when the user application is using a
772      socket BIO for writing, this will only result in a failed connection.
773      However if some other BIO is used then it is likely that a segmentation
774      fault will be triggered, thus enabling a potential DoS attack.
775
776      This issue was reported to OpenSSL by Daniel Danner and Rainer Mueller.
777      (CVE-2015-0290)
778      [Matt Caswell]
779
780   *) Segmentation fault in DTLSv1_listen fix
781
782      The DTLSv1_listen function is intended to be stateless and processes the
783      initial ClientHello from many peers. It is common for user code to loop
784      over the call to DTLSv1_listen until a valid ClientHello is received with
785      an associated cookie. A defect in the implementation of DTLSv1_listen means
786      that state is preserved in the SSL object from one invocation to the next
787      that can lead to a segmentation fault. Errors processing the initial
788      ClientHello can trigger this scenario. An example of such an error could be
789      that a DTLS1.0 only client is attempting to connect to a DTLS1.2 only
790      server.
791
792      This issue was reported to OpenSSL by Per Allansson.
793      (CVE-2015-0207)
794      [Matt Caswell]
795
796   *) Segmentation fault in ASN1_TYPE_cmp fix
797
798      The function ASN1_TYPE_cmp will crash with an invalid read if an attempt is
799      made to compare ASN.1 boolean types. Since ASN1_TYPE_cmp is used to check
800      certificate signature algorithm consistency this can be used to crash any
801      certificate verification operation and exploited in a DoS attack. Any
802      application which performs certificate verification is vulnerable including
803      OpenSSL clients and servers which enable client authentication.
804      (CVE-2015-0286)
805      [Stephen Henson]
806
807   *) Segmentation fault for invalid PSS parameters fix
808
809      The signature verification routines will crash with a NULL pointer
810      dereference if presented with an ASN.1 signature using the RSA PSS
811      algorithm and invalid parameters. Since these routines are used to verify
812      certificate signature algorithms this can be used to crash any
813      certificate verification operation and exploited in a DoS attack. Any
814      application which performs certificate verification is vulnerable including
815      OpenSSL clients and servers which enable client authentication.
816
817      This issue was was reported to OpenSSL by Brian Carpenter.
818      (CVE-2015-0208)
819      [Stephen Henson]
820
821   *) ASN.1 structure reuse memory corruption fix
822
823      Reusing a structure in ASN.1 parsing may allow an attacker to cause
824      memory corruption via an invalid write. Such reuse is and has been
825      strongly discouraged and is believed to be rare.
826
827      Applications that parse structures containing CHOICE or ANY DEFINED BY
828      components may be affected. Certificate parsing (d2i_X509 and related
829      functions) are however not affected. OpenSSL clients and servers are
830      not affected.
831      (CVE-2015-0287)
832      [Stephen Henson]
833
834   *) PKCS7 NULL pointer dereferences fix
835
836      The PKCS#7 parsing code does not handle missing outer ContentInfo
837      correctly. An attacker can craft malformed ASN.1-encoded PKCS#7 blobs with
838      missing content and trigger a NULL pointer dereference on parsing.
839
840      Applications that verify PKCS#7 signatures, decrypt PKCS#7 data or
841      otherwise parse PKCS#7 structures from untrusted sources are
842      affected. OpenSSL clients and servers are not affected.
843
844      This issue was reported to OpenSSL by Michal Zalewski (Google).
845      (CVE-2015-0289)
846      [Emilia Käsper]
847
848   *) DoS via reachable assert in SSLv2 servers fix
849
850      A malicious client can trigger an OPENSSL_assert (i.e., an abort) in
851      servers that both support SSLv2 and enable export cipher suites by sending
852      a specially crafted SSLv2 CLIENT-MASTER-KEY message.
853
854      This issue was discovered by Sean Burford (Google) and Emilia Käsper
855      (OpenSSL development team).
856      (CVE-2015-0293)
857      [Emilia Käsper]
858
859   *) Empty CKE with client auth and DHE fix
860
861      If client auth is used then a server can seg fault in the event of a DHE
862      ciphersuite being selected and a zero length ClientKeyExchange message
863      being sent by the client. This could be exploited in a DoS attack.
864      (CVE-2015-1787)
865      [Matt Caswell]
866
867   *) Handshake with unseeded PRNG fix
868
869      Under certain conditions an OpenSSL 1.0.2 client can complete a handshake
870      with an unseeded PRNG. The conditions are:
871      - The client is on a platform where the PRNG has not been seeded
872      automatically, and the user has not seeded manually
873      - A protocol specific client method version has been used (i.e. not
874      SSL_client_methodv23)
875      - A ciphersuite is used that does not require additional random data from
876      the PRNG beyond the initial ClientHello client random (e.g. PSK-RC4-SHA).
877
878      If the handshake succeeds then the client random that has been used will
879      have been generated from a PRNG with insufficient entropy and therefore the
880      output may be predictable.
881
882      For example using the following command with an unseeded openssl will
883      succeed on an unpatched platform:
884
885      openssl s_client -psk 1a2b3c4d -tls1_2 -cipher PSK-RC4-SHA
886      (CVE-2015-0285)
887      [Matt Caswell]
888
889   *) Use After Free following d2i_ECPrivatekey error fix
890
891      A malformed EC private key file consumed via the d2i_ECPrivateKey function
892      could cause a use after free condition. This, in turn, could cause a double
893      free in several private key parsing functions (such as d2i_PrivateKey
894      or EVP_PKCS82PKEY) and could lead to a DoS attack or memory corruption
895      for applications that receive EC private keys from untrusted
896      sources. This scenario is considered rare.
897
898      This issue was discovered by the BoringSSL project and fixed in their
899      commit 517073cd4b.
900      (CVE-2015-0209)
901      [Matt Caswell]
902
903   *) X509_to_X509_REQ NULL pointer deref fix
904
905      The function X509_to_X509_REQ will crash with a NULL pointer dereference if
906      the certificate key is invalid. This function is rarely used in practice.
907
908      This issue was discovered by Brian Carpenter.
909      (CVE-2015-0288)
910      [Stephen Henson]
911
912   *) Removed the export ciphers from the DEFAULT ciphers
913      [Kurt Roeckx]
914
915  Changes between 1.0.1l and 1.0.2 [22 Jan 2015]
916
917   *) Facilitate "universal" ARM builds targeting range of ARM ISAs, e.g.
918      ARMv5 through ARMv8, as opposite to "locking" it to single one.
919      So far those who have to target multiple plaforms would compromise
920      and argue that binary targeting say ARMv5 would still execute on
921      ARMv8. "Universal" build resolves this compromise by providing
922      near-optimal performance even on newer platforms.
923      [Andy Polyakov]
924
925   *) Accelerated NIST P-256 elliptic curve implementation for x86_64
926      (other platforms pending).
927      [Shay Gueron & Vlad Krasnov (Intel Corp), Andy Polyakov]
928
929   *) Add support for the SignedCertificateTimestampList certificate and
930      OCSP response extensions from RFC6962.
931      [Rob Stradling]
932
933   *) Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
934      for corner cases. (Certain input points at infinity could lead to
935      bogus results, with non-infinity inputs mapped to infinity too.)
936      [Bodo Moeller]
937
938   *) Initial support for PowerISA 2.0.7, first implemented in POWER8.
939      This covers AES, SHA256/512 and GHASH. "Initial" means that most
940      common cases are optimized and there still is room for further
941      improvements. Vector Permutation AES for Altivec is also added.
942      [Andy Polyakov]
943
944   *) Add support for little-endian ppc64 Linux target.
945      [Marcelo Cerri (IBM)]
946
947   *) Initial support for AMRv8 ISA crypto extensions. This covers AES,
948      SHA1, SHA256 and GHASH. "Initial" means that most common cases
949      are optimized and there still is room for further improvements.
950      Both 32- and 64-bit modes are supported.
951      [Andy Polyakov, Ard Biesheuvel (Linaro)]
952
953   *) Improved ARMv7 NEON support.
954      [Andy Polyakov]
955
956   *) Support for SPARC Architecture 2011 crypto extensions, first
957      implemented in SPARC T4. This covers AES, DES, Camellia, SHA1,
958      SHA256/512, MD5, GHASH and modular exponentiation.
959      [Andy Polyakov, David Miller]
960
961   *) Accelerated modular exponentiation for Intel processors, a.k.a.
962      RSAZ.
963      [Shay Gueron & Vlad Krasnov (Intel Corp)]
964
965   *) Support for new and upcoming Intel processors, including AVX2,
966      BMI and SHA ISA extensions. This includes additional "stitched"
967      implementations, AESNI-SHA256 and GCM, and multi-buffer support
968      for TLS encrypt.
969
970      This work was sponsored by Intel Corp.
971      [Andy Polyakov]
972
973   *) Support for DTLS 1.2. This adds two sets of DTLS methods: DTLS_*_method()
974      supports both DTLS 1.2 and 1.0 and should use whatever version the peer
975      supports and DTLSv1_2_*_method() which supports DTLS 1.2 only.
976      [Steve Henson]
977
978   *) Use algorithm specific chains in SSL_CTX_use_certificate_chain_file():
979      this fixes a limiation in previous versions of OpenSSL.
980      [Steve Henson]
981
982   *) Extended RSA OAEP support via EVP_PKEY API. Options to specify digest,
983      MGF1 digest and OAEP label.
984      [Steve Henson]
985
986   *) Add EVP support for key wrapping algorithms, to avoid problems with
987      existing code the flag EVP_CIPHER_CTX_WRAP_ALLOW has to be set in
988      the EVP_CIPHER_CTX or an error is returned. Add AES and DES3 wrap
989      algorithms and include tests cases.
990      [Steve Henson]
991
992   *) Add functions to allocate and set the fields of an ECDSA_METHOD
993      structure.
994      [Douglas E. Engert, Steve Henson]
995
996   *) New functions OPENSSL_gmtime_diff and ASN1_TIME_diff to find the
997      difference in days and seconds between two tm or ASN1_TIME structures.
998      [Steve Henson]
999
1000   *) Add -rev test option to s_server to just reverse order of characters
1001      received by client and send back to server. Also prints an abbreviated
1002      summary of the connection parameters.
1003      [Steve Henson]
1004
1005   *) New option -brief for s_client and s_server to print out a brief summary
1006      of connection parameters.
1007      [Steve Henson]
1008
1009   *) Add callbacks for arbitrary TLS extensions.
1010      [Trevor Perrin <trevp@trevp.net> and Ben Laurie]
1011
1012   *) New option -crl_download in several openssl utilities to download CRLs
1013      from CRLDP extension in certificates.
1014      [Steve Henson]
1015
1016   *) New options -CRL and -CRLform for s_client and s_server for CRLs.
1017      [Steve Henson]
1018
1019   *) New function X509_CRL_diff to generate a delta CRL from the difference
1020      of two full CRLs. Add support to "crl" utility.
1021      [Steve Henson]
1022
1023   *) New functions to set lookup_crls function and to retrieve
1024      X509_STORE from X509_STORE_CTX.
1025      [Steve Henson]
1026
1027   *) Print out deprecated issuer and subject unique ID fields in
1028      certificates.
1029      [Steve Henson]
1030
1031   *) Extend OCSP I/O functions so they can be used for simple general purpose
1032      HTTP as well as OCSP. New wrapper function which can be used to download
1033      CRLs using the OCSP API.
1034      [Steve Henson]
1035
1036   *) Delegate command line handling in s_client/s_server to SSL_CONF APIs.
1037      [Steve Henson]
1038
1039   *) SSL_CONF* functions. These provide a common framework for application
1040      configuration using configuration files or command lines.
1041      [Steve Henson]
1042
1043   *) SSL/TLS tracing code. This parses out SSL/TLS records using the
1044      message callback and prints the results. Needs compile time option
1045      "enable-ssl-trace". New options to s_client and s_server to enable
1046      tracing.
1047      [Steve Henson]
1048
1049   *) New ctrl and macro to retrieve supported points extensions.
1050      Print out extension in s_server and s_client.
1051      [Steve Henson]
1052
1053   *) New functions to retrieve certificate signature and signature
1054      OID NID.
1055      [Steve Henson]
1056
1057   *) Add functions to retrieve and manipulate the raw cipherlist sent by a
1058      client to OpenSSL.
1059      [Steve Henson]
1060
1061   *) New Suite B modes for TLS code. These use and enforce the requirements
1062      of RFC6460: restrict ciphersuites, only permit Suite B algorithms and
1063      only use Suite B curves. The Suite B modes can be set by using the
1064      strings "SUITEB128", "SUITEB192" or "SUITEB128ONLY" for the cipherstring.
1065      [Steve Henson]
1066
1067   *) New chain verification flags for Suite B levels of security. Check
1068      algorithms are acceptable when flags are set in X509_verify_cert.
1069      [Steve Henson]
1070
1071   *) Make tls1_check_chain return a set of flags indicating checks passed
1072      by a certificate chain. Add additional tests to handle client
1073      certificates: checks for matching certificate type and issuer name
1074      comparison.
1075      [Steve Henson]
1076
1077   *) If an attempt is made to use a signature algorithm not in the peer
1078      preference list abort the handshake. If client has no suitable
1079      signature algorithms in response to a certificate request do not
1080      use the certificate.
1081      [Steve Henson]
1082
1083   *) If server EC tmp key is not in client preference list abort handshake.
1084      [Steve Henson]
1085
1086   *) Add support for certificate stores in CERT structure. This makes it
1087      possible to have different stores per SSL structure or one store in
1088      the parent SSL_CTX. Include distint stores for certificate chain
1089      verification and chain building. New ctrl SSL_CTRL_BUILD_CERT_CHAIN
1090      to build and store a certificate chain in CERT structure: returing
1091      an error if the chain cannot be built: this will allow applications
1092      to test if a chain is correctly configured.
1093
1094      Note: if the CERT based stores are not set then the parent SSL_CTX
1095      store is used to retain compatibility with existing behaviour.
1096
1097      [Steve Henson]
1098
1099   *) New function ssl_set_client_disabled to set a ciphersuite disabled
1100      mask based on the current session, check mask when sending client
1101      hello and checking the requested ciphersuite.
1102      [Steve Henson]
1103
1104   *) New ctrls to retrieve and set certificate types in a certificate
1105      request message. Print out received values in s_client. If certificate
1106      types is not set with custom values set sensible values based on
1107      supported signature algorithms.
1108      [Steve Henson]
1109
1110   *) Support for distinct client and server supported signature algorithms.
1111      [Steve Henson]
1112
1113   *) Add certificate callback. If set this is called whenever a certificate
1114      is required by client or server. An application can decide which
1115      certificate chain to present based on arbitrary criteria: for example
1116      supported signature algorithms. Add very simple example to s_server.
1117      This fixes many of the problems and restrictions of the existing client
1118      certificate callback: for example you can now clear an existing
1119      certificate and specify the whole chain.
1120      [Steve Henson]
1121
1122   *) Add new "valid_flags" field to CERT_PKEY structure which determines what
1123      the certificate can be used for (if anything). Set valid_flags field 
1124      in new tls1_check_chain function. Simplify ssl_set_cert_masks which used
1125      to have similar checks in it.
1126
1127      Add new "cert_flags" field to CERT structure and include a "strict mode".
1128      This enforces some TLS certificate requirements (such as only permitting
1129      certificate signature algorithms contained in the supported algorithms
1130      extension) which some implementations ignore: this option should be used
1131      with caution as it could cause interoperability issues.
1132      [Steve Henson]
1133
1134   *) Update and tidy signature algorithm extension processing. Work out
1135      shared signature algorithms based on preferences and peer algorithms
1136      and print them out in s_client and s_server. Abort handshake if no
1137      shared signature algorithms.
1138      [Steve Henson]
1139
1140   *) Add new functions to allow customised supported signature algorithms
1141      for SSL and SSL_CTX structures. Add options to s_client and s_server
1142      to support them.
1143      [Steve Henson]
1144
1145   *) New function SSL_certs_clear() to delete all references to certificates
1146      from an SSL structure. Before this once a certificate had been added
1147      it couldn't be removed.
1148      [Steve Henson]
1149
1150   *) Integrate hostname, email address and IP address checking with certificate
1151      verification. New verify options supporting checking in opensl utility.
1152      [Steve Henson]
1153
1154   *) Fixes and wildcard matching support to hostname and email checking
1155      functions. Add manual page.
1156      [Florian Weimer (Red Hat Product Security Team)]
1157
1158   *) New functions to check a hostname email or IP address against a
1159      certificate. Add options x509 utility to print results of checks against
1160      a certificate.
1161      [Steve Henson]
1162
1163   *) Fix OCSP checking.
1164      [Rob Stradling <rob.stradling@comodo.com> and Ben Laurie]
1165
1166   *) Initial experimental support for explicitly trusted non-root CAs. 
1167      OpenSSL still tries to build a complete chain to a root but if an
1168      intermediate CA has a trust setting included that is used. The first
1169      setting is used: whether to trust (e.g., -addtrust option to the x509
1170      utility) or reject.
1171      [Steve Henson]
1172
1173   *) Add -trusted_first option which attempts to find certificates in the
1174      trusted store even if an untrusted chain is also supplied.
1175      [Steve Henson]
1176
1177   *) MIPS assembly pack updates: support for MIPS32r2 and SmartMIPS ASE,
1178      platform support for Linux and Android.
1179      [Andy Polyakov]
1180
1181   *) Support for linux-x32, ILP32 environment in x86_64 framework.
1182      [Andy Polyakov]
1183
1184   *) Experimental multi-implementation support for FIPS capable OpenSSL.
1185      When in FIPS mode the approved implementations are used as normal,
1186      when not in FIPS mode the internal unapproved versions are used instead.
1187      This means that the FIPS capable OpenSSL isn't forced to use the
1188      (often lower performance) FIPS implementations outside FIPS mode.
1189      [Steve Henson]
1190
1191   *) Transparently support X9.42 DH parameters when calling
1192      PEM_read_bio_DHparameters. This means existing applications can handle
1193      the new parameter format automatically.
1194      [Steve Henson]
1195
1196   *) Initial experimental support for X9.42 DH parameter format: mainly
1197      to support use of 'q' parameter for RFC5114 parameters.
1198      [Steve Henson]
1199
1200   *) Add DH parameters from RFC5114 including test data to dhtest.
1201      [Steve Henson]
1202
1203   *) Support for automatic EC temporary key parameter selection. If enabled
1204      the most preferred EC parameters are automatically used instead of
1205      hardcoded fixed parameters. Now a server just has to call:
1206      SSL_CTX_set_ecdh_auto(ctx, 1) and the server will automatically
1207      support ECDH and use the most appropriate parameters.
1208      [Steve Henson]
1209
1210   *) Enhance and tidy EC curve and point format TLS extension code. Use
1211      static structures instead of allocation if default values are used.
1212      New ctrls to set curves we wish to support and to retrieve shared curves.
1213      Print out shared curves in s_server. New options to s_server and s_client
1214      to set list of supported curves.
1215      [Steve Henson]
1216
1217   *) New ctrls to retrieve supported signature algorithms and 
1218      supported curve values as an array of NIDs. Extend openssl utility
1219      to print out received values.
1220      [Steve Henson]
1221
1222   *) Add new APIs EC_curve_nist2nid and EC_curve_nid2nist which convert
1223      between NIDs and the more common NIST names such as "P-256". Enhance
1224      ecparam utility and ECC method to recognise the NIST names for curves.
1225      [Steve Henson]
1226
1227   *) Enhance SSL/TLS certificate chain handling to support different
1228      chains for each certificate instead of one chain in the parent SSL_CTX.
1229      [Steve Henson]
1230
1231   *) Support for fixed DH ciphersuite client authentication: where both
1232      server and client use DH certificates with common parameters.
1233      [Steve Henson]
1234
1235   *) Support for fixed DH ciphersuites: those requiring DH server
1236      certificates.
1237      [Steve Henson]
1238
1239   *) New function i2d_re_X509_tbs for re-encoding the TBS portion of
1240      the certificate.
1241      Note: Related 1.0.2-beta specific macros X509_get_cert_info,
1242      X509_CINF_set_modified, X509_CINF_get_issuer, X509_CINF_get_extensions and
1243      X509_CINF_get_signature were reverted post internal team review.
1244
1245  Changes between 1.0.1k and 1.0.1l [15 Jan 2015]
1246
1247   *) Build fixes for the Windows and OpenVMS platforms
1248      [Matt Caswell and Richard Levitte]
1249
1250  Changes between 1.0.1j and 1.0.1k [8 Jan 2015]
1251
1252   *) Fix DTLS segmentation fault in dtls1_get_record. A carefully crafted DTLS
1253      message can cause a segmentation fault in OpenSSL due to a NULL pointer
1254      dereference. This could lead to a Denial Of Service attack. Thanks to
1255      Markus Stenberg of Cisco Systems, Inc. for reporting this issue.
1256      (CVE-2014-3571)
1257      [Steve Henson]
1258
1259   *) Fix DTLS memory leak in dtls1_buffer_record. A memory leak can occur in the
1260      dtls1_buffer_record function under certain conditions. In particular this
1261      could occur if an attacker sent repeated DTLS records with the same
1262      sequence number but for the next epoch. The memory leak could be exploited
1263      by an attacker in a Denial of Service attack through memory exhaustion.
1264      Thanks to Chris Mueller for reporting this issue.
1265      (CVE-2015-0206)
1266      [Matt Caswell]
1267
1268   *) Fix issue where no-ssl3 configuration sets method to NULL. When openssl is
1269      built with the no-ssl3 option and a SSL v3 ClientHello is received the ssl
1270      method would be set to NULL which could later result in a NULL pointer
1271      dereference. Thanks to Frank Schmirler for reporting this issue.
1272      (CVE-2014-3569)
1273      [Kurt Roeckx]
1274
1275   *) Abort handshake if server key exchange message is omitted for ephemeral
1276      ECDH ciphersuites.
1277
1278      Thanks to Karthikeyan Bhargavan of the PROSECCO team at INRIA for
1279      reporting this issue.
1280      (CVE-2014-3572)
1281      [Steve Henson]
1282
1283   *) Remove non-export ephemeral RSA code on client and server. This code
1284      violated the TLS standard by allowing the use of temporary RSA keys in
1285      non-export ciphersuites and could be used by a server to effectively
1286      downgrade the RSA key length used to a value smaller than the server
1287      certificate. Thanks for Karthikeyan Bhargavan of the PROSECCO team at
1288      INRIA or reporting this issue.
1289      (CVE-2015-0204)
1290      [Steve Henson]
1291
1292   *) Fixed issue where DH client certificates are accepted without verification.
1293      An OpenSSL server will accept a DH certificate for client authentication
1294      without the certificate verify message. This effectively allows a client to
1295      authenticate without the use of a private key. This only affects servers
1296      which trust a client certificate authority which issues certificates
1297      containing DH keys: these are extremely rare and hardly ever encountered.
1298      Thanks for Karthikeyan Bhargavan of the PROSECCO team at INRIA or reporting
1299      this issue.
1300      (CVE-2015-0205)
1301      [Steve Henson]
1302
1303   *) Ensure that the session ID context of an SSL is updated when its
1304      SSL_CTX is updated via SSL_set_SSL_CTX.
1305
1306      The session ID context is typically set from the parent SSL_CTX,
1307      and can vary with the CTX.
1308      [Adam Langley]
1309
1310   *) Fix various certificate fingerprint issues.
1311
1312      By using non-DER or invalid encodings outside the signed portion of a
1313      certificate the fingerprint can be changed without breaking the signature.
1314      Although no details of the signed portion of the certificate can be changed
1315      this can cause problems with some applications: e.g. those using the
1316      certificate fingerprint for blacklists.
1317
1318      1. Reject signatures with non zero unused bits.
1319
1320      If the BIT STRING containing the signature has non zero unused bits reject
1321      the signature. All current signature algorithms require zero unused bits.
1322
1323      2. Check certificate algorithm consistency.
1324
1325      Check the AlgorithmIdentifier inside TBS matches the one in the
1326      certificate signature. NB: this will result in signature failure
1327      errors for some broken certificates.
1328
1329      Thanks to Konrad Kraszewski from Google for reporting this issue.
1330
1331      3. Check DSA/ECDSA signatures use DER.
1332
1333      Reencode DSA/ECDSA signatures and compare with the original received
1334      signature. Return an error if there is a mismatch.
1335
1336      This will reject various cases including garbage after signature
1337      (thanks to Antti Karjalainen and Tuomo Untinen from the Codenomicon CROSS
1338      program for discovering this case) and use of BER or invalid ASN.1 INTEGERs
1339      (negative or with leading zeroes).
1340
1341      Further analysis was conducted and fixes were developed by Stephen Henson
1342      of the OpenSSL core team.
1343
1344      (CVE-2014-8275)
1345      [Steve Henson]
1346
1347    *) Correct Bignum squaring. Bignum squaring (BN_sqr) may produce incorrect
1348       results on some platforms, including x86_64. This bug occurs at random
1349       with a very low probability, and is not known to be exploitable in any
1350       way, though its exact impact is difficult to determine. Thanks to Pieter
1351       Wuille (Blockstream) who reported this issue and also suggested an initial
1352       fix. Further analysis was conducted by the OpenSSL development team and
1353       Adam Langley of Google. The final fix was developed by Andy Polyakov of
1354       the OpenSSL core team.
1355       (CVE-2014-3570)
1356       [Andy Polyakov]
1357
1358    *) Do not resume sessions on the server if the negotiated protocol
1359       version does not match the session's version. Resuming with a different
1360       version, while not strictly forbidden by the RFC, is of questionable
1361       sanity and breaks all known clients.
1362       [David Benjamin, Emilia Käsper]
1363
1364    *) Tighten handling of the ChangeCipherSpec (CCS) message: reject
1365       early CCS messages during renegotiation. (Note that because
1366       renegotiation is encrypted, this early CCS was not exploitable.)
1367       [Emilia Käsper]
1368
1369    *) Tighten client-side session ticket handling during renegotiation:
1370       ensure that the client only accepts a session ticket if the server sends
1371       the extension anew in the ServerHello. Previously, a TLS client would
1372       reuse the old extension state and thus accept a session ticket if one was
1373       announced in the initial ServerHello.
1374
1375       Similarly, ensure that the client requires a session ticket if one
1376       was advertised in the ServerHello. Previously, a TLS client would
1377       ignore a missing NewSessionTicket message.
1378       [Emilia Käsper]
1379
1380  Changes between 1.0.1i and 1.0.1j [15 Oct 2014]
1381
1382   *) SRTP Memory Leak.
1383
1384      A flaw in the DTLS SRTP extension parsing code allows an attacker, who
1385      sends a carefully crafted handshake message, to cause OpenSSL to fail
1386      to free up to 64k of memory causing a memory leak. This could be
1387      exploited in a Denial Of Service attack. This issue affects OpenSSL
1388      1.0.1 server implementations for both SSL/TLS and DTLS regardless of
1389      whether SRTP is used or configured. Implementations of OpenSSL that
1390      have been compiled with OPENSSL_NO_SRTP defined are not affected.
1391
1392      The fix was developed by the OpenSSL team.
1393      (CVE-2014-3513)
1394      [OpenSSL team]
1395
1396   *) Session Ticket Memory Leak.
1397
1398      When an OpenSSL SSL/TLS/DTLS server receives a session ticket the
1399      integrity of that ticket is first verified. In the event of a session
1400      ticket integrity check failing, OpenSSL will fail to free memory
1401      causing a memory leak. By sending a large number of invalid session
1402      tickets an attacker could exploit this issue in a Denial Of Service
1403      attack.
1404      (CVE-2014-3567)
1405      [Steve Henson]
1406
1407   *) Build option no-ssl3 is incomplete.
1408
1409      When OpenSSL is configured with "no-ssl3" as a build option, servers
1410      could accept and complete a SSL 3.0 handshake, and clients could be
1411      configured to send them.
1412      (CVE-2014-3568)
1413      [Akamai and the OpenSSL team]
1414
1415   *) Add support for TLS_FALLBACK_SCSV.
1416      Client applications doing fallback retries should call
1417      SSL_set_mode(s, SSL_MODE_SEND_FALLBACK_SCSV).
1418      (CVE-2014-3566)
1419      [Adam Langley, Bodo Moeller]
1420
1421   *) Add additional DigestInfo checks.
1422  
1423      Reencode DigestInto in DER and check against the original when
1424      verifying RSA signature: this will reject any improperly encoded
1425      DigestInfo structures.
1426
1427      Note: this is a precautionary measure and no attacks are currently known.
1428
1429      [Steve Henson]
1430
1431  Changes between 1.0.1h and 1.0.1i [6 Aug 2014]
1432
1433   *) Fix SRP buffer overrun vulnerability. Invalid parameters passed to the
1434      SRP code can be overrun an internal buffer. Add sanity check that
1435      g, A, B < N to SRP code.
1436
1437      Thanks to Sean Devlin and Watson Ladd of Cryptography Services, NCC
1438      Group for discovering this issue.
1439      (CVE-2014-3512)
1440      [Steve Henson]
1441
1442   *) A flaw in the OpenSSL SSL/TLS server code causes the server to negotiate
1443      TLS 1.0 instead of higher protocol versions when the ClientHello message
1444      is badly fragmented. This allows a man-in-the-middle attacker to force a
1445      downgrade to TLS 1.0 even if both the server and the client support a
1446      higher protocol version, by modifying the client's TLS records.
1447
1448      Thanks to David Benjamin and Adam Langley (Google) for discovering and
1449      researching this issue.
1450      (CVE-2014-3511)
1451      [David Benjamin]
1452
1453   *) OpenSSL DTLS clients enabling anonymous (EC)DH ciphersuites are subject
1454      to a denial of service attack. A malicious server can crash the client
1455      with a null pointer dereference (read) by specifying an anonymous (EC)DH
1456      ciphersuite and sending carefully crafted handshake messages.
1457
1458      Thanks to Felix Gröbert (Google) for discovering and researching this
1459      issue.
1460      (CVE-2014-3510)
1461      [Emilia Käsper]
1462
1463   *) By sending carefully crafted DTLS packets an attacker could cause openssl
1464      to leak memory. This can be exploited through a Denial of Service attack.
1465      Thanks to Adam Langley for discovering and researching this issue.
1466      (CVE-2014-3507)
1467      [Adam Langley]
1468
1469   *) An attacker can force openssl to consume large amounts of memory whilst
1470      processing DTLS handshake messages. This can be exploited through a
1471      Denial of Service attack.
1472      Thanks to Adam Langley for discovering and researching this issue.
1473      (CVE-2014-3506)
1474      [Adam Langley]
1475
1476   *) An attacker can force an error condition which causes openssl to crash
1477      whilst processing DTLS packets due to memory being freed twice. This
1478      can be exploited through a Denial of Service attack.
1479      Thanks to Adam Langley and Wan-Teh Chang for discovering and researching
1480      this issue.
1481      (CVE-2014-3505)
1482      [Adam Langley]
1483
1484   *) If a multithreaded client connects to a malicious server using a resumed
1485      session and the server sends an ec point format extension it could write
1486      up to 255 bytes to freed memory.
1487
1488      Thanks to Gabor Tyukasz (LogMeIn Inc) for discovering and researching this
1489      issue.
1490      (CVE-2014-3509)
1491      [Gabor Tyukasz]
1492
1493   *) A malicious server can crash an OpenSSL client with a null pointer
1494      dereference (read) by specifying an SRP ciphersuite even though it was not
1495      properly negotiated with the client. This can be exploited through a
1496      Denial of Service attack.
1497
1498      Thanks to Joonas Kuorilehto and Riku Hietamäki (Codenomicon) for
1499      discovering and researching this issue.
1500      (CVE-2014-5139)
1501      [Steve Henson]
1502
1503   *) A flaw in OBJ_obj2txt may cause pretty printing functions such as
1504      X509_name_oneline, X509_name_print_ex et al. to leak some information
1505      from the stack. Applications may be affected if they echo pretty printing
1506      output to the attacker.
1507
1508      Thanks to Ivan Fratric (Google) for discovering this issue.
1509      (CVE-2014-3508)
1510      [Emilia Käsper, and Steve Henson]
1511
1512   *) Fix ec_GFp_simple_points_make_affine (thus, EC_POINTs_mul etc.)
1513      for corner cases. (Certain input points at infinity could lead to
1514      bogus results, with non-infinity inputs mapped to infinity too.)
1515      [Bodo Moeller]
1516
1517  Changes between 1.0.1g and 1.0.1h [5 Jun 2014]
1518
1519   *) Fix for SSL/TLS MITM flaw. An attacker using a carefully crafted
1520      handshake can force the use of weak keying material in OpenSSL
1521      SSL/TLS clients and servers.
1522
1523      Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for discovering and
1524      researching this issue. (CVE-2014-0224)
1525      [KIKUCHI Masashi, Steve Henson]
1526
1527   *) Fix DTLS recursion flaw. By sending an invalid DTLS handshake to an
1528      OpenSSL DTLS client the code can be made to recurse eventually crashing
1529      in a DoS attack.
1530
1531      Thanks to Imre Rad (Search-Lab Ltd.) for discovering this issue.
1532      (CVE-2014-0221)
1533      [Imre Rad, Steve Henson]
1534
1535   *) Fix DTLS invalid fragment vulnerability. A buffer overrun attack can
1536      be triggered by sending invalid DTLS fragments to an OpenSSL DTLS
1537      client or server. This is potentially exploitable to run arbitrary
1538      code on a vulnerable client or server.
1539
1540      Thanks to Jüri Aedla for reporting this issue. (CVE-2014-0195)
1541      [Jüri Aedla, Steve Henson]
1542
1543   *) Fix bug in TLS code where clients enable anonymous ECDH ciphersuites
1544      are subject to a denial of service attack.
1545
1546      Thanks to Felix Gröbert and Ivan Fratric at Google for discovering
1547      this issue. (CVE-2014-3470)
1548      [Felix Gröbert, Ivan Fratric, Steve Henson]
1549
1550   *) Harmonize version and its documentation. -f flag is used to display
1551      compilation flags.
1552      [mancha <mancha1@zoho.com>]
1553
1554   *) Fix eckey_priv_encode so it immediately returns an error upon a failure
1555      in i2d_ECPrivateKey.
1556      [mancha <mancha1@zoho.com>]
1557
1558   *) Fix some double frees. These are not thought to be exploitable.
1559      [mancha <mancha1@zoho.com>]
1560
1561  Changes between 1.0.1f and 1.0.1g [7 Apr 2014]
1562
1563   *) A missing bounds check in the handling of the TLS heartbeat extension
1564      can be used to reveal up to 64k of memory to a connected client or
1565      server.
1566
1567      Thanks for Neel Mehta of Google Security for discovering this bug and to
1568      Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
1569      preparing the fix (CVE-2014-0160)
1570      [Adam Langley, Bodo Moeller]
1571
1572   *) Fix for the attack described in the paper "Recovering OpenSSL
1573      ECDSA Nonces Using the FLUSH+RELOAD Cache Side-channel Attack"
1574      by Yuval Yarom and Naomi Benger. Details can be obtained from:
1575      http://eprint.iacr.org/2014/140
1576
1577      Thanks to Yuval Yarom and Naomi Benger for discovering this
1578      flaw and to Yuval Yarom for supplying a fix (CVE-2014-0076)
1579      [Yuval Yarom and Naomi Benger]
1580
1581   *) TLS pad extension: draft-agl-tls-padding-03
1582
1583      Workaround for the "TLS hang bug" (see FAQ and PR#2771): if the
1584      TLS client Hello record length value would otherwise be > 255 and
1585      less that 512 pad with a dummy extension containing zeroes so it
1586      is at least 512 bytes long.
1587
1588      [Adam Langley, Steve Henson]
1589
1590  Changes between 1.0.1e and 1.0.1f [6 Jan 2014]
1591
1592   *) Fix for TLS record tampering bug. A carefully crafted invalid 
1593      handshake could crash OpenSSL with a NULL pointer exception.
1594      Thanks to Anton Johansson for reporting this issues.
1595      (CVE-2013-4353)
1596
1597   *) Keep original DTLS digest and encryption contexts in retransmission
1598      structures so we can use the previous session parameters if they need
1599      to be resent. (CVE-2013-6450)
1600      [Steve Henson]
1601
1602   *) Add option SSL_OP_SAFARI_ECDHE_ECDSA_BUG (part of SSL_OP_ALL) which
1603      avoids preferring ECDHE-ECDSA ciphers when the client appears to be
1604      Safari on OS X.  Safari on OS X 10.8..10.8.3 advertises support for
1605      several ECDHE-ECDSA ciphers, but fails to negotiate them.  The bug
1606      is fixed in OS X 10.8.4, but Apple have ruled out both hot fixing
1607      10.8..10.8.3 and forcing users to upgrade to 10.8.4 or newer.
1608      [Rob Stradling, Adam Langley]
1609
1610  Changes between 1.0.1d and 1.0.1e [11 Feb 2013]
1611
1612   *) Correct fix for CVE-2013-0169. The original didn't work on AES-NI
1613      supporting platforms or when small records were transferred.
1614      [Andy Polyakov, Steve Henson]
1615
1616  Changes between 1.0.1c and 1.0.1d [5 Feb 2013]
1617
1618   *) Make the decoding of SSLv3, TLS and DTLS CBC records constant time.
1619
1620      This addresses the flaw in CBC record processing discovered by 
1621      Nadhem Alfardan and Kenny Paterson. Details of this attack can be found
1622      at: http://www.isg.rhul.ac.uk/tls/     
1623
1624      Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
1625      Security Group at Royal Holloway, University of London
1626      (www.isg.rhul.ac.uk) for discovering this flaw and Adam Langley and
1627      Emilia Käsper for the initial patch.
1628      (CVE-2013-0169)
1629      [Emilia Käsper, Adam Langley, Ben Laurie, Andy Polyakov, Steve Henson]
1630
1631   *) Fix flaw in AESNI handling of TLS 1.2 and 1.1 records for CBC mode
1632      ciphersuites which can be exploited in a denial of service attack.
1633      Thanks go to and to Adam Langley <agl@chromium.org> for discovering
1634      and detecting this bug and to Wolfgang Ettlinger
1635      <wolfgang.ettlinger@gmail.com> for independently discovering this issue.
1636      (CVE-2012-2686)
1637      [Adam Langley]
1638
1639   *) Return an error when checking OCSP signatures when key is NULL.
1640      This fixes a DoS attack. (CVE-2013-0166)
1641      [Steve Henson]
1642
1643   *) Make openssl verify return errors.
1644      [Chris Palmer <palmer@google.com> and Ben Laurie]
1645
1646   *) Call OCSP Stapling callback after ciphersuite has been chosen, so
1647      the right response is stapled. Also change SSL_get_certificate()
1648      so it returns the certificate actually sent.
1649      See http://rt.openssl.org/Ticket/Display.html?id=2836.
1650      [Rob Stradling <rob.stradling@comodo.com>]
1651
1652   *) Fix possible deadlock when decoding public keys.
1653      [Steve Henson]
1654
1655   *) Don't use TLS 1.0 record version number in initial client hello
1656      if renegotiating.
1657      [Steve Henson]
1658
1659  Changes between 1.0.1b and 1.0.1c [10 May 2012]
1660
1661   *) Sanity check record length before skipping explicit IV in TLS
1662      1.2, 1.1 and DTLS to fix DoS attack.
1663
1664      Thanks to Codenomicon for discovering this issue using Fuzz-o-Matic
1665      fuzzing as a service testing platform.
1666      (CVE-2012-2333)
1667      [Steve Henson]
1668
1669   *) Initialise tkeylen properly when encrypting CMS messages.
1670      Thanks to Solar Designer of Openwall for reporting this issue.
1671      [Steve Henson]
1672
1673   *) In FIPS mode don't try to use composite ciphers as they are not
1674      approved.
1675      [Steve Henson]
1676
1677  Changes between 1.0.1a and 1.0.1b [26 Apr 2012]
1678
1679   *) OpenSSL 1.0.0 sets SSL_OP_ALL to 0x80000FFFL and OpenSSL 1.0.1 and
1680      1.0.1a set SSL_OP_NO_TLSv1_1 to 0x00000400L which would unfortunately
1681      mean any application compiled against OpenSSL 1.0.0 headers setting
1682      SSL_OP_ALL would also set SSL_OP_NO_TLSv1_1, unintentionally disablng
1683      TLS 1.1 also. Fix this by changing the value of SSL_OP_NO_TLSv1_1 to
1684      0x10000000L Any application which was previously compiled against
1685      OpenSSL 1.0.1 or 1.0.1a headers and which cares about SSL_OP_NO_TLSv1_1
1686      will need to be recompiled as a result. Letting be results in
1687      inability to disable specifically TLS 1.1 and in client context,
1688      in unlike event, limit maximum offered version to TLS 1.0 [see below].
1689      [Steve Henson]
1690
1691   *) In order to ensure interoperabilty SSL_OP_NO_protocolX does not
1692      disable just protocol X, but all protocols above X *if* there are
1693      protocols *below* X still enabled. In more practical terms it means
1694      that if application wants to disable TLS1.0 in favor of TLS1.1 and
1695      above, it's not sufficient to pass SSL_OP_NO_TLSv1, one has to pass
1696      SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv3|SSL_OP_NO_SSLv2. This applies to
1697      client side.
1698      [Andy Polyakov]
1699
1700  Changes between 1.0.1 and 1.0.1a [19 Apr 2012]
1701
1702   *) Check for potentially exploitable overflows in asn1_d2i_read_bio
1703      BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
1704      in CRYPTO_realloc_clean.
1705
1706      Thanks to Tavis Ormandy, Google Security Team, for discovering this
1707      issue and to Adam Langley <agl@chromium.org> for fixing it.
1708      (CVE-2012-2110)
1709      [Adam Langley (Google), Tavis Ormandy, Google Security Team]
1710
1711   *) Don't allow TLS 1.2 SHA-256 ciphersuites in TLS 1.0, 1.1 connections.
1712      [Adam Langley]
1713
1714   *) Workarounds for some broken servers that "hang" if a client hello
1715      record length exceeds 255 bytes.
1716
1717      1. Do not use record version number > TLS 1.0 in initial client
1718         hello: some (but not all) hanging servers will now work.
1719      2. If we set OPENSSL_MAX_TLS1_2_CIPHER_LENGTH this will truncate
1720         the number of ciphers sent in the client hello. This should be
1721         set to an even number, such as 50, for example by passing:
1722         -DOPENSSL_MAX_TLS1_2_CIPHER_LENGTH=50 to config or Configure.
1723         Most broken servers should now work.
1724      3. If all else fails setting OPENSSL_NO_TLS1_2_CLIENT will disable
1725         TLS 1.2 client support entirely.
1726      [Steve Henson]
1727
1728   *) Fix SEGV in Vector Permutation AES module observed in OpenSSH.
1729      [Andy Polyakov]
1730
1731  Changes between 1.0.0h and 1.0.1  [14 Mar 2012]
1732
1733   *) Add compatibility with old MDC2 signatures which use an ASN1 OCTET
1734      STRING form instead of a DigestInfo.
1735      [Steve Henson]
1736
1737   *) The format used for MDC2 RSA signatures is inconsistent between EVP
1738      and the RSA_sign/RSA_verify functions. This was made more apparent when
1739      OpenSSL used RSA_sign/RSA_verify for some RSA signatures in particular
1740      those which went through EVP_PKEY_METHOD in 1.0.0 and later. Detect 
1741      the correct format in RSA_verify so both forms transparently work.
1742      [Steve Henson]
1743
1744   *) Some servers which support TLS 1.0 can choke if we initially indicate
1745      support for TLS 1.2 and later renegotiate using TLS 1.0 in the RSA
1746      encrypted premaster secret. As a workaround use the maximum permitted
1747      client version in client hello, this should keep such servers happy
1748      and still work with previous versions of OpenSSL.
1749      [Steve Henson]
1750
1751   *) Add support for TLS/DTLS heartbeats.
1752      [Robin Seggelmann <seggelmann@fh-muenster.de>]
1753
1754   *) Add support for SCTP.
1755      [Robin Seggelmann <seggelmann@fh-muenster.de>]
1756
1757   *) Improved PRNG seeding for VOS.
1758      [Paul Green <Paul.Green@stratus.com>]
1759
1760   *) Extensive assembler packs updates, most notably:
1761
1762         - x86[_64]:     AES-NI, PCLMULQDQ, RDRAND support;
1763         - x86[_64]:     SSSE3 support (SHA1, vector-permutation AES);
1764         - x86_64:       bit-sliced AES implementation;
1765         - ARM:          NEON support, contemporary platforms optimizations;
1766         - s390x:        z196 support;
1767         - *:            GHASH and GF(2^m) multiplication implementations;
1768
1769      [Andy Polyakov]
1770
1771   *) Make TLS-SRP code conformant with RFC 5054 API cleanup
1772      (removal of unnecessary code)
1773      [Peter Sylvester <peter.sylvester@edelweb.fr>]
1774
1775   *) Add TLS key material exporter from RFC 5705.
1776      [Eric Rescorla]
1777
1778   *) Add DTLS-SRTP negotiation from RFC 5764.
1779      [Eric Rescorla]
1780
1781   *) Add Next Protocol Negotiation,
1782      http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-00. Can be
1783      disabled with a no-npn flag to config or Configure. Code donated
1784      by Google.
1785      [Adam Langley <agl@google.com> and Ben Laurie]
1786
1787   *) Add optional 64-bit optimized implementations of elliptic curves NIST-P224,
1788      NIST-P256, NIST-P521, with constant-time single point multiplication on
1789      typical inputs. Compiler support for the nonstandard type __uint128_t is
1790      required to use this (present in gcc 4.4 and later, for 64-bit builds).
1791      Code made available under Apache License version 2.0.
1792
1793      Specify "enable-ec_nistp_64_gcc_128" on the Configure (or config) command
1794      line to include this in your build of OpenSSL, and run "make depend" (or
1795      "make update"). This enables the following EC_METHODs:
1796
1797          EC_GFp_nistp224_method()
1798          EC_GFp_nistp256_method()
1799          EC_GFp_nistp521_method()
1800
1801      EC_GROUP_new_by_curve_name() will automatically use these (while
1802      EC_GROUP_new_curve_GFp() currently prefers the more flexible
1803      implementations).
1804      [Emilia Käsper, Adam Langley, Bodo Moeller (Google)]
1805
1806   *) Use type ossl_ssize_t instad of ssize_t which isn't available on
1807      all platforms. Move ssize_t definition from e_os.h to the public
1808      header file e_os2.h as it now appears in public header file cms.h
1809      [Steve Henson]
1810
1811   *) New -sigopt option to the ca, req and x509 utilities. Additional
1812      signature parameters can be passed using this option and in
1813      particular PSS. 
1814      [Steve Henson]
1815
1816   *) Add RSA PSS signing function. This will generate and set the
1817      appropriate AlgorithmIdentifiers for PSS based on those in the
1818      corresponding EVP_MD_CTX structure. No application support yet.
1819      [Steve Henson]
1820
1821   *) Support for companion algorithm specific ASN1 signing routines.
1822      New function ASN1_item_sign_ctx() signs a pre-initialised
1823      EVP_MD_CTX structure and sets AlgorithmIdentifiers based on
1824      the appropriate parameters.
1825      [Steve Henson]
1826
1827   *) Add new algorithm specific ASN1 verification initialisation function
1828      to EVP_PKEY_ASN1_METHOD: this is not in EVP_PKEY_METHOD since the ASN1
1829      handling will be the same no matter what EVP_PKEY_METHOD is used.
1830      Add a PSS handler to support verification of PSS signatures: checked
1831      against a number of sample certificates.
1832      [Steve Henson]
1833
1834   *) Add signature printing for PSS. Add PSS OIDs.
1835      [Steve Henson, Martin Kaiser <lists@kaiser.cx>]
1836
1837   *) Add algorithm specific signature printing. An individual ASN1 method
1838      can now print out signatures instead of the standard hex dump. 
1839
1840      More complex signatures (e.g. PSS) can print out more meaningful
1841      information. Include DSA version that prints out the signature
1842      parameters r, s.
1843      [Steve Henson]
1844
1845   *) Password based recipient info support for CMS library: implementing
1846      RFC3211.
1847      [Steve Henson]
1848
1849   *) Split password based encryption into PBES2 and PBKDF2 functions. This
1850      neatly separates the code into cipher and PBE sections and is required
1851      for some algorithms that split PBES2 into separate pieces (such as
1852      password based CMS).
1853      [Steve Henson]
1854
1855   *) Session-handling fixes:
1856      - Fix handling of connections that are resuming with a session ID,
1857        but also support Session Tickets.
1858      - Fix a bug that suppressed issuing of a new ticket if the client
1859        presented a ticket with an expired session.
1860      - Try to set the ticket lifetime hint to something reasonable.
1861      - Make tickets shorter by excluding irrelevant information.
1862      - On the client side, don't ignore renewed tickets.
1863      [Adam Langley, Bodo Moeller (Google)]
1864
1865   *) Fix PSK session representation.
1866      [Bodo Moeller]
1867
1868   *) Add RC4-MD5 and AESNI-SHA1 "stitched" implementations.
1869
1870      This work was sponsored by Intel.
1871      [Andy Polyakov]
1872
1873   *) Add GCM support to TLS library. Some custom code is needed to split
1874      the IV between the fixed (from PRF) and explicit (from TLS record)
1875      portions. This adds all GCM ciphersuites supported by RFC5288 and 
1876      RFC5289. Generalise some AES* cipherstrings to include GCM and
1877      add a special AESGCM string for GCM only.
1878      [Steve Henson]
1879
1880   *) Expand range of ctrls for AES GCM. Permit setting invocation
1881      field on decrypt and retrieval of invocation field only on encrypt.
1882      [Steve Henson]
1883
1884   *) Add HMAC ECC ciphersuites from RFC5289. Include SHA384 PRF support.
1885      As required by RFC5289 these ciphersuites cannot be used if for
1886      versions of TLS earlier than 1.2.
1887      [Steve Henson]
1888
1889   *) For FIPS capable OpenSSL interpret a NULL default public key method
1890      as unset and return the appropriate default but do *not* set the default.
1891      This means we can return the appropriate method in applications that
1892      switch between FIPS and non-FIPS modes.
1893      [Steve Henson]
1894
1895   *) Redirect HMAC and CMAC operations to FIPS module in FIPS mode. If an
1896      ENGINE is used then we cannot handle that in the FIPS module so we
1897      keep original code iff non-FIPS operations are allowed.
1898      [Steve Henson]
1899
1900   *) Add -attime option to openssl utilities.
1901      [Peter Eckersley <pde@eff.org>, Ben Laurie and Steve Henson]
1902
1903   *) Redirect DSA and DH operations to FIPS module in FIPS mode.
1904      [Steve Henson]
1905
1906   *) Redirect ECDSA and ECDH operations to FIPS module in FIPS mode. Also use
1907      FIPS EC methods unconditionally for now.
1908      [Steve Henson]
1909
1910   *) New build option no-ec2m to disable characteristic 2 code.
1911      [Steve Henson]
1912
1913   *) Backport libcrypto audit of return value checking from 1.1.0-dev; not
1914      all cases can be covered as some introduce binary incompatibilities.
1915      [Steve Henson]
1916
1917   *) Redirect RSA operations to FIPS module including keygen,
1918      encrypt, decrypt, sign and verify. Block use of non FIPS RSA methods.
1919      [Steve Henson]
1920
1921   *) Add similar low level API blocking to ciphers.
1922      [Steve Henson]
1923
1924   *) Low level digest APIs are not approved in FIPS mode: any attempt
1925      to use these will cause a fatal error. Applications that *really* want
1926      to use them can use the private_* version instead.
1927      [Steve Henson]
1928
1929   *) Redirect cipher operations to FIPS module for FIPS builds. 
1930      [Steve Henson]
1931
1932   *) Redirect digest operations to FIPS module for FIPS builds. 
1933      [Steve Henson]
1934
1935   *) Update build system to add "fips" flag which will link in fipscanister.o
1936      for static and shared library builds embedding a signature if needed.
1937      [Steve Henson]
1938
1939   *) Output TLS supported curves in preference order instead of numerical
1940      order. This is currently hardcoded for the highest order curves first.
1941      This should be configurable so applications can judge speed vs strength.
1942      [Steve Henson]
1943
1944   *) Add TLS v1.2 server support for client authentication. 
1945      [Steve Henson]
1946
1947   *) Add support for FIPS mode in ssl library: disable SSLv3, non-FIPS ciphers
1948      and enable MD5.
1949      [Steve Henson]
1950
1951   *) Functions FIPS_mode_set() and FIPS_mode() which call the underlying
1952      FIPS modules versions.
1953      [Steve Henson]
1954
1955   *) Add TLS v1.2 client side support for client authentication. Keep cache
1956      of handshake records longer as we don't know the hash algorithm to use
1957      until after the certificate request message is received.
1958      [Steve Henson]
1959
1960   *) Initial TLS v1.2 client support. Add a default signature algorithms
1961      extension including all the algorithms we support. Parse new signature
1962      format in client key exchange. Relax some ECC signing restrictions for
1963      TLS v1.2 as indicated in RFC5246.
1964      [Steve Henson]
1965
1966   *) Add server support for TLS v1.2 signature algorithms extension. Switch
1967      to new signature format when needed using client digest preference.
1968      All server ciphersuites should now work correctly in TLS v1.2. No client
1969      support yet and no support for client certificates.
1970      [Steve Henson]
1971
1972   *) Initial TLS v1.2 support. Add new SHA256 digest to ssl code, switch
1973      to SHA256 for PRF when using TLS v1.2 and later. Add new SHA256 based
1974      ciphersuites. At present only RSA key exchange ciphersuites work with
1975      TLS v1.2. Add new option for TLS v1.2 replacing the old and obsolete
1976      SSL_OP_PKCS1_CHECK flags with SSL_OP_NO_TLSv1_2. New TLSv1.2 methods
1977      and version checking.
1978      [Steve Henson]
1979
1980   *) New option OPENSSL_NO_SSL_INTERN. If an application can be compiled
1981      with this defined it will not be affected by any changes to ssl internal
1982      structures. Add several utility functions to allow openssl application
1983      to work with OPENSSL_NO_SSL_INTERN defined.
1984      [Steve Henson]
1985
1986   *) Add SRP support.
1987      [Tom Wu <tjw@cs.stanford.edu> and Ben Laurie]
1988
1989   *) Add functions to copy EVP_PKEY_METHOD and retrieve flags and id.
1990      [Steve Henson]
1991
1992   *) Permit abbreviated handshakes when renegotiating using the function
1993      SSL_renegotiate_abbreviated().
1994      [Robin Seggelmann <seggelmann@fh-muenster.de>]
1995
1996   *) Add call to ENGINE_register_all_complete() to
1997      ENGINE_load_builtin_engines(), so some implementations get used
1998      automatically instead of needing explicit application support.
1999      [Steve Henson]
2000
2001   *) Add support for TLS key exporter as described in RFC5705.
2002      [Robin Seggelmann <seggelmann@fh-muenster.de>, Steve Henson]
2003
2004   *) Initial TLSv1.1 support. Since TLSv1.1 is very similar to TLS v1.0 only
2005      a few changes are required:
2006
2007        Add SSL_OP_NO_TLSv1_1 flag.
2008        Add TLSv1_1 methods.
2009        Update version checking logic to handle version 1.1.
2010        Add explicit IV handling (ported from DTLS code).
2011        Add command line options to s_client/s_server.
2012      [Steve Henson]
2013
2014  Changes between 1.0.0g and 1.0.0h [12 Mar 2012]
2015
2016   *) Fix MMA (Bleichenbacher's attack on PKCS #1 v1.5 RSA padding) weakness
2017      in CMS and PKCS7 code. When RSA decryption fails use a random key for
2018      content decryption and always return the same error. Note: this attack
2019      needs on average 2^20 messages so it only affects automated senders. The
2020      old behaviour can be reenabled in the CMS code by setting the
2021      CMS_DEBUG_DECRYPT flag: this is useful for debugging and testing where
2022      an MMA defence is not necessary.
2023      Thanks to Ivan Nestlerode <inestlerode@us.ibm.com> for discovering
2024      this issue. (CVE-2012-0884)
2025      [Steve Henson]
2026
2027   *) Fix CVE-2011-4619: make sure we really are receiving a 
2028      client hello before rejecting multiple SGC restarts. Thanks to
2029      Ivan Nestlerode <inestlerode@us.ibm.com> for discovering this bug.
2030      [Steve Henson]
2031
2032  Changes between 1.0.0f and 1.0.0g [18 Jan 2012]
2033
2034   *) Fix for DTLS DoS issue introduced by fix for CVE-2011-4109.
2035      Thanks to Antonio Martin, Enterprise Secure Access Research and
2036      Development, Cisco Systems, Inc. for discovering this bug and
2037      preparing a fix. (CVE-2012-0050)
2038      [Antonio Martin]
2039
2040  Changes between 1.0.0e and 1.0.0f [4 Jan 2012]
2041
2042   *) Nadhem Alfardan and Kenny Paterson have discovered an extension
2043      of the Vaudenay padding oracle attack on CBC mode encryption
2044      which enables an efficient plaintext recovery attack against
2045      the OpenSSL implementation of DTLS. Their attack exploits timing
2046      differences arising during decryption processing. A research
2047      paper describing this attack can be found at:
2048                   http://www.isg.rhul.ac.uk/~kp/dtls.pdf
2049      Thanks go to Nadhem Alfardan and Kenny Paterson of the Information
2050      Security Group at Royal Holloway, University of London
2051      (www.isg.rhul.ac.uk) for discovering this flaw and to Robin Seggelmann
2052      <seggelmann@fh-muenster.de> and Michael Tuexen <tuexen@fh-muenster.de>
2053      for preparing the fix. (CVE-2011-4108)
2054      [Robin Seggelmann, Michael Tuexen]
2055
2056   *) Clear bytes used for block padding of SSL 3.0 records.
2057      (CVE-2011-4576)
2058      [Adam Langley (Google)]
2059
2060   *) Only allow one SGC handshake restart for SSL/TLS. Thanks to George
2061      Kadianakis <desnacked@gmail.com> for discovering this issue and
2062      Adam Langley for preparing the fix. (CVE-2011-4619)
2063      [Adam Langley (Google)]
2064
2065   *) Check parameters are not NULL in GOST ENGINE. (CVE-2012-0027)
2066      [Andrey Kulikov <amdeich@gmail.com>]
2067
2068   *) Prevent malformed RFC3779 data triggering an assertion failure.
2069      Thanks to Andrew Chi, BBN Technologies, for discovering the flaw
2070      and Rob Austein <sra@hactrn.net> for fixing it. (CVE-2011-4577)
2071      [Rob Austein <sra@hactrn.net>]
2072
2073   *) Improved PRNG seeding for VOS.
2074      [Paul Green <Paul.Green@stratus.com>]
2075
2076   *) Fix ssl_ciph.c set-up race.
2077      [Adam Langley (Google)]
2078
2079   *) Fix spurious failures in ecdsatest.c.
2080      [Emilia Käsper (Google)]
2081
2082   *) Fix the BIO_f_buffer() implementation (which was mixing different
2083      interpretations of the '..._len' fields).
2084      [Adam Langley (Google)]
2085
2086   *) Fix handling of BN_BLINDING: now BN_BLINDING_invert_ex (rather than
2087      BN_BLINDING_invert_ex) calls BN_BLINDING_update, ensuring that concurrent
2088      threads won't reuse the same blinding coefficients.
2089
2090      This also avoids the need to obtain the CRYPTO_LOCK_RSA_BLINDING
2091      lock to call BN_BLINDING_invert_ex, and avoids one use of
2092      BN_BLINDING_update for each BN_BLINDING structure (previously,
2093      the last update always remained unused).
2094      [Emilia Käsper (Google)]
2095
2096   *) In ssl3_clear, preserve s3->init_extra along with s3->rbuf.
2097      [Bob Buckholz (Google)]
2098
2099  Changes between 1.0.0d and 1.0.0e [6 Sep 2011]
2100
2101   *) Fix bug where CRLs with nextUpdate in the past are sometimes accepted
2102      by initialising X509_STORE_CTX properly. (CVE-2011-3207)
2103      [Kaspar Brand <ossl@velox.ch>]
2104
2105   *) Fix SSL memory handling for (EC)DH ciphersuites, in particular
2106      for multi-threaded use of ECDH. (CVE-2011-3210)
2107      [Adam Langley (Google)]
2108
2109   *) Fix x509_name_ex_d2i memory leak on bad inputs.
2110      [Bodo Moeller]
2111
2112   *) Remove hard coded ecdsaWithSHA1 signature tests in ssl code and check
2113      signature public key algorithm by using OID xref utilities instead.
2114      Before this you could only use some ECC ciphersuites with SHA1 only.
2115      [Steve Henson]
2116
2117   *) Add protection against ECDSA timing attacks as mentioned in the paper
2118      by Billy Bob Brumley and Nicola Tuveri, see:
2119
2120         http://eprint.iacr.org/2011/232.pdf
2121
2122      [Billy Bob Brumley and Nicola Tuveri]
2123
2124  Changes between 1.0.0c and 1.0.0d [8 Feb 2011]
2125
2126   *) Fix parsing of OCSP stapling ClientHello extension. CVE-2011-0014
2127      [Neel Mehta, Adam Langley, Bodo Moeller (Google)]
2128
2129   *) Fix bug in string printing code: if *any* escaping is enabled we must
2130      escape the escape character (backslash) or the resulting string is
2131      ambiguous.
2132      [Steve Henson]
2133
2134  Changes between 1.0.0b and 1.0.0c  [2 Dec 2010]
2135
2136   *) Disable code workaround for ancient and obsolete Netscape browsers
2137      and servers: an attacker can use it in a ciphersuite downgrade attack.
2138      Thanks to Martin Rex for discovering this bug. CVE-2010-4180
2139      [Steve Henson]
2140
2141   *) Fixed J-PAKE implementation error, originally discovered by
2142      Sebastien Martini, further info and confirmation from Stefan
2143      Arentz and Feng Hao. Note that this fix is a security fix. CVE-2010-4252
2144      [Ben Laurie]
2145
2146  Changes between 1.0.0a and 1.0.0b  [16 Nov 2010]
2147
2148   *) Fix extension code to avoid race conditions which can result in a buffer
2149      overrun vulnerability: resumed sessions must not be modified as they can
2150      be shared by multiple threads. CVE-2010-3864
2151      [Steve Henson]
2152
2153   *) Fix WIN32 build system to correctly link an ENGINE directory into
2154      a DLL. 
2155      [Steve Henson]
2156
2157  Changes between 1.0.0 and 1.0.0a  [01 Jun 2010]
2158
2159   *) Check return value of int_rsa_verify in pkey_rsa_verifyrecover 
2160      (CVE-2010-1633)
2161      [Steve Henson, Peter-Michael Hager <hager@dortmund.net>]
2162
2163  Changes between 0.9.8n and 1.0.0  [29 Mar 2010]
2164
2165   *) Add "missing" function EVP_CIPHER_CTX_copy(). This copies a cipher
2166      context. The operation can be customised via the ctrl mechanism in
2167      case ENGINEs want to include additional functionality.
2168      [Steve Henson]
2169
2170   *) Tolerate yet another broken PKCS#8 key format: private key value negative.
2171      [Steve Henson]
2172
2173   *) Add new -subject_hash_old and -issuer_hash_old options to x509 utility to
2174      output hashes compatible with older versions of OpenSSL.
2175      [Willy Weisz <weisz@vcpc.univie.ac.at>]
2176
2177   *) Fix compression algorithm handling: if resuming a session use the
2178      compression algorithm of the resumed session instead of determining
2179      it from client hello again. Don't allow server to change algorithm.
2180      [Steve Henson]
2181
2182   *) Add load_crls() function to apps tidying load_certs() too. Add option
2183      to verify utility to allow additional CRLs to be included.
2184      [Steve Henson]
2185
2186   *) Update OCSP request code to permit adding custom headers to the request:
2187      some responders need this.
2188      [Steve Henson]
2189
2190   *) The function EVP_PKEY_sign() returns <=0 on error: check return code
2191      correctly.
2192      [Julia Lawall <julia@diku.dk>]
2193
2194   *) Update verify callback code in apps/s_cb.c and apps/verify.c, it
2195      needlessly dereferenced structures, used obsolete functions and
2196      didn't handle all updated verify codes correctly.
2197      [Steve Henson]
2198
2199   *) Disable MD2 in the default configuration.
2200      [Steve Henson]
2201
2202   *) In BIO_pop() and BIO_push() use the ctrl argument (which was NULL) to
2203      indicate the initial BIO being pushed or popped. This makes it possible
2204      to determine whether the BIO is the one explicitly called or as a result
2205      of the ctrl being passed down the chain. Fix BIO_pop() and SSL BIOs so
2206      it handles reference counts correctly and doesn't zero out the I/O bio
2207      when it is not being explicitly popped. WARNING: applications which
2208      included workarounds for the old buggy behaviour will need to be modified
2209      or they could free up already freed BIOs.
2210      [Steve Henson]
2211
2212   *) Extend the uni2asc/asc2uni => OPENSSL_uni2asc/OPENSSL_asc2uni
2213      renaming to all platforms (within the 0.9.8 branch, this was
2214      done conditionally on Netware platforms to avoid a name clash).
2215      [Guenter <lists@gknw.net>]
2216
2217   *) Add ECDHE and PSK support to DTLS.
2218      [Michael Tuexen <tuexen@fh-muenster.de>]
2219
2220   *) Add CHECKED_STACK_OF macro to safestack.h, otherwise safestack can't
2221      be used on C++.
2222      [Steve Henson]
2223
2224   *) Add "missing" function EVP_MD_flags() (without this the only way to
2225      retrieve a digest flags is by accessing the structure directly. Update
2226      EVP_MD_do_all*() and EVP_CIPHER_do_all*() to include the name a digest
2227      or cipher is registered as in the "from" argument. Print out all
2228      registered digests in the dgst usage message instead of manually 
2229      attempting to work them out.
2230      [Steve Henson]
2231
2232   *) If no SSLv2 ciphers are used don't use an SSLv2 compatible client hello:
2233      this allows the use of compression and extensions. Change default cipher
2234      string to remove SSLv2 ciphersuites. This effectively avoids ancient SSLv2
2235      by default unless an application cipher string requests it.
2236      [Steve Henson]
2237
2238   *) Alter match criteria in PKCS12_parse(). It used to try to use local
2239      key ids to find matching certificates and keys but some PKCS#12 files
2240      don't follow the (somewhat unwritten) rules and this strategy fails.
2241      Now just gather all certificates together and the first private key
2242      then look for the first certificate that matches the key.
2243      [Steve Henson]
2244
2245   *) Support use of registered digest and cipher names for dgst and cipher
2246      commands instead of having to add each one as a special case. So now
2247      you can do:
2248
2249         openssl sha256 foo
2250
2251      as well as:
2252
2253         openssl dgst -sha256 foo
2254
2255      and this works for ENGINE based algorithms too.
2256
2257      [Steve Henson]
2258
2259   *) Update Gost ENGINE to support parameter files.
2260      [Victor B. Wagner <vitus@cryptocom.ru>]
2261
2262   *) Support GeneralizedTime in ca utility. 
2263      [Oliver Martin <oliver@volatilevoid.net>, Steve Henson]
2264
2265   *) Enhance the hash format used for certificate directory links. The new
2266      form uses the canonical encoding (meaning equivalent names will work
2267      even if they aren't identical) and uses SHA1 instead of MD5. This form
2268      is incompatible with the older format and as a result c_rehash should
2269      be used to rebuild symbolic links.
2270      [Steve Henson]
2271
2272   *) Make PKCS#8 the default write format for private keys, replacing the
2273      traditional format. This form is standardised, more secure and doesn't
2274      include an implicit MD5 dependency.
2275      [Steve Henson]
2276
2277   *) Add a $gcc_devteam_warn option to Configure. The idea is that any code
2278      committed to OpenSSL should pass this lot as a minimum.
2279      [Steve Henson]
2280
2281   *) Add session ticket override functionality for use by EAP-FAST.
2282      [Jouni Malinen <j@w1.fi>]
2283
2284   *) Modify HMAC functions to return a value. Since these can be implemented
2285      in an ENGINE errors can occur.
2286      [Steve Henson]
2287
2288   *) Type-checked OBJ_bsearch_ex.
2289      [Ben Laurie]
2290
2291   *) Type-checked OBJ_bsearch. Also some constification necessitated
2292      by type-checking.  Still to come: TXT_DB, bsearch(?),
2293      OBJ_bsearch_ex, qsort, CRYPTO_EX_DATA, ASN1_VALUE, ASN1_STRING,
2294      CONF_VALUE.
2295      [Ben Laurie]
2296
2297   *) New function OPENSSL_gmtime_adj() to add a specific number of days and
2298      seconds to a tm structure directly, instead of going through OS
2299      specific date routines. This avoids any issues with OS routines such
2300      as the year 2038 bug. New *_adj() functions for ASN1 time structures
2301      and X509_time_adj_ex() to cover the extended range. The existing
2302      X509_time_adj() is still usable and will no longer have any date issues.
2303      [Steve Henson]
2304
2305   *) Delta CRL support. New use deltas option which will attempt to locate
2306      and search any appropriate delta CRLs available.
2307
2308      This work was sponsored by Google.
2309      [Steve Henson]
2310
2311   *) Support for CRLs partitioned by reason code. Reorganise CRL processing
2312      code and add additional score elements. Validate alternate CRL paths
2313      as part of the CRL checking and indicate a new error "CRL path validation
2314      error" in this case. Applications wanting additional details can use
2315      the verify callback and check the new "parent" field. If this is not
2316      NULL CRL path validation is taking place. Existing applications wont
2317      see this because it requires extended CRL support which is off by
2318      default.
2319
2320      This work was sponsored by Google.
2321      [Steve Henson]
2322
2323   *) Support for freshest CRL extension.
2324
2325      This work was sponsored by Google.
2326      [Steve Henson]
2327
2328   *) Initial indirect CRL support. Currently only supported in the CRLs
2329      passed directly and not via lookup. Process certificate issuer
2330      CRL entry extension and lookup CRL entries by bother issuer name
2331      and serial number. Check and process CRL issuer entry in IDP extension.
2332
2333      This work was sponsored by Google.
2334      [Steve Henson]
2335
2336   *) Add support for distinct certificate and CRL paths. The CRL issuer
2337      certificate is validated separately in this case. Only enabled if
2338      an extended CRL support flag is set: this flag will enable additional
2339      CRL functionality in future.
2340
2341      This work was sponsored by Google.
2342      [Steve Henson]
2343
2344   *) Add support for policy mappings extension.
2345
2346      This work was sponsored by Google.
2347      [Steve Henson]
2348
2349   *) Fixes to pathlength constraint, self issued certificate handling,
2350      policy processing to align with RFC3280 and PKITS tests.
2351
2352      This work was sponsored by Google.
2353      [Steve Henson]
2354
2355   *) Support for name constraints certificate extension. DN, email, DNS
2356      and URI types are currently supported.
2357
2358      This work was sponsored by Google.
2359      [Steve Henson]
2360
2361   *) To cater for systems that provide a pointer-based thread ID rather
2362      than numeric, deprecate the current numeric thread ID mechanism and
2363      replace it with a structure and associated callback type. This
2364      mechanism allows a numeric "hash" to be extracted from a thread ID in
2365      either case, and on platforms where pointers are larger than 'long',
2366      mixing is done to help ensure the numeric 'hash' is usable even if it
2367      can't be guaranteed unique. The default mechanism is to use "&errno"
2368      as a pointer-based thread ID to distinguish between threads.
2369
2370      Applications that want to provide their own thread IDs should now use
2371      CRYPTO_THREADID_set_callback() to register a callback that will call
2372      either CRYPTO_THREADID_set_numeric() or CRYPTO_THREADID_set_pointer().
2373
2374      Note that ERR_remove_state() is now deprecated, because it is tied
2375      to the assumption that thread IDs are numeric.  ERR_remove_state(0)
2376      to free the current thread's error state should be replaced by
2377      ERR_remove_thread_state(NULL).
2378
2379      (This new approach replaces the functions CRYPTO_set_idptr_callback(),
2380      CRYPTO_get_idptr_callback(), and CRYPTO_thread_idptr() that existed in
2381      OpenSSL 0.9.9-dev between June 2006 and August 2008. Also, if an
2382      application was previously providing a numeric thread callback that
2383      was inappropriate for distinguishing threads, then uniqueness might
2384      have been obtained with &errno that happened immediately in the
2385      intermediate development versions of OpenSSL; this is no longer the
2386      case, the numeric thread callback will now override the automatic use
2387      of &errno.)
2388      [Geoff Thorpe, with help from Bodo Moeller]
2389
2390   *) Initial support for different CRL issuing certificates. This covers a
2391      simple case where the self issued certificates in the chain exist and
2392      the real CRL issuer is higher in the existing chain.
2393
2394      This work was sponsored by Google.
2395      [Steve Henson]
2396
2397   *) Removed effectively defunct crypto/store from the build.
2398      [Ben Laurie]
2399
2400   *) Revamp of STACK to provide stronger type-checking. Still to come:
2401      TXT_DB, bsearch(?), OBJ_bsearch, qsort, CRYPTO_EX_DATA, ASN1_VALUE,
2402      ASN1_STRING, CONF_VALUE.
2403      [Ben Laurie]
2404
2405   *) Add a new SSL_MODE_RELEASE_BUFFERS mode flag to release unused buffer
2406      RAM on SSL connections.  This option can save about 34k per idle SSL.
2407      [Nick Mathewson]
2408
2409   *) Revamp of LHASH to provide stronger type-checking. Still to come:
2410      STACK, TXT_DB, bsearch, qsort.
2411      [Ben Laurie]
2412
2413   *) Initial support for Cryptographic Message Syntax (aka CMS) based
2414      on RFC3850, RFC3851 and RFC3852. New cms directory and cms utility,
2415      support for data, signedData, compressedData, digestedData and
2416      encryptedData, envelopedData types included. Scripts to check against
2417      RFC4134 examples draft and interop and consistency checks of many
2418      content types and variants.
2419      [Steve Henson]
2420
2421   *) Add options to enc utility to support use of zlib compression BIO.
2422      [Steve Henson]
2423
2424   *) Extend mk1mf to support importing of options and assembly language
2425      files from Configure script, currently only included in VC-WIN32.
2426      The assembly language rules can now optionally generate the source
2427      files from the associated perl scripts.
2428      [Steve Henson]
2429
2430   *) Implement remaining functionality needed to support GOST ciphersuites.
2431      Interop testing has been performed using CryptoPro implementations.
2432      [Victor B. Wagner <vitus@cryptocom.ru>]
2433
2434   *) s390x assembler pack.
2435      [Andy Polyakov]
2436
2437   *) ARMv4 assembler pack. ARMv4 refers to v4 and later ISA, not CPU
2438      "family."
2439      [Andy Polyakov]
2440
2441   *) Implement Opaque PRF Input TLS extension as specified in
2442      draft-rescorla-tls-opaque-prf-input-00.txt.  Since this is not an
2443      official specification yet and no extension type assignment by
2444      IANA exists, this extension (for now) will have to be explicitly
2445      enabled when building OpenSSL by providing the extension number
2446      to use.  For example, specify an option
2447
2448          -DTLSEXT_TYPE_opaque_prf_input=0x9527
2449
2450      to the "config" or "Configure" script to enable the extension,
2451      assuming extension number 0x9527 (which is a completely arbitrary
2452      and unofficial assignment based on the MD5 hash of the Internet
2453      Draft).  Note that by doing so, you potentially lose
2454      interoperability with other TLS implementations since these might
2455      be using the same extension number for other purposes.
2456
2457      SSL_set_tlsext_opaque_prf_input(ssl, src, len) is used to set the
2458      opaque PRF input value to use in the handshake.  This will create
2459      an interal copy of the length-'len' string at 'src', and will
2460      return non-zero for success.
2461
2462      To get more control and flexibility, provide a callback function
2463      by using
2464
2465           SSL_CTX_set_tlsext_opaque_prf_input_callback(ctx, cb)
2466           SSL_CTX_set_tlsext_opaque_prf_input_callback_arg(ctx, arg)
2467
2468      where
2469
2470           int (*cb)(SSL *, void *peerinput, size_t len, void *arg);
2471           void *arg;
2472
2473      Callback function 'cb' will be called in handshakes, and is
2474      expected to use SSL_set_tlsext_opaque_prf_input() as appropriate.
2475      Argument 'arg' is for application purposes (the value as given to
2476      SSL_CTX_set_tlsext_opaque_prf_input_callback_arg() will directly
2477      be provided to the callback function).  The callback function
2478      has to return non-zero to report success: usually 1 to use opaque
2479      PRF input just if possible, or 2 to enforce use of the opaque PRF
2480      input.  In the latter case, the library will abort the handshake
2481      if opaque PRF input is not successfully negotiated.
2482
2483      Arguments 'peerinput' and 'len' given to the callback function
2484      will always be NULL and 0 in the case of a client.  A server will
2485      see the client's opaque PRF input through these variables if
2486      available (NULL and 0 otherwise).  Note that if the server
2487      provides an opaque PRF input, the length must be the same as the
2488      length of the client's opaque PRF input.
2489
2490      Note that the callback function will only be called when creating
2491      a new session (session resumption can resume whatever was
2492      previously negotiated), and will not be called in SSL 2.0
2493      handshakes; thus, SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2) or
2494      SSL_set_options(ssl, SSL_OP_NO_SSLv2) is especially recommended
2495      for applications that need to enforce opaque PRF input.
2496
2497      [Bodo Moeller]
2498
2499   *) Update ssl code to support digests other than SHA1+MD5 for handshake
2500      MAC. 
2501
2502      [Victor B. Wagner <vitus@cryptocom.ru>]
2503
2504   *) Add RFC4507 support to OpenSSL. This includes the corrections in
2505      RFC4507bis. The encrypted ticket format is an encrypted encoded
2506      SSL_SESSION structure, that way new session features are automatically
2507      supported.
2508
2509      If a client application caches session in an SSL_SESSION structure
2510      support is transparent because tickets are now stored in the encoded
2511      SSL_SESSION.
2512      
2513      The SSL_CTX structure automatically generates keys for ticket
2514      protection in servers so again support should be possible
2515      with no application modification.
2516
2517      If a client or server wishes to disable RFC4507 support then the option
2518      SSL_OP_NO_TICKET can be set.
2519
2520      Add a TLS extension debugging callback to allow the contents of any client
2521      or server extensions to be examined.
2522
2523      This work was sponsored by Google.
2524      [Steve Henson]
2525
2526   *) Final changes to avoid use of pointer pointer casts in OpenSSL.
2527      OpenSSL should now compile cleanly on gcc 4.2
2528      [Peter Hartley <pdh@utter.chaos.org.uk>, Steve Henson]
2529
2530   *) Update SSL library to use new EVP_PKEY MAC API. Include generic MAC
2531      support including streaming MAC support: this is required for GOST
2532      ciphersuite support.
2533      [Victor B. Wagner <vitus@cryptocom.ru>, Steve Henson]
2534
2535   *) Add option -stream to use PKCS#7 streaming in smime utility. New
2536      function i2d_PKCS7_bio_stream() and PEM_write_PKCS7_bio_stream()
2537      to output in BER and PEM format.
2538      [Steve Henson]
2539
2540   *) Experimental support for use of HMAC via EVP_PKEY interface. This
2541      allows HMAC to be handled via the EVP_DigestSign*() interface. The
2542      EVP_PKEY "key" in this case is the HMAC key, potentially allowing
2543      ENGINE support for HMAC keys which are unextractable. New -mac and
2544      -macopt options to dgst utility.
2545      [Steve Henson]
2546
2547   *) New option -sigopt to dgst utility. Update dgst to use
2548      EVP_Digest{Sign,Verify}*. These two changes make it possible to use
2549      alternative signing paramaters such as X9.31 or PSS in the dgst 
2550      utility.
2551      [Steve Henson]
2552
2553   *) Change ssl_cipher_apply_rule(), the internal function that does
2554      the work each time a ciphersuite string requests enabling
2555      ("foo+bar"), moving ("+foo+bar"), disabling ("-foo+bar", or
2556      removing ("!foo+bar") a class of ciphersuites: Now it maintains
2557      the order of disabled ciphersuites such that those ciphersuites
2558      that most recently went from enabled to disabled not only stay
2559      in order with respect to each other, but also have higher priority
2560      than other disabled ciphersuites the next time ciphersuites are
2561      enabled again.
2562
2563      This means that you can now say, e.g., "PSK:-PSK:HIGH" to enable
2564      the same ciphersuites as with "HIGH" alone, but in a specific
2565      order where the PSK ciphersuites come first (since they are the
2566      most recently disabled ciphersuites when "HIGH" is parsed).
2567
2568      Also, change ssl_create_cipher_list() (using this new
2569      funcionality) such that between otherwise identical
2570      cihpersuites, ephemeral ECDH is preferred over ephemeral DH in
2571      the default order.
2572      [Bodo Moeller]
2573
2574   *) Change ssl_create_cipher_list() so that it automatically
2575      arranges the ciphersuites in reasonable order before starting
2576      to process the rule string.  Thus, the definition for "DEFAULT"
2577      (SSL_DEFAULT_CIPHER_LIST) now is just "ALL:!aNULL:!eNULL", but
2578      remains equivalent to "AES:ALL:!aNULL:!eNULL:+aECDH:+kRSA:+RC4:@STRENGTH".
2579      This makes it much easier to arrive at a reasonable default order
2580      in applications for which anonymous ciphers are OK (meaning
2581      that you can't actually use DEFAULT).
2582      [Bodo Moeller; suggested by Victor Duchovni]
2583
2584   *) Split the SSL/TLS algorithm mask (as used for ciphersuite string
2585      processing) into multiple integers instead of setting
2586      "SSL_MKEY_MASK" bits, "SSL_AUTH_MASK" bits, "SSL_ENC_MASK",
2587      "SSL_MAC_MASK", and "SSL_SSL_MASK" bits all in a single integer.
2588      (These masks as well as the individual bit definitions are hidden
2589      away into the non-exported interface ssl/ssl_locl.h, so this
2590      change to the definition of the SSL_CIPHER structure shouldn't
2591      affect applications.)  This give us more bits for each of these
2592      categories, so there is no longer a need to coagulate AES128 and
2593      AES256 into a single algorithm bit, and to coagulate Camellia128
2594      and Camellia256 into a single algorithm bit, which has led to all
2595      kinds of kludges.
2596
2597      Thus, among other things, the kludge introduced in 0.9.7m and
2598      0.9.8e for masking out AES256 independently of AES128 or masking
2599      out Camellia256 independently of AES256 is not needed here in 0.9.9.
2600
2601      With the change, we also introduce new ciphersuite aliases that
2602      so far were missing: "AES128", "AES256", "CAMELLIA128", and
2603      "CAMELLIA256".
2604      [Bodo Moeller]
2605
2606   *) Add support for dsa-with-SHA224 and dsa-with-SHA256.
2607      Use the leftmost N bytes of the signature input if the input is
2608      larger than the prime q (with N being the size in bytes of q).
2609      [Nils Larsch]
2610
2611   *) Very *very* experimental PKCS#7 streaming encoder support. Nothing uses
2612      it yet and it is largely untested.
2613      [Steve Henson]
2614
2615   *) Add support for the ecdsa-with-SHA224/256/384/512 signature types.
2616      [Nils Larsch]
2617
2618   *) Initial incomplete changes to avoid need for function casts in OpenSSL
2619      some compilers (gcc 4.2 and later) reject their use. Safestack is
2620      reimplemented.  Update ASN1 to avoid use of legacy functions. 
2621      [Steve Henson]
2622
2623   *) Win32/64 targets are linked with Winsock2.
2624      [Andy Polyakov]
2625
2626   *) Add an X509_CRL_METHOD structure to allow CRL processing to be redirected
2627      to external functions. This can be used to increase CRL handling 
2628      efficiency especially when CRLs are very large by (for example) storing
2629      the CRL revoked certificates in a database.
2630      [Steve Henson]
2631
2632   *) Overhaul of by_dir code. Add support for dynamic loading of CRLs so
2633      new CRLs added to a directory can be used. New command line option
2634      -verify_return_error to s_client and s_server. This causes real errors
2635      to be returned by the verify callback instead of carrying on no matter
2636      what. This reflects the way a "real world" verify callback would behave.
2637      [Steve Henson]
2638
2639   *) GOST engine, supporting several GOST algorithms and public key formats.
2640      Kindly donated by Cryptocom.
2641      [Cryptocom]
2642
2643   *) Partial support for Issuing Distribution Point CRL extension. CRLs
2644      partitioned by DP are handled but no indirect CRL or reason partitioning
2645      (yet). Complete overhaul of CRL handling: now the most suitable CRL is
2646      selected via a scoring technique which handles IDP and AKID in CRLs.
2647      [Steve Henson]
2648
2649   *) New X509_STORE_CTX callbacks lookup_crls() and lookup_certs() which
2650      will ultimately be used for all verify operations: this will remove the
2651      X509_STORE dependency on certificate verification and allow alternative
2652      lookup methods.  X509_STORE based implementations of these two callbacks.
2653      [Steve Henson]
2654
2655   *) Allow multiple CRLs to exist in an X509_STORE with matching issuer names.
2656      Modify get_crl() to find a valid (unexpired) CRL if possible.
2657      [Steve Henson]
2658
2659   *) New function X509_CRL_match() to check if two CRLs are identical. Normally
2660      this would be called X509_CRL_cmp() but that name is already used by
2661      a function that just compares CRL issuer names. Cache several CRL 
2662      extensions in X509_CRL structure and cache CRLDP in X509.
2663      [Steve Henson]
2664
2665   *) Store a "canonical" representation of X509_NAME structure (ASN1 Name)
2666      this maps equivalent X509_NAME structures into a consistent structure.
2667      Name comparison can then be performed rapidly using memcmp().
2668      [Steve Henson]
2669
2670   *) Non-blocking OCSP request processing. Add -timeout option to ocsp 
2671      utility.
2672      [Steve Henson]
2673
2674   *) Allow digests to supply their own micalg string for S/MIME type using
2675      the ctrl EVP_MD_CTRL_MICALG.
2676      [Steve Henson]
2677
2678   *) During PKCS7 signing pass the PKCS7 SignerInfo structure to the
2679      EVP_PKEY_METHOD before and after signing via the EVP_PKEY_CTRL_PKCS7_SIGN
2680      ctrl. It can then customise the structure before and/or after signing
2681      if necessary.
2682      [Steve Henson]
2683
2684   *) New function OBJ_add_sigid() to allow application defined signature OIDs
2685      to be added to OpenSSLs internal tables. New function OBJ_sigid_free()
2686      to free up any added signature OIDs.
2687      [Steve Henson]
2688
2689   *) New functions EVP_CIPHER_do_all(), EVP_CIPHER_do_all_sorted(),
2690      EVP_MD_do_all() and EVP_MD_do_all_sorted() to enumerate internal
2691      digest and cipher tables. New options added to openssl utility:
2692      list-message-digest-algorithms and list-cipher-algorithms.
2693      [Steve Henson]
2694
2695   *) Change the array representation of binary polynomials: the list
2696      of degrees of non-zero coefficients is now terminated with -1.
2697      Previously it was terminated with 0, which was also part of the
2698      value; thus, the array representation was not applicable to
2699      polynomials where t^0 has coefficient zero.  This change makes
2700      the array representation useful in a more general context.
2701      [Douglas Stebila]
2702
2703   *) Various modifications and fixes to SSL/TLS cipher string
2704      handling.  For ECC, the code now distinguishes between fixed ECDH
2705      with RSA certificates on the one hand and with ECDSA certificates
2706      on the other hand, since these are separate ciphersuites.  The
2707      unused code for Fortezza ciphersuites has been removed.
2708
2709      For consistency with EDH, ephemeral ECDH is now called "EECDH"
2710      (not "ECDHE").  For consistency with the code for DH
2711      certificates, use of ECDH certificates is now considered ECDH
2712      authentication, not RSA or ECDSA authentication (the latter is
2713      merely the CA's signing algorithm and not actively used in the
2714      protocol).
2715
2716      The temporary ciphersuite alias "ECCdraft" is no longer
2717      available, and ECC ciphersuites are no longer excluded from "ALL"
2718      and "DEFAULT".  The following aliases now exist for RFC 4492
2719      ciphersuites, most of these by analogy with the DH case:
2720
2721          kECDHr   - ECDH cert, signed with RSA
2722          kECDHe   - ECDH cert, signed with ECDSA
2723          kECDH    - ECDH cert (signed with either RSA or ECDSA)
2724          kEECDH   - ephemeral ECDH
2725          ECDH     - ECDH cert or ephemeral ECDH
2726
2727          aECDH    - ECDH cert
2728          aECDSA   - ECDSA cert
2729          ECDSA    - ECDSA cert
2730
2731          AECDH    - anonymous ECDH
2732          EECDH    - non-anonymous ephemeral ECDH (equivalent to "kEECDH:-AECDH")
2733
2734      [Bodo Moeller]
2735
2736   *) Add additional S/MIME capabilities for AES and GOST ciphers if supported.
2737      Use correct micalg parameters depending on digest(s) in signed message.
2738      [Steve Henson]
2739
2740   *) Add engine support for EVP_PKEY_ASN1_METHOD. Add functions to process
2741      an ENGINE asn1 method. Support ENGINE lookups in the ASN1 code.
2742      [Steve Henson]
2743
2744   *) Initial engine support for EVP_PKEY_METHOD. New functions to permit
2745      an engine to register a method. Add ENGINE lookups for methods and
2746      functional reference processing.
2747      [Steve Henson]
2748
2749   *) New functions EVP_Digest{Sign,Verify)*. These are enchance versions of
2750      EVP_{Sign,Verify}* which allow an application to customise the signature
2751      process.
2752      [Steve Henson]
2753
2754   *) New -resign option to smime utility. This adds one or more signers
2755      to an existing PKCS#7 signedData structure. Also -md option to use an
2756      alternative message digest algorithm for signing.
2757      [Steve Henson]
2758
2759   *) Tidy up PKCS#7 routines and add new functions to make it easier to
2760      create PKCS7 structures containing multiple signers. Update smime
2761      application to support multiple signers.
2762      [Steve Henson]
2763
2764   *) New -macalg option to pkcs12 utility to allow setting of an alternative
2765      digest MAC.
2766      [Steve Henson]
2767
2768   *) Initial support for PKCS#5 v2.0 PRFs other than default SHA1 HMAC.
2769      Reorganize PBE internals to lookup from a static table using NIDs,
2770      add support for HMAC PBE OID translation. Add a EVP_CIPHER ctrl:
2771      EVP_CTRL_PBE_PRF_NID this allows a cipher to specify an alternative
2772      PRF which will be automatically used with PBES2.
2773      [Steve Henson]
2774
2775   *) Replace the algorithm specific calls to generate keys in "req" with the
2776      new API.
2777      [Steve Henson]
2778
2779   *) Update PKCS#7 enveloped data routines to use new API. This is now
2780      supported by any public key method supporting the encrypt operation. A
2781      ctrl is added to allow the public key algorithm to examine or modify
2782      the PKCS#7 RecipientInfo structure if it needs to: for RSA this is
2783      a no op.
2784      [Steve Henson]
2785
2786   *) Add a ctrl to asn1 method to allow a public key algorithm to express
2787      a default digest type to use. In most cases this will be SHA1 but some
2788      algorithms (such as GOST) need to specify an alternative digest. The
2789      return value indicates how strong the preference is 1 means optional and
2790      2 is mandatory (that is it is the only supported type). Modify
2791      ASN1_item_sign() to accept a NULL digest argument to indicate it should
2792      use the default md. Update openssl utilities to use the default digest
2793      type for signing if it is not explicitly indicated.
2794      [Steve Henson]
2795
2796   *) Use OID cross reference table in ASN1_sign() and ASN1_verify(). New 
2797      EVP_MD flag EVP_MD_FLAG_PKEY_METHOD_SIGNATURE. This uses the relevant
2798      signing method from the key type. This effectively removes the link
2799      between digests and public key types.
2800      [Steve Henson]
2801
2802   *) Add an OID cross reference table and utility functions. Its purpose is to
2803      translate between signature OIDs such as SHA1WithrsaEncryption and SHA1,
2804      rsaEncryption. This will allow some of the algorithm specific hackery
2805      needed to use the correct OID to be removed. 
2806      [Steve Henson]
2807
2808   *) Remove algorithm specific dependencies when setting PKCS7_SIGNER_INFO
2809      structures for PKCS7_sign(). They are now set up by the relevant public
2810      key ASN1 method.
2811      [Steve Henson]
2812
2813   *) Add provisional EC pkey method with support for ECDSA and ECDH.
2814      [Steve Henson]
2815
2816   *) Add support for key derivation (agreement) in the API, DH method and
2817      pkeyutl.
2818      [Steve Henson]
2819
2820   *) Add DSA pkey method and DH pkey methods, extend DH ASN1 method to support
2821      public and private key formats. As a side effect these add additional 
2822      command line functionality not previously available: DSA signatures can be
2823      generated and verified using pkeyutl and DH key support and generation in
2824      pkey, genpkey.
2825      [Steve Henson]
2826
2827   *) BeOS support.
2828      [Oliver Tappe <zooey@hirschkaefer.de>]
2829
2830   *) New make target "install_html_docs" installs HTML renditions of the
2831      manual pages.
2832      [Oliver Tappe <zooey@hirschkaefer.de>]
2833
2834   *) New utility "genpkey" this is analogous to "genrsa" etc except it can
2835      generate keys for any algorithm. Extend and update EVP_PKEY_METHOD to
2836      support key and parameter generation and add initial key generation
2837      functionality for RSA.
2838      [Steve Henson]
2839
2840   *) Add functions for main EVP_PKEY_method operations. The undocumented
2841      functions EVP_PKEY_{encrypt,decrypt} have been renamed to
2842      EVP_PKEY_{encrypt,decrypt}_old. 
2843      [Steve Henson]
2844
2845   *) Initial definitions for EVP_PKEY_METHOD. This will be a high level public
2846      key API, doesn't do much yet.
2847      [Steve Henson]
2848
2849   *) New function EVP_PKEY_asn1_get0_info() to retrieve information about
2850      public key algorithms. New option to openssl utility:
2851      "list-public-key-algorithms" to print out info.
2852      [Steve Henson]
2853
2854   *) Implement the Supported Elliptic Curves Extension for
2855      ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
2856      [Douglas Stebila]
2857
2858   *) Don't free up OIDs in OBJ_cleanup() if they are in use by EVP_MD or
2859      EVP_CIPHER structures to avoid later problems in EVP_cleanup().
2860      [Steve Henson]
2861
2862   *) New utilities pkey and pkeyparam. These are similar to algorithm specific
2863      utilities such as rsa, dsa, dsaparam etc except they process any key
2864      type.
2865      [Steve Henson]
2866
2867   *) Transfer public key printing routines to EVP_PKEY_ASN1_METHOD. New 
2868      functions EVP_PKEY_print_public(), EVP_PKEY_print_private(),
2869      EVP_PKEY_print_param() to print public key data from an EVP_PKEY
2870      structure.
2871      [Steve Henson]
2872
2873   *) Initial support for pluggable public key ASN1.
2874      De-spaghettify the public key ASN1 handling. Move public and private
2875      key ASN1 handling to a new EVP_PKEY_ASN1_METHOD structure. Relocate
2876      algorithm specific handling to a single module within the relevant
2877      algorithm directory. Add functions to allow (near) opaque processing
2878      of public and private key structures.
2879      [Steve Henson]
2880
2881   *) Implement the Supported Point Formats Extension for
2882      ECC ciphersuites from draft-ietf-tls-ecc-12.txt.
2883      [Douglas Stebila]
2884
2885   *) Add initial support for RFC 4279 PSK TLS ciphersuites. Add members
2886      for the psk identity [hint] and the psk callback functions to the
2887      SSL_SESSION, SSL and SSL_CTX structure.
2888      
2889      New ciphersuites:
2890          PSK-RC4-SHA, PSK-3DES-EDE-CBC-SHA, PSK-AES128-CBC-SHA,
2891          PSK-AES256-CBC-SHA
2892  
2893      New functions:
2894          SSL_CTX_use_psk_identity_hint
2895          SSL_get_psk_identity_hint
2896          SSL_get_psk_identity
2897          SSL_use_psk_identity_hint
2898
2899      [Mika Kousa and Pasi Eronen of Nokia Corporation]
2900
2901   *) Add RFC 3161 compliant time stamp request creation, response generation
2902      and response verification functionality.
2903      [Zoltán Glózik <zglozik@opentsa.org>, The OpenTSA Project]
2904
2905   *) Add initial support for TLS extensions, specifically for the server_name
2906      extension so far.  The SSL_SESSION, SSL_CTX, and SSL data structures now
2907      have new members for a host name.  The SSL data structure has an
2908      additional member SSL_CTX *initial_ctx so that new sessions can be
2909      stored in that context to allow for session resumption, even after the
2910      SSL has been switched to a new SSL_CTX in reaction to a client's
2911      server_name extension.
2912
2913      New functions (subject to change):
2914
2915          SSL_get_servername()
2916          SSL_get_servername_type()
2917          SSL_set_SSL_CTX()
2918
2919      New CTRL codes and macros (subject to change):
2920
2921          SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
2922                                  - SSL_CTX_set_tlsext_servername_callback()
2923          SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
2924                                       - SSL_CTX_set_tlsext_servername_arg()
2925          SSL_CTRL_SET_TLSEXT_HOSTNAME           - SSL_set_tlsext_host_name()
2926
2927      openssl s_client has a new '-servername ...' option.
2928
2929      openssl s_server has new options '-servername_host ...', '-cert2 ...',
2930      '-key2 ...', '-servername_fatal' (subject to change).  This allows
2931      testing the HostName extension for a specific single host name ('-cert'
2932      and '-key' remain fallbacks for handshakes without HostName
2933      negotiation).  If the unrecognized_name alert has to be sent, this by
2934      default is a warning; it becomes fatal with the '-servername_fatal'
2935      option.
2936
2937      [Peter Sylvester,  Remy Allais, Christophe Renou]
2938
2939   *) Whirlpool hash implementation is added.
2940      [Andy Polyakov]
2941
2942   *) BIGNUM code on 64-bit SPARCv9 targets is switched from bn(64,64) to
2943      bn(64,32). Because of instruction set limitations it doesn't have
2944      any negative impact on performance. This was done mostly in order
2945      to make it possible to share assembler modules, such as bn_mul_mont
2946      implementations, between 32- and 64-bit builds without hassle.
2947      [Andy Polyakov]
2948
2949   *) Move code previously exiled into file crypto/ec/ec2_smpt.c
2950      to ec2_smpl.c, and no longer require the OPENSSL_EC_BIN_PT_COMP
2951      macro.
2952      [Bodo Moeller]
2953
2954   *) New candidate for BIGNUM assembler implementation, bn_mul_mont,
2955      dedicated Montgomery multiplication procedure, is introduced.
2956      BN_MONT_CTX is modified to allow bn_mul_mont to reach for higher
2957      "64-bit" performance on certain 32-bit targets.
2958      [Andy Polyakov]
2959
2960   *) New option SSL_OP_NO_COMP to disable use of compression selectively
2961      in SSL structures. New SSL ctrl to set maximum send fragment size. 
2962      Save memory by seeting the I/O buffer sizes dynamically instead of
2963      using the maximum available value.
2964      [Steve Henson]
2965
2966   *) New option -V for 'openssl ciphers'. This prints the ciphersuite code
2967      in addition to the text details.
2968      [Bodo Moeller]
2969
2970   *) Very, very preliminary EXPERIMENTAL support for printing of general
2971      ASN1 structures. This currently produces rather ugly output and doesn't
2972      handle several customised structures at all.
2973      [Steve Henson]
2974
2975   *) Integrated support for PVK file format and some related formats such
2976      as MS PUBLICKEYBLOB and PRIVATEKEYBLOB. Command line switches to support
2977      these in the 'rsa' and 'dsa' utilities.
2978      [Steve Henson]
2979
2980   *) Support for PKCS#1 RSAPublicKey format on rsa utility command line.
2981      [Steve Henson]
2982
2983   *) Remove the ancient ASN1_METHOD code. This was only ever used in one
2984      place for the (very old) "NETSCAPE" format certificates which are now
2985      handled using new ASN1 code equivalents.
2986      [Steve Henson]
2987
2988   *) Let the TLSv1_method() etc. functions return a 'const' SSL_METHOD
2989      pointer and make the SSL_METHOD parameter in SSL_CTX_new,
2990      SSL_CTX_set_ssl_version and SSL_set_ssl_method 'const'.
2991      [Nils Larsch]
2992
2993   *) Modify CRL distribution points extension code to print out previously
2994      unsupported fields. Enhance extension setting code to allow setting of
2995      all fields.
2996      [Steve Henson]
2997
2998   *) Add print and set support for Issuing Distribution Point CRL extension.
2999      [Steve Henson]
3000
3001   *) Change 'Configure' script to enable Camellia by default.
3002      [NTT]
3003
3004  Changes between 0.9.8m and 0.9.8n [24 Mar 2010]
3005
3006   *) When rejecting SSL/TLS records due to an incorrect version number, never
3007      update s->server with a new major version number.  As of
3008      - OpenSSL 0.9.8m if 'short' is a 16-bit type,
3009      - OpenSSL 0.9.8f if 'short' is longer than 16 bits,
3010      the previous behavior could result in a read attempt at NULL when
3011      receiving specific incorrect SSL/TLS records once record payload
3012      protection is active.  (CVE-2010-0740)
3013      [Bodo Moeller, Adam Langley <agl@chromium.org>]
3014
3015   *) Fix for CVE-2010-0433 where some kerberos enabled versions of OpenSSL 
3016      could be crashed if the relevant tables were not present (e.g. chrooted).
3017      [Tomas Hoger <thoger@redhat.com>]
3018
3019  Changes between 0.9.8l and 0.9.8m [25 Feb 2010]
3020
3021   *) Always check bn_wexpend() return values for failure.  (CVE-2009-3245)
3022      [Martin Olsson, Neel Mehta]
3023
3024   *) Fix X509_STORE locking: Every 'objs' access requires a lock (to
3025      accommodate for stack sorting, always a write lock!).
3026      [Bodo Moeller]
3027
3028   *) On some versions of WIN32 Heap32Next is very slow. This can cause
3029      excessive delays in the RAND_poll(): over a minute. As a workaround
3030      include a time check in the inner Heap32Next loop too.
3031      [Steve Henson]
3032
3033   *) The code that handled flushing of data in SSL/TLS originally used the
3034      BIO_CTRL_INFO ctrl to see if any data was pending first. This caused
3035      the problem outlined in PR#1949. The fix suggested there however can
3036      trigger problems with buggy BIO_CTRL_WPENDING (e.g. some versions
3037      of Apache). So instead simplify the code to flush unconditionally.
3038      This should be fine since flushing with no data to flush is a no op.
3039      [Steve Henson]
3040
3041   *) Handle TLS versions 2.0 and later properly and correctly use the
3042      highest version of TLS/SSL supported. Although TLS >= 2.0 is some way
3043      off ancient servers have a habit of sticking around for a while...
3044      [Steve Henson]
3045
3046   *) Modify compression code so it frees up structures without using the
3047      ex_data callbacks. This works around a problem where some applications
3048      call CRYPTO_cleanup_all_ex_data() before application exit (e.g. when
3049      restarting) then use compression (e.g. SSL with compression) later.
3050      This results in significant per-connection memory leaks and
3051      has caused some security issues including CVE-2008-1678 and
3052      CVE-2009-4355.
3053      [Steve Henson]
3054
3055   *) Constify crypto/cast (i.e., <openssl/cast.h>): a CAST_KEY doesn't
3056      change when encrypting or decrypting.
3057      [Bodo Moeller]
3058
3059   *) Add option SSL_OP_LEGACY_SERVER_CONNECT which will allow clients to
3060      connect and renegotiate with servers which do not support RI.
3061      Until RI is more widely deployed this option is enabled by default.
3062      [Steve Henson]
3063
3064   *) Add "missing" ssl ctrls to clear options and mode.
3065      [Steve Henson]
3066
3067   *) If client attempts to renegotiate and doesn't support RI respond with
3068      a no_renegotiation alert as required by RFC5746.  Some renegotiating
3069      TLS clients will continue a connection gracefully when they receive
3070      the alert. Unfortunately OpenSSL mishandled this alert and would hang
3071      waiting for a server hello which it will never receive. Now we treat a
3072      received no_renegotiation alert as a fatal error. This is because
3073      applications requesting a renegotiation might well expect it to succeed
3074      and would have no code in place to handle the server denying it so the
3075      only safe thing to do is to terminate the connection.
3076      [Steve Henson]
3077
3078   *) Add ctrl macro SSL_get_secure_renegotiation_support() which returns 1 if
3079      peer supports secure renegotiation and 0 otherwise. Print out peer
3080      renegotiation support in s_client/s_server.
3081      [Steve Henson]
3082
3083   *) Replace the highly broken and deprecated SPKAC certification method with
3084      the updated NID creation version. This should correctly handle UTF8.
3085      [Steve Henson]
3086
3087   *) Implement RFC5746. Re-enable renegotiation but require the extension
3088      as needed. Unfortunately, SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION
3089      turns out to be a bad idea. It has been replaced by
3090      SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION which can be set with
3091      SSL_CTX_set_options(). This is really not recommended unless you
3092      know what you are doing.
3093      [Eric Rescorla <ekr@networkresonance.com>, Ben Laurie, Steve Henson]
3094
3095   *) Fixes to stateless session resumption handling. Use initial_ctx when
3096      issuing and attempting to decrypt tickets in case it has changed during
3097      servername handling. Use a non-zero length session ID when attempting
3098      stateless session resumption: this makes it possible to determine if
3099      a resumption has occurred immediately after receiving server hello
3100      (several places in OpenSSL subtly assume this) instead of later in
3101      the handshake.
3102      [Steve Henson]
3103
3104   *) The functions ENGINE_ctrl(), OPENSSL_isservice(),
3105      CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error
3106      fixes for a few places where the return code is not checked
3107      correctly.
3108      [Julia Lawall <julia@diku.dk>]
3109
3110   *) Add --strict-warnings option to Configure script to include devteam
3111      warnings in other configurations.
3112      [Steve Henson]
3113
3114   *) Add support for --libdir option and LIBDIR variable in makefiles. This
3115      makes it possible to install openssl libraries in locations which
3116      have names other than "lib", for example "/usr/lib64" which some
3117      systems need.
3118      [Steve Henson, based on patch from Jeremy Utley]
3119
3120   *) Don't allow the use of leading 0x80 in OIDs. This is a violation of
3121      X690 8.9.12 and can produce some misleading textual output of OIDs.
3122      [Steve Henson, reported by Dan Kaminsky]
3123
3124   *) Delete MD2 from algorithm tables. This follows the recommendation in
3125      several standards that it is not used in new applications due to
3126      several cryptographic weaknesses. For binary compatibility reasons
3127      the MD2 API is still compiled in by default.
3128      [Steve Henson]
3129
3130   *) Add compression id to {d2i,i2d}_SSL_SESSION so it is correctly saved
3131      and restored.
3132      [Steve Henson]
3133
3134   *) Rename uni2asc and asc2uni functions to OPENSSL_uni2asc and
3135      OPENSSL_asc2uni conditionally on Netware platforms to avoid a name
3136      clash.
3137      [Guenter <lists@gknw.net>]
3138
3139   *) Fix the server certificate chain building code to use X509_verify_cert(),
3140      it used to have an ad-hoc builder which was unable to cope with anything
3141      other than a simple chain.
3142      [David Woodhouse <dwmw2@infradead.org>, Steve Henson]
3143
3144   *) Don't check self signed certificate signatures in X509_verify_cert()
3145      by default (a flag can override this): it just wastes time without
3146      adding any security. As a useful side effect self signed root CAs
3147      with non-FIPS digests are now usable in FIPS mode.
3148      [Steve Henson]
3149
3150   *) In dtls1_process_out_of_seq_message() the check if the current message
3151      is already buffered was missing. For every new message was memory
3152      allocated, allowing an attacker to perform an denial of service attack
3153      with sending out of seq handshake messages until there is no memory
3154      left. Additionally every future messege was buffered, even if the
3155      sequence number made no sense and would be part of another handshake.
3156      So only messages with sequence numbers less than 10 in advance will be
3157      buffered.  (CVE-2009-1378)
3158      [Robin Seggelmann, discovered by Daniel Mentz]     
3159
3160   *) Records are buffered if they arrive with a future epoch to be
3161      processed after finishing the corresponding handshake. There is
3162      currently no limitation to this buffer allowing an attacker to perform
3163      a DOS attack with sending records with future epochs until there is no
3164      memory left. This patch adds the pqueue_size() function to determine
3165      the size of a buffer and limits the record buffer to 100 entries.
3166      (CVE-2009-1377)
3167      [Robin Seggelmann, discovered by Daniel Mentz]     
3168
3169   *) Keep a copy of frag->msg_header.frag_len so it can be used after the
3170      parent structure is freed.  (CVE-2009-1379)
3171      [Daniel Mentz]     
3172
3173   *) Handle non-blocking I/O properly in SSL_shutdown() call.
3174      [Darryl Miles <darryl-mailinglists@netbauds.net>]
3175
3176   *) Add 2.5.4.* OIDs
3177      [Ilya O. <vrghost@gmail.com>]
3178
3179  Changes between 0.9.8k and 0.9.8l  [5 Nov 2009]
3180
3181   *) Disable renegotiation completely - this fixes a severe security
3182      problem (CVE-2009-3555) at the cost of breaking all
3183      renegotiation. Renegotiation can be re-enabled by setting
3184      SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION in s3->flags at
3185      run-time. This is really not recommended unless you know what
3186      you're doing.
3187      [Ben Laurie]
3188
3189  Changes between 0.9.8j and 0.9.8k  [25 Mar 2009]
3190
3191   *) Don't set val to NULL when freeing up structures, it is freed up by
3192      underlying code. If sizeof(void *) > sizeof(long) this can result in
3193      zeroing past the valid field. (CVE-2009-0789)
3194      [Paolo Ganci <Paolo.Ganci@AdNovum.CH>]
3195
3196   *) Fix bug where return value of CMS_SignerInfo_verify_content() was not
3197      checked correctly. This would allow some invalid signed attributes to
3198      appear to verify correctly. (CVE-2009-0591)
3199      [Ivan Nestlerode <inestlerode@us.ibm.com>]
3200
3201   *) Reject UniversalString and BMPString types with invalid lengths. This
3202      prevents a crash in ASN1_STRING_print_ex() which assumes the strings have
3203      a legal length. (CVE-2009-0590)
3204      [Steve Henson]
3205
3206   *) Set S/MIME signing as the default purpose rather than setting it 
3207      unconditionally. This allows applications to override it at the store
3208      level.
3209      [Steve Henson]
3210
3211   *) Permit restricted recursion of ASN1 strings. This is needed in practice
3212      to handle some structures.
3213      [Steve Henson]
3214
3215   *) Improve efficiency of mem_gets: don't search whole buffer each time
3216      for a '\n'
3217      [Jeremy Shapiro <jnshapir@us.ibm.com>]
3218
3219   *) New -hex option for openssl rand.
3220      [Matthieu Herrb]
3221
3222   *) Print out UTF8String and NumericString when parsing ASN1.
3223      [Steve Henson]
3224
3225   *) Support NumericString type for name components.
3226      [Steve Henson]
3227
3228   *) Allow CC in the environment to override the automatically chosen
3229      compiler. Note that nothing is done to ensure flags work with the
3230      chosen compiler.
3231      [Ben Laurie]
3232
3233  Changes between 0.9.8i and 0.9.8j  [07 Jan 2009]
3234
3235   *) Properly check EVP_VerifyFinal() and similar return values
3236      (CVE-2008-5077).
3237      [Ben Laurie, Bodo Moeller, Google Security Team]
3238
3239   *) Enable TLS extensions by default.
3240      [Ben Laurie]
3241
3242   *) Allow the CHIL engine to be loaded, whether the application is
3243      multithreaded or not. (This does not release the developer from the
3244      obligation to set up the dynamic locking callbacks.)
3245      [Sander Temme <sander@temme.net>]
3246
3247   *) Use correct exit code if there is an error in dgst command.
3248      [Steve Henson; problem pointed out by Roland Dirlewanger]
3249
3250   *) Tweak Configure so that you need to say "experimental-jpake" to enable
3251      JPAKE, and need to use -DOPENSSL_EXPERIMENTAL_JPAKE in applications.
3252      [Bodo Moeller]
3253
3254   *) Add experimental JPAKE support, including demo authentication in
3255      s_client and s_server.
3256      [Ben Laurie]
3257
3258   *) Set the comparison function in v3_addr_canonize().
3259      [Rob Austein <sra@hactrn.net>]
3260
3261   *) Add support for XMPP STARTTLS in s_client.
3262      [Philip Paeps <philip@freebsd.org>]
3263
3264   *) Change the server-side SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG behavior
3265      to ensure that even with this option, only ciphersuites in the
3266      server's preference list will be accepted.  (Note that the option
3267      applies only when resuming a session, so the earlier behavior was
3268      just about the algorithm choice for symmetric cryptography.)
3269      [Bodo Moeller]
3270
3271  Changes between 0.9.8h and 0.9.8i  [15 Sep 2008]
3272
3273   *) Fix NULL pointer dereference if a DTLS server received
3274      ChangeCipherSpec as first record (CVE-2009-1386).
3275      [PR #1679]
3276
3277   *) Fix a state transition in s3_srvr.c and d1_srvr.c
3278      (was using SSL3_ST_CW_CLNT_HELLO_B, should be ..._ST_SW_SRVR_...).
3279      [Nagendra Modadugu]
3280
3281   *) The fix in 0.9.8c that supposedly got rid of unsafe
3282      double-checked locking was incomplete for RSA blinding,
3283      addressing just one layer of what turns out to have been
3284      doubly unsafe triple-checked locking.
3285
3286      So now fix this for real by retiring the MONT_HELPER macro
3287      in crypto/rsa/rsa_eay.c.
3288
3289      [Bodo Moeller; problem pointed out by Marius Schilder]
3290
3291   *) Various precautionary measures:
3292
3293      - Avoid size_t integer overflow in HASH_UPDATE (md32_common.h).
3294
3295      - Avoid a buffer overflow in d2i_SSL_SESSION() (ssl_asn1.c).
3296        (NB: This would require knowledge of the secret session ticket key
3297        to exploit, in which case you'd be SOL either way.)
3298
3299      - Change bn_nist.c so that it will properly handle input BIGNUMs
3300        outside the expected range.
3301
3302      - Enforce the 'num' check in BN_div() (bn_div.c) for non-BN_DEBUG
3303        builds.
3304
3305      [Neel Mehta, Bodo Moeller]
3306
3307   *) Allow engines to be "soft loaded" - i.e. optionally don't die if
3308      the load fails. Useful for distros.
3309      [Ben Laurie and the FreeBSD team]
3310
3311   *) Add support for Local Machine Keyset attribute in PKCS#12 files.
3312      [Steve Henson]
3313
3314   *) Fix BN_GF2m_mod_arr() top-bit cleanup code.
3315      [Huang Ying]
3316
3317   *) Expand ENGINE to support engine supplied SSL client certificate functions.
3318
3319      This work was sponsored by Logica.
3320      [Steve Henson]
3321
3322   *) Add CryptoAPI ENGINE to support use of RSA and DSA keys held in Windows
3323      keystores. Support for SSL/TLS client authentication too.
3324      Not compiled unless enable-capieng specified to Configure.
3325
3326      This work was sponsored by Logica.
3327      [Steve Henson]
3328
3329   *) Fix bug in X509_ATTRIBUTE creation: dont set attribute using
3330      ASN1_TYPE_set1 if MBSTRING flag set. This bug would crash certain
3331      attribute creation routines such as certifcate requests and PKCS#12
3332      files.
3333      [Steve Henson]
3334
3335  Changes between 0.9.8g and 0.9.8h  [28 May 2008]
3336
3337   *) Fix flaw if 'Server Key exchange message' is omitted from a TLS
3338      handshake which could lead to a cilent crash as found using the
3339      Codenomicon TLS test suite (CVE-2008-1672) 
3340      [Steve Henson, Mark Cox]
3341
3342   *) Fix double free in TLS server name extensions which could lead to
3343      a remote crash found by Codenomicon TLS test suite (CVE-2008-0891) 
3344      [Joe Orton]
3345
3346   *) Clear error queue in SSL_CTX_use_certificate_chain_file()
3347
3348      Clear the error queue to ensure that error entries left from
3349      older function calls do not interfere with the correct operation.
3350      [Lutz Jaenicke, Erik de Castro Lopo]
3351
3352   *) Remove root CA certificates of commercial CAs:
3353
3354      The OpenSSL project does not recommend any specific CA and does not
3355      have any policy with respect to including or excluding any CA.
3356      Therefore it does not make any sense to ship an arbitrary selection
3357      of root CA certificates with the OpenSSL software.
3358      [Lutz Jaenicke]
3359
3360   *) RSA OAEP patches to fix two separate invalid memory reads.
3361      The first one involves inputs when 'lzero' is greater than
3362      'SHA_DIGEST_LENGTH' (it would read about SHA_DIGEST_LENGTH bytes
3363      before the beginning of from). The second one involves inputs where
3364      the 'db' section contains nothing but zeroes (there is a one-byte
3365      invalid read after the end of 'db').
3366      [Ivan Nestlerode <inestlerode@us.ibm.com>]
3367
3368   *) Partial backport from 0.9.9-dev:
3369
3370      Introduce bn_mul_mont (dedicated Montgomery multiplication
3371      procedure) as a candidate for BIGNUM assembler implementation.
3372      While 0.9.9-dev uses assembler for various architectures, only
3373      x86_64 is available by default here in the 0.9.8 branch, and
3374      32-bit x86 is available through a compile-time setting.
3375
3376      To try the 32-bit x86 assembler implementation, use Configure
3377      option "enable-montasm" (which exists only for this backport).
3378
3379      As "enable-montasm" for 32-bit x86 disclaims code stability
3380      anyway, in this constellation we activate additional code
3381      backported from 0.9.9-dev for further performance improvements,
3382      namely BN_from_montgomery_word.  (To enable this otherwise,
3383      e.g. x86_64, try "-DMONT_FROM_WORD___NON_DEFAULT_0_9_8_BUILD".)
3384
3385      [Andy Polyakov (backport partially by Bodo Moeller)]
3386
3387   *) Add TLS session ticket callback. This allows an application to set
3388      TLS ticket cipher and HMAC keys rather than relying on hardcoded fixed
3389      values. This is useful for key rollover for example where several key
3390      sets may exist with different names.
3391      [Steve Henson]
3392
3393   *) Reverse ENGINE-internal logic for caching default ENGINE handles.
3394      This was broken until now in 0.9.8 releases, such that the only way
3395      a registered ENGINE could be used (assuming it initialises
3396      successfully on the host) was to explicitly set it as the default
3397      for the relevant algorithms. This is in contradiction with 0.9.7
3398      behaviour and the documentation. With this fix, when an ENGINE is
3399      registered into a given algorithm's table of implementations, the
3400      'uptodate' flag is reset so that auto-discovery will be used next
3401      time a new context for that algorithm attempts to select an
3402      implementation.
3403      [Ian Lister (tweaked by Geoff Thorpe)]
3404
3405   *) Backport of CMS code to OpenSSL 0.9.8. This differs from the 0.9.9
3406      implemention in the following ways:
3407
3408      Lack of EVP_PKEY_ASN1_METHOD means algorithm parameters have to be
3409      hard coded.
3410
3411      Lack of BER streaming support means one pass streaming processing is
3412      only supported if data is detached: setting the streaming flag is
3413      ignored for embedded content.
3414
3415      CMS support is disabled by default and must be explicitly enabled
3416      with the enable-cms configuration option.
3417      [Steve Henson]
3418
3419   *) Update the GMP engine glue to do direct copies between BIGNUM and
3420      mpz_t when openssl and GMP use the same limb size. Otherwise the
3421      existing "conversion via a text string export" trick is still used.
3422      [Paul Sheer <paulsheer@gmail.com>]
3423
3424   *) Zlib compression BIO. This is a filter BIO which compressed and
3425      uncompresses any data passed through it.
3426      [Steve Henson]
3427
3428   *) Add AES_wrap_key() and AES_unwrap_key() functions to implement
3429      RFC3394 compatible AES key wrapping.
3430      [Steve Henson]
3431
3432   *) Add utility functions to handle ASN1 structures. ASN1_STRING_set0():
3433      sets string data without copying. X509_ALGOR_set0() and
3434      X509_ALGOR_get0(): set and retrieve X509_ALGOR (AlgorithmIdentifier)
3435      data. Attribute function X509at_get0_data_by_OBJ(): retrieves data
3436      from an X509_ATTRIBUTE structure optionally checking it occurs only
3437      once. ASN1_TYPE_set1(): set and ASN1_TYPE structure copying supplied
3438      data.
3439      [Steve Henson]
3440
3441   *) Fix BN flag handling in RSA_eay_mod_exp() and BN_MONT_CTX_set()
3442      to get the expected BN_FLG_CONSTTIME behavior.
3443      [Bodo Moeller (Google)]
3444   
3445   *) Netware support:
3446
3447      - fixed wrong usage of ioctlsocket() when build for LIBC BSD sockets
3448      - fixed do_tests.pl to run the test suite with CLIB builds too (CLIB_OPT)
3449      - added some more tests to do_tests.pl
3450      - fixed RunningProcess usage so that it works with newer LIBC NDKs too
3451      - removed usage of BN_LLONG for CLIB builds to avoid runtime dependency
3452      - added new Configure targets netware-clib-bsdsock, netware-clib-gcc,
3453        netware-clib-bsdsock-gcc, netware-libc-bsdsock-gcc
3454      - various changes to netware.pl to enable gcc-cross builds on Win32
3455        platform
3456      - changed crypto/bio/b_sock.c to work with macro functions (CLIB BSD)
3457      - various changes to fix missing prototype warnings
3458      - fixed x86nasm.pl to create correct asm files for NASM COFF output
3459      - added AES, WHIRLPOOL and CPUID assembler code to build files
3460      - added missing AES assembler make rules to mk1mf.pl
3461      - fixed order of includes in apps/ocsp.c so that e_os.h settings apply
3462      [Guenter Knauf <eflash@gmx.net>]
3463
3464   *) Implement certificate status request TLS extension defined in RFC3546.
3465      A client can set the appropriate parameters and receive the encoded
3466      OCSP response via a callback. A server can query the supplied parameters
3467      and set the encoded OCSP response in the callback. Add simplified examples
3468      to s_client and s_server.
3469      [Steve Henson]
3470
3471  Changes between 0.9.8f and 0.9.8g  [19 Oct 2007]
3472
3473   *) Fix various bugs:
3474      + Binary incompatibility of ssl_ctx_st structure
3475      + DTLS interoperation with non-compliant servers
3476      + Don't call get_session_cb() without proposed session
3477      + Fix ia64 assembler code
3478      [Andy Polyakov, Steve Henson]
3479
3480  Changes between 0.9.8e and 0.9.8f  [11 Oct 2007]
3481
3482   *) DTLS Handshake overhaul. There were longstanding issues with
3483      OpenSSL DTLS implementation, which were making it impossible for
3484      RFC 4347 compliant client to communicate with OpenSSL server.
3485      Unfortunately just fixing these incompatibilities would "cut off"
3486      pre-0.9.8f clients. To allow for hassle free upgrade post-0.9.8e
3487      server keeps tolerating non RFC compliant syntax. The opposite is
3488      not true, 0.9.8f client can not communicate with earlier server.
3489      This update even addresses CVE-2007-4995.
3490      [Andy Polyakov]
3491
3492   *) Changes to avoid need for function casts in OpenSSL: some compilers
3493      (gcc 4.2 and later) reject their use.
3494      [Kurt Roeckx <kurt@roeckx.be>, Peter Hartley <pdh@utter.chaos.org.uk>,
3495       Steve Henson]
3496   
3497   *) Add RFC4507 support to OpenSSL. This includes the corrections in
3498      RFC4507bis. The encrypted ticket format is an encrypted encoded
3499      SSL_SESSION structure, that way new session features are automatically
3500      supported.
3501
3502      If a client application caches session in an SSL_SESSION structure
3503      support is transparent because tickets are now stored in the encoded
3504      SSL_SESSION.
3505      
3506      The SSL_CTX structure automatically generates keys for ticket
3507      protection in servers so again support should be possible
3508      with no application modification.
3509
3510      If a client or server wishes to disable RFC4507 support then the option
3511      SSL_OP_NO_TICKET can be set.
3512
3513      Add a TLS extension debugging callback to allow the contents of any client
3514      or server extensions to be examined.
3515
3516      This work was sponsored by Google.
3517      [Steve Henson]
3518
3519   *) Add initial support for TLS extensions, specifically for the server_name
3520      extension so far.  The SSL_SESSION, SSL_CTX, and SSL data structures now
3521      have new members for a host name.  The SSL data structure has an
3522      additional member SSL_CTX *initial_ctx so that new sessions can be
3523      stored in that context to allow for session resumption, even after the
3524      SSL has been switched to a new SSL_CTX in reaction to a client's
3525      server_name extension.
3526
3527      New functions (subject to change):
3528
3529          SSL_get_servername()
3530          SSL_get_servername_type()
3531          SSL_set_SSL_CTX()
3532
3533      New CTRL codes and macros (subject to change):
3534
3535          SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
3536                                  - SSL_CTX_set_tlsext_servername_callback()
3537          SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG
3538                                       - SSL_CTX_set_tlsext_servername_arg()
3539          SSL_CTRL_SET_TLSEXT_HOSTNAME           - SSL_set_tlsext_host_name()
3540
3541      openssl s_client has a new '-servername ...' option.
3542
3543      openssl s_server has new options '-servername_host ...', '-cert2 ...',
3544      '-key2 ...', '-servername_fatal' (subject to change).  This allows
3545      testing the HostName extension for a specific single host name ('-cert'
3546      and '-key' remain fallbacks for handshakes without HostName
3547      negotiation).  If the unrecognized_name alert has to be sent, this by
3548      default is a warning; it becomes fatal with the '-servername_fatal'
3549      option.
3550
3551      [Peter Sylvester,  Remy Allais, Christophe Renou, Steve Henson]
3552
3553   *) Add AES and SSE2 assembly language support to VC++ build.
3554      [Steve Henson]
3555
3556   *) Mitigate attack on final subtraction in Montgomery reduction.
3557      [Andy Polyakov]
3558
3559   *) Fix crypto/ec/ec_mult.c to work properly with scalars of value 0
3560      (which previously caused an internal error).
3561      [Bodo Moeller]
3562
3563   *) Squeeze another 10% out of IGE mode when in != out.
3564      [Ben Laurie]
3565
3566   *) AES IGE mode speedup.
3567      [Dean Gaudet (Google)]
3568
3569   *) Add the Korean symmetric 128-bit cipher SEED (see
3570      http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp) and
3571      add SEED ciphersuites from RFC 4162:
3572
3573         TLS_RSA_WITH_SEED_CBC_SHA      =  "SEED-SHA"
3574         TLS_DHE_DSS_WITH_SEED_CBC_SHA  =  "DHE-DSS-SEED-SHA"
3575         TLS_DHE_RSA_WITH_SEED_CBC_SHA  =  "DHE-RSA-SEED-SHA"
3576         TLS_DH_anon_WITH_SEED_CBC_SHA  =  "ADH-SEED-SHA"
3577
3578      To minimize changes between patchlevels in the OpenSSL 0.9.8
3579      series, SEED remains excluded from compilation unless OpenSSL
3580      is configured with 'enable-seed'.
3581      [KISA, Bodo Moeller]
3582
3583   *) Mitigate branch prediction attacks, which can be practical if a
3584      single processor is shared, allowing a spy process to extract
3585      information.  For detailed background information, see
3586      http://eprint.iacr.org/2007/039 (O. Aciicmez, S. Gueron,
3587      J.-P. Seifert, "New Branch Prediction Vulnerabilities in OpenSSL
3588      and Necessary Software Countermeasures").  The core of the change
3589      are new versions BN_div_no_branch() and
3590      BN_mod_inverse_no_branch() of BN_div() and BN_mod_inverse(),
3591      respectively, which are slower, but avoid the security-relevant
3592      conditional branches.  These are automatically called by BN_div()
3593      and BN_mod_inverse() if the flag BN_FLG_CONSTTIME is set for one
3594      of the input BIGNUMs.  Also, BN_is_bit_set() has been changed to
3595      remove a conditional branch.
3596
3597      BN_FLG_CONSTTIME is the new name for the previous
3598      BN_FLG_EXP_CONSTTIME flag, since it now affects more than just
3599      modular exponentiation.  (Since OpenSSL 0.9.7h, setting this flag
3600      in the exponent causes BN_mod_exp_mont() to use the alternative
3601      implementation in BN_mod_exp_mont_consttime().)  The old name
3602      remains as a deprecated alias.
3603
3604      Similary, RSA_FLAG_NO_EXP_CONSTTIME is replaced by a more general
3605      RSA_FLAG_NO_CONSTTIME flag since the RSA implementation now uses
3606      constant-time implementations for more than just exponentiation.
3607      Here too the old name is kept as a deprecated alias.
3608
3609      BN_BLINDING_new() will now use BN_dup() for the modulus so that
3610      the BN_BLINDING structure gets an independent copy of the
3611      modulus.  This means that the previous "BIGNUM *m" argument to
3612      BN_BLINDING_new() and to BN_BLINDING_create_param() now
3613      essentially becomes "const BIGNUM *m", although we can't actually
3614      change this in the header file before 0.9.9.  It allows
3615      RSA_setup_blinding() to use BN_with_flags() on the modulus to
3616      enable BN_FLG_CONSTTIME.
3617
3618      [Matthew D Wood (Intel Corp)]
3619
3620   *) In the SSL/TLS server implementation, be strict about session ID
3621      context matching (which matters if an application uses a single
3622      external cache for different purposes).  Previously,
3623      out-of-context reuse was forbidden only if SSL_VERIFY_PEER was
3624      set.  This did ensure strict client verification, but meant that,
3625      with applications using a single external cache for quite
3626      different requirements, clients could circumvent ciphersuite
3627      restrictions for a given session ID context by starting a session
3628      in a different context.
3629      [Bodo Moeller]
3630
3631   *) Include "!eNULL" in SSL_DEFAULT_CIPHER_LIST to make sure that
3632      a ciphersuite string such as "DEFAULT:RSA" cannot enable
3633      authentication-only ciphersuites.
3634      [Bodo Moeller]
3635
3636   *) Update the SSL_get_shared_ciphers() fix CVE-2006-3738 which was
3637      not complete and could lead to a possible single byte overflow
3638      (CVE-2007-5135) [Ben Laurie]
3639
3640  Changes between 0.9.8d and 0.9.8e  [23 Feb 2007]
3641
3642   *) Since AES128 and AES256 (and similarly Camellia128 and
3643      Camellia256) share a single mask bit in the logic of
3644    &