add SM2 default ID, fixed the SM2_do_encrypt() memory leak

This commit is contained in:
Zhi Guan
2016-04-10 01:42:54 +02:00
parent 70118dbcae
commit 37ac6cd45a
7 changed files with 10 additions and 98 deletions

View File

@@ -451,7 +451,6 @@ int ssl_get_new_session(SSL *s, int session)
} else if (s->version == GMSSL1_1_VERSION) {
ss->ssl_version = GMSSL1_1_VERSION;
ss->session_id_length = SSL3_SSL_SESSION_ID_LENGTH;
}
#endif
} else {
SSLerr(SSL_F_SSL_GET_NEW_SESSION, SSL_R_UNSUPPORTED_SSL_VERSION);