diff options
author | Brad King <brad.king@kitware.com> | 2023-01-30 13:20:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-30 13:22:02 (GMT) |
commit | 8443dfa94663531c8481611cc35b807c1cea2c75 (patch) | |
tree | 414e635f383901abe8e7935c378481004b3120ba /Utilities | |
parent | f9f5957884c279af81766f3f339bdd0e768e814f (diff) | |
download | CMake-8443dfa94663531c8481611cc35b807c1cea2c75.zip CMake-8443dfa94663531c8481611cc35b807c1cea2c75.tar.gz CMake-8443dfa94663531c8481611cc35b807c1cea2c75.tar.bz2 |
curl: Work around missing OpenSSL symbol on machine with LCC 1.23
On a nightly build using LCC 1.23, OpenSSL 2.0.0 is found but does
not seem to have the `X509_STORE_up_ref` symbol used by curl 7.87.
Pending further investigation, disable use of the symbol based on
the compiler version.
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmcurl/lib/vtls/openssl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Utilities/cmcurl/lib/vtls/openssl.c b/Utilities/cmcurl/lib/vtls/openssl.c index d86e4b7..c5085be 100644 --- a/Utilities/cmcurl/lib/vtls/openssl.c +++ b/Utilities/cmcurl/lib/vtls/openssl.c @@ -271,6 +271,12 @@ #define HAVE_SSL_X509_STORE_SHARE #endif +/* FIXME: On a specific machine using LCC 1.23, OpenSSL 2.0.0 + * is found but does not seem to have X509_STORE_up_ref. */ +#if defined(__LCC__) && defined(__EDG__) && (__LCC__ == 123) +#undef HAVE_SSL_X509_STORE_SHARE +#endif + /* What API version do we use? */ #if defined(LIBRESSL_VERSION_NUMBER) #define USE_PRE_1_1_API (LIBRESSL_VERSION_NUMBER < 0x2070000f) |