summaryrefslogtreecommitdiff
path: root/lib/pkcs11_int.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-11 14:49:04 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-11 16:12:30 +0100
commit6199c2271d843e48737557c9c1f6f867ddc4d104 (patch)
tree6ab2d0677ee81d0077501750e90e2939bebdad0f /lib/pkcs11_int.c
parent58d7dde8a8a6fce1a8aa9aeb29f2247212fe5acd (diff)
downloadgnutls-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.c10
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,