mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-06 08:29:08 +00:00
Security - Unsafe negotiation warning with TLS 1.3
This commit is contained in:
@@ -1242,11 +1242,16 @@ void HandshakeCallback(PRFileDesc* fd, void* client_data) {
|
||||
}
|
||||
|
||||
PRBool siteSupportsSafeRenego;
|
||||
rv = SSL_HandshakeNegotiatedExtension(fd, ssl_renegotiation_info_xtn,
|
||||
&siteSupportsSafeRenego);
|
||||
MOZ_ASSERT(rv == SECSuccess);
|
||||
if (rv != SECSuccess) {
|
||||
siteSupportsSafeRenego = false;
|
||||
if (channelInfo.protocolVersion != SSL_LIBRARY_VERSION_TLS_1_3) {
|
||||
rv = SSL_HandshakeNegotiatedExtension(fd, ssl_renegotiation_info_xtn,
|
||||
&siteSupportsSafeRenego);
|
||||
MOZ_ASSERT(rv == SECSuccess);
|
||||
if (rv != SECSuccess) {
|
||||
siteSupportsSafeRenego = false;
|
||||
}
|
||||
} else {
|
||||
// TLS 1.3 dropped support for renegotiation.
|
||||
siteSupportsSafeRenego = true;
|
||||
}
|
||||
bool renegotiationUnsafe = !siteSupportsSafeRenego &&
|
||||
ioLayerHelpers.treatUnsafeNegotiationAsBroken();
|
||||
|
||||
Reference in New Issue
Block a user