summaryrefslogtreecommitdiff
path: root/net-mgmt/send/files/patch-include-pkixip_ext.h
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2019-03-17 11:28:18 +0000
committerHiroki Sato <hrs@FreeBSD.org>2019-03-17 11:28:18 +0000
commita27ed4e6a9eb6b839eb3da2e033a395f002540ad (patch)
tree0647f1f6552040995c1df4367244581c78791dd2 /net-mgmt/send/files/patch-include-pkixip_ext.h
parentUpdate to 6.0.3 (diff)
Fix build with OpenSSL 1.1.x.
Diffstat (limited to '')
-rw-r--r--net-mgmt/send/files/patch-include-pkixip_ext.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-mgmt/send/files/patch-include-pkixip_ext.h b/net-mgmt/send/files/patch-include-pkixip_ext.h
new file mode 100644
index 000000000000..bc32707d1911
--- /dev/null
+++ b/net-mgmt/send/files/patch-include-pkixip_ext.h
@@ -0,0 +1,33 @@
+--- include/pkixip_ext.h.orig 2019-02-27 16:25:45 UTC
++++ include/pkixip_ext.h
+@@ -47,14 +47,30 @@ struct pkixip_config {
+ char *certfile;
+ };
+
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ extern int pkixip_aor_cmp(const char * const *, const char * const *);
+ extern int pkixip_ipf_cmp(const char * const *, const char * const *);
++#else
++extern int pkixip_aor_cmp(const IPAddressOrRange * const *,
++ const IPAddressOrRange * const *);
++extern int pkixip_ipf_cmp(const IPAddressFamily * const *,
++ const IPAddressFamily * const *);
++#endif
+
+ extern int pkixip_add2stores_cert(X509 *);
+ extern int pkixip_add2stores_file(const char *);
++
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ extern int pkixip_add_store(int *, int (*cmp)(X509_OBJECT **, X509_OBJECT **));
++#else
++extern int pkixip_add_store(int *, int (*cmp)(const X509_OBJECT * const *, const X509_OBJECT * const *));
++#endif
+ extern void *pkixip_find_cert(void *, int);
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ extern STACK *pkixip_get_mychain(void);
++#else
++extern STACK_OF(X509_OBJECT) *pkixip_get_mychain(void);
++#endif
+ extern X509_STORE_CTX *pkixip_get_store_ctx(void);
+ extern int pkixip_has_ext(X509 *x);
+ extern X509 *pkixip_load_cert(const char *);