/usr/include/thunderbird-11.0.1/nsIX509Cert2.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/security/manager/ssl/public/nsIX509Cert2.idl
*/
#ifndef __gen_nsIX509Cert2_h__
#define __gen_nsIX509Cert2_h__
#ifndef __gen_nsIX509Cert_h__
#include "nsIX509Cert.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIArray; /* forward declaration */
class nsIASN1Object; /* forward declaration */
/* forward declaration */
typedef struct CERTCertificateStr CERTCertificate;
/* starting interface: nsIX509Cert2 */
#define NS_IX509CERT2_IID_STR "5b62c61c-f898-4dab-8ace-51109bb459b4"
#define NS_IX509CERT2_IID \
{0x5b62c61c, 0xf898, 0x4dab, \
{ 0x8a, 0xce, 0x51, 0x10, 0x9b, 0xb4, 0x59, 0xb4 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIX509Cert2 : public nsIX509Cert {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IX509CERT2_IID)
enum {
ANY_CERT = 65535U
};
/* readonly attribute unsigned long certType; */
NS_SCRIPTABLE NS_IMETHOD GetCertType(PRUint32 *aCertType) = 0;
/* void markForPermDeletion (); */
NS_SCRIPTABLE NS_IMETHOD MarkForPermDeletion(void) = 0;
/* [noscript,notxpcom] CERTCertificatePtr getCert (); */
NS_IMETHOD_(CERTCertificate *) GetCert(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509Cert2, NS_IX509CERT2_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIX509CERT2 \
NS_SCRIPTABLE NS_IMETHOD GetCertType(PRUint32 *aCertType); \
NS_SCRIPTABLE NS_IMETHOD MarkForPermDeletion(void); \
NS_IMETHOD_(CERTCertificate *) GetCert(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIX509CERT2(_to) \
NS_SCRIPTABLE NS_IMETHOD GetCertType(PRUint32 *aCertType) { return _to GetCertType(aCertType); } \
NS_SCRIPTABLE NS_IMETHOD MarkForPermDeletion(void) { return _to MarkForPermDeletion(); } \
NS_IMETHOD_(CERTCertificate *) GetCert(void) { return _to GetCert(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIX509CERT2(_to) \
NS_SCRIPTABLE NS_IMETHOD GetCertType(PRUint32 *aCertType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertType(aCertType); } \
NS_SCRIPTABLE NS_IMETHOD MarkForPermDeletion(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkForPermDeletion(); } \
NS_IMETHOD_(CERTCertificate *) GetCert(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCert(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsX509Cert2 : public nsIX509Cert2
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIX509CERT2
nsX509Cert2();
private:
~nsX509Cert2();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsX509Cert2, nsIX509Cert2)
nsX509Cert2::nsX509Cert2()
{
/* member initializers and constructor code */
}
nsX509Cert2::~nsX509Cert2()
{
/* destructor code */
}
/* readonly attribute unsigned long certType; */
NS_IMETHODIMP nsX509Cert2::GetCertType(PRUint32 *aCertType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void markForPermDeletion (); */
NS_IMETHODIMP nsX509Cert2::MarkForPermDeletion()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript,notxpcom] CERTCertificatePtr getCert (); */
NS_IMETHODIMP_(CERTCertificate *) nsX509Cert2::GetCert()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIX509Cert2_h__ */
|