ssl_write_server_key_exchange: don't hard-code max hash size

This commit is contained in:
Gilles Peskine 2018-01-05 21:18:37 +01:00
parent e198df53a0
commit e1efdf912f

View file

@ -3032,7 +3032,7 @@ curve_matching_done:
{
size_t signature_len = 0;
unsigned int hashlen = 0;
unsigned char hash[64];
unsigned char hash[MBEDTLS_MD_MAX_SIZE];
/*
* 3.1: Choose hash algorithm: