made the ecc keys in the CYASSL struct dynamic

This commit is contained in:
John Safranek
2012-12-26 16:39:19 -08:00
parent 5bc976ee0f
commit cf114b92df
4 changed files with 109 additions and 45 deletions

View File

@@ -2786,7 +2786,7 @@ int CyaSSL_dtls_got_timeout(CYASSL* ssl)
/* in case used set_accept_state after init */
if (ssl->eccTempKeyPresent == 0) {
if (ecc_make_key(ssl->rng, ssl->eccTempKeySz,
&ssl->eccTempKey) != 0) {
ssl->eccTempKey) != 0) {
ssl->error = ECC_MAKEKEY_ERROR;
CYASSL_ERROR(ssl->error);
return SSL_FATAL_ERROR;