diff options
author | Stef Walter <stef@memberwebs.com> | 2008-12-08 18:19:09 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-12-08 18:19:09 +0000 |
commit | f3a8bb5aa844e519b327b0722017efe95051979c (patch) | |
tree | 5a4e2f0a5e6a58e7414a544761c28baf00986cd4 | |
parent | 78c2742af04355dc8914dae06d511df442993f1c (diff) |
Small fine tuning.
-rw-r--r-- | src/object.c | 4 |
1 files 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; } |