File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,4 +45,15 @@ RESULT=$?
4545RESULT=$?
4646[ $RESULT -ne 0 ] && echo -e " \n\nClient connection failed" && exit 1
4747
48+ # test again, but using system CA certs to verify the server if support is enabled.
49+ # We don't want to use --sys-ca-certs with static memory, as we don't know how
50+ # much memory will be required to store an unbounded number of certs
51+ BUILD_FLAGS=" $( ./examples/client/client ' -#' ) "
52+ if echo " $BUILD_FLAGS " | grep -q " WOLFSSL_SYS_CA_CERTS" && ! echo " $BUILD_FLAGS " | grep -q " WOLFSSL_STATIC_MEMORY" ; then
53+ echo -e " \nConnecting using WOLFSSL_SYS_CA_CERTS..."
54+ ./examples/client/client -X -C -h $server -p 443 -g --sys-ca-certs
55+ RESULT=$?
56+ [ $RESULT -ne 0 ] && echo -e " \n\nClient connection failed when using WOLFSSL_SYS_CA_CERTS" && exit 1
57+ fi
58+
4859exit 0
You can’t perform that action at this time.
0 commit comments