summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-06 15:40:16 +0000
committerStef Walter <stef@memberwebs.com>2008-12-06 15:40:16 +0000
commit78c2742af04355dc8914dae06d511df442993f1c (patch)
treea756e7d3f543383369a1dc653d1c2045e7e5ad33
parent3a09c5c75038efe0e0c55b73dd234731fbc2c061 (diff)
Treat 'not supported' differently when returned in a CK_RV
-rw-r--r--src/check.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/check.c b/src/check.c
index 9609779..d51457c 100644
--- a/src/check.c
+++ b/src/check.c
@@ -39,8 +39,11 @@ _p11t_check_rv(const char *what, CK_RV have, CK_RV want)
{
if(have != want)
{
- p11t_check_fail("%s: expected %s but got %s", what,
- p11t_msg_rv(want), p11t_msg_rv(have));
+ if(have == CKR_FUNCTION_NOT_SUPPORTED)
+ p11t_check_info("Not supported");
+ else
+ p11t_check_fail("%s: expected %s but got %s", what,
+ p11t_msg_rv(want), p11t_msg_rv(have));
return STOP;
}