Skip to content

Commit

Permalink
Fix compilation issue with OpenSSL 1.0.2
Browse files Browse the repository at this point in the history
Change-Id: Ib7a10ee60fb9d55281efabe40fc6844080fdda70
Signed-off-by: Steve Linsell <stevenx.linsell@intel.com>
  • Loading branch information
Yogaraj-Alamenda authored and stevelinsell committed Feb 25, 2020
1 parent a8dab01 commit d560acc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions qat_rsa_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,26 @@ int RSA_meth_set_bn_mod_exp(RSA_METHOD *meth,
return 1;
}

int RSA_meth_set_init(RSA_METHOD *meth, int (*init) (RSA *rsa))
{
meth->init = init;
return 1;
}

int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa)
{
return meth->init;
}

int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish) (RSA *rsa))
{
meth->finish = finish;
return 1;
}

int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa)
{
return meth->finish;
}

#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
5 changes: 5 additions & 0 deletions qat_rsa_aux.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ int RSA_meth_set_bn_mod_exp(RSA_METHOD *meth,
BN_CTX *ctx,
BN_MONT_CTX *m_ctx));

int (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa);
int RSA_meth_set_init(RSA_METHOD *rsa, int (*init) (RSA *rsa));
int (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa);
int RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa));

#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */


Expand Down

0 comments on commit d560acc

Please sign in to comment.