Skip to content

Commit

Permalink
use_wolfssl: Add missing directory
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoftsm committed Apr 26, 2024
1 parent 5862625 commit 20b1b7e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/libnetdata/ssl/ssl.h
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

0 comments on commit 20b1b7e

Please sign in to comment.