summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-09-03 16:06:16 +0100
committerMatt Caswell <matt@openssl.org>2020-09-13 11:10:41 +0100
commitdd731474207126615679f4cc9ae772d7da990332 (patch)
tree8a60e41bdcd2991bb5d55dba31ad8fdf4446cee2 /include
parent1e14bca2332a95340366324372c59e6a78ddbad7 (diff)
Fix safestack issues in bio.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/bio.h.in (renamed from include/openssl/bio.h)10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/openssl/bio.h b/include/openssl/bio.h.in
index 88e57e70a8..d7380d47e9 100644
--- a/include/openssl/bio.h
+++ b/include/openssl/bio.h.in
@@ -1,4 +1,6 @@
/*
+ * {- join("\n * ", @autowarntext) -}
+ *
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
@@ -6,6 +8,9 @@
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+{-
+use OpenSSL::stackhash qw(generate_stack_macros);
+-}
#ifndef OPENSSL_BIO_H
# define OPENSSL_BIO_H
@@ -287,7 +292,10 @@ int BIO_method_type(const BIO *b);
typedef int BIO_info_cb(BIO *, int, int);
typedef BIO_info_cb bio_info_cb; /* backward compatibility */
-DEFINE_OR_DECLARE_STACK_OF(BIO)
+{-
+ generate_stack_macros("BIO");
+-}
+
/* Prefix and suffix callback in ASN1 BIO */
typedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,