mirror of https://github.com/thesofproject/sof.git
rimage: fix openssl 1.0 support
cppcheck gives errors from openssl 1.0 related code that has some old churn and should be fixed, so fix it. Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
This commit is contained in:
parent
23a53ac8b6
commit
3b4b1429b0
|
@ -123,13 +123,14 @@ static int rimage_check_key(EVP_PKEY *privkey)
|
|||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
static void rimage_set_modexp(EVP_PKEY *privkey, unsigned char *mod, unsigned char *exp)
|
||||
{
|
||||
RSA *priv_rsa = NULL;
|
||||
const BIGNUM *n;
|
||||
const BIGNUM *e;
|
||||
const BIGNUM *d;
|
||||
|
||||
*n = r->n;
|
||||
*e = r->e;
|
||||
*d = r->d;
|
||||
priv_rsa = EVP_PKEY_get1_RSA(privkey);
|
||||
|
||||
n = priv_rsa->n;
|
||||
e = priv_rsa->e;
|
||||
|
||||
BN_bn2bin(n, mod);
|
||||
BN_bn2bin(e, exp);
|
||||
|
|
Loading…
Reference in New Issue