Scanning dependencies of target otclient
[ 0%] Building CXX object CMakeFiles/otclient.dir/src/framework/luafunctions.cpp.o
In file included from /home/binny/Documents/otclient/src/framework/../framework/global.h:42:0,
from /home/binny/Documents/otclient/src/framework/../framework/core/application.h:26,
from /home/binny/Documents/otclient/src/framework/luafunctions.cpp:23:
/home/binny/Documents/otclient/src/framework/../framework/util/matrix.h: In function ‘std::istream& operator>>(std::istream&, Matrix<N, M, T>&)’:
/home/binny/Documents/otclient/src/framework/../framework/util/matrix.h:193:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<N;++i)
^~~
/home/binny/Documents/otclient/src/framework/../framework/util/matrix.h:196:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
return in;
^~~~~~
[ 1%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/color.cpp.o
[ 2%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o
In file included from /home/binny/Documents/otclient/src/framework/../framework/core/../global.h:42:0,
from /home/binny/Documents/otclient/src/framework/../framework/core/logger.h:26,
from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:25:
/home/binny/Documents/otclient/src/framework/../framework/core/../util/matrix.h: In function ‘std::istream& operator>>(std::istream&, Matrix<N, M, T>&)’:
/home/binny/Documents/otclient/src/framework/../framework/core/../util/matrix.h:193:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<N;++i)
^~~
/home/binny/Documents/otclient/src/framework/../framework/core/../util/matrix.h:196:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
return in;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaGenerateKey(int, int)’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:315:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
g_logger.info(std::string("p = ") + BN_bn2dec(m_rsa->p));
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:316:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
g_logger.info(std::string("q = ") + BN_bn2dec(m_rsa->q));
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:317:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
g_logger.info(std::string("d = ") + BN_bn2dec(m_rsa->d));
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:318:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
g_logger.info(std::string("n = ") + BN_bn2dec(m_rsa->n));
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:319:56: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
g_logger.info(std::string("e = ") + BN_bn2dec(m_rsa->e));
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPublicKey(const string&, const string&)’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:326:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_dec2bn(&m_rsa->n, n.c_str());
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:327:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_dec2bn(&m_rsa->e, e.c_str());
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:330:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:330:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:330:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPrivateKey(const string&, const string&, const string&)’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:335:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_dec2bn(&m_rsa->p, p.c_str());
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:336:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_dec2bn(&m_rsa->q, q.c_str());
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:337:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_dec2bn(&m_rsa->d, d.c_str());
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:340:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:340:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:340:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:341:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:341:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:341:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
from /usr/include/openssl/rsa.h:16,
from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘bool Crypt::rsaCheckKey()’:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:352:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx);
^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
from /usr/include/openssl/rsa.h:16,
from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:352:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx);
^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
from /usr/include/openssl/rsa.h:16,
from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:353:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx);
^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
from /usr/include/openssl/rsa.h:16,
from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:353:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx);
^
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:355:29: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:355:42: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
/home/binny/Documents/otclient/src/framework/util/crypt.cpp:355:52: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
^~
In file included from /home/binny/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/binny/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
typedef struct rsa_st RSA;
^~~~~~
CMakeFiles/otclient.dir/build.make:110: recipe for target 'CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o' failed
make[2]: *** [CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2