Skip to content

Commit 8c346ce

Browse files
committed
fix keywrap macro protection to avoid unused function warnings
1 parent bcdac71 commit 8c346ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wh_server_keystore.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,9 +765,11 @@ int wh_Server_KeystoreEraseKey(whServerContext* server, whNvmId keyId)
765765
return WH_ERROR_BADARGS;
766766
}
767767

768+
#ifdef WOLFHSM_CFG_KEYWRAP
768769
if (_IsKnownWrappedKey(server, keyId)) {
769770
return WH_ERROR_ABORTED;
770771
}
772+
#endif
771773

772774
/* remove the key from the cache if present */
773775
(void)wh_Server_KeystoreEvictKey(server, keyId);

0 commit comments

Comments
 (0)