Core/SSH: OpenSSL 3.0 deprecation warnings are suppressed. (#153)

This commit is contained in:
İsmail Yılmaz 2023-04-22 12:50:13 +03:00 committed by GitHub
parent 33ac49eae6
commit 903e4d0715
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,6 +46,15 @@
#define PACKAGE_URL "https://github.com/ultimatepp/ultimatepp"
#define PACKAGE_VERSION "2022.2 (libssh2 v.1.10.0)"
/*
OpenSSL version 3.0 deprecated a bunch of api calls.
Until libssh2 adopts the new API calls, we will simply
suppress the deprecation warnings by compiling the library
in compatibility mode.
*/
#define OPENSSL_API_COMPAT 0x10100000L
/* Headers */
#define HAVE_INTTYPES_H
#define HAVE_STDLIB_H