diff --git a/.gitignore b/.gitignore index 0d02ecdf8fdfadcbf585eeddd4424ce58c7450ed..659be22843cbb29fe9ce8b09b9fcb39c83cfb4c7 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,7 @@ # Auto generated headers /crypto/buildinf.h /include/crypto/*_conf.h -/include/openssl/opensslconf.h +/include/openssl/configuration.h /include/openssl/opensslv.h # Auto generated doc files diff --git a/CHANGES b/CHANGES index e0b15b35f665c842f0dcbcf7692994eeb71e05f0..45f97e67407b88ff8a24ecd796c5fe85b5c50001 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,26 @@ Changes between 1.1.1 and 3.0.0 [xx XXX xxxx] + *) Removed include/openssl/opensslconf.h.in and replaced it with + include/openssl/configuration.h.in, which differs in not including + . A short header include/openssl/opensslconf.h + was added to include both. + + This allows internal hacks where one might need to modify the set + of configured macros, for example this if deprecated symbols are + still supposed to be available internally: + + #include + + #undef OPENSSL_NO_DEPRECATED + #define OPENSSL_SUPPRESS_DEPRECATED + + #include + + This should not be used by applications that use the exported + symbols, as that will lead to linking errors. + [Richard Levitte] + *) Fixed an an overflow bug in the x64_64 Montgomery squaring procedure used in exponentiation with 512-bit moduli. No EC algorithms are affected. Analysis suggests that attacks against 2-prime RSA1024, diff --git a/INSTALL b/INSTALL index 7578733f4e208d80322d2518500cef116366f717..4dcc452562c2f977b7f0b7606960c41afc239ad5 100644 --- a/INSTALL +++ b/INSTALL @@ -836,8 +836,8 @@ Configure creates a build file ("Makefile" on Unix, "makefile" on Windows and "descrip.mms" on OpenVMS) from a suitable template in Configurations, - and defines various macros in include/openssl/opensslconf.h (generated from - include/openssl/opensslconf.h.in). + and defines various macros in include/openssl/configuration.h (generated + from include/openssl/configuration.h.in). 1c. Configure OpenSSL for building outside of the source tree. diff --git a/build.info b/build.info index a28ddbe739678f1870e334ffbf9eb96892ac53b0..6cfa2017c433dbb86dfc20eecb4da8ab8e75eaad 100644 --- a/build.info +++ b/build.info @@ -9,11 +9,11 @@ DEPEND[libssl]=libcrypto # Empty DEPEND "indices" means the dependencies are expected to be built # unconditionally before anything else. -DEPEND[]=include/openssl/opensslconf.h include/openssl/opensslv.h \ +DEPEND[]=include/openssl/configuration.h include/openssl/opensslv.h \ include/crypto/bn_conf.h include/crypto/dso_conf.h \ doc/man7/openssl_user_macros.pod -GENERATE[include/openssl/opensslconf.h]=include/openssl/opensslconf.h.in +GENERATE[include/openssl/configuration.h]=include/openssl/configuration.h.in GENERATE[include/openssl/opensslv.h]=include/openssl/opensslv.h.in GENERATE[include/crypto/bn_conf.h]=include/crypto/bn_conf.h.in GENERATE[include/crypto/dso_conf.h]=include/crypto/dso_conf.h.in diff --git a/include/openssl/opensslconf.h.in b/include/openssl/configuration.h.in similarity index 91% rename from include/openssl/opensslconf.h.in rename to include/openssl/configuration.h.in index c0ef3ddcff6591111e89e5d9a0c1d5d376a0e330..00a4fc0aa3866175e90d3bb9767c8032ce5ab2a9 100644 --- a/include/openssl/opensslconf.h.in +++ b/include/openssl/configuration.h.in @@ -9,8 +9,8 @@ * https://www.openssl.org/source/license.html */ -#ifndef OPENSSL_OPENSSLCONF_H -# define OPENSSL_OPENSSLCONF_H +#ifndef OPENSSL_CONFIGURATION_H +# define OPENSSL_CONFIGURATION_H # ifdef __cplusplus extern "C" { @@ -65,6 +65,4 @@ extern "C" { } # endif -# include - -#endif /* OPENSSL_OPENSSLCONF_H */ +#endif /* OPENSSL_CONFIGURATION_H */ diff --git a/include/openssl/opensslconf.h b/include/openssl/opensslconf.h new file mode 100644 index 0000000000000000000000000000000000000000..9a49bceea3979f1e87f6edee789f2eec032ec0f7 --- /dev/null +++ b/include/openssl/opensslconf.h @@ -0,0 +1,16 @@ +/* + * Copyright 2019 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 + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +#ifndef OPENSSL_OPENSSLCONF_H +# define OPENSSL_OPENSSLCONF_H + +#include +#include + +#endif /* OPENSSL_OPENSSLCONF_H */