/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/security/manager/ssl/nsITransportSecurityInfo.idl
*/
#ifndef __gen_nsITransportSecurityInfo_h__
#define __gen_nsITransportSecurityInfo_h__
#include "nsISupports.h"
#include "nsTArray.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIObjectOutputStream; /* forward declaration */
class nsIX509Cert; /* forward declaration */
// %{C++:12-14
namespace IPC {
class MessageWriter;
}
// %}
/* starting interface: nsITransportSecurityInfo */
#define NS_ITRANSPORTSECURITYINFO_IID_STR "216112d3-28bc-4671-b057-f98cc09ba1ea"
#define NS_ITRANSPORTSECURITYINFO_IID \
{0x216112d3, 0x28bc, 0x4671, \
{ 0xb0, 0x57, 0xf9, 0x8c, 0xc0, 0x9b, 0xa1, 0xea }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsITransportSecurityInfo) nsITransportSecurityInfo : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ITRANSPORTSECURITYINFO_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITransportSecurityInfo;
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsITransportSecurityInfo_OverridableErrorCategory) OverridableErrorCategory : uint32_t {
ERROR_UNSET MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_OverridableErrorCategory_ERROR_UNSET) = 0,
ERROR_TRUST MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_OverridableErrorCategory_ERROR_TRUST) = 1,
ERROR_DOMAIN MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_OverridableErrorCategory_ERROR_DOMAIN) = 2,
ERROR_TIME MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_OverridableErrorCategory_ERROR_TIME) = 3,
};
/* readonly attribute unsigned long securityState; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_securityState)
NS_IMETHOD GetSecurityState(uint32_t *aSecurityState) = 0;
/* readonly attribute long errorCode; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_errorCode)
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) = 0;
/* readonly attribute AString errorCodeString; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_errorCodeString)
NS_IMETHOD GetErrorCodeString(nsAString& aErrorCodeString) = 0;
/* readonly attribute Array<nsIX509Cert> handshakeCertificates; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_handshakeCertificates)
NS_IMETHOD GetHandshakeCertificates(nsTArray<RefPtr<nsIX509Cert>>& aHandshakeCertificates) = 0;
/* readonly attribute nsIX509Cert serverCert; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_serverCert)
NS_IMETHOD GetServerCert(nsIX509Cert **aServerCert) = 0;
/* readonly attribute Array<nsIX509Cert> succeededCertChain; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_succeededCertChain)
NS_IMETHOD GetSucceededCertChain(nsTArray<RefPtr<nsIX509Cert>>& aSucceededCertChain) = 0;
/* [must_use] readonly attribute ACString cipherName; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_cipherName)
[[nodiscard]] NS_IMETHOD GetCipherName(nsACString& aCipherName) = 0;
/* [must_use] readonly attribute unsigned long keyLength; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_keyLength)
[[nodiscard]] NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) = 0;
/* [must_use] readonly attribute unsigned long secretKeyLength; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_secretKeyLength)
[[nodiscard]] NS_IMETHOD GetSecretKeyLength(uint32_t *aSecretKeyLength) = 0;
/* [must_use] readonly attribute ACString keaGroupName; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_keaGroupName)
[[nodiscard]] NS_IMETHOD GetKeaGroupName(nsACString& aKeaGroupName) = 0;
/* [must_use] readonly attribute ACString signatureSchemeName; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_signatureSchemeName)
[[nodiscard]] NS_IMETHOD GetSignatureSchemeName(nsACString& aSignatureSchemeName) = 0;
enum {
SSL_VERSION_3 MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_SSL_VERSION_3) = 0,
TLS_VERSION_1 MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_TLS_VERSION_1) = 1,
TLS_VERSION_1_1 MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_TLS_VERSION_1_1) = 2,
TLS_VERSION_1_2 MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_TLS_VERSION_1_2) = 3,
TLS_VERSION_1_3 MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_TLS_VERSION_1_3) = 4
};
/* [must_use] readonly attribute unsigned short protocolVersion; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_protocolVersion)
[[nodiscard]] NS_IMETHOD GetProtocolVersion(uint16_t *aProtocolVersion) = 0;
enum {
CERTIFICATE_TRANSPARENCY_NOT_APPLICABLE MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_CERTIFICATE_TRANSPARENCY_NOT_APPLICABLE) = 0,
CERTIFICATE_TRANSPARENCY_POLICY_COMPLIANT MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_CERTIFICATE_TRANSPARENCY_POLICY_COMPLIANT) = 5,
CERTIFICATE_TRANSPARENCY_POLICY_NOT_ENOUGH_SCTS MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_CERTIFICATE_TRANSPARENCY_POLICY_NOT_ENOUGH_SCTS) = 6,
CERTIFICATE_TRANSPARENCY_POLICY_NOT_DIVERSE_SCTS MOZ_BINDING(binding_to, idl, const, XPIDL_nsITransportSecurityInfo_CERTIFICATE_TRANSPARENCY_POLICY_NOT_DIVERSE_SCTS) = 7
};
/* [must_use] readonly attribute unsigned short certificateTransparencyStatus; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_certificateTransparencyStatus)
[[nodiscard]] NS_IMETHOD GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus) = 0;
/* [must_use] readonly attribute boolean isAcceptedEch; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_isAcceptedEch)
[[nodiscard]] NS_IMETHOD GetIsAcceptedEch(bool *aIsAcceptedEch) = 0;
/* [must_use] readonly attribute boolean isDelegatedCredential; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_isDelegatedCredential)
[[nodiscard]] NS_IMETHOD GetIsDelegatedCredential(bool *aIsDelegatedCredential) = 0;
/* [must_use] readonly attribute nsITransportSecurityInfo_OverridableErrorCategory overridableErrorCategory; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_overridableErrorCategory)
[[nodiscard]] NS_IMETHOD GetOverridableErrorCategory(nsITransportSecurityInfo::OverridableErrorCategory *aOverridableErrorCategory) = 0;
/* [must_use] readonly attribute boolean madeOCSPRequests; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_madeOCSPRequests)
[[nodiscard]] NS_IMETHOD GetMadeOCSPRequests(bool *aMadeOCSPRequests) = 0;
/* [must_use] readonly attribute boolean usedPrivateDNS; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_usedPrivateDNS)
[[nodiscard]] NS_IMETHOD GetUsedPrivateDNS(bool *aUsedPrivateDNS) = 0;
/* [must_use] readonly attribute boolean isExtendedValidation; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_isExtendedValidation)
[[nodiscard]] NS_IMETHOD GetIsExtendedValidation(bool *aIsExtendedValidation) = 0;
/* [noscript,notxpcom] void SerializeToIPC (in IpcMessageWriterPtr aWriter); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITransportSecurityInfo_SerializeToIPC)
NS_IMETHOD_(void) SerializeToIPC(IPC::MessageWriter * aWriter) = 0;
/* [must_use] ACString toString (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITransportSecurityInfo_toString)
[[nodiscard]] NS_IMETHOD ToString(nsACString& _retval) = 0;
/* readonly attribute ACString negotiatedNPN; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_negotiatedNPN)
NS_IMETHOD GetNegotiatedNPN(nsACString& aNegotiatedNPN) = 0;
/* readonly attribute boolean resumed; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_resumed)
NS_IMETHOD GetResumed(bool *aResumed) = 0;
/* readonly attribute boolean isBuiltCertChainRootBuiltInRoot; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_isBuiltCertChainRootBuiltInRoot)
NS_IMETHOD GetIsBuiltCertChainRootBuiltInRoot(bool *aIsBuiltCertChainRootBuiltInRoot) = 0;
/* readonly attribute ACString peerId; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_peerId)
NS_IMETHOD GetPeerId(nsACString& aPeerId) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITRANSPORTSECURITYINFO \
NS_IMETHOD GetSecurityState(uint32_t *aSecurityState) override; \
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override; \
NS_IMETHOD GetErrorCodeString(nsAString& aErrorCodeString) override; \
NS_IMETHOD GetHandshakeCertificates(nsTArray<RefPtr<nsIX509Cert>>& aHandshakeCertificates) override; \
NS_IMETHOD GetServerCert(nsIX509Cert **aServerCert) override; \
NS_IMETHOD GetSucceededCertChain(nsTArray<RefPtr<nsIX509Cert>>& aSucceededCertChain) override; \
[[nodiscard]] NS_IMETHOD GetCipherName(nsACString& aCipherName) override; \
[[nodiscard]] NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override; \
[[nodiscard]] NS_IMETHOD GetSecretKeyLength(uint32_t *aSecretKeyLength) override; \
[[nodiscard]] NS_IMETHOD GetKeaGroupName(nsACString& aKeaGroupName) override; \
[[nodiscard]] NS_IMETHOD GetSignatureSchemeName(nsACString& aSignatureSchemeName) override; \
[[nodiscard]] NS_IMETHOD GetProtocolVersion(uint16_t *aProtocolVersion) override; \
[[nodiscard]] NS_IMETHOD GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus) override; \
[[nodiscard]] NS_IMETHOD GetIsAcceptedEch(bool *aIsAcceptedEch) override; \
[[nodiscard]] NS_IMETHOD GetIsDelegatedCredential(bool *aIsDelegatedCredential) override; \
[[nodiscard]] NS_IMETHOD GetOverridableErrorCategory(nsITransportSecurityInfo::OverridableErrorCategory *aOverridableErrorCategory) override; \
[[nodiscard]] NS_IMETHOD GetMadeOCSPRequests(bool *aMadeOCSPRequests) override; \
[[nodiscard]] NS_IMETHOD GetUsedPrivateDNS(bool *aUsedPrivateDNS) override; \
[[nodiscard]] NS_IMETHOD GetIsExtendedValidation(bool *aIsExtendedValidation) override; \
NS_IMETHOD_(void) SerializeToIPC(IPC::MessageWriter * aWriter) override; \
[[nodiscard]] NS_IMETHOD ToString(nsACString& _retval) override; \
NS_IMETHOD GetNegotiatedNPN(nsACString& aNegotiatedNPN) override; \
NS_IMETHOD GetResumed(bool *aResumed) override; \
NS_IMETHOD GetIsBuiltCertChainRootBuiltInRoot(bool *aIsBuiltCertChainRootBuiltInRoot) override; \
NS_IMETHOD GetPeerId(nsACString& aPeerId) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSITRANSPORTSECURITYINFO \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_securityState)\
nsresult GetSecurityState(uint32_t *aSecurityState); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_errorCode)\
nsresult GetErrorCode(int32_t *aErrorCode); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_errorCodeString)\
nsresult GetErrorCodeString(nsAString& aErrorCodeString); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_handshakeCertificates)\
nsresult GetHandshakeCertificates(nsTArray<RefPtr<nsIX509Cert>>& aHandshakeCertificates); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_serverCert)\
nsresult GetServerCert(nsIX509Cert **aServerCert); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_succeededCertChain)\
nsresult GetSucceededCertChain(nsTArray<RefPtr<nsIX509Cert>>& aSucceededCertChain); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_cipherName)\
[[nodiscard]] nsresult GetCipherName(nsACString& aCipherName); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_keyLength)\
[[nodiscard]] nsresult GetKeyLength(uint32_t *aKeyLength); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_secretKeyLength)\
[[nodiscard]] nsresult GetSecretKeyLength(uint32_t *aSecretKeyLength); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_keaGroupName)\
[[nodiscard]] nsresult GetKeaGroupName(nsACString& aKeaGroupName); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_signatureSchemeName)\
[[nodiscard]] nsresult GetSignatureSchemeName(nsACString& aSignatureSchemeName); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_protocolVersion)\
[[nodiscard]] nsresult GetProtocolVersion(uint16_t *aProtocolVersion); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_certificateTransparencyStatus)\
[[nodiscard]] nsresult GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_isAcceptedEch)\
[[nodiscard]] nsresult GetIsAcceptedEch(bool *aIsAcceptedEch); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_isDelegatedCredential)\
[[nodiscard]] nsresult GetIsDelegatedCredential(bool *aIsDelegatedCredential); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_overridableErrorCategory)\
[[nodiscard]] nsresult GetOverridableErrorCategory(nsITransportSecurityInfo::OverridableErrorCategory *aOverridableErrorCategory); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_madeOCSPRequests)\
[[nodiscard]] nsresult GetMadeOCSPRequests(bool *aMadeOCSPRequests); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_usedPrivateDNS)\
[[nodiscard]] nsresult GetUsedPrivateDNS(bool *aUsedPrivateDNS); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_isExtendedValidation)\
[[nodiscard]] nsresult GetIsExtendedValidation(bool *aIsExtendedValidation); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITransportSecurityInfo_SerializeToIPC)\
nsresult_(void) SerializeToIPC(IPC::MessageWriter * aWriter); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsITransportSecurityInfo_toString)\
[[nodiscard]] nsresult ToString(nsACString& _retval); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_negotiatedNPN)\
nsresult GetNegotiatedNPN(nsACString& aNegotiatedNPN); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_resumed)\
nsresult GetResumed(bool *aResumed); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_isBuiltCertChainRootBuiltInRoot)\
nsresult GetIsBuiltCertChainRootBuiltInRoot(bool *aIsBuiltCertChainRootBuiltInRoot); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsITransportSecurityInfo_peerId)\
nsresult GetPeerId(nsACString& aPeerId);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITRANSPORTSECURITYINFO(_to) \
NS_IMETHOD GetSecurityState(uint32_t *aSecurityState) override { return _to GetSecurityState(aSecurityState); } \
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return _to GetErrorCode(aErrorCode); } \
NS_IMETHOD GetErrorCodeString(nsAString& aErrorCodeString) override { return _to GetErrorCodeString(aErrorCodeString); } \
NS_IMETHOD GetHandshakeCertificates(nsTArray<RefPtr<nsIX509Cert>>& aHandshakeCertificates) override { return _to GetHandshakeCertificates(aHandshakeCertificates); } \
NS_IMETHOD GetServerCert(nsIX509Cert **aServerCert) override { return _to GetServerCert(aServerCert); } \
NS_IMETHOD GetSucceededCertChain(nsTArray<RefPtr<nsIX509Cert>>& aSucceededCertChain) override { return _to GetSucceededCertChain(aSucceededCertChain); } \
[[nodiscard]] NS_IMETHOD GetCipherName(nsACString& aCipherName) override { return _to GetCipherName(aCipherName); } \
[[nodiscard]] NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override { return _to GetKeyLength(aKeyLength); } \
[[nodiscard]] NS_IMETHOD GetSecretKeyLength(uint32_t *aSecretKeyLength) override { return _to GetSecretKeyLength(aSecretKeyLength); } \
[[nodiscard]] NS_IMETHOD GetKeaGroupName(nsACString& aKeaGroupName) override { return _to GetKeaGroupName(aKeaGroupName); } \
[[nodiscard]] NS_IMETHOD GetSignatureSchemeName(nsACString& aSignatureSchemeName) override { return _to GetSignatureSchemeName(aSignatureSchemeName); } \
[[nodiscard]] NS_IMETHOD GetProtocolVersion(uint16_t *aProtocolVersion) override { return _to GetProtocolVersion(aProtocolVersion); } \
[[nodiscard]] NS_IMETHOD GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus) override { return _to GetCertificateTransparencyStatus(aCertificateTransparencyStatus); } \
[[nodiscard]] NS_IMETHOD GetIsAcceptedEch(bool *aIsAcceptedEch) override { return _to GetIsAcceptedEch(aIsAcceptedEch); } \
[[nodiscard]] NS_IMETHOD GetIsDelegatedCredential(bool *aIsDelegatedCredential) override { return _to GetIsDelegatedCredential(aIsDelegatedCredential); } \
[[nodiscard]] NS_IMETHOD GetOverridableErrorCategory(nsITransportSecurityInfo::OverridableErrorCategory *aOverridableErrorCategory) override { return _to GetOverridableErrorCategory(aOverridableErrorCategory); } \
[[nodiscard]] NS_IMETHOD GetMadeOCSPRequests(bool *aMadeOCSPRequests) override { return _to GetMadeOCSPRequests(aMadeOCSPRequests); } \
[[nodiscard]] NS_IMETHOD GetUsedPrivateDNS(bool *aUsedPrivateDNS) override { return _to GetUsedPrivateDNS(aUsedPrivateDNS); } \
[[nodiscard]] NS_IMETHOD GetIsExtendedValidation(bool *aIsExtendedValidation) override { return _to GetIsExtendedValidation(aIsExtendedValidation); } \
NS_IMETHOD_(void) SerializeToIPC(IPC::MessageWriter * aWriter) override { return _to SerializeToIPC(aWriter); } \
[[nodiscard]] NS_IMETHOD ToString(nsACString& _retval) override { return _to ToString(_retval); } \
NS_IMETHOD GetNegotiatedNPN(nsACString& aNegotiatedNPN) override { return _to GetNegotiatedNPN(aNegotiatedNPN); } \
NS_IMETHOD GetResumed(bool *aResumed) override { return _to GetResumed(aResumed); } \
NS_IMETHOD GetIsBuiltCertChainRootBuiltInRoot(bool *aIsBuiltCertChainRootBuiltInRoot) override { return _to GetIsBuiltCertChainRootBuiltInRoot(aIsBuiltCertChainRootBuiltInRoot); } \
NS_IMETHOD GetPeerId(nsACString& aPeerId) override { return _to GetPeerId(aPeerId); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITRANSPORTSECURITYINFO(_to) \
NS_IMETHOD GetSecurityState(uint32_t *aSecurityState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityState(aSecurityState); } \
NS_IMETHOD GetErrorCode(int32_t *aErrorCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorCode(aErrorCode); } \
NS_IMETHOD GetErrorCodeString(nsAString& aErrorCodeString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorCodeString(aErrorCodeString); } \
NS_IMETHOD GetHandshakeCertificates(nsTArray<RefPtr<nsIX509Cert>>& aHandshakeCertificates) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHandshakeCertificates(aHandshakeCertificates); } \
NS_IMETHOD GetServerCert(nsIX509Cert **aServerCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerCert(aServerCert); } \
NS_IMETHOD GetSucceededCertChain(nsTArray<RefPtr<nsIX509Cert>>& aSucceededCertChain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSucceededCertChain(aSucceededCertChain); } \
[[nodiscard]] NS_IMETHOD GetCipherName(nsACString& aCipherName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCipherName(aCipherName); } \
[[nodiscard]] NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyLength(aKeyLength); } \
[[nodiscard]] NS_IMETHOD GetSecretKeyLength(uint32_t *aSecretKeyLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecretKeyLength(aSecretKeyLength); } \
[[nodiscard]] NS_IMETHOD GetKeaGroupName(nsACString& aKeaGroupName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeaGroupName(aKeaGroupName); } \
[[nodiscard]] NS_IMETHOD GetSignatureSchemeName(nsACString& aSignatureSchemeName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSignatureSchemeName(aSignatureSchemeName); } \
[[nodiscard]] NS_IMETHOD GetProtocolVersion(uint16_t *aProtocolVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocolVersion(aProtocolVersion); } \
[[nodiscard]] NS_IMETHOD GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertificateTransparencyStatus(aCertificateTransparencyStatus); } \
[[nodiscard]] NS_IMETHOD GetIsAcceptedEch(bool *aIsAcceptedEch) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAcceptedEch(aIsAcceptedEch); } \
[[nodiscard]] NS_IMETHOD GetIsDelegatedCredential(bool *aIsDelegatedCredential) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDelegatedCredential(aIsDelegatedCredential); } \
[[nodiscard]] NS_IMETHOD GetOverridableErrorCategory(nsITransportSecurityInfo::OverridableErrorCategory *aOverridableErrorCategory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOverridableErrorCategory(aOverridableErrorCategory); } \
[[nodiscard]] NS_IMETHOD GetMadeOCSPRequests(bool *aMadeOCSPRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMadeOCSPRequests(aMadeOCSPRequests); } \
[[nodiscard]] NS_IMETHOD GetUsedPrivateDNS(bool *aUsedPrivateDNS) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsedPrivateDNS(aUsedPrivateDNS); } \
[[nodiscard]] NS_IMETHOD GetIsExtendedValidation(bool *aIsExtendedValidation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsExtendedValidation(aIsExtendedValidation); } \
NS_IMETHOD_(void) SerializeToIPC(IPC::MessageWriter * aWriter) override; \
[[nodiscard]] NS_IMETHOD ToString(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } \
NS_IMETHOD GetNegotiatedNPN(nsACString& aNegotiatedNPN) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNegotiatedNPN(aNegotiatedNPN); } \
NS_IMETHOD GetResumed(bool *aResumed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResumed(aResumed); } \
NS_IMETHOD GetIsBuiltCertChainRootBuiltInRoot(bool *aIsBuiltCertChainRootBuiltInRoot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsBuiltCertChainRootBuiltInRoot(aIsBuiltCertChainRootBuiltInRoot); } \
NS_IMETHOD GetPeerId(nsACString& aPeerId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPeerId(aPeerId); }
#endif /* __gen_nsITransportSecurityInfo_h__ */