mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 10:40:28 +09:00
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:
committed by
Andreas Schneider
parent
fd30cf0676
commit
997fe4d418
16
src/dh.c
16
src/dh.c
@@ -247,20 +247,6 @@ int ssh_dh_init(void)
|
||||
goto error;
|
||||
}
|
||||
|
||||
#if defined(HAVE_LIBMBEDCRYPTO)
|
||||
/* FIXME */
|
||||
p_group1 = bignum_new();
|
||||
bignum_bin2bn(p_group1_value, P_GROUP1_LEN, p_group1);
|
||||
|
||||
p_group14 = bignum_new();
|
||||
bignum_bin2bn(p_group14_value, P_GROUP14_LEN, p_group14);
|
||||
|
||||
p_group16 = bignum_new();
|
||||
bignum_bin2bn(p_group16_value, P_GROUP16_LEN, p_group16);
|
||||
|
||||
p_group18 = bignum_new();
|
||||
bignum_bin2bn(p_group18_value, P_GROUP18_LEN, p_group18);
|
||||
#else
|
||||
bignum_bin2bn(p_group1_value, P_GROUP1_LEN, &p_group1);
|
||||
if (p_group1 == NULL) {
|
||||
goto error;
|
||||
@@ -278,8 +264,6 @@ int ssh_dh_init(void)
|
||||
goto error;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
dh_crypto_initialized = 1;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user