Bug 846498 - Expose error code on TransportSecurityInfo. r=keeler

This commit is contained in:
Garrett Robinson 2014-10-30 12:50:00 +01:00
parent bf4efd8320
commit d7c1f641cc
2 changed files with 9 additions and 1 deletions

View File

@ -8,10 +8,11 @@
interface nsIX509CertList;
[scriptable, uuid(c754ef58-853f-4870-abf7-98be325d2b97)]
[scriptable, uuid(216112d3-28bc-4671-b057-f98cc09ba1ea)]
interface nsITransportSecurityInfo : nsISupports {
readonly attribute unsigned long securityState;
readonly attribute wstring errorMessage;
readonly attribute long errorCode; // PRErrorCode
/**
* If certificate verification failed, this will be the peer certificate

View File

@ -266,6 +266,13 @@ TransportSecurityInfo::formatErrorMessage(MutexAutoLock const & proofOfLock,
return rv;
}
NS_IMETHODIMP
TransportSecurityInfo::GetErrorCode(int32_t* state)
{
*state = GetErrorCode();
return NS_OK;
}
/* void getInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result); */
NS_IMETHODIMP
TransportSecurityInfo::GetInterface(const nsIID & uuid, void * *result)