LCOV - app.info - objdir/dist/include/nsIX509Cert3.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIX509Cert3.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 2 | 1 | 50.0 %
| Date: | 2012-04-21 | Functions: | 2 | 1 | 50.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/security/manager/ssl/public/nsIX509Cert3.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIX509Cert3_h__
           6                 : #define __gen_nsIX509Cert3_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsIX509Cert2_h__
          10                 : #include "nsIX509Cert2.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 nsICertVerificationListener; /* forward declaration */
          18                 :
          19                 :
          20                 : /* starting interface:    nsIX509Cert3 */
          21                 : #define NS_IX509CERT3_IID_STR "399004d8-b8c7-4eb9-8362-d99f4c0161fd"
          22                 :
          23                 : #define NS_IX509CERT3_IID \
          24                 :   {0x399004d8, 0xb8c7, 0x4eb9, \
          25                 :     { 0x83, 0x62, 0xd9, 0x9f, 0x4c, 0x01, 0x61, 0xfd }}
          26                 :
          27             176 : class NS_NO_VTABLE NS_SCRIPTABLE nsIX509Cert3 : public nsIX509Cert2 {
          28                 :  public:
          29                 :
          30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IX509CERT3_IID)
          31                 :
          32                 :   enum {
          33                 :     CMS_CHAIN_MODE_CertOnly = 1U,
          34                 :     CMS_CHAIN_MODE_CertChain = 2U,
          35                 :     CMS_CHAIN_MODE_CertChainWithRoot = 3U
          36                 :   };
          37                 :
          38                 :   /* void requestUsagesArrayAsync (in nsICertVerificationListener cvl); */
          39                 :   NS_SCRIPTABLE NS_IMETHOD RequestUsagesArrayAsync(nsICertVerificationListener *cvl) = 0;
          40                 :
          41                 :   /* void exportAsCMS (in unsigned long chainMode, out unsigned long length, [array, size_is (length), retval] out octet data); */
          42                 :   NS_SCRIPTABLE NS_IMETHOD ExportAsCMS(PRUint32 chainMode, PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM) = 0;
          43                 :
          44                 :   /* readonly attribute boolean isSelfSigned; */
          45                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSelfSigned(bool *aIsSelfSigned) = 0;
          46                 :
          47                 :   /* void getAllTokenNames (out unsigned long length, [array, size_is (length), retval] out wstring tokenNames); */
          48                 :   NS_SCRIPTABLE NS_IMETHOD GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM) = 0;
          49                 :
          50                 : };
          51                 :
          52                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509Cert3, NS_IX509CERT3_IID)
          53                 :
          54                 : /* Use this macro when declaring classes that implement this interface. */
          55                 : #define NS_DECL_NSIX509CERT3 \
          56                 :   NS_SCRIPTABLE NS_IMETHOD RequestUsagesArrayAsync(nsICertVerificationListener *cvl); \
          57                 :   NS_SCRIPTABLE NS_IMETHOD ExportAsCMS(PRUint32 chainMode, PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM); \
          58                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSelfSigned(bool *aIsSelfSigned); \
          59                 :   NS_SCRIPTABLE NS_IMETHOD GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM);
          60                 :
          61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          62                 : #define NS_FORWARD_NSIX509CERT3(_to) \
          63                 :   NS_SCRIPTABLE NS_IMETHOD RequestUsagesArrayAsync(nsICertVerificationListener *cvl) { return _to RequestUsagesArrayAsync(cvl); } \
          64                 :   NS_SCRIPTABLE NS_IMETHOD ExportAsCMS(PRUint32 chainMode, PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM) { return _to ExportAsCMS(chainMode, length, data); } \
          65                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSelfSigned(bool *aIsSelfSigned) { return _to GetIsSelfSigned(aIsSelfSigned); } \
          66                 :   NS_SCRIPTABLE NS_IMETHOD GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM) { return _to GetAllTokenNames(length, tokenNames); }
          67                 :
          68                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          69                 : #define NS_FORWARD_SAFE_NSIX509CERT3(_to) \
          70                 :   NS_SCRIPTABLE NS_IMETHOD RequestUsagesArrayAsync(nsICertVerificationListener *cvl) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestUsagesArrayAsync(cvl); } \
          71                 :   NS_SCRIPTABLE NS_IMETHOD ExportAsCMS(PRUint32 chainMode, PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExportAsCMS(chainMode, length, data); } \
          72                 :   NS_SCRIPTABLE NS_IMETHOD GetIsSelfSigned(bool *aIsSelfSigned) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSelfSigned(aIsSelfSigned); } \
          73                 :   NS_SCRIPTABLE NS_IMETHOD GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllTokenNames(length, tokenNames); }
          74                 :
          75                 : #if 0
          76                 : /* Use the code below as a template for the implementation class for this interface. */
          77                 :
          78                 : /* Header file */
          79                 : class nsX509Cert3 : public nsIX509Cert3
          80                 : {
          81                 : public:
          82                 :   NS_DECL_ISUPPORTS
          83                 :   NS_DECL_NSIX509CERT3
          84                 :
          85                 :   nsX509Cert3();
          86                 :
          87                 : private:
          88                 :   ~nsX509Cert3();
          89                 :
          90                 : protected:
          91                 :   /* additional members */
          92                 : };
          93                 :
          94                 : /* Implementation file */
          95                 : NS_IMPL_ISUPPORTS1(nsX509Cert3, nsIX509Cert3)
          96                 :
          97                 : nsX509Cert3::nsX509Cert3()
          98                 : {
          99                 :   /* member initializers and constructor code */
         100                 : }
         101                 :
         102                 : nsX509Cert3::~nsX509Cert3()
         103                 : {
         104                 :   /* destructor code */
         105                 : }
         106                 :
         107                 : /* void requestUsagesArrayAsync (in nsICertVerificationListener cvl); */
         108                 : NS_IMETHODIMP nsX509Cert3::RequestUsagesArrayAsync(nsICertVerificationListener *cvl)
         109                 : {
         110                 :     return NS_ERROR_NOT_IMPLEMENTED;
         111                 : }
         112                 :
         113                 : /* void exportAsCMS (in unsigned long chainMode, out unsigned long length, [array, size_is (length), retval] out octet data); */
         114                 : NS_IMETHODIMP nsX509Cert3::ExportAsCMS(PRUint32 chainMode, PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM)
         115                 : {
         116                 :     return NS_ERROR_NOT_IMPLEMENTED;
         117                 : }
         118                 :
         119                 : /* readonly attribute boolean isSelfSigned; */
         120                 : NS_IMETHODIMP nsX509Cert3::GetIsSelfSigned(bool *aIsSelfSigned)
         121                 : {
         122                 :     return NS_ERROR_NOT_IMPLEMENTED;
         123                 : }
         124                 :
         125                 : /* void getAllTokenNames (out unsigned long length, [array, size_is (length), retval] out wstring tokenNames); */
         126                 : NS_IMETHODIMP nsX509Cert3::GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM)
         127                 : {
         128                 :     return NS_ERROR_NOT_IMPLEMENTED;
         129                 : }
         130                 :
         131                 : /* End of implementation class template. */
         132                 : #endif
         133                 :
         134                 :
         135                 : /* starting interface:    nsICertVerificationResult */
         136                 : #define NS_ICERTVERIFICATIONRESULT_IID_STR "2fd0a785-9f2d-4327-8871-8c3e0783891d"
         137                 :
         138                 : #define NS_ICERTVERIFICATIONRESULT_IID \
         139                 :   {0x2fd0a785, 0x9f2d, 0x4327, \
         140                 :     { 0x88, 0x71, 0x8c, 0x3e, 0x07, 0x83, 0x89, 0x1d }}
         141                 :
         142               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsICertVerificationResult : public nsISupports {
         143                 :  public:
         144                 :
         145                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTVERIFICATIONRESULT_IID)
         146                 :
         147                 :   /* void getUsagesArrayResult (out PRUint32 verified, out PRUint32 count, [array, size_is (count)] out wstring usages); */
         148                 :   NS_SCRIPTABLE NS_IMETHOD GetUsagesArrayResult(PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM) = 0;
         149                 :
         150                 : };
         151                 :
         152                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICertVerificationResult, NS_ICERTVERIFICATIONRESULT_IID)
         153                 :
         154                 : /* Use this macro when declaring classes that implement this interface. */
         155                 : #define NS_DECL_NSICERTVERIFICATIONRESULT \
         156                 :   NS_SCRIPTABLE NS_IMETHOD GetUsagesArrayResult(PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM);
         157                 :
         158                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         159                 : #define NS_FORWARD_NSICERTVERIFICATIONRESULT(_to) \
         160                 :   NS_SCRIPTABLE NS_IMETHOD GetUsagesArrayResult(PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM) { return _to GetUsagesArrayResult(verified, count, usages); }
         161                 :
         162                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         163                 : #define NS_FORWARD_SAFE_NSICERTVERIFICATIONRESULT(_to) \
         164                 :   NS_SCRIPTABLE NS_IMETHOD GetUsagesArrayResult(PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsagesArrayResult(verified, count, usages); }
         165                 :
         166                 : #if 0
         167                 : /* Use the code below as a template for the implementation class for this interface. */
         168                 :
         169                 : /* Header file */
         170                 : class nsCertVerificationResult : public nsICertVerificationResult
         171                 : {
         172                 : public:
         173                 :   NS_DECL_ISUPPORTS
         174                 :   NS_DECL_NSICERTVERIFICATIONRESULT
         175                 :
         176                 :   nsCertVerificationResult();
         177                 :
         178                 : private:
         179                 :   ~nsCertVerificationResult();
         180                 :
         181                 : protected:
         182                 :   /* additional members */
         183                 : };
         184                 :
         185                 : /* Implementation file */
         186                 : NS_IMPL_ISUPPORTS1(nsCertVerificationResult, nsICertVerificationResult)
         187                 :
         188                 : nsCertVerificationResult::nsCertVerificationResult()
         189                 : {
         190                 :   /* member initializers and constructor code */
         191                 : }
         192                 :
         193                 : nsCertVerificationResult::~nsCertVerificationResult()
         194                 : {
         195                 :   /* destructor code */
         196                 : }
         197                 :
         198                 : /* void getUsagesArrayResult (out PRUint32 verified, out PRUint32 count, [array, size_is (count)] out wstring usages); */
         199                 : NS_IMETHODIMP nsCertVerificationResult::GetUsagesArrayResult(PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM)
         200                 : {
         201                 :     return NS_ERROR_NOT_IMPLEMENTED;
         202                 : }
         203                 :
         204                 : /* End of implementation class template. */
         205                 : #endif
         206                 :
         207                 :
         208                 : /* starting interface:    nsICertVerificationListener */
         209                 : #define NS_ICERTVERIFICATIONLISTENER_IID_STR "6684bce9-50db-48e1-81b7-98102bf81357"
         210                 :
         211                 : #define NS_ICERTVERIFICATIONLISTENER_IID \
         212                 :   {0x6684bce9, 0x50db, 0x48e1, \
         213                 :     { 0x81, 0xb7, 0x98, 0x10, 0x2b, 0xf8, 0x13, 0x57 }}
         214                 :
         215                 : class NS_NO_VTABLE NS_SCRIPTABLE nsICertVerificationListener : public nsISupports {
         216                 :  public:
         217                 :
         218                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTVERIFICATIONLISTENER_IID)
         219                 :
         220                 :   /* void notify (in nsIX509Cert3 verifiedCert, in nsICertVerificationResult result); */
         221                 :   NS_SCRIPTABLE NS_IMETHOD Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result) = 0;
         222                 :
         223                 : };
         224                 :
         225                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICertVerificationListener, NS_ICERTVERIFICATIONLISTENER_IID)
         226                 :
         227                 : /* Use this macro when declaring classes that implement this interface. */
         228                 : #define NS_DECL_NSICERTVERIFICATIONLISTENER \
         229                 :   NS_SCRIPTABLE NS_IMETHOD Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result);
         230                 :
         231                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         232                 : #define NS_FORWARD_NSICERTVERIFICATIONLISTENER(_to) \
         233                 :   NS_SCRIPTABLE NS_IMETHOD Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result) { return _to Notify(verifiedCert, result); }
         234                 :
         235                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         236                 : #define NS_FORWARD_SAFE_NSICERTVERIFICATIONLISTENER(_to) \
         237                 :   NS_SCRIPTABLE NS_IMETHOD Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->Notify(verifiedCert, result); }
         238                 :
         239                 : #if 0
         240                 : /* Use the code below as a template for the implementation class for this interface. */
         241                 :
         242                 : /* Header file */
         243                 : class nsCertVerificationListener : public nsICertVerificationListener
         244                 : {
         245                 : public:
         246                 :   NS_DECL_ISUPPORTS
         247                 :   NS_DECL_NSICERTVERIFICATIONLISTENER
         248                 :
         249                 :   nsCertVerificationListener();
         250                 :
         251                 : private:
         252                 :   ~nsCertVerificationListener();
         253                 :
         254                 : protected:
         255                 :   /* additional members */
         256                 : };
         257                 :
         258                 : /* Implementation file */
         259                 : NS_IMPL_ISUPPORTS1(nsCertVerificationListener, nsICertVerificationListener)
         260                 :
         261                 : nsCertVerificationListener::nsCertVerificationListener()
         262                 : {
         263                 :   /* member initializers and constructor code */
         264                 : }
         265                 :
         266                 : nsCertVerificationListener::~nsCertVerificationListener()
         267                 : {
         268                 :   /* destructor code */
         269                 : }
         270                 :
         271                 : /* void notify (in nsIX509Cert3 verifiedCert, in nsICertVerificationResult result); */
         272                 : NS_IMETHODIMP nsCertVerificationListener::Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result)
         273                 : {
         274                 :     return NS_ERROR_NOT_IMPLEMENTED;
         275                 : }
         276                 :
         277                 : /* End of implementation class template. */
         278                 : #endif
         279                 :
         280                 :
         281                 : #endif /* __gen_nsIX509Cert3_h__ */

Generated by: LCOV version 1.7