mbedcrypto: Make bignum_bin2bn behave like others

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Simo Sorce
2019-03-12 18:43:42 -04:00
committed by Andreas Schneider
parent fd30cf0676
commit 997fe4d418
4 changed files with 6 additions and 37 deletions

View File

@@ -71,13 +71,7 @@ bignum ssh_make_string_bn(ssh_string string)
len * 8, len);
#endif /* DEBUG_CRYPTO */
#if defined HAVE_LIBMBEDCRYPTO
bn = bignum_new();
bignum_bin2bn(string->data, len, bn);
#else
// FIXME
bignum_bin2bn(string->data, len, &bn);
#endif
return bn;
}