aboutsummaryrefslogtreecommitdiff
path: root/h/rpki
diff options
context:
space:
mode:
Diffstat (limited to 'h/rpki')
-rw-r--r--h/rpki/manifest.h7
-rw-r--r--h/rpki/roa.h14
-rw-r--r--h/rpki/sk_manifest.h2
-rw-r--r--h/rpki/sk_roa.h2
4 files changed, 19 insertions, 6 deletions
diff --git a/h/rpki/manifest.h b/h/rpki/manifest.h
index 0e6cd531..5e5ddf67 100644
--- a/h/rpki/manifest.h
+++ b/h/rpki/manifest.h
@@ -44,8 +44,6 @@
#include <openssl/asn1t.h>
#include <openssl/cms.h>
-#include <rpki/sk_manifest.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,12 @@ typedef struct FileAndHash_st {
ASN1_BIT_STRING *hash;
} FileAndHash;
+#ifdef DEFINE_STACK_OF
+DEFINE_STACK_OF(FileAndHash)
+#else
DECLARE_STACK_OF(FileAndHash)
+#include <rpki/sk_manifest.h>
+#endif
ASN1_SEQUENCE(FileAndHash) = {
ASN1_SIMPLE(FileAndHash, file, ASN1_IA5STRING),
diff --git a/h/rpki/roa.h b/h/rpki/roa.h
index a63f726b..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,11 @@ typedef struct ROAIPAddress_st {
ASN1_INTEGER *maxLength;
} ROAIPAddress;
+#ifdef DEFINE_STACK_OF
+DEFINE_STACK_OF(ROAIPAddress)
+#else
DECLARE_STACK_OF(ROAIPAddress)
+#endif
ASN1_SEQUENCE(ROAIPAddress) = {
ASN1_SIMPLE(ROAIPAddress, IPAddress, ASN1_BIT_STRING),
@@ -78,7 +80,11 @@ typedef struct ROAIPAddressFamily_st {
STACK_OF(ROAIPAddress) *addresses;
} ROAIPAddressFamily;
+#ifdef DEFINE_STACK_OF
+DEFINE_STACK_OF(ROAIPAddressFamily)
+#else
DECLARE_STACK_OF(ROAIPAddressFamily)
+#endif
ASN1_SEQUENCE(ROAIPAddressFamily) = {
ASN1_SIMPLE(ROAIPAddressFamily, addressFamily, ASN1_OCTET_STRING),
@@ -104,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__ */
diff --git a/h/rpki/sk_manifest.h b/h/rpki/sk_manifest.h
index 59ff80a5..48ad6317 100644
--- a/h/rpki/sk_manifest.h
+++ b/h/rpki/sk_manifest.h
@@ -1,6 +1,6 @@
/*
* Automatically generated, do not edit.
- * Generator $Id: defstack.py 4878 2012-11-15 22:13:53Z sra $
+ * Generator $Id: defstack.py 6152 2015-10-26 06:29:00Z sra $
*/
#ifndef __RPKI_MANIFEST_H__DEFSTACK_H__
diff --git a/h/rpki/sk_roa.h b/h/rpki/sk_roa.h
index 13036955..7952e3c2 100644
--- a/h/rpki/sk_roa.h
+++ b/h/rpki/sk_roa.h
@@ -1,6 +1,6 @@
/*
* Automatically generated, do not edit.
- * Generator $Id: defstack.py 4878 2012-11-15 22:13:53Z sra $
+ * Generator $Id: defstack.py 6152 2015-10-26 06:29:00Z sra $
*/
#ifndef __RPKI_ROA_H__DEFSTACK_H__