summaryrefslogtreecommitdiff
path: root/lib/pkcs11_write.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-08 14:14:46 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-08 14:14:46 +0200
commit75607800c30f34731e2de396387e007ae71e8ee5 (patch)
treed83684c758bdfcff232c924960f792ce232b1d09 /lib/pkcs11_write.c
parent9573ebb1c95e460c7afbd1016838411bd897fc6e (diff)
downloadgnutls-75607800c30f34731e2de396387e007ae71e8ee5.tar.gz
PKCS#11 URL support updated to conform to draft-pechanec-pkcs11uri-02.
Now in the URL the pkcs11 provider library (module) can be specified thus restricting objects within a single provider.
Diffstat (limited to 'lib/pkcs11_write.c')
-rw-r--r--lib/pkcs11_write.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pkcs11_write.c b/lib/pkcs11_write.c
index b9e4e411a0..fac39de9c2 100644
--- a/lib/pkcs11_write.c
+++ b/lib/pkcs11_write.c
@@ -392,7 +392,9 @@ struct delete_data_st {
};
static int delete_obj_url(pakchois_session_t * pks,
- struct token_info *info, void *input)
+ struct token_info *info,
+ struct ck_info * lib_info,
+ void *input)
{
struct delete_data_st *find_data = input;
struct ck_attribute a[4];
@@ -411,7 +413,7 @@ static int delete_obj_url(pakchois_session_t * pks,
/* do not bother reading the token if basic fields do not match
*/
- if (pkcs11_token_matches_info(&find_data->info, &info->tinfo) < 0) {
+ if (pkcs11_token_matches_info(&find_data->info, &info->tinfo, lib_info) < 0) {
gnutls_assert();
return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE;
}