diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: sshd.c,v 1.172 2001/03/04 17:42:28 millert Exp $"); | 43 | RCSID("$OpenBSD: sshd.c,v 1.173 2001/03/05 17:17:21 markus Exp $"); |
44 | 44 | ||
45 | #include <openssl/dh.h> | 45 | #include <openssl/dh.h> |
46 | #include <openssl/bn.h> | 46 | #include <openssl/bn.h> |
@@ -1519,7 +1519,7 @@ ssh_dh1_server(Kex *kex, Buffer *client_kexinit, Buffer *server_kexinit) | |||
1519 | /* KEXDH */ | 1519 | /* KEXDH */ |
1520 | /* generate DH key */ | 1520 | /* generate DH key */ |
1521 | dh = dh_new_group1(); /* XXX depends on 'kex' */ | 1521 | dh = dh_new_group1(); /* XXX depends on 'kex' */ |
1522 | dh_gen_key(dh); | 1522 | dh_gen_key(dh, kex->we_need * 8); |
1523 | 1523 | ||
1524 | debug("Wait SSH2_MSG_KEXDH_INIT."); | 1524 | debug("Wait SSH2_MSG_KEXDH_INIT."); |
1525 | packet_read_expect(&payload_len, SSH2_MSG_KEXDH_INIT); | 1525 | packet_read_expect(&payload_len, SSH2_MSG_KEXDH_INIT); |
@@ -1662,7 +1662,7 @@ ssh_dhgex_server(Kex *kex, Buffer *client_kexinit, Buffer *server_kexinit) | |||
1662 | 1662 | ||
1663 | /* Compute our exchange value in parallel with the client */ | 1663 | /* Compute our exchange value in parallel with the client */ |
1664 | 1664 | ||
1665 | dh_gen_key(dh); | 1665 | dh_gen_key(dh, kex->we_need * 8); |
1666 | 1666 | ||
1667 | debug("Wait SSH2_MSG_KEX_DH_GEX_INIT."); | 1667 | debug("Wait SSH2_MSG_KEX_DH_GEX_INIT."); |
1668 | packet_read_expect(&payload_len, SSH2_MSG_KEX_DH_GEX_INIT); | 1668 | packet_read_expect(&payload_len, SSH2_MSG_KEX_DH_GEX_INIT); |