From f3a8bb5aa844e519b327b0722017efe95051979c Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 8 Dec 2008 18:19:09 +0000 Subject: Small fine tuning. --- src/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object.c b/src/object.c index c8acd77..1b9427a 100644 --- a/src/object.c +++ b/src/object.c @@ -146,7 +146,7 @@ test_get_attribute_value(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object) rv = (p11t_module_funcs->C_GetAttributeValue)(session, (CK_OBJECT_HANDLE)-58, attrs, 1); P11T_CHECK_RV("Invalid object", rv, CKR_OBJECT_HANDLE_INVALID); - rv = (p11t_module_funcs->C_GetAttributeValue)(session, object, NULL, 0); + rv = (p11t_module_funcs->C_GetAttributeValue)(session, object, NULL, 1); P11T_CHECK_RV("No template", rv, CKR_ARGUMENTS_BAD); attrs[0].pValue = buffer; @@ -262,7 +262,7 @@ test_get_attribute_value(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object) P11T_CHECK_BOOL("CKA_TOKEN boolean value", *((CK_BBOOL*)attrs[1].pValue)); P11T_CHECK_BOOL("CKA_PRIVATE boolean value", *((CK_BBOOL*)attrs[2].pValue)); P11T_CHECK_BOOL("CKA_MODIFIABLE boolean value", *((CK_BBOOL*)attrs[3].pValue)); - P11T_CHECK_STRING("CKA_LABEL boolean value", attrs[4].pValue, attrs[4].ulValueLen); + P11T_CHECK_STRING("CKA_LABEL value", attrs[4].pValue, attrs[4].ulValueLen); return CONTINUE; } -- cgit v1.2.3