summaryrefslogtreecommitdiffstats
path: root/security/nss/cmd/pk11util/scripts/pMechanisms
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/cmd/pk11util/scripts/pMechanisms')
-rw-r--r--security/nss/cmd/pk11util/scripts/pMechanisms8
1 files changed, 8 insertions, 0 deletions
diff --git a/security/nss/cmd/pk11util/scripts/pMechanisms b/security/nss/cmd/pk11util/scripts/pMechanisms
new file mode 100644
index 0000000000..82e860258e
--- /dev/null
+++ b/security/nss/cmd/pk11util/scripts/pMechanisms
@@ -0,0 +1,8 @@
+#
+# print the mechanism list for a given token
+#
+set slotID slotList[i]
+C_GetMechanismList slotID NULL mechCount
+NewArray mechanismList CK_ULONG mechcount
+C_GetMechanismList slotID mechanismList mechCount
+print mechanismList