summaryrefslogtreecommitdiff
path: root/lib/pkcs11_privkey.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-10-30 09:57:09 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-11-03 16:10:55 +0000
commite85d0a63b6ffd4421a89bba86d58ec8cf9635aac (patch)
tree2fea7cd72eb8a0e5ecf53135ff8f2b5eccdef325 /lib/pkcs11_privkey.c
parent09e57d228c75dec9699ce5f45c8b1a84fe13a0bb (diff)
downloadgnutls-e85d0a63b6ffd4421a89bba86d58ec8cf9635aac.tar.gz
pkcs11: introduce multiple levels of loading
That allows to load the PKCS#11 trusted modules (on systems which use them) without loading all the potentially present PKCS#11 modules. Relates #315 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/pkcs11_privkey.c')
-rw-r--r--lib/pkcs11_privkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pkcs11_privkey.c b/lib/pkcs11_privkey.c
index 34fe47a38c..1665cf33f3 100644
--- a/lib/pkcs11_privkey.c
+++ b/lib/pkcs11_privkey.c
@@ -36,7 +36,7 @@
/* In case of a fork, it will invalidate the open session
* in the privkey and start another */
#define PKCS11_CHECK_INIT_PRIVKEY(k) \
- ret = _gnutls_pkcs11_check_init(k, reopen_privkey_session); \
+ ret = _gnutls_pkcs11_check_init(0, k, reopen_privkey_session); \
if (ret < 0) \
return gnutls_assert_val(ret)