diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-03-11 14:49:04 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-03-11 16:12:30 +0100 |
commit | 6199c2271d843e48737557c9c1f6f867ddc4d104 (patch) | |
tree | 6ab2d0677ee81d0077501750e90e2939bebdad0f /lib/pkcs11_int.c | |
parent | 58d7dde8a8a6fce1a8aa9aeb29f2247212fe5acd (diff) | |
download | gnutls-6199c2271d843e48737557c9c1f6f867ddc4d104.tar.gz |
added gnutls_pkcs11_obj_set_info()
This function allows setting information such as the CKA_ID
and the CKA_LABEL of an object.
Resolves #1
Diffstat (limited to 'lib/pkcs11_int.c')
-rw-r--r-- | lib/pkcs11_int.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/pkcs11_int.c b/lib/pkcs11_int.c index 9ff2d98bcf..848b8b94b0 100644 --- a/lib/pkcs11_int.c +++ b/lib/pkcs11_int.c @@ -96,6 +96,16 @@ ck_rv_t pkcs11_close_session(struct pkcs11_session_info * sinfo) } ck_rv_t +pkcs11_set_attribute_value(struct ck_function_list * module, + ck_session_handle_t sess, + ck_object_handle_t object, + struct ck_attribute * templ, + unsigned long count) +{ + return (module)->C_SetAttributeValue(sess, object, templ, count); +} + +ck_rv_t pkcs11_get_attribute_value(struct ck_function_list * module, ck_session_handle_t sess, ck_object_handle_t object, |