]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls-cli: when a certificate is specified require the corresponding private key
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 20 Apr 2015 14:31:55 +0000 (16:31 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 20 Apr 2015 14:31:55 +0000 (16:31 +0200)
src/cli-args.def

index 1edcc310ef5470c8aea8041446afb5f12515b70c..7f6d13fba6e1e4016d73902f47c265f8edef32c9 100644 (file)
@@ -210,6 +210,7 @@ flag = {
     file-exists = yes;
     descrip   = "PGP Public Key (certificate) file to use";
     doc      = "";
+    flags-must = pgpkeyfile;
 };
 
 flag = {
@@ -224,6 +225,7 @@ flag = {
     arg-type  = string;
     descrip   = "X.509 Certificate file or PKCS #11 URL to use";
     doc      = "";
+    flags-must = x509keyfile;
 };
 
 flag = {