We don't want to allow windows systems on new installs to use
OPENSSLDIR/MODULESDIR/ENGINESDIR at all, as it makes no sense to define
paths at build time that have no meaning at install time.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24450)
/*
- * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
if (!RUN_ONCE(&defaults_setup_init, do_defaults_setup))
return NULL;
return (const char *)openssldir;
-# else
- return "UNDEFINED";
# endif
-#else
-# ifdef OPENSSLDIR
- return OPENSSLDIR;
# else
- return "";
-# endif
+ return OPENSSLDIR;
#endif
}
return "UNDEFINED";
# endif
#else
-# ifdef OPENSSLDIR
return ENGINESDIR;
-# else
- return "";
-# endif
#endif
}
return "UNDEFINED";
# endif
#else
-# ifdef MODULESDIR
return MODULESDIR;
-# else
- return "";
-# endif
#endif
}
#if defined(_WIN32) && defined (OSSL_WINCTX)
return MAKESTR(OSSL_WINCTX);
#else
- return "";
+ return "UNDEFINED";
#endif
}