Move a declaration that's private to libcrypto
authorRichard Levitte <levitte@openssl.org>
Wed, 13 Apr 2016 11:53:27 +0000 (13:53 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 13 Apr 2016 13:23:47 +0000 (15:23 +0200)
Don't expose purely libcrypto internal symbols, even to libssl.

Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/include/internal/err_int.h [new file with mode: 0644]
crypto/init.c
include/internal/err.h

diff --git a/crypto/include/internal/err_int.h b/crypto/include/internal/err_int.h
new file mode 100644 (file)
index 0000000..ad3f7ce
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL licenses, (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * https://www.openssl.org/source/license.html
+ * or in the file LICENSE in the source distribution.
+ */
+
+#ifndef INTERNAL_ERR_INT_H
+# define INTERNAL_ERR_INT_H
+
+void err_load_crypto_strings_int(void);
+
+#endif
index d9f40001a2491a798d0304bb258377e1df4d80db..21dc36d35eb2eba6c637b101c60deae9866e3e48 100644 (file)
@@ -67,6 +67,7 @@
 #include <internal/engine.h>
 #include <internal/comp.h>
 #include <internal/err.h>
 #include <internal/engine.h>
 #include <internal/comp.h>
 #include <internal/err.h>
+#include <internal/err_int.h>
 #include <internal/objects.h>
 #include <stdlib.h>
 #include <assert.h>
 #include <internal/objects.h>
 #include <stdlib.h>
 #include <assert.h>
index f9aa2b2120408dab2420402cbd061bbaec21a7cc..de2180b34bfcb71f977641b4725cd8b1f7b2adb2 100644 (file)
@@ -58,7 +58,6 @@
 #ifndef INTERNAL_ERR_H
 # define INTERNAL_ERR_H
 
 #ifndef INTERNAL_ERR_H
 # define INTERNAL_ERR_H
 
-void err_load_crypto_strings_int(void);
 void err_free_strings_int(void);
 
 #endif
 void err_free_strings_int(void);
 
 #endif