diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-05-24 19:37:57 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-03 19:54:55 +0200 |
commit | 9f4fae2679f34e0e42b86e38cce00cec60f149bb (patch) | |
tree | 8730deb5680a763997ac3f585c2be5d718077eb4 /lib/pkcs11_write.c | |
parent | df646c6712a91db5e314268829d835c046d15b57 (diff) | |
download | gnutls-9f4fae2679f34e0e42b86e38cce00cec60f149bb.tar.gz |
Simplified internal API. The only question that remains now is how to handle
the gnutls_pkcs11_privkey_t. Currently it opens a session and maintains a handle
to the object. This will require locks to be added on operations. Alternatively
new sessions may be opened for each operation performed. This is guarranteed by
PKCS #11 to be thread safe but will of course require to ask for the PIN again.
Diffstat (limited to 'lib/pkcs11_write.c')
-rw-r--r-- | lib/pkcs11_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pkcs11_write.c b/lib/pkcs11_write.c index 04f0001eee..87bcbd0d12 100644 --- a/lib/pkcs11_write.c +++ b/lib/pkcs11_write.c @@ -499,7 +499,7 @@ int gnutls_pkcs11_delete_url(const char* object_url) return ret; } - ret = _pkcs11_traverse_tokens(delete_obj_url, &find_data, 0, SESSION_WRITE); + ret = _pkcs11_traverse_tokens(delete_obj_url, &find_data, SESSION_WRITE); if (ret < 0) { gnutls_assert(); return ret; |