LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsISSLStatus.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsISSLStatus.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsISSLStatus_h__
       6             : #define __gen_nsISSLStatus_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsIX509Cert; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsISSLStatus */
      21             : #define NS_ISSLSTATUS_IID_STR "fa9ba95b-ca3b-498a-b889-7c79cf28fee8"
      22             : 
      23             : #define NS_ISSLSTATUS_IID \
      24             :   {0xfa9ba95b, 0xca3b, 0x498a, \
      25             :     { 0xb8, 0x89, 0x7c, 0x79, 0xcf, 0x28, 0xfe, 0xe8 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsISSLStatus : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISSLSTATUS_IID)
      31             : 
      32             :   /* readonly attribute nsIX509Cert serverCert; */
      33             :   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) = 0;
      34             : 
      35             :   /* [must_use] readonly attribute ACString cipherName; */
      36             :   MOZ_MUST_USE NS_IMETHOD GetCipherName(nsACString & aCipherName) = 0;
      37             : 
      38             :   /* [must_use] readonly attribute unsigned long keyLength; */
      39             :   MOZ_MUST_USE NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) = 0;
      40             : 
      41             :   /* [must_use] readonly attribute unsigned long secretKeyLength; */
      42             :   MOZ_MUST_USE NS_IMETHOD GetSecretKeyLength(uint32_t *aSecretKeyLength) = 0;
      43             : 
      44             :   enum {
      45             :     SSL_VERSION_3 = 0,
      46             :     TLS_VERSION_1 = 1,
      47             :     TLS_VERSION_1_1 = 2,
      48             :     TLS_VERSION_1_2 = 3,
      49             :     TLS_VERSION_1_3 = 4
      50             :   };
      51             : 
      52             :   /* [must_use] readonly attribute unsigned short protocolVersion; */
      53             :   MOZ_MUST_USE NS_IMETHOD GetProtocolVersion(uint16_t *aProtocolVersion) = 0;
      54             : 
      55             :   enum {
      56             :     CERTIFICATE_TRANSPARENCY_NOT_APPLICABLE = 0,
      57             :     CERTIFICATE_TRANSPARENCY_POLICY_COMPLIANT = 5,
      58             :     CERTIFICATE_TRANSPARENCY_POLICY_NOT_ENOUGH_SCTS = 6,
      59             :     CERTIFICATE_TRANSPARENCY_POLICY_NOT_DIVERSE_SCTS = 7
      60             :   };
      61             : 
      62             :   /* [must_use] readonly attribute unsigned short certificateTransparencyStatus; */
      63             :   MOZ_MUST_USE NS_IMETHOD GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus) = 0;
      64             : 
      65             :   /* [must_use] readonly attribute boolean isDomainMismatch; */
      66             :   MOZ_MUST_USE NS_IMETHOD GetIsDomainMismatch(bool *aIsDomainMismatch) = 0;
      67             : 
      68             :   /* [must_use] readonly attribute boolean isNotValidAtThisTime; */
      69             :   MOZ_MUST_USE NS_IMETHOD GetIsNotValidAtThisTime(bool *aIsNotValidAtThisTime) = 0;
      70             : 
      71             :   /* [must_use] readonly attribute boolean isUntrusted; */
      72             :   MOZ_MUST_USE NS_IMETHOD GetIsUntrusted(bool *aIsUntrusted) = 0;
      73             : 
      74             :   /* [must_use] readonly attribute boolean isExtendedValidation; */
      75             :   MOZ_MUST_USE NS_IMETHOD GetIsExtendedValidation(bool *aIsExtendedValidation) = 0;
      76             : 
      77             : };
      78             : 
      79             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISSLStatus, NS_ISSLSTATUS_IID)
      80             : 
      81             : /* Use this macro when declaring classes that implement this interface. */
      82             : #define NS_DECL_NSISSLSTATUS \
      83             :   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) override; \
      84             :   MOZ_MUST_USE NS_IMETHOD GetCipherName(nsACString & aCipherName) override; \
      85             :   MOZ_MUST_USE NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override; \
      86             :   MOZ_MUST_USE NS_IMETHOD GetSecretKeyLength(uint32_t *aSecretKeyLength) override; \
      87             :   MOZ_MUST_USE NS_IMETHOD GetProtocolVersion(uint16_t *aProtocolVersion) override; \
      88             :   MOZ_MUST_USE NS_IMETHOD GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus) override; \
      89             :   MOZ_MUST_USE NS_IMETHOD GetIsDomainMismatch(bool *aIsDomainMismatch) override; \
      90             :   MOZ_MUST_USE NS_IMETHOD GetIsNotValidAtThisTime(bool *aIsNotValidAtThisTime) override; \
      91             :   MOZ_MUST_USE NS_IMETHOD GetIsUntrusted(bool *aIsUntrusted) override; \
      92             :   MOZ_MUST_USE NS_IMETHOD GetIsExtendedValidation(bool *aIsExtendedValidation) override; 
      93             : 
      94             : /* Use this macro when declaring the members of this interface when the
      95             :    class doesn't implement the interface. This is useful for forwarding. */
      96             : #define NS_DECL_NON_VIRTUAL_NSISSLSTATUS \
      97             :   nsresult GetServerCert(nsIX509Cert * *aServerCert); \
      98             :   MOZ_MUST_USE nsresult GetCipherName(nsACString & aCipherName); \
      99             :   MOZ_MUST_USE nsresult GetKeyLength(uint32_t *aKeyLength); \
     100             :   MOZ_MUST_USE nsresult GetSecretKeyLength(uint32_t *aSecretKeyLength); \
     101             :   MOZ_MUST_USE nsresult GetProtocolVersion(uint16_t *aProtocolVersion); \
     102             :   MOZ_MUST_USE nsresult GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus); \
     103             :   MOZ_MUST_USE nsresult GetIsDomainMismatch(bool *aIsDomainMismatch); \
     104             :   MOZ_MUST_USE nsresult GetIsNotValidAtThisTime(bool *aIsNotValidAtThisTime); \
     105             :   MOZ_MUST_USE nsresult GetIsUntrusted(bool *aIsUntrusted); \
     106             :   MOZ_MUST_USE nsresult GetIsExtendedValidation(bool *aIsExtendedValidation); 
     107             : 
     108             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     109             : #define NS_FORWARD_NSISSLSTATUS(_to) \
     110             :   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) override { return _to GetServerCert(aServerCert); } \
     111             :   MOZ_MUST_USE NS_IMETHOD GetCipherName(nsACString & aCipherName) override { return _to GetCipherName(aCipherName); } \
     112             :   MOZ_MUST_USE NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override { return _to GetKeyLength(aKeyLength); } \
     113             :   MOZ_MUST_USE NS_IMETHOD GetSecretKeyLength(uint32_t *aSecretKeyLength) override { return _to GetSecretKeyLength(aSecretKeyLength); } \
     114             :   MOZ_MUST_USE NS_IMETHOD GetProtocolVersion(uint16_t *aProtocolVersion) override { return _to GetProtocolVersion(aProtocolVersion); } \
     115             :   MOZ_MUST_USE NS_IMETHOD GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus) override { return _to GetCertificateTransparencyStatus(aCertificateTransparencyStatus); } \
     116             :   MOZ_MUST_USE NS_IMETHOD GetIsDomainMismatch(bool *aIsDomainMismatch) override { return _to GetIsDomainMismatch(aIsDomainMismatch); } \
     117             :   MOZ_MUST_USE NS_IMETHOD GetIsNotValidAtThisTime(bool *aIsNotValidAtThisTime) override { return _to GetIsNotValidAtThisTime(aIsNotValidAtThisTime); } \
     118             :   MOZ_MUST_USE NS_IMETHOD GetIsUntrusted(bool *aIsUntrusted) override { return _to GetIsUntrusted(aIsUntrusted); } \
     119             :   MOZ_MUST_USE NS_IMETHOD GetIsExtendedValidation(bool *aIsExtendedValidation) override { return _to GetIsExtendedValidation(aIsExtendedValidation); } 
     120             : 
     121             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     122             : #define NS_FORWARD_SAFE_NSISSLSTATUS(_to) \
     123             :   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerCert(aServerCert); } \
     124             :   MOZ_MUST_USE NS_IMETHOD GetCipherName(nsACString & aCipherName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCipherName(aCipherName); } \
     125             :   MOZ_MUST_USE NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyLength(aKeyLength); } \
     126             :   MOZ_MUST_USE NS_IMETHOD GetSecretKeyLength(uint32_t *aSecretKeyLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecretKeyLength(aSecretKeyLength); } \
     127             :   MOZ_MUST_USE NS_IMETHOD GetProtocolVersion(uint16_t *aProtocolVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocolVersion(aProtocolVersion); } \
     128             :   MOZ_MUST_USE NS_IMETHOD GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertificateTransparencyStatus(aCertificateTransparencyStatus); } \
     129             :   MOZ_MUST_USE NS_IMETHOD GetIsDomainMismatch(bool *aIsDomainMismatch) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDomainMismatch(aIsDomainMismatch); } \
     130             :   MOZ_MUST_USE NS_IMETHOD GetIsNotValidAtThisTime(bool *aIsNotValidAtThisTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsNotValidAtThisTime(aIsNotValidAtThisTime); } \
     131             :   MOZ_MUST_USE NS_IMETHOD GetIsUntrusted(bool *aIsUntrusted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsUntrusted(aIsUntrusted); } \
     132             :   MOZ_MUST_USE NS_IMETHOD GetIsExtendedValidation(bool *aIsExtendedValidation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsExtendedValidation(aIsExtendedValidation); } 
     133             : 
     134             : #if 0
     135             : /* Use the code below as a template for the implementation class for this interface. */
     136             : 
     137             : /* Header file */
     138             : class nsSSLStatus : public nsISSLStatus
     139             : {
     140             : public:
     141             :   NS_DECL_ISUPPORTS
     142             :   NS_DECL_NSISSLSTATUS
     143             : 
     144             :   nsSSLStatus();
     145             : 
     146             : private:
     147             :   ~nsSSLStatus();
     148             : 
     149             : protected:
     150             :   /* additional members */
     151             : };
     152             : 
     153             : /* Implementation file */
     154             : NS_IMPL_ISUPPORTS(nsSSLStatus, nsISSLStatus)
     155             : 
     156             : nsSSLStatus::nsSSLStatus()
     157             : {
     158             :   /* member initializers and constructor code */
     159             : }
     160             : 
     161             : nsSSLStatus::~nsSSLStatus()
     162             : {
     163             :   /* destructor code */
     164             : }
     165             : 
     166             : /* readonly attribute nsIX509Cert serverCert; */
     167             : NS_IMETHODIMP nsSSLStatus::GetServerCert(nsIX509Cert * *aServerCert)
     168             : {
     169             :     return NS_ERROR_NOT_IMPLEMENTED;
     170             : }
     171             : 
     172             : /* [must_use] readonly attribute ACString cipherName; */
     173             : MOZ_MUST_USE NS_IMETHODIMP nsSSLStatus::GetCipherName(nsACString & aCipherName)
     174             : {
     175             :     return NS_ERROR_NOT_IMPLEMENTED;
     176             : }
     177             : 
     178             : /* [must_use] readonly attribute unsigned long keyLength; */
     179             : MOZ_MUST_USE NS_IMETHODIMP nsSSLStatus::GetKeyLength(uint32_t *aKeyLength)
     180             : {
     181             :     return NS_ERROR_NOT_IMPLEMENTED;
     182             : }
     183             : 
     184             : /* [must_use] readonly attribute unsigned long secretKeyLength; */
     185             : MOZ_MUST_USE NS_IMETHODIMP nsSSLStatus::GetSecretKeyLength(uint32_t *aSecretKeyLength)
     186             : {
     187             :     return NS_ERROR_NOT_IMPLEMENTED;
     188             : }
     189             : 
     190             : /* [must_use] readonly attribute unsigned short protocolVersion; */
     191             : MOZ_MUST_USE NS_IMETHODIMP nsSSLStatus::GetProtocolVersion(uint16_t *aProtocolVersion)
     192             : {
     193             :     return NS_ERROR_NOT_IMPLEMENTED;
     194             : }
     195             : 
     196             : /* [must_use] readonly attribute unsigned short certificateTransparencyStatus; */
     197             : MOZ_MUST_USE NS_IMETHODIMP nsSSLStatus::GetCertificateTransparencyStatus(uint16_t *aCertificateTransparencyStatus)
     198             : {
     199             :     return NS_ERROR_NOT_IMPLEMENTED;
     200             : }
     201             : 
     202             : /* [must_use] readonly attribute boolean isDomainMismatch; */
     203             : MOZ_MUST_USE NS_IMETHODIMP nsSSLStatus::GetIsDomainMismatch(bool *aIsDomainMismatch)
     204             : {
     205             :     return NS_ERROR_NOT_IMPLEMENTED;
     206             : }
     207             : 
     208             : /* [must_use] readonly attribute boolean isNotValidAtThisTime; */
     209             : MOZ_MUST_USE NS_IMETHODIMP nsSSLStatus::GetIsNotValidAtThisTime(bool *aIsNotValidAtThisTime)
     210             : {
     211             :     return NS_ERROR_NOT_IMPLEMENTED;
     212             : }
     213             : 
     214             : /* [must_use] readonly attribute boolean isUntrusted; */
     215             : MOZ_MUST_USE NS_IMETHODIMP nsSSLStatus::GetIsUntrusted(bool *aIsUntrusted)
     216             : {
     217             :     return NS_ERROR_NOT_IMPLEMENTED;
     218             : }
     219             : 
     220             : /* [must_use] readonly attribute boolean isExtendedValidation; */
     221             : MOZ_MUST_USE NS_IMETHODIMP nsSSLStatus::GetIsExtendedValidation(bool *aIsExtendedValidation)
     222             : {
     223             :     return NS_ERROR_NOT_IMPLEMENTED;
     224             : }
     225             : 
     226             : /* End of implementation class template. */
     227             : #endif
     228             : 
     229             : 
     230             : #endif /* __gen_nsISSLStatus_h__ */

Generated by: LCOV version 1.13