summaryrefslogtreecommitdiff
path: root/lib/pkcs11_write.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-07-16 20:46:24 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-07-16 20:46:27 +0200
commitb92c13fba98e17628e3e63de43da3bc3966da618 (patch)
tree8b36ab4ae30a940e48f610d8b52719228b12f722 /lib/pkcs11_write.c
parenteacb2e35f561f2afe67c26a8939f0ad91d68c935 (diff)
downloadgnutls-b92c13fba98e17628e3e63de43da3bc3966da618.tar.gz
Added PIN callbacks in structures that may require PIN access to override the global callbacks.
Diffstat (limited to 'lib/pkcs11_write.c')
-rw-r--r--lib/pkcs11_write.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pkcs11_write.c b/lib/pkcs11_write.c
index 3549213f9c..5717b992d9 100644
--- a/lib/pkcs11_write.c
+++ b/lib/pkcs11_write.c
@@ -73,7 +73,7 @@ gnutls_pkcs11_copy_x509_crt (const char *token_url,
}
ret =
- pkcs11_open_session (&sinfo, info,
+ pkcs11_open_session (&sinfo, NULL, info,
SESSION_WRITE | pkcs11_obj_flags_to_int (flags));
p11_kit_uri_free (info);
@@ -274,7 +274,7 @@ gnutls_pkcs11_copy_x509_privkey (const char *token_url,
}
ret =
- pkcs11_open_session (&sinfo, info,
+ pkcs11_open_session (&sinfo, NULL, info,
SESSION_WRITE | pkcs11_obj_flags_to_int (flags));
p11_kit_uri_free (info);
@@ -678,7 +678,7 @@ gnutls_pkcs11_delete_url (const char *object_url, unsigned int flags)
ret =
_pkcs11_traverse_tokens (delete_obj_url, &find_data, find_data.info,
- SESSION_WRITE | pkcs11_obj_flags_to_int (flags));
+ NULL, SESSION_WRITE | pkcs11_obj_flags_to_int (flags));
p11_kit_uri_free (find_data.info);
if (ret < 0)
@@ -790,7 +790,7 @@ gnutls_pkcs11_token_set_pin (const char *token_url,
else
ses_flags = SESSION_WRITE | SESSION_LOGIN;
- ret = pkcs11_open_session (&sinfo, info, ses_flags);
+ ret = pkcs11_open_session (&sinfo, NULL, info, ses_flags);
p11_kit_uri_free (info);
if (ret < 0)