diff --git a/include/proxysql.h b/include/proxysql.h index 4e2bb464b..d10e0f3cf 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 6d5aa4663..2178275af 100644 --- a/lib/MySQL_Protocol.cpp +++ b/lib/MySQL_Protocol.cpp @@ -2,7 +2,7 @@ using json = nlohmann::json; #define PROXYJSON -#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 87e713aa7..403f89ff5 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 13a4f0461..384a415c2 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/PgSQL_Data_Stream.cpp b/lib/PgSQL_Data_Stream.cpp index d8a6b4c23..15015f588 100644 --- a/lib/PgSQL_Data_Stream.cpp +++ b/lib/PgSQL_Data_Stream.cpp @@ -9,7 +9,7 @@ #include "MySQL_PreparedStatement.h" #include "PgSQL_Data_Stream.h" -#include +#include "openssl/x509v3.h" /* diff --git a/lib/PgSQL_Protocol.cpp b/lib/PgSQL_Protocol.cpp index 57353fd63..d494e4f18 100644 --- a/lib/PgSQL_Protocol.cpp +++ b/lib/PgSQL_Protocol.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 c5c10dcc7..f0da622e3 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -11,8 +11,8 @@ using json = nlohmann::json; #include #include #include -#include -#include +#include "openssl/ssl.h" +#include "openssl/err.h" #include "Base_Thread.h" diff --git a/lib/mysql_data_stream.cpp b/lib/mysql_data_stream.cpp index 6f13577db..af3e90c6f 100644 --- a/lib/mysql_data_stream.cpp +++ b/lib/mysql_data_stream.cpp @@ -12,7 +12,7 @@ using json = nlohmann::json; #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 a7228055f..6416864a7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,7 +43,7 @@ using json = nlohmann::json; #include "curl/curl.h" -#include +#include "openssl/x509v3.h" #include @@ -78,7 +78,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 d43f25f8c..d98be8db5 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) {