Files
haikuports/dev-libs/openssl/patches/openssl-1.1.1e.patchset
2020-03-26 09:27:44 +01:00

68 lines
2.2 KiB
Plaintext

From b6f59fe55a17125da8a3fd5dc9020c306cd038c6 Mon Sep 17 00:00:00 2001
From: Augustin Cavalier <waddlesplash@gmail.com>
Date: Sat, 14 Mar 2020 19:20:45 -0400
Subject: Small changes for Haiku.
diff --git a/config b/config
index f28828d..2cf58af 100755
--- a/config
+++ b/config
@@ -912,7 +912,7 @@ fi
if $PERL $THERE/Configure LIST | grep "$OUT" > /dev/null; then
if [ "$VERBOSE" = "true" ]; then
- echo /usr/bin/env \
+ echo /bin/env \
__CNF_CPPDEFINES="'$__CNF_CPPDEFINES'" \
__CNF_CPPINCLUDES="'$__CNF_CPPINCLUDES'" \
__CNF_CPPFLAGS="'$__CNF_CPPFLAGS'" \
@@ -925,7 +925,7 @@ if $PERL $THERE/Configure LIST | grep "$OUT" > /dev/null; then
if [ "$DRYRUN" = "false" ]; then
# eval to make sure quoted options, possibly with spaces inside,
# are treated right
- eval /usr/bin/env \
+ eval /bin/env \
__CNF_CPPDEFINES="'$__CNF_CPPDEFINES'" \
__CNF_CPPINCLUDES="'$__CNF_CPPINCLUDES'" \
__CNF_CPPFLAGS="'$__CNF_CPPFLAGS'" \
diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c
index fe457ca..6389c6d 100644
--- a/crypto/rand/rand_unix.c
+++ b/crypto/rand/rand_unix.c
@@ -217,7 +217,9 @@ void rand_pool_keep_random_devices_open(int keep)
# if !defined(DEVRANDOM)
# error "OS seeding requires DEVRANDOM to be configured"
# endif
+#ifndef __HAIKU__
# define OPENSSL_RAND_SEED_GETRANDOM
+#endif
# define OPENSSL_RAND_SEED_DEVRANDOM
# endif
diff --git a/include/internal/cryptlib.h b/include/internal/cryptlib.h
index 6e7291a..7542308 100644
--- a/include/internal/cryptlib.h
+++ b/include/internal/cryptlib.h
@@ -56,7 +56,7 @@ DEFINE_LHASH_OF(MEM);
# ifndef OPENSSL_SYS_VMS
# define X509_CERT_AREA OPENSSLDIR
# define X509_CERT_DIR OPENSSLDIR "/certs"
-# define X509_CERT_FILE OPENSSLDIR "/cert.pem"
+# define X509_CERT_FILE OPENSSLDIR "/CARootCertificates.pem"
# define X509_PRIVATE_DIR OPENSSLDIR "/private"
# define CTLOG_FILE OPENSSLDIR "/ct_log_list.cnf"
# else
diff --git a/os-dep/haiku.h b/os-dep/haiku.h
index 7e908ef..7735f6d 100644
--- a/os-dep/haiku.h
+++ b/os-dep/haiku.h
@@ -1,2 +1,4 @@
#include <sys/select.h>
#include <sys/time.h>
+
+#define OPENSSL_NO_SECURE_MEMORY
--
2.24.0