Merge pull request #386 from tim-weller-wolfssl/psa-updates

Update PSA example
pull/388/head
JacobBarthelmeh 2023-05-17 15:49:09 -06:00 committed by GitHub
commit 92221bb303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@ MBEDTLS_COMMIT_ID=acc74b841307659eea0461275c7c0309874c87d7
MBEDTLS_DIR=${MBEDTLS_DIR:="/tmp/mbedtls"}
MBEDTLS_INCLUDE_DIR=${MBEDTLS_DIR}/build/include/
MBEDTLS_LIB_DIR=${MBEDTLS_DIR}/build/library/
WOLFSSL_INSTALL=${WOLFSSL_INSTALL:="/usr/local"}
# uncomment to enable debug build
#MBEDTLS_DEBUG="-DCMAKE_BUILD_TYPE=Debug"
@ -48,7 +49,7 @@ build_wolfssl() {
CFLAGS="-Wno-error=redundant-decls -Werror -Wswitch-enum -Wno-error=switch-enum -DWOLFSSL_PSA_GLOBAL_LOCK ${WOLFSSL_DEBUG}" \
./configure \
--enable-psa --with-psa-include="${MBEDTLS_INCLUDE_DIR}" --enable-pkcallbacks\
--disable-examples --disable-benchmark --disable-crypttests
--disable-examples --disable-benchmark --disable-crypttests --prefix="${WOLFSSL_INSTALL}"
make
}

View File

@ -131,7 +131,7 @@ int main(int argc, char** argv)
return 0;
}
#ifdef DEBUG
#ifdef DEBUG_WOLFSSL
wolfSSL_Debugging_ON();
#endif

View File

@ -198,7 +198,7 @@ int main(int argc, char** argv)
/* Initialize wolfSSL */
wolfSSL_Init();
#ifdef DEBUG
#ifdef DEBUG_WOLFSSL
wolfSSL_Debugging_ON();
#endif