wolfSSL: Use variable type WC_RNG instead of RNG
[privoxy.git] / wolfssl.c
index 04108e8..0ca0605 100644 (file)
--- a/wolfssl.c
+++ b/wolfssl.c
@@ -37,6 +37,7 @@
 
 #include <wolfssl/options.h>
 #include <wolfssl/openssl/x509v3.h>
+#include <wolfssl/openssl/pem.h>
 #include <wolfssl/ssl.h>
 #include <wolfssl/wolfcrypt/coding.h>
 #include <wolfssl/wolfcrypt/rsa.h>
@@ -65,7 +66,7 @@ static int wolfssl_initialized = 0;
  * doesn't matter because we only use it with
  * the certificate_mutex locked.
  */
-static RNG wolfssl_rng;
+static WC_RNG wolfssl_rng;
 
 #ifndef WOLFSSL_ALT_CERT_CHAINS
 /*
@@ -1735,7 +1736,7 @@ static int load_rsa_key(const char *rsa_key_path, const char *password, RsaKey *
 }
 
 #ifndef WOLFSSL_ALT_NAMES
-#error wolfSSL lacks Subject Alternative Name support
+#error wolfSSL lacks Subject Alternative Name support (WOLFSSL_ALT_NAMES) which is mandatory
 #endif
 /*********************************************************************
  *