summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-09-03 15:56:05 +0100
committerMatt Caswell <matt@openssl.org>2020-09-13 11:10:41 +0100
commit0b282540158bc4a7a291af7427a8da76f0a4980a (patch)
treeedaf198d40a187bc652a26d01ace84fc51d444b5 /include
parent9d01ac71a06590e88791308f83c586c5d2113229 (diff)
Fix safestack issues in asn1t.h
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12781)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/asn1t.h.in (renamed from include/openssl/asn1t.h)11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/openssl/asn1t.h b/include/openssl/asn1t.h.in
index 286db9e2eb..1eebd1f85a 100644
--- a/include/openssl/asn1t.h
+++ b/include/openssl/asn1t.h.in
@@ -1,4 +1,6 @@
/*
+ * {- join("\n * ", @autowarntext) -}
+ *
* Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
@@ -7,6 +9,10 @@
* https://www.openssl.org/source/license.html
*/
+{-
+use OpenSSL::stackhash qw(generate_stack_macros);
+-}
+
#ifndef OPENSSL_ASN1T_H
# define OPENSSL_ASN1T_H
# pragma once
@@ -880,7 +886,10 @@ DECLARE_ASN1_ITEM(LONG)
DECLARE_ASN1_ITEM(ZLONG)
# endif
-DEFINE_OR_DECLARE_STACK_OF(ASN1_VALUE)
+{-
+ generate_stack_macros("ASN1_VALUE");
+-}
+
/* Functions used internally by the ASN1 code */