summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-08-24 09:14:10 +1000
committerPauli <paul.dale@oracle.com>2017-08-30 07:20:44 +1000
commit198c42f5af0d2cc0eb4789c7597b68b6b10cc97a (patch)
tree2743404f5671bb169e363f101f7ac4e44ddc27a4
parent07016a8a3174db5caf07182930533cf88ad9b0ad (diff)
Move OPENSSL_CONF from e_os.h to cryptlib.h
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4188)
-rw-r--r--apps/openssl.c1
-rw-r--r--e_os.h2
-rw-r--r--include/internal/cryptlib.h2
-rw-r--r--ssl/statem/statem.c2
4 files changed, 4 insertions, 3 deletions
diff --git a/apps/openssl.c b/apps/openssl.c
index c23cd4b216..3b347ba11e 100644
--- a/apps/openssl.c
+++ b/apps/openssl.c
@@ -7,6 +7,7 @@
* https://www.openssl.org/source/license.html
*/
+#include <internal/cryptlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
diff --git a/e_os.h b/e_os.h
index bf317ce6c0..c1b9350d62 100644
--- a/e_os.h
+++ b/e_os.h
@@ -53,8 +53,6 @@ extern "C" {
* stand for in ILP32 and LP64 */
# endif
-# define OPENSSL_CONF "openssl.cnf"
-
# ifndef DEVRANDOM
/*
* set this to a comma-separated list of 'random' device files to try out. By
diff --git a/include/internal/cryptlib.h b/include/internal/cryptlib.h
index 3d348008e2..5f2cb44dce 100644
--- a/include/internal/cryptlib.h
+++ b/include/internal/cryptlib.h
@@ -55,6 +55,8 @@ typedef struct app_mem_info_st APP_INFO;
typedef struct mem_st MEM;
DEFINE_LHASH_OF(MEM);
+# define OPENSSL_CONF "openssl.cnf"
+
# ifndef OPENSSL_SYS_VMS
# define X509_CERT_AREA OPENSSLDIR
# define X509_CERT_DIR OPENSSLDIR "/certs"
diff --git a/ssl/statem/statem.c b/ssl/statem/statem.c
index d171ece2a0..0f3452216f 100644
--- a/ssl/statem/statem.c
+++ b/ssl/statem/statem.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h"
+#include "internal/cryptlib.h"
#include <openssl/rand.h>
#include "../ssl_locl.h"
#include "statem_locl.h"