mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 17:10:49 +02:00
Early-return from TLS 1.2 resumption on SNI/ALPN mismatch
This commit is contained in:
@@ -38097,6 +38097,7 @@ static int AddPSKtoPreMasterSecret(WOLFSSL* ssl)
|
||||
TICKET_BINDING_HASH_SZ) != 0) {
|
||||
WOLFSSL_MSG("Resumed session SNI mismatch, full handshake");
|
||||
ssl->options.resuming = 0;
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_ALPN
|
||||
@@ -38106,6 +38107,7 @@ static int AddPSKtoPreMasterSecret(WOLFSSL* ssl)
|
||||
TICKET_BINDING_HASH_SZ) != 0)) {
|
||||
WOLFSSL_MSG("Resumed session ALPN mismatch, full handshake");
|
||||
ssl->options.resuming = 0;
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user