summaryrefslogtreecommitdiffstats
path: root/crypto/engine
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-07-21 13:45:17 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-07-21 13:45:17 +0000
commit7bd8bf58bba469038f8573ee0e819f0a888f675f (patch)
treeb3e0a9a781c7b7a3b29e6e59f8ae7b95800b3af5 /crypto/engine
parent1190d3f442ba6e5288a2eb20a655c053ea538548 (diff)
stop warnings
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/eng_rsax.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/engine/eng_rsax.c b/crypto/engine/eng_rsax.c
index 7c4fa71313..72185d686b 100644
--- a/crypto/engine/eng_rsax.c
+++ b/crypto/engine/eng_rsax.c
@@ -73,6 +73,7 @@
#include <openssl/rsa.h>
#endif
#include <openssl/bn.h>
+#include <openssl/err.h>
/* RSAX is available **ONLY* on x86_64 CPUs */
#undef COMPILE_RSAX
@@ -284,7 +285,7 @@ static E_RSAX_MOD_CTX *e_rsax_get_ctx(RSA *rsa, int idx, BIGNUM* m)
RSA_set_ex_data(rsa, rsax_ex_data_idx, hptr);
}
- if (hptr[idx].type == BN_num_bits(m))
+ if (hptr[idx].type == (UINT64)BN_num_bits(m))
return hptr+idx;
if (BN_num_bits(m) == 512) {