forked from wolfSSL/wolfssl
Merge pull request #3525 from SparkiDev/tls13_session
TLS 1.3: always add session when sending finished message
This commit is contained in:
@ -6069,8 +6069,7 @@ static int SendTls13Finished(WOLFSSL* ssl)
|
|||||||
return BUILD_MSG_ERROR;
|
return BUILD_MSG_ERROR;
|
||||||
|
|
||||||
#ifndef NO_SESSION_CACHE
|
#ifndef NO_SESSION_CACHE
|
||||||
if (!ssl->options.resuming && (ssl->options.side == WOLFSSL_SERVER_END ||
|
if (!ssl->options.resuming) {
|
||||||
(ssl->options.side == WOLFSSL_SERVER_END && ssl->arrays != NULL))) {
|
|
||||||
AddSession(ssl); /* just try */
|
AddSession(ssl); /* just try */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user