summaryrefslogtreecommitdiff
path: root/net-mgmt/send/files/patch-include-pkixip_ext_asn.h
blob: c1f7b7b8be6a12925db808a7a2f9d5b965a17f49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- include/pkixip_ext_asn.h.orig	2019-02-27 16:25:45 UTC
+++ include/pkixip_ext_asn.h
@@ -33,7 +33,12 @@
 #ifndef	_PKIXIP_EXT_ASN_H
 #define	_PKIXIP_EXT_ASN_H
 
+#include <openssl/stack.h>
+#if OPENSSL_VERSION_NUMBER >= 0x0090900fL
+#define	STACK	_STACK
+#endif
 #include <openssl/asn1t.h>
+#include <openssl/asn1.h>
 #include <openssl/err.h>
 #include <openssl/x509v3.h>
 
@@ -45,7 +50,7 @@
 #define	IANA_SAFI_BOTH		3
 #define	IANA_SAFI_MPLS		4
 
-/*
+#ifdef LIBRESSL_VERSION_NUMBER
 typedef struct IPAddressRange_st {
 	ASN1_BIT_STRING		*min;
 	ASN1_BIT_STRING		*max;
@@ -79,7 +84,7 @@ typedef struct IPAddressFamily_st {
 	ASN1_OCTET_STRING	*addressFamily;
 	IPAddressChoice		*ipAddressChoice;
 } IPAddressFamily;
-*/
+#endif
 
 #define IP_AOR_PREFIX		0
 #define IP_AOR_RANGE		1