Skip to content

Commit

Permalink
Merge pull request #160 from Yu-Ma28051503/fix-typo-server-client
Browse files Browse the repository at this point in the history
fix typo VERIFY_USE_PREVERIFY in src/client/client.c and src/server/server.c
  • Loading branch information
JacobBarthelmeh authored Dec 9, 2024
2 parents 34cfd3f + 3f6e3d8 commit b43306e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/client/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
}
else if (XSTRNCMP(myoptarg, "verifyInfo", 10) == 0) {
printf("Verify should not override error\n");
myVerifyAction = VERIFY_USE_PREVERFIY;
myVerifyAction = VERIFY_USE_PREVERIFY;
}
else if (XSTRNCMP(myoptarg, "useSupCurve", 11) == 0) {
printf("Attempting to test use supported curve\n");
Expand Down Expand Up @@ -3369,7 +3369,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
#endif
}
if (useVerifyCb || myVerifyAction == VERIFY_FORCE_FAIL ||
myVerifyAction == VERIFY_USE_PREVERFIY) {
myVerifyAction == VERIFY_USE_PREVERIFY) {
wolfSSL_CTX_set_verify(ctx, WOLFSSL_VERIFY_PEER, myVerify);
}
else if (!usePsk && !useAnon && doPeerCheck == 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
}
else if (XSTRCMP(myoptarg, "verifyInfo") == 0) {
printf("Verify should use preverify (just show info)\n");
myVerifyAction = VERIFY_USE_PREVERFIY;
myVerifyAction = VERIFY_USE_PREVERIFY;
}
else if (XSTRCMP(myoptarg, "loadSSL") == 0) {
printf("Also load cert/key into wolfSSL object\n");
Expand Down

0 comments on commit b43306e

Please sign in to comment.