-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5862625
commit 20b1b7e
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef NETDATA_SSL_H | ||
#define NETDATA_SSL_H | ||
|
||
// External SSL libraries used with netdata | ||
|
||
#ifdef ENABLE_HTTPS | ||
|
||
#if defined(ENABLE_WOLFSSL) | ||
#include <wolfssl/options.h> | ||
#include <wolfssl/version.h> | ||
#include <wolfssl/ssl.h> | ||
#include <wolfssl/error-ssl.h> | ||
|
||
#include <wolfssl/openssl/ssl.h> | ||
#include <wolfssl/openssl/err.h> | ||
#include <wolfssl/openssl/sha.h> | ||
#include <wolfssl/openssl/evp.h> | ||
#elif defined(ENABLE_OPENSSL) | ||
#define OPENSSL_VERSION_095 0x00905100L | ||
#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/sha.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 | ||
#endif // ENABLE_OPENSSL | ||
|
||
#endif // ENABLE_HTTPS | ||
|
||
#endif |