diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2019-03-17 11:28:18 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2019-03-17 11:28:18 +0000 |
commit | a27ed4e6a9eb6b839eb3da2e033a395f002540ad (patch) | |
tree | 0647f1f6552040995c1df4367244581c78791dd2 /net-mgmt/send/files/patch-libs-libpkixipext-util.c | |
parent | Update to 6.0.3 (diff) |
Fix build with OpenSSL 1.1.x.
Diffstat (limited to 'net-mgmt/send/files/patch-libs-libpkixipext-util.c')
-rw-r--r-- | net-mgmt/send/files/patch-libs-libpkixipext-util.c | 30 |
1 files changed, 30 insertions, 0 deletions
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; |