mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
@ -1794,8 +1794,8 @@ SSL_SESSION *ssl_session_update(int max_sessions, SSL_SESSION *ssl_sessions[],
|
|||||||
|
|
||||||
/* ok, we've used up all of our sessions. So blow the oldest session away */
|
/* ok, we've used up all of our sessions. So blow the oldest session away */
|
||||||
oldest_sess->conn_time = tm;
|
oldest_sess->conn_time = tm;
|
||||||
memset(oldest_sess->session_id, 0, sizeof(SSL_SESSION_ID_SIZE));
|
memset(oldest_sess->session_id, 0, SSL_SESSION_ID_SIZE);
|
||||||
memset(oldest_sess->master_secret, 0, sizeof(SSL_SECRET_SIZE));
|
memset(oldest_sess->master_secret, 0, SSL_SECRET_SIZE);
|
||||||
SSL_CTX_UNLOCK(ssl->ssl_ctx->mutex);
|
SSL_CTX_UNLOCK(ssl->ssl_ctx->mutex);
|
||||||
return oldest_sess;
|
return oldest_sess;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user