bignum: Pass const to ssh_print_bignum()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2019-08-06 20:22:50 +02:00
parent 89ab7b23f8
commit 4e25ee6124
5 changed files with 8 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ bignum ssh_make_string_bn(ssh_string string)
}
/* prints the bignum on stderr */
void ssh_print_bignum(const char *name, const bignum num)
void ssh_print_bignum(const char *name, const_bignum num)
{
unsigned char *hex = NULL;
if (num != NULL) {

View File

@@ -45,7 +45,7 @@ void ssh_mbedcry_bn_free(bignum bn)
SAFE_FREE(bn);
}
unsigned char *ssh_mbedcry_bn2num(bignum num, int radix)
unsigned char *ssh_mbedcry_bn2num(const_bignum num, int radix)
{
char *buf = NULL;
size_t olen;