diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /security/manager/ssl/nsIPKCS11Slot.idl | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'security/manager/ssl/nsIPKCS11Slot.idl')
-rw-r--r-- | security/manager/ssl/nsIPKCS11Slot.idl | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/security/manager/ssl/nsIPKCS11Slot.idl b/security/manager/ssl/nsIPKCS11Slot.idl new file mode 100644 index 000000000..7c41e4fcc --- /dev/null +++ b/security/manager/ssl/nsIPKCS11Slot.idl @@ -0,0 +1,44 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsISupports.idl" + +interface nsIPK11Token; + +[scriptable, uuid(c2d4f296-ee60-11d4-998b-00b0d02354a0)] +interface nsIPKCS11Slot : nsISupports { + readonly attribute AUTF8String name; + readonly attribute AUTF8String desc; + /** + * Manufacturer ID of the slot. + */ + readonly attribute AUTF8String manID; + /** + * Hardware version of the slot. + */ + readonly attribute AUTF8String HWVersion; + /** + * Firmware version of the slot. + */ + readonly attribute AUTF8String FWVersion; + + const unsigned long SLOT_DISABLED = 0; + const unsigned long SLOT_NOT_PRESENT = 1; + const unsigned long SLOT_UNINITIALIZED = 2; + const unsigned long SLOT_NOT_LOGGED_IN = 3; + const unsigned long SLOT_LOGGED_IN = 4; + const unsigned long SLOT_READY = 5; + readonly attribute unsigned long status; + + /* This is really a workaround for now. All of the "slot" functions + * (isTokenPresent(), etc.) are in nsIPK11Token. For now, return the + * token and handle those things there. + */ + nsIPK11Token getToken(); + + /* more fun with workarounds - we're referring to everything by token name */ + readonly attribute AUTF8String tokenName; +}; |