diff -Naru qca-2.2.0_pre20180606.orig/plugins/qca-ossl/qca-ossl.cpp qca-2.2.0_pre20180606/plugins/qca-ossl/qca-ossl.cpp --- qca-2.2.0_pre20180606.orig/plugins/qca-ossl/qca-ossl.cpp 2018-12-18 15:26:24.315697180 +0800 +++ qca-2.2.0_pre20180606/plugins/qca-ossl/qca-ossl.cpp 2018-12-18 15:27:14.775694847 +0800 @@ -62,8 +62,23 @@ // OpenSSL 1.1.0 compatibility macros #ifdef OSSL_110 -#define M_ASN1_IA5STRING_new() ASN1_IA5STRING_new() -#define RSA_F_RSA_EAY_PRIVATE_DECRYPT RSA_F_RSA_OSSL_PRIVATE_DECRYPT +//#define M_ASN1_IA5STRING_new() ASN1_IA5STRING_new() +//#define RSA_F_RSA_EAY_PRIVATE_DECRYPT RSA_F_RSA_OSSL_PRIVATE_DECRYPT +static int RSA_meth_set_sign(RSA_METHOD *meth, int (*sign) (int type, const unsigned char *m, + unsigned int m_length, unsigned char *sigret, unsigned int *siglen, const RSA *rsa)) +{ + if (!meth) return 0; + meth->rsa_sign = sign; + return 1; +} + +static int RSA_meth_set_verify(RSA_METHOD *meth, int (*verify) (int dtype, const unsigned char *m, + unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa)) +{ + if (!meth) return 0; + meth->rsa_verify = verify; + return 1; +} #endif using namespace QCA;