Remove peer temp keys from SESS_CERT
[openssl.git] / ssl / ssl_cert.c
index 6b39e25813860c2065ab381bc74c80b8c1fb2352..badcc2d147df5b43786a7112f17c30ad0a1dc88d 100644 (file)
@@ -570,16 +570,6 @@ void ssl_sess_cert_free(SESS_CERT *sc)
 #endif
     }
 
-#ifndef OPENSSL_NO_RSA
-    RSA_free(sc->peer_rsa_tmp);
-#endif
-#ifndef OPENSSL_NO_DH
-    DH_free(sc->peer_dh_tmp);
-#endif
-#ifndef OPENSSL_NO_EC
-    EC_KEY_free(sc->peer_ecdh_tmp);
-#endif
-
     OPENSSL_free(sc);
 }