discard session chain in SSL_clear

pull/1319/head
Takashi Kojo 2017-07-30 12:19:49 +09:00 committed by Jacob Barthelmeh
parent 2a4766198a
commit a918dfdb33
1 changed files with 3 additions and 1 deletions

View File

@ -14518,7 +14518,9 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md)
return WOLFSSL_FAILURE;
#endif
}
#ifdef SESSION_CERTS
ssl->session.chain.count = 0;
#endif
#ifdef KEEP_PEER_CERT
FreeX509(&ssl->peerCert);
InitX509(&ssl->peerCert, 0, ssl->heap);