1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00

openssl: make ssh2_bn_bytes()/ssh2_bn_bits() return size_t

To match other crypto backends.

Closes #2592
This commit is contained in:
Viktor Szakats
2026-09-07 10:10:33 +02:00
parent 8e181e7a8e
commit b766778c22

View File

@@ -346,8 +346,8 @@ typedef enum {
#define ssh2_bn_set_word(bn, word) !BN_set_word(bn, word)
#define ssh2_bn_from_bin(bn, bin, l) (BN_bin2bn(bin, (int)(l), bn) ? 0 : -1)
#define ssh2_bn_to_bin(bn, bin) (BN_bn2bin(bn, bin) <= 0)
#define ssh2_bn_bytes(bn) BN_num_bytes(bn)
#define ssh2_bn_bits(bn) BN_num_bits(bn)
#define ssh2_bn_bytes(bn) ((size_t)BN_num_bytes(bn))
#define ssh2_bn_bits(bn) ((size_t)BN_num_bits(bn))
#define ssh2_bn_free(bn) BN_clear_free(bn)
#define ssh2_dh_ctx BIGNUM *