diff --git a/include/proxysql.h b/include/proxysql.h index 522bd4d1d4..90c881d414 100644 --- a/include/proxysql.h +++ b/include/proxysql.h @@ -38,11 +38,11 @@ #include #include #include -#include -#include -#include -#include -#include +#include "openssl/bio.h" +#include "openssl/sha.h" +#include "openssl/md5.h" +#include "openssl/ssl.h" +#include "openssl/err.h" #include #include diff --git a/lib/MySQL_Protocol.cpp b/lib/MySQL_Protocol.cpp index cba71c6a8a..5b02b562a6 100644 --- a/lib/MySQL_Protocol.cpp +++ b/lib/MySQL_Protocol.cpp @@ -1,4 +1,4 @@ -#include +#include "openssl/rand.h" #include "proxysql.h" #include "cpp.h" #include "re2/re2.h" diff --git a/lib/MySQL_ResultSet.cpp b/lib/MySQL_ResultSet.cpp index 87e713aa76..403f89ff5d 100644 --- a/lib/MySQL_ResultSet.cpp +++ b/lib/MySQL_ResultSet.cpp @@ -1,4 +1,4 @@ -#include +#include "openssl/rand.h" #include "proxysql.h" #include "cpp.h" #include "re2/re2.h" diff --git a/lib/MySQL_encode.cpp b/lib/MySQL_encode.cpp index 13a4f0461b..384a415c24 100644 --- a/lib/MySQL_encode.cpp +++ b/lib/MySQL_encode.cpp @@ -1,4 +1,4 @@ -#include +#include "openssl/rand.h" #include "proxysql.h" #include "cpp.h" diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 61fe3af6ed..96ef9816b1 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -7,8 +7,8 @@ #include #include #include -#include -#include +#include "openssl/ssl.h" +#include "openssl/err.h" #include "MySQL_HostGroups_Manager.h" #include "mysql.h" #include "proxysql_admin.h" diff --git a/lib/mysql_data_stream.cpp b/lib/mysql_data_stream.cpp index 2407f3b7ee..7330f9492a 100644 --- a/lib/mysql_data_stream.cpp +++ b/lib/mysql_data_stream.cpp @@ -8,7 +8,7 @@ #include "MySQL_PreparedStatement.h" #include "MySQL_Data_Stream.h" -#include +#include "openssl/x509v3.h" /** diff --git a/src/main.cpp b/src/main.cpp index db619b6b6d..85b1ef9bb5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,7 +36,7 @@ #include "curl/curl.h" -#include +#include "openssl/x509v3.h" #include @@ -71,7 +71,7 @@ char *binary_sha1 = NULL; #endif static pthread_mutex_t *lockarray; -#include +#include "openssl/crypto.h" // this fuction will be called as a deatached thread diff --git a/src/proxy_tls.cpp b/src/proxy_tls.cpp index 433bb173fc..c940116313 100644 --- a/src/proxy_tls.cpp +++ b/src/proxy_tls.cpp @@ -1,6 +1,6 @@ #include "proxysql.h" #include "cpp.h" -#include +#include "openssl/x509v3.h" static long get_file_size (const char *filename) {