diff options
-rw-r--r-- | src/check.c | 7 |
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; } |