<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/939497411387692d03939323f0e626b728946a4c">https://github.com/macports/macports-ports/commit/939497411387692d03939323f0e626b728946a4c</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 93949741138 openssl11: older version of openssl
</span>93949741138 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 939497411387692d03939323f0e626b728946a4c
</span>Author: Ken Cunningham <ken.cunningham.webuse@gmail.com>
AuthorDate: Wed Sep 29 09:56:00 2021 -0700
<span style='display:block; white-space:pre;color:#404040;'> openssl11: older version of openssl
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> similar to openssl10, this port provides openssl 1.1.1,
</span><span style='display:block; white-space:pre;color:#404040;'> for ports that may not be compatible with openssl 3.x
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> to use it, you add the following to the Portfile of
</span><span style='display:block; white-space:pre;color:#404040;'> the port you want to force to openssl 1.1 (using botan as an example):
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> % cat botan-use-openssl1.1.diff
</span><span style='display:block; white-space:pre;color:#404040;'> diff --git a/security/botan/Portfile b/security/botan/Portfile
</span><span style='display:block; white-space:pre;color:#404040;'> index a6862250901..9f6ab677987 100644
</span><span style='display:block; white-space:pre;color:#404040;'> --- a/security/botan/Portfile
</span><span style='display:block; white-space:pre;color:#404040;'> +++ b/security/botan/Portfile
</span><span style='display:block; white-space:pre;color:#404040;'> @@ -2,6 +2,7 @@
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> PortSystem 1.0
</span><span style='display:block; white-space:pre;color:#404040;'> PortGroup muniversal 1.0
</span><span style='display:block; white-space:pre;color:#404040;'> +PortGroup old_openssl 1.0
</span><span style='display:block; white-space:pre;color:#404040;'> PortGroup legacysupport 1.0
</span><span style='display:block; white-space:pre;color:#404040;'> # for arc4random_buf(), which is missing on 10.6 (Darwin 10)
</span><span style='display:block; white-space:pre;color:#404040;'> legacysupport.newest_darwin_requires_legacy 10
</span><span style='display:block; white-space:pre;color:#404040;'> @@ -32,6 +33,9 @@ checksums rmd160 f3a4c1b963b47d543430f8705d7db87c64e013b9 \
</span><span style='display:block; white-space:pre;color:#404040;'> depends_build port:python27
</span><span style='display:block; white-space:pre;color:#404040;'> depends_lib path:lib/libssl.dylib:openssl port:zlib port:bzip2
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> +openssl.branch 1.1
</span><span style='display:block; white-space:pre;color:#404040;'> +openssl.configure build_flags
</span><span style='display:block; white-space:pre;color:#404040;'> +
</span><span style='display:block; white-space:pre;color:#404040;'> # respect MacPorts configure values
</span><span style='display:block; white-space:pre;color:#404040;'> patchfiles-append patch-compiler_flags.diff \
</span><span style='display:block; white-space:pre;color:#404040;'> patch-fix-install-with-destdir.diff \
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> NB: the openssl.branch and openssl.configure options need to be
</span><span style='display:block; white-space:pre;color:#404040;'> placed after depends_lib to be properly picked up. That may
</span><span style='display:block; white-space:pre;color:#404040;'> be fixed with adding a callback function to the old_openssl PG.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> see: https://trac.macports.org/ticket/63461
</span>---
devel/openssl11/Portfile | 137 ++++++++++++++++++++++++++++
devel/openssl11/files/patch-pre-Sierra.diff | 39 ++++++++
2 files changed, 176 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/openssl11/Portfile b/devel/openssl11/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4a08df0dd31
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/openssl11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,137 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup muniversal 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name openssl11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.1.1l
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel security
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license OpenSSL SSLeay
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description OpenSSL SSL/TLS cryptography library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description The OpenSSL Project is a collaborative effort to \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ develop a robust, commercial-grade, full-featured, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and Open Source toolkit implementing the Secure \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Sockets Layer (SSL v2/v3) and Transport Layer \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Security (TLS v1) protocols as well as \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ a full-strength general purpose cryptography \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ library.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.openssl.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname openssl-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# See https://www.openssl.org/source/mirror.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites ${homepage}/source \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ftp://gd.tuwien.ac.at/infosys/security/openssl/source/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ http://mirror.switch.ch/ftp/mirror/openssl/source/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ftp://ftp.fi.muni.cz/pub/openssl/source/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ http://artfiles.org/openssl.org/source/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ftp://ftp.linux.hr/pub/openssl/source/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ftp://guest.kuria.katowice.pl/pub/openssl/source/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 aa470eea95b127e7ea389c39610a7568579d6b86 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 9834044
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Having the stdlib set to libc++ on 10.6 causes a dependency on a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # macports-clang compiler to be added, which would be a dep cycle.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxx_stdlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/openssl/openssl/commit/c023d98dcf2ba1cc30f545ae54d0e037e80a8794
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/openssl/openssl/commit/24cdb1bfecbd765e829b9932a5a60ff63a7dff4b
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Patches updated to fix 10.4 build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-pre-Sierra.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ccache no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.perl /usr/bin/perl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cmd ./Configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args -L${prefix}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --openssldir=${prefix}/etc/openssl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --libdir=lib/openssl-1.1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ shared \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Use SDK if necessary.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${configure.sdkroot} ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append '-isysroot ${configure.sdkroot}' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Wl,-syslibroot,${configure.sdkroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set merger_arch_compiler no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+array set merger_configure_args {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ppc darwin-ppc-cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ i386 darwin-i386-cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ppc64 darwin64-ppc-cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ x86_64 darwin64-x86_64-cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ arm64 darwin64-arm64-cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Don't use i386 assembly on Tiger (#38015, #43303).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} <= 8} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append merger_configure_args(i386) { no-asm}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/58992
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append no-async
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Don't use x86-64 assembly on Tiger or Leopard.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} <= 9} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append merger_configure_args(x86_64) { no-asm}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # OpenSSL requires Perl 5.10.0, while Leopard ships Perl 5.8.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:perl5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.perl ${prefix}/bin/perl5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Don't pass --host to configure.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+array set merger_host {ppc {} i386 {} ppc64 {} x86_64 {} arm64 {}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![info exists universal_possible]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {(!${universal_possible} || ![variant_isset universal])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ && [info exists merger_configure_args(${configure.build_arch})]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append $merger_configure_args(${configure.build_arch})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.universal_args-delete --disable-dependency-tracking
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Parallel builds don't quite work (#46719).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_exists universal] && [variant_isset universal]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global merger_dont_diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[llength ${universal_archs_to_use}] > 2} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend merger_dont_diff ${prefix}/include/openssl/opensslconf.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Move some files around
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/include/openssl-1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/include/openssl ${destroot}${prefix}/include/openssl-1.1/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/bin/openssl ${destroot}${prefix}/bin/openssl-1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Update includedir in .pc files
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/include$|/include/openssl-1.1|" {*}[glob ${destroot}${prefix}/lib/openssl-1.1/pkgconfig/*.pc]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/etc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete ${destroot}${prefix}/bin/c_rehash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install_sw
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant rfc3779 description {enable RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append enable-rfc3779
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url https://www.openssl.org/source/old/1.1.1/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex openssl-(1.1.\[0-9.\]+\[a-z\]?)\\.tar\\.gz
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/openssl11/files/patch-pre-Sierra.diff b/devel/openssl11/files/patch-pre-Sierra.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..fed3e47f351
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/openssl11/files/patch-pre-Sierra.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,39 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./crypto/rand/rand_unix.c.orig 2021-08-24 06:38:47.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./crypto/rand/rand_unix.c 2021-09-04 19:21:00.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -34,9 +34,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(__OpenBSD__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <sys/param.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# include <CommonCrypto/CommonRandom.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(OPENSSL_SYS_UNIX) || defined(__DJGPP__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -381,7 +378,7 @@ static ssize_t syscall_random(void *buf,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (errno != ENOSYS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# elif defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# elif defined(OPENSSL_APPLE_CRYPTO_RANDOM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (CCRandomGenerateBytes(buf, buflen) == kCCSuccess)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return (ssize_t)buflen;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./include/crypto/rand.h.orig 2021-08-24 06:38:47.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./include/crypto/rand.h 2021-09-04 19:21:00.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,6 +20,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # include <openssl/rand.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined(__APPLE__) && !defined(OPENSSL_NO_APPLE_CRYPTO_RANDOM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101200 || \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED >= 80000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define OPENSSL_APPLE_CRYPTO_RANDOM 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <CommonCrypto/CommonCryptoError.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# include <CommonCrypto/CommonRandom.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* forward declaration */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef struct rand_pool_st RAND_POOL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>