ChangeLog 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266
  1. PolarSSL ChangeLog (Sorted per branch, date)
  2. = PolarSSL 1.3.8 released 2014-07-11
  3. Security
  4. * Fix length checking for AEAD ciphersuites (found by Codenomicon).
  5. It was possible to crash the server (and client) using crafted messages
  6. when a GCM suite was chosen.
  7. Features
  8. * Add CCM module and cipher mode to Cipher Layer
  9. * Support for CCM and CCM_8 ciphersuites
  10. * Support for parsing and verifying RSASSA-PSS signatures in the X.509
  11. modules (certificates, CRLs and CSRs).
  12. * Blowfish in the cipher layer now supports variable length keys.
  13. * Add example config.h for PSK with CCM, optimized for low RAM usage.
  14. * Optimize for RAM usage in example config.h for NSA Suite B profile.
  15. * Add POLARSSL_REMOVE_ARC4_CIPHERSUITES to allow removing RC4 ciphersuites
  16. from the default list (inactive by default).
  17. * Add server-side enforcement of sent renegotiation requests
  18. (ssl_set_renegotiation_enforced())
  19. * Add SSL_CIPHERSUITES config.h flag to allow specifying a list of
  20. ciphersuites to use and save some memory if the list is small.
  21. Changes
  22. * Add LINK_WITH_PTHREAD option in CMake for explicit linking that is
  23. required on some platforms (e.g. OpenBSD)
  24. * Migrate zeroizing of data to polarssl_zeroize() instead of memset()
  25. against unwanted compiler optimizations
  26. * md_list() now returns hashes strongest first
  27. * Selection of hash for signing ServerKeyExchange in TLS 1.2 now picks
  28. strongest offered by client.
  29. * All public contexts have _init() and _free() functions now for simpler
  30. usage pattern
  31. Bugfix
  32. * Fix in debug_print_msg()
  33. * Enforce alignment in the buffer allocator even if buffer is not aligned
  34. * Remove less-than-zero checks on unsigned numbers
  35. * Stricter check on SSL ClientHello internal sizes compared to actual packet
  36. size (found by TrustInSoft)
  37. * Fix WSAStartup() return value check (found by Peter Vaskovic)
  38. * Other minor issues (found by Peter Vaskovic)
  39. * Fix symlink command for cross compiling with CMake (found by Andre
  40. Heinecke)
  41. * Fix DER output of gen_key app (found by Gergely Budai)
  42. * Very small records were incorrectly rejected when truncated HMAC was in
  43. use with some ciphersuites and versions (RC4 in all versions, CBC with
  44. versions < TLS 1.1).
  45. * Very large records using more than 224 bytes of padding were incorrectly
  46. rejected with CBC-based ciphersuites and TLS >= 1.1
  47. * Very large records using less padding could cause a buffer overread of up
  48. to 32 bytes with CBC-based ciphersuites and TLS >= 1.1
  49. * Restore ability to use a v1 cert as a CA if trusted locally. (This had
  50. been removed in 1.3.6.)
  51. * Restore ability to locally trust a self-signed cert that is not a proper
  52. CA for use as an end entity certificate. (This had been removed in
  53. 1.3.6.)
  54. * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan).
  55. * Use \n\t rather than semicolons for bn_mul asm, since some assemblers
  56. interpret semicolons as comment delimiters (found by Barry K. Nathan).
  57. * Fix off-by-one error in parsing Supported Point Format extension that
  58. caused some handshakes to fail.
  59. * Fix possible miscomputation of the premaster secret with DHE-PSK key
  60. exchange that caused some handshakes to fail with other implementations.
  61. (Failure rate <= 1/255 with common DHM moduli.)
  62. * Disable broken Sparc64 bn_mul assembly (found by Florian Obser).
  63. * Fix base64_decode() to return and check length correctly (in case of
  64. tight buffers)
  65. * Fix mpi_write_string() to write "00" as hex output for empty MPI (found
  66. by Hui Dong)
  67. = PolarSSL 1.3.7 released on 2014-05-02
  68. Features
  69. * debug_set_log_mode() added to determine raw or full logging
  70. * debug_set_threshold() added to ignore messages over threshold level
  71. * version_check_feature() added to check for compile-time options at
  72. run-time
  73. Changes
  74. * POLARSSL_CONFIG_OPTIONS has been removed. All values are individually
  75. checked and filled in the relevant module headers
  76. * Debug module only outputs full lines instead of parts
  77. * Better support for the different Attribute Types from IETF PKIX (RFC 5280)
  78. * AES-NI now compiles with "old" assemblers too
  79. * Ciphersuites based on RC4 now have the lowest priority by default
  80. Bugfix
  81. * Only iterate over actual certificates in ssl_write_certificate_request()
  82. (found by Matthew Page)
  83. * Typos in platform.c and pkcs11.c (found by Daniel Phillips and Steffan
  84. Karger)
  85. * cert_write app should use subject of issuer certificate as issuer of cert
  86. * Fix false reject in padding check in ssl_decrypt_buf() for CBC
  87. ciphersuites, for full SSL frames of data.
  88. * Improve interoperability by not writing extension length in ClientHello /
  89. ServerHello when no extensions are present (found by Matthew Page)
  90. * rsa_check_pubkey() now allows an E up to N
  91. * On OpenBSD, use arc4random_buf() instead of rand() to prevent warnings
  92. * mpi_fill_random() was creating numbers larger than requested on
  93. big-endian platform when size was not an integer number of limbs
  94. * Fix dependencies issues in X.509 test suite.
  95. * Some parts of ssl_tls.c were compiled even when the module was disabled.
  96. * Fix detection of DragonflyBSD in net.c (found by Markus Pfeiffer)
  97. * Fix detection of Clang on some Apple platforms with CMake
  98. (found by Barry K. Nathan)
  99. = PolarSSL 1.3.6 released on 2014-04-11
  100. Features
  101. * Support for the ALPN SSL extension
  102. * Add option 'use_dev_random' to gen_key application
  103. * Enable verification of the keyUsage extension for CA and leaf
  104. certificates (POLARSSL_X509_CHECK_KEY_USAGE)
  105. * Enable verification of the extendedKeyUsage extension
  106. (POLARSSL_X509_CHECK_EXTENDED_KEY_USAGE)
  107. Changes
  108. * x509_crt_info() now prints information about parsed extensions as well
  109. * pk_verify() now returns a specific error code when the signature is valid
  110. but shorter than the supplied length.
  111. * Use UTC time to check certificate validity.
  112. * Reject certificates with times not in UTC, per RFC 5280.
  113. Security
  114. * Avoid potential timing leak in ecdsa_sign() by blinding modular division.
  115. (Found by Watson Ladd.)
  116. * The notAfter date of some certificates was no longer checked since 1.3.5.
  117. This affects certificates in the user-supplied chain except the top
  118. certificate. If the user-supplied chain contains only one certificates,
  119. it is not affected (ie, its notAfter date is properly checked).
  120. * Prevent potential NULL pointer dereference in ssl_read_record() (found by
  121. TrustInSoft)
  122. Bugfix
  123. * The length of various ClientKeyExchange messages was not properly checked.
  124. * Some example server programs were not sending the close_notify alert.
  125. * Potential memory leak in mpi_exp_mod() when error occurs during
  126. calculation of RR.
  127. * Fixed malloc/free default #define in platform.c (found by Gergely Budai).
  128. * Fixed type which made POLARSSL_ENTROPY_FORCE_SHA256 uneffective (found by
  129. Gergely Budai).
  130. * Fix #include path in ecdsa.h which wasn't accepted by some compilers.
  131. (found by Gergely Budai)
  132. * Fix compile errors when POLARSSL_ERROR_STRERROR_BC is undefined (found by
  133. Shuo Chen).
  134. * oid_get_numeric_string() used to truncate the output without returning an
  135. error if the output buffer was just 1 byte too small.
  136. * dhm_parse_dhm() (hence dhm_parse_dhmfile()) did not set dhm->len.
  137. * Calling pk_debug() on an RSA-alt key would segfault.
  138. * pk_get_size() and pk_get_len() were off by a factor 8 for RSA-alt keys.
  139. * Potential buffer overwrite in pem_write_buffer() because of low length
  140. indication (found by Thijs Alkemade)
  141. * EC curves constants, which should be only in ROM since 1.3.3, were also
  142. stored in RAM due to missing 'const's (found by Gergely Budai).
  143. = PolarSSL 1.3.5 released on 2014-03-26
  144. Features
  145. * HMAC-DRBG as a separate module
  146. * Option to set the Curve preference order (disabled by default)
  147. * Single Platform compatilibity layer (for memory / printf / fprintf)
  148. * Ability to provide alternate timing implementation
  149. * Ability to force the entropy module to use SHA-256 as its basis
  150. (POLARSSL_ENTROPY_FORCE_SHA256)
  151. * Testing script ssl-opt.sh added for testing 'live' ssl option
  152. interoperability against OpenSSL and PolarSSL
  153. * Support for reading EC keys that use SpecifiedECDomain in some cases.
  154. * Entropy module now supports seed writing and reading
  155. Changes
  156. * Deprecated the Memory layer
  157. * entropy_add_source(), entropy_update_manual() and entropy_gather()
  158. now thread-safe if POLARSSL_THREADING_C defined
  159. * Improvements to the CMake build system, contributed by Julian Ospald.
  160. * Work around a bug of the version of Clang shipped by Apple with Mavericks
  161. that prevented bignum.c from compiling. (Reported by Rafael Baptista.)
  162. * Revamped the compat.sh interoperatibility script to include support for
  163. testing against GnuTLS
  164. * Deprecated ssl_set_own_cert_rsa() and ssl_set_own_cert_rsa_alt()
  165. * Improvements to tests/Makefile, contributed by Oden Eriksson.
  166. Security
  167. * Forbid change of server certificate during renegotiation to prevent
  168. "triple handshake" attack when authentication mode is 'optional' (the
  169. attack was already impossible when authentication is required).
  170. * Check notBefore timestamp of certificates and CRLs from the future.
  171. * Forbid sequence number wrapping
  172. * Fixed possible buffer overflow with overlong PSK
  173. * Possible remotely-triggered out-of-bounds memory access fixed (found by
  174. TrustInSoft)
  175. Bugfix
  176. * ecp_gen_keypair() does more tries to prevent failure because of
  177. statistics
  178. * Fixed bug in RSA PKCS#1 v1.5 "reversed" operations
  179. * Fixed testing with out-of-source builds using cmake
  180. * Fixed version-major intolerance in server
  181. * Fixed CMake symlinking on out-of-source builds
  182. * Fixed dependency issues in test suite
  183. * Programs rsa_sign_pss and rsa_verify_pss were not using PSS since 1.3.0
  184. * Bignum's MIPS-32 assembly was used on MIPS-64, causing chaos. (Found by
  185. Alex Wilson.)
  186. * ssl_cache was creating entries when max_entries=0 if TIMING_C was enabled.
  187. * m_sleep() was sleeping twice too long on most Unix platforms.
  188. * Fixed bug with session tickets and non-blocking I/O in the unlikely case
  189. send() would return an EAGAIN error when sending the ticket.
  190. * ssl_cache was leaking memory when reusing a timed out entry containing a
  191. client certificate.
  192. * ssl_srv was leaking memory when client presented a timed out ticket
  193. containing a client certificate
  194. * ssl_init() was leaving a dirty pointer in ssl_context if malloc of
  195. out_ctr failed
  196. * ssl_handshake_init() was leaving dirty pointers in subcontexts if malloc
  197. of one of them failed
  198. * Fix typo in rsa_copy() that impacted PKCS#1 v2 contexts
  199. * x509_get_current_time() uses localtime_r() to prevent thread issues
  200. = PolarSSL 1.3.4 released on 2014-01-27
  201. Features
  202. * Support for the Koblitz curves: secp192k1, secp224k1, secp256k1
  203. * Support for RIPEMD-160
  204. * Support for AES CFB8 mode
  205. * Support for deterministic ECDSA (RFC 6979)
  206. Bugfix
  207. * Potential memory leak in bignum_selftest()
  208. * Replaced expired test certificate
  209. * ssl_mail_client now terminates lines with CRLF, instead of LF
  210. * net module handles timeouts on blocking sockets better (found by Tilman
  211. Sauerbeck)
  212. * Assembly format fixes in bn_mul.h
  213. Security
  214. * Missing MPI_CHK calls added around unguarded mpi calls (found by
  215. TrustInSoft)
  216. = PolarSSL 1.3.3 released on 2013-12-31
  217. Features
  218. * EC key generation support in gen_key app
  219. * Support for adhering to client ciphersuite order preference
  220. (POLARSSL_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
  221. * Support for Curve25519
  222. * Support for ECDH-RSA and ECDH-ECDSA key exchanges and ciphersuites
  223. * Support for IPv6 in the NET module
  224. * AES-NI support for AES, AES-GCM and AES key scheduling
  225. * SSL Pthread-based server example added (ssl_pthread_server)
  226. Changes
  227. * gen_prime() speedup
  228. * Speedup of ECP multiplication operation
  229. * Relaxed some SHA2 ciphersuite's version requirements
  230. * Dropped use of readdir_r() instead of readdir() with threading support
  231. * More constant-time checks in the RSA module
  232. * Split off curves from ecp.c into ecp_curves.c
  233. * Curves are now stored fully in ROM
  234. * Memory usage optimizations in ECP module
  235. * Removed POLARSSL_THREADING_DUMMY
  236. Bugfix
  237. * Fixed bug in mpi_set_bit() on platforms where t_uint is wider than int
  238. * Fixed X.509 hostname comparison (with non-regular characters)
  239. * SSL now gracefully handles missing RNG
  240. * Missing defines / cases for RSA_PSK key exchange
  241. * crypt_and_hash app checks MAC before final decryption
  242. * Potential memory leak in ssl_ticket_keys_init()
  243. * Memory leak in benchmark application
  244. * Fixed x509_crt_parse_path() bug on Windows platforms
  245. * Added missing MPI_CHK() around some statements in mpi_div_mpi() (found by
  246. TrustInSoft)
  247. * Fixed potential overflow in certificate size verification in
  248. ssl_write_certificate() (found by TrustInSoft)
  249. Security
  250. * Possible remotely-triggered out-of-bounds memory access fixed (found by
  251. TrustInSoft)
  252. = PolarSSL 1.3.2 released on 2013-11-04
  253. Features
  254. * PK tests added to test framework
  255. * Added optional optimization for NIST MODP curves (POLARSSL_ECP_NIST_OPTIM)
  256. * Support for Camellia-GCM mode and ciphersuites
  257. Changes
  258. * Padding checks in cipher layer are now constant-time
  259. * Value comparisons in SSL layer are now constant-time
  260. * Support for serialNumber, postalAddress and postalCode in X509 names
  261. * SSL Renegotiation was refactored
  262. Bugfix
  263. * More stringent checks in cipher layer
  264. * Server does not send out extensions not advertised by client
  265. * Prevent possible alignment warnings on casting from char * to 'aligned *'
  266. * Misc fixes and additions to dependency checks
  267. * Const correctness
  268. * cert_write with selfsign should use issuer_name as subject_name
  269. * Fix ECDSA corner case: missing reduction mod N (found by DualTachyon)
  270. * Defines to handle UEFI environment under MSVC
  271. * Server-side initiated renegotiations send HelloRequest
  272. = PolarSSL 1.3.1 released on 2013-10-15
  273. Features
  274. * Support for Brainpool curves and TLS ciphersuites (RFC 7027)
  275. * Support for ECDHE-PSK key-exchange and ciphersuites
  276. * Support for RSA-PSK key-exchange and ciphersuites
  277. Changes
  278. * RSA blinding locks for a smaller amount of time
  279. * TLS compression only allocates working buffer once
  280. * Introduced POLARSSL_HAVE_READDIR_R for systems without it
  281. * config.h is more script-friendly
  282. Bugfix
  283. * Missing MSVC defines added
  284. * Compile errors with POLARSSL_RSA_NO_CRT
  285. * Header files with 'polarssl/'
  286. * Const correctness
  287. * Possible naming collision in dhm_context
  288. * Better support for MSVC
  289. * threading_set_alt() name
  290. * Added missing x509write_crt_set_version()
  291. = PolarSSL 1.3.0 released on 2013-10-01
  292. Features
  293. * Elliptic Curve Cryptography module added
  294. * Elliptic Curve Diffie Hellman module added
  295. * Ephemeral Elliptic Curve Diffie Hellman support for SSL/TLS
  296. (ECDHE-based ciphersuites)
  297. * Ephemeral Elliptic Curve Digital Signature Algorithm support for SSL/TLS
  298. (ECDSA-based ciphersuites)
  299. * Ability to specify allowed ciphersuites based on the protocol version.
  300. * PSK and DHE-PSK based ciphersuites added
  301. * Memory allocation abstraction layer added
  302. * Buffer-based memory allocator added (no malloc() / free() / HEAP usage)
  303. * Threading abstraction layer added (dummy / pthread / alternate)
  304. * Public Key abstraction layer added
  305. * Parsing Elliptic Curve keys
  306. * Parsing Elliptic Curve certificates
  307. * Support for max_fragment_length extension (RFC 6066)
  308. * Support for truncated_hmac extension (RFC 6066)
  309. * Support for zeros-and-length (ANSI X.923) padding, one-and-zeros
  310. (ISO/IEC 7816-4) padding and zero padding in the cipher layer
  311. * Support for session tickets (RFC 5077)
  312. * Certificate Request (CSR) generation with extensions (key_usage,
  313. ns_cert_type)
  314. * X509 Certificate writing with extensions (basic_constraints,
  315. issuer_key_identifier, etc)
  316. * Optional blinding for RSA, DHM and EC
  317. * Support for multiple active certificate / key pairs in SSL servers for
  318. the same host (Not to be confused with SNI!)
  319. Changes
  320. * Ability to enable / disable SSL v3 / TLS 1.0 / TLS 1.1 / TLS 1.2
  321. individually
  322. * Introduced separate SSL Ciphersuites module that is based on
  323. Cipher and MD information
  324. * Internals for SSL module adapted to have separate IV pointer that is
  325. dynamically set (Better support for hardware acceleration)
  326. * Moved all OID functionality to a separate module. RSA function
  327. prototypes for the RSA sign and verify functions changed as a result
  328. * Split up the GCM module into a starts/update/finish cycle
  329. * Client and server now filter sent and accepted ciphersuites on minimum
  330. and maximum protocol version
  331. * Ability to disable server_name extension (RFC 6066)
  332. * Renamed error_strerror() to the less conflicting polarssl_strerror()
  333. (Ability to keep old as well with POLARSSL_ERROR_STRERROR_BC)
  334. * SHA2 renamed to SHA256, SHA4 renamed to SHA512 and functions accordingly
  335. * All RSA operations require a random generator for blinding purposes
  336. * X509 core refactored
  337. * x509_crt_verify() now case insensitive for cn (RFC 6125 6.4)
  338. * Also compiles / runs without time-based functions (!POLARSSL_HAVE_TIME)
  339. * Support faulty X509 v1 certificates with extensions
  340. (POLARSSL_X509_ALLOW_EXTENSIONS_NON_V3)
  341. Bugfix
  342. * Fixed parse error in ssl_parse_certificate_request()
  343. * zlib compression/decompression skipped on empty blocks
  344. * Support for AIX header locations in net.c module
  345. * Fixed file descriptor leaks
  346. Security
  347. * RSA blinding on CRT operations to counter timing attacks
  348. (found by Cyril Arnaud and Pierre-Alain Fouque)
  349. = Version 1.2.11 released 2014-07-11
  350. Features
  351. * Entropy module now supports seed writing and reading
  352. Changes
  353. * Introduced POLARSSL_HAVE_READDIR_R for systems without it
  354. * Improvements to the CMake build system, contributed by Julian Ospald.
  355. * Work around a bug of the version of Clang shipped by Apple with Mavericks
  356. that prevented bignum.c from compiling. (Reported by Rafael Baptista.)
  357. * Improvements to tests/Makefile, contributed by Oden Eriksson.
  358. * Use UTC time to check certificate validity.
  359. * Reject certificates with times not in UTC, per RFC 5280.
  360. * Migrate zeroizing of data to polarssl_zeroize() instead of memset()
  361. against unwanted compiler optimizations
  362. Security
  363. * Forbid change of server certificate during renegotiation to prevent
  364. "triple handshake" attack when authentication mode is optional (the
  365. attack was already impossible when authentication is required).
  366. * Check notBefore timestamp of certificates and CRLs from the future.
  367. * Forbid sequence number wrapping
  368. * Prevent potential NULL pointer dereference in ssl_read_record() (found by
  369. TrustInSoft)
  370. * Fix length checking for AEAD ciphersuites (found by Codenomicon).
  371. It was possible to crash the server (and client) using crafted messages
  372. when a GCM suite was chosen.
  373. Bugfix
  374. * Fixed X.509 hostname comparison (with non-regular characters)
  375. * SSL now gracefully handles missing RNG
  376. * crypt_and_hash app checks MAC before final decryption
  377. * Fixed x509_crt_parse_path() bug on Windows platforms
  378. * Added missing MPI_CHK() around some statements in mpi_div_mpi() (found by
  379. TrustInSoft)
  380. * Fixed potential overflow in certificate size verification in
  381. ssl_write_certificate() (found by TrustInSoft)
  382. * Fix ASM format in bn_mul.h
  383. * Potential memory leak in bignum_selftest()
  384. * Replaced expired test certificate
  385. * ssl_mail_client now terminates lines with CRLF, instead of LF
  386. * Fix bug in RSA PKCS#1 v1.5 "reversed" operations
  387. * Fixed testing with out-of-source builds using cmake
  388. * Fixed version-major intolerance in server
  389. * Fixed CMake symlinking on out-of-source builds
  390. * Bignum's MIPS-32 assembly was used on MIPS-64, causing chaos. (Found by
  391. Alex Wilson.)
  392. * ssl_init() was leaving a dirty pointer in ssl_context if malloc of
  393. out_ctr failed
  394. * ssl_handshake_init() was leaving dirty pointers in subcontexts if malloc
  395. of one of them failed
  396. * x509_get_current_time() uses localtime_r() to prevent thread issues
  397. * Some example server programs were not sending the close_notify alert.
  398. * Potential memory leak in mpi_exp_mod() when error occurs during
  399. calculation of RR.
  400. * Improve interoperability by not writing extension length in ClientHello
  401. when no extensions are present (found by Matthew Page)
  402. * rsa_check_pubkey() now allows an E up to N
  403. * On OpenBSD, use arc4random_buf() instead of rand() to prevent warnings
  404. * mpi_fill_random() was creating numbers larger than requested on
  405. big-endian platform when size was not an integer number of limbs
  406. * Fix detection of DragonflyBSD in net.c (found by Markus Pfeiffer)
  407. * Stricter check on SSL ClientHello internal sizes compared to actual packet
  408. size (found by TrustInSoft)
  409. * Fix preprocessor checks for bn_mul PPC asm (found by Barry K. Nathan).
  410. * Use \n\t rather than semicolons for bn_mul asm, since some assemblers
  411. interpret semicolons as comment delimiters (found by Barry K. Nathan).
  412. * Disable broken Sparc64 bn_mul assembly (found by Florian Obser).
  413. * Fix base64_decode() to return and check length correctly (in case of
  414. tight buffers)
  415. = Version 1.2.10 released 2013-10-07
  416. Changes
  417. * Changed RSA blinding to a slower but thread-safe version
  418. Bugfix
  419. * Fixed memory leak in RSA as a result of introduction of blinding
  420. * Fixed ssl_pkcs11_decrypt() prototype
  421. * Fixed MSVC project files
  422. = Version 1.2.9 released 2013-10-01
  423. Changes
  424. * x509_verify() now case insensitive for cn (RFC 6125 6.4)
  425. Bugfix
  426. * Fixed potential memory leak when failing to resume a session
  427. * Fixed potential file descriptor leaks (found by Remi Gacogne)
  428. * Minor fixes
  429. Security
  430. * Fixed potential heap buffer overflow on large hostname setting
  431. * Fixed potential negative value misinterpretation in load_file()
  432. * RSA blinding on CRT operations to counter timing attacks
  433. (found by Cyril Arnaud and Pierre-Alain Fouque)
  434. = Version 1.2.8 released 2013-06-19
  435. Features
  436. * Parsing of PKCS#8 encrypted private key files
  437. * PKCS#12 PBE and derivation functions
  438. * Centralized module option values in config.h to allow user-defined
  439. settings without editing header files by using POLARSSL_CONFIG_OPTIONS
  440. Changes
  441. * HAVEGE random generator disabled by default
  442. * Internally split up x509parse_key() into a (PEM) handler function
  443. and specific DER parser functions for the PKCS#1 and unencrypted
  444. PKCS#8 private key formats
  445. * Added mechanism to provide alternative implementations for all
  446. symmetric cipher and hash algorithms (e.g. POLARSSL_AES_ALT in
  447. config.h)
  448. * PKCS#5 module added. Moved PBKDF2 functionality inside and deprecated
  449. old PBKDF2 module
  450. Bugfix
  451. * Secure renegotiation extension should only be sent in case client
  452. supports secure renegotiation
  453. * Fixed offset for cert_type list in ssl_parse_certificate_request()
  454. * Fixed const correctness issues that have no impact on the ABI
  455. * x509parse_crt() now better handles PEM error situations
  456. * ssl_parse_certificate() now calls x509parse_crt_der() directly
  457. instead of the x509parse_crt() wrapper that can also parse PEM
  458. certificates
  459. * x509parse_crtpath() is now reentrant and uses more portable stat()
  460. * Fixed bignum.c and bn_mul.h to support Thumb2 and LLVM compiler
  461. * Fixed values for 2-key Triple DES in cipher layer
  462. * ssl_write_certificate_request() can handle empty ca_chain
  463. Security
  464. * A possible DoS during the SSL Handshake, due to faulty parsing of
  465. PEM-encoded certificates has been fixed (found by Jack Lloyd)
  466. = Version 1.2.7 released 2013-04-13
  467. Features
  468. * Ability to specify allowed ciphersuites based on the protocol version.
  469. Changes
  470. * Default Blowfish keysize is now 128-bits
  471. * Test suites made smaller to accommodate Raspberry Pi
  472. Bugfix
  473. * Fix for MPI assembly for ARM
  474. * GCM adapted to support sizes > 2^29
  475. = Version 1.2.6 released 2013-03-11
  476. Bugfix
  477. * Fixed memory leak in ssl_free() and ssl_reset() for active session
  478. * Corrected GCM counter incrementation to use only 32-bits instead of
  479. 128-bits (found by Yawning Angel)
  480. * Fixes for 64-bit compilation with MS Visual Studio
  481. * Fixed net_bind() for specified IP addresses on little endian systems
  482. * Fixed assembly code for ARM (Thumb and regular) for some compilers
  483. Changes
  484. * Internally split up rsa_pkcs1_encrypt(), rsa_pkcs1_decrypt(),
  485. rsa_pkcs1_sign() and rsa_pkcs1_verify() to separate PKCS#1 v1.5 and
  486. PKCS#1 v2.1 functions
  487. * Added support for custom labels when using rsa_rsaes_oaep_encrypt()
  488. or rsa_rsaes_oaep_decrypt()
  489. * Re-added handling for SSLv2 Client Hello when the define
  490. POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO is set
  491. * The SSL session cache module (ssl_cache) now also retains peer_cert
  492. information (not the entire chain)
  493. Security
  494. * Removed further timing differences during SSL message decryption in
  495. ssl_decrypt_buf()
  496. * Removed timing differences due to bad padding from
  497. rsa_rsaes_pkcs1_v15_decrypt() and rsa_pkcs1_decrypt() for PKCS#1 v1.5
  498. operations
  499. = Version 1.2.5 released 2013-02-02
  500. Changes
  501. * Allow enabling of dummy error_strerror() to support some use-cases
  502. * Debug messages about padding errors during SSL message decryption are
  503. disabled by default and can be enabled with POLARSSL_SSL_DEBUG_ALL
  504. * Sending of security-relevant alert messages that do not break
  505. interoperability can be switched on/off with the flag
  506. POLARSSL_SSL_ALL_ALERT_MESSAGES
  507. Security
  508. * Removed timing differences during SSL message decryption in
  509. ssl_decrypt_buf() due to badly formatted padding
  510. = Version 1.2.4 released 2013-01-25
  511. Changes
  512. * More advanced SSL ciphersuite representation and moved to more dynamic
  513. SSL core
  514. * Added ssl_handshake_step() to allow single stepping the handshake process
  515. Bugfix
  516. * Memory leak when using RSA_PKCS_V21 operations fixed
  517. * Handle future version properly in ssl_write_certificate_request()
  518. * Correctly handle CertificateRequest message in client for <= TLS 1.1
  519. without DN list
  520. = Version 1.2.3 released 2012-11-26
  521. Bugfix
  522. * Server not always sending correct CertificateRequest message
  523. = Version 1.2.2 released 2012-11-24
  524. Changes
  525. * Added p_hw_data to ssl_context for context specific hardware acceleration
  526. data
  527. * During verify trust-CA is only checked for expiration and CRL presence
  528. Bugfixes
  529. * Fixed client authentication compatibility
  530. * Fixed dependency on POLARSSL_SHA4_C in SSL modules
  531. = Version 1.2.1 released 2012-11-20
  532. Changes
  533. * Depth that the certificate verify callback receives is now numbered
  534. bottom-up (Peer cert depth is 0)
  535. Bugfixes
  536. * Fixes for MSVC6
  537. * Moved mpi_inv_mod() outside POLARSSL_GENPRIME
  538. * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
  539. Pégourié-Gonnard)
  540. * Fixed possible segfault in mpi_shift_r() (found by Manuel
  541. Pégourié-Gonnard)
  542. * Added max length check for rsa_pkcs1_sign with PKCS#1 v2.1
  543. = Version 1.2.0 released 2012-10-31
  544. Features
  545. * Added support for NULL cipher (POLARSSL_CIPHER_NULL_CIPHER) and weak
  546. ciphersuites (POLARSSL_ENABLE_WEAK_CIPHERSUITES). They are disabled by
  547. default!
  548. * Added support for wildcard certificates
  549. * Added support for multi-domain certificates through the X509 Subject
  550. Alternative Name extension
  551. * Added preliminary ASN.1 buffer writing support
  552. * Added preliminary X509 Certificate Request writing support
  553. * Added key_app_writer example application
  554. * Added cert_req example application
  555. * Added base Galois Counter Mode (GCM) for AES
  556. * Added TLS 1.2 support (RFC 5246)
  557. * Added GCM suites to TLS 1.2 (RFC 5288)
  558. * Added commandline error code convertor (util/strerror)
  559. * Added support for Hardware Acceleration hooking in SSL/TLS
  560. * Added OpenSSL / PolarSSL compatibility script (tests/compat.sh) and
  561. example application (programs/ssl/o_p_test) (requires OpenSSL)
  562. * Added X509 CA Path support
  563. * Added Thumb assembly optimizations
  564. * Added DEFLATE compression support as per RFC3749 (requires zlib)
  565. * Added blowfish algorithm (Generic and cipher layer)
  566. * Added PKCS#5 PBKDF2 key derivation function
  567. * Added Secure Renegotiation (RFC 5746)
  568. * Added predefined DHM groups from RFC 5114
  569. * Added simple SSL session cache implementation
  570. * Added ServerName extension parsing (SNI) at server side
  571. * Added option to add minimum accepted SSL/TLS protocol version
  572. Changes
  573. * Removed redundant POLARSSL_DEBUG_MSG define
  574. * AES code only check for Padlock once
  575. * Fixed const-correctness mpi_get_bit()
  576. * Documentation for mpi_lsb() and mpi_msb()
  577. * Moved out_msg to out_hdr + 32 to support hardware acceleration
  578. * Changed certificate verify behaviour to comply with RFC 6125 section 6.3
  579. to not match CN if subjectAltName extension is present (Closes ticket #56)
  580. * Cipher layer cipher_mode_t POLARSSL_MODE_CFB128 is renamed to
  581. POLARSSL_MODE_CFB, to also handle different block size CFB modes.
  582. * Removed handling for SSLv2 Client Hello (as per RFC 5246 recommendation)
  583. * Revamped session resumption handling
  584. * Generalized external private key implementation handling (like PKCS#11)
  585. in SSL/TLS
  586. * Revamped x509_verify() and the SSL f_vrfy callback implementations
  587. * Moved from unsigned long to fixed width uint32_t types throughout code
  588. * Renamed ciphersuites naming scheme to IANA reserved names
  589. Bugfix
  590. * Fixed handling error in mpi_cmp_mpi() on longer B values (found by
  591. Hui Dong)
  592. * Fixed potential heap corruption in x509_name allocation
  593. * Fixed single RSA test that failed on Big Endian systems (Closes ticket #54)
  594. * mpi_exp_mod() now correctly handles negative base numbers (Closes ticket
  595. #52)
  596. * Handle encryption with private key and decryption with public key as per
  597. RFC 2313
  598. * Handle empty certificate subject names
  599. * Prevent reading over buffer boundaries on X509 certificate parsing
  600. * mpi_add_abs() now correctly handles adding short numbers to long numbers
  601. with carry rollover (found by Ruslan Yushchenko)
  602. * Handle existence of OpenSSL Trust Extensions at end of X.509 DER blob
  603. * Fixed MPI assembly for SPARC64 platform
  604. Security
  605. * Fixed potential memory zeroization on miscrafted RSA key (found by Eloi
  606. Vanderbeken)
  607. = Version 1.1.8 released on 2013-10-01
  608. Bugfix
  609. * Fixed potential memory leak when failing to resume a session
  610. * Fixed potential file descriptor leaks
  611. Security
  612. * Potential buffer-overflow for ssl_read_record() (independently found by
  613. both TrustInSoft and Paul Brodeur of Leviathan Security Group)
  614. * Potential negative value misinterpretation in load_file()
  615. * Potential heap buffer overflow on large hostname setting
  616. = Version 1.1.7 released on 2013-06-19
  617. Changes
  618. * HAVEGE random generator disabled by default
  619. Bugfix
  620. * x509parse_crt() now better handles PEM error situations
  621. * ssl_parse_certificate() now calls x509parse_crt_der() directly
  622. instead of the x509parse_crt() wrapper that can also parse PEM
  623. certificates
  624. * Fixed values for 2-key Triple DES in cipher layer
  625. * ssl_write_certificate_request() can handle empty ca_chain
  626. Security
  627. * A possible DoS during the SSL Handshake, due to faulty parsing of
  628. PEM-encoded certificates has been fixed (found by Jack Lloyd)
  629. = Version 1.1.6 released on 2013-03-11
  630. Bugfix
  631. * Fixed net_bind() for specified IP addresses on little endian systems
  632. Changes
  633. * Allow enabling of dummy error_strerror() to support some use-cases
  634. * Debug messages about padding errors during SSL message decryption are
  635. disabled by default and can be enabled with POLARSSL_SSL_DEBUG_ALL
  636. Security
  637. * Removed timing differences during SSL message decryption in
  638. ssl_decrypt_buf()
  639. * Removed timing differences due to bad padding from
  640. rsa_rsaes_pkcs1_v15_decrypt() and rsa_pkcs1_decrypt() for PKCS#1 v1.5
  641. operations
  642. = Version 1.1.5 released on 2013-01-16
  643. Bugfix
  644. * Fixed MPI assembly for SPARC64 platform
  645. * Handle existence of OpenSSL Trust Extensions at end of X.509 DER blob
  646. * mpi_add_abs() now correctly handles adding short numbers to long numbers
  647. with carry rollover
  648. * Moved mpi_inv_mod() outside POLARSSL_GENPRIME
  649. * Prevent reading over buffer boundaries on X509 certificate parsing
  650. * mpi_exp_mod() now correctly handles negative base numbers (Closes ticket
  651. #52)
  652. * Fixed possible segfault in mpi_shift_r() (found by Manuel
  653. Pégourié-Gonnard)
  654. * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
  655. Pégourié-Gonnard)
  656. * Added max length check for rsa_pkcs1_sign with PKCS#1 v2.1
  657. * Memory leak when using RSA_PKCS_V21 operations fixed
  658. * Handle encryption with private key and decryption with public key as per
  659. RFC 2313
  660. * Fixes for MSVC6
  661. Security
  662. * Fixed potential memory zeroization on miscrafted RSA key (found by Eloi
  663. Vanderbeken)
  664. = Version 1.1.4 released on 2012-05-31
  665. Bugfix
  666. * Correctly handle empty SSL/TLS packets (Found by James Yonan)
  667. * Fixed potential heap corruption in x509_name allocation
  668. * Fixed single RSA test that failed on Big Endian systems (Closes ticket #54)
  669. = Version 1.1.3 released on 2012-04-29
  670. Bugfix
  671. * Fixed random MPI generation to not generate more size than requested.
  672. = Version 1.1.2 released on 2012-04-26
  673. Bugfix
  674. * Fixed handling error in mpi_cmp_mpi() on longer B values (found by
  675. Hui Dong)
  676. Security
  677. * Fixed potential memory corruption on miscrafted client messages (found by
  678. Frama-C team at CEA LIST)
  679. * Fixed generation of DHM parameters to correct length (found by Ruslan
  680. Yushchenko)
  681. = Version 1.1.1 released on 2012-01-23
  682. Bugfix
  683. * Check for failed malloc() in ssl_set_hostname() and x509_get_entries()
  684. (Closes ticket #47, found by Hugo Leisink)
  685. * Fixed issues with Intel compiler on 64-bit systems (Closes ticket #50)
  686. * Fixed multiple compiler warnings for VS6 and armcc
  687. * Fixed bug in CTR_CRBG selftest
  688. = Version 1.1.0 released on 2011-12-22
  689. Features
  690. * Added ssl_session_reset() to allow better multi-connection pools of
  691. SSL contexts without needing to set all non-connection-specific
  692. data and pointers again. Adapted ssl_server to use this functionality.
  693. * Added ssl_set_max_version() to allow clients to offer a lower maximum
  694. supported version to a server to help buggy server implementations.
  695. (Closes ticket #36)
  696. * Added cipher_get_cipher_mode() and cipher_get_cipher_operation()
  697. introspection functions (Closes ticket #40)
  698. * Added CTR_DRBG based on AES-256-CTR (NIST SP 800-90) random generator
  699. * Added a generic entropy accumulator that provides support for adding
  700. custom entropy sources and added some generic and platform dependent
  701. entropy sources
  702. Changes
  703. * Documentation for AES and Camellia in modes CTR and CFB128 clarified.
  704. * Fixed rsa_encrypt and rsa_decrypt examples to use public key for
  705. encryption and private key for decryption. (Closes ticket #34)
  706. * Inceased maximum size of ASN1 length reads to 32-bits.
  707. * Added an EXPLICIT tag number parameter to x509_get_ext()
  708. * Added a separate CRL entry extension parsing function
  709. * Separated the ASN.1 parsing code from the X.509 specific parsing code.
  710. So now there is a module that is controlled with POLARSSL_ASN1_PARSE_C.
  711. * Changed the defined key-length of DES ciphers in cipher.h to include the
  712. parity bits, to prevent mistakes in copying data. (Closes ticket #33)
  713. * Loads of minimal changes to better support WINCE as a build target
  714. (Credits go to Marco Lizza)
  715. * Added POLARSSL_MPI_WINDOW_SIZE definition to allow easier time to memory
  716. trade-off
  717. * Introduced POLARSSL_MPI_MAX_SIZE and POLARSSL_MPI_MAX_BITS for MPI size
  718. management (Closes ticket #44)
  719. * Changed the used random function pointer to more flexible format. Renamed
  720. havege_rand() to havege_random() to prevent mistakes. Lots of changes as
  721. a consequence in library code and programs
  722. * Moved all examples programs to use the new entropy and CTR_DRBG
  723. * Added permissive certificate parsing to x509parse_crt() and
  724. x509parse_crtfile(). With permissive parsing the parsing does not stop on
  725. encountering a parse-error. Beware that the meaning of return values has
  726. changed!
  727. * All error codes are now negative. Even on mermory failures and IO errors.
  728. Bugfix
  729. * Fixed faulty HMAC-MD2 implementation. Found by dibac. (Closes
  730. ticket #37)
  731. * Fixed a bug where the CRL parser expected an EXPLICIT ASN.1 tag
  732. before version numbers
  733. * Allowed X509 key usage parsing to accept 4 byte values instead of the
  734. standard 1 byte version sometimes used by Microsoft. (Closes ticket #38)
  735. * Fixed incorrect behaviour in case of RSASSA-PSS with a salt length
  736. smaller than the hash length. (Closes ticket #41)
  737. * If certificate serial is longer than 32 octets, serial number is now
  738. appended with '....' after first 28 octets
  739. * Improved build support for s390x and sparc64 in bignum.h
  740. * Fixed MS Visual C++ name clash with int64 in sha4.h
  741. * Corrected removal of leading "00:" in printing serial numbers in
  742. certificates and CRLs
  743. = Version 1.0.0 released on 2011-07-27
  744. Features
  745. * Expanded cipher layer with support for CFB128 and CTR mode
  746. * Added rsa_encrypt and rsa_decrypt simple example programs.
  747. Changes
  748. * The generic cipher and message digest layer now have normal error
  749. codes instead of integers
  750. Bugfix
  751. * Undid faulty bug fix in ssl_write() when flushing old data (Ticket
  752. #18)
  753. = Version 0.99-pre5 released on 2011-05-26
  754. Features
  755. * Added additional Cipher Block Modes to symmetric ciphers
  756. (AES CTR, Camellia CTR, XTEA CBC) including the option to
  757. enable and disable individual modes when needed
  758. * Functions requiring File System functions can now be disabled
  759. by undefining POLARSSL_FS_IO
  760. * A error_strerror function() has been added to translate between
  761. error codes and their description.
  762. * Added mpi_get_bit() and mpi_set_bit() individual bit setter/getter
  763. functions.
  764. * Added ssl_mail_client and ssl_fork_server as example programs.
  765. Changes
  766. * Major argument / variable rewrite. Introduced use of size_t
  767. instead of int for buffer lengths and loop variables for
  768. better unsigned / signed use. Renamed internal bigint types
  769. t_int and t_dbl to t_uint and t_udbl in the process
  770. * mpi_init() and mpi_free() now only accept a single MPI
  771. argument and do not accept variable argument lists anymore.
  772. * The error codes have been remapped and combining error codes
  773. is now done with a PLUS instead of an OR as error codes
  774. used are negative.
  775. * Changed behaviour of net_read(), ssl_fetch_input() and ssl_recv().
  776. net_recv() now returns 0 on EOF instead of
  777. POLARSSL_ERR_NET_CONN_RESET. ssl_fetch_input() returns
  778. POLARSSL_ERR_SSL_CONN_EOF on an EOF from its f_recv() function.
  779. ssl_read() returns 0 if a POLARSSL_ERR_SSL_CONN_EOF is received
  780. after the handshake.
  781. * Network functions now return POLARSSL_ERR_NET_WANT_READ or
  782. POLARSSL_ERR_NET_WANT_WRITE instead of the ambiguous
  783. POLARSSL_ERR_NET_TRY_AGAIN
  784. = Version 0.99-pre4 released on 2011-04-01
  785. Features
  786. * Added support for PKCS#1 v2.1 encoding and thus support
  787. for the RSAES-OAEP and RSASSA-PSS operations.
  788. * Reading of Public Key files incorporated into default x509
  789. functionality as well.
  790. * Added mpi_fill_random() for centralized filling of big numbers
  791. with random data (Fixed ticket #10)
  792. Changes
  793. * Debug print of MPI now removes leading zero octets and
  794. displays actual bit size of the value.
  795. * x509parse_key() (and as a consequence x509parse_keyfile())
  796. does not zeroize memory in advance anymore. Use rsa_init()
  797. before parsing a key or keyfile!
  798. Bugfix
  799. * Debug output of MPI's now the same independent of underlying
  800. platform (32-bit / 64-bit) (Fixes ticket #19, found by Mads
  801. Kiilerich and Mihai Militaru)
  802. * Fixed bug in ssl_write() when flushing old data (Fixed ticket
  803. #18, found by Nikolay Epifanov)
  804. * Fixed proper handling of RSASSA-PSS verification with variable
  805. length salt lengths
  806. = Version 0.99-pre3 released on 2011-02-28
  807. This release replaces version 0.99-pre2 which had possible copyright issues.
  808. Features
  809. * Parsing PEM private keys encrypted with DES and AES
  810. are now supported as well (Fixes ticket #5)
  811. * Added crl_app program to allow easy reading and
  812. printing of X509 CRLs from file
  813. Changes
  814. * Parsing of PEM files moved to separate module (Fixes
  815. ticket #13). Also possible to remove PEM support for
  816. systems only using DER encoding
  817. Bugfixes
  818. * Corrected parsing of UTCTime dates before 1990 and
  819. after 1950
  820. * Support more exotic OID's when parsing certificates
  821. (found by Mads Kiilerich)
  822. * Support more exotic name representations when parsing
  823. certificates (found by Mads Kiilerich)
  824. * Replaced the expired test certificates
  825. * Do not bail out if no client certificate specified. Try
  826. to negotiate anonymous connection (Fixes ticket #12,
  827. found by Boris Krasnovskiy)
  828. Security fixes
  829. * Fixed a possible Man-in-the-Middle attack on the
  830. Diffie Hellman key exchange (thanks to Larry Highsmith,
  831. Subreption LLC)
  832. = Version 0.99-pre1 released on 2011-01-30
  833. Features
  834. Note: Most of these features have been donated by Fox-IT
  835. * Added Doxygen source code documentation parts
  836. * Added reading of DHM context from memory and file
  837. * Improved X509 certificate parsing to include extended
  838. certificate fields, including Key Usage
  839. * Improved certificate verification and verification
  840. against the available CRLs
  841. * Detection for DES weak keys and parity bits added
  842. * Improvements to support integration in other
  843. applications:
  844. + Added generic message digest and cipher wrapper
  845. + Improved information about current capabilities,
  846. status, objects and configuration
  847. + Added verification callback on certificate chain
  848. verification to allow external blacklisting
  849. + Additional example programs to show usage
  850. * Added support for PKCS#11 through the use of the
  851. libpkcs11-helper library
  852. Changes
  853. * x509parse_time_expired() checks time in addition to
  854. the existing date check
  855. * The ciphers member of ssl_context and the cipher member
  856. of ssl_session have been renamed to ciphersuites and
  857. ciphersuite respectively. This clarifies the difference
  858. with the generic cipher layer and is better naming
  859. altogether
  860. = Version 0.14.0 released on 2010-08-16
  861. Features
  862. * Added support for SSL_EDH_RSA_AES_128_SHA and
  863. SSL_EDH_RSA_CAMELLIA_128_SHA ciphersuites
  864. * Added compile-time and run-time version information
  865. * Expanded ssl_client2 arguments for more flexibility
  866. * Added support for TLS v1.1
  867. Changes
  868. * Made Makefile cleaner
  869. * Removed dependency on rand() in rsa_pkcs1_encrypt().
  870. Now using random fuction provided to function and
  871. changed the prototype of rsa_pkcs1_encrypt(),
  872. rsa_init() and rsa_gen_key().
  873. * Some SSL defines were renamed in order to avoid
  874. future confusion
  875. Bug fixes
  876. * Fixed CMake out of source build for tests (found by
  877. kkert)
  878. * rsa_check_private() now supports PKCS1v2 keys as well
  879. * Fixed deadlock in rsa_pkcs1_encrypt() on failing random
  880. generator
  881. = Version 0.13.1 released on 2010-03-24
  882. Bug fixes
  883. * Fixed Makefile in library that was mistakenly merged
  884. * Added missing const string fixes
  885. = Version 0.13.0 released on 2010-03-21
  886. Features
  887. * Added option parsing for host and port selection to
  888. ssl_client2
  889. * Added support for GeneralizedTime in X509 parsing
  890. * Added cert_app program to allow easy reading and
  891. printing of X509 certificates from file or SSL
  892. connection.
  893. Changes
  894. * Added const correctness for main code base
  895. * X509 signature algorithm determination is now
  896. in a function to allow easy future expansion
  897. * Changed symmetric cipher functions to
  898. identical interface (returning int result values)
  899. * Changed ARC4 to use separate input/output buffer
  900. * Added reset function for HMAC context as speed-up
  901. for specific use-cases
  902. Bug fixes
  903. * Fixed bug resulting in failure to send the last
  904. certificate in the chain in ssl_write_certificate() and
  905. ssl_write_certificate_request() (found by fatbob)
  906. * Added small fixes for compiler warnings on a Mac
  907. (found by Frank de Brabander)
  908. * Fixed algorithmic bug in mpi_is_prime() (found by
  909. Smbat Tonoyan)
  910. = Version 0.12.1 released on 2009-10-04
  911. Changes
  912. * Coverage test definitions now support 'depends_on'
  913. tagging system.
  914. * Tests requiring specific hashing algorithms now honor
  915. the defines.
  916. Bug fixes
  917. * Changed typo in #ifdef in x509parse.c (found
  918. by Eduardo)
  919. = Version 0.12.0 released on 2009-07-28
  920. Features
  921. * Added CMake makefiles as alternative to regular Makefiles.
  922. * Added preliminary Code Coverage tests for AES, ARC4,
  923. Base64, MPI, SHA-family, MD-family, HMAC-SHA-family,
  924. Camellia, DES, 3-DES, RSA PKCS#1, XTEA, Diffie-Hellman
  925. and X509parse.
  926. Changes
  927. * Error codes are not (necessarily) negative. Keep
  928. this is mind when checking for errors.
  929. * RSA_RAW renamed to SIG_RSA_RAW for consistency.
  930. * Fixed typo in name of POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE.
  931. * Changed interface for AES and Camellia setkey functions
  932. to indicate invalid key lengths.
  933. Bug fixes
  934. * Fixed include location of endian.h on FreeBSD (found by
  935. Gabriel)
  936. * Fixed include location of endian.h and name clash on
  937. Apples (found by Martin van Hensbergen)
  938. * Fixed HMAC-MD2 by modifying md2_starts(), so that the
  939. required HMAC ipad and opad variables are not cleared.
  940. (found by code coverage tests)
  941. * Prevented use of long long in bignum if
  942. POLARSSL_HAVE_LONGLONG not defined (found by Giles
  943. Bathgate).
  944. * Fixed incorrect handling of negative strings in
  945. mpi_read_string() (found by code coverage tests).
  946. * Fixed segfault on handling empty rsa_context in
  947. rsa_check_pubkey() and rsa_check_privkey() (found by
  948. code coverage tests).
  949. * Fixed incorrect handling of one single negative input
  950. value in mpi_add_abs() (found by code coverage tests).
  951. * Fixed incorrect handling of negative first input
  952. value in mpi_sub_abs() (found by code coverage tests).
  953. * Fixed incorrect handling of negative first input
  954. value in mpi_mod_mpi() and mpi_mod_int(). Resulting
  955. change also affects mpi_write_string() (found by code
  956. coverage tests).
  957. * Corrected is_prime() results for 0, 1 and 2 (found by
  958. code coverage tests).
  959. * Fixed Camellia and XTEA for 64-bit Windows systems.
  960. = Version 0.11.1 released on 2009-05-17
  961. * Fixed missing functionality for SHA-224, SHA-256, SHA384,
  962. SHA-512 in rsa_pkcs1_sign()
  963. = Version 0.11.0 released on 2009-05-03
  964. * Fixed a bug in mpi_gcd() so that it also works when both
  965. input numbers are even and added testcases to check
  966. (found by Pierre Habouzit).
  967. * Added support for SHA-224, SHA-256, SHA-384 and SHA-512
  968. one way hash functions with the PKCS#1 v1.5 signing and
  969. verification.
  970. * Fixed minor bug regarding mpi_gcd located within the
  971. POLARSSL_GENPRIME block.
  972. * Fixed minor memory leak in x509parse_crt() and added better
  973. handling of 'full' certificate chains (found by Mathias
  974. Olsson).
  975. * Centralized file opening and reading for x509 files into
  976. load_file()
  977. * Made definition of net_htons() endian-clean for big endian
  978. systems (Found by Gernot).
  979. * Undefining POLARSSL_HAVE_ASM now also handles prevents asm in
  980. padlock and timing code.
  981. * Fixed an off-by-one buffer allocation in ssl_set_hostname()
  982. responsible for crashes and unwanted behaviour.
  983. * Added support for Certificate Revocation List (CRL) parsing.
  984. * Added support for CRL revocation to x509parse_verify() and
  985. SSL/TLS code.
  986. * Fixed compatibility of XTEA and Camellia on a 64-bit system
  987. (found by Felix von Leitner).
  988. = Version 0.10.0 released on 2009-01-12
  989. * Migrated XySSL to PolarSSL
  990. * Added XTEA symmetric cipher
  991. * Added Camellia symmetric cipher
  992. * Added support for ciphersuites: SSL_RSA_CAMELLIA_128_SHA,
  993. SSL_RSA_CAMELLIA_256_SHA and SSL_EDH_RSA_CAMELLIA_256_SHA
  994. * Fixed dangerous bug that can cause a heap overflow in
  995. rsa_pkcs1_decrypt (found by Christophe Devine)
  996. ================================================================
  997. XySSL ChangeLog
  998. = Version 0.9 released on 2008-03-16
  999. * Added support for ciphersuite: SSL_RSA_AES_128_SHA
  1000. * Enabled support for large files by default in aescrypt2.c
  1001. * Preliminary openssl wrapper contributed by David Barrett
  1002. * Fixed a bug in ssl_write() that caused the same payload to
  1003. be sent twice in non-blocking mode when send returns EAGAIN
  1004. * Fixed ssl_parse_client_hello(): session id and challenge must
  1005. not be swapped in the SSLv2 ClientHello (found by Greg Robson)
  1006. * Added user-defined callback debug function (Krystian Kolodziej)
  1007. * Before freeing a certificate, properly zero out all cert. data
  1008. * Fixed the "mode" parameter so that encryption/decryption are
  1009. not swapped on PadLock; also fixed compilation on older versions
  1010. of gcc (bug reported by David Barrett)
  1011. * Correctly handle the case in padlock_xcryptcbc() when input or
  1012. ouput data is non-aligned by falling back to the software
  1013. implementation, as VIA Nehemiah cannot handle non-aligned buffers
  1014. * Fixed a memory leak in x509parse_crt() which was reported by Greg
  1015. Robson-Garth; some x509write.c fixes by Pascal Vizeli, thanks to
  1016. Matthew Page who reported several bugs
  1017. * Fixed x509_get_ext() to accept some rare certificates which have
  1018. an INTEGER instead of a BOOLEAN for BasicConstraints::cA.
  1019. * Added support on the client side for the TLS "hostname" extension
  1020. (patch contributed by David Patino)
  1021. * Make x509parse_verify() return BADCERT_CN_MISMATCH when an empty
  1022. string is passed as the CN (bug reported by spoofy)
  1023. * Added an option to enable/disable the BN assembly code
  1024. * Updated rsa_check_privkey() to verify that (D*E) = 1 % (P-1)*(Q-1)
  1025. * Disabled obsolete hash functions by default (MD2, MD4); updated
  1026. selftest and benchmark to not test ciphers that have been disabled
  1027. * Updated x509parse_cert_info() to correctly display byte 0 of the
  1028. serial number, setup correct server port in the ssl client example
  1029. * Fixed a critical denial-of-service with X.509 cert. verification:
  1030. peer may cause xyssl to loop indefinitely by sending a certificate
  1031. for which the RSA signature check fails (bug reported by Benoit)
  1032. * Added test vectors for: AES-CBC, AES-CFB, DES-CBC and 3DES-CBC,
  1033. HMAC-MD5, HMAC-SHA1, HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512
  1034. * Fixed HMAC-SHA-384 and HMAC-SHA-512 (thanks to Josh Sinykin)
  1035. * Modified ssl_parse_client_key_exchange() to protect against
  1036. Daniel Bleichenbacher attack on PKCS#1 v1.5 padding, as well
  1037. as the Klima-Pokorny-Rosa extension of Bleichenbacher's attack
  1038. * Updated rsa_gen_key() so that ctx->N is always nbits in size
  1039. * Fixed assembly PPC compilation errors on Mac OS X, thanks to
  1040. David Barrett and Dusan Semen
  1041. = Version 0.8 released on 2007-10-20
  1042. * Modified the HMAC functions to handle keys larger
  1043. than 64 bytes, thanks to Stephane Desneux and gary ng
  1044. * Fixed ssl_read_record() to properly update the handshake
  1045. message digests, which fixes IE6/IE7 client authentication
  1046. * Cleaned up the XYSSL* #defines, suggested by Azriel Fasten
  1047. * Fixed net_recv(), thanks to Lorenz Schori and Egon Kocjan
  1048. * Added user-defined callbacks for handling I/O and sessions
  1049. * Added lots of debugging output in the SSL/TLS functions
  1050. * Added preliminary X.509 cert. writing by Pascal Vizeli
  1051. * Added preliminary support for the VIA PadLock routines
  1052. * Added AES-CFB mode of operation, contributed by chmike
  1053. * Added an SSL/TLS stress testing program (ssl_test.c)
  1054. * Updated the RSA PKCS#1 code to allow choosing between
  1055. RSA_PUBLIC and RSA_PRIVATE, as suggested by David Barrett
  1056. * Updated ssl_read() to skip 0-length records from OpenSSL
  1057. * Fixed the make install target to comply with *BSD make
  1058. * Fixed a bug in mpi_read_binary() on 64-bit platforms
  1059. * mpi_is_prime() speedups, thanks to Kevin McLaughlin
  1060. * Fixed a long standing memory leak in mpi_is_prime()
  1061. * Replaced realloc with malloc in mpi_grow(), and set
  1062. the sign of zero as positive in mpi_init() (reported
  1063. by Jonathan M. McCune)
  1064. = Version 0.7 released on 2007-07-07
  1065. * Added support for the MicroBlaze soft-core processor
  1066. * Fixed a bug in ssl_tls.c which sometimes prevented SSL
  1067. connections from being established with non-blocking I/O
  1068. * Fixed a couple bugs in the VS6 and UNIX Makefiles
  1069. * Fixed the "PIC register ebx clobbered in asm" bug
  1070. * Added HMAC starts/update/finish support functions
  1071. * Added the SHA-224, SHA-384 and SHA-512 hash functions
  1072. * Fixed the net_set_*block routines, thanks to Andreas
  1073. * Added a few demonstration programs: md5sum, sha1sum,
  1074. dh_client, dh_server, rsa_genkey, rsa_sign, rsa_verify
  1075. * Added new bignum import and export helper functions
  1076. * Rewrote README.txt in program/ssl/ca to better explain
  1077. how to create a test PKI
  1078. = Version 0.6 released on 2007-04-01
  1079. * Ciphers used in SSL/TLS can now be disabled at compile
  1080. time, to reduce the memory footprint on embedded systems
  1081. * Added multiply assembly code for the TriCore and modified
  1082. havege_struct for this processor, thanks to David Patiño
  1083. * Added multiply assembly code for 64-bit PowerPCs,
  1084. thanks to Peking University and the OSU Open Source Lab
  1085. * Added experimental support of Quantum Cryptography
  1086. * Added support for autoconf, contributed by Arnaud Cornet
  1087. * Fixed "long long" compilation issues on IA-64 and PPC64
  1088. * Fixed a bug introduced in xyssl-0.5/timing.c: hardclock
  1089. was not being correctly defined on ARM and MIPS
  1090. = Version 0.5 released on 2007-03-01
  1091. * Added multiply assembly code for SPARC and Alpha
  1092. * Added (beta) support for non-blocking I/O operations
  1093. * Implemented session resuming and client authentication
  1094. * Fixed some portability issues on WinCE, MINIX 3, Plan9
  1095. (thanks to Benjamin Newman), HP-UX, FreeBSD and Solaris
  1096. * Improved the performance of the EDH key exchange
  1097. * Fixed a bug that caused valid packets with a payload
  1098. size of 16384 bytes to be rejected
  1099. = Version 0.4 released on 2007-02-01
  1100. * Added support for Ephemeral Diffie-Hellman key exchange
  1101. * Added multiply asm code for SSE2, ARM, PPC, MIPS and M68K
  1102. * Various improvement to the modular exponentiation code
  1103. * Rewrote the headers to generate the API docs with doxygen
  1104. * Fixed a bug in ssl_encrypt_buf (incorrect padding was
  1105. generated) and in ssl_parse_client_hello (max. client
  1106. version was not properly set), thanks to Didier Rebeix
  1107. * Fixed another bug in ssl_parse_client_hello: clients with
  1108. cipherlists larger than 96 bytes were incorrectly rejected
  1109. * Fixed a couple memory leak in x509_read.c
  1110. = Version 0.3 released on 2007-01-01
  1111. * Added server-side SSLv3 and TLSv1.0 support
  1112. * Multiple fixes to enhance the compatibility with g++,
  1113. thanks to Xosé Antón Otero Ferreira
  1114. * Fixed a bug in the CBC code, thanks to dowst; also,
  1115. the bignum code is no longer dependent on long long
  1116. * Updated rsa_pkcs1_sign to handle arbitrary large inputs
  1117. * Updated timing.c for improved compatibility with i386
  1118. and 486 processors, thanks to Arnaud Cornet
  1119. = Version 0.2 released on 2006-12-01
  1120. * Updated timing.c to support ARM and MIPS arch
  1121. * Updated the MPI code to support 8086 on MSVC 1.5
  1122. * Added the copyright notice at the top of havege.h
  1123. * Fixed a bug in sha2_hmac, thanks to newsoft/Wenfang Zhang
  1124. * Fixed a bug reported by Adrian Rüegsegger in x509_read_key
  1125. * Fixed a bug reported by Torsten Lauter in ssl_read_record
  1126. * Fixed a bug in rsa_check_privkey that would wrongly cause
  1127. valid RSA keys to be dismissed (thanks to oldwolf)
  1128. * Fixed a bug in mpi_is_prime that caused some primes to fail
  1129. the Miller-Rabin primality test
  1130. I'd also like to thank Younès Hafri for the CRUX linux port,
  1131. Khalil Petit who added XySSL into pkgsrc and Arnaud Cornet
  1132. who maintains the Debian package :-)
  1133. = Version 0.1 released on 2006-11-01