зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1092998 - Followup to address review comments. r=keeler
This commit is contained in:
Родитель
bed81b1fde
Коммит
d7c9eae1c7
|
@ -1210,9 +1210,9 @@ retryDueToTLSIntolerance(PRErrorCode err, nsNSSSocketInfo* socketInfo)
|
||||||
.forgetIntolerance(socketInfo->GetHostName(), socketInfo->GetPort());
|
.forgetIntolerance(socketInfo->GetHostName(), socketInfo->GetPort());
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
} else if ((err == SSL_ERROR_NO_CYPHER_OVERLAP ||
|
}
|
||||||
err == PR_END_OF_FILE_ERROR) &&
|
if ((err == SSL_ERROR_NO_CYPHER_OVERLAP || err == PR_END_OF_FILE_ERROR) &&
|
||||||
nsNSSComponent::AreAnyWeakCiphersEnabled()) {
|
nsNSSComponent::AreAnyWeakCiphersEnabled()) {
|
||||||
if (socketInfo->SharedState().IOLayerHelpers()
|
if (socketInfo->SharedState().IOLayerHelpers()
|
||||||
.rememberStrongCiphersFailed(socketInfo->GetHostName(),
|
.rememberStrongCiphersFailed(socketInfo->GetHostName(),
|
||||||
socketInfo->GetPort(), err)) {
|
socketInfo->GetPort(), err)) {
|
||||||
|
|
|
@ -33,7 +33,11 @@ TEST_F(TLSIntoleranceTest, Test_Full_Fallback_Process)
|
||||||
ASSERT_EQ(SSL_LIBRARY_VERSION_TLS_1_2, range.max);
|
ASSERT_EQ(SSL_LIBRARY_VERSION_TLS_1_2, range.max);
|
||||||
ASSERT_EQ(StrongCipherStatusUnknown, strongCipherStatus);
|
ASSERT_EQ(StrongCipherStatusUnknown, strongCipherStatus);
|
||||||
|
|
||||||
ASSERT_TRUE(helpers.rememberStrongCiphersFailed(HOST, PORT, 0));
|
ASSERT_TRUE(
|
||||||
|
helpers.rememberStrongCiphersFailed(
|
||||||
|
HOST, PORT, SSL_ERROR_NO_CYPHER_OVERLAP));
|
||||||
|
ASSERT_EQ(SSL_ERROR_NO_CYPHER_OVERLAP,
|
||||||
|
helpers.getIntoleranceReason(HOST, PORT));
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче