summaryrefslogtreecommitdiffstats
path: root/crypto/err
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-01-11 14:11:13 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-01-11 17:50:27 +0000
commite6b5c341b94d357b0158ad74b12edd51399a4b87 (patch)
tree0957d4adb18236b4f70e0edf836023d7b39a0d23 /crypto/err
parent8e423bde2561bcddbc1d67f1fcc182d7dfa3f04d (diff)
Inline LHASH_OF
Make LHASH_OF use static inline functions. Add new lh_get_down_load and lh_set_down_load functions and their typesafe inline equivalents. Make lh_error a function instead of a macro. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/err')
-rw-r--r--crypto/err/Makefile2
-rw-r--r--crypto/err/err.c4
-rw-r--r--crypto/err/err_lcl.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/crypto/err/Makefile b/crypto/err/Makefile
index a49e37be8b..4db677d216 100644
--- a/crypto/err/Makefile
+++ b/crypto/err/Makefile
@@ -20,7 +20,7 @@ LIBOBJ=err.o err_all.o err_prn.o
SRC= $(LIBSRC)
-HEADER=
+HEADER= err_lcl.h
ALL= $(GENERAL) $(SRC) $(HEADER)
diff --git a/crypto/err/err.c b/crypto/err/err.c
index 77e8223de4..5ad5487b8f 100644
--- a/crypto/err/err.c
+++ b/crypto/err/err.c
@@ -119,9 +119,7 @@
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/opensslconf.h>
-
-DECLARE_LHASH_OF(ERR_STRING_DATA);
-DECLARE_LHASH_OF(ERR_STATE);
+#include "err_lcl.h"
static void err_load_strings(int lib, ERR_STRING_DATA *str);
diff --git a/crypto/err/err_lcl.h b/crypto/err/err_lcl.h
new file mode 100644
index 0000000000..16404df4a4
--- /dev/null
+++ b/crypto/err/err_lcl.h
@@ -0,0 +1,2 @@
+
+DECLARE_LHASH_OF(ERR_STATE);