aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-10-31 16:36:12 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-09 16:08:03 +0100
commit64cd7e7ce2dd6aa514b61b55cf6b07e33ae4583e (patch)
treeb1f0954d55d21045f63bf80129d164f39b7e18c7 /include/libssh
parentf5bc5147b972b7fc27b38c2ecb290d8cf1a2dd74 (diff)
downloadlibssh-64cd7e7ce2dd6aa514b61b55cf6b07e33ae4583e.tar.gz
libssh-64cd7e7ce2dd6aa514b61b55cf6b07e33ae4583e.tar.xz
libssh-64cd7e7ce2dd6aa514b61b55cf6b07e33ae4583e.zip
bignum: Fix integer types for ssh_make_bignum_string()
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libcrypto.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libcrypto.h b/include/libssh/libcrypto.h
index fff6ff55..4117942c 100644
--- a/include/libssh/libcrypto.h
+++ b/include/libssh/libcrypto.h
@@ -96,9 +96,9 @@ typedef BN_CTX* bignum_CTX;
#define bignum_add(dest, a, b) BN_add(dest, a, b)
#define bignum_sub(dest, a, b) BN_sub(dest, a, b)
#define bignum_mod(dest, a, b, ctx) BN_mod(dest, a, b, ctx)
-#define bignum_num_bytes(num) BN_num_bytes(num)
-#define bignum_num_bits(num) BN_num_bits(num)
-#define bignum_is_bit_set(num,bit) BN_is_bit_set(num,bit)
+#define bignum_num_bytes(num) (size_t)BN_num_bytes(num)
+#define bignum_num_bits(num) (size_t)BN_num_bits(num)
+#define bignum_is_bit_set(num,bit) BN_is_bit_set(num, (int)bit)
#define bignum_bn2bin(num,len, ptr) BN_bn2bin(num, ptr)
#define bignum_cmp(num1,num2) BN_cmp(num1,num2)
#define bignum_rshift1(dest, src) BN_rshift1(dest, src)