mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 05:38:39 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user