diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-03-26 16:46:43 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-03-26 16:46:43 +0100 |
commit | 38b50bfa030de763c2f657267d9bcbe28bc5cd98 (patch) | |
tree | 88451ed0d72d55173ef3016b5be83c862d0a18a7 /src/p11tool.c | |
parent | 1e50c5a61fa3eeaba4f95d80155e7c55c3dde145 (diff) | |
download | gnutls-38b50bfa030de763c2f657267d9bcbe28bc5cd98.tar.gz |
p11tool: added --mark-no-sign and --mark-no-decrypt options
Diffstat (limited to 'src/p11tool.c')
-rw-r--r-- | src/p11tool.c | 8 |
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; |