Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c10bed8
Initial Auth Manager framework and user add message communication
JacobBarthelmeh Dec 9, 2025
4565e2c
set credentials messaging
JacobBarthelmeh Dec 29, 2025
bc75ded
login messaging and demo login
JacobBarthelmeh Dec 30, 2025
06a8117
variable length for set credentials message and logout/login touch up
JacobBarthelmeh Dec 31, 2025
8c68f5d
demo using certificates for login credentials
JacobBarthelmeh Dec 31, 2025
a0573be
add delete user and get user implementations
JacobBarthelmeh Jan 7, 2026
5cf731b
add demo for set permissions and update delete function to have curre…
JacobBarthelmeh Jan 9, 2026
412e41e
check in test cases planned so far
JacobBarthelmeh Jan 9, 2026
c64f0f2
updates for dynmaic size of credentials and auth data
JacobBarthelmeh Jan 14, 2026
aa13be1
check in wh_auth_base.h file
JacobBarthelmeh Jan 14, 2026
b95956d
add auth login and logout tests
JacobBarthelmeh Jan 14, 2026
8c8b9f5
add sanity checks on username size
JacobBarthelmeh Jan 14, 2026
27c6b08
add client only tcp auth tests
JacobBarthelmeh Jan 15, 2026
e6bb65b
adding bad function argument tests
JacobBarthelmeh Jan 15, 2026
c92904b
better server response to authorization error cases
JacobBarthelmeh Jan 15, 2026
2d953d5
remove debug printf's and make note for future logging location
JacobBarthelmeh Jan 15, 2026
62fe4eb
run git-clang-format and checking format changes
JacobBarthelmeh Jan 16, 2026
cd88f8c
adding in more function comments
JacobBarthelmeh Jan 16, 2026
bc144d9
move base example auth users to port/posix directory
JacobBarthelmeh Jan 16, 2026
3962458
spelling fixes, cast on sizeof return, macro guard for certificate us…
JacobBarthelmeh Jan 16, 2026
11e59a1
check in auth demo client files
JacobBarthelmeh Jan 16, 2026
e87b4aa
update action permissions and method in message layer
JacobBarthelmeh Jan 16, 2026
26634d5
fix for bitmask of permissions and remove permissions return from login
JacobBarthelmeh Jan 19, 2026
0b88d71
add auth login as admin during SHE tests
JacobBarthelmeh Jan 19, 2026
b4245cd
update posix client auth demo for new login function signature
JacobBarthelmeh Jan 19, 2026
37baeab
touch up of comments and demo
JacobBarthelmeh Jan 20, 2026
4d0af48
Fix typo and remove redundent return value check
JacobBarthelmeh Jan 20, 2026
1fad291
account for no WOLFHSM_CFG_ENABLE_SERVER build with test case
JacobBarthelmeh Jan 22, 2026
922e60d
addressing some feedback about sanity checks and null string terminators
JacobBarthelmeh Jan 22, 2026
71c5708
update login comments and add defensive memset's
JacobBarthelmeh Jan 22, 2026
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
16 changes: 16 additions & 0 deletions examples/demo/client/wh_demo_client_all.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "wh_demo_client_wctest.h"
#include "wh_demo_client_wcbench.h"
#include "wh_demo_client_nvm.h"
#include "wh_demo_client_auth.h"
#include "wh_demo_client_keystore.h"
#include "wh_demo_client_crypto.h"
#include "wh_demo_client_secboot.h"
Expand All @@ -10,6 +11,21 @@
int wh_DemoClient_All(whClientContext* clientContext)
{
int rc = 0;
whUserId userId = WH_USER_ID_INVALID;
/* Auth demos */
rc = wh_DemoClient_Auth(clientContext);
if (rc != 0) {
return rc;
}

/* Log in as an admin user for the rest of the tests */
if (wh_Client_AuthLogin(clientContext, WH_AUTH_METHOD_PIN, "admin", "1234",
4, &rc, &userId) != 0) {
return -1;
}
if (rc != 0) {
return rc;
}

/* wolfCrypt test and benchmark */
#ifdef WH_DEMO_WCTEST
Expand Down
Loading