Merge "Update snapshot history" into tizen
[platform/upstream/iotivity.git] / extlibs / mbedtls / mbedtls / ChangeLog
1 mbed TLS ChangeLog (Sorted per branch, date)
2
3 = mbed TLS 2.4.0 branch released 2016-10-17
4
5 Security
6    * Removed the MBEDTLS_SSL_AEAD_RANDOM_IV option, because it was not compliant
7      with RFC-5116 and could lead to session key recovery in very long TLS
8      sessions. "Nonce-Disrespecting Adversaries Practical Forgery Attacks on GCM in
9      TLS" - H. Bock, A. Zauner, S. Devlin, J. Somorovsky, P. Jovanovic.
10      https://eprint.iacr.org/2016/475.pdf
11    * Fixed potential stack corruption in mbedtls_x509write_crt_der() and
12      mbedtls_x509write_csr_der() when the signature is copied to the buffer
13      without checking whether there is enough space in the destination. The
14      issue cannot be triggered remotely. Found by Jethro Beekman.
15
16 Features
17    * Added support for CMAC for AES and 3DES and AES-CMAC-PRF-128, as defined by
18      NIST SP 800-38B, RFC-4493 and RFC-4615.
19    * Added hardware entropy selftest to verify that the hardware entropy source
20      is functioning correctly.
21    * Added a script to print build environment info for diagnostic use in test
22      scripts, which is also now called by all.sh.
23    * Added the macro MBEDTLS_X509_MAX_FILE_PATH_LEN that enables the user to
24      configure the maximum length of a file path that can be buffered when
25      calling mbedtls_x509_crt_parse_path().
26    * Added a configuration file config-no-entropy.h that configures the subset of
27      library features that do not require an entropy source.
28    * Added the macro MBEDTLS_ENTROPY_MIN_HARDWARE in config.h. This allows users
29      to configure the minimum number of bytes for entropy sources using the
30      mbedtls_hardware_poll() function.
31
32 Bugfix
33    * Fix for platform time abstraction to avoid dependency issues where a build
34      may need time but not the standard C library abstraction, and added
35      configuration consistency checks to check_config.h
36    * Fix dependency issue in Makefile to allow parallel builds.
37    * Fix incorrect handling of block lengths in crypt_and_hash.c sample program,
38      when GCM is used. Found by udf2457. #441
39    * Fix for key exchanges based on ECDH-RSA or ECDH-ECDSA which weren't
40      enabled unless others were also present. Found by David Fernandez. #428
41    * Fix for out-of-tree builds using CMake. Found by jwurzer, and fix based on
42      a contribution from Tobias Tangemann. #541
43    * Fixed cert_app.c sample program for debug output and for use when no root
44      certificates are provided.
45    * Fix conditional statement that would cause a 1 byte overread in
46      mbedtls_asn1_get_int(). Found and fixed by Guido Vranken. #599
47    * Fixed pthread implementation to avoid unintended double initialisations
48      and double frees. Found by Niklas Amnebratt.
49    * Fixed the sample applications gen_key.c, cert_req.c and cert_write.c for
50      builds where the configuration MBEDTLS_PEM_WRITE_C is not defined. Found
51      by inestlerode. #559.
52    * Fix mbedtls_x509_get_sig() to update the ASN1 type in the mbedtls_x509_buf
53      data structure until after error checks are successful. Found by
54      subramanyam-c. #622
55    * Fix documentation and implementation missmatch for function arguments of
56      mbedtls_gcm_finish(). Found by cmiatpaar. #602
57    * Guarantee that P>Q at RSA key generation. Found by inestlerode. #558
58    * Fix potential byte overread when verifying malformed SERVER_HELLO in
59      ssl_parse_hello_verify_request() for DTLS. Found by Guido Vranken.
60    * Fix check for validity of date when parsing in mbedtls_x509_get_time().
61      Found by subramanyam-c. #626
62    * Fix compatibility issue with Internet Explorer client authentication,
63      where the limited hash choices prevented the client from sending its
64      certificate. Found by teumas. #513
65    * Fix compilation without MBEDTLS_SELF_TEST enabled.
66
67 Changes
68    * Extended test coverage of special cases, and added new timing test suite.
69    * Removed self-tests from the basic-built-test.sh script, and added all
70      missing self-tests to the test suites, to ensure self-tests are only
71      executed once.
72    * Added support for 3 and 4 byte lengths to mbedtls_asn1_write_len().
73    * Added support for a Yotta specific configuration file -
74      through the symbol YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE.
75    * Added optimization for code space for X.509/OID based on configured
76      features. Contributed by Aviv Palivoda.
77    * Renamed source file library/net.c to library/net_sockets.c to avoid
78      naming collision in projects which also have files with the common name
79      net.c. For consistency, the corresponding header file, net.h, is marked as
80      deprecated, and its contents moved to net_sockets.h.
81    * Changed the strategy for X.509 certificate parsing and validation, to no
82      longer disregard certificates with unrecognised fields.
83
84 = mbed TLS 2.3.0 branch released 2016-06-28
85
86 Security
87    * Fix missing padding length check in mbedtls_rsa_rsaes_pkcs1_v15_decrypt
88      required by PKCS1 v2.2
89    * Fix potential integer overflow to buffer overflow in
90      mbedtls_rsa_rsaes_pkcs1_v15_encrypt and mbedtls_rsa_rsaes_oaep_encrypt
91      (not triggerable remotely in (D)TLS).
92    * Fix a potential integer underflow to buffer overread in 
93      mbedtls_rsa_rsaes_oaep_decrypt. It is not triggerable remotely in
94      SSL/TLS.
95
96 Features
97    * Support for platform abstraction of the standard C library time()
98      function.
99
100 Bugfix
101    * Fix bug in mbedtls_mpi_add_mpi() that caused wrong results when the three
102      arguments where the same (in-place doubling). Found and fixed by Janos
103      Follath. #309
104    * Fix potential build failures related to the 'apidoc' target, introduced
105      in the previous patch release. Found by Robert Scheck. #390 #391
106    * Fix issue in Makefile that prevented building using armar. #386
107    * Fix memory leak that occured only when ECJPAKE was enabled and ECDHE and
108      ECDSA was disabled in config.h . The leak didn't occur by default.
109    * Fix an issue that caused valid certificates to be rejected whenever an
110      expired or not yet valid certificate was parsed before a valid certificate
111      in the trusted certificate list.
112    * Fix bug in mbedtls_x509_crt_parse that caused trailing extra data in the 
113      buffer after DER certificates to be included in the raw representation.
114    * Fix issue that caused a hang when generating RSA keys of odd bitlength
115    * Fix bug in mbedtls_rsa_rsaes_pkcs1_v15_encrypt that made null pointer
116      dereference possible.
117    * Fix issue that caused a crash if invalid curves were passed to
118      mbedtls_ssl_conf_curves. #373
119    * Fix issue in ssl_fork_server which was preventing it from functioning. #429
120    * Fix memory leaks in test framework
121    * Fix test in ssl-opt.sh that does not run properly with valgrind
122    * Fix unchecked calls to mmbedtls_md_setup(). Fix by Brian Murray. #502
123
124 Changes
125    * On ARM platforms, when compiling with -O0 with GCC, Clang or armcc5,
126      don't use the optimized assembly for bignum multiplication. This removes
127      the need to pass -fomit-frame-pointer to avoid a build error with -O0.
128    * Disabled SSLv3 in the default configuration.
129    * Optimized mbedtls_mpi_zeroize() for MPI integer size. (Fix by Alexey
130      Skalozub).
131    * Fix non-compliance server extension handling. Extensions for SSLv3 are now
132      ignored, as required by RFC6101.
133
134 = mbed TLS 2.2.1 released 2016-01-05
135
136 Security
137    * Fix potential double free when mbedtls_asn1_store_named_data() fails to
138      allocate memory. Only used for certificate generation, not triggerable
139      remotely in SSL/TLS. Found by Rafał Przywara. #367
140    * Disable MD5 handshake signatures in TLS 1.2 by default to prevent the
141      SLOTH attack on TLS 1.2 server authentication (other attacks from the
142      SLOTH paper do not apply to any version of mbed TLS or PolarSSL).
143      https://www.mitls.org/pages/attacks/SLOTH
144
145 Bugfix
146    * Fix over-restrictive length limit in GCM. Found by Andreas-N. #362
147    * Fix bug in certificate validation that caused valid chains to be rejected
148      when the first intermediate certificate has pathLenConstraint=0. Found by
149      Nicholas Wilson. Introduced in mbed TLS 2.2.0. #280
150    * Removed potential leak in mbedtls_rsa_rsassa_pkcs1_v15_sign(), found by
151      JayaraghavendranK. #372
152    * Fix suboptimal handling of unexpected records that caused interop issues
153      with some peers over unreliable links. Avoid dropping an entire DTLS
154      datagram if a single record in a datagram is unexpected, instead only
155      drop the record and look at subsequent records (if any are present) in
156      the same datagram. Found by jeannotlapin. #345
157
158 = mbed TLS 2.2.0 released 2015-11-04
159
160 Security
161    * Fix potential double free if mbedtls_ssl_conf_psk() is called more than
162      once and some allocation fails. Cannot be forced remotely. Found by Guido
163      Vranken, Intelworks.
164    * Fix potential heap corruption on Windows when
165      mbedtls_x509_crt_parse_path() is passed a path longer than 2GB. Cannot be
166      triggered remotely. Found by Guido Vranken, Intelworks.
167    * Fix potential buffer overflow in some asn1_write_xxx() functions.
168      Cannot be triggered remotely unless you create X.509 certificates based
169      on untrusted input or write keys of untrusted origin. Found by Guido
170      Vranken, Intelworks.
171    * The X509 max_pathlen constraint was not enforced on intermediate
172      certificates. Found by Nicholas Wilson, fix and tests provided by
173      Janos Follath. #280 and #319
174
175 Features
176    * Experimental support for EC J-PAKE as defined in Thread 1.0.0.
177      Disabled by default as the specification might still change.
178    * Added a key extraction callback to accees the master secret and key
179      block. (Potential uses include EAP-TLS and Thread.)
180
181 Bugfix
182    * Self-signed certificates were not excluded from pathlen counting,
183      resulting in some valid X.509 being incorrectly rejected. Found and fix
184      provided by Janos Follath. #319
185    * Fix build error with configurations where ECDHE-PSK is the only key
186      exchange. Found and fix provided by Chris Hammond. #270
187    * Fix build error with configurations where RSA, RSA-PSK, ECDH-RSA or
188      ECHD-ECDSA if the only key exchange. Multiple reports. #310
189    * Fixed a bug causing some handshakes to fail due to some non-fatal alerts
190      not being properly ignored. Found by mancha and Kasom Koht-arsa, #308
191    * mbedtls_x509_crt_verify(_with_profile)() now also checks the key type and
192      size/curve against the profile. Before that, there was no way to set a
193      minimum key size for end-entity certificates with RSA keys. Found by
194      Matthew Page of Scannex Electronics Ltd.
195    * Fix failures in MPI on Sparc(64) due to use of bad assembly code.
196      Found by Kurt Danielson. #292
197    * Fix typo in name of the extKeyUsage OID. Found by inestlerode, #314
198    * Fix bug in ASN.1 encoding of booleans that caused generated CA
199      certificates to be rejected by some applications, including OS X
200      Keychain. Found and fixed by Jonathan Leroy, Inikup.
201
202 Changes
203    * Improved performance of mbedtls_ecp_muladd() when one of the scalars is 1
204      or -1.
205
206 = mbed TLS 2.1.2 released 2015-10-06
207
208 Security
209    * Added fix for CVE-2015-5291 to prevent heap corruption due to buffer
210      overflow of the hostname or session ticket. Found by Guido Vranken,
211      Intelworks.
212    * Fix potential double-free if mbedtls_ssl_set_hs_psk() is called more than
213      once in the same handhake and mbedtls_ssl_conf_psk() was used.
214      Found and patch provided by Guido Vranken, Intelworks. Cannot be forced
215      remotely.
216    * Fix stack buffer overflow in pkcs12 decryption (used by
217      mbedtls_pk_parse_key(file)() when the password is > 129 bytes.
218      Found by Guido Vranken, Intelworks. Not triggerable remotely.
219    * Fix potential buffer overflow in mbedtls_mpi_read_string().
220      Found by Guido Vranken, Intelworks. Not exploitable remotely in the context
221      of TLS, but might be in other uses. On 32 bit machines, requires reading a
222      string of close to or larger than 1GB to exploit; on 64 bit machines, would
223      require reading a string of close to or larger than 2^62 bytes.
224    * Fix potential random memory allocation in mbedtls_pem_read_buffer()
225      on crafted PEM input data. Found and fix provided by Guido Vranken,
226      Intelworks. Not triggerable remotely in TLS. Triggerable remotely if you
227      accept PEM data from an untrusted source.
228    * Fix possible heap buffer overflow in base64_encoded() when the input
229      buffer is 512MB or larger on 32-bit platforms. Found by Guido Vranken,
230      Intelworks. Not trigerrable remotely in TLS.
231    * Fix potential double-free if mbedtls_conf_psk() is called repeatedly on
232      the same mbedtls_ssl_config object and memory allocation fails. Found by
233      Guido Vranken, Intelworks. Cannot be forced remotely.
234    * Fix potential heap buffer overflow in servers that perform client
235      authentication against a crafted CA cert. Cannot be triggered remotely
236      unless you allow third parties to pick trust CAs for client auth.
237      Found by Guido Vranken, Intelworks.
238
239 Bugfix
240    * Fix compile error in net.c with musl libc. Found and patch provided by
241      zhasha (#278).
242    * Fix macroization of 'inline' keyword when building as C++. (#279)
243
244 Changes
245    * Added checking of hostname length in mbedtls_ssl_set_hostname() to ensure
246      domain names are compliant with RFC 1035.
247    * Fixed paths for check_config.h in example config files. (Found by bachp)
248      (#291)
249
250 = mbed TLS 2.1.1 released 2015-09-17
251
252 Security
253    * Add countermeasure against Lenstra's RSA-CRT attack for PKCS#1 v1.5
254      signatures. (Found by Florian Weimer, Red Hat.)
255      https://securityblog.redhat.com/2015/09/02/factoring-rsa-keys-with-tls-perfect-forward-secrecy/
256    * Fix possible client-side NULL pointer dereference (read) when the client
257      tries to continue the handshake after it failed (a misuse of the API).
258      (Found and patch provided by Fabian Foerg, Gotham Digital Science using
259      afl-fuzz.)
260
261 Bugfix
262    * Fix warning when using a 64bit platform. (found by embedthis) (#275)
263    * Fix off-by-one error in parsing Supported Point Format extension that
264      caused some handshakes to fail.
265
266 Changes
267    * Made X509 profile pointer const in mbedtls_ssl_conf_cert_profile() to allow
268      use of mbedtls_x509_crt_profile_next. (found by NWilson)
269    * When a client initiates a reconnect from the same port as a live
270      connection, if cookie verification is available
271      (MBEDTLS_SSL_DTLS_HELLO_VERIFY defined in config.h, and usable cookie
272      callbacks set with mbedtls_ssl_conf_dtls_cookies()), this will be
273      detected and mbedtls_ssl_read() will return
274      MBEDTLS_ERR_SSL_CLIENT_RECONNECT - it is then possible to start a new
275      handshake with the same context. (See RFC 6347 section 4.2.8.)
276
277 = mbed TLS 2.1.0 released 2015-09-04
278
279 Features
280    * Added support for yotta as a build system.
281    * Primary open source license changed to Apache 2.0 license.
282
283 Bugfix
284    * Fix segfault in the benchmark program when benchmarking DHM.
285    * Fix build error with CMake and pre-4.5 versions of GCC (found by Hugo
286      Leisink).
287    * Fix bug when parsing a ServerHello without extensions (found by David
288      Sears).
289    * Fix bug in CMake lists that caused libmbedcrypto.a not to be installed
290      (found by Benoit Lecocq).
291    * Fix bug in Makefile that caused libmbedcrypto and libmbedx509 not to be
292      installed (found by Rawi666).
293    * Fix compile error with armcc 5 with --gnu option.
294    * Fix bug in Makefile that caused programs not to be installed correctly
295      (found by robotanarchy) (#232).
296    * Fix bug in Makefile that prevented from installing without building the
297      tests (found by robotanarchy) (#232).
298    * Fix missing -static-libgcc when building shared libraries for Windows
299      with make.
300    * Fix link error when building shared libraries for Windows with make.
301    * Fix error when loading libmbedtls.so.
302    * Fix bug in mbedtls_ssl_conf_default() that caused the default preset to
303      be always used (found by dcb314) (#235)
304    * Fix bug in mbedtls_rsa_public() and mbedtls_rsa_private() that could
305      result trying to unlock an unlocked mutex on invalid input (found by
306      Fredrik Axelsson) (#257)
307    * Fix -Wshadow warnings (found by hnrkp) (#240)
308    * Fix memory corruption on client with overlong PSK identity, around
309      SSL_MAX_CONTENT_LEN or higher - not triggerrable remotely (found by
310      Aleksandrs Saveljevs) (#238)
311    * Fix unused function warning when using MBEDTLS_MDx_ALT or
312      MBEDTLS_SHAxxx_ALT (found by Henrik) (#239)
313    * Fix memory corruption in pkey programs (found by yankuncheng) (#210)
314
315 Changes
316    * The PEM parser now accepts a trailing space at end of lines (#226).
317    * It is now possible to #include a user-provided configuration file at the
318      end of the default config.h by defining MBEDTLS_USER_CONFIG_FILE on the
319      compiler's command line.
320    * When verifying a certificate chain, if an intermediate certificate is
321      trusted, no later cert is checked. (suggested by hannes-landeholm)
322      (#220).
323    * Prepend a "thread identifier" to debug messages (issue pointed out by
324      Hugo Leisink) (#210).
325    * Add mbedtls_ssl_get_max_frag_len() to query the current maximum fragment
326      length.
327
328 = mbed TLS 2.0.0 released 2015-07-13
329
330 Features
331    * Support for DTLS 1.0 and 1.2 (RFC 6347).
332    * Ability to override core functions from MDx, SHAx, AES and DES modules
333      with custom implementation (eg hardware accelerated), complementing the
334      ability to override the whole module.
335    * New server-side implementation of session tickets that rotate keys to
336      preserve forward secrecy, and allows sharing across multiple contexts.
337    * Added a concept of X.509 cerificate verification profile that controls
338      which algorithms and key sizes (curves for ECDSA) are acceptable.
339    * Expanded configurability of security parameters in the SSL module with
340      mbedtls_ssl_conf_dhm_min_bitlen() and mbedtls_ssl_conf_sig_hashes().
341    * Introduced a concept of presets for SSL security-relevant configuration
342      parameters.
343
344 API Changes
345    * The library has been split into libmbedcrypto, libmbedx509, libmbedtls.
346      You now need to link to all of them if you use TLS for example.
347    * All public identifiers moved to the mbedtls_* or MBEDTLS_* namespace.
348      Some names have been further changed to make them more consistent.
349      Migration helpers scripts/rename.pl and include/mbedlts/compat-1.3.h are
350      provided. Full list of renamings in scripts/data_files/rename-1.3-2.0.txt
351    * Renamings of fields inside structures, not covered by the previous list:
352      mbedtls_cipher_info_t.key_length -> key_bitlen
353      mbedtls_cipher_context_t.key_length -> key_bitlen
354      mbedtls_ecp_curve_info.size -> bit_size
355    * Headers are now found in the 'mbedtls' directory (previously 'polarssl').
356    * The following _init() functions that could return errors have
357      been split into an _init() that returns void and another function that
358      should generally be the first function called on this context after init:
359      mbedtls_ssl_init() -> mbedtls_ssl_setup()
360      mbedtls_ccm_init() -> mbedtls_ccm_setkey()
361      mbedtls_gcm_init() -> mbedtls_gcm_setkey()
362      mbedtls_hmac_drbg_init() -> mbedtls_hmac_drbg_seed(_buf)()
363      mbedtls_ctr_drbg_init()  -> mbedtls_ctr_drbg_seed()
364      Note that for mbedtls_ssl_setup(), you need to be done setting up the
365      ssl_config structure before calling it.
366    * Most ssl_set_xxx() functions (all except ssl_set_bio(), ssl_set_hostname(),
367      ssl_set_session() and ssl_set_client_transport_id(), plus
368      ssl_legacy_renegotiation()) have been renamed to mbedtls_ssl_conf_xxx()
369      (see rename.pl and compat-1.3.h above) and their first argument's type
370      changed from ssl_context to ssl_config.
371    * ssl_set_bio() changed signature (contexts merged, order switched, one
372      additional callback for read-with-timeout).
373    * The following functions have been introduced and must be used in callback
374      implementations (SNI, PSK) instead of their *conf counterparts:
375      mbedtls_ssl_set_hs_own_cert()
376      mbedtls_ssl_set_hs_ca_chain()
377      mbedtls_ssl_set_hs_psk()
378    * mbedtls_ssl_conf_ca_chain() lost its last argument (peer_cn), now set
379      using mbedtls_ssl_set_hostname().
380    * mbedtls_ssl_conf_session_cache() changed prototype (only one context
381      pointer, parameters reordered).
382    * On server, mbedtls_ssl_conf_session_tickets_cb() must now be used in
383      place of mbedtls_ssl_conf_session_tickets() to enable session tickets.
384    * The SSL debug callback gained two new arguments (file name, line number).
385    * Debug modes were removed.
386    * mbedtls_ssl_conf_truncated_hmac() now returns void.
387    * mbedtls_memory_buffer_alloc_init() now returns void.
388    * X.509 verification flags are now an uint32_t. Affect the signature of:
389      mbedtls_ssl_get_verify_result()
390      mbedtls_x509_ctr_verify_info()
391      mbedtls_x509_crt_verify() (flags, f_vrfy -> needs to be updated)
392      mbedtls_ssl_conf_verify() (f_vrfy -> needs to be updated)
393    * The following functions changed prototype to avoid an in-out length
394      parameter:
395      mbedtls_base64_encode()
396      mbedtls_base64_decode()
397      mbedtls_mpi_write_string()
398      mbedtls_dhm_calc_secret()
399    * In the NET module, all "int" and "int *" arguments for file descriptors
400      changed type to "mbedtls_net_context *".
401    * net_accept() gained new arguments for the size of the client_ip buffer.
402    * In the threading layer, mbedtls_mutex_init() and mbedtls_mutex_free() now
403      return void.
404    * ecdsa_write_signature() gained an addtional md_alg argument and
405      ecdsa_write_signature_det() was deprecated.
406    * pk_sign() no longer accepts md_alg == POLARSSL_MD_NONE with ECDSA.
407    * Last argument of x509_crt_check_key_usage() and
408      mbedtls_x509write_crt_set_key_usage() changed from int to unsigned.
409    * test_ca_list (from certs.h) is renamed to test_cas_pem and is only
410      available if POLARSSL_PEM_PARSE_C is defined (it never worked without).
411    * Test certificates in certs.c are no longer guaranteed to be nul-terminated
412      strings; use the new *_len variables instead of strlen().
413    * Functions mbedtls_x509_xxx_parse(), mbedtls_pk_parse_key(),
414      mbedtls_pk_parse_public_key() and mbedtls_dhm_parse_dhm() now expect the
415      length parameter to include the terminating null byte for PEM input.
416    * Signature of mpi_mul_mpi() changed to make the last argument unsigned
417    * calloc() is now used instead of malloc() everywhere. API of platform
418      layer and the memory_buffer_alloc module changed accordingly.
419      (Thanks to Mansour Moufid for helping with the replacement.)
420    * Change SSL_DISABLE_RENEGOTIATION config.h flag to SSL_RENEGOTIATION
421      (support for renegotiation now needs explicit enabling in config.h).
422    * Split MBEDTLS_HAVE_TIME into MBEDTLS_HAVE_TIME and MBEDTLS_HAVE_TIME_DATE
423      in config.h
424    * net_connect() and net_bind() have a new 'proto' argument to choose
425      between TCP and UDP, using the macros NET_PROTO_TCP or NET_PROTO_UDP.
426      Their 'port' argument type is changed to a string.
427    * Some constness fixes
428
429 Removals
430    * Removed mbedtls_ecp_group_read_string(). Only named groups are supported.
431    * Removed mbedtls_ecp_sub() and mbedtls_ecp_add(), use
432      mbedtls_ecp_muladd().
433    * Removed individual mdX_hmac, shaX_hmac, mdX_file and shaX_file functions
434      (use generic functions from md.h)
435    * Removed mbedtls_timing_msleep(). Use mbedtls_net_usleep() or a custom
436      waiting function.
437    * Removed test DHM parameters from the test certs module.
438    * Removed the PBKDF2 module (use PKCS5).
439    * Removed POLARSSL_ERROR_STRERROR_BC (use mbedtls_strerror()).
440    * Removed compat-1.2.h (helper for migrating from 1.2 to 1.3).
441    * Removed openssl.h (very partial OpenSSL compatibility layer).
442    * Configuration options POLARSSL_HAVE_LONGLONG was removed (now always on).
443    * Configuration options POLARSSL_HAVE_INT8 and POLARSSL_HAVE_INT16 have
444      been removed (compiler is required to support 32-bit operations).
445    * Configuration option POLARSSL_HAVE_IPV6 was removed (always enabled).
446    * Removed test program o_p_test, the script compat.sh does more.
447    * Removed test program ssl_test, superseded by ssl-opt.sh.
448    * Removed helper script active-config.pl
449
450 New deprecations
451    * md_init_ctx() is deprecated in favour of md_setup(), that adds a third
452      argument (allowing memory savings if HMAC is not used)
453
454 Semi-API changes (technically public, morally private)
455    * Renamed a few headers to include _internal in the name. Those headers are
456      not supposed to be included by users.
457    * Changed md_info_t into an opaque structure (use md_get_xxx() accessors).
458    * Changed pk_info_t into an opaque structure.
459    * Changed cipher_base_t into an opaque structure.
460    * Removed sig_oid2 and rename sig_oid1 to sig_oid in x509_crt and x509_crl.
461    * x509_crt.key_usage changed from unsigned char to unsigned int.
462    * Removed r and s from ecdsa_context
463    * Removed mode from des_context and des3_context
464
465 Default behavior changes
466    * The default minimum TLS version is now TLS 1.0.
467    * RC4 is now blacklisted by default in the SSL/TLS layer, and excluded from the
468      default ciphersuite list returned by ssl_list_ciphersuites()
469    * Support for receiving SSLv2 ClientHello is now disabled by default at
470      compile time.
471    * The default authmode for SSL/TLS clients is now REQUIRED.
472    * Support for RSA_ALT contexts in the PK layer is now optional. Since is is
473      enabled in the default configuration, this is only noticeable if using a
474      custom config.h
475    * Default DHM parameters server-side upgraded from 1024 to 2048 bits.
476    * A minimum RSA key size of 2048 bits is now enforced during ceritificate
477      chain verification.
478    * Negotiation of truncated HMAC is now disabled by default on server too.
479    * The following functions are now case-sensitive:
480      mbedtls_cipher_info_from_string()
481      mbedtls_ecp_curve_info_from_name()
482      mbedtls_md_info_from_string()
483      mbedtls_ssl_ciphersuite_from_string()
484      mbedtls_version_check_feature()
485
486 Requirement changes
487    * The minimum MSVC version required is now 2010 (better C99 support).
488    * The NET layer now unconditionnaly relies on getaddrinfo() and select().
489    * Compiler is required to support C99 types such as long long and uint32_t.
490
491 API changes from the 1.4 preview branch
492    * ssl_set_bio_timeout() was removed, split into mbedtls_ssl_set_bio() with
493      new prototype, and mbedtls_ssl_set_read_timeout().
494    * The following functions now return void:
495      mbedtls_ssl_conf_transport()
496      mbedtls_ssl_conf_max_version()
497      mbedtls_ssl_conf_min_version()
498    * DTLS no longer hard-depends on TIMING_C, but uses a callback interface
499      instead, see mbedtls_ssl_set_timer_cb(), with the Timing module providing
500      an example implementation, see mbedtls_timing_delay_context and
501      mbedtls_timing_set/get_delay().
502    * With UDP sockets, it is no longer necessary to call net_bind() again
503      after a successful net_accept().
504
505 Changes
506    * mbedtls_ctr_drbg_random() and mbedtls_hmac_drbg_random() are now
507      thread-safe if MBEDTLS_THREADING_C is enabled.
508    * Reduced ROM fooprint of SHA-256 and added an option to reduce it even
509      more (at the expense of performance) MBEDTLS_SHA256_SMALLER.
510
511 = mbed TLS 1.3 branch
512
513 Security
514    * With authmode set to SSL_VERIFY_OPTIONAL, verification of keyUsage and
515      extendedKeyUsage on the leaf certificate was lost (results not accessible
516      via ssl_get_verify_results()).
517    * Add countermeasure against "Lucky 13 strikes back" cache-based attack,
518      https://dl.acm.org/citation.cfm?id=2714625
519
520 Features
521    * Improve ECC performance by using more efficient doubling formulas
522      (contributed by Peter Dettman).
523    * Add x509_crt_verify_info() to display certificate verification results.
524    * Add support for reading DH parameters with privateValueLength included
525      (contributed by Daniel Kahn Gillmor).
526    * Add support for bit strings in X.509 names (request by Fredrik Axelsson).
527    * Add support for id-at-uniqueIdentifier in X.509 names.
528    * Add support for overriding snprintf() (except on Windows) and exit() in
529      the platform layer.
530    * Add an option to use macros instead of function pointers in the platform
531      layer (helps get rid of unwanted references).
532    * Improved Makefiles for Windows targets by fixing library targets and making
533      cross-compilation easier (thanks to Alon Bar-Lev).
534    * The benchmark program also prints heap usage for public-key primitives
535      if POLARSSL_MEMORY_BUFFER_ALLOC_C and POLARSSL_MEMORY_DEBUG are defined.
536    * New script ecc-heap.sh helps measuring the impact of ECC parameters on
537      speed and RAM (heap only for now) usage.
538    * New script memory.sh helps measuring the ROM and RAM requirements of two
539      reduced configurations (PSK-CCM and NSA suite B).
540    * Add config flag POLARSSL_DEPRECATED_WARNING (off by default) to produce
541      warnings on use of deprecated functions (with GCC and Clang only).
542    * Add config flag POLARSSL_DEPRECATED_REMOVED (off by default) to produce
543      errors on use of deprecated functions.
544
545 Bugfix
546    * Fix compile errors with PLATFORM_NO_STD_FUNCTIONS.
547    * Fix compile error with PLATFORM_EXIT_ALT (thanks to Rafał Przywara).
548    * Fix bug in entropy.c when THREADING_C is also enabled that caused
549      entropy_free() to crash (thanks to Rafał Przywara).
550    * Fix memory leak when gcm_setkey() and ccm_setkey() are used more than
551      once on the same context.
552    * Fix bug in ssl_mail_client when password is longer that username (found
553      by Bruno Pape).
554    * Fix undefined behaviour (memcmp( NULL, NULL, 0 );) in X.509 modules
555      (detected by Clang's 3.6 UBSan).
556    * mpi_size() and mpi_msb() would segfault when called on an mpi that is
557      initialized but not set (found by pravic).
558    * Fix detection of support for getrandom() on Linux (reported by syzzer) by
559      doing it at runtime (using uname) rather that compile time.
560    * Fix handling of symlinks by "make install" (found by Gaël PORTAY).
561    * Fix potential NULL pointer dereference (not trigerrable remotely) when
562      ssl_write() is called before the handshake is finished (introduced in
563      1.3.10) (first reported by Martin Blumenstingl).
564    * Fix bug in pk_parse_key() that caused some valid private EC keys to be
565      rejected.
566    * Fix bug in Via Padlock support (found by Nikos Mavrogiannopoulos).
567    * Fix thread safety bug in RSA operations (found by Fredrik Axelsson).
568    * Fix hardclock() (only used in the benchmarking program) with some
569      versions of mingw64 (found by kxjhlele).
570    * Fix warnings from mingw64 in timing.c (found by kxjklele).
571    * Fix potential unintended sign extension in asn1_get_len() on 64-bit
572      platforms.
573    * Fix potential memory leak in ssl_set_psk() (found by Mansour Moufid).
574    * Fix compile error when POLARSSL_SSL_DISABLE_RENEGOTATION and
575      POLARSSL_SSL_SSESSION_TICKETS where both enabled in config.h (introduced
576      in 1.3.10).
577    * Add missing extern "C" guard in aesni.h (reported by amir zamani).
578    * Add missing dependency on SHA-256 in some x509 programs (reported by
579      Gergely Budai).
580    * Fix bug related to ssl_set_curves(): the client didn't check that the
581      curve picked by the server was actually allowed.
582
583 Changes
584    * Remove bias in mpi_gen_prime (contributed by Pascal Junod).
585    * Remove potential sources of timing variations (some contributed by Pascal
586      Junod).
587    * Options POLARSSL_HAVE_INT8 and POLARSSL_HAVE_INT16 are deprecated.
588    * Enabling POLARSSL_NET_C without POLARSSL_HAVE_IPV6 is deprecated.
589    * compat-1.2.h and openssl.h are deprecated.
590    * Adjusting/overriding CFLAGS and LDFLAGS with the make build system is now
591      more flexible (warning: OFLAGS is not used any more) (see the README)
592      (contributed by Alon Bar-Lev).
593    * ssl_set_own_cert() no longer calls pk_check_pair() since the
594      performance impact was bad for some users (this was introduced in 1.3.10).
595    * Move from SHA-1 to SHA-256 in example programs using signatures
596      (suggested by Thorsten Mühlfelder).
597    * Remove some unneeded inclusions of header files from the standard library
598      "minimize" others (eg use stddef.h if only size_t is needed).
599    * Change #include lines in test files to use double quotes instead of angle
600      brackets for uniformity with the rest of the code.
601    * Remove dependency on sscanf() in X.509 parsing modules.
602
603 = mbed TLS 1.3.10 released 2015-02-09
604 Security
605    * NULL pointer dereference in the buffer-based allocator when the buffer is
606      full and polarssl_free() is called (found by Mark Hasemeyer)
607      (only possible if POLARSSL_MEMORY_BUFFER_ALLOC_C is enabled, which it is
608      not by default).
609    * Fix remotely-triggerable uninitialised pointer dereference caused by
610      crafted X.509 certificate (TLS server is not affected if it doesn't ask for a
611      client certificate) (found using Codenomicon Defensics).
612    * Fix remotely-triggerable memory leak caused by crafted X.509 certificates
613      (TLS server is not affected if it doesn't ask for a client certificate)
614      (found using Codenomicon Defensics).
615    * Fix potential stack overflow while parsing crafted X.509 certificates
616      (TLS server is not affected if it doesn't ask for a client certificate)
617      (found using Codenomicon Defensics).
618    * Fix timing difference that could theoretically lead to a
619      Bleichenbacher-style attack in the RSA and RSA-PSK key exchanges
620      (reported by Sebastian Schinzel).
621
622 Features
623    * Add support for FALLBACK_SCSV (draft-ietf-tls-downgrade-scsv).
624    * Add support for Extended Master Secret (draft-ietf-tls-session-hash).
625    * Add support for Encrypt-then-MAC (RFC 7366).
626    * Add function pk_check_pair() to test if public and private keys match.
627    * Add x509_crl_parse_der().
628    * Add compile-time option POLARSSL_X509_MAX_INTERMEDIATE_CA to limit the
629      length of an X.509 verification chain.
630    * Support for renegotiation can now be disabled at compile-time
631    * Support for 1/n-1 record splitting, a countermeasure against BEAST.
632    * Certificate selection based on signature hash, preferring SHA-1 over SHA-2
633      for pre-1.2 clients when multiple certificates are available.
634    * Add support for getrandom() syscall on recent Linux kernels with Glibc or
635      a compatible enough libc (eg uClibc).
636    * Add ssl_set_arc4_support() to make it easier to disable RC4 at runtime
637      while using the default ciphersuite list.
638    * Added new error codes and debug messages about selection of
639      ciphersuite/certificate.
640
641 Bugfix
642    * Stack buffer overflow if ctr_drbg_update() is called with too large
643      add_len (found by Jean-Philippe Aumasson) (not triggerable remotely).
644    * Possible buffer overflow of length at most POLARSSL_MEMORY_ALIGN_MULTIPLE
645      if memory_buffer_alloc_init() was called with buf not aligned and len not
646      a multiple of POLARSSL_MEMORY_ALIGN_MULTIPLE (not triggerable remotely).
647    * User set CFLAGS were ignored by Cmake with gcc (introduced in 1.3.9, found
648      by Julian Ospald).
649    * Fix potential undefined behaviour in Camellia.
650    * Fix potential failure in ECDSA signatures when POLARSSL_ECP_MAX_BITS is a
651      multiple of 8 (found by Gergely Budai).
652    * Fix unchecked return code in x509_crt_parse_path() on Windows (found by
653      Peter Vaskovic).
654    * Fix assembly selection for MIPS64 (thanks to James Cowgill).
655    * ssl_get_verify_result() now works even if the handshake was aborted due
656      to a failed verification (found by Fredrik Axelsson).
657    * Skip writing and parsing signature_algorithm extension if none of the
658      key exchanges enabled needs certificates. This fixes a possible interop
659      issue with some servers when a zero-length extension was sent. (Reported
660      by Peter Dettman.)
661    * On a 0-length input, base64_encode() did not correctly set output length
662      (found by Hendrik van den Boogaard).
663
664 Changes
665    * Use deterministic nonces for AEAD ciphers in TLS by default (possible to
666      switch back to random with POLARSSL_SSL_AEAD_RANDOM_IV in config.h).
667    * Blind RSA private operations even when POLARSSL_RSA_NO_CRT is defined.
668    * ssl_set_own_cert() now returns an error on key-certificate mismatch.
669    * Forbid repeated extensions in X.509 certificates.
670    * debug_print_buf() now prints a text view in addition to hexadecimal.
671    * A specific error is now returned when there are ciphersuites in common
672      but none of them is usable due to external factors such as no certificate
673      with a suitable (extended)KeyUsage or curve or no PSK set.
674    * It is now possible to disable negotiation of truncated HMAC server-side
675      at runtime with ssl_set_truncated_hmac().
676    * Example programs for SSL client and server now disable SSLv3 by default.
677    * Example programs for SSL client and server now disable RC4 by default.
678    * Use platform.h in all test suites and programs.
679
680 = PolarSSL 1.3.9 released 2014-10-20
681 Security
682    * Lowest common hash was selected from signature_algorithms extension in
683      TLS 1.2 (found by Darren Bane) (introduced in 1.3.8).
684    * Remotely-triggerable memory leak when parsing some X.509 certificates
685      (server is not affected if it doesn't ask for a client certificate)
686      (found using Codenomicon Defensics).
687    * Remotely-triggerable memory leak when parsing crafted ClientHello
688      (not affected if ECC support was compiled out) (found using Codenomicon
689      Defensics).
690
691 Bugfix
692    * Support escaping of commas in x509_string_to_names()
693    * Fix compile error in ssl_pthread_server (found by Julian Ospald).
694    * Fix net_accept() regarding non-blocking sockets (found by Luca Pesce).
695    * Don't print uninitialised buffer in ssl_mail_client (found by Marc Abel).
696    * Fix warnings from Clang's scan-build (contributed by Alfred Klomp).
697    * Fix compile error in timing.c when POLARSSL_NET_C and POLARSSL_SELFTEST
698      are defined but not POLARSSL_HAVE_TIME (found by Stephane Di Vito).
699    * Remove non-existent file from VS projects (found by Peter Vaskovic).
700    * ssl_read() could return non-application data records on server while
701      renegotation was pending, and on client when a HelloRequest was received.
702    * Server-initiated renegotiation would fail with non-blocking I/O if the
703      write callback returned WANT_WRITE when requesting renegotiation.
704    * ssl_close_notify() could send more than one message in some circumstances
705      with non-blocking I/O.
706    * Fix compiler warnings on iOS (found by Sander Niemeijer).
707    * x509_crt_parse() did not increase total_failed on PEM error
708    * Fix compile error with armcc in mpi_is_prime()
709    * Fix potential bad read in parsing ServerHello (found by Adrien
710      Vialletelle).
711
712 Changes
713    * Ciphersuites using SHA-256 or SHA-384 now require TLS 1.x (there is no
714      standard defining how to use SHA-2 with SSL 3.0).
715    * Ciphersuites using RSA-PSK key exchange new require TLS 1.x (the spec is
716      ambiguous on how to encode some packets with SSL 3.0).
717    * Made buffer size in pk_write_(pub)key_pem() more dynamic, eg smaller if
718      RSA is disabled, larger if POLARSSL_MPI_MAX_SIZE is larger.
719    * ssl_read() now returns POLARSSL_ERR_NET_WANT_READ rather than
720      POLARSSL_ERR_SSL_UNEXPECTED_MESSAGE on harmless alerts.
721    * POLARSSL_MPI_MAX_SIZE now defaults to 1024 in order to allow 8192 bits
722      RSA keys.
723    * Accept spaces at end of line or end of buffer in base64_decode().
724    * X.509 certificates with more than one AttributeTypeAndValue per
725      RelativeDistinguishedName are not accepted any more.
726
727 = PolarSSL 1.3.8 released 2014-07-11
728 Security
729    * Fix length checking for AEAD ciphersuites (found by Codenomicon).
730      It was possible to crash the server (and client) using crafted messages
731      when a GCM suite was chosen.
732
733 Features
734    * Add CCM module and cipher mode to Cipher Layer
735    * Support for CCM and CCM_8 ciphersuites
736    * Support for parsing and verifying RSASSA-PSS signatures in the X.509
737      modules (certificates, CRLs and CSRs).
738    * Blowfish in the cipher layer now supports variable length keys.
739    * Add example config.h for PSK with CCM, optimized for low RAM usage.
740    * Optimize for RAM usage in example config.h for NSA Suite B profile.
741    * Add POLARSSL_REMOVE_ARC4_CIPHERSUITES to allow removing RC4 ciphersuites
742      from the default list (inactive by default).
743    * Add server-side enforcement of sent renegotiation requests
744      (ssl_set_renegotiation_enforced())
745    * Add SSL_CIPHERSUITES config.h flag to allow specifying a list of
746      ciphersuites to use and save some memory if the list is small.
747
748 Changes
749    * Add LINK_WITH_PTHREAD option in CMake for explicit linking that is
750      required on some platforms (e.g. OpenBSD)
751    * Migrate zeroizing of data to polarssl_zeroize() instead of memset()
752      against unwanted compiler optimizations
753    * md_list() now returns hashes strongest first
754    * Selection of hash for signing ServerKeyExchange in TLS 1.2 now picks
755      strongest offered by client.
756    * All public contexts have _init() and _free() functions now for simpler
757      usage pattern
758
759 Bugfix
760    * Fix in debug_print_msg()
761    * Enforce alignment in the buffer allocator even if buffer is not aligned
762    * Remove less-than-zero checks on unsigned numbers
763    * Stricter check on SSL ClientHello internal sizes compared to actual packet
764      size (found by TrustInSoft)
765    * Fix WSAStartup() return value check (found by Peter Vaskovic)
766    * Other minor issues (found by Peter Vaskovic)
767    * Fix symlink command for cross compiling with CMake (found by Andre
768      Heinecke)
769    * Fix DER output of gen_key app (found by Gergely Budai)
770    * Very small records were incorrectly rejected when truncated HMAC was in
771      use with some ciphersuites and versions (RC4 in all versions, CBC with
772      versions < TLS 1.1).
773    * Very large records using more than 224 bytes of padding were incorrectly
774      rejected with CBC-based ciphersuites and TLS >= 1.1
775    * Very large records using less padding could cause a buffer overread of up
776      to 32 bytes with CBC-based ciphersuites and TLS >= 1.1
777    * Restore ability to use a v1 cert as a CA if trusted locally. (This had
778      been removed in 1.3.6.)
779    * Restore ability to locally trust a self-signed cert that is not a proper
780      CA for use as an end entity certificate. (This had been removed in
781      1.3.6.)
782    * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan).
783    * Use \n\t rather than semicolons for bn_mul asm, since some assemblers
784      interpret semicolons as comment delimiters (found by Barry K. Nathan).
785    * Fix off-by-one error in parsing Supported Point Format extension that
786      caused some handshakes to fail.
787    * Fix possible miscomputation of the premaster secret with DHE-PSK key
788      exchange that caused some handshakes to fail with other implementations.
789      (Failure rate <= 1/255 with common DHM moduli.)
790    * Disable broken Sparc64 bn_mul assembly (found by Florian Obser).
791    * Fix base64_decode() to return and check length correctly (in case of
792      tight buffers)
793    * Fix mpi_write_string() to write "00" as hex output for empty MPI (found
794      by Hui Dong)
795
796 = PolarSSL 1.3.7 released on 2014-05-02
797 Features
798    * debug_set_log_mode() added to determine raw or full logging
799    * debug_set_threshold() added to ignore messages over threshold level
800    * version_check_feature() added to check for compile-time options at
801      run-time
802
803 Changes
804    * POLARSSL_CONFIG_OPTIONS has been removed. All values are individually
805      checked and filled in the relevant module headers
806    * Debug module only outputs full lines instead of parts
807    * Better support for the different Attribute Types from IETF PKIX (RFC 5280)
808    * AES-NI now compiles with "old" assemblers too
809    * Ciphersuites based on RC4 now have the lowest priority by default
810
811 Bugfix
812    * Only iterate over actual certificates in ssl_write_certificate_request()
813      (found by Matthew Page)
814    * Typos in platform.c and pkcs11.c (found by Daniel Phillips and Steffan
815      Karger)
816    * cert_write app should use subject of issuer certificate as issuer of cert
817    * Fix false reject in padding check in ssl_decrypt_buf() for CBC
818      ciphersuites, for full SSL frames of data.
819    * Improve interoperability by not writing extension length in ClientHello /
820      ServerHello when no extensions are present (found by Matthew Page)
821    * rsa_check_pubkey() now allows an E up to N
822    * On OpenBSD, use arc4random_buf() instead of rand() to prevent warnings
823    * mpi_fill_random() was creating numbers larger than requested on
824      big-endian platform when size was not an integer number of limbs
825    * Fix dependencies issues in X.509 test suite.
826    * Some parts of ssl_tls.c were compiled even when the module was disabled.
827    * Fix detection of DragonflyBSD in net.c (found by Markus Pfeiffer)
828    * Fix detection of Clang on some Apple platforms with CMake
829      (found by Barry K. Nathan)
830
831 = PolarSSL 1.3.6 released on 2014-04-11
832
833 Features
834    * Support for the ALPN SSL extension
835    * Add option 'use_dev_random' to gen_key application
836    * Enable verification of the keyUsage extension for CA and leaf
837      certificates (POLARSSL_X509_CHECK_KEY_USAGE)
838    * Enable verification of the extendedKeyUsage extension
839      (POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE)
840
841 Changes
842    * x509_crt_info() now prints information about parsed extensions as well
843    * pk_verify() now returns a specific error code when the signature is valid
844      but shorter than the supplied length.
845    * Use UTC time to check certificate validity.
846    * Reject certificates with times not in UTC, per RFC 5280.
847
848 Security
849    * Avoid potential timing leak in ecdsa_sign() by blinding modular division.
850      (Found by Watson Ladd.)
851    * The notAfter date of some certificates was no longer checked since 1.3.5.
852      This affects certificates in the user-supplied chain except the top
853      certificate. If the user-supplied chain contains only one certificates,
854      it is not affected (ie, its notAfter date is properly checked).
855    * Prevent potential NULL pointer dereference in ssl_read_record() (found by
856      TrustInSoft)
857
858 Bugfix
859    * The length of various ClientKeyExchange messages was not properly checked.
860    * Some example server programs were not sending the close_notify alert.
861    * Potential memory leak in mpi_exp_mod() when error occurs during
862      calculation of RR.
863    * Fixed malloc/free default #define in platform.c (found by Gergely Budai).
864    * Fixed type which made POLARSSL_ENTROPY_FORCE_SHA256 uneffective (found by
865      Gergely Budai).
866    * Fix #include path in ecdsa.h which wasn't accepted by some compilers.
867      (found by Gergely Budai)
868    * Fix compile errors when POLARSSL_ERROR_STRERROR_BC is undefined (found by
869      Shuo Chen).
870    * oid_get_numeric_string() used to truncate the output without returning an
871      error if the output buffer was just 1 byte too small.
872    * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.
873    * Calling pk_debug() on an RSA-alt key would segfault.
874    * pk_get_size() and pk_get_len() were off by a factor 8 for RSA-alt keys.
875    * Potential buffer overwrite in pem_write_buffer() because of low length
876      indication (found by Thijs Alkemade)
877    * EC curves constants, which should be only in ROM since 1.3.3, were also
878      stored in RAM due to missing 'const's (found by Gergely Budai).
879
880 = PolarSSL 1.3.5 released on 2014-03-26
881 Features
882    * HMAC-DRBG as a separate module
883    * Option to set the Curve preference order (disabled by default)
884    * Single Platform compatilibity layer (for memory / printf / fprintf)
885    * Ability to provide alternate timing implementation
886    * Ability to force the entropy module to use SHA-256 as its basis
887      (POLARSSL_ENTROPY_FORCE_SHA256)
888    * Testing script ssl-opt.sh added for testing 'live' ssl option
889      interoperability against OpenSSL and PolarSSL
890    * Support for reading EC keys that use SpecifiedECDomain in some cases.
891    * Entropy module now supports seed writing and reading
892
893 Changes
894    * Deprecated the Memory layer
895    * entropy_add_source(), entropy_update_manual() and entropy_gather()
896      now thread-safe if POLARSSL_THREADING_C defined
897    * Improvements to the CMake build system, contributed by Julian Ospald.
898    * Work around a bug of the version of Clang shipped by Apple with Mavericks
899      that prevented bignum.c from compiling. (Reported by Rafael Baptista.)
900    * Revamped the compat.sh interoperatibility script to include support for
901      testing against GnuTLS
902    * Deprecated ssl_set_own_cert_rsa() and ssl_set_own_cert_rsa_alt()
903    * Improvements to tests/Makefile, contributed by Oden Eriksson.
904
905 Security
906    * Forbid change of server certificate during renegotiation to prevent
907      "triple handshake" attack when authentication mode is 'optional' (the
908      attack was already impossible when authentication is required).
909    * Check notBefore timestamp of certificates and CRLs from the future.
910    * Forbid sequence number wrapping
911    * Fixed possible buffer overflow with overlong PSK
912    * Possible remotely-triggered out-of-bounds memory access fixed (found by
913      TrustInSoft)
914
915 Bugfix
916    * ecp_gen_keypair() does more tries to prevent failure because of
917      statistics
918    * Fixed bug in RSA PKCS#1 v1.5 "reversed" operations
919    * Fixed testing with out-of-source builds using cmake
920    * Fixed version-major intolerance in server
921    * Fixed CMake symlinking on out-of-source builds
922    * Fixed dependency issues in test suite
923    * Programs rsa_sign_pss and rsa_verify_pss were not using PSS since 1.3.0
924    * Bignum's MIPS-32 assembly was used on MIPS-64, causing chaos. (Found by
925      Alex Wilson.)
926    * ssl_cache was creating entries when max_entries=0 if TIMING_C was enabled.
927    * m_sleep() was sleeping twice too long on most Unix platforms.
928    * Fixed bug with session tickets and non-blocking I/O in the unlikely case
929      send() would return an EAGAIN error when sending the ticket.
930    * ssl_cache was leaking memory when reusing a timed out entry containing a
931      client certificate.
932    * ssl_srv was leaking memory when client presented a timed out ticket
933      containing a client certificate
934    * ssl_init() was leaving a dirty pointer in ssl_context if malloc of
935      out_ctr failed
936    * ssl_handshake_init() was leaving dirty pointers in subcontexts if malloc
937      of one of them failed
938    * Fix typo in rsa_copy() that impacted PKCS#1 v2 contexts
939    * x509_get_current_time() uses localtime_r() to prevent thread issues
940
941 = PolarSSL 1.3.4 released on 2014-01-27
942 Features
943    * Support for the Koblitz curves: secp192k1, secp224k1, secp256k1
944    * Support for RIPEMD-160
945    * Support for AES CFB8 mode
946    * Support for deterministic ECDSA (RFC 6979)
947
948 Bugfix
949    * Potential memory leak in bignum_selftest()
950    * Replaced expired test certificate
951    * ssl_mail_client now terminates lines with CRLF, instead of LF
952    * net module handles timeouts on blocking sockets better (found by Tilman
953      Sauerbeck)
954    * Assembly format fixes in bn_mul.h
955
956 Security
957    * Missing MPI_CHK calls added around unguarded mpi calls (found by
958      TrustInSoft)
959
960 = PolarSSL 1.3.3 released on 2013-12-31
961 Features
962    * EC key generation support in gen_key app
963    * Support for adhering to client ciphersuite order preference
964      (POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
965    * Support for Curve25519
966    * Support for ECDH-RSA and ECDH-ECDSA key exchanges and ciphersuites
967    * Support for IPv6 in the NET module
968    * AES-NI support for AES, AES-GCM and AES key scheduling
969    * SSL Pthread-based server example added (ssl_pthread_server)
970
971 Changes
972    * gen_prime() speedup
973    * Speedup of ECP multiplication operation
974    * Relaxed some SHA2 ciphersuite's version requirements
975    * Dropped use of readdir_r() instead of readdir() with threading support
976    * More constant-time checks in the RSA module
977    * Split off curves from ecp.c into ecp_curves.c
978    * Curves are now stored fully in ROM
979    * Memory usage optimizations in ECP module
980    * Removed POLARSSL_THREADING_DUMMY
981
982 Bugfix
983    * Fixed bug in mpi_set_bit() on platforms where t_uint is wider than int
984    * Fixed X.509 hostname comparison (with non-regular characters)
985    * SSL now gracefully handles missing RNG
986    * Missing defines / cases for RSA_PSK key exchange
987    * crypt_and_hash app checks MAC before final decryption
988    * Potential memory leak in ssl_ticket_keys_init()
989    * Memory leak in benchmark application
990    * Fixed x509_crt_parse_path() bug on Windows platforms
991    * Added missing MPI_CHK() around some statements in mpi_div_mpi() (found by
992      TrustInSoft)
993    * Fixed potential overflow in certificate size verification in
994      ssl_write_certificate() (found by TrustInSoft)
995
996 Security
997    * Possible remotely-triggered out-of-bounds memory access fixed (found by
998      TrustInSoft)
999
1000 = PolarSSL 1.3.2 released on 2013-11-04
1001 Features
1002    * PK tests added to test framework
1003    * Added optional optimization for NIST MODP curves (POLARSSL_ECP_NIST_OPTIM)
1004    * Support for Camellia-GCM mode and ciphersuites
1005
1006 Changes
1007    * Padding checks in cipher layer are now constant-time
1008    * Value comparisons in SSL layer are now constant-time
1009    * Support for serialNumber, postalAddress and postalCode in X509 names
1010    * SSL Renegotiation was refactored
1011
1012 Bugfix
1013    * More stringent checks in cipher layer
1014    * Server does not send out extensions not advertised by client
1015    * Prevent possible alignment warnings on casting from char * to 'aligned *'
1016    * Misc fixes and additions to dependency checks
1017    * Const correctness
1018    * cert_write with selfsign should use issuer_name as subject_name
1019    * Fix ECDSA corner case: missing reduction mod N (found by DualTachyon)
1020    * Defines to handle UEFI environment under MSVC
1021    * Server-side initiated renegotiations send HelloRequest
1022
1023 = PolarSSL 1.3.1 released on 2013-10-15
1024 Features
1025    * Support for Brainpool curves and TLS ciphersuites (RFC 7027)
1026    * Support for ECDHE-PSK key-exchange and ciphersuites
1027    * Support for RSA-PSK key-exchange and ciphersuites
1028
1029 Changes
1030    * RSA blinding locks for a smaller amount of time
1031    * TLS compression only allocates working buffer once
1032    * Introduced POLARSSL_HAVE_READDIR_R for systems without it
1033    * config.h is more script-friendly
1034
1035 Bugfix
1036    * Missing MSVC defines added
1037    * Compile errors with POLARSSL_RSA_NO_CRT
1038    * Header files with 'polarssl/'
1039    * Const correctness
1040    * Possible naming collision in dhm_context
1041    * Better support for MSVC
1042    * threading_set_alt() name
1043    * Added missing x509write_crt_set_version()
1044
1045 = PolarSSL 1.3.0 released on 2013-10-01
1046 Features
1047    * Elliptic Curve Cryptography module added
1048    * Elliptic Curve Diffie Hellman module added
1049    * Ephemeral Elliptic Curve Diffie Hellman support for SSL/TLS
1050     (ECDHE-based ciphersuites)
1051    * Ephemeral Elliptic Curve Digital Signature Algorithm support for SSL/TLS
1052     (ECDSA-based ciphersuites)
1053    * Ability to specify allowed ciphersuites based on the protocol version.
1054    * PSK and DHE-PSK based ciphersuites added
1055    * Memory allocation abstraction layer added
1056    * Buffer-based memory allocator added (no malloc() / free() / HEAP usage)
1057    * Threading abstraction layer added (dummy / pthread / alternate)
1058    * Public Key abstraction layer added
1059    * Parsing Elliptic Curve keys
1060    * Parsing Elliptic Curve certificates
1061    * Support for max_fragment_length extension (RFC 6066)
1062    * Support for truncated_hmac extension (RFC 6066)
1063    * Support for zeros-and-length (ANSI X.923) padding, one-and-zeros
1064      (ISO/IEC 7816-4) padding and zero padding in the cipher layer
1065    * Support for session tickets (RFC 5077)
1066    * Certificate Request (CSR) generation with extensions (key_usage,
1067      ns_cert_type)
1068    * X509 Certificate writing with extensions (basic_constraints,
1069      issuer_key_identifier, etc)
1070    * Optional blinding for RSA, DHM and EC
1071    * Support for multiple active certificate / key pairs in SSL servers for
1072          the same host (Not to be confused with SNI!)
1073
1074 Changes
1075    * Ability to enable / disable SSL v3 / TLS 1.0 / TLS 1.1 / TLS 1.2
1076      individually
1077    * Introduced separate SSL Ciphersuites module that is based on
1078      Cipher and MD information
1079    * Internals for SSL module adapted to have separate IV pointer that is
1080      dynamically set (Better support for hardware acceleration)
1081    * Moved all OID functionality to a separate module. RSA function
1082      prototypes for the RSA sign and verify functions changed as a result
1083    * Split up the GCM module into a starts/update/finish cycle
1084    * Client and server now filter sent and accepted ciphersuites on minimum
1085      and maximum protocol version
1086    * Ability to disable server_name extension (RFC 6066)
1087    * Renamed error_strerror() to the less conflicting polarssl_strerror()
1088      (Ability to keep old as well with POLARSSL_ERROR_STRERROR_BC)
1089    * SHA2 renamed to SHA256, SHA4 renamed to SHA512 and functions accordingly
1090    * All RSA operations require a random generator for blinding purposes
1091    * X509 core refactored
1092    * x509_crt_verify() now case insensitive for cn (RFC 6125 6.4)
1093    * Also compiles / runs without time-based functions (!POLARSSL_HAVE_TIME)
1094    * Support faulty X509 v1 certificates with extensions
1095      (POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3)
1096
1097 Bugfix
1098    * Fixed parse error in ssl_parse_certificate_request()
1099    * zlib compression/decompression skipped on empty blocks
1100    * Support for AIX header locations in net.c module
1101    * Fixed file descriptor leaks
1102
1103 Security
1104    * RSA blinding on CRT operations to counter timing attacks
1105      (found by Cyril Arnaud and Pierre-Alain Fouque)
1106
1107
1108 = Version 1.2.14 released 2015-05-??
1109
1110 Security
1111    * Fix potential invalid memory read in the server, that allows a client to
1112      crash it remotely (found by Caj Larsson).
1113    * Fix potential invalid memory read in certificate parsing, that allows a
1114      client to crash the server remotely if client authentication is enabled
1115      (found using Codenomicon Defensics).
1116    * Add countermeasure against "Lucky 13 strikes back" cache-based attack,
1117      https://dl.acm.org/citation.cfm?id=2714625
1118
1119 Bugfix
1120    * Fix bug in Via Padlock support (found by Nikos Mavrogiannopoulos).
1121    * Fix hardclock() (only used in the benchmarking program) with some
1122      versions of mingw64 (found by kxjhlele).
1123    * Fix warnings from mingw64 in timing.c (found by kxjklele).
1124    * Fix potential unintended sign extension in asn1_get_len() on 64-bit
1125      platforms (found with Coverity Scan).
1126
1127 = Version 1.2.13 released 2015-02-16
1128 Note: Although PolarSSL has been renamed to mbed TLS, no changes reflecting
1129       this will be made in the 1.2 branch at this point.
1130
1131 Security
1132    * Fix remotely-triggerable uninitialised pointer dereference caused by
1133      crafted X.509 certificate (TLS server is not affected if it doesn't ask
1134      for a client certificate) (found using Codenomicon Defensics).
1135    * Fix remotely-triggerable memory leak caused by crafted X.509 certificates
1136      (TLS server is not affected if it doesn't ask for a client certificate)
1137      (found using Codenomicon Defensics).
1138    * Fix potential stack overflow while parsing crafted X.509 certificates
1139      (TLS server is not affected if it doesn't ask for a client certificate)
1140      found using Codenomicon Defensics).
1141    * Fix buffer overread of size 1 when parsing crafted X.509 certificates
1142      (TLS server is not affected if it doesn't ask for a client certificate).
1143
1144 Bugfix
1145    * Fix potential undefined behaviour in Camellia.
1146    * Fix memory leaks in PKCS#5 and PKCS#12.
1147    * Stack buffer overflow if ctr_drbg_update() is called with too large
1148      add_len (found by Jean-Philippe Aumasson) (not triggerable remotely).
1149    * Fix bug in MPI/bignum on s390/s390x (reported by Dan Horák) (introduced
1150      in 1.2.12).
1151    * Fix unchecked return code in x509_crt_parse_path() on Windows (found by
1152      Peter Vaskovic).
1153    * Fix assembly selection for MIPS64 (thanks to James Cowgill).
1154    * ssl_get_verify_result() now works even if the handshake was aborted due
1155      to a failed verification (found by Fredrik Axelsson).
1156    * Skip writing and parsing signature_algorithm extension if none of the
1157      key exchanges enabled needs certificates. This fixes a possible interop
1158      issue with some servers when a zero-length extension was sent. (Reported
1159      by Peter Dettman.)
1160    * On a 0-length input, base64_encode() did not correctly set output length
1161      (found by Hendrik van den Boogaard).
1162
1163 Changes
1164    * Blind RSA private operations even when POLARSSL_RSA_NO_CRT is defined.
1165    * Forbid repeated extensions in X.509 certificates.
1166    * Add compile-time option POLARSSL_X509_MAX_INTERMEDIATE_CA to limit the
1167      length of an X.509 verification chain (default = 8).
1168 = Version 1.2.12 released 2014-10-24
1169
1170 Security
1171    * Remotely-triggerable memory leak when parsing some X.509 certificates
1172      (server is not affected if it doesn't ask for a client certificate).
1173      (Found using Codenomicon Defensics.)
1174
1175 Bugfix
1176    * Fix potential bad read in parsing ServerHello (found by Adrien
1177      Vialletelle).
1178    * ssl_close_notify() could send more than one message in some circumstances
1179      with non-blocking I/O.
1180    * x509_crt_parse() did not increase total_failed on PEM error
1181    * Fix compiler warnings on iOS (found by Sander Niemeijer).
1182    * Don't print uninitialised buffer in ssl_mail_client (found by Marc Abel).
1183    * Fix net_accept() regarding non-blocking sockets (found by Luca Pesce).
1184    * ssl_read() could return non-application data records on server while
1185      renegotation was pending, and on client when a HelloRequest was received.
1186    * Fix warnings from Clang's scan-build (contributed by Alfred Klomp).
1187
1188 Changes
1189    * X.509 certificates with more than one AttributeTypeAndValue per
1190      RelativeDistinguishedName are not accepted any more.
1191    * ssl_read() now returns POLARSSL_ERR_NET_WANT_READ rather than
1192      POLARSSL_ERR_SSL_UNEXPECTED_MESSAGE on harmless alerts.
1193    * Accept spaces at end of line or end of buffer in base64_decode().
1194
1195 = Version 1.2.11 released 2014-07-11
1196 Features
1197    * Entropy module now supports seed writing and reading
1198
1199 Changes
1200    * Introduced POLARSSL_HAVE_READDIR_R for systems without it
1201    * Improvements to the CMake build system, contributed by Julian Ospald.
1202    * Work around a bug of the version of Clang shipped by Apple with Mavericks
1203      that prevented bignum.c from compiling. (Reported by Rafael Baptista.)
1204    * Improvements to tests/Makefile, contributed by Oden Eriksson.
1205    * Use UTC time to check certificate validity.
1206    * Reject certificates with times not in UTC, per RFC 5280.
1207    * Migrate zeroizing of data to polarssl_zeroize() instead of memset()
1208      against unwanted compiler optimizations
1209
1210 Security
1211    * Forbid change of server certificate during renegotiation to prevent
1212      "triple handshake" attack when authentication mode is optional (the
1213      attack was already impossible when authentication is required).
1214    * Check notBefore timestamp of certificates and CRLs from the future.
1215    * Forbid sequence number wrapping
1216    * Prevent potential NULL pointer dereference in ssl_read_record() (found by
1217      TrustInSoft)
1218    * Fix length checking for AEAD ciphersuites (found by Codenomicon).
1219      It was possible to crash the server (and client) using crafted messages
1220      when a GCM suite was chosen.
1221
1222 Bugfix
1223    * Fixed X.509 hostname comparison (with non-regular characters)
1224    * SSL now gracefully handles missing RNG
1225    * crypt_and_hash app checks MAC before final decryption
1226    * Fixed x509_crt_parse_path() bug on Windows platforms
1227    * Added missing MPI_CHK() around some statements in mpi_div_mpi() (found by
1228      TrustInSoft)
1229    * Fixed potential overflow in certificate size verification in
1230      ssl_write_certificate() (found by TrustInSoft)
1231    * Fix ASM format in bn_mul.h
1232    * Potential memory leak in bignum_selftest()
1233    * Replaced expired test certificate
1234    * ssl_mail_client now terminates lines with CRLF, instead of LF
1235    * Fix bug in RSA PKCS#1 v1.5 "reversed" operations
1236    * Fixed testing with out-of-source builds using cmake
1237    * Fixed version-major intolerance in server
1238    * Fixed CMake symlinking on out-of-source builds
1239    * Bignum's MIPS-32 assembly was used on MIPS-64, causing chaos. (Found by
1240      Alex Wilson.)
1241    * ssl_init() was leaving a dirty pointer in ssl_context if malloc of
1242      out_ctr failed
1243    * ssl_handshake_init() was leaving dirty pointers in subcontexts if malloc
1244      of one of them failed
1245    * x509_get_current_time() uses localtime_r() to prevent thread issues
1246    * Some example server programs were not sending the close_notify alert.
1247    * Potential memory leak in mpi_exp_mod() when error occurs during
1248      calculation of RR.
1249    * Improve interoperability by not writing extension length in ClientHello
1250      when no extensions are present (found by Matthew Page)
1251    * rsa_check_pubkey() now allows an E up to N
1252    * On OpenBSD, use arc4random_buf() instead of rand() to prevent warnings
1253    * mpi_fill_random() was creating numbers larger than requested on
1254      big-endian platform when size was not an integer number of limbs
1255    * Fix detection of DragonflyBSD in net.c (found by Markus Pfeiffer)
1256    * Stricter check on SSL ClientHello internal sizes compared to actual packet
1257      size (found by TrustInSoft)
1258    * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan).
1259    * Use \n\t rather than semicolons for bn_mul asm, since some assemblers
1260      interpret semicolons as comment delimiters (found by Barry K. Nathan).
1261    * Disable broken Sparc64 bn_mul assembly (found by Florian Obser).
1262    * Fix base64_decode() to return and check length correctly (in case of
1263      tight buffers)
1264
1265 = Version 1.2.10 released 2013-10-07
1266 Changes
1267    * Changed RSA blinding to a slower but thread-safe version
1268
1269 Bugfix
1270    * Fixed memory leak in RSA as a result of introduction of blinding
1271    * Fixed ssl_pkcs11_decrypt() prototype
1272    * Fixed MSVC project files
1273
1274 = Version 1.2.9 released 2013-10-01
1275 Changes
1276    * x509_verify() now case insensitive for cn (RFC 6125 6.4)
1277
1278 Bugfix
1279    * Fixed potential memory leak when failing to resume a session
1280    * Fixed potential file descriptor leaks (found by Remi Gacogne)
1281    * Minor fixes
1282
1283 Security
1284    * Fixed potential heap buffer overflow on large hostname setting
1285    * Fixed potential negative value misinterpretation in load_file()
1286    * RSA blinding on CRT operations to counter timing attacks
1287      (found by Cyril Arnaud and Pierre-Alain Fouque)
1288
1289 = Version 1.2.8 released 2013-06-19
1290 Features
1291    * Parsing of PKCS#8 encrypted private key files
1292    * PKCS#12 PBE and derivation functions
1293    * Centralized module option values in config.h to allow user-defined
1294      settings without editing header files by using POLARSSL_CONFIG_OPTIONS
1295
1296 Changes
1297    * HAVEGE random generator disabled by default
1298    * Internally split up x509parse_key() into a (PEM) handler function
1299      and specific DER parser functions for the PKCS#1 and unencrypted
1300      PKCS#8 private key formats
1301    * Added mechanism to provide alternative implementations for all
1302      symmetric cipher and hash algorithms (e.g. POLARSSL_AES_ALT in
1303          config.h)
1304    * PKCS#5 module added. Moved PBKDF2 functionality inside and deprecated
1305      old PBKDF2 module
1306
1307 Bugfix
1308    * Secure renegotiation extension should only be sent in case client
1309      supports secure renegotiation
1310    * Fixed offset for cert_type list in ssl_parse_certificate_request()
1311    * Fixed const correctness issues that have no impact on the ABI
1312    * x509parse_crt() now better handles PEM error situations
1313    * ssl_parse_certificate() now calls x509parse_crt_der() directly
1314      instead of the x509parse_crt() wrapper that can also parse PEM
1315          certificates
1316    * x509parse_crtpath() is now reentrant and uses more portable stat()
1317    * Fixed bignum.c and bn_mul.h to support Thumb2 and LLVM compiler
1318    * Fixed values for 2-key Triple DES in cipher layer
1319    * ssl_write_certificate_request() can handle empty ca_chain
1320
1321 Security
1322    * A possible DoS during the SSL Handshake, due to faulty parsing of
1323      PEM-encoded certificates has been fixed (found by Jack Lloyd)
1324
1325 = Version 1.2.7 released 2013-04-13
1326 Features
1327    * Ability to specify allowed ciphersuites based on the protocol version.
1328
1329 Changes
1330    * Default Blowfish keysize is now 128-bits
1331    * Test suites made smaller to accommodate Raspberry Pi
1332
1333 Bugfix
1334    * Fix for MPI assembly for ARM
1335    * GCM adapted to support sizes > 2^29
1336
1337 = Version 1.2.6 released 2013-03-11
1338 Bugfix
1339    * Fixed memory leak in ssl_free() and ssl_reset() for active session
1340    * Corrected GCM counter incrementation to use only 32-bits instead of
1341      128-bits (found by Yawning Angel)
1342    * Fixes for 64-bit compilation with MS Visual Studio
1343    * Fixed net_bind() for specified IP addresses on little endian systems
1344    * Fixed assembly code for ARM (Thumb and regular) for some compilers
1345
1346 Changes
1347    * Internally split up rsa_pkcs1_encrypt(), rsa_pkcs1_decrypt(),
1348      rsa_pkcs1_sign() and rsa_pkcs1_verify() to separate PKCS#1 v1.5 and
1349      PKCS#1 v2.1 functions
1350    * Added support for custom labels when using rsa_rsaes_oaep_encrypt()
1351      or rsa_rsaes_oaep_decrypt()
1352    * Re-added handling for SSLv2 Client Hello when the define
1353      POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO is set
1354    * The SSL session cache module (ssl_cache) now also retains peer_cert
1355      information (not the entire chain)
1356
1357 Security
1358    * Removed further timing differences during SSL message decryption in
1359      ssl_decrypt_buf()
1360    * Removed timing differences due to bad padding from
1361      rsa_rsaes_pkcs1_v15_decrypt() and rsa_pkcs1_decrypt() for PKCS#1 v1.5
1362      operations
1363
1364 = Version 1.2.5 released 2013-02-02
1365 Changes
1366    * Allow enabling of dummy error_strerror() to support some use-cases
1367    * Debug messages about padding errors during SSL message decryption are
1368      disabled by default and can be enabled with POLARSSL_SSL_DEBUG_ALL 
1369    * Sending of security-relevant alert messages that do not break
1370      interoperability can be switched on/off with the flag
1371      POLARSSL_SSL_ALL_ALERT_MESSAGES
1372
1373 Security
1374    * Removed timing differences during SSL message decryption in
1375      ssl_decrypt_buf() due to badly formatted padding
1376
1377 = Version 1.2.4 released 2013-01-25
1378 Changes
1379    * More advanced SSL ciphersuite representation and moved to more dynamic
1380      SSL core
1381    * Added ssl_handshake_step() to allow single stepping the handshake process
1382
1383 Bugfix
1384    * Memory leak when using RSA_PKCS_V21 operations fixed
1385    * Handle future version properly in ssl_write_certificate_request()
1386    * Correctly handle CertificateRequest message in client for <= TLS 1.1
1387      without DN list
1388
1389 = Version 1.2.3 released 2012-11-26
1390 Bugfix
1391    * Server not always sending correct CertificateRequest message
1392
1393 = Version 1.2.2 released 2012-11-24
1394 Changes
1395    * Added p_hw_data to ssl_context for context specific hardware acceleration
1396      data
1397    * During verify trust-CA is only checked for expiration and CRL presence  
1398
1399 Bugfixes
1400    * Fixed client authentication compatibility
1401    * Fixed dependency on POLARSSL_SHA4_C in SSL modules
1402
1403 = Version 1.2.1 released 2012-11-20
1404 Changes
1405    * Depth that the certificate verify callback receives is now numbered
1406      bottom-up (Peer cert depth is 0)
1407
1408 Bugfixes
1409    * Fixes for MSVC6
1410    * Moved mpi_inv_mod() outside POLARSSL_GENPRIME
1411    * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
1412      Pégourié-Gonnard)
1413    * Fixed possible segfault in mpi_shift_r() (found by Manuel
1414      Pégourié-Gonnard)
1415    * Added max length check for rsa_pkcs1_sign with PKCS#1 v2.1
1416
1417 = Version 1.2.0 released 2012-10-31
1418 Features
1419    * Added support for NULL cipher (POLARSSL_CIPHER_NULL_CIPHER) and weak
1420      ciphersuites (POLARSSL_ENABLE_WEAK_CIPHERSUITES). They are disabled by
1421      default!
1422    * Added support for wildcard certificates
1423    * Added support for multi-domain certificates through the X509 Subject
1424      Alternative Name extension
1425    * Added preliminary ASN.1 buffer writing support
1426    * Added preliminary X509 Certificate Request writing support
1427    * Added key_app_writer example application
1428    * Added cert_req example application
1429    * Added base Galois Counter Mode (GCM) for AES
1430    * Added TLS 1.2 support (RFC 5246)
1431    * Added GCM suites to TLS 1.2 (RFC 5288)
1432    * Added commandline error code convertor (util/strerror)
1433    * Added support for Hardware Acceleration hooking in SSL/TLS
1434    * Added OpenSSL / PolarSSL compatibility script (tests/compat.sh) and
1435      example application (programs/ssl/o_p_test) (requires OpenSSL)
1436    * Added X509 CA Path support
1437    * Added Thumb assembly optimizations
1438    * Added DEFLATE compression support as per RFC3749 (requires zlib)
1439    * Added blowfish algorithm (Generic and cipher layer)
1440    * Added PKCS#5 PBKDF2 key derivation function
1441    * Added Secure Renegotiation (RFC 5746)
1442    * Added predefined DHM groups from RFC 5114
1443    * Added simple SSL session cache implementation
1444    * Added ServerName extension parsing (SNI) at server side
1445    * Added option to add minimum accepted SSL/TLS protocol version
1446
1447 Changes
1448    * Removed redundant POLARSSL_DEBUG_MSG define
1449    * AES code only check for Padlock once
1450    * Fixed const-correctness mpi_get_bit()
1451    * Documentation for mpi_lsb() and mpi_msb()
1452    * Moved out_msg to out_hdr + 32 to support hardware acceleration
1453    * Changed certificate verify behaviour to comply with RFC 6125 section 6.3
1454      to not match CN if subjectAltName extension is present (Closes ticket #56)
1455    * Cipher layer cipher_mode_t POLARSSL_MODE_CFB128 is renamed to
1456      POLARSSL_MODE_CFB, to also handle different block size CFB modes.
1457    * Removed handling for SSLv2 Client Hello (as per RFC 5246 recommendation)
1458    * Revamped session resumption handling
1459    * Generalized external private key implementation handling (like PKCS#11)
1460      in SSL/TLS
1461    * Revamped x509_verify() and the SSL f_vrfy callback implementations
1462    * Moved from unsigned long to fixed width uint32_t types throughout code
1463    * Renamed ciphersuites naming scheme to IANA reserved names
1464
1465 Bugfix
1466    * Fixed handling error in mpi_cmp_mpi() on longer B values (found by
1467      Hui Dong)
1468    * Fixed potential heap corruption in x509_name allocation
1469    * Fixed single RSA test that failed on Big Endian systems (Closes ticket #54)
1470    * mpi_exp_mod() now correctly handles negative base numbers (Closes ticket
1471      #52)
1472    * Handle encryption with private key and decryption with public key as per
1473          RFC 2313
1474    * Handle empty certificate subject names
1475    * Prevent reading over buffer boundaries on X509 certificate parsing
1476    * mpi_add_abs() now correctly handles adding short numbers to long numbers
1477      with carry rollover (found by Ruslan Yushchenko)
1478    * Handle existence of OpenSSL Trust Extensions at end of X.509 DER blob
1479    * Fixed MPI assembly for SPARC64 platform
1480
1481 Security
1482    * Fixed potential memory zeroization on miscrafted RSA key (found by Eloi
1483      Vanderbeken)
1484
1485 = Version 1.1.8 released on 2013-10-01
1486 Bugfix
1487    * Fixed potential memory leak when failing to resume a session
1488    * Fixed potential file descriptor leaks
1489
1490 Security
1491    * Potential buffer-overflow for ssl_read_record() (independently found by
1492      both TrustInSoft and Paul Brodeur of Leviathan Security Group)
1493    * Potential negative value misinterpretation in load_file()
1494    * Potential heap buffer overflow on large hostname setting
1495
1496 = Version 1.1.7 released on 2013-06-19
1497 Changes
1498    * HAVEGE random generator disabled by default
1499
1500 Bugfix
1501    * x509parse_crt() now better handles PEM error situations
1502    * ssl_parse_certificate() now calls x509parse_crt_der() directly
1503      instead of the x509parse_crt() wrapper that can also parse PEM
1504          certificates
1505    * Fixed values for 2-key Triple DES in cipher layer
1506    * ssl_write_certificate_request() can handle empty ca_chain
1507
1508 Security
1509    * A possible DoS during the SSL Handshake, due to faulty parsing of
1510      PEM-encoded certificates has been fixed (found by Jack Lloyd)
1511
1512 = Version 1.1.6 released on 2013-03-11
1513 Bugfix
1514    * Fixed net_bind() for specified IP addresses on little endian systems
1515
1516 Changes
1517    * Allow enabling of dummy error_strerror() to support some use-cases
1518    * Debug messages about padding errors during SSL message decryption are
1519      disabled by default and can be enabled with POLARSSL_SSL_DEBUG_ALL
1520
1521 Security
1522    * Removed timing differences during SSL message decryption in
1523      ssl_decrypt_buf()
1524    * Removed timing differences due to bad padding from
1525      rsa_rsaes_pkcs1_v15_decrypt() and rsa_pkcs1_decrypt() for PKCS#1 v1.5
1526      operations
1527
1528 = Version 1.1.5 released on 2013-01-16
1529 Bugfix
1530    * Fixed MPI assembly for SPARC64 platform
1531    * Handle existence of OpenSSL Trust Extensions at end of X.509 DER blob
1532    * mpi_add_abs() now correctly handles adding short numbers to long numbers
1533      with carry rollover
1534    * Moved mpi_inv_mod() outside POLARSSL_GENPRIME
1535    * Prevent reading over buffer boundaries on X509 certificate parsing
1536    * mpi_exp_mod() now correctly handles negative base numbers (Closes ticket
1537      #52)
1538    * Fixed possible segfault in mpi_shift_r() (found by Manuel
1539      Pégourié-Gonnard)
1540    * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
1541      Pégourié-Gonnard)
1542    * Added max length check for rsa_pkcs1_sign with PKCS#1 v2.1
1543    * Memory leak when using RSA_PKCS_V21 operations fixed
1544    * Handle encryption with private key and decryption with public key as per
1545      RFC 2313
1546    * Fixes for MSVC6
1547
1548 Security
1549    * Fixed potential memory zeroization on miscrafted RSA key (found by Eloi
1550      Vanderbeken)
1551
1552 = Version 1.1.4 released on 2012-05-31
1553 Bugfix
1554    * Correctly handle empty SSL/TLS packets (Found by James Yonan)
1555    * Fixed potential heap corruption in x509_name allocation
1556    * Fixed single RSA test that failed on Big Endian systems (Closes ticket #54)
1557
1558 = Version 1.1.3 released on 2012-04-29
1559 Bugfix
1560    * Fixed random MPI generation to not generate more size than requested.
1561
1562 = Version 1.1.2 released on 2012-04-26
1563 Bugfix
1564    * Fixed handling error in mpi_cmp_mpi() on longer B values (found by
1565      Hui Dong)
1566
1567 Security
1568    * Fixed potential memory corruption on miscrafted client messages (found by
1569      Frama-C team at CEA LIST)
1570    * Fixed generation of DHM parameters to correct length (found by Ruslan
1571      Yushchenko)
1572
1573 = Version 1.1.1 released on 2012-01-23
1574 Bugfix
1575    * Check for failed malloc() in ssl_set_hostname() and x509_get_entries()
1576      (Closes ticket #47, found by Hugo Leisink)
1577    * Fixed issues with Intel compiler on 64-bit systems (Closes ticket #50)
1578    * Fixed multiple compiler warnings for VS6 and armcc
1579    * Fixed bug in CTR_CRBG selftest
1580
1581 = Version 1.1.0 released on 2011-12-22
1582 Features
1583    * Added ssl_session_reset() to allow better multi-connection pools of
1584      SSL contexts without needing to set all non-connection-specific
1585          data and pointers again. Adapted ssl_server to use this functionality.
1586    * Added ssl_set_max_version() to allow clients to offer a lower maximum
1587      supported version to a server to help buggy server implementations.
1588          (Closes ticket #36)
1589    * Added cipher_get_cipher_mode() and cipher_get_cipher_operation()
1590      introspection functions (Closes ticket #40)
1591    * Added CTR_DRBG based on AES-256-CTR (NIST SP 800-90) random generator
1592    * Added a generic entropy accumulator that provides support for adding
1593      custom entropy sources and added some generic and platform dependent
1594          entropy sources
1595
1596 Changes
1597    * Documentation for AES and Camellia in modes CTR and CFB128 clarified.
1598    * Fixed rsa_encrypt and rsa_decrypt examples to use public key for
1599      encryption and private key for decryption. (Closes ticket #34)
1600    * Inceased maximum size of ASN1 length reads to 32-bits.
1601    * Added an EXPLICIT tag number parameter to x509_get_ext()
1602    * Added a separate CRL entry extension parsing function
1603    * Separated the ASN.1 parsing code from the X.509 specific parsing code.
1604      So now there is a module that is controlled with POLARSSL_ASN1_PARSE_C.
1605    * Changed the defined key-length of DES ciphers in cipher.h to include the
1606      parity bits, to prevent mistakes in copying data. (Closes ticket #33)
1607    * Loads of minimal changes to better support WINCE as a build target
1608      (Credits go to Marco Lizza)
1609    * Added POLARSSL_MPI_WINDOW_SIZE definition to allow easier time to memory
1610      trade-off
1611    * Introduced POLARSSL_MPI_MAX_SIZE and POLARSSL_MPI_MAX_BITS for MPI size
1612      management (Closes ticket #44)
1613    * Changed the used random function pointer to more flexible format. Renamed
1614      havege_rand() to havege_random() to prevent mistakes. Lots of changes as
1615      a consequence in library code and programs
1616    * Moved all examples programs to use the new entropy and CTR_DRBG
1617    * Added permissive certificate parsing to x509parse_crt() and
1618      x509parse_crtfile(). With permissive parsing the parsing does not stop on
1619      encountering a parse-error. Beware that the meaning of return values has
1620      changed!
1621    * All error codes are now negative. Even on mermory failures and IO errors.
1622
1623 Bugfix
1624    * Fixed faulty HMAC-MD2 implementation. Found by dibac. (Closes
1625      ticket #37)
1626    * Fixed a bug where the CRL parser expected an EXPLICIT ASN.1 tag
1627      before version numbers
1628    * Allowed X509 key usage parsing to accept 4 byte values instead of the
1629      standard 1 byte version sometimes used by Microsoft. (Closes ticket #38)
1630    * Fixed incorrect behaviour in case of RSASSA-PSS with a salt length
1631      smaller than the hash length. (Closes ticket #41)
1632    * If certificate serial is longer than 32 octets, serial number is now
1633      appended with '....' after first 28 octets
1634    * Improved build support for s390x and sparc64 in bignum.h
1635    * Fixed MS Visual C++ name clash with int64 in sha4.h
1636    * Corrected removal of leading "00:" in printing serial numbers in
1637      certificates and CRLs
1638
1639 = Version 1.0.0 released on 2011-07-27
1640 Features
1641    * Expanded cipher layer with support for CFB128 and CTR mode
1642    * Added rsa_encrypt and rsa_decrypt simple example programs.
1643
1644 Changes
1645    * The generic cipher and message digest layer now have normal error
1646      codes instead of integers
1647
1648 Bugfix
1649    * Undid faulty bug fix in ssl_write() when flushing old data (Ticket
1650      #18)
1651
1652 = Version 0.99-pre5 released on 2011-05-26
1653 Features
1654    * Added additional Cipher Block Modes to symmetric ciphers
1655      (AES CTR, Camellia CTR, XTEA CBC) including the option to
1656      enable and disable individual modes when needed
1657    * Functions requiring File System functions can now be disabled
1658      by undefining POLARSSL_FS_IO
1659    * A error_strerror function() has been added to translate between
1660      error codes and their description.
1661    * Added mpi_get_bit() and mpi_set_bit() individual bit setter/getter
1662      functions.
1663    * Added ssl_mail_client and ssl_fork_server as example programs.
1664
1665 Changes
1666    * Major argument / variable rewrite. Introduced use of size_t
1667      instead of int for buffer lengths and loop variables for
1668      better unsigned / signed use. Renamed internal bigint types
1669      t_int and t_dbl to t_uint and t_udbl in the process
1670    * mpi_init() and mpi_free() now only accept a single MPI
1671      argument and do not accept variable argument lists anymore.
1672    * The error codes have been remapped and combining error codes
1673      is now done with a PLUS instead of an OR as error codes
1674      used are negative.
1675    * Changed behaviour of net_read(), ssl_fetch_input() and ssl_recv().
1676      net_recv() now returns 0 on EOF instead of
1677      POLARSSL_ERR_NET_CONN_RESET. ssl_fetch_input() returns
1678      POLARSSL_ERR_SSL_CONN_EOF on an EOF from its f_recv() function.
1679      ssl_read() returns 0 if a POLARSSL_ERR_SSL_CONN_EOF is received
1680      after the handshake.
1681    * Network functions now return POLARSSL_ERR_NET_WANT_READ or
1682      POLARSSL_ERR_NET_WANT_WRITE instead of the ambiguous
1683      POLARSSL_ERR_NET_TRY_AGAIN
1684
1685 = Version 0.99-pre4 released on 2011-04-01
1686 Features
1687    * Added support for PKCS#1 v2.1 encoding and thus support
1688      for the RSAES-OAEP and RSASSA-PSS operations.
1689    * Reading of Public Key files incorporated into default x509
1690      functionality as well.
1691    * Added mpi_fill_random() for centralized filling of big numbers
1692      with random data (Fixed ticket #10)
1693
1694 Changes
1695    * Debug print of MPI now removes leading zero octets and 
1696      displays actual bit size of the value.
1697    * x509parse_key() (and as a consequence x509parse_keyfile()) 
1698      does not zeroize memory in advance anymore. Use rsa_init()
1699      before parsing a key or keyfile!
1700
1701 Bugfix
1702    * Debug output of MPI's now the same independent of underlying
1703      platform (32-bit / 64-bit) (Fixes ticket #19, found by Mads
1704      Kiilerich and Mihai Militaru)
1705    * Fixed bug in ssl_write() when flushing old data (Fixed ticket
1706      #18, found by Nikolay Epifanov)
1707    * Fixed proper handling of RSASSA-PSS verification with variable
1708      length salt lengths
1709
1710 = Version 0.99-pre3 released on 2011-02-28
1711 This release replaces version 0.99-pre2 which had possible copyright issues.
1712 Features
1713    * Parsing PEM private keys encrypted with DES and AES
1714      are now supported as well (Fixes ticket #5)
1715    * Added crl_app program to allow easy reading and
1716      printing of X509 CRLs from file
1717
1718 Changes
1719    * Parsing of PEM files moved to separate module (Fixes 
1720      ticket #13). Also possible to remove PEM support for
1721      systems only using DER encoding
1722
1723 Bugfixes
1724    * Corrected parsing of UTCTime dates before 1990 and
1725      after 1950
1726    * Support more exotic OID's when parsing certificates
1727          (found by Mads Kiilerich)
1728    * Support more exotic name representations when parsing
1729      certificates (found by Mads Kiilerich)
1730    * Replaced the expired test certificates
1731    * Do not bail out if no client certificate specified. Try
1732      to negotiate anonymous connection (Fixes ticket #12,
1733      found by Boris Krasnovskiy)
1734
1735 Security fixes
1736    * Fixed a possible Man-in-the-Middle attack on the
1737      Diffie Hellman key exchange (thanks to Larry Highsmith,
1738      Subreption LLC)
1739
1740 = Version 0.99-pre1 released on 2011-01-30
1741 Features
1742 Note: Most of these features have been donated by Fox-IT
1743    * Added Doxygen source code documentation parts
1744    * Added reading of DHM context from memory and file
1745    * Improved X509 certificate parsing to include extended
1746      certificate fields, including Key Usage
1747    * Improved certificate verification and verification
1748      against the available CRLs
1749    * Detection for DES weak keys and parity bits added
1750    * Improvements to support integration in other
1751      applications:
1752        + Added generic message digest and cipher wrapper
1753        + Improved information about current capabilities,
1754          status, objects and configuration
1755        + Added verification callback on certificate chain
1756          verification to allow external blacklisting
1757            + Additional example programs to show usage
1758    * Added support for PKCS#11 through the use of the
1759      libpkcs11-helper library
1760
1761 Changes
1762    * x509parse_time_expired() checks time in addition to
1763      the existing date check
1764    * The ciphers member of ssl_context and the cipher member
1765      of ssl_session have been renamed to ciphersuites and
1766      ciphersuite respectively. This clarifies the difference
1767      with the generic cipher layer and is better naming
1768      altogether
1769
1770 = Version 0.14.0 released on 2010-08-16
1771 Features
1772    * Added support for SSL_EDH_RSA_AES_128_SHA and
1773      SSL_EDH_RSA_CAMELLIA_128_SHA ciphersuites
1774    * Added compile-time and run-time version information
1775    * Expanded ssl_client2 arguments for more flexibility
1776    * Added support for TLS v1.1
1777
1778 Changes
1779    * Made Makefile cleaner
1780    * Removed dependency on rand() in rsa_pkcs1_encrypt().
1781      Now using random fuction provided to function and
1782      changed the prototype of rsa_pkcs1_encrypt(),
1783      rsa_init() and rsa_gen_key().
1784    * Some SSL defines were renamed in order to avoid
1785      future confusion
1786
1787 Bug fixes
1788    * Fixed CMake out of source build for tests (found by
1789      kkert)
1790    * rsa_check_private() now supports PKCS1v2 keys as well
1791    * Fixed deadlock in rsa_pkcs1_encrypt() on failing random
1792      generator
1793
1794 = Version 0.13.1 released on 2010-03-24
1795 Bug fixes
1796    * Fixed Makefile in library that was mistakenly merged
1797    * Added missing const string fixes
1798
1799 = Version 0.13.0 released on 2010-03-21
1800 Features
1801    * Added option parsing for host and port selection to
1802      ssl_client2
1803    * Added support for GeneralizedTime in X509 parsing
1804    * Added cert_app program to allow easy reading and
1805      printing of X509 certificates from file or SSL
1806      connection.
1807
1808 Changes
1809    * Added const correctness for main code base
1810    * X509 signature algorithm determination is now
1811      in a function to allow easy future expansion
1812    * Changed symmetric cipher functions to
1813      identical interface (returning int result values)
1814    * Changed ARC4 to use separate input/output buffer
1815    * Added reset function for HMAC context as speed-up
1816      for specific use-cases
1817
1818 Bug fixes
1819    * Fixed bug resulting in failure to send the last
1820      certificate in the chain in ssl_write_certificate() and
1821      ssl_write_certificate_request() (found by fatbob)
1822    * Added small fixes for compiler warnings on a Mac
1823      (found by Frank de Brabander)
1824    * Fixed algorithmic bug in mpi_is_prime() (found by
1825      Smbat Tonoyan)
1826
1827 = Version 0.12.1 released on 2009-10-04
1828 Changes
1829    * Coverage test definitions now support 'depends_on'
1830      tagging system.
1831    * Tests requiring specific hashing algorithms now honor
1832      the defines.
1833
1834 Bug fixes
1835    * Changed typo in #ifdef in x509parse.c (found
1836      by Eduardo)
1837
1838 = Version 0.12.0 released on 2009-07-28
1839 Features
1840    * Added CMake makefiles as alternative to regular Makefiles.
1841    * Added preliminary Code Coverage tests for AES, ARC4,
1842      Base64, MPI, SHA-family, MD-family, HMAC-SHA-family,
1843      Camellia, DES, 3-DES, RSA PKCS#1, XTEA, Diffie-Hellman
1844      and X509parse.
1845
1846 Changes
1847    * Error codes are not (necessarily) negative. Keep
1848      this is mind when checking for errors.
1849    * RSA_RAW renamed to SIG_RSA_RAW for consistency.
1850    * Fixed typo in name of POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE.
1851    * Changed interface for AES and Camellia setkey functions
1852      to indicate invalid key lengths.
1853
1854 Bug fixes
1855    * Fixed include location of endian.h on FreeBSD (found by
1856      Gabriel)
1857    * Fixed include location of endian.h and name clash on
1858      Apples (found by Martin van Hensbergen)
1859    * Fixed HMAC-MD2 by modifying md2_starts(), so that the
1860      required HMAC ipad and opad variables are not cleared.
1861      (found by code coverage tests)
1862    * Prevented use of long long in bignum if 
1863      POLARSSL_HAVE_LONGLONG not defined (found by Giles
1864      Bathgate).
1865    * Fixed incorrect handling of negative strings in
1866      mpi_read_string() (found by code coverage tests).
1867    * Fixed segfault on handling empty rsa_context in
1868      rsa_check_pubkey() and rsa_check_privkey() (found by
1869      code coverage tests).
1870    * Fixed incorrect handling of one single negative input
1871      value in mpi_add_abs() (found by code coverage tests).
1872    * Fixed incorrect handling of negative first input
1873      value in mpi_sub_abs() (found by code coverage tests).
1874    * Fixed incorrect handling of negative first input
1875      value in mpi_mod_mpi() and mpi_mod_int(). Resulting
1876      change also affects mpi_write_string() (found by code
1877      coverage tests).
1878    * Corrected is_prime() results for 0, 1 and 2 (found by
1879      code coverage tests).
1880    * Fixed Camellia and XTEA for 64-bit Windows systems.
1881
1882 = Version 0.11.1 released on 2009-05-17
1883    * Fixed missing functionality for SHA-224, SHA-256, SHA384,
1884      SHA-512 in rsa_pkcs1_sign()
1885
1886 = Version 0.11.0 released on 2009-05-03
1887    * Fixed a bug in mpi_gcd() so that it also works when both
1888      input numbers are even and added testcases to check
1889      (found by Pierre Habouzit).
1890    * Added support for SHA-224, SHA-256, SHA-384 and SHA-512
1891      one way hash functions with the PKCS#1 v1.5 signing and
1892      verification.
1893    * Fixed minor bug regarding mpi_gcd located within the
1894      POLARSSL_GENPRIME block.
1895    * Fixed minor memory leak in x509parse_crt() and added better
1896      handling of 'full' certificate chains (found by Mathias
1897      Olsson).
1898    * Centralized file opening and reading for x509 files into
1899      load_file()
1900    * Made definition of net_htons() endian-clean for big endian
1901      systems (Found by Gernot).
1902    * Undefining POLARSSL_HAVE_ASM now also handles prevents asm in
1903      padlock and timing code. 
1904    * Fixed an off-by-one buffer allocation in ssl_set_hostname()
1905      responsible for crashes and unwanted behaviour.
1906    * Added support for Certificate Revocation List (CRL) parsing.
1907    * Added support for CRL revocation to x509parse_verify() and
1908      SSL/TLS code.
1909    * Fixed compatibility of XTEA and Camellia on a 64-bit system
1910      (found by Felix von Leitner).
1911
1912 = Version 0.10.0 released on 2009-01-12
1913    * Migrated XySSL to PolarSSL
1914    * Added XTEA symmetric cipher
1915    * Added Camellia symmetric cipher
1916    * Added support for ciphersuites: SSL_RSA_CAMELLIA_128_SHA,
1917      SSL_RSA_CAMELLIA_256_SHA and SSL_EDH_RSA_CAMELLIA_256_SHA
1918    * Fixed dangerous bug that can cause a heap overflow in
1919      rsa_pkcs1_decrypt (found by Christophe Devine)
1920
1921 ================================================================
1922 XySSL ChangeLog
1923
1924 = Version 0.9 released on 2008-03-16
1925
1926     * Added support for ciphersuite: SSL_RSA_AES_128_SHA
1927     * Enabled support for large files by default in aescrypt2.c
1928     * Preliminary openssl wrapper contributed by David Barrett
1929     * Fixed a bug in ssl_write() that caused the same payload to
1930       be sent twice in non-blocking mode when send returns EAGAIN
1931     * Fixed ssl_parse_client_hello(): session id and challenge must
1932       not be swapped in the SSLv2 ClientHello (found by Greg Robson)
1933     * Added user-defined callback debug function (Krystian Kolodziej)
1934     * Before freeing a certificate, properly zero out all cert. data
1935     * Fixed the "mode" parameter so that encryption/decryption are
1936       not swapped on PadLock; also fixed compilation on older versions
1937       of gcc (bug reported by David Barrett)
1938     * Correctly handle the case in padlock_xcryptcbc() when input or
1939       ouput data is non-aligned by falling back to the software
1940       implementation, as VIA Nehemiah cannot handle non-aligned buffers
1941     * Fixed a memory leak in x509parse_crt() which was reported by Greg
1942       Robson-Garth; some x509write.c fixes by Pascal Vizeli, thanks to
1943       Matthew Page who reported several bugs
1944     * Fixed x509_get_ext() to accept some rare certificates which have
1945       an INTEGER instead of a BOOLEAN for BasicConstraints::cA.
1946     * Added support on the client side for the TLS "hostname" extension
1947       (patch contributed by David Patino)
1948     * Make x509parse_verify() return BADCERT_CN_MISMATCH when an empty
1949       string is passed as the CN (bug reported by spoofy)
1950     * Added an option to enable/disable the BN assembly code
1951     * Updated rsa_check_privkey() to verify that (D*E) = 1 % (P-1)*(Q-1)
1952     * Disabled obsolete hash functions by default (MD2, MD4); updated
1953       selftest and benchmark to not test ciphers that have been disabled
1954     * Updated x509parse_cert_info() to correctly display byte 0 of the
1955       serial number, setup correct server port in the ssl client example
1956     * Fixed a critical denial-of-service with X.509 cert. verification:
1957       peer may cause xyssl to loop indefinitely by sending a certificate
1958       for which the RSA signature check fails (bug reported by Benoit)
1959     * Added test vectors for: AES-CBC, AES-CFB, DES-CBC and 3DES-CBC,
1960       HMAC-MD5, HMAC-SHA1, HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512
1961     * Fixed HMAC-SHA-384 and HMAC-SHA-512 (thanks to Josh Sinykin)
1962     * Modified ssl_parse_client_key_exchange() to protect against
1963       Daniel Bleichenbacher attack on PKCS#1 v1.5 padding, as well
1964       as the Klima-Pokorny-Rosa extension of Bleichenbacher's attack
1965     * Updated rsa_gen_key() so that ctx->N is always nbits in size
1966     * Fixed assembly PPC compilation errors on Mac OS X, thanks to
1967       David Barrett and Dusan Semen
1968
1969 = Version 0.8 released on 2007-10-20
1970
1971     * Modified the HMAC functions to handle keys larger
1972       than 64 bytes, thanks to Stephane Desneux and gary ng
1973     * Fixed ssl_read_record() to properly update the handshake
1974       message digests, which fixes IE6/IE7 client authentication
1975     * Cleaned up the XYSSL* #defines, suggested by Azriel Fasten
1976     * Fixed net_recv(), thanks to Lorenz Schori and Egon Kocjan
1977     * Added user-defined callbacks for handling I/O and sessions
1978     * Added lots of debugging output in the SSL/TLS functions
1979     * Added preliminary X.509 cert. writing by Pascal Vizeli
1980     * Added preliminary support for the VIA PadLock routines
1981     * Added AES-CFB mode of operation, contributed by chmike
1982     * Added an SSL/TLS stress testing program (ssl_test.c)
1983     * Updated the RSA PKCS#1 code to allow choosing between
1984       RSA_PUBLIC and RSA_PRIVATE, as suggested by David Barrett
1985     * Updated ssl_read() to skip 0-length records from OpenSSL
1986     * Fixed the make install target to comply with *BSD make
1987     * Fixed a bug in mpi_read_binary() on 64-bit platforms
1988     * mpi_is_prime() speedups, thanks to Kevin McLaughlin
1989     * Fixed a long standing memory leak in mpi_is_prime()
1990     * Replaced realloc with malloc in mpi_grow(), and set
1991       the sign of zero as positive in mpi_init() (reported
1992       by Jonathan M. McCune)
1993
1994 = Version 0.7 released on 2007-07-07
1995
1996     * Added support for the MicroBlaze soft-core processor
1997     * Fixed a bug in ssl_tls.c which sometimes prevented SSL
1998       connections from being established with non-blocking I/O
1999     * Fixed a couple bugs in the VS6 and UNIX Makefiles
2000     * Fixed the "PIC register ebx clobbered in asm" bug
2001     * Added HMAC starts/update/finish support functions
2002     * Added the SHA-224, SHA-384 and SHA-512 hash functions
2003     * Fixed the net_set_*block routines, thanks to Andreas
2004     * Added a few demonstration programs: md5sum, sha1sum,
2005       dh_client, dh_server, rsa_genkey, rsa_sign, rsa_verify
2006     * Added new bignum import and export helper functions
2007     * Rewrote README.txt in program/ssl/ca to better explain
2008       how to create a test PKI
2009
2010 = Version 0.6 released on 2007-04-01
2011
2012     * Ciphers used in SSL/TLS can now be disabled at compile
2013       time, to reduce the memory footprint on embedded systems
2014     * Added multiply assembly code for the TriCore and modified
2015       havege_struct for this processor, thanks to David Patiño
2016     * Added multiply assembly code for 64-bit PowerPCs,
2017       thanks to Peking University and the OSU Open Source Lab
2018     * Added experimental support of Quantum Cryptography
2019     * Added support for autoconf, contributed by Arnaud Cornet
2020     * Fixed "long long" compilation issues on IA-64 and PPC64
2021     * Fixed a bug introduced in xyssl-0.5/timing.c: hardclock
2022       was not being correctly defined on ARM and MIPS
2023
2024 = Version 0.5 released on 2007-03-01
2025
2026     * Added multiply assembly code for SPARC and Alpha
2027     * Added (beta) support for non-blocking I/O operations
2028     * Implemented session resuming and client authentication
2029     * Fixed some portability issues on WinCE, MINIX 3, Plan9
2030       (thanks to Benjamin Newman), HP-UX, FreeBSD and Solaris
2031     * Improved the performance of the EDH key exchange
2032     * Fixed a bug that caused valid packets with a payload
2033       size of 16384 bytes to be rejected
2034
2035 = Version 0.4 released on 2007-02-01
2036
2037     * Added support for Ephemeral Diffie-Hellman key exchange
2038     * Added multiply asm code for SSE2, ARM, PPC, MIPS and M68K
2039     * Various improvement to the modular exponentiation code
2040     * Rewrote the headers to generate the API docs with doxygen
2041     * Fixed a bug in ssl_encrypt_buf (incorrect padding was
2042       generated) and in ssl_parse_client_hello (max. client
2043       version was not properly set), thanks to Didier Rebeix
2044     * Fixed another bug in ssl_parse_client_hello: clients with
2045       cipherlists larger than 96 bytes were incorrectly rejected
2046     * Fixed a couple memory leak in x509_read.c
2047
2048 = Version 0.3 released on 2007-01-01
2049
2050     * Added server-side SSLv3 and TLSv1.0 support
2051     * Multiple fixes to enhance the compatibility with g++,
2052       thanks to Xosé Antón Otero Ferreira
2053     * Fixed a bug in the CBC code, thanks to dowst; also,
2054       the bignum code is no longer dependent on long long
2055     * Updated rsa_pkcs1_sign to handle arbitrary large inputs
2056     * Updated timing.c for improved compatibility with i386
2057       and 486 processors, thanks to Arnaud Cornet
2058
2059 = Version 0.2 released on 2006-12-01
2060
2061     * Updated timing.c to support ARM and MIPS arch
2062     * Updated the MPI code to support 8086 on MSVC 1.5
2063     * Added the copyright notice at the top of havege.h
2064     * Fixed a bug in sha2_hmac, thanks to newsoft/Wenfang Zhang
2065     * Fixed a bug reported by Adrian Rüegsegger in x509_read_key
2066     * Fixed a bug reported by Torsten Lauter in ssl_read_record
2067     * Fixed a bug in rsa_check_privkey that would wrongly cause
2068       valid RSA keys to be dismissed (thanks to oldwolf)
2069     * Fixed a bug in mpi_is_prime that caused some primes to fail
2070       the Miller-Rabin primality test
2071
2072     I'd also like to thank Younès Hafri for the CRUX linux port,
2073     Khalil Petit who added XySSL into pkgsrc and Arnaud Cornet
2074     who maintains the Debian package :-)
2075
2076 = Version 0.1 released on 2006-11-01
2077