restore session certs when resuming session

This commit is contained in:
John Safranek 2013-05-06 17:25:50 -07:00
parent 018d1684c9
commit 9505f92bd1

View File

@ -9367,7 +9367,9 @@ int SetCipherList(Suites* s, const char* list)
CYASSL_MSG("Unsupported cipher suite, ClientHello");
return UNSUPPORTED_SUITE;
}
#ifdef SESSION_CERTS
ssl->session = *session; /* restore session certs. */
#endif
RNG_GenerateBlock(ssl->rng, ssl->arrays->serverRandom, RAN_LEN);
#ifndef NO_OLD_TLS
if (ssl->options.tls)