diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-05-29 11:26:19 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-06-16 15:07:53 +0000 |
commit | 4849d2a397192419b5dd2268c6eeea0e5421a6c3 (patch) | |
tree | 7277cf24c26158aa2066f25520c1da886fcb71e5 /lib/pkcs11_int.h | |
parent | 49a33f79c941a18d90a6dada9c32f526b1a5aa9c (diff) | |
download | gnutls-4849d2a397192419b5dd2268c6eeea0e5421a6c3.tar.gz |
pkcs11: simplified pkcs11_login()
By cleanups, as well as including the reauth flag in the flags option.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/pkcs11_int.h')
-rw-r--r-- | lib/pkcs11_int.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pkcs11_int.h b/lib/pkcs11_int.h index 60a1494af6..885a69ff00 100644 --- a/lib/pkcs11_int.h +++ b/lib/pkcs11_int.h @@ -111,8 +111,7 @@ int pkcs11_get_info(struct p11_kit_uri *info, size_t * output_size); int pkcs11_login(struct pkcs11_session_info *sinfo, struct pin_info_st *pin_info, - struct p11_kit_uri *info, unsigned so, - unsigned reauth); + struct p11_kit_uri *info, unsigned flags); int pkcs11_call_token_func(struct p11_kit_uri *info, const unsigned retry); @@ -132,6 +131,7 @@ _gnutls_x509_crt_import_pkcs11_url(gnutls_x509_crt_t crt, #define SESSION_SO (1<<2) /* security officer session */ #define SESSION_TRUSTED (1<<3) /* session on a marked as trusted (p11-kit) module */ #define SESSION_FORCE_LOGIN (1<<4) /* force login even when CFK_LOGIN_REQUIRED is not set */ +#define SESSION_CONTEXT_SPECIFIC (1<<5) int pkcs11_open_session(struct pkcs11_session_info *sinfo, struct pin_info_st *pin_info, |