Skip to content

Commit

Permalink
More fixes for compilier quieting. 5
Browse files Browse the repository at this point in the history
  • Loading branch information
billphipps committed Apr 4, 2024
1 parent 5e46371 commit 13624c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/wh_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/* Server API's */
#include "wolfhsm/wh_server.h"
#include "wolfhsm/wh_server_internal.h"
#include "wolfhsm/wh_server_nvm.h"
#include "wolfhsm/wh_server_crypto.h"
#if defined(WOLFHSM_SHE_EXTENSION)
#include "wolfhsm/wh_server_she.h"
Expand Down
4 changes: 3 additions & 1 deletion src/wh_server_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include "wolfhsm/wh_server.h"
#include "wolfhsm/wh_packet.h"

#include "wolfhsm/wh_server_crypto.h"

static int hsmGetUniqueId(whServerContext* server)
{
int i;
Expand Down Expand Up @@ -232,7 +234,7 @@ int wh_Server_HandleCryptoRequest(whServerContext* server,
uint16_t action, uint8_t* data, uint16_t* size)
{
int ret = 0;
uint32_t field;
word32 field;
uint8_t* out;
whPacket* packet = (whPacket*)data;
#ifdef WOLFHSM_SYMMETRIC_INTERNAL
Expand Down
2 changes: 2 additions & 0 deletions src/wh_server_nvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include "wolfhsm/wh_message_nvm.h"
#include "wolfhsm/wh_server.h"

#include "wolfhsm/wh_server_nvm.h"

int wh_Server_HandleNvmRequest(whServerContext* server,
uint16_t magic, uint16_t action, uint16_t seq,
uint16_t req_size, const void* req_packet,
Expand Down
6 changes: 3 additions & 3 deletions wolfhsm/wh_server_nvm.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef WOLFHSM_WH_SERVER_INTERNAL_H_
#define WOLFHSM_WH_SERVER_INTERNAL_H_
#ifndef WOLFHSM_WH_SERVER_NVM_H_
#define WOLFHSM_WH_SERVER_NVM_H_

/*
* WolfHSM Internal Server API
Expand All @@ -17,4 +17,4 @@ int wh_Server_HandleNvmRequest(whServerContext* server,
uint16_t req_size, const void* req_packet,
uint16_t *out_resp_size, void* resp_packet);

#endif /* WOLFHSM_WH_SERVER_INTERNAL_H_ */
#endif /* WOLFHSM_WH_SERVER_NVM_H_ */

0 comments on commit 13624c9

Please sign in to comment.