summaryrefslogtreecommitdiff
path: root/src/p11tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/p11tool.c')
-rw-r--r--src/p11tool.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/p11tool.c b/src/p11tool.c
index 80bcad039c..ff247835cd 100644
--- a/src/p11tool.c
+++ b/src/p11tool.c
@@ -298,9 +298,13 @@ static void cmd_parser(int argc, char **argv)
flags, &cinfo);
} else if (HAVE_OPT(TEST_SIGN)) {
pkcs11_test_sign(outfile, url, flags, &cinfo);
- } else if (HAVE_OPT(INITIALIZE))
+ } else if (HAVE_OPT(INITIALIZE)) {
pkcs11_init(outfile, url, label, &cinfo);
- else if (HAVE_OPT(DELETE))
+ } else if (HAVE_OPT(INITIALIZE_PIN)) {
+ pkcs11_set_pin(outfile, url, &cinfo, 0);
+ } else if (HAVE_OPT(INITIALIZE_SO_PIN)) {
+ pkcs11_set_pin(outfile, url, &cinfo, 1);
+ } else if (HAVE_OPT(DELETE))
pkcs11_delete(outfile, url, flags, &cinfo);
else if (HAVE_OPT(GENERATE_ECC)) {
key_type = GNUTLS_PK_EC;