From 9505f92bd1a362933540f392699063a400aba899 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 6 May 2013 17:25:50 -0700 Subject: [PATCH] restore session certs when resuming session --- src/internal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index c89384543..c4a3cb721 100644 --- a/src/internal.c +++ b/src/internal.c @@ -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)