From 27f37df0e068a0110a00f7b0b5808b260efd8a30 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Thu, 4 Jun 2020 09:50:47 -0600 Subject: [PATCH 1/2] Update arduino script to reflect includes of inline files --- IDE/ARDUINO/wolfssl-arduino.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IDE/ARDUINO/wolfssl-arduino.sh b/IDE/ARDUINO/wolfssl-arduino.sh index 6b46d7f1e..078dac852 100755 --- a/IDE/ARDUINO/wolfssl-arduino.sh +++ b/IDE/ARDUINO/wolfssl-arduino.sh @@ -32,6 +32,10 @@ if [ "$DIR" = "ARDUINO" ]; then mv ./wolfSSL/bio.c ./wolfSSL/wolfssl mv ./wolfSSL/evp.c ./wolfSSL/wolfssl + #make a copy for ssl.c to include inline + cp ./wolfSSL/wolfssl/evp.c ./wolfSSL/wolfcrypt/src/evp.c + cp ./wolfSSL/wolfssl/bio.c ./wolfSSL/wolfcrypt/src/bio.c + echo "/* Generated wolfSSL header file for Arduino */" > ./wolfSSL/wolfssl.h echo "#include " >> ./wolfSSL/wolfssl.h echo "#include " >> ./wolfSSL/wolfssl.h From 72360dee381a96e4fd503cc5e6edcda850cc5dde Mon Sep 17 00:00:00 2001 From: Kaleb Himes Date: Mon, 8 Jun 2020 11:39:06 -0600 Subject: [PATCH 2/2] Also bring over openSSL headers --- IDE/ARDUINO/wolfssl-arduino.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/IDE/ARDUINO/wolfssl-arduino.sh b/IDE/ARDUINO/wolfssl-arduino.sh index 078dac852..076a2a628 100755 --- a/IDE/ARDUINO/wolfssl-arduino.sh +++ b/IDE/ARDUINO/wolfssl-arduino.sh @@ -32,9 +32,13 @@ if [ "$DIR" = "ARDUINO" ]; then mv ./wolfSSL/bio.c ./wolfSSL/wolfssl mv ./wolfSSL/evp.c ./wolfSSL/wolfssl - #make a copy for ssl.c to include inline + # make a copy of evp.c and bio.c for ssl.c to include inline cp ./wolfSSL/wolfssl/evp.c ./wolfSSL/wolfcrypt/src/evp.c cp ./wolfSSL/wolfssl/bio.c ./wolfSSL/wolfcrypt/src/bio.c + + # copy openssl compatibility headers to their appropriate location + mkdir ./wolfSSL/wolfssl/openssl + cp ../../wolfssl/openssl/* ./wolfSSL/wolfssl/openssl echo "/* Generated wolfSSL header file for Arduino */" > ./wolfSSL/wolfssl.h echo "#include " >> ./wolfSSL/wolfssl.h