add ssl session cache

This commit is contained in:
Xuan Sang LE
2018-02-10 16:57:21 +01:00
parent 902d4ce494
commit 8a3c95db22
2 changed files with 22 additions and 4 deletions

View File

@ -107,6 +107,10 @@ int antd_close(void* src)
antd_client_t * source = (antd_client_t *) src;
#ifdef USE_OPENSSL
if(source->ssl && usessl()){
//printf("SSL:Shutdown ssl\n");
//SSL_shutdown((SSL*) source->ssl);
SSL_set_shutdown((SSL*) source->ssl, SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN);
//printf("SSL:Free ssl\n");
SSL_free((SSL*) source->ssl);
//LOG("Freeing SSL\n");
}