Przeglądaj źródła

Also bring over openSSL headers

Kaleb Himes 4 lat temu
rodzic
commit
72360dee38
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      IDE/ARDUINO/wolfssl-arduino.sh

+ 5 - 1
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/wolfcrypt/settings.h>" >> ./wolfSSL/wolfssl.h