summaryrefslogtreecommitdiff
path: root/lib/includes
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-06-18 11:53:14 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-06-18 11:55:09 +0200
commit73ea673d5d1851dfcd3d4c159822a96e1e7ad5c9 (patch)
tree4b09dd0076d169b17174747679ba200feefe9e78 /lib/includes
parent750aaed6ffc8d29441f9f6d8870e2c8f4787c329 (diff)
downloadgnutls-73ea673d5d1851dfcd3d4c159822a96e1e7ad5c9.tar.gz
Added new PKCS #11 flags to force an object being private or not.
Those are GNUTLS_PKCS11_OBJ_FLAG_MARK_PRIVATE and GNUTLS_PKCS11_OBJ_FLAG_MARK_NOT_PRIVATE. p11tool supports now the --no-private and --private options.
Diffstat (limited to 'lib/includes')
-rw-r--r--lib/includes/gnutls/pkcs11.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/includes/gnutls/pkcs11.h b/lib/includes/gnutls/pkcs11.h
index c1b7981035..edcea28bbb 100644
--- a/lib/includes/gnutls/pkcs11.h
+++ b/lib/includes/gnutls/pkcs11.h
@@ -69,6 +69,8 @@ int gnutls_pkcs11_obj_init (gnutls_pkcs11_obj_t * obj);
#define GNUTLS_PKCS11_OBJ_FLAG_MARK_TRUSTED (1<<1) /* object marked as trusted */
#define GNUTLS_PKCS11_OBJ_FLAG_MARK_SENSITIVE (1<<2) /* object marked as sensitive (unexportable) */
#define GNUTLS_PKCS11_OBJ_FLAG_LOGIN_SO (1<<3) /* force login as a security officer in the token for the operation */
+#define GNUTLS_PKCS11_OBJ_FLAG_MARK_PRIVATE (1<<4) /* marked as private (requires PIN to access) */
+#define GNUTLS_PKCS11_OBJ_FLAG_MARK_NOT_PRIVATE (1<<5) /* marked as not private */
/**
* gnutls_pkcs11_url_type_t: