aboutsummaryrefslogtreecommitdiff
path: root/h/rpki/roa.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-04-08 21:25:43 +0000
committerRob Austein <sra@hactrn.net>2016-04-08 21:25:43 +0000
commit68d8ff79fc48cb0ae82399628cd7bf1ca459bc3b (patch)
tree9f1bf6219c803a26c29a7216ebd7e7a3be9adb79 /h/rpki/roa.h
parent6a8906e83a45c3c04c39eb4e71fcda0b1da293df (diff)
OpenSSL 1.1 compatability, part 1.
OpenSSL 1.1 will include some backwards-compatible API changes. In some cases, the new API won't be available until OpenSSL 1.1, but a lot of the new API already exists in OpenSSL 1.0.2. This commit switches the parts that can be switched with OpenSSL 1.0. Other changes deferred until OpenSSL 1.1 public release. svn path=/branches/tk705/; revision=6351
Diffstat (limited to 'h/rpki/roa.h')
-rw-r--r--h/rpki/roa.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/h/rpki/roa.h b/h/rpki/roa.h
index 2198e249..36f1ec5c 100644
--- a/h/rpki/roa.h
+++ b/h/rpki/roa.h
@@ -44,8 +44,6 @@
#include <openssl/asn1t.h>
#include <openssl/cms.h>
-#include <rpki/sk_roa.h>
-
/*
* ASN.1 templates. Not sure that ASN1_EXP_OPT() is the right macro
* for these defaulted "version" fields, but it's what the examples
@@ -66,7 +64,9 @@ typedef struct ROAIPAddress_st {
ASN1_INTEGER *maxLength;
} ROAIPAddress;
-#ifdef DECLARE_STACK_OF
+#ifdef DEFINE_STACK_OF
+DEFINE_STACK_OF(ROAIPAddress)
+#else
DECLARE_STACK_OF(ROAIPAddress)
#endif
@@ -80,7 +80,9 @@ typedef struct ROAIPAddressFamily_st {
STACK_OF(ROAIPAddress) *addresses;
} ROAIPAddressFamily;
-#ifdef DECLARE_STACK_OF
+#ifdef DEFINE_STACK_OF
+DEFINE_STACK_OF(ROAIPAddressFamily)
+#else
DECLARE_STACK_OF(ROAIPAddressFamily)
#endif
@@ -108,6 +110,10 @@ IMPLEMENT_ASN1_FUNCTIONS(ROAIPAddress)
IMPLEMENT_ASN1_FUNCTIONS(ROAIPAddressFamily)
IMPLEMENT_ASN1_FUNCTIONS(ROA)
+#ifndef DEFINE_STACK_OF
+#include <rpki/sk_roa.h>
+#endif
+
#endif /* DOXYGEN_GETS_HOPELESSLY_CONFUSED_BY_THIS_SECTION */
#endif /* __ROA_H__ */