ChangeLog 99 KB

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