mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 846498 - Expose error code on TransportSecurityInfo. r=keeler
This commit is contained in:
parent
bf4efd8320
commit
d7c1f641cc
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user