/usr/include/firefox/nsIPK11Token.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 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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/security/manager/ssl/public/nsIPK11Token.idl
*/
#ifndef __gen_nsIPK11Token_h__
#define __gen_nsIPK11Token_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
/* starting interface: nsIPK11Token */
#define NS_IPK11TOKEN_IID_STR "51191434-1dd2-11b2-a17c-e49c4e99a4e3"
#define NS_IPK11TOKEN_IID \
{0x51191434, 0x1dd2, 0x11b2, \
{ 0xa1, 0x7c, 0xe4, 0x9c, 0x4e, 0x99, 0xa4, 0xe3 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIPK11Token : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPK11TOKEN_IID)
enum {
ASK_EVERY_TIME = -1,
ASK_FIRST_TIME = 0,
ASK_EXPIRE_TIME = 1
};
/* readonly attribute wstring tokenName; */
NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) = 0;
/* readonly attribute wstring tokenLabel; */
NS_SCRIPTABLE NS_IMETHOD GetTokenLabel(PRUnichar * *aTokenLabel) = 0;
/* readonly attribute wstring tokenManID; */
NS_SCRIPTABLE NS_IMETHOD GetTokenManID(PRUnichar * *aTokenManID) = 0;
/* readonly attribute wstring tokenHWVersion; */
NS_SCRIPTABLE NS_IMETHOD GetTokenHWVersion(PRUnichar * *aTokenHWVersion) = 0;
/* readonly attribute wstring tokenFWVersion; */
NS_SCRIPTABLE NS_IMETHOD GetTokenFWVersion(PRUnichar * *aTokenFWVersion) = 0;
/* readonly attribute wstring tokenSerialNumber; */
NS_SCRIPTABLE NS_IMETHOD GetTokenSerialNumber(PRUnichar * *aTokenSerialNumber) = 0;
/* boolean isLoggedIn (); */
NS_SCRIPTABLE NS_IMETHOD IsLoggedIn(bool *_retval NS_OUTPARAM) = 0;
/* void login (in boolean force); */
NS_SCRIPTABLE NS_IMETHOD Login(bool force) = 0;
/* void logoutSimple (); */
NS_SCRIPTABLE NS_IMETHOD LogoutSimple(void) = 0;
/* void logoutAndDropAuthenticatedResources (); */
NS_SCRIPTABLE NS_IMETHOD LogoutAndDropAuthenticatedResources(void) = 0;
/* void reset (); */
NS_SCRIPTABLE NS_IMETHOD Reset(void) = 0;
/* readonly attribute long minimumPasswordLength; */
NS_SCRIPTABLE NS_IMETHOD GetMinimumPasswordLength(PRInt32 *aMinimumPasswordLength) = 0;
/* readonly attribute boolean needsUserInit; */
NS_SCRIPTABLE NS_IMETHOD GetNeedsUserInit(bool *aNeedsUserInit) = 0;
/* boolean checkPassword (in wstring password); */
NS_SCRIPTABLE NS_IMETHOD CheckPassword(const PRUnichar * password, bool *_retval NS_OUTPARAM) = 0;
/* void initPassword (in wstring initialPassword); */
NS_SCRIPTABLE NS_IMETHOD InitPassword(const PRUnichar * initialPassword) = 0;
/* void changePassword (in wstring oldPassword, in wstring newPassword); */
NS_SCRIPTABLE NS_IMETHOD ChangePassword(const PRUnichar * oldPassword, const PRUnichar * newPassword) = 0;
/* long getAskPasswordTimes (); */
NS_SCRIPTABLE NS_IMETHOD GetAskPasswordTimes(PRInt32 *_retval NS_OUTPARAM) = 0;
/* long getAskPasswordTimeout (); */
NS_SCRIPTABLE NS_IMETHOD GetAskPasswordTimeout(PRInt32 *_retval NS_OUTPARAM) = 0;
/* void setAskPasswordDefaults ([const] in long askTimes, [const] in long timeout); */
NS_SCRIPTABLE NS_IMETHOD SetAskPasswordDefaults(const PRInt32 askTimes, const PRInt32 timeout) = 0;
/* boolean isHardwareToken (); */
NS_SCRIPTABLE NS_IMETHOD IsHardwareToken(bool *_retval NS_OUTPARAM) = 0;
/* boolean needsLogin (); */
NS_SCRIPTABLE NS_IMETHOD NeedsLogin(bool *_retval NS_OUTPARAM) = 0;
/* boolean isFriendly (); */
NS_SCRIPTABLE NS_IMETHOD IsFriendly(bool *_retval NS_OUTPARAM) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPK11Token, NS_IPK11TOKEN_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPK11TOKEN \
NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName); \
NS_SCRIPTABLE NS_IMETHOD GetTokenLabel(PRUnichar * *aTokenLabel); \
NS_SCRIPTABLE NS_IMETHOD GetTokenManID(PRUnichar * *aTokenManID); \
NS_SCRIPTABLE NS_IMETHOD GetTokenHWVersion(PRUnichar * *aTokenHWVersion); \
NS_SCRIPTABLE NS_IMETHOD GetTokenFWVersion(PRUnichar * *aTokenFWVersion); \
NS_SCRIPTABLE NS_IMETHOD GetTokenSerialNumber(PRUnichar * *aTokenSerialNumber); \
NS_SCRIPTABLE NS_IMETHOD IsLoggedIn(bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Login(bool force); \
NS_SCRIPTABLE NS_IMETHOD LogoutSimple(void); \
NS_SCRIPTABLE NS_IMETHOD LogoutAndDropAuthenticatedResources(void); \
NS_SCRIPTABLE NS_IMETHOD Reset(void); \
NS_SCRIPTABLE NS_IMETHOD GetMinimumPasswordLength(PRInt32 *aMinimumPasswordLength); \
NS_SCRIPTABLE NS_IMETHOD GetNeedsUserInit(bool *aNeedsUserInit); \
NS_SCRIPTABLE NS_IMETHOD CheckPassword(const PRUnichar * password, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD InitPassword(const PRUnichar * initialPassword); \
NS_SCRIPTABLE NS_IMETHOD ChangePassword(const PRUnichar * oldPassword, const PRUnichar * newPassword); \
NS_SCRIPTABLE NS_IMETHOD GetAskPasswordTimes(PRInt32 *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetAskPasswordTimeout(PRInt32 *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD SetAskPasswordDefaults(const PRInt32 askTimes, const PRInt32 timeout); \
NS_SCRIPTABLE NS_IMETHOD IsHardwareToken(bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD NeedsLogin(bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD IsFriendly(bool *_retval NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPK11TOKEN(_to) \
NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) { return _to GetTokenName(aTokenName); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenLabel(PRUnichar * *aTokenLabel) { return _to GetTokenLabel(aTokenLabel); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenManID(PRUnichar * *aTokenManID) { return _to GetTokenManID(aTokenManID); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenHWVersion(PRUnichar * *aTokenHWVersion) { return _to GetTokenHWVersion(aTokenHWVersion); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenFWVersion(PRUnichar * *aTokenFWVersion) { return _to GetTokenFWVersion(aTokenFWVersion); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenSerialNumber(PRUnichar * *aTokenSerialNumber) { return _to GetTokenSerialNumber(aTokenSerialNumber); } \
NS_SCRIPTABLE NS_IMETHOD IsLoggedIn(bool *_retval NS_OUTPARAM) { return _to IsLoggedIn(_retval); } \
NS_SCRIPTABLE NS_IMETHOD Login(bool force) { return _to Login(force); } \
NS_SCRIPTABLE NS_IMETHOD LogoutSimple(void) { return _to LogoutSimple(); } \
NS_SCRIPTABLE NS_IMETHOD LogoutAndDropAuthenticatedResources(void) { return _to LogoutAndDropAuthenticatedResources(); } \
NS_SCRIPTABLE NS_IMETHOD Reset(void) { return _to Reset(); } \
NS_SCRIPTABLE NS_IMETHOD GetMinimumPasswordLength(PRInt32 *aMinimumPasswordLength) { return _to GetMinimumPasswordLength(aMinimumPasswordLength); } \
NS_SCRIPTABLE NS_IMETHOD GetNeedsUserInit(bool *aNeedsUserInit) { return _to GetNeedsUserInit(aNeedsUserInit); } \
NS_SCRIPTABLE NS_IMETHOD CheckPassword(const PRUnichar * password, bool *_retval NS_OUTPARAM) { return _to CheckPassword(password, _retval); } \
NS_SCRIPTABLE NS_IMETHOD InitPassword(const PRUnichar * initialPassword) { return _to InitPassword(initialPassword); } \
NS_SCRIPTABLE NS_IMETHOD ChangePassword(const PRUnichar * oldPassword, const PRUnichar * newPassword) { return _to ChangePassword(oldPassword, newPassword); } \
NS_SCRIPTABLE NS_IMETHOD GetAskPasswordTimes(PRInt32 *_retval NS_OUTPARAM) { return _to GetAskPasswordTimes(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetAskPasswordTimeout(PRInt32 *_retval NS_OUTPARAM) { return _to GetAskPasswordTimeout(_retval); } \
NS_SCRIPTABLE NS_IMETHOD SetAskPasswordDefaults(const PRInt32 askTimes, const PRInt32 timeout) { return _to SetAskPasswordDefaults(askTimes, timeout); } \
NS_SCRIPTABLE NS_IMETHOD IsHardwareToken(bool *_retval NS_OUTPARAM) { return _to IsHardwareToken(_retval); } \
NS_SCRIPTABLE NS_IMETHOD NeedsLogin(bool *_retval NS_OUTPARAM) { return _to NeedsLogin(_retval); } \
NS_SCRIPTABLE NS_IMETHOD IsFriendly(bool *_retval NS_OUTPARAM) { return _to IsFriendly(_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_NSIPK11TOKEN(_to) \
NS_SCRIPTABLE NS_IMETHOD GetTokenName(PRUnichar * *aTokenName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenName(aTokenName); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenLabel(PRUnichar * *aTokenLabel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenLabel(aTokenLabel); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenManID(PRUnichar * *aTokenManID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenManID(aTokenManID); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenHWVersion(PRUnichar * *aTokenHWVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenHWVersion(aTokenHWVersion); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenFWVersion(PRUnichar * *aTokenFWVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenFWVersion(aTokenFWVersion); } \
NS_SCRIPTABLE NS_IMETHOD GetTokenSerialNumber(PRUnichar * *aTokenSerialNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenSerialNumber(aTokenSerialNumber); } \
NS_SCRIPTABLE NS_IMETHOD IsLoggedIn(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsLoggedIn(_retval); } \
NS_SCRIPTABLE NS_IMETHOD Login(bool force) { return !_to ? NS_ERROR_NULL_POINTER : _to->Login(force); } \
NS_SCRIPTABLE NS_IMETHOD LogoutSimple(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogoutSimple(); } \
NS_SCRIPTABLE NS_IMETHOD LogoutAndDropAuthenticatedResources(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogoutAndDropAuthenticatedResources(); } \
NS_SCRIPTABLE NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); } \
NS_SCRIPTABLE NS_IMETHOD GetMinimumPasswordLength(PRInt32 *aMinimumPasswordLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinimumPasswordLength(aMinimumPasswordLength); } \
NS_SCRIPTABLE NS_IMETHOD GetNeedsUserInit(bool *aNeedsUserInit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNeedsUserInit(aNeedsUserInit); } \
NS_SCRIPTABLE NS_IMETHOD CheckPassword(const PRUnichar * password, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckPassword(password, _retval); } \
NS_SCRIPTABLE NS_IMETHOD InitPassword(const PRUnichar * initialPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitPassword(initialPassword); } \
NS_SCRIPTABLE NS_IMETHOD ChangePassword(const PRUnichar * oldPassword, const PRUnichar * newPassword) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChangePassword(oldPassword, newPassword); } \
NS_SCRIPTABLE NS_IMETHOD GetAskPasswordTimes(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAskPasswordTimes(_retval); } \
NS_SCRIPTABLE NS_IMETHOD GetAskPasswordTimeout(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAskPasswordTimeout(_retval); } \
NS_SCRIPTABLE NS_IMETHOD SetAskPasswordDefaults(const PRInt32 askTimes, const PRInt32 timeout) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAskPasswordDefaults(askTimes, timeout); } \
NS_SCRIPTABLE NS_IMETHOD IsHardwareToken(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsHardwareToken(_retval); } \
NS_SCRIPTABLE NS_IMETHOD NeedsLogin(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NeedsLogin(_retval); } \
NS_SCRIPTABLE NS_IMETHOD IsFriendly(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsFriendly(_retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsPK11Token : public nsIPK11Token
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPK11TOKEN
nsPK11Token();
private:
~nsPK11Token();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPK11Token, nsIPK11Token)
nsPK11Token::nsPK11Token()
{
/* member initializers and constructor code */
}
nsPK11Token::~nsPK11Token()
{
/* destructor code */
}
/* readonly attribute wstring tokenName; */
NS_IMETHODIMP nsPK11Token::GetTokenName(PRUnichar * *aTokenName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring tokenLabel; */
NS_IMETHODIMP nsPK11Token::GetTokenLabel(PRUnichar * *aTokenLabel)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring tokenManID; */
NS_IMETHODIMP nsPK11Token::GetTokenManID(PRUnichar * *aTokenManID)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring tokenHWVersion; */
NS_IMETHODIMP nsPK11Token::GetTokenHWVersion(PRUnichar * *aTokenHWVersion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring tokenFWVersion; */
NS_IMETHODIMP nsPK11Token::GetTokenFWVersion(PRUnichar * *aTokenFWVersion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute wstring tokenSerialNumber; */
NS_IMETHODIMP nsPK11Token::GetTokenSerialNumber(PRUnichar * *aTokenSerialNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isLoggedIn (); */
NS_IMETHODIMP nsPK11Token::IsLoggedIn(bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void login (in boolean force); */
NS_IMETHODIMP nsPK11Token::Login(bool force)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void logoutSimple (); */
NS_IMETHODIMP nsPK11Token::LogoutSimple()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void logoutAndDropAuthenticatedResources (); */
NS_IMETHODIMP nsPK11Token::LogoutAndDropAuthenticatedResources()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void reset (); */
NS_IMETHODIMP nsPK11Token::Reset()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long minimumPasswordLength; */
NS_IMETHODIMP nsPK11Token::GetMinimumPasswordLength(PRInt32 *aMinimumPasswordLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean needsUserInit; */
NS_IMETHODIMP nsPK11Token::GetNeedsUserInit(bool *aNeedsUserInit)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean checkPassword (in wstring password); */
NS_IMETHODIMP nsPK11Token::CheckPassword(const PRUnichar * password, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void initPassword (in wstring initialPassword); */
NS_IMETHODIMP nsPK11Token::InitPassword(const PRUnichar * initialPassword)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void changePassword (in wstring oldPassword, in wstring newPassword); */
NS_IMETHODIMP nsPK11Token::ChangePassword(const PRUnichar * oldPassword, const PRUnichar * newPassword)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getAskPasswordTimes (); */
NS_IMETHODIMP nsPK11Token::GetAskPasswordTimes(PRInt32 *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getAskPasswordTimeout (); */
NS_IMETHODIMP nsPK11Token::GetAskPasswordTimeout(PRInt32 *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAskPasswordDefaults ([const] in long askTimes, [const] in long timeout); */
NS_IMETHODIMP nsPK11Token::SetAskPasswordDefaults(const PRInt32 askTimes, const PRInt32 timeout)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isHardwareToken (); */
NS_IMETHODIMP nsPK11Token::IsHardwareToken(bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean needsLogin (); */
NS_IMETHODIMP nsPK11Token::NeedsLogin(bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isFriendly (); */
NS_IMETHODIMP nsPK11Token::IsFriendly(bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIPK11Token_h__ */
|