/usr/include/thunderbird/nsIIdentityCryptoService.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
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 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIIdentityCryptoService.idl
*/
#ifndef __gen_nsIIdentityCryptoService_h__
#define __gen_nsIIdentityCryptoService_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 nsIURI; /* forward declaration */
class nsIIdentityKeyGenCallback; /* forward declaration */
class nsIIdentitySignCallback; /* forward declaration */
/* starting interface: nsIIdentityCryptoService */
#define NS_IIDENTITYCRYPTOSERVICE_IID_STR "f087e6bc-dd33-4f6c-a106-dd786e052ee9"
#define NS_IIDENTITYCRYPTOSERVICE_IID \
{0xf087e6bc, 0xdd33, 0x4f6c, \
{ 0xa1, 0x06, 0xdd, 0x78, 0x6e, 0x05, 0x2e, 0xe9 }}
class NS_NO_VTABLE nsIIdentityCryptoService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDENTITYCRYPTOSERVICE_IID)
/* void generateKeyPair (in AUTF8String algorithm, in nsIIdentityKeyGenCallback callback); */
NS_IMETHOD GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback) = 0;
/* ACString base64UrlEncode (in AUTF8String toEncode); */
NS_IMETHOD Base64UrlEncode(const nsACString & toEncode, nsACString & _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIIdentityCryptoService, NS_IIDENTITYCRYPTOSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIDENTITYCRYPTOSERVICE \
NS_IMETHOD GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback) override; \
NS_IMETHOD Base64UrlEncode(const nsACString & toEncode, nsACString & _retval) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIDENTITYCRYPTOSERVICE(_to) \
NS_IMETHOD GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback) override { return _to GenerateKeyPair(algorithm, callback); } \
NS_IMETHOD Base64UrlEncode(const nsACString & toEncode, nsACString & _retval) override { return _to Base64UrlEncode(toEncode, _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_NSIIDENTITYCRYPTOSERVICE(_to) \
NS_IMETHOD GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateKeyPair(algorithm, callback); } \
NS_IMETHOD Base64UrlEncode(const nsACString & toEncode, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Base64UrlEncode(toEncode, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsIdentityCryptoService : public nsIIdentityCryptoService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIIDENTITYCRYPTOSERVICE
nsIdentityCryptoService();
private:
~nsIdentityCryptoService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsIdentityCryptoService, nsIIdentityCryptoService)
nsIdentityCryptoService::nsIdentityCryptoService()
{
/* member initializers and constructor code */
}
nsIdentityCryptoService::~nsIdentityCryptoService()
{
/* destructor code */
}
/* void generateKeyPair (in AUTF8String algorithm, in nsIIdentityKeyGenCallback callback); */
NS_IMETHODIMP nsIdentityCryptoService::GenerateKeyPair(const nsACString & algorithm, nsIIdentityKeyGenCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* ACString base64UrlEncode (in AUTF8String toEncode); */
NS_IMETHODIMP nsIdentityCryptoService::Base64UrlEncode(const nsACString & toEncode, nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIIdentityKeyPair */
#define NS_IIDENTITYKEYPAIR_IID_STR "73962dc7-8ee7-4346-a12b-b039e1d9b54d"
#define NS_IIDENTITYKEYPAIR_IID \
{0x73962dc7, 0x8ee7, 0x4346, \
{ 0xa1, 0x2b, 0xb0, 0x39, 0xe1, 0xd9, 0xb5, 0x4d }}
class NS_NO_VTABLE nsIIdentityKeyPair : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDENTITYKEYPAIR_IID)
/* readonly attribute AUTF8String keyType; */
NS_IMETHOD GetKeyType(nsACString & aKeyType) = 0;
/* readonly attribute AUTF8String hexRSAPublicKeyExponent; */
NS_IMETHOD GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent) = 0;
/* readonly attribute AUTF8String hexRSAPublicKeyModulus; */
NS_IMETHOD GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus) = 0;
/* readonly attribute AUTF8String hexDSAPrime; */
NS_IMETHOD GetHexDSAPrime(nsACString & aHexDSAPrime) = 0;
/* readonly attribute AUTF8String hexDSASubPrime; */
NS_IMETHOD GetHexDSASubPrime(nsACString & aHexDSASubPrime) = 0;
/* readonly attribute AUTF8String hexDSAGenerator; */
NS_IMETHOD GetHexDSAGenerator(nsACString & aHexDSAGenerator) = 0;
/* readonly attribute AUTF8String hexDSAPublicValue; */
NS_IMETHOD GetHexDSAPublicValue(nsACString & aHexDSAPublicValue) = 0;
/* void sign (in AUTF8String aText, in nsIIdentitySignCallback callback); */
NS_IMETHOD Sign(const nsACString & aText, nsIIdentitySignCallback *callback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIIdentityKeyPair, NS_IIDENTITYKEYPAIR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIDENTITYKEYPAIR \
NS_IMETHOD GetKeyType(nsACString & aKeyType) override; \
NS_IMETHOD GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent) override; \
NS_IMETHOD GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus) override; \
NS_IMETHOD GetHexDSAPrime(nsACString & aHexDSAPrime) override; \
NS_IMETHOD GetHexDSASubPrime(nsACString & aHexDSASubPrime) override; \
NS_IMETHOD GetHexDSAGenerator(nsACString & aHexDSAGenerator) override; \
NS_IMETHOD GetHexDSAPublicValue(nsACString & aHexDSAPublicValue) override; \
NS_IMETHOD Sign(const nsACString & aText, nsIIdentitySignCallback *callback) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIDENTITYKEYPAIR(_to) \
NS_IMETHOD GetKeyType(nsACString & aKeyType) override { return _to GetKeyType(aKeyType); } \
NS_IMETHOD GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent) override { return _to GetHexRSAPublicKeyExponent(aHexRSAPublicKeyExponent); } \
NS_IMETHOD GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus) override { return _to GetHexRSAPublicKeyModulus(aHexRSAPublicKeyModulus); } \
NS_IMETHOD GetHexDSAPrime(nsACString & aHexDSAPrime) override { return _to GetHexDSAPrime(aHexDSAPrime); } \
NS_IMETHOD GetHexDSASubPrime(nsACString & aHexDSASubPrime) override { return _to GetHexDSASubPrime(aHexDSASubPrime); } \
NS_IMETHOD GetHexDSAGenerator(nsACString & aHexDSAGenerator) override { return _to GetHexDSAGenerator(aHexDSAGenerator); } \
NS_IMETHOD GetHexDSAPublicValue(nsACString & aHexDSAPublicValue) override { return _to GetHexDSAPublicValue(aHexDSAPublicValue); } \
NS_IMETHOD Sign(const nsACString & aText, nsIIdentitySignCallback *callback) override { return _to Sign(aText, callback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIDENTITYKEYPAIR(_to) \
NS_IMETHOD GetKeyType(nsACString & aKeyType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyType(aKeyType); } \
NS_IMETHOD GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexRSAPublicKeyExponent(aHexRSAPublicKeyExponent); } \
NS_IMETHOD GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexRSAPublicKeyModulus(aHexRSAPublicKeyModulus); } \
NS_IMETHOD GetHexDSAPrime(nsACString & aHexDSAPrime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexDSAPrime(aHexDSAPrime); } \
NS_IMETHOD GetHexDSASubPrime(nsACString & aHexDSASubPrime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexDSASubPrime(aHexDSASubPrime); } \
NS_IMETHOD GetHexDSAGenerator(nsACString & aHexDSAGenerator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexDSAGenerator(aHexDSAGenerator); } \
NS_IMETHOD GetHexDSAPublicValue(nsACString & aHexDSAPublicValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHexDSAPublicValue(aHexDSAPublicValue); } \
NS_IMETHOD Sign(const nsACString & aText, nsIIdentitySignCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Sign(aText, callback); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsIdentityKeyPair : public nsIIdentityKeyPair
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIIDENTITYKEYPAIR
nsIdentityKeyPair();
private:
~nsIdentityKeyPair();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsIdentityKeyPair, nsIIdentityKeyPair)
nsIdentityKeyPair::nsIdentityKeyPair()
{
/* member initializers and constructor code */
}
nsIdentityKeyPair::~nsIdentityKeyPair()
{
/* destructor code */
}
/* readonly attribute AUTF8String keyType; */
NS_IMETHODIMP nsIdentityKeyPair::GetKeyType(nsACString & aKeyType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String hexRSAPublicKeyExponent; */
NS_IMETHODIMP nsIdentityKeyPair::GetHexRSAPublicKeyExponent(nsACString & aHexRSAPublicKeyExponent)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String hexRSAPublicKeyModulus; */
NS_IMETHODIMP nsIdentityKeyPair::GetHexRSAPublicKeyModulus(nsACString & aHexRSAPublicKeyModulus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String hexDSAPrime; */
NS_IMETHODIMP nsIdentityKeyPair::GetHexDSAPrime(nsACString & aHexDSAPrime)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String hexDSASubPrime; */
NS_IMETHODIMP nsIdentityKeyPair::GetHexDSASubPrime(nsACString & aHexDSASubPrime)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String hexDSAGenerator; */
NS_IMETHODIMP nsIdentityKeyPair::GetHexDSAGenerator(nsACString & aHexDSAGenerator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String hexDSAPublicValue; */
NS_IMETHODIMP nsIdentityKeyPair::GetHexDSAPublicValue(nsACString & aHexDSAPublicValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void sign (in AUTF8String aText, in nsIIdentitySignCallback callback); */
NS_IMETHODIMP nsIdentityKeyPair::Sign(const nsACString & aText, nsIIdentitySignCallback *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIIdentityKeyGenCallback */
#define NS_IIDENTITYKEYGENCALLBACK_IID_STR "90f24ca2-2b05-4ca9-8aec-89d38e2f905a"
#define NS_IIDENTITYKEYGENCALLBACK_IID \
{0x90f24ca2, 0x2b05, 0x4ca9, \
{ 0x8a, 0xec, 0x89, 0xd3, 0x8e, 0x2f, 0x90, 0x5a }}
class NS_NO_VTABLE nsIIdentityKeyGenCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDENTITYKEYGENCALLBACK_IID)
/* void generateKeyPairFinished (in nsresult rv, in nsIIdentityKeyPair keyPair); */
NS_IMETHOD GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIIdentityKeyGenCallback, NS_IIDENTITYKEYGENCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIDENTITYKEYGENCALLBACK \
NS_IMETHOD GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIDENTITYKEYGENCALLBACK(_to) \
NS_IMETHOD GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair) override { return _to GenerateKeyPairFinished(rv, keyPair); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIDENTITYKEYGENCALLBACK(_to) \
NS_IMETHOD GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateKeyPairFinished(rv, keyPair); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsIdentityKeyGenCallback : public nsIIdentityKeyGenCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIIDENTITYKEYGENCALLBACK
nsIdentityKeyGenCallback();
private:
~nsIdentityKeyGenCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsIdentityKeyGenCallback, nsIIdentityKeyGenCallback)
nsIdentityKeyGenCallback::nsIdentityKeyGenCallback()
{
/* member initializers and constructor code */
}
nsIdentityKeyGenCallback::~nsIdentityKeyGenCallback()
{
/* destructor code */
}
/* void generateKeyPairFinished (in nsresult rv, in nsIIdentityKeyPair keyPair); */
NS_IMETHODIMP nsIdentityKeyGenCallback::GenerateKeyPairFinished(nsresult rv, nsIIdentityKeyPair *keyPair)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIIdentitySignCallback */
#define NS_IIDENTITYSIGNCALLBACK_IID_STR "2d3e5036-374b-4b47-a430-1196b67b890f"
#define NS_IIDENTITYSIGNCALLBACK_IID \
{0x2d3e5036, 0x374b, 0x4b47, \
{ 0xa4, 0x30, 0x11, 0x96, 0xb6, 0x7b, 0x89, 0x0f }}
class NS_NO_VTABLE nsIIdentitySignCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDENTITYSIGNCALLBACK_IID)
/* void signFinished (in nsresult rv, in ACString base64urlSignature); */
NS_IMETHOD SignFinished(nsresult rv, const nsACString & base64urlSignature) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIIdentitySignCallback, NS_IIDENTITYSIGNCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIDENTITYSIGNCALLBACK \
NS_IMETHOD SignFinished(nsresult rv, const nsACString & base64urlSignature) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIDENTITYSIGNCALLBACK(_to) \
NS_IMETHOD SignFinished(nsresult rv, const nsACString & base64urlSignature) override { return _to SignFinished(rv, base64urlSignature); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIDENTITYSIGNCALLBACK(_to) \
NS_IMETHOD SignFinished(nsresult rv, const nsACString & base64urlSignature) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SignFinished(rv, base64urlSignature); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsIdentitySignCallback : public nsIIdentitySignCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIIDENTITYSIGNCALLBACK
nsIdentitySignCallback();
private:
~nsIdentitySignCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsIdentitySignCallback, nsIIdentitySignCallback)
nsIdentitySignCallback::nsIdentitySignCallback()
{
/* member initializers and constructor code */
}
nsIdentitySignCallback::~nsIdentitySignCallback()
{
/* destructor code */
}
/* void signFinished (in nsresult rv, in ACString base64urlSignature); */
NS_IMETHODIMP nsIdentitySignCallback::SignFinished(nsresult rv, const nsACString & base64urlSignature)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIIdentityCryptoService_h__ */
|