summaryrefslogtreecommitdiff
path: root/module/p11-capi-cert.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-09 21:56:50 +0000
committerStef Walter <stef@memberwebs.com>2008-12-09 21:56:50 +0000
commitfb9374be05108422a9662217e727b940ef896bf6 (patch)
tree94d427a86793569de3f589d6770bd8821b820b57 /module/p11-capi-cert.c
parenta414a5af4b26f039ad7b0a592aca12d2b14b1654 (diff)
Fix copious amounts of debugging messages. Add concept of warning messages.
Diffstat (limited to 'module/p11-capi-cert.c')
-rw-r--r--module/p11-capi-cert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/p11-capi-cert.c b/module/p11-capi-cert.c
index 53e198f..49cc508 100644
--- a/module/p11-capi-cert.c
+++ b/module/p11-capi-cert.c
@@ -89,7 +89,7 @@ parse_basic_constraints(CertObjectData* cdata, CK_ULONG* category)
{
if(basic->SubjectType.cbData != 1)
{
- DBG(("basic constraints bits are of invalid size"));
+ WARN(("basic constraints bits are of invalid size"));
ret = CKR_GENERAL_ERROR;
}
else
@@ -372,7 +372,7 @@ calculate_check_value(PCCERT_CONTEXT cert, CK_ATTRIBUTE_PTR attr)
if(length < 3)
{
- DBG(("SHA1 hash length too short: %d", length));
+ WARN(("SHA1 hash length too short: %d", length));
return CKR_DEVICE_ERROR;
}