mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:33:38 +03:00
curl_setup: Suppress OpenSSL 3 deprecation warnings
- Define OPENSSL_SUPPRESS_DEPRECATED. OpenSSL 3 has deprecated some of the functions libcurl uses such as those with DES, MD5 and ENGINE prefix. We don't have replacements for those functions so the warnings were disabled in autotools and cmake builds, but still showed in other builds. Closes https://github.com/curl/curl/pull/10543
This commit is contained in:
parent
65d751d4cc
commit
cab040248d
4 changed files with 6 additions and 12 deletions
|
|
@ -862,4 +862,10 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buf,
|
|||
# endif
|
||||
#endif
|
||||
|
||||
/* OpenSSLv3 marks DES, MD5 and ENGINE functions deprecated but we have no
|
||||
replacements (yet) so tell the compiler to not warn for them. */
|
||||
#ifdef USE_OPENSSL
|
||||
#define OPENSSL_SUPPRESS_DEPRECATED
|
||||
#endif
|
||||
|
||||
#endif /* HEADER_CURL_SETUP_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue