Fix SSL status ambiguity.

- Adds CipherSuite string with the full suite
- Changes CipherName to be the actual cipher name instead of the (erroneous) full suite like Firefox does.
This commit is contained in:
wolfbeast
2018-06-20 19:11:09 +02:00
committed by Roy Tam
parent 2205d506e5
commit 624aa2c581
7 changed files with 45 additions and 9 deletions
+9 -1
View File
@@ -418,6 +418,13 @@ TLSServerConnectionInfo::GetCipherName(nsACString& aCipherName)
return NS_OK;
}
NS_IMETHODIMP
TLSServerConnectionInfo::GetCipherSuite(nsACString& aCipherSuite)
{
aCipherSuite.Assign(mCipherSuite);
return NS_OK;
}
NS_IMETHODIMP
TLSServerConnectionInfo::GetKeyLength(uint32_t* aKeyLength)
{
@@ -490,7 +497,8 @@ TLSServerConnectionInfo::HandshakeCallback(PRFileDesc* aFD)
if (NS_FAILED(rv)) {
return rv;
}
mCipherName.Assign(cipherInfo.cipherSuiteName);
mCipherName.Assign(cipherInfo.symCipherName);
mCipherSuite.Assign(cipherInfo.cipherSuiteName);
mKeyLength = cipherInfo.effectiveKeyBits;
mMacLength = cipherInfo.macBits;