From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 31 Mar 2024 15:01:36 +0000 (+0200)
Subject: wolfSSL: Use variable type WC_RNG instead of RNG
X-Git-Tag: v_4_0_0~69
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/static/@default-cgi@show-status?a=commitdiff_plain;h=e3785036766088f2eaafbede89eff8502cc9a720;p=privoxy.git

wolfSSL: Use variable type WC_RNG instead of RNG

As Roland reported [0] the latter may not be available.

[0] <https://lists.privoxy.org/pipermail/privoxy-devel/2024-March/000759.html>
---

diff --git a/wolfssl.c b/wolfssl.c
index 08f3d715..0ca0605f 100644
--- a/wolfssl.c
+++ b/wolfssl.c
@@ -66,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
 /*