Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/build-and-run-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
cd examples/posix/wh_posix_client
./Build/wh_posix_client.elf --type ${{ matrix.transport }}

- name: Run POSIX demo test
if: matrix.transport == 'tcp'
run: |
cd examples/posix/wh_posix_client
./Build/wh_posix_client.elf --type ${{ matrix.transport }} --test

# Optional: Kill the server process if it doesn't exit on its own
- name: Cleanup POSIX server
if: always()
Expand Down
15 changes: 5 additions & 10 deletions examples/demo/client/wh_demo_client_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int wh_DemoClient_CryptoRsaImport(whClientContext* clientContext)
int keySz;
int needEvict = 0;
whKeyId keyId = WH_KEYID_ERASED;
char keyFile[] = "../../../demo/certs/rsa-2048-key.der";
char keyFile[] = "../../demo/certs/rsa-2048-key.der";
const char plainString[] = "The quick brown fox jumps over the lazy dog.";
char keyLabel[] = "baby's first key";
uint8_t keyBuf[2048];
Expand Down Expand Up @@ -329,13 +329,8 @@ int wh_DemoClient_CryptoCurve25519Import(whClientContext* clientContext)
word32 outLen;
whKeyId keyIdBob = WH_KEYID_ERASED;
whKeyId keyIdAlice = WH_KEYID_ERASED;
#if 0
char keyPairFileBob[] = "../../../demo/certs/curve25519_keyBob.der";
Comment thread
bigbrett marked this conversation as resolved.
char keyPairFileAlice[] = "../../../demo/certs/curve25519_keyAlice.der";
#else
char keyPairFileBob[] = "../../../demo/certs/curve25519_keyBob.der";
char keyPairFileAlice[] = "../../../demo/certs/curve25519_keyAlice.der";
#endif
char keyPairFileBob[] = "../../demo/certs/curve25519_keyBob.der";
char keyPairFileAlice[] = "../../demo/certs/curve25519_keyAlice.der";
char keyLabel[] = "baby's first key";
uint8_t keyBuf[256];
uint8_t sharedOne[CURVE25519_KEYSIZE];
Expand Down Expand Up @@ -609,8 +604,8 @@ int wh_DemoClient_CryptoEccImport(whClientContext* clientContext)
whKeyId keyIdBob = WH_KEYID_ERASED;
word32 outLen;
word32 sigLen;
char keyFileAlice[] = "../../../demo/certs/alice-ecc256-key.der";
char keyFileBob[] = "../../../demo/certs/bob-ecc256-key.der";
char keyFileAlice[] = "../../demo/certs/alice-ecc256-key.der";
char keyFileBob[] = "../../demo/certs/bob-ecc256-key.der";
char keyLabel[] = "baby's first key";
ecc_key aliceKey[1];
ecc_key bobKey[1];
Expand Down