From 8f6e948f5f6bb2b517a5436dd6294e7e5536cf8f Mon Sep 17 00:00:00 2001 From: Cristian Stoica Date: Tue, 9 Feb 2016 12:13:59 +0200 Subject: [PATCH 46/48] cryptodev: add explicit cast for known BIGNUM values Signed-off-by: Cristian Stoica --- crypto/engine/eng_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c index 58e539c..ddd3462 100644 --- a/crypto/engine/eng_cryptodev.c +++ b/crypto/engine/eng_cryptodev.c @@ -4027,7 +4027,7 @@ static int cryptodev_dh_keygen(DH *dh) } /* pub_key is or prime length while priv key is of length of order */ - if (cryptodev_asym(&kop, q_len, w, q_len, s)) + if (cryptodev_asym(&kop, q_len, (BIGNUM *)w, q_len, (BIGNUM *)s)) goto sw_try; dh->pub_key = BN_bin2bn(w, q_len, pub_key); -- 2.7.3