diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2022-06-30 07:11:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 07:11:23 +0000 |
commit | 12340cf1ef5065c5ab539967e610a263cc602741 (patch) | |
tree | 7978d0977c64de2896f07c054d682c3c4587743a /libnetdata | |
parent | 8368cc0fca0fc4ef91f75998b7d4536a49850afe (diff) |
Remove warnings when openssl 3 is used. (#13170)
* remove_warnings_openssl_v3: Add new macro to define latest OpenSSL version
* remove_warnings_openssl_v3: Add headers necessary for new API
* remove_warnings_openssl_v3: Add compatible variables and adjst code inside load_private_key
* remove_warnings_openssl_v3: Adjust function aclk_get_mqtt_otp according to openssl version
* remove_warnings_openssl_v3: Adjust function private_decrypt
* remove_warnings_openssl_v3: Fix function private_decrypt
* remove_warnings_openssl_v3: Update error message
* remove_warnings_openssl_v3: Update missing error message
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/socket/security.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libnetdata/socket/security.h b/libnetdata/socket/security.h index 17ecc6d05a..dbf71a6fea 100644 --- a/libnetdata/socket/security.h +++ b/libnetdata/socket/security.h @@ -22,13 +22,21 @@ #define OPENSSL_VERSION_097 0x0907000L #define OPENSSL_VERSION_110 0x10100000L #define OPENSSL_VERSION_111 0x10101000L +#define OPENSSL_VERSION_300 0x30000000L # include <openssl/ssl.h> # include <openssl/err.h> +# include <openssl/evp.h> +# include <openssl/pem.h> # if (SSLEAY_VERSION_NUMBER >= OPENSSL_VERSION_097) && (OPENSSL_VERSION_NUMBER < OPENSSL_VERSION_110) # include <openssl/conf.h> # endif +#if OPENSSL_VERSION_NUMBER >= OPENSSL_VERSION_300 +#include <openssl/core_names.h> +#include <openssl/decoder.h> +#endif + struct netdata_ssl{ SSL *conn; //SSL connection uint32_t flags; //The flags for SSL connection |