/usr/include/firefox/nsIX509Cert3.h is in firefox-dev 11.0+build1-0ubuntu4.
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 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/security/manager/ssl/public/nsIX509Cert3.idl
*/
#ifndef __gen_nsIX509Cert3_h__
#define __gen_nsIX509Cert3_h__
#ifndef __gen_nsIX509Cert2_h__
#include "nsIX509Cert2.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsICertVerificationListener; /* forward declaration */
/* starting interface: nsIX509Cert3 */
#define NS_IX509CERT3_IID_STR "399004d8-b8c7-4eb9-8362-d99f4c0161fd"
#define NS_IX509CERT3_IID \
{0x399004d8, 0xb8c7, 0x4eb9, \
{ 0x83, 0x62, 0xd9, 0x9f, 0x4c, 0x01, 0x61, 0xfd }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIX509Cert3 : public nsIX509Cert2 {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IX509CERT3_IID)
enum {
CMS_CHAIN_MODE_CertOnly = 1U,
CMS_CHAIN_MODE_CertChain = 2U,
CMS_CHAIN_MODE_CertChainWithRoot = 3U
};
/* void requestUsagesArrayAsync (in nsICertVerificationListener cvl); */
NS_SCRIPTABLE NS_IMETHOD RequestUsagesArrayAsync(nsICertVerificationListener *cvl) = 0;
/* void exportAsCMS (in unsigned long chainMode, out unsigned long length, [array, size_is (length), retval] out octet data); */
NS_SCRIPTABLE NS_IMETHOD ExportAsCMS(PRUint32 chainMode, PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM) = 0;
/* readonly attribute boolean isSelfSigned; */
NS_SCRIPTABLE NS_IMETHOD GetIsSelfSigned(bool *aIsSelfSigned) = 0;
/* void getAllTokenNames (out unsigned long length, [array, size_is (length), retval] out wstring tokenNames); */
NS_SCRIPTABLE NS_IMETHOD GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509Cert3, NS_IX509CERT3_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIX509CERT3 \
NS_SCRIPTABLE NS_IMETHOD RequestUsagesArrayAsync(nsICertVerificationListener *cvl); \
NS_SCRIPTABLE NS_IMETHOD ExportAsCMS(PRUint32 chainMode, PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetIsSelfSigned(bool *aIsSelfSigned); \
NS_SCRIPTABLE NS_IMETHOD GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIX509CERT3(_to) \
NS_SCRIPTABLE NS_IMETHOD RequestUsagesArrayAsync(nsICertVerificationListener *cvl) { return _to RequestUsagesArrayAsync(cvl); } \
NS_SCRIPTABLE NS_IMETHOD ExportAsCMS(PRUint32 chainMode, PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM) { return _to ExportAsCMS(chainMode, length, data); } \
NS_SCRIPTABLE NS_IMETHOD GetIsSelfSigned(bool *aIsSelfSigned) { return _to GetIsSelfSigned(aIsSelfSigned); } \
NS_SCRIPTABLE NS_IMETHOD GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM) { return _to GetAllTokenNames(length, tokenNames); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIX509CERT3(_to) \
NS_SCRIPTABLE NS_IMETHOD RequestUsagesArrayAsync(nsICertVerificationListener *cvl) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestUsagesArrayAsync(cvl); } \
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); } \
NS_SCRIPTABLE NS_IMETHOD GetIsSelfSigned(bool *aIsSelfSigned) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSelfSigned(aIsSelfSigned); } \
NS_SCRIPTABLE NS_IMETHOD GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllTokenNames(length, tokenNames); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsX509Cert3 : public nsIX509Cert3
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIX509CERT3
nsX509Cert3();
private:
~nsX509Cert3();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsX509Cert3, nsIX509Cert3)
nsX509Cert3::nsX509Cert3()
{
/* member initializers and constructor code */
}
nsX509Cert3::~nsX509Cert3()
{
/* destructor code */
}
/* void requestUsagesArrayAsync (in nsICertVerificationListener cvl); */
NS_IMETHODIMP nsX509Cert3::RequestUsagesArrayAsync(nsICertVerificationListener *cvl)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void exportAsCMS (in unsigned long chainMode, out unsigned long length, [array, size_is (length), retval] out octet data); */
NS_IMETHODIMP nsX509Cert3::ExportAsCMS(PRUint32 chainMode, PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean isSelfSigned; */
NS_IMETHODIMP nsX509Cert3::GetIsSelfSigned(bool *aIsSelfSigned)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getAllTokenNames (out unsigned long length, [array, size_is (length), retval] out wstring tokenNames); */
NS_IMETHODIMP nsX509Cert3::GetAllTokenNames(PRUint32 *length NS_OUTPARAM, PRUnichar * **tokenNames NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsICertVerificationResult */
#define NS_ICERTVERIFICATIONRESULT_IID_STR "2fd0a785-9f2d-4327-8871-8c3e0783891d"
#define NS_ICERTVERIFICATIONRESULT_IID \
{0x2fd0a785, 0x9f2d, 0x4327, \
{ 0x88, 0x71, 0x8c, 0x3e, 0x07, 0x83, 0x89, 0x1d }}
class NS_NO_VTABLE NS_SCRIPTABLE nsICertVerificationResult : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTVERIFICATIONRESULT_IID)
/* void getUsagesArrayResult (out PRUint32 verified, out PRUint32 count, [array, size_is (count)] out wstring usages); */
NS_SCRIPTABLE NS_IMETHOD GetUsagesArrayResult(PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICertVerificationResult, NS_ICERTVERIFICATIONRESULT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICERTVERIFICATIONRESULT \
NS_SCRIPTABLE NS_IMETHOD GetUsagesArrayResult(PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICERTVERIFICATIONRESULT(_to) \
NS_SCRIPTABLE NS_IMETHOD GetUsagesArrayResult(PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM) { return _to GetUsagesArrayResult(verified, count, usages); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICERTVERIFICATIONRESULT(_to) \
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); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsCertVerificationResult : public nsICertVerificationResult
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICERTVERIFICATIONRESULT
nsCertVerificationResult();
private:
~nsCertVerificationResult();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsCertVerificationResult, nsICertVerificationResult)
nsCertVerificationResult::nsCertVerificationResult()
{
/* member initializers and constructor code */
}
nsCertVerificationResult::~nsCertVerificationResult()
{
/* destructor code */
}
/* void getUsagesArrayResult (out PRUint32 verified, out PRUint32 count, [array, size_is (count)] out wstring usages); */
NS_IMETHODIMP nsCertVerificationResult::GetUsagesArrayResult(PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsICertVerificationListener */
#define NS_ICERTVERIFICATIONLISTENER_IID_STR "6684bce9-50db-48e1-81b7-98102bf81357"
#define NS_ICERTVERIFICATIONLISTENER_IID \
{0x6684bce9, 0x50db, 0x48e1, \
{ 0x81, 0xb7, 0x98, 0x10, 0x2b, 0xf8, 0x13, 0x57 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsICertVerificationListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICERTVERIFICATIONLISTENER_IID)
/* void notify (in nsIX509Cert3 verifiedCert, in nsICertVerificationResult result); */
NS_SCRIPTABLE NS_IMETHOD Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICertVerificationListener, NS_ICERTVERIFICATIONLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICERTVERIFICATIONLISTENER \
NS_SCRIPTABLE NS_IMETHOD Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICERTVERIFICATIONLISTENER(_to) \
NS_SCRIPTABLE NS_IMETHOD Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result) { return _to Notify(verifiedCert, result); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICERTVERIFICATIONLISTENER(_to) \
NS_SCRIPTABLE NS_IMETHOD Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->Notify(verifiedCert, result); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsCertVerificationListener : public nsICertVerificationListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSICERTVERIFICATIONLISTENER
nsCertVerificationListener();
private:
~nsCertVerificationListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsCertVerificationListener, nsICertVerificationListener)
nsCertVerificationListener::nsCertVerificationListener()
{
/* member initializers and constructor code */
}
nsCertVerificationListener::~nsCertVerificationListener()
{
/* destructor code */
}
/* void notify (in nsIX509Cert3 verifiedCert, in nsICertVerificationResult result); */
NS_IMETHODIMP nsCertVerificationListener::Notify(nsIX509Cert3 *verifiedCert, nsICertVerificationResult *result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIX509Cert3_h__ */
|