Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 657720 | Differences between
and this patch

Collapse All | Expand All

(-)qca-2.2.0_pre20180606.orig/plugins/qca-ossl/qca-ossl.cpp (-2 / +17 lines)
Lines 62-69 Link Here
62
62
63
// OpenSSL 1.1.0 compatibility macros
63
// OpenSSL 1.1.0 compatibility macros
64
#ifdef OSSL_110
64
#ifdef OSSL_110
65
#define M_ASN1_IA5STRING_new() ASN1_IA5STRING_new()
65
//#define M_ASN1_IA5STRING_new() ASN1_IA5STRING_new()
66
#define RSA_F_RSA_EAY_PRIVATE_DECRYPT RSA_F_RSA_OSSL_PRIVATE_DECRYPT
66
//#define RSA_F_RSA_EAY_PRIVATE_DECRYPT RSA_F_RSA_OSSL_PRIVATE_DECRYPT
67
static int RSA_meth_set_sign(RSA_METHOD *meth, int (*sign) (int type, const unsigned char *m,
68
    unsigned int m_length, unsigned char *sigret, unsigned int *siglen, const RSA *rsa))
69
{
70
    if (!meth) return 0;
71
    meth->rsa_sign = sign;
72
    return 1;
73
}
74
75
static int RSA_meth_set_verify(RSA_METHOD *meth, int (*verify) (int dtype, const unsigned char *m,
76
    unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa))
77
{
78
    if (!meth) return 0;
79
    meth->rsa_verify = verify;
80
    return 1;
81
}
67
#endif
82
#endif
68
83
69
using namespace QCA;
84
using namespace QCA;

Return to bug 657720