Added more attribute extraction for objects.

This commit is contained in:
Alessio Di Mauro
2015-08-06 16:22:48 +02:00
parent e3acd1f027
commit fa2cdaa2ed
5 changed files with 150 additions and 227 deletions
+2 -2
View File
@@ -15,7 +15,7 @@
printf ("\n"); \
} while (0)
#define YKCS11_DBG 1 // General debug, must be either 1 or 0
#define YKCS11_DBG 0 // General debug, must be either 1 or 0
#define YKCS11_DINOUT 0 // Function in/out debug, must be either 1 or 0
#define YKCS11_MANUFACTURER "Yubico (www.yubico.com)"
@@ -838,7 +838,7 @@ CK_DEFINE_FUNCTION(CK_RV, C_GetAttributeValue)(
// TODO: this function has some complex cases for return vlaue. Make sure to check them.
if (rv != CKR_OK) {
DBG(("Unable to get attribute %lu of object %lu", (pTemplate + i)->type, hObject));
DBG(("Unable to get attribute 0x%lx of object %lu", (pTemplate + i)->type, hObject));
rv_final = rv;
}
}