summaryrefslogtreecommitdiff
path: root/ckcapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ckcapi.c')
-rw-r--r--ckcapi.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/ckcapi.c b/ckcapi.c
index a1243b8..0bed282 100644
--- a/ckcapi.c
+++ b/ckcapi.c
@@ -582,7 +582,7 @@ CC_C_GetAttributeValue(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object,
CK_ATTRIBUTE_PTR templ, CK_ULONG count)
{
CkCapiSession* sess;
- CkCapiObjectData objdata;
+ CkCapiObjectData* objdata;
CK_RV ret;
ENTER(C_GetAttributeValue);
@@ -593,12 +593,9 @@ CC_C_GetAttributeValue(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object,
ret = ckcapi_session_get_lock_ref(session, 0, &sess);
if(ret == CKR_OK)
{
- ret = ckcapi_object_load_data_for(sess, object, &objdata);
+ ret = ckcapi_session_get_object_data_for(sess, object, &objdata);
if(ret == CKR_OK)
- {
- ret = ckcapi_object_data_get_attrs(&objdata, templ, count);
- ckcapi_object_data_release(&objdata);
- }
+ ret = ckcapi_object_data_get_attrs(objdata, templ, count);
ckcapi_session_unref_unlock(sess);
}