1 From b27823ac9f460c96a72d9003e2e134c1288ac85f Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@nxp.com>
3 Date: Tue, 9 Feb 2016 12:13:59 +0200
4 Subject: [PATCH 46/48] cryptodev: add explicit cast for known BIGNUM values
6 Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
8 crypto/engine/eng_cryptodev.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
12 index 3024a68..539be62 100644
13 --- a/crypto/engine/eng_cryptodev.c
14 +++ b/crypto/engine/eng_cryptodev.c
15 @@ -4014,7 +4014,7 @@ static int cryptodev_dh_keygen(DH *dh)
18 /* pub_key is or prime length while priv key is of length of order */
19 - if (cryptodev_asym(&kop, q_len, w, q_len, s))
20 + if (cryptodev_asym(&kop, q_len, (BIGNUM *)w, q_len, (BIGNUM *)s))
23 dh->pub_key = BN_bin2bn(w, q_len, pub_key);