CK_ATTRIBUTE *result;
CK_ATTRIBUTE *attr;
p11_session *session;
+ char *string;
CK_ULONG i;
CK_RV rv;
- p11_debug ("in");
+ p11_debug ("in: %lu, %lu", handle, object);
p11_lock ();
p11_unlock ();
- p11_debug ("out: 0x%lx", rv);
+ if (p11_debugging) {
+ string = p11_attrs_to_string (template, count);
+ p11_debug ("out: 0x%lx %s", rv, string);
+ free (string);
+ }
return rv;
}
CK_BBOOL token;
FindObjects *find;
p11_session *session;
+ char *string;
CK_RV rv;
int n = 0;
- p11_debug ("in");
+ if (p11_debugging) {
+ string = p11_attrs_to_string (template, count);
+ p11_debug ("in: %lu, %s", handle, string);
+ free (string);
+ }
p11_lock ();
return_val_if_fail (count != NULL, CKR_ARGUMENTS_BAD);
- p11_debug ("in");
+ p11_debug ("in: %lu, %lu", handle, max_count);
p11_lock ();
p11_unlock ();
- p11_debug ("out: 0x%lx", rv);
+ p11_debug ("out: 0x%lx, %lu", handle, *count);
return rv;
}