Fix misuse of signed ints in the HAVEGE module

Update havege.h to the new version in the crypto module.

This is technically an API break, since the type mbedtls_havege_state
is exposed in a public header. However normal applications should not
be affected.

There is no ABI break on platforms where uint32_t and int are treated
identically, which is virtually all of them.

Fix #2598
This commit is contained in:
Gilles Peskine
2019-06-14 19:26:55 +02:00
parent a3daa21d8c
commit f3820e36f7
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -58,11 +58,13 @@ Bugfix
* Set the next sequence of the subject_alt_name to NULL when deleting
sequence on failure. Found and fix suggested by Philippe Antoine.
Credit to OSS-Fuzz.
* Fix misuse of signed arithmetic in the HAVEGE module. #2598
API Changes
* Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,
and the used tls-prf.
* Add public API for tls-prf function, according to requested enum.
* The HAVEGE state type now uses uint32_t elements instead of int.
Changes
* Server's RSA certificate in certs.c was SHA-1 signed. In the default