From 87fb1f9fd431e78b9e68ebf8ee1ddb11bbed8e0a Mon Sep 17 00:00:00 2001 From: Brett Nicholas <7547222+bigbrett@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:15:19 -0600 Subject: [PATCH] added more skeleton files --- demo/client/client_counter.c | 7 +++++++ demo/client/client_counter.h | 7 +++++++ demo/client/client_crypto.c | 7 +++++++ demo/client/client_crypto.h | 7 +++++++ demo/client/client_demo_driver.c | 2 +- demo/client/client_keystore.c | 6 ++++++ demo/client/client_keystore.h | 7 +++++++ demo/client/client_nvm.c | 2 +- demo/client/client_nvm.h | 2 +- 9 files changed, 44 insertions(+), 3 deletions(-) diff --git a/demo/client/client_counter.c b/demo/client/client_counter.c index e69de29..eea67ee 100644 --- a/demo/client/client_counter.c +++ b/demo/client/client_counter.c @@ -0,0 +1,7 @@ +#include "client_counter.h" +#include "wolfhsm/wh_error.h" + +int client_counter_demo(whClientContext* clientContext) +{ + return WH_ERROR_OK; +} \ No newline at end of file diff --git a/demo/client/client_counter.h b/demo/client/client_counter.h index e69de29..f7d795e 100644 --- a/demo/client/client_counter.h +++ b/demo/client/client_counter.h @@ -0,0 +1,7 @@ +#ifndef CLIENT_COUNTER_H +#define CLIENT_COUNTER_H +#include "wolfhsm/wh_client.h" + +int client_counter_demo(whClientContext* clientContext); + +#endif /* CLIENT_COUNTER_H */ \ No newline at end of file diff --git a/demo/client/client_crypto.c b/demo/client/client_crypto.c index e69de29..cca687e 100644 --- a/demo/client/client_crypto.c +++ b/demo/client/client_crypto.c @@ -0,0 +1,7 @@ +#include "client_crypto.h" +#include "wolfhsm/wh_error.h" + +int client_crypto_demo(whClientContext* clientContext); +{ + return WH_ERROR_OK; +} \ No newline at end of file diff --git a/demo/client/client_crypto.h b/demo/client/client_crypto.h index e69de29..1f78667 100644 --- a/demo/client/client_crypto.h +++ b/demo/client/client_crypto.h @@ -0,0 +1,7 @@ +#ifndef CLIENT_CRYPTO_H_ +#define CLIENT_CRYPTO_H_ +#include "wolfhsm/wh_client.h" + +int client_crypto_demo(whClientContext* clientContext); + +#endif /* CLIENT_CRYPTO_H_ */ \ No newline at end of file diff --git a/demo/client/client_demo_driver.c b/demo/client/client_demo_driver.c index 47a619c..a002b7c 100644 --- a/demo/client/client_demo_driver.c +++ b/demo/client/client_demo_driver.c @@ -5,7 +5,7 @@ int client_demo_driver(whClientContext* clientContext) { int rc = 0; - rc = client_nvm(clientContext); + rc = client_nvm_demo(clientContext); if (rc != 0) { return rc; } diff --git a/demo/client/client_keystore.c b/demo/client/client_keystore.c index e69de29..0335fbd 100644 --- a/demo/client/client_keystore.c +++ b/demo/client/client_keystore.c @@ -0,0 +1,6 @@ +#include "client_keystore.h" + +int client_keystore_demo(whClientContext* clientContext) +{ + return WH_ERROR_OK; +} \ No newline at end of file diff --git a/demo/client/client_keystore.h b/demo/client/client_keystore.h index e69de29..14b6c21 100644 --- a/demo/client/client_keystore.h +++ b/demo/client/client_keystore.h @@ -0,0 +1,7 @@ +#ifndef CLIENT_KEYSTORE_H_ +#define CLIENT_KEYSTORE_H_ +#include "wolfhsm/wh_client.h" + +int client_keystore_demo(whClientContext* clientContext); + +#endif /* CLIENT_KEYSTORE_H_ */ \ No newline at end of file diff --git a/demo/client/client_nvm.c b/demo/client/client_nvm.c index 531fab3..49599ca 100644 --- a/demo/client/client_nvm.c +++ b/demo/client/client_nvm.c @@ -11,7 +11,7 @@ * @param clientContext an initialized client context * @return 0 on success, error code on failure */ -int client_nvm(whClientContext* clientContext) +int client_nvm_demo(whClientContext* clientContext) { const int NUM_OBJECTS = 3; diff --git a/demo/client/client_nvm.h b/demo/client/client_nvm.h index 2386217..5c10dc1 100644 --- a/demo/client/client_nvm.h +++ b/demo/client/client_nvm.h @@ -3,7 +3,7 @@ #include "wolfhsm/wh_client.h" -int client_nvm(whClientContext* clientContext); +int client_nvm_demo(whClientContext* clientContext); #endif /* CLIENT_NVM_H_ */