Skip to content

Commit f657fa8

Browse files
author
Andras Fekete
committed
Fix compilation errors
1 parent 498f455 commit f657fa8

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

include/wolfprovider/internal.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@
3838

3939
#include "wp_params.h"
4040

41+
#ifndef AES_BLOCK_SIZE
42+
#include <openssl/aes.h>
43+
#ifndef AES_BLOCK_SIZE
44+
#ifdef WC_NO_COMPAT_AES_BLOCK_SIZE
45+
#define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE
46+
#else
47+
#error AES_BLOCK_SIZE not defined when it should be
48+
#endif
49+
#endif
50+
#endif
51+
4152
#ifndef WP_INTERNAL_H
4253
#define WP_INTERNAL_H
4354

scripts/utils-wolfssl.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
2222
source ${SCRIPT_DIR}/utils-general.sh
2323

2424
WOLFSSL_GIT=${WOLFSSL_GIT:-"https://github.com/wolfSSL/wolfssl.git"}
25-
WOLFSSL_TAG=${WOLFSSL_TAG:-"v5.7.2-stable"}
25+
WOLFSSL_TAG=${WOLFSSL_TAG:-"v5.7.4-stable"}
2626
WOLFSSL_SOURCE_DIR=${SCRIPT_DIR}/../wolfssl-source
2727
WOLFSSL_INSTALL_DIR=${SCRIPT_DIR}/../wolfssl-install
2828
WOLFSSL_ISFIPS=${WOLFSSL_ISFIPS:-0}
@@ -78,10 +78,10 @@ install_wolfssl() {
7878
fi
7979
if [ "$WOLFSSL_ISFIPS" = "1" ]; then
8080
printf "with FIPS ... "
81-
CONF_ARGS+=" --enable-fips=ready"
81+
CONF_ARGS+=" --enable-fips=v5"
8282
if [ ! -e "XXX-fips-test" ]; then
8383
# Sometimes the system OpenSSL is different than the one we're using. So for the 'git' commands, we'll just use whatever the system comes with
84-
LD_LIBRARY_PATH="" ./fips-check.sh keep nomakecheck fips-ready >>$LOG_FILE 2>&1
84+
LD_LIBRARY_PATH="" ./fips-check.sh keep nomakecheck linuxv5 >>$LOG_FILE 2>&1
8585
if [ $? != 0 ]; then
8686
printf "ERROR checking out FIPS\n"
8787
rm -rf ${WOLFSSL_INSTALL_DIR}

0 commit comments

Comments
 (0)