summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-02-04 15:13:01 +0100
committerRichard Levitte <levitte@openssl.org>2022-02-05 05:31:09 +0100
commitd5f9166bacfb3757dfd6117310ad54ab749b11f9 (patch)
tree2ee6532788cf791a75e7e658ab8b9709c1d8ee62 /crypto
parent77f3936928068bee9d7e0c6939709ac179cb1059 (diff)
Move e_os.h to include/internal
Including e_os.h with a path from a header file doesn't work well on certain exotic platform. It simply fails to build. Since we don't seem to be able to stop ourselves, the better move is to move e_os.h to an include directory that's part of the inclusion path given to the compiler. Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17641)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/asn1/ameth_lib.c2
-rw-r--r--crypto/asn1/asn1_gen.c2
-rw-r--r--crypto/bio/bio_local.h2
-rw-r--r--crypto/bio/bss_bio.c2
-rw-r--r--crypto/cmp/cmp_client.c2
-rw-r--r--crypto/conf/conf_api.c2
-rw-r--r--crypto/conf/conf_def.c2
-rw-r--r--crypto/conf/conf_lib.c2
-rw-r--r--crypto/core_namemap.c2
-rw-r--r--crypto/cpuid.c2
-rw-r--r--crypto/cryptlib.c2
-rw-r--r--crypto/des/cfb_enc.c2
-rw-r--r--crypto/dh/dh_group_params.c2
-rw-r--r--crypto/dh/dh_kdf.c4
-rw-r--r--crypto/dllmain.c2
-rw-r--r--crypto/dso/dso_dlfcn.c2
-rw-r--r--crypto/dso/dso_win32.c2
-rw-r--r--crypto/ec/curve448/arch_32/f_impl32.c2
-rw-r--r--crypto/ec/curve448/arch_64/f_impl64.c2
-rw-r--r--crypto/ec/ec_backend.c2
-rw-r--r--crypto/ec/ec_lib.c2
-rw-r--r--crypto/encode_decode/decoder_lib.c2
-rw-r--r--crypto/encode_decode/decoder_pkey.c2
-rw-r--r--crypto/encode_decode/encoder_lib.c2
-rw-r--r--crypto/encode_decode/encoder_pkey.c2
-rw-r--r--crypto/engine/eng_init.c2
-rw-r--r--crypto/engine/eng_lib.c2
-rw-r--r--crypto/engine/tb_asnmth.c2
-rw-r--r--crypto/err/err.c2
-rw-r--r--crypto/evp/ctrl_params_translate.c2
-rw-r--r--crypto/evp/ec_support.c2
-rw-r--r--crypto/evp/evp_lib.c2
-rw-r--r--crypto/evp/p_lib.c2
-rw-r--r--crypto/ffc/ffc_dh.c2
-rw-r--r--crypto/ffc/ffc_params.c2
-rw-r--r--crypto/getenv.c2
-rw-r--r--crypto/http/http_client.c2
-rw-r--r--crypto/info.c2
-rw-r--r--crypto/init.c2
-rw-r--r--crypto/mem.c2
-rw-r--r--crypto/mem_sec.c2
-rw-r--r--crypto/o_dir.c2
-rw-r--r--crypto/o_fopen.c2
-rw-r--r--crypto/o_init.c2
-rw-r--r--crypto/o_str.c2
-rw-r--r--crypto/objects/o_names.c2
-rw-r--r--crypto/params_dup.c2
-rw-r--r--crypto/property/property_parse.c2
-rw-r--r--crypto/rand/rand_deprecated.c2
-rw-r--r--crypto/rand/rand_lib.c2
-rw-r--r--crypto/rsa/rsa_backend.c2
-rw-r--r--crypto/store/store_lib.c2
-rw-r--r--crypto/store/store_result.c2
-rw-r--r--crypto/trace.c2
-rw-r--r--crypto/ts/ts_rsp_sign.c2
-rw-r--r--crypto/ui/ui_openssl.c2
-rw-r--r--crypto/x509/by_dir.c2
-rw-r--r--crypto/x509/v3_tlsf.c2
-rw-r--r--crypto/x509/v3_utl.c2
59 files changed, 60 insertions, 60 deletions
diff --git a/crypto/asn1/ameth_lib.c b/crypto/asn1/ameth_lib.c
index 031a6c936a..9704492607 100644
--- a/crypto/asn1/ameth_lib.c
+++ b/crypto/asn1/ameth_lib.c
@@ -10,7 +10,7 @@
/* We need to use some engine deprecated APIs */
#define OPENSSL_SUPPRESS_DEPRECATED
-#include "e_os.h" /* for strncasecmp */
+#include "internal/e_os.h" /* for strncasecmp */
#include "internal/cryptlib.h"
#include <stdio.h>
#include <openssl/asn1t.h>
diff --git a/crypto/asn1/asn1_gen.c b/crypto/asn1/asn1_gen.c
index bb0dcb2e09..a112f7de9e 100644
--- a/crypto/asn1/asn1_gen.c
+++ b/crypto/asn1/asn1_gen.c
@@ -10,7 +10,7 @@
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/x509v3.h>
-#include "e_os.h" /* strncasecmp() */
+#include "internal/e_os.h" /* strncasecmp() */
#define ASN1_GEN_FLAG 0x10000
#define ASN1_GEN_FLAG_IMP (ASN1_GEN_FLAG|1)
diff --git a/crypto/bio/bio_local.h b/crypto/bio/bio_local.h
index 749e8f810c..6ba0196ce6 100644
--- a/crypto/bio/bio_local.h
+++ b/crypto/bio/bio_local.h
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include "internal/sockets.h"
/* BEGIN BIO_ADDRINFO/BIO_ADDR stuff. */
diff --git a/crypto/bio/bss_bio.c b/crypto/bio/bss_bio.c
index 92dd262309..aaac451314 100644
--- a/crypto/bio/bss_bio.c
+++ b/crypto/bio/bss_bio.c
@@ -15,7 +15,7 @@
* See ssl/ssltest.c for some hints on how this can be used.
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include <assert.h>
#include <limits.h>
#include <stdlib.h>
diff --git a/crypto/cmp/cmp_client.c b/crypto/cmp/cmp_client.c
index 4a7a87ff74..0ca7f94a86 100644
--- a/crypto/cmp/cmp_client.c
+++ b/crypto/cmp/cmp_client.c
@@ -11,7 +11,7 @@
#include "cmp_local.h"
#include "internal/cryptlib.h"
-#include "e_os.h" /* ossl_sleep() */
+#include "internal/e_os.h" /* ossl_sleep() */
/* explicit #includes not strictly needed since implied by the above: */
#include <openssl/bio.h>
diff --git a/crypto/conf/conf_api.c b/crypto/conf/conf_api.c
index 7a4efe6dbb..37e66af78e 100644
--- a/crypto/conf/conf_api.c
+++ b/crypto/conf/conf_api.c
@@ -9,7 +9,7 @@
/* Part of the code in here was originally in conf.c, which is now removed */
-#include "e_os.h"
+#include "internal/e_os.h"
#include "internal/cryptlib.h"
#include <stdlib.h>
#include <string.h>
diff --git a/crypto/conf/conf_def.c b/crypto/conf/conf_def.c
index 26764dad00..9d79a900c8 100644
--- a/crypto/conf/conf_def.c
+++ b/crypto/conf/conf_def.c
@@ -11,7 +11,7 @@
#include <stdio.h>
#include <string.h>
-#include "e_os.h" /* strcasecmp and struct stat */
+#include "internal/e_os.h" /* strcasecmp and struct stat */
#ifdef __TANDEM
# include <sys/types.h> /* needed for stat.h */
# include <sys/stat.h> /* struct stat */
diff --git a/crypto/conf/conf_lib.c b/crypto/conf/conf_lib.c
index a236003525..fe08e0af5f 100644
--- a/crypto/conf/conf_lib.c
+++ b/crypto/conf/conf_lib.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include <stdio.h>
#include <string.h>
#include "internal/conf.h"
diff --git a/crypto/core_namemap.c b/crypto/core_namemap.c
index 6cb0ec5a06..f058e629f3 100644
--- a/crypto/core_namemap.c
+++ b/crypto/core_namemap.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h" /* strcasecmp */
+#include "internal/e_os.h" /* strcasecmp */
#include "internal/namemap.h"
#include <openssl/lhash.h>
#include "crypto/lhash.h" /* ossl_lh_strcasehash */
diff --git a/crypto/cpuid.c b/crypto/cpuid.c
index 048689f410..75bd03bffe 100644
--- a/crypto/cpuid.c
+++ b/crypto/cpuid.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include "crypto/cryptlib.h"
#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index 6e73b8352c..f78c2236e4 100644
--- a/crypto/cryptlib.c
+++ b/crypto/cryptlib.c
@@ -8,7 +8,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include "crypto/cryptlib.h"
#include <openssl/safestack.h>
diff --git a/crypto/des/cfb_enc.c b/crypto/des/cfb_enc.c
index 30458d50a1..e8813755bf 100644
--- a/crypto/des/cfb_enc.c
+++ b/crypto/des/cfb_enc.c
@@ -13,7 +13,7 @@
*/
#include "internal/deprecated.h"
-#include "e_os.h"
+#include "internal/e_os.h"
#include "des_local.h"
#include <assert.h>
diff --git a/crypto/dh/dh_group_params.c b/crypto/dh/dh_group_params.c
index c71f4053da..dec50caf66 100644
--- a/crypto/dh/dh_group_params.c
+++ b/crypto/dh/dh_group_params.c
@@ -23,7 +23,7 @@
#include <openssl/objects.h>
#include "internal/nelem.h"
#include "crypto/dh.h"
-#include "e_os.h" /* strcasecmp */
+#include "internal/e_os.h" /* strcasecmp */
static DH *dh_param_init(OSSL_LIB_CTX *libctx, const DH_NAMED_GROUP *group)
{
diff --git a/crypto/dh/dh_kdf.c b/crypto/dh/dh_kdf.c
index 419e7711d3..eda3d3998a 100644
--- a/crypto/dh/dh_kdf.c
+++ b/crypto/dh/dh_kdf.c
@@ -13,8 +13,8 @@
*/
#include "internal/deprecated.h"
-#include "e_os.h"
-#include "e_os.h"
+#include "internal/e_os.h"
+#include "internal/e_os.h"
#include <string.h>
#include <openssl/core_names.h>
#include <openssl/dh.h>
diff --git a/crypto/dllmain.c b/crypto/dllmain.c
index 48c0cd3122..65d9be6767 100644
--- a/crypto/dllmain.c
+++ b/crypto/dllmain.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include "crypto/cryptlib.h"
#if defined(_WIN32) || defined(__CYGWIN__)
diff --git a/crypto/dso/dso_dlfcn.c b/crypto/dso/dso_dlfcn.c
index 6a988cc727..982b117e70 100644
--- a/crypto/dso/dso_dlfcn.c
+++ b/crypto/dso/dso_dlfcn.c
@@ -17,7 +17,7 @@
#endif
#include "dso_local.h"
-#include "e_os.h"
+#include "internal/e_os.h"
#ifdef DSO_DLFCN
diff --git a/crypto/dso/dso_win32.c b/crypto/dso/dso_win32.c
index 4d3059d438..08ad8f46b3 100644
--- a/crypto/dso/dso_win32.c
+++ b/crypto/dso/dso_win32.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include "dso_local.h"
#if defined(DSO_WIN32)
diff --git a/crypto/ec/curve448/arch_32/f_impl32.c b/crypto/ec/curve448/arch_32/f_impl32.c
index 8714a51422..45d5587347 100644
--- a/crypto/ec/curve448/arch_32/f_impl32.c
+++ b/crypto/ec/curve448/arch_32/f_impl32.c
@@ -10,7 +10,7 @@
* Originally written by Mike Hamburg
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include <openssl/macros.h>
#include "internal/numbers.h"
diff --git a/crypto/ec/curve448/arch_64/f_impl64.c b/crypto/ec/curve448/arch_64/f_impl64.c
index 8f7a7dd391..10a9b065e5 100644
--- a/crypto/ec/curve448/arch_64/f_impl64.c
+++ b/crypto/ec/curve448/arch_64/f_impl64.c
@@ -10,7 +10,7 @@
* Originally written by Mike Hamburg
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include <openssl/macros.h>
#include "internal/numbers.h"
diff --git a/crypto/ec/ec_backend.c b/crypto/ec/ec_backend.c
index 2db1c1380e..d2fff0657d 100644
--- a/crypto/ec/ec_backend.c
+++ b/crypto/ec/ec_backend.c
@@ -24,7 +24,7 @@
#include "crypto/bn.h"
#include "crypto/ec.h"
#include "ec_local.h"
-#include "e_os.h"
+#include "internal/e_os.h"
#include "internal/param_build_set.h"
/* Mapping between a flag and a name */
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c
index 2d85d4f23a..2aeab7e3b6 100644
--- a/crypto/ec/ec_lib.c
+++ b/crypto/ec/ec_lib.c
@@ -22,7 +22,7 @@
#include "crypto/ec.h"
#include "internal/nelem.h"
#include "ec_local.h"
-#include "e_os.h" /* strcasecmp */
+#include "internal/e_os.h" /* strcasecmp */
/* functions for EC_GROUP objects */
diff --git a/crypto/encode_decode/decoder_lib.c b/crypto/encode_decode/decoder_lib.c
index 10a38b6f82..9242cd2c6f 100644
--- a/crypto/encode_decode/decoder_lib.c
+++ b/crypto/encode_decode/decoder_lib.c
@@ -20,7 +20,7 @@
#include "internal/provider.h"
#include "crypto/decoder.h"
#include "encoder_local.h"
-#include "e_os.h"
+#include "internal/e_os.h"
struct decoder_process_data_st {
OSSL_DECODER_CTX *ctx;
diff --git a/crypto/encode_decode/decoder_pkey.c b/crypto/encode_decode/decoder_pkey.c
index 475117a463..472abef311 100644
--- a/crypto/encode_decode/decoder_pkey.c
+++ b/crypto/encode_decode/decoder_pkey.c
@@ -18,7 +18,7 @@
#include "crypto/evp.h"
#include "crypto/decoder.h"
#include "encoder_local.h"
-#include "e_os.h" /* strcasecmp on Windows */
+#include "internal/e_os.h" /* strcasecmp on Windows */
int OSSL_DECODER_CTX_set_passphrase(OSSL_DECODER_CTX *ctx,
const unsigned char *kstr,
diff --git a/crypto/encode_decode/encoder_lib.c b/crypto/encode_decode/encoder_lib.c
index 8d083bd6a6..52cc404097 100644
--- a/crypto/encode_decode/encoder_lib.c
+++ b/crypto/encode_decode/encoder_lib.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h" /* strcasecmp on Windows */
+#include "internal/e_os.h" /* strcasecmp on Windows */
#include <openssl/core_names.h>
#include <openssl/bio.h>
#include <openssl/encoder.h>
diff --git a/crypto/encode_decode/encoder_pkey.c b/crypto/encode_decode/encoder_pkey.c
index 109dfa80cd..ba29da6385 100644
--- a/crypto/encode_decode/encoder_pkey.c
+++ b/crypto/encode_decode/encoder_pkey.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h" /* strcasecmp on Windows */
+#include "internal/e_os.h" /* strcasecmp on Windows */
#include <openssl/err.h>
#include <openssl/ui.h>
#include <openssl/params.h>
diff --git a/crypto/engine/eng_init.c b/crypto/engine/eng_init.c
index c204eb1899..343a069fa0 100644
--- a/crypto/engine/eng_init.c
+++ b/crypto/engine/eng_init.c
@@ -10,7 +10,7 @@
/* We need to use some engine deprecated APIs */
#define OPENSSL_SUPPRESS_DEPRECATED
-#include "e_os.h"
+#include "internal/e_os.h"
#include "eng_local.h"
/*
diff --git a/crypto/engine/eng_lib.c b/crypto/engine/eng_lib.c
index 05c6a67c1e..813bcd6df6 100644
--- a/crypto/engine/eng_lib.c
+++ b/crypto/engine/eng_lib.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include "eng_local.h"
#include <openssl/rand.h>
#include "internal/refcount.h"
diff --git a/crypto/engine/tb_asnmth.c b/crypto/engine/tb_asnmth.c
index e3a5c82e99..bf424ff09e 100644
--- a/crypto/engine/tb_asnmth.c
+++ b/crypto/engine/tb_asnmth.c
@@ -10,7 +10,7 @@
/* We need to use some engine deprecated APIs */
#define OPENSSL_SUPPRESS_DEPRECATED
-#include "e_os.h"
+#include "internal/e_os.h"
#include "eng_local.h"
#include <openssl/evp.h>
#include "crypto/asn1.h"
diff --git a/crypto/err/err.c b/crypto/err/err.c
index 63cf682382..04eaf43b72 100644
--- a/crypto/err/err.c
+++ b/crypto/err/err.c
@@ -23,7 +23,7 @@
#include "internal/thread_once.h"
#include "crypto/ctype.h"
#include "internal/constant_time.h"
-#include "e_os.h"
+#include "internal/e_os.h"
#include "err_local.h"
/* Forward declaration in case it's not published because of configuration */
diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c
index 2deb1d9b47..33e5e7f189 100644
--- a/crypto/evp/ctrl_params_translate.c
+++ b/crypto/evp/ctrl_params_translate.c
@@ -37,7 +37,7 @@
#include "crypto/dh.h"
#include "crypto/ec.h"
-#include "e_os.h" /* strcasecmp() for Windows */
+#include "internal/e_os.h" /* strcasecmp() for Windows */
struct translation_ctx_st; /* Forwarding */
struct translation_st; /* Forwarding */
diff --git a/crypto/evp/ec_support.c b/crypto/evp/ec_support.c
index 8550be65e7..979e861cff 100644
--- a/crypto/evp/ec_support.c
+++ b/crypto/evp/ec_support.c
@@ -10,7 +10,7 @@
#include <string.h>
#include <openssl/ec.h>
#include "crypto/ec.h"
-#include "e_os.h" /* strcasecmp required by windows */
+#include "internal/e_os.h" /* strcasecmp required by windows */
typedef struct ec_name2nid_st {
const char *name;
diff --git a/crypto/evp/evp_lib.c b/crypto/evp/evp_lib.c
index 24092cfd5b..3d261c282f 100644
--- a/crypto/evp/evp_lib.c
+++ b/crypto/evp/evp_lib.c
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <string.h>
-#include "e_os.h" /* strcasecmp */
+#include "internal/e_os.h" /* strcasecmp */
#include "internal/cryptlib.h"
#include <openssl/evp.h>
#include <openssl/objects.h>
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index 27138af564..be15f105b7 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -50,7 +50,7 @@
#include "internal/provider.h"
#include "evp_local.h"
-#include "e_os.h" /* strcasecmp on Windows */
+#include "internal/e_os.h" /* strcasecmp on Windows */
static int pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str,
int len, EVP_KEYMGMT *keymgmt);
diff --git a/crypto/ffc/ffc_dh.c b/crypto/ffc/ffc_dh.c
index e9f597c46c..cedf283533 100644
--- a/crypto/ffc/ffc_dh.c
+++ b/crypto/ffc/ffc_dh.c
@@ -10,7 +10,7 @@
#include "internal/ffc.h"
#include "internal/nelem.h"
#include "crypto/bn_dh.h"
-#include "e_os.h" /* strcasecmp */
+#include "internal/e_os.h" /* strcasecmp */
#ifndef OPENSSL_NO_DH
diff --git a/crypto/ffc/ffc_params.c b/crypto/ffc/ffc_params.c
index 6e025a06be..1078a7b845 100644
--- a/crypto/ffc/ffc_params.c
+++ b/crypto/ffc/ffc_params.c
@@ -12,7 +12,7 @@
#include "internal/ffc.h"
#include "internal/param_build_set.h"
#include "internal/nelem.h"
-#include "e_os.h" /* strcasecmp */
+#include "internal/e_os.h" /* strcasecmp */
#ifndef FIPS_MODULE
# include <openssl/asn1.h> /* ossl_ffc_params_print */
diff --git a/crypto/getenv.c b/crypto/getenv.c
index e79b6cc161..b263d1b624 100644
--- a/crypto/getenv.c
+++ b/crypto/getenv.c
@@ -13,7 +13,7 @@
#include <stdlib.h>
#include "internal/cryptlib.h"
-#include "e_os.h"
+#include "internal/e_os.h"
char *ossl_safe_getenv(const char *name)
{
diff --git a/crypto/http/http_client.c b/crypto/http/http_client.c
index 14c2cbf2b5..d6345b4582 100644
--- a/crypto/http/http_client.c
+++ b/crypto/http/http_client.c
@@ -8,7 +8,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "e_os.h"
+#include "internal/e_os.h"
#include <stdio.h>
#include <stdlib.h>
#include "crypto/ctype.h"
diff --git a/crypto/info.c b/crypto/info.c
index f3bef56b13..05edbc3fc8 100644
--- a/crypto/info.c
+++ b/crypto/info.c
@@ -12,7 +12,7 @@
#include "crypto/dso_conf.h"
#i