commit | e1efdf912f9f2d8a1ff9704454615de1dc1716fc | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Fri Jan 05 21:18:37 2018 +0100 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Tue Apr 24 09:32:29 2018 +0200 |
tree | 939dd2ea544931bf66261a4869975438d0e18d03 | |
parent | e198df53a070da3e29707fd16c5736811a2b1415 [diff] [blame] |
ssl_write_server_key_exchange: don't hard-code max hash size
diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 2034d75..bc94ebb 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c
@@ -3032,7 +3032,7 @@ { 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: