summaryrefslogtreecommitdiff
path: root/src/p11tool.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-26 16:46:43 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-26 16:46:43 +0100
commit38b50bfa030de763c2f657267d9bcbe28bc5cd98 (patch)
tree88451ed0d72d55173ef3016b5be83c862d0a18a7 /src/p11tool.c
parent1e50c5a61fa3eeaba4f95d80155e7c55c3dde145 (diff)
downloadgnutls-38b50bfa030de763c2f657267d9bcbe28bc5cd98.tar.gz
p11tool: added --mark-no-sign and --mark-no-decrypt options
Diffstat (limited to 'src/p11tool.c')
-rw-r--r--src/p11tool.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/p11tool.c b/src/p11tool.c
index fff8542ee6..c559067fbb 100644
--- a/src/p11tool.c
+++ b/src/p11tool.c
@@ -84,6 +84,14 @@ unsigned opt_to_flags(void)
flags |=
GNUTLS_PKCS11_OBJ_FLAG_MARK_TRUSTED;
+ if (ENABLED_OPT(MARK_NO_SIGN))
+ flags |=
+ GNUTLS_PKCS11_OBJ_FLAG_MARK_NO_SIGN;
+
+ if (ENABLED_OPT(MARK_NO_DECRYPT))
+ flags |=
+ GNUTLS_PKCS11_OBJ_FLAG_MARK_NO_DECRYPT;
+
if (ENABLED_OPT(MARK_CA))
flags |=
GNUTLS_PKCS11_OBJ_FLAG_MARK_CA;