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)
diff --git a/apps/openssl.c b/apps/openssl.c index c23cd4b..3b347ba 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 bf317ce..c1b9350 100644 --- a/e_os.h +++ b/e_os.h
@@ -53,8 +53,6 @@ * 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 3d34800..5f2cb44 100644 --- a/include/internal/cryptlib.h +++ b/include/internal/cryptlib.h
@@ -55,6 +55,8 @@ 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 d171ece..0f34522 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"