diff --git a/configure.ac b/configure.ac index f56cfd6b3..0a482ef03 100644 --- a/configure.ac +++ b/configure.ac @@ -3531,7 +3531,7 @@ fi if test "$ENABLED_OPENVPN" = "yes" then - AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB -DHAVE_EX_DATA" + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB -DHAVE_EX_DATA -DWOLFSSL_KEY_GEN" fi diff --git a/wolfssl/openssl/err.h b/wolfssl/openssl/err.h index ae50458d5..cb1acc094 100644 --- a/wolfssl/openssl/err.h +++ b/wolfssl/openssl/err.h @@ -22,7 +22,7 @@ #ifndef WOLFSSL_OPENSSL_ERR_ #define WOLFSSL_OPENSSL_ERR_ -#include +#include /* err.h for openssl */ #define ERR_load_crypto_strings wolfSSL_ERR_load_crypto_strings diff --git a/wolfssl/openssl/rsa.h b/wolfssl/openssl/rsa.h index 658dc7b46..6db3173b2 100644 --- a/wolfssl/openssl/rsa.h +++ b/wolfssl/openssl/rsa.h @@ -26,6 +26,7 @@ #define WOLFSSL_RSA_H_ #include +#include #include #ifdef __cplusplus diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 060d8a185..d84d5b3f7 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -31,6 +31,11 @@ extern "C" { #endif +/* include the options.h file ourselves for OpenVPN */ +#ifdef ENABLE_CRYPTO_WOLFSSL +#include +#endif + /* Uncomment next line if using IPHONE */ /* #define IPHONE */