ChangeLog 94 KB

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