Skip to content

Commit f140f88

Browse files
committed
Addressed code review comment
1 parent c04c110 commit f140f88

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

examples/posix/wh_posix_server/wh_posix_server_cfg.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
/*
22
* Example server app using POSIX transport
33
*/
4-
#if defined(WOLFHSM_CFG_NO_CRYPTO)
5-
#include <stdio.h> /* For printf */
6-
#include <stdlib.h> /* For atoi */
7-
#include <string.h> /* For memset, memcpy, strcmp */
8-
#include <sys/types.h>
9-
#include <ctype.h>
10-
#endif
4+
/*#if defined(WOLFHSM_CFG_NO_CRYPTO)*/
115
#include "wh_posix_cfg.h"
126
#include "wh_posix_server_cfg.h"
137

wolfhsm/wh_server.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ typedef struct whServerContext_t whServerContext;
4444
#include "wolfhsm/wh_dma.h"
4545
#endif /* WOLFHSM_CFG_DMA */
4646

47+
/* WolfCrypt types and defines */
48+
#include "wolfssl/wolfcrypt/types.h"
49+
4750
#ifndef WOLFHSM_CFG_NO_CRYPTO
4851
#include "wolfssl/wolfcrypt/settings.h"
49-
#include "wolfssl/wolfcrypt/types.h"
5052
#include "wolfssl/wolfcrypt/random.h"
5153
#include "wolfssl/wolfcrypt/rsa.h"
5254
#include "wolfssl/wolfcrypt/ecc.h"

0 commit comments

Comments
 (0)