Do not query for CKA_ALWAYS_AUTHENTICATE if PKCS#11 Cryptoki version < 2.20
[strongswan.git] / src / pki / commands / verify.c
index 26a6dca..bbcc538 100644 (file)
 /**
  * Verify a certificate signature
  */
-static int verify(int argc, char *argv[])
+static int verify()
 {
        certificate_t *cert, *ca;
        char *file = NULL, *cafile = NULL;
        bool good = FALSE;
+       char *arg;
 
        while (TRUE)
        {
-               switch (getopt_long(argc, argv, command_optstring, command_opts, NULL))
+               switch (command_getopt(&arg))
                {
                        case 'h':
                                return command_usage(NULL);
-                       case 'v':
-                               dbg_level = atoi(optarg);
-                               continue;
                        case 'i':
-                               file = optarg;
+                               file = arg;
                                continue;
                        case 'c':
-                               cafile = optarg;
+                               cafile = arg;
                                continue;
                        case EOF:
                                break;
@@ -130,9 +128,8 @@ static void __attribute__ ((constructor))reg()
                {"[--in file] [--ca file]"},
                {
                        {"help",        'h', 0, "show usage information"},
-                       {"in",          'i', 1, "x509 certifcate to verify, default: stdin"},
+                       {"in",          'i', 1, "X.509 certificate to verify, default: stdin"},
                        {"cacert",      'c', 1, "CA certificate, default: verify self signed"},
-                       {"debug",       'v', 1, "set debug level, default: 1"},
                }
        });
 }