From a27ed4e6a9eb6b839eb3da2e033a395f002540ad Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Sun, 17 Mar 2019 11:28:18 +0000 Subject: Fix build with OpenSSL 1.1.x. --- net-mgmt/send/files/patch-libs-libpkixipext-util.c | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 net-mgmt/send/files/patch-libs-libpkixipext-util.c (limited to 'net-mgmt/send/files/patch-libs-libpkixipext-util.c') diff --git a/net-mgmt/send/files/patch-libs-libpkixipext-util.c b/net-mgmt/send/files/patch-libs-libpkixipext-util.c new file mode 100644 index 000000000000..b22140586ff3 --- /dev/null +++ b/net-mgmt/send/files/patch-libs-libpkixipext-util.c @@ -0,0 +1,30 @@ +--- libs/libpkixipext/util.c.orig 2019-02-27 16:25:45 UTC ++++ libs/libpkixipext/util.c +@@ -37,8 +37,13 @@ + #include "config.h" + #include "pkixip_ext_asn.h" + ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + int + pkixip_aor_cmp(const char * const *a1, const char * const *a2) ++#else ++int ++pkixip_aor_cmp(const IPAddressOrRange * const *a1, const IPAddressOrRange * const *a2) ++#endif + { + int by1, by2, bi1, bi2, bytes, bits; + uint8_t *d1, *d2, x1, x2, mask; +@@ -119,8 +124,13 @@ pkixip_aor_cmp(const char * const *a1, const char * co + return (0); + } + ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + int + pkixip_ipf_cmp(const char * const *a1, const char * const *a2) ++#else ++int ++pkixip_ipf_cmp(const IPAddressFamily * const *a1, const IPAddressFamily * const *a2) ++#endif + { + IPAddressFamily *ipf1 = (IPAddressFamily *)*a1; + IPAddressFamily *ipf2 = (IPAddressFamily *)*a2; -- cgit v1.2.3