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

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-rel-lnx-codecoverage/build/security/manager/ssl/public/nsIX509CertDB.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIX509CertDB_h__
           6                 : #define __gen_nsIX509CertDB_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 nsIArray; /* forward declaration */
          18                 :
          19                 : class nsIX509Cert; /* forward declaration */
          20                 :
          21                 : class nsILocalFile; /* forward declaration */
          22                 :
          23                 : class nsIInterfaceRequestor; /* forward declaration */
          24                 :
          25                 : #define NS_X509CERTDB_CONTRACTID "@mozilla.org/security/x509certdb;1"
          26                 :
          27                 : /* starting interface:    nsIX509CertDB */
          28                 : #define NS_IX509CERTDB_IID_STR "da48b3c0-1284-11d5-ac67-000064657374"
          29                 :
          30                 : #define NS_IX509CERTDB_IID \
          31                 :   {0xda48b3c0, 0x1284, 0x11d5, \
          32                 :     { 0xac, 0x67, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
          33                 :
          34               4 : class NS_NO_VTABLE NS_SCRIPTABLE nsIX509CertDB : public nsISupports {
          35                 :  public:
          36                 :
          37                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IX509CERTDB_IID)
          38                 :
          39                 :   enum {
          40                 :     UNTRUSTED = 0U,
          41                 :     TRUSTED_SSL = 1U,
          42                 :     TRUSTED_EMAIL = 2U,
          43                 :     TRUSTED_OBJSIGN = 4U
          44                 :   };
          45                 :
          46                 :   /* nsIX509Cert findCertByNickname (in nsISupports aToken, in AString aNickname); */
          47                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByNickname(nsISupports *aToken, const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM) = 0;
          48                 :
          49                 :   /* nsIX509Cert findCertByDBKey (in string aDBkey, in nsISupports aToken); */
          50                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByDBKey(const char * aDBkey, nsISupports *aToken, nsIX509Cert * *_retval NS_OUTPARAM) = 0;
          51                 :
          52                 :   /* void findCertNicknames (in nsISupports aToken, in unsigned long aType, out unsigned long count, [array, size_is (count)] out wstring certNameList); */
          53                 :   NS_SCRIPTABLE NS_IMETHOD FindCertNicknames(nsISupports *aToken, PRUint32 aType, PRUint32 *count NS_OUTPARAM, PRUnichar * **certNameList NS_OUTPARAM) = 0;
          54                 :
          55                 :   /* nsIX509Cert findEmailEncryptionCert (in AString aNickname); */
          56                 :   NS_SCRIPTABLE NS_IMETHOD FindEmailEncryptionCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM) = 0;
          57                 :
          58                 :   /* nsIX509Cert findEmailSigningCert (in AString aNickname); */
          59                 :   NS_SCRIPTABLE NS_IMETHOD FindEmailSigningCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM) = 0;
          60                 :
          61                 :   /* nsIX509Cert findCertByEmailAddress (in nsISupports aToken, in string aEmailAddress); */
          62                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByEmailAddress(nsISupports *aToken, const char * aEmailAddress, nsIX509Cert * *_retval NS_OUTPARAM) = 0;
          63                 :
          64                 :   /* void importCertificates ([array, size_is (length)] in octet data, in unsigned long length, in unsigned long type, in nsIInterfaceRequestor ctx); */
          65                 :   NS_SCRIPTABLE NS_IMETHOD ImportCertificates(PRUint8 *data, PRUint32 length, PRUint32 type, nsIInterfaceRequestor *ctx) = 0;
          66                 :
          67                 :   /* void importEmailCertificate ([array, size_is (length)] in octet data, in unsigned long length, in nsIInterfaceRequestor ctx); */
          68                 :   NS_SCRIPTABLE NS_IMETHOD ImportEmailCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx) = 0;
          69                 :
          70                 :   /* void importServerCertificate ([array, size_is (length)] in octet data, in unsigned long length, in nsIInterfaceRequestor ctx); */
          71                 :   NS_SCRIPTABLE NS_IMETHOD ImportServerCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx) = 0;
          72                 :
          73                 :   /* void importUserCertificate ([array, size_is (length)] in octet data, in unsigned long length, in nsIInterfaceRequestor ctx); */
          74                 :   NS_SCRIPTABLE NS_IMETHOD ImportUserCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx) = 0;
          75                 :
          76                 :   /* void deleteCertificate (in nsIX509Cert aCert); */
          77                 :   NS_SCRIPTABLE NS_IMETHOD DeleteCertificate(nsIX509Cert *aCert) = 0;
          78                 :
          79                 :   /* void setCertTrust (in nsIX509Cert cert, in unsigned long type, in unsigned long trust); */
          80                 :   NS_SCRIPTABLE NS_IMETHOD SetCertTrust(nsIX509Cert *cert, PRUint32 type, PRUint32 trust) = 0;
          81                 :
          82                 :   /* boolean isCertTrusted (in nsIX509Cert cert, in unsigned long certType, in unsigned long trustType); */
          83                 :   NS_SCRIPTABLE NS_IMETHOD IsCertTrusted(nsIX509Cert *cert, PRUint32 certType, PRUint32 trustType, bool *_retval NS_OUTPARAM) = 0;
          84                 :
          85                 :   /* void importCertsFromFile (in nsISupports aToken, in nsILocalFile aFile, in unsigned long aType); */
          86                 :   NS_SCRIPTABLE NS_IMETHOD ImportCertsFromFile(nsISupports *aToken, nsILocalFile *aFile, PRUint32 aType) = 0;
          87                 :
          88                 :   /* void importPKCS12File (in nsISupports aToken, in nsILocalFile aFile); */
          89                 :   NS_SCRIPTABLE NS_IMETHOD ImportPKCS12File(nsISupports *aToken, nsILocalFile *aFile) = 0;
          90                 :
          91                 :   /* void exportPKCS12File (in nsISupports aToken, in nsILocalFile aFile, in unsigned long count, [array, size_is (count)] in nsIX509Cert aCerts); */
          92                 :   NS_SCRIPTABLE NS_IMETHOD ExportPKCS12File(nsISupports *aToken, nsILocalFile *aFile, PRUint32 count, nsIX509Cert **aCerts) = 0;
          93                 :
          94                 :   /* nsIArray getOCSPResponders (); */
          95                 :   NS_SCRIPTABLE NS_IMETHOD GetOCSPResponders(nsIArray * *_retval NS_OUTPARAM) = 0;
          96                 :
          97                 :   /* readonly attribute boolean isOcspOn; */
          98                 :   NS_SCRIPTABLE NS_IMETHOD GetIsOcspOn(bool *aIsOcspOn) = 0;
          99                 :
         100                 :   /* nsIX509Cert constructX509FromBase64 (in string base64); */
         101                 :   NS_SCRIPTABLE NS_IMETHOD ConstructX509FromBase64(const char * base64, nsIX509Cert * *_retval NS_OUTPARAM) = 0;
         102                 :
         103                 : };
         104                 :
         105                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509CertDB, NS_IX509CERTDB_IID)
         106                 :
         107                 : /* Use this macro when declaring classes that implement this interface. */
         108                 : #define NS_DECL_NSIX509CERTDB \
         109                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByNickname(nsISupports *aToken, const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM); \
         110                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByDBKey(const char * aDBkey, nsISupports *aToken, nsIX509Cert * *_retval NS_OUTPARAM); \
         111                 :   NS_SCRIPTABLE NS_IMETHOD FindCertNicknames(nsISupports *aToken, PRUint32 aType, PRUint32 *count NS_OUTPARAM, PRUnichar * **certNameList NS_OUTPARAM); \
         112                 :   NS_SCRIPTABLE NS_IMETHOD FindEmailEncryptionCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM); \
         113                 :   NS_SCRIPTABLE NS_IMETHOD FindEmailSigningCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM); \
         114                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByEmailAddress(nsISupports *aToken, const char * aEmailAddress, nsIX509Cert * *_retval NS_OUTPARAM); \
         115                 :   NS_SCRIPTABLE NS_IMETHOD ImportCertificates(PRUint8 *data, PRUint32 length, PRUint32 type, nsIInterfaceRequestor *ctx); \
         116                 :   NS_SCRIPTABLE NS_IMETHOD ImportEmailCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx); \
         117                 :   NS_SCRIPTABLE NS_IMETHOD ImportServerCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx); \
         118                 :   NS_SCRIPTABLE NS_IMETHOD ImportUserCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx); \
         119                 :   NS_SCRIPTABLE NS_IMETHOD DeleteCertificate(nsIX509Cert *aCert); \
         120                 :   NS_SCRIPTABLE NS_IMETHOD SetCertTrust(nsIX509Cert *cert, PRUint32 type, PRUint32 trust); \
         121                 :   NS_SCRIPTABLE NS_IMETHOD IsCertTrusted(nsIX509Cert *cert, PRUint32 certType, PRUint32 trustType, bool *_retval NS_OUTPARAM); \
         122                 :   NS_SCRIPTABLE NS_IMETHOD ImportCertsFromFile(nsISupports *aToken, nsILocalFile *aFile, PRUint32 aType); \
         123                 :   NS_SCRIPTABLE NS_IMETHOD ImportPKCS12File(nsISupports *aToken, nsILocalFile *aFile); \
         124                 :   NS_SCRIPTABLE NS_IMETHOD ExportPKCS12File(nsISupports *aToken, nsILocalFile *aFile, PRUint32 count, nsIX509Cert **aCerts); \
         125                 :   NS_SCRIPTABLE NS_IMETHOD GetOCSPResponders(nsIArray * *_retval NS_OUTPARAM); \
         126                 :   NS_SCRIPTABLE NS_IMETHOD GetIsOcspOn(bool *aIsOcspOn); \
         127                 :   NS_SCRIPTABLE NS_IMETHOD ConstructX509FromBase64(const char * base64, nsIX509Cert * *_retval NS_OUTPARAM);
         128                 :
         129                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         130                 : #define NS_FORWARD_NSIX509CERTDB(_to) \
         131                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByNickname(nsISupports *aToken, const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM) { return _to FindCertByNickname(aToken, aNickname, _retval); } \
         132                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByDBKey(const char * aDBkey, nsISupports *aToken, nsIX509Cert * *_retval NS_OUTPARAM) { return _to FindCertByDBKey(aDBkey, aToken, _retval); } \
         133                 :   NS_SCRIPTABLE NS_IMETHOD FindCertNicknames(nsISupports *aToken, PRUint32 aType, PRUint32 *count NS_OUTPARAM, PRUnichar * **certNameList NS_OUTPARAM) { return _to FindCertNicknames(aToken, aType, count, certNameList); } \
         134                 :   NS_SCRIPTABLE NS_IMETHOD FindEmailEncryptionCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM) { return _to FindEmailEncryptionCert(aNickname, _retval); } \
         135                 :   NS_SCRIPTABLE NS_IMETHOD FindEmailSigningCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM) { return _to FindEmailSigningCert(aNickname, _retval); } \
         136                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByEmailAddress(nsISupports *aToken, const char * aEmailAddress, nsIX509Cert * *_retval NS_OUTPARAM) { return _to FindCertByEmailAddress(aToken, aEmailAddress, _retval); } \
         137                 :   NS_SCRIPTABLE NS_IMETHOD ImportCertificates(PRUint8 *data, PRUint32 length, PRUint32 type, nsIInterfaceRequestor *ctx) { return _to ImportCertificates(data, length, type, ctx); } \
         138                 :   NS_SCRIPTABLE NS_IMETHOD ImportEmailCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx) { return _to ImportEmailCertificate(data, length, ctx); } \
         139                 :   NS_SCRIPTABLE NS_IMETHOD ImportServerCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx) { return _to ImportServerCertificate(data, length, ctx); } \
         140                 :   NS_SCRIPTABLE NS_IMETHOD ImportUserCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx) { return _to ImportUserCertificate(data, length, ctx); } \
         141                 :   NS_SCRIPTABLE NS_IMETHOD DeleteCertificate(nsIX509Cert *aCert) { return _to DeleteCertificate(aCert); } \
         142                 :   NS_SCRIPTABLE NS_IMETHOD SetCertTrust(nsIX509Cert *cert, PRUint32 type, PRUint32 trust) { return _to SetCertTrust(cert, type, trust); } \
         143                 :   NS_SCRIPTABLE NS_IMETHOD IsCertTrusted(nsIX509Cert *cert, PRUint32 certType, PRUint32 trustType, bool *_retval NS_OUTPARAM) { return _to IsCertTrusted(cert, certType, trustType, _retval); } \
         144                 :   NS_SCRIPTABLE NS_IMETHOD ImportCertsFromFile(nsISupports *aToken, nsILocalFile *aFile, PRUint32 aType) { return _to ImportCertsFromFile(aToken, aFile, aType); } \
         145                 :   NS_SCRIPTABLE NS_IMETHOD ImportPKCS12File(nsISupports *aToken, nsILocalFile *aFile) { return _to ImportPKCS12File(aToken, aFile); } \
         146                 :   NS_SCRIPTABLE NS_IMETHOD ExportPKCS12File(nsISupports *aToken, nsILocalFile *aFile, PRUint32 count, nsIX509Cert **aCerts) { return _to ExportPKCS12File(aToken, aFile, count, aCerts); } \
         147                 :   NS_SCRIPTABLE NS_IMETHOD GetOCSPResponders(nsIArray * *_retval NS_OUTPARAM) { return _to GetOCSPResponders(_retval); } \
         148                 :   NS_SCRIPTABLE NS_IMETHOD GetIsOcspOn(bool *aIsOcspOn) { return _to GetIsOcspOn(aIsOcspOn); } \
         149                 :   NS_SCRIPTABLE NS_IMETHOD ConstructX509FromBase64(const char * base64, nsIX509Cert * *_retval NS_OUTPARAM) { return _to ConstructX509FromBase64(base64, _retval); }
         150                 :
         151                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         152                 : #define NS_FORWARD_SAFE_NSIX509CERTDB(_to) \
         153                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByNickname(nsISupports *aToken, const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindCertByNickname(aToken, aNickname, _retval); } \
         154                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByDBKey(const char * aDBkey, nsISupports *aToken, nsIX509Cert * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindCertByDBKey(aDBkey, aToken, _retval); } \
         155                 :   NS_SCRIPTABLE NS_IMETHOD FindCertNicknames(nsISupports *aToken, PRUint32 aType, PRUint32 *count NS_OUTPARAM, PRUnichar * **certNameList NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindCertNicknames(aToken, aType, count, certNameList); } \
         156                 :   NS_SCRIPTABLE NS_IMETHOD FindEmailEncryptionCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindEmailEncryptionCert(aNickname, _retval); } \
         157                 :   NS_SCRIPTABLE NS_IMETHOD FindEmailSigningCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindEmailSigningCert(aNickname, _retval); } \
         158                 :   NS_SCRIPTABLE NS_IMETHOD FindCertByEmailAddress(nsISupports *aToken, const char * aEmailAddress, nsIX509Cert * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindCertByEmailAddress(aToken, aEmailAddress, _retval); } \
         159                 :   NS_SCRIPTABLE NS_IMETHOD ImportCertificates(PRUint8 *data, PRUint32 length, PRUint32 type, nsIInterfaceRequestor *ctx) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportCertificates(data, length, type, ctx); } \
         160                 :   NS_SCRIPTABLE NS_IMETHOD ImportEmailCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportEmailCertificate(data, length, ctx); } \
         161                 :   NS_SCRIPTABLE NS_IMETHOD ImportServerCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportServerCertificate(data, length, ctx); } \
         162                 :   NS_SCRIPTABLE NS_IMETHOD ImportUserCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportUserCertificate(data, length, ctx); } \
         163                 :   NS_SCRIPTABLE NS_IMETHOD DeleteCertificate(nsIX509Cert *aCert) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCertificate(aCert); } \
         164                 :   NS_SCRIPTABLE NS_IMETHOD SetCertTrust(nsIX509Cert *cert, PRUint32 type, PRUint32 trust) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCertTrust(cert, type, trust); } \
         165                 :   NS_SCRIPTABLE NS_IMETHOD IsCertTrusted(nsIX509Cert *cert, PRUint32 certType, PRUint32 trustType, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCertTrusted(cert, certType, trustType, _retval); } \
         166                 :   NS_SCRIPTABLE NS_IMETHOD ImportCertsFromFile(nsISupports *aToken, nsILocalFile *aFile, PRUint32 aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportCertsFromFile(aToken, aFile, aType); } \
         167                 :   NS_SCRIPTABLE NS_IMETHOD ImportPKCS12File(nsISupports *aToken, nsILocalFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportPKCS12File(aToken, aFile); } \
         168                 :   NS_SCRIPTABLE NS_IMETHOD ExportPKCS12File(nsISupports *aToken, nsILocalFile *aFile, PRUint32 count, nsIX509Cert **aCerts) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExportPKCS12File(aToken, aFile, count, aCerts); } \
         169                 :   NS_SCRIPTABLE NS_IMETHOD GetOCSPResponders(nsIArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOCSPResponders(_retval); } \
         170                 :   NS_SCRIPTABLE NS_IMETHOD GetIsOcspOn(bool *aIsOcspOn) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsOcspOn(aIsOcspOn); } \
         171                 :   NS_SCRIPTABLE NS_IMETHOD ConstructX509FromBase64(const char * base64, nsIX509Cert * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConstructX509FromBase64(base64, _retval); }
         172                 :
         173                 : #if 0
         174                 : /* Use the code below as a template for the implementation class for this interface. */
         175                 :
         176                 : /* Header file */
         177                 : class nsX509CertDB : public nsIX509CertDB
         178                 : {
         179                 : public:
         180                 :   NS_DECL_ISUPPORTS
         181                 :   NS_DECL_NSIX509CERTDB
         182                 :
         183                 :   nsX509CertDB();
         184                 :
         185                 : private:
         186                 :   ~nsX509CertDB();
         187                 :
         188                 : protected:
         189                 :   /* additional members */
         190                 : };
         191                 :
         192                 : /* Implementation file */
         193                 : NS_IMPL_ISUPPORTS1(nsX509CertDB, nsIX509CertDB)
         194                 :
         195                 : nsX509CertDB::nsX509CertDB()
         196                 : {
         197                 :   /* member initializers and constructor code */
         198                 : }
         199                 :
         200                 : nsX509CertDB::~nsX509CertDB()
         201                 : {
         202                 :   /* destructor code */
         203                 : }
         204                 :
         205                 : /* nsIX509Cert findCertByNickname (in nsISupports aToken, in AString aNickname); */
         206                 : NS_IMETHODIMP nsX509CertDB::FindCertByNickname(nsISupports *aToken, const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM)
         207                 : {
         208                 :     return NS_ERROR_NOT_IMPLEMENTED;
         209                 : }
         210                 :
         211                 : /* nsIX509Cert findCertByDBKey (in string aDBkey, in nsISupports aToken); */
         212                 : NS_IMETHODIMP nsX509CertDB::FindCertByDBKey(const char * aDBkey, nsISupports *aToken, nsIX509Cert * *_retval NS_OUTPARAM)
         213                 : {
         214                 :     return NS_ERROR_NOT_IMPLEMENTED;
         215                 : }
         216                 :
         217                 : /* void findCertNicknames (in nsISupports aToken, in unsigned long aType, out unsigned long count, [array, size_is (count)] out wstring certNameList); */
         218                 : NS_IMETHODIMP nsX509CertDB::FindCertNicknames(nsISupports *aToken, PRUint32 aType, PRUint32 *count NS_OUTPARAM, PRUnichar * **certNameList NS_OUTPARAM)
         219                 : {
         220                 :     return NS_ERROR_NOT_IMPLEMENTED;
         221                 : }
         222                 :
         223                 : /* nsIX509Cert findEmailEncryptionCert (in AString aNickname); */
         224                 : NS_IMETHODIMP nsX509CertDB::FindEmailEncryptionCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM)
         225                 : {
         226                 :     return NS_ERROR_NOT_IMPLEMENTED;
         227                 : }
         228                 :
         229                 : /* nsIX509Cert findEmailSigningCert (in AString aNickname); */
         230                 : NS_IMETHODIMP nsX509CertDB::FindEmailSigningCert(const nsAString & aNickname, nsIX509Cert * *_retval NS_OUTPARAM)
         231                 : {
         232                 :     return NS_ERROR_NOT_IMPLEMENTED;
         233                 : }
         234                 :
         235                 : /* nsIX509Cert findCertByEmailAddress (in nsISupports aToken, in string aEmailAddress); */
         236                 : NS_IMETHODIMP nsX509CertDB::FindCertByEmailAddress(nsISupports *aToken, const char * aEmailAddress, nsIX509Cert * *_retval NS_OUTPARAM)
         237                 : {
         238                 :     return NS_ERROR_NOT_IMPLEMENTED;
         239                 : }
         240                 :
         241                 : /* void importCertificates ([array, size_is (length)] in octet data, in unsigned long length, in unsigned long type, in nsIInterfaceRequestor ctx); */
         242                 : NS_IMETHODIMP nsX509CertDB::ImportCertificates(PRUint8 *data, PRUint32 length, PRUint32 type, nsIInterfaceRequestor *ctx)
         243                 : {
         244                 :     return NS_ERROR_NOT_IMPLEMENTED;
         245                 : }
         246                 :
         247                 : /* void importEmailCertificate ([array, size_is (length)] in octet data, in unsigned long length, in nsIInterfaceRequestor ctx); */
         248                 : NS_IMETHODIMP nsX509CertDB::ImportEmailCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx)
         249                 : {
         250                 :     return NS_ERROR_NOT_IMPLEMENTED;
         251                 : }
         252                 :
         253                 : /* void importServerCertificate ([array, size_is (length)] in octet data, in unsigned long length, in nsIInterfaceRequestor ctx); */
         254                 : NS_IMETHODIMP nsX509CertDB::ImportServerCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx)
         255                 : {
         256                 :     return NS_ERROR_NOT_IMPLEMENTED;
         257                 : }
         258                 :
         259                 : /* void importUserCertificate ([array, size_is (length)] in octet data, in unsigned long length, in nsIInterfaceRequestor ctx); */
         260                 : NS_IMETHODIMP nsX509CertDB::ImportUserCertificate(PRUint8 *data, PRUint32 length, nsIInterfaceRequestor *ctx)
         261                 : {
         262                 :     return NS_ERROR_NOT_IMPLEMENTED;
         263                 : }
         264                 :
         265                 : /* void deleteCertificate (in nsIX509Cert aCert); */
         266                 : NS_IMETHODIMP nsX509CertDB::DeleteCertificate(nsIX509Cert *aCert)
         267                 : {
         268                 :     return NS_ERROR_NOT_IMPLEMENTED;
         269                 : }
         270                 :
         271                 : /* void setCertTrust (in nsIX509Cert cert, in unsigned long type, in unsigned long trust); */
         272                 : NS_IMETHODIMP nsX509CertDB::SetCertTrust(nsIX509Cert *cert, PRUint32 type, PRUint32 trust)
         273                 : {
         274                 :     return NS_ERROR_NOT_IMPLEMENTED;
         275                 : }
         276                 :
         277                 : /* boolean isCertTrusted (in nsIX509Cert cert, in unsigned long certType, in unsigned long trustType); */
         278                 : NS_IMETHODIMP nsX509CertDB::IsCertTrusted(nsIX509Cert *cert, PRUint32 certType, PRUint32 trustType, bool *_retval NS_OUTPARAM)
         279                 : {
         280                 :     return NS_ERROR_NOT_IMPLEMENTED;
         281                 : }
         282                 :
         283                 : /* void importCertsFromFile (in nsISupports aToken, in nsILocalFile aFile, in unsigned long aType); */
         284                 : NS_IMETHODIMP nsX509CertDB::ImportCertsFromFile(nsISupports *aToken, nsILocalFile *aFile, PRUint32 aType)
         285                 : {
         286                 :     return NS_ERROR_NOT_IMPLEMENTED;
         287                 : }
         288                 :
         289                 : /* void importPKCS12File (in nsISupports aToken, in nsILocalFile aFile); */
         290                 : NS_IMETHODIMP nsX509CertDB::ImportPKCS12File(nsISupports *aToken, nsILocalFile *aFile)
         291                 : {
         292                 :     return NS_ERROR_NOT_IMPLEMENTED;
         293                 : }
         294                 :
         295                 : /* void exportPKCS12File (in nsISupports aToken, in nsILocalFile aFile, in unsigned long count, [array, size_is (count)] in nsIX509Cert aCerts); */
         296                 : NS_IMETHODIMP nsX509CertDB::ExportPKCS12File(nsISupports *aToken, nsILocalFile *aFile, PRUint32 count, nsIX509Cert **aCerts)
         297                 : {
         298                 :     return NS_ERROR_NOT_IMPLEMENTED;
         299                 : }
         300                 :
         301                 : /* nsIArray getOCSPResponders (); */
         302                 : NS_IMETHODIMP nsX509CertDB::GetOCSPResponders(nsIArray * *_retval NS_OUTPARAM)
         303                 : {
         304                 :     return NS_ERROR_NOT_IMPLEMENTED;
         305                 : }
         306                 :
         307                 : /* readonly attribute boolean isOcspOn; */
         308                 : NS_IMETHODIMP nsX509CertDB::GetIsOcspOn(bool *aIsOcspOn)
         309                 : {
         310                 :     return NS_ERROR_NOT_IMPLEMENTED;
         311                 : }
         312                 :
         313                 : /* nsIX509Cert constructX509FromBase64 (in string base64); */
         314                 : NS_IMETHODIMP nsX509CertDB::ConstructX509FromBase64(const char * base64, nsIX509Cert * *_retval NS_OUTPARAM)
         315                 : {
         316                 :     return NS_ERROR_NOT_IMPLEMENTED;
         317                 : }
         318                 :
         319                 : /* End of implementation class template. */
         320                 : #endif
         321                 :
         322                 :
         323                 : #endif /* __gen_nsIX509CertDB_h__ */

Generated by: LCOV version 1.7