Move OPENSSL_CONF from e_os.h to cryptlib.h
authorPauli <paul.dale@oracle.com>
Wed, 23 Aug 2017 23:14:10 +0000 (09:14 +1000)
committerPauli <paul.dale@oracle.com>
Tue, 29 Aug 2017 21:20:44 +0000 (07:20 +1000)
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4188)

apps/openssl.c
e_os.h
include/internal/cryptlib.h
ssl/statem/statem.c

index c23cd4b2164bf49b5259c9d6062a1e5032be32b8..3b347ba11ee282423913b035f268b0f17dea1485 100644 (file)
@@ -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 bf317ce6c034f3fe743239b3c906187d7f3a672d..c1b9350d629026c8e159b7ea5d092639b4a57d64 100644 (file)
--- 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
index 3d348008e2355d90d5b011b9bd766285dc912092..5f2cb44dce2cb3938e321803dfeb1bc60d0e49e0 100644 (file)
@@ -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"
index d171ece2a0bd92b72eb5bfc69e4ff7cb15971685..0f3452216f5ae63a6a32e36859f49ff510874520 100644 (file)
@@ -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"