Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsICertBlocklist.idl
3 : */
4 :
5 : #ifndef __gen_nsICertBlocklist_h__
6 : #define __gen_nsICertBlocklist_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 nsIX509Cert; /* forward declaration */
18 :
19 : #define NS_CERTBLOCKLIST_CONTRACTID "@mozilla.org/security/certblocklist;1"
20 :
21 : /* starting interface: nsICertBlocklist */
22 : #define NS_ICERTBLOCKLIST_IID_STR "e0654480-f433-11e4-b939-0800200c9a66"
23 :
24 : #define NS_ICERTBLOCKLIST_IID \
25 : {0xe0654480, 0xf433, 0x11e4, \
26 : { 0xb9, 0x39, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
27 :
28 0 : class NS_NO_VTABLE nsICertBlocklist : public nsISupports {
29 : public:
30 :
31 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTBLOCKLIST_IID)
32 :
33 : /* [must_use] void revokeCertByIssuerAndSerial (in ACString issuer, in ACString serialNumber); */
34 : MOZ_MUST_USE NS_IMETHOD RevokeCertByIssuerAndSerial(const nsACString & issuer, const nsACString & serialNumber) = 0;
35 :
36 : /* [must_use] void revokeCertBySubjectAndPubKey (in ACString subject, in ACString pubKeyHash); */
37 : MOZ_MUST_USE NS_IMETHOD RevokeCertBySubjectAndPubKey(const nsACString & subject, const nsACString & pubKeyHash) = 0;
38 :
39 : /* [must_use] void saveEntries (); */
40 : MOZ_MUST_USE NS_IMETHOD SaveEntries(void) = 0;
41 :
42 : /* [must_use] boolean isCertRevoked ([array, size_is (issuer_length), const] in octet issuer, in unsigned long issuer_length, [array, size_is (serial_length), const] in octet serial, in unsigned long serial_length, [array, size_is (subject_length), const] in octet subject, in unsigned long subject_length, [array, size_is (pubkey_length), const] in octet pubkey, in unsigned long pubkey_length); */
43 : MOZ_MUST_USE NS_IMETHOD IsCertRevoked(const uint8_t *issuer, uint32_t issuer_length, const uint8_t *serial, uint32_t serial_length, const uint8_t *subject, uint32_t subject_length, const uint8_t *pubkey, uint32_t pubkey_length, bool *_retval) = 0;
44 :
45 : /* [must_use] boolean isBlocklistFresh (); */
46 : MOZ_MUST_USE NS_IMETHOD IsBlocklistFresh(bool *_retval) = 0;
47 :
48 : };
49 :
50 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICertBlocklist, NS_ICERTBLOCKLIST_IID)
51 :
52 : /* Use this macro when declaring classes that implement this interface. */
53 : #define NS_DECL_NSICERTBLOCKLIST \
54 : MOZ_MUST_USE NS_IMETHOD RevokeCertByIssuerAndSerial(const nsACString & issuer, const nsACString & serialNumber) override; \
55 : MOZ_MUST_USE NS_IMETHOD RevokeCertBySubjectAndPubKey(const nsACString & subject, const nsACString & pubKeyHash) override; \
56 : MOZ_MUST_USE NS_IMETHOD SaveEntries(void) override; \
57 : MOZ_MUST_USE NS_IMETHOD IsCertRevoked(const uint8_t *issuer, uint32_t issuer_length, const uint8_t *serial, uint32_t serial_length, const uint8_t *subject, uint32_t subject_length, const uint8_t *pubkey, uint32_t pubkey_length, bool *_retval) override; \
58 : MOZ_MUST_USE NS_IMETHOD IsBlocklistFresh(bool *_retval) override;
59 :
60 : /* Use this macro when declaring the members of this interface when the
61 : class doesn't implement the interface. This is useful for forwarding. */
62 : #define NS_DECL_NON_VIRTUAL_NSICERTBLOCKLIST \
63 : MOZ_MUST_USE nsresult RevokeCertByIssuerAndSerial(const nsACString & issuer, const nsACString & serialNumber); \
64 : MOZ_MUST_USE nsresult RevokeCertBySubjectAndPubKey(const nsACString & subject, const nsACString & pubKeyHash); \
65 : MOZ_MUST_USE nsresult SaveEntries(void); \
66 : MOZ_MUST_USE nsresult IsCertRevoked(const uint8_t *issuer, uint32_t issuer_length, const uint8_t *serial, uint32_t serial_length, const uint8_t *subject, uint32_t subject_length, const uint8_t *pubkey, uint32_t pubkey_length, bool *_retval); \
67 : MOZ_MUST_USE nsresult IsBlocklistFresh(bool *_retval);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSICERTBLOCKLIST(_to) \
71 : MOZ_MUST_USE NS_IMETHOD RevokeCertByIssuerAndSerial(const nsACString & issuer, const nsACString & serialNumber) override { return _to RevokeCertByIssuerAndSerial(issuer, serialNumber); } \
72 : MOZ_MUST_USE NS_IMETHOD RevokeCertBySubjectAndPubKey(const nsACString & subject, const nsACString & pubKeyHash) override { return _to RevokeCertBySubjectAndPubKey(subject, pubKeyHash); } \
73 : MOZ_MUST_USE NS_IMETHOD SaveEntries(void) override { return _to SaveEntries(); } \
74 : MOZ_MUST_USE NS_IMETHOD IsCertRevoked(const uint8_t *issuer, uint32_t issuer_length, const uint8_t *serial, uint32_t serial_length, const uint8_t *subject, uint32_t subject_length, const uint8_t *pubkey, uint32_t pubkey_length, bool *_retval) override { return _to IsCertRevoked(issuer, issuer_length, serial, serial_length, subject, subject_length, pubkey, pubkey_length, _retval); } \
75 : MOZ_MUST_USE NS_IMETHOD IsBlocklistFresh(bool *_retval) override { return _to IsBlocklistFresh(_retval); }
76 :
77 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
78 : #define NS_FORWARD_SAFE_NSICERTBLOCKLIST(_to) \
79 : MOZ_MUST_USE NS_IMETHOD RevokeCertByIssuerAndSerial(const nsACString & issuer, const nsACString & serialNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RevokeCertByIssuerAndSerial(issuer, serialNumber); } \
80 : MOZ_MUST_USE NS_IMETHOD RevokeCertBySubjectAndPubKey(const nsACString & subject, const nsACString & pubKeyHash) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RevokeCertBySubjectAndPubKey(subject, pubKeyHash); } \
81 : MOZ_MUST_USE NS_IMETHOD SaveEntries(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveEntries(); } \
82 : MOZ_MUST_USE NS_IMETHOD IsCertRevoked(const uint8_t *issuer, uint32_t issuer_length, const uint8_t *serial, uint32_t serial_length, const uint8_t *subject, uint32_t subject_length, const uint8_t *pubkey, uint32_t pubkey_length, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCertRevoked(issuer, issuer_length, serial, serial_length, subject, subject_length, pubkey, pubkey_length, _retval); } \
83 : MOZ_MUST_USE NS_IMETHOD IsBlocklistFresh(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsBlocklistFresh(_retval); }
84 :
85 : #if 0
86 : /* Use the code below as a template for the implementation class for this interface. */
87 :
88 : /* Header file */
89 : class nsCertBlocklist : public nsICertBlocklist
90 : {
91 : public:
92 : NS_DECL_ISUPPORTS
93 : NS_DECL_NSICERTBLOCKLIST
94 :
95 : nsCertBlocklist();
96 :
97 : private:
98 : ~nsCertBlocklist();
99 :
100 : protected:
101 : /* additional members */
102 : };
103 :
104 : /* Implementation file */
105 : NS_IMPL_ISUPPORTS(nsCertBlocklist, nsICertBlocklist)
106 :
107 : nsCertBlocklist::nsCertBlocklist()
108 : {
109 : /* member initializers and constructor code */
110 : }
111 :
112 : nsCertBlocklist::~nsCertBlocklist()
113 : {
114 : /* destructor code */
115 : }
116 :
117 : /* [must_use] void revokeCertByIssuerAndSerial (in ACString issuer, in ACString serialNumber); */
118 : MOZ_MUST_USE NS_IMETHODIMP nsCertBlocklist::RevokeCertByIssuerAndSerial(const nsACString & issuer, const nsACString & serialNumber)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* [must_use] void revokeCertBySubjectAndPubKey (in ACString subject, in ACString pubKeyHash); */
124 : MOZ_MUST_USE NS_IMETHODIMP nsCertBlocklist::RevokeCertBySubjectAndPubKey(const nsACString & subject, const nsACString & pubKeyHash)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* [must_use] void saveEntries (); */
130 : MOZ_MUST_USE NS_IMETHODIMP nsCertBlocklist::SaveEntries()
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* [must_use] boolean isCertRevoked ([array, size_is (issuer_length), const] in octet issuer, in unsigned long issuer_length, [array, size_is (serial_length), const] in octet serial, in unsigned long serial_length, [array, size_is (subject_length), const] in octet subject, in unsigned long subject_length, [array, size_is (pubkey_length), const] in octet pubkey, in unsigned long pubkey_length); */
136 : MOZ_MUST_USE NS_IMETHODIMP nsCertBlocklist::IsCertRevoked(const uint8_t *issuer, uint32_t issuer_length, const uint8_t *serial, uint32_t serial_length, const uint8_t *subject, uint32_t subject_length, const uint8_t *pubkey, uint32_t pubkey_length, bool *_retval)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* [must_use] boolean isBlocklistFresh (); */
142 : MOZ_MUST_USE NS_IMETHODIMP nsCertBlocklist::IsBlocklistFresh(bool *_retval)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* End of implementation class template. */
148 : #endif
149 :
150 :
151 : #endif /* __gen_nsICertBlocklist_h__ */
|