diff --git a/src/lib/backend.c b/src/lib/backend.c index ca5e2ccf..128f58b9 100644 --- a/src/lib/backend.c +++ b/src/lib/backend.c @@ -53,7 +53,9 @@ CK_RV backend_init(void) { LOGE(msg); return rv; } - LOGW(msg); + if (rv != CKR_FUNCTION_NOT_SUPPORTED) { + LOGW(msg); + } } else { fapi_init = true; } diff --git a/src/lib/backend_fapi.c b/src/lib/backend_fapi.c index 2812bc77..dc23637d 100644 --- a/src/lib/backend_fapi.c +++ b/src/lib/backend_fapi.c @@ -977,7 +977,8 @@ CK_RV backend_fapi_token_changeauth(token *tok, bool user, twist toldpin, twist CK_RV backend_fapi_init(void) { - return CKR_OK; + LOGV("FAPI not enabled, failing init"); + return CKR_FUNCTION_NOT_SUPPORTED; } CK_RV backend_fapi_destroy(void) {