[ldapvi] [PATCH] Include <openssl/rand.h> for the RAND_bytes function

Florian Weimer fweimer at redhat.com
Sat Dec 17 22:04:41 CET 2022


---
 ldapvi/port.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ldapvi/port.c b/ldapvi/port.c
index b217f5d..08dec2e 100644
--- a/ldapvi/port.c
+++ b/ldapvi/port.c
@@ -35,6 +35,7 @@
 #if defined(HAVE_OPENSSL)
 #include <openssl/sha.h>
 #include <openssl/md5.h>
+#include <openssl/rand.h>
 #elif defined(HAVE_GNUTLS)
 #include <gnutls/gnutls.h>
 #include <gnutls/openssl.h>

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>




More information about the ldapvi mailing list