1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsIPKCS11Slot.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsISupports.idl" 1.11 + 1.12 +interface nsIPK11Token; 1.13 + 1.14 +[scriptable, uuid(c2d4f296-ee60-11d4-998b-00b0d02354a0)] 1.15 +interface nsIPKCS11Slot : nsISupports { 1.16 + 1.17 + readonly attribute wstring name; 1.18 + readonly attribute wstring desc; 1.19 + readonly attribute wstring manID; 1.20 + readonly attribute wstring HWVersion; 1.21 + readonly attribute wstring FWVersion; 1.22 + 1.23 + const unsigned long SLOT_DISABLED = 0; 1.24 + const unsigned long SLOT_NOT_PRESENT = 1; 1.25 + const unsigned long SLOT_UNINITIALIZED = 2; 1.26 + const unsigned long SLOT_NOT_LOGGED_IN = 3; 1.27 + const unsigned long SLOT_LOGGED_IN = 4; 1.28 + const unsigned long SLOT_READY = 5; 1.29 + readonly attribute unsigned long status; 1.30 + 1.31 + /* This is really a workaround for now. All of the "slot" functions 1.32 + * (isTokenPresent(), etc.) are in nsIPK11Token. For now, return the 1.33 + * token and handle those things there. 1.34 + */ 1.35 + nsIPK11Token getToken(); 1.36 + 1.37 + /* more fun with workarounds - we're referring to everything by token name */ 1.38 + readonly attribute wstring tokenName; 1.39 + 1.40 +}; 1.41 +