/usr/include/thunderbird/nsIX509CertList.h is in thunderbird-dev 1:52.8.0-1~deb8u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIX509CertList.idl
*/
#ifndef __gen_nsIX509CertList_h__
#define __gen_nsIX509CertList_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsISimpleEnumerator; /* forward declaration */
class nsIX509Cert; /* forward declaration */
typedef struct CERTCertListStr CERTCertList;
/* starting interface: nsIX509CertList */
#define NS_IX509CERTLIST_IID_STR "ae74cda5-cd2f-473f-96f5-f0b7fff62c68"
#define NS_IX509CERTLIST_IID \
{0xae74cda5, 0xcd2f, 0x473f, \
{ 0x96, 0xf5, 0xf0, 0xb7, 0xff, 0xf6, 0x2c, 0x68 }}
class NS_NO_VTABLE nsIX509CertList : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IX509CERTLIST_IID)
/* void addCert (in nsIX509Cert cert); */
NS_IMETHOD AddCert(nsIX509Cert *cert) = 0;
/* void deleteCert (in nsIX509Cert cert); */
NS_IMETHOD DeleteCert(nsIX509Cert *cert) = 0;
/* nsISimpleEnumerator getEnumerator (); */
NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *_retval) = 0;
/* [noscript,notxpcom] CERTCertListPtr getRawCertList (); */
NS_IMETHOD_(CERTCertList *) GetRawCertList(void) = 0;
/* boolean equals (in nsIX509CertList other); */
NS_IMETHOD Equals(nsIX509CertList *other, bool *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509CertList, NS_IX509CERTLIST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIX509CERTLIST \
NS_IMETHOD AddCert(nsIX509Cert *cert) override; \
NS_IMETHOD DeleteCert(nsIX509Cert *cert) override; \
NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *_retval) override; \
NS_IMETHOD_(CERTCertList *) GetRawCertList(void) override; \
NS_IMETHOD Equals(nsIX509CertList *other, bool *_retval) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIX509CERTLIST \
NS_METHOD AddCert(nsIX509Cert *cert); \
NS_METHOD DeleteCert(nsIX509Cert *cert); \
NS_METHOD GetEnumerator(nsISimpleEnumerator * *_retval); \
NS_METHOD_(CERTCertList *) GetRawCertList(void); \
NS_METHOD Equals(nsIX509CertList *other, bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIX509CERTLIST(_to) \
NS_IMETHOD AddCert(nsIX509Cert *cert) override { return _to AddCert(cert); } \
NS_IMETHOD DeleteCert(nsIX509Cert *cert) override { return _to DeleteCert(cert); } \
NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *_retval) override { return _to GetEnumerator(_retval); } \
NS_IMETHOD_(CERTCertList *) GetRawCertList(void) override { return _to GetRawCertList(); } \
NS_IMETHOD Equals(nsIX509CertList *other, bool *_retval) override { return _to Equals(other, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIX509CERTLIST(_to) \
NS_IMETHOD AddCert(nsIX509Cert *cert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCert(cert); } \
NS_IMETHOD DeleteCert(nsIX509Cert *cert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCert(cert); } \
NS_IMETHOD GetEnumerator(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnumerator(_retval); } \
NS_IMETHOD_(CERTCertList *) GetRawCertList(void) override; \
NS_IMETHOD Equals(nsIX509CertList *other, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsX509CertList : public nsIX509CertList
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIX509CERTLIST
nsX509CertList();
private:
~nsX509CertList();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsX509CertList, nsIX509CertList)
nsX509CertList::nsX509CertList()
{
/* member initializers and constructor code */
}
nsX509CertList::~nsX509CertList()
{
/* destructor code */
}
/* void addCert (in nsIX509Cert cert); */
NS_IMETHODIMP nsX509CertList::AddCert(nsIX509Cert *cert)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void deleteCert (in nsIX509Cert cert); */
NS_IMETHODIMP nsX509CertList::DeleteCert(nsIX509Cert *cert)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISimpleEnumerator getEnumerator (); */
NS_IMETHODIMP nsX509CertList::GetEnumerator(nsISimpleEnumerator * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript,notxpcom] CERTCertListPtr getRawCertList (); */
NS_IMETHODIMP_(CERTCertList *) nsX509CertList::GetRawCertList()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean equals (in nsIX509CertList other); */
NS_IMETHODIMP nsX509CertList::Equals(nsIX509CertList *other, bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NS_X509CERTLIST_CID { /* 959fb165-6517-487f-ab9b-d8913be53197 */ \
0x959fb165, \
0x6517, \
0x487f, \
{0xab, 0x9b, 0xd8, 0x91, 0x3b, 0xe5, 0x31, 0x97} \
}
#define NS_X509CERTLIST_CONTRACTID "@mozilla.org/security/x509certlist;1"
#endif /* __gen_nsIX509CertList_h__ */
|