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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsITLSServerSocket.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsITLSServerSocket_h__
       6             : #define __gen_nsITLSServerSocket_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIServerSocket_h__
      10             : #include "nsIServerSocket.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             : class nsITLSServerSecurityObserver; /* forward declaration */
      20             : 
      21             : class nsISocketTransport; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsITLSServerSocket */
      25             : #define NS_ITLSSERVERSOCKET_IID_STR "cc2c30f9-cfaa-4b8a-bd44-c24881981b74"
      26             : 
      27             : #define NS_ITLSSERVERSOCKET_IID \
      28             :   {0xcc2c30f9, 0xcfaa, 0x4b8a, \
      29             :     { 0xbd, 0x44, 0xc2, 0x48, 0x81, 0x98, 0x1b, 0x74 }}
      30             : 
      31           0 : class NS_NO_VTABLE nsITLSServerSocket : public nsIServerSocket {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITLSSERVERSOCKET_IID)
      35             : 
      36             :   /* attribute nsIX509Cert serverCert; */
      37             :   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) = 0;
      38             :   NS_IMETHOD SetServerCert(nsIX509Cert *aServerCert) = 0;
      39             : 
      40             :   /* void setSessionCache (in boolean aSessionCache); */
      41             :   NS_IMETHOD SetSessionCache(bool aSessionCache) = 0;
      42             : 
      43             :   /* void setSessionTickets (in boolean aSessionTickets); */
      44             :   NS_IMETHOD SetSessionTickets(bool aSessionTickets) = 0;
      45             : 
      46             :   enum {
      47             :     REQUEST_NEVER = 0U,
      48             :     REQUEST_FIRST_HANDSHAKE = 1U,
      49             :     REQUEST_ALWAYS = 2U,
      50             :     REQUIRE_FIRST_HANDSHAKE = 3U,
      51             :     REQUIRE_ALWAYS = 4U
      52             :   };
      53             : 
      54             :   /* void setRequestClientCertificate (in unsigned long aRequestClientCert); */
      55             :   NS_IMETHOD SetRequestClientCertificate(uint32_t aRequestClientCert) = 0;
      56             : 
      57             :   /* void setCipherSuites ([array, size_is (aLength)] in unsigned short aCipherSuites, in unsigned long aLength); */
      58             :   NS_IMETHOD SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength) = 0;
      59             : 
      60             :   /* void setVersionRange (in unsigned short aMinVersion, in unsigned short aMaxVersion); */
      61             :   NS_IMETHOD SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion) = 0;
      62             : 
      63             : };
      64             : 
      65             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITLSServerSocket, NS_ITLSSERVERSOCKET_IID)
      66             : 
      67             : /* Use this macro when declaring classes that implement this interface. */
      68             : #define NS_DECL_NSITLSSERVERSOCKET \
      69             :   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) override; \
      70             :   NS_IMETHOD SetServerCert(nsIX509Cert *aServerCert) override; \
      71             :   NS_IMETHOD SetSessionCache(bool aSessionCache) override; \
      72             :   NS_IMETHOD SetSessionTickets(bool aSessionTickets) override; \
      73             :   NS_IMETHOD SetRequestClientCertificate(uint32_t aRequestClientCert) override; \
      74             :   NS_IMETHOD SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength) override; \
      75             :   NS_IMETHOD SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion) override; 
      76             : 
      77             : /* Use this macro when declaring the members of this interface when the
      78             :    class doesn't implement the interface. This is useful for forwarding. */
      79             : #define NS_DECL_NON_VIRTUAL_NSITLSSERVERSOCKET \
      80             :   nsresult GetServerCert(nsIX509Cert * *aServerCert); \
      81             :   nsresult SetServerCert(nsIX509Cert *aServerCert); \
      82             :   nsresult SetSessionCache(bool aSessionCache); \
      83             :   nsresult SetSessionTickets(bool aSessionTickets); \
      84             :   nsresult SetRequestClientCertificate(uint32_t aRequestClientCert); \
      85             :   nsresult SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength); \
      86             :   nsresult SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion); 
      87             : 
      88             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      89             : #define NS_FORWARD_NSITLSSERVERSOCKET(_to) \
      90             :   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) override { return _to GetServerCert(aServerCert); } \
      91             :   NS_IMETHOD SetServerCert(nsIX509Cert *aServerCert) override { return _to SetServerCert(aServerCert); } \
      92             :   NS_IMETHOD SetSessionCache(bool aSessionCache) override { return _to SetSessionCache(aSessionCache); } \
      93             :   NS_IMETHOD SetSessionTickets(bool aSessionTickets) override { return _to SetSessionTickets(aSessionTickets); } \
      94             :   NS_IMETHOD SetRequestClientCertificate(uint32_t aRequestClientCert) override { return _to SetRequestClientCertificate(aRequestClientCert); } \
      95             :   NS_IMETHOD SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength) override { return _to SetCipherSuites(aCipherSuites, aLength); } \
      96             :   NS_IMETHOD SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion) override { return _to SetVersionRange(aMinVersion, aMaxVersion); } 
      97             : 
      98             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      99             : #define NS_FORWARD_SAFE_NSITLSSERVERSOCKET(_to) \
     100             :   NS_IMETHOD GetServerCert(nsIX509Cert * *aServerCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerCert(aServerCert); } \
     101             :   NS_IMETHOD SetServerCert(nsIX509Cert *aServerCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServerCert(aServerCert); } \
     102             :   NS_IMETHOD SetSessionCache(bool aSessionCache) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSessionCache(aSessionCache); } \
     103             :   NS_IMETHOD SetSessionTickets(bool aSessionTickets) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSessionTickets(aSessionTickets); } \
     104             :   NS_IMETHOD SetRequestClientCertificate(uint32_t aRequestClientCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestClientCertificate(aRequestClientCert); } \
     105             :   NS_IMETHOD SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCipherSuites(aCipherSuites, aLength); } \
     106             :   NS_IMETHOD SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVersionRange(aMinVersion, aMaxVersion); } 
     107             : 
     108             : #if 0
     109             : /* Use the code below as a template for the implementation class for this interface. */
     110             : 
     111             : /* Header file */
     112             : class nsTLSServerSocket : public nsITLSServerSocket
     113             : {
     114             : public:
     115             :   NS_DECL_ISUPPORTS
     116             :   NS_DECL_NSITLSSERVERSOCKET
     117             : 
     118             :   nsTLSServerSocket();
     119             : 
     120             : private:
     121             :   ~nsTLSServerSocket();
     122             : 
     123             : protected:
     124             :   /* additional members */
     125             : };
     126             : 
     127             : /* Implementation file */
     128             : NS_IMPL_ISUPPORTS(nsTLSServerSocket, nsITLSServerSocket)
     129             : 
     130             : nsTLSServerSocket::nsTLSServerSocket()
     131             : {
     132             :   /* member initializers and constructor code */
     133             : }
     134             : 
     135             : nsTLSServerSocket::~nsTLSServerSocket()
     136             : {
     137             :   /* destructor code */
     138             : }
     139             : 
     140             : /* attribute nsIX509Cert serverCert; */
     141             : NS_IMETHODIMP nsTLSServerSocket::GetServerCert(nsIX509Cert * *aServerCert)
     142             : {
     143             :     return NS_ERROR_NOT_IMPLEMENTED;
     144             : }
     145             : NS_IMETHODIMP nsTLSServerSocket::SetServerCert(nsIX509Cert *aServerCert)
     146             : {
     147             :     return NS_ERROR_NOT_IMPLEMENTED;
     148             : }
     149             : 
     150             : /* void setSessionCache (in boolean aSessionCache); */
     151             : NS_IMETHODIMP nsTLSServerSocket::SetSessionCache(bool aSessionCache)
     152             : {
     153             :     return NS_ERROR_NOT_IMPLEMENTED;
     154             : }
     155             : 
     156             : /* void setSessionTickets (in boolean aSessionTickets); */
     157             : NS_IMETHODIMP nsTLSServerSocket::SetSessionTickets(bool aSessionTickets)
     158             : {
     159             :     return NS_ERROR_NOT_IMPLEMENTED;
     160             : }
     161             : 
     162             : /* void setRequestClientCertificate (in unsigned long aRequestClientCert); */
     163             : NS_IMETHODIMP nsTLSServerSocket::SetRequestClientCertificate(uint32_t aRequestClientCert)
     164             : {
     165             :     return NS_ERROR_NOT_IMPLEMENTED;
     166             : }
     167             : 
     168             : /* void setCipherSuites ([array, size_is (aLength)] in unsigned short aCipherSuites, in unsigned long aLength); */
     169             : NS_IMETHODIMP nsTLSServerSocket::SetCipherSuites(uint16_t *aCipherSuites, uint32_t aLength)
     170             : {
     171             :     return NS_ERROR_NOT_IMPLEMENTED;
     172             : }
     173             : 
     174             : /* void setVersionRange (in unsigned short aMinVersion, in unsigned short aMaxVersion); */
     175             : NS_IMETHODIMP nsTLSServerSocket::SetVersionRange(uint16_t aMinVersion, uint16_t aMaxVersion)
     176             : {
     177             :     return NS_ERROR_NOT_IMPLEMENTED;
     178             : }
     179             : 
     180             : /* End of implementation class template. */
     181             : #endif
     182             : 
     183             : 
     184             : /* starting interface:    nsITLSClientStatus */
     185             : #define NS_ITLSCLIENTSTATUS_IID_STR "19668ea4-e5ad-4182-9698-7e890d48f327"
     186             : 
     187             : #define NS_ITLSCLIENTSTATUS_IID \
     188             :   {0x19668ea4, 0xe5ad, 0x4182, \
     189             :     { 0x96, 0x98, 0x7e, 0x89, 0x0d, 0x48, 0xf3, 0x27 }}
     190             : 
     191           0 : class NS_NO_VTABLE nsITLSClientStatus : public nsISupports {
     192             :  public:
     193             : 
     194             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITLSCLIENTSTATUS_IID)
     195             : 
     196             :   /* readonly attribute nsIX509Cert peerCert; */
     197             :   NS_IMETHOD GetPeerCert(nsIX509Cert * *aPeerCert) = 0;
     198             : 
     199             :   enum {
     200             :     SSL_VERSION_3 = 768,
     201             :     TLS_VERSION_1 = 769,
     202             :     TLS_VERSION_1_1 = 770,
     203             :     TLS_VERSION_1_2 = 771,
     204             :     TLS_VERSION_1_3 = 772,
     205             :     TLS_VERSION_UNKNOWN = -1
     206             :   };
     207             : 
     208             :   /* readonly attribute short tlsVersionUsed; */
     209             :   NS_IMETHOD GetTlsVersionUsed(int16_t *aTlsVersionUsed) = 0;
     210             : 
     211             :   /* readonly attribute ACString cipherName; */
     212             :   NS_IMETHOD GetCipherName(nsACString & aCipherName) = 0;
     213             : 
     214             :   /* readonly attribute unsigned long keyLength; */
     215             :   NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) = 0;
     216             : 
     217             :   /* readonly attribute unsigned long macLength; */
     218             :   NS_IMETHOD GetMacLength(uint32_t *aMacLength) = 0;
     219             : 
     220             : };
     221             : 
     222             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITLSClientStatus, NS_ITLSCLIENTSTATUS_IID)
     223             : 
     224             : /* Use this macro when declaring classes that implement this interface. */
     225             : #define NS_DECL_NSITLSCLIENTSTATUS \
     226             :   NS_IMETHOD GetPeerCert(nsIX509Cert * *aPeerCert) override; \
     227             :   NS_IMETHOD GetTlsVersionUsed(int16_t *aTlsVersionUsed) override; \
     228             :   NS_IMETHOD GetCipherName(nsACString & aCipherName) override; \
     229             :   NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override; \
     230             :   NS_IMETHOD GetMacLength(uint32_t *aMacLength) override; 
     231             : 
     232             : /* Use this macro when declaring the members of this interface when the
     233             :    class doesn't implement the interface. This is useful for forwarding. */
     234             : #define NS_DECL_NON_VIRTUAL_NSITLSCLIENTSTATUS \
     235             :   nsresult GetPeerCert(nsIX509Cert * *aPeerCert); \
     236             :   nsresult GetTlsVersionUsed(int16_t *aTlsVersionUsed); \
     237             :   nsresult GetCipherName(nsACString & aCipherName); \
     238             :   nsresult GetKeyLength(uint32_t *aKeyLength); \
     239             :   nsresult GetMacLength(uint32_t *aMacLength); 
     240             : 
     241             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     242             : #define NS_FORWARD_NSITLSCLIENTSTATUS(_to) \
     243             :   NS_IMETHOD GetPeerCert(nsIX509Cert * *aPeerCert) override { return _to GetPeerCert(aPeerCert); } \
     244             :   NS_IMETHOD GetTlsVersionUsed(int16_t *aTlsVersionUsed) override { return _to GetTlsVersionUsed(aTlsVersionUsed); } \
     245             :   NS_IMETHOD GetCipherName(nsACString & aCipherName) override { return _to GetCipherName(aCipherName); } \
     246             :   NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override { return _to GetKeyLength(aKeyLength); } \
     247             :   NS_IMETHOD GetMacLength(uint32_t *aMacLength) override { return _to GetMacLength(aMacLength); } 
     248             : 
     249             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     250             : #define NS_FORWARD_SAFE_NSITLSCLIENTSTATUS(_to) \
     251             :   NS_IMETHOD GetPeerCert(nsIX509Cert * *aPeerCert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPeerCert(aPeerCert); } \
     252             :   NS_IMETHOD GetTlsVersionUsed(int16_t *aTlsVersionUsed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTlsVersionUsed(aTlsVersionUsed); } \
     253             :   NS_IMETHOD GetCipherName(nsACString & aCipherName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCipherName(aCipherName); } \
     254             :   NS_IMETHOD GetKeyLength(uint32_t *aKeyLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyLength(aKeyLength); } \
     255             :   NS_IMETHOD GetMacLength(uint32_t *aMacLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMacLength(aMacLength); } 
     256             : 
     257             : #if 0
     258             : /* Use the code below as a template for the implementation class for this interface. */
     259             : 
     260             : /* Header file */
     261             : class nsTLSClientStatus : public nsITLSClientStatus
     262             : {
     263             : public:
     264             :   NS_DECL_ISUPPORTS
     265             :   NS_DECL_NSITLSCLIENTSTATUS
     266             : 
     267             :   nsTLSClientStatus();
     268             : 
     269             : private:
     270             :   ~nsTLSClientStatus();
     271             : 
     272             : protected:
     273             :   /* additional members */
     274             : };
     275             : 
     276             : /* Implementation file */
     277             : NS_IMPL_ISUPPORTS(nsTLSClientStatus, nsITLSClientStatus)
     278             : 
     279             : nsTLSClientStatus::nsTLSClientStatus()
     280             : {
     281             :   /* member initializers and constructor code */
     282             : }
     283             : 
     284             : nsTLSClientStatus::~nsTLSClientStatus()
     285             : {
     286             :   /* destructor code */
     287             : }
     288             : 
     289             : /* readonly attribute nsIX509Cert peerCert; */
     290             : NS_IMETHODIMP nsTLSClientStatus::GetPeerCert(nsIX509Cert * *aPeerCert)
     291             : {
     292             :     return NS_ERROR_NOT_IMPLEMENTED;
     293             : }
     294             : 
     295             : /* readonly attribute short tlsVersionUsed; */
     296             : NS_IMETHODIMP nsTLSClientStatus::GetTlsVersionUsed(int16_t *aTlsVersionUsed)
     297             : {
     298             :     return NS_ERROR_NOT_IMPLEMENTED;
     299             : }
     300             : 
     301             : /* readonly attribute ACString cipherName; */
     302             : NS_IMETHODIMP nsTLSClientStatus::GetCipherName(nsACString & aCipherName)
     303             : {
     304             :     return NS_ERROR_NOT_IMPLEMENTED;
     305             : }
     306             : 
     307             : /* readonly attribute unsigned long keyLength; */
     308             : NS_IMETHODIMP nsTLSClientStatus::GetKeyLength(uint32_t *aKeyLength)
     309             : {
     310             :     return NS_ERROR_NOT_IMPLEMENTED;
     311             : }
     312             : 
     313             : /* readonly attribute unsigned long macLength; */
     314             : NS_IMETHODIMP nsTLSClientStatus::GetMacLength(uint32_t *aMacLength)
     315             : {
     316             :     return NS_ERROR_NOT_IMPLEMENTED;
     317             : }
     318             : 
     319             : /* End of implementation class template. */
     320             : #endif
     321             : 
     322             : 
     323             : /* starting interface:    nsITLSServerConnectionInfo */
     324             : #define NS_ITLSSERVERCONNECTIONINFO_IID_STR "8a93f5d5-eddd-4c62-a4bd-bfd297653184"
     325             : 
     326             : #define NS_ITLSSERVERCONNECTIONINFO_IID \
     327             :   {0x8a93f5d5, 0xeddd, 0x4c62, \
     328             :     { 0xa4, 0xbd, 0xbf, 0xd2, 0x97, 0x65, 0x31, 0x84 }}
     329             : 
     330           0 : class NS_NO_VTABLE nsITLSServerConnectionInfo : public nsISupports {
     331             :  public:
     332             : 
     333             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITLSSERVERCONNECTIONINFO_IID)
     334             : 
     335             :   /* void setSecurityObserver (in nsITLSServerSecurityObserver observer); */
     336             :   NS_IMETHOD SetSecurityObserver(nsITLSServerSecurityObserver *observer) = 0;
     337             : 
     338             :   /* readonly attribute nsITLSServerSocket serverSocket; */
     339             :   NS_IMETHOD GetServerSocket(nsITLSServerSocket * *aServerSocket) = 0;
     340             : 
     341             :   /* readonly attribute nsITLSClientStatus status; */
     342             :   NS_IMETHOD GetStatus(nsITLSClientStatus * *aStatus) = 0;
     343             : 
     344             : };
     345             : 
     346             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITLSServerConnectionInfo, NS_ITLSSERVERCONNECTIONINFO_IID)
     347             : 
     348             : /* Use this macro when declaring classes that implement this interface. */
     349             : #define NS_DECL_NSITLSSERVERCONNECTIONINFO \
     350             :   NS_IMETHOD SetSecurityObserver(nsITLSServerSecurityObserver *observer) override; \
     351             :   NS_IMETHOD GetServerSocket(nsITLSServerSocket * *aServerSocket) override; \
     352             :   NS_IMETHOD GetStatus(nsITLSClientStatus * *aStatus) override; 
     353             : 
     354             : /* Use this macro when declaring the members of this interface when the
     355             :    class doesn't implement the interface. This is useful for forwarding. */
     356             : #define NS_DECL_NON_VIRTUAL_NSITLSSERVERCONNECTIONINFO \
     357             :   nsresult SetSecurityObserver(nsITLSServerSecurityObserver *observer); \
     358             :   nsresult GetServerSocket(nsITLSServerSocket * *aServerSocket); \
     359             :   nsresult GetStatus(nsITLSClientStatus * *aStatus); 
     360             : 
     361             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     362             : #define NS_FORWARD_NSITLSSERVERCONNECTIONINFO(_to) \
     363             :   NS_IMETHOD SetSecurityObserver(nsITLSServerSecurityObserver *observer) override { return _to SetSecurityObserver(observer); } \
     364             :   NS_IMETHOD GetServerSocket(nsITLSServerSocket * *aServerSocket) override { return _to GetServerSocket(aServerSocket); } \
     365             :   NS_IMETHOD GetStatus(nsITLSClientStatus * *aStatus) override { return _to GetStatus(aStatus); } 
     366             : 
     367             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     368             : #define NS_FORWARD_SAFE_NSITLSSERVERCONNECTIONINFO(_to) \
     369             :   NS_IMETHOD SetSecurityObserver(nsITLSServerSecurityObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityObserver(observer); } \
     370             :   NS_IMETHOD GetServerSocket(nsITLSServerSocket * *aServerSocket) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerSocket(aServerSocket); } \
     371             :   NS_IMETHOD GetStatus(nsITLSClientStatus * *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } 
     372             : 
     373             : #if 0
     374             : /* Use the code below as a template for the implementation class for this interface. */
     375             : 
     376             : /* Header file */
     377             : class nsTLSServerConnectionInfo : public nsITLSServerConnectionInfo
     378             : {
     379             : public:
     380             :   NS_DECL_ISUPPORTS
     381             :   NS_DECL_NSITLSSERVERCONNECTIONINFO
     382             : 
     383             :   nsTLSServerConnectionInfo();
     384             : 
     385             : private:
     386             :   ~nsTLSServerConnectionInfo();
     387             : 
     388             : protected:
     389             :   /* additional members */
     390             : };
     391             : 
     392             : /* Implementation file */
     393             : NS_IMPL_ISUPPORTS(nsTLSServerConnectionInfo, nsITLSServerConnectionInfo)
     394             : 
     395             : nsTLSServerConnectionInfo::nsTLSServerConnectionInfo()
     396             : {
     397             :   /* member initializers and constructor code */
     398             : }
     399             : 
     400             : nsTLSServerConnectionInfo::~nsTLSServerConnectionInfo()
     401             : {
     402             :   /* destructor code */
     403             : }
     404             : 
     405             : /* void setSecurityObserver (in nsITLSServerSecurityObserver observer); */
     406             : NS_IMETHODIMP nsTLSServerConnectionInfo::SetSecurityObserver(nsITLSServerSecurityObserver *observer)
     407             : {
     408             :     return NS_ERROR_NOT_IMPLEMENTED;
     409             : }
     410             : 
     411             : /* readonly attribute nsITLSServerSocket serverSocket; */
     412             : NS_IMETHODIMP nsTLSServerConnectionInfo::GetServerSocket(nsITLSServerSocket * *aServerSocket)
     413             : {
     414             :     return NS_ERROR_NOT_IMPLEMENTED;
     415             : }
     416             : 
     417             : /* readonly attribute nsITLSClientStatus status; */
     418             : NS_IMETHODIMP nsTLSServerConnectionInfo::GetStatus(nsITLSClientStatus * *aStatus)
     419             : {
     420             :     return NS_ERROR_NOT_IMPLEMENTED;
     421             : }
     422             : 
     423             : /* End of implementation class template. */
     424             : #endif
     425             : 
     426             : 
     427             : /* starting interface:    nsITLSServerSecurityObserver */
     428             : #define NS_ITLSSERVERSECURITYOBSERVER_IID_STR "1f62e1ae-e546-4a38-8917-d428472ed736"
     429             : 
     430             : #define NS_ITLSSERVERSECURITYOBSERVER_IID \
     431             :   {0x1f62e1ae, 0xe546, 0x4a38, \
     432             :     { 0x89, 0x17, 0xd4, 0x28, 0x47, 0x2e, 0xd7, 0x36 }}
     433             : 
     434           0 : class NS_NO_VTABLE nsITLSServerSecurityObserver : public nsISupports {
     435             :  public:
     436             : 
     437             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITLSSERVERSECURITYOBSERVER_IID)
     438             : 
     439             :   /* void onHandshakeDone (in nsITLSServerSocket aServer, in nsITLSClientStatus aStatus); */
     440             :   NS_IMETHOD OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus) = 0;
     441             : 
     442             : };
     443             : 
     444             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITLSServerSecurityObserver, NS_ITLSSERVERSECURITYOBSERVER_IID)
     445             : 
     446             : /* Use this macro when declaring classes that implement this interface. */
     447             : #define NS_DECL_NSITLSSERVERSECURITYOBSERVER \
     448             :   NS_IMETHOD OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus) override; 
     449             : 
     450             : /* Use this macro when declaring the members of this interface when the
     451             :    class doesn't implement the interface. This is useful for forwarding. */
     452             : #define NS_DECL_NON_VIRTUAL_NSITLSSERVERSECURITYOBSERVER \
     453             :   nsresult OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus); 
     454             : 
     455             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     456             : #define NS_FORWARD_NSITLSSERVERSECURITYOBSERVER(_to) \
     457             :   NS_IMETHOD OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus) override { return _to OnHandshakeDone(aServer, aStatus); } 
     458             : 
     459             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     460             : #define NS_FORWARD_SAFE_NSITLSSERVERSECURITYOBSERVER(_to) \
     461             :   NS_IMETHOD OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnHandshakeDone(aServer, aStatus); } 
     462             : 
     463             : #if 0
     464             : /* Use the code below as a template for the implementation class for this interface. */
     465             : 
     466             : /* Header file */
     467             : class nsTLSServerSecurityObserver : public nsITLSServerSecurityObserver
     468             : {
     469             : public:
     470             :   NS_DECL_ISUPPORTS
     471             :   NS_DECL_NSITLSSERVERSECURITYOBSERVER
     472             : 
     473             :   nsTLSServerSecurityObserver();
     474             : 
     475             : private:
     476             :   ~nsTLSServerSecurityObserver();
     477             : 
     478             : protected:
     479             :   /* additional members */
     480             : };
     481             : 
     482             : /* Implementation file */
     483             : NS_IMPL_ISUPPORTS(nsTLSServerSecurityObserver, nsITLSServerSecurityObserver)
     484             : 
     485             : nsTLSServerSecurityObserver::nsTLSServerSecurityObserver()
     486             : {
     487             :   /* member initializers and constructor code */
     488             : }
     489             : 
     490             : nsTLSServerSecurityObserver::~nsTLSServerSecurityObserver()
     491             : {
     492             :   /* destructor code */
     493             : }
     494             : 
     495             : /* void onHandshakeDone (in nsITLSServerSocket aServer, in nsITLSClientStatus aStatus); */
     496             : NS_IMETHODIMP nsTLSServerSecurityObserver::OnHandshakeDone(nsITLSServerSocket *aServer, nsITLSClientStatus *aStatus)
     497             : {
     498             :     return NS_ERROR_NOT_IMPLEMENTED;
     499             : }
     500             : 
     501             : /* End of implementation class template. */
     502             : #endif
     503             : 
     504             : 
     505             : #endif /* __gen_nsITLSServerSocket_h__ */

Generated by: LCOV version 1.13