tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pkcs11.json (1699B)


      1 [
      2  {
      3    "namespace": "manifest",
      4    "types": [
      5      {
      6        "$extend": "OptionalPermission",
      7        "choices": [
      8          {
      9            "type": "string",
     10            "enum": ["pkcs11"]
     11          }
     12        ]
     13      }
     14    ]
     15  },
     16  {
     17    "namespace": "pkcs11",
     18    "description": "PKCS#11 module management API",
     19    "permissions": ["pkcs11"],
     20    "functions": [
     21      {
     22        "name": "isModuleInstalled",
     23        "type": "function",
     24        "description": "checks whether a PKCS#11 module, given by name, is installed",
     25        "async": true,
     26        "parameters": [
     27          {
     28            "name": "name",
     29            "type": "string"
     30          }
     31        ]
     32      },
     33      {
     34        "name": "installModule",
     35        "type": "function",
     36        "description": "Install a PKCS#11 module with a given name",
     37        "async": true,
     38        "parameters": [
     39          {
     40            "name": "name",
     41            "type": "string"
     42          },
     43          {
     44            "name": "flags",
     45            "type": "integer",
     46            "optional": true
     47          }
     48        ]
     49      },
     50      {
     51        "name": "uninstallModule",
     52        "type": "function",
     53        "description": "Remove an installed PKCS#11 module from firefox",
     54        "async": true,
     55        "parameters": [
     56          {
     57            "name": "name",
     58            "type": "string"
     59          }
     60        ]
     61      },
     62      {
     63        "name": "getModuleSlots",
     64        "type": "function",
     65        "description": "Enumerate a module's slots, each with their name and whether a token is present",
     66        "async": true,
     67        "parameters": [
     68          {
     69            "name": "name",
     70            "type": "string"
     71          }
     72        ]
     73      }
     74    ]
     75  }
     76 ]