Entropy collector and CTR-DRBG now also work on SHA-256 if SHA-512 not available

This commit is contained in:
Paul Bakker 2013-08-27 15:06:26 +02:00
parent 0a20171d52
commit fb08fd2e23
6 changed files with 65 additions and 5 deletions
library

View file

@ -2318,7 +2318,7 @@ void ssl_optimize_checksum( ssl_context *ssl,
const ssl_ciphersuite_t *ciphersuite_info )
{
#if !defined(POLARSSL_SHA512_C)
((void) ciphersuite);
((void) ciphersuite_info);
#endif
if( ssl->minor_ver < SSL_MINOR_VERSION_3 )