summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-09-11 13:51:58 +0100
committerMatt Caswell <matt@openssl.org>2020-09-18 13:30:44 +0100
commitefffd8a6e452102dbf25b1f801c9312211c5fe4a (patch)
treec55927d3804648d2ad8f2af38a7cee371b08f417 /include
parent2ca697ce0006efa0a7b3662a1360eea10a56d2ab (diff)
Update err.h to use the new lhash generation code
Generate the lhash macros for the ERR_STRING_DATA type Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12860)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/err.h.in (renamed from include/openssl/err.h)8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/openssl/err.h b/include/openssl/err.h.in
index 8e76b812df..b916f436e3 100644
--- a/include/openssl/err.h
+++ b/include/openssl/err.h.in
@@ -7,6 +7,10 @@
* https://www.openssl.org/source/license.html
*/
+{-
+use OpenSSL::stackhash qw(generate_lhash_macros);
+-}
+
#ifndef OPENSSL_ERR_H
# define OPENSSL_ERR_H
# pragma once
@@ -337,7 +341,9 @@ typedef struct ERR_string_data_st {
const char *string;
} ERR_STRING_DATA;
-DEFINE_LHASH_OF(ERR_STRING_DATA);
+{-
+ generate_lhash_macros("ERR_STRING_DATA");
+-}
/* 12 lines and some on an 80 column terminal */
#define ERR_MAX_DATA_SIZE 1024