Skip to content

Commit c701565

Browse files
committed
fix posix tcp example with NO CRYPT
1 parent f140f88 commit c701565

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

examples/posix/wh_posix_client/wolfhsm_cfg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#define WOLFHSM_CFG_ENABLE_CLIENT
3030
#define WOLFHSM_CFG_HEXDUMP
3131
#define WOLFHSM_CFG_COMM_DATA_LEN 5000
32+
#ifndef WOLFHSM_CFG_NO_CRYPTO
3233
#define WOLFHSM_CFG_KEYWRAP
34+
#endif
3335

3436
#endif /* WOLFHSM_CFG_H_ */

examples/posix/wh_posix_server/wolfhsm_cfg.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#define WOLFHSM_CFG_KEYWRAP_MAX_KEY_SIZE 5000
4848

4949
#define XMEMFENCE() __atomic_thread_fence(__ATOMIC_SEQ_CST)
50+
#ifndef WOLFHSM_CFG_NO_CRYPTO
5051
#define WOLFHSM_CFG_KEYWRAP
51-
52+
#endif
5253
#endif /* WOLFHSM_CFG_H_ */

0 commit comments

Comments
 (0)