aboutsummaryrefslogtreecommitdiff
path: root/src/dh.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2019-03-12 18:43:42 -0400
committerAndreas Schneider <asn@cryptomilk.org>2019-04-04 07:59:58 +0200
commit997fe4d418eafff8ace27e07141bdb5e4dee1753 (patch)
treeaeee431f75d4e48b84b5280ed69768542a66ba16 /src/dh.c
parentfd30cf06763ca1046bd655fa16e9e358ea3e35d9 (diff)
downloadlibssh-997fe4d418eafff8ace27e07141bdb5e4dee1753.tar.gz
libssh-997fe4d418eafff8ace27e07141bdb5e4dee1753.tar.xz
libssh-997fe4d418eafff8ace27e07141bdb5e4dee1753.zip
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>
Diffstat (limited to 'src/dh.c')
-rw-r--r--src/dh.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/dh.c b/src/dh.c
index b6ae33c6..5bfa8b35 100644
--- a/src/dh.c
+++ b/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;