mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Get rid of the incorrect mechanism to remove insecure fallback hosts.
This fixes #797.
This commit is contained in:
parent
abaee14a7e
commit
bd525435bf
1 changed files with 0 additions and 12 deletions
|
|
@ -1277,7 +1277,6 @@ void HandshakeCallback(PRFileDesc* fd, void* client_data) {
|
|||
infoObject->GetPort(),
|
||||
versions.max);
|
||||
|
||||
bool usesFallbackCipher = false;
|
||||
SSLChannelInfo channelInfo;
|
||||
rv = SSL_GetChannelInfo(fd, &channelInfo, sizeof(channelInfo));
|
||||
MOZ_ASSERT(rv == SECSuccess);
|
||||
|
|
@ -1296,8 +1295,6 @@ void HandshakeCallback(PRFileDesc* fd, void* client_data) {
|
|||
sizeof cipherInfo);
|
||||
MOZ_ASSERT(rv == SECSuccess);
|
||||
if (rv == SECSuccess) {
|
||||
usesFallbackCipher = channelInfo.keaType == ssl_kea_dh;
|
||||
|
||||
MOZ_ASSERT(infoObject->GetKEAUsed() == channelInfo.keaType);
|
||||
|
||||
if (infoObject->IsFullHandshake()) {
|
||||
|
|
@ -1372,15 +1369,6 @@ void HandshakeCallback(PRFileDesc* fd, void* client_data) {
|
|||
} else {
|
||||
state = nsIWebProgressListener::STATE_IS_SECURE |
|
||||
nsIWebProgressListener::STATE_SECURE_HIGH;
|
||||
if (!usesFallbackCipher) {
|
||||
SSLVersionRange defVersion;
|
||||
rv = SSL_VersionRangeGetDefault(ssl_variant_stream, &defVersion);
|
||||
if (rv == SECSuccess && versions.max >= defVersion.max) {
|
||||
// we know this site no longer requires a fallback cipher
|
||||
ioLayerHelpers.removeInsecureFallbackSite(infoObject->GetHostName(),
|
||||
infoObject->GetPort());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (status->HasServerCert()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue