diff options
Diffstat (limited to 'kexgex.c')
-rw-r--r-- | kexgex.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -24,7 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include "includes.h" | 26 | #include "includes.h" |
27 | RCSID("$OpenBSD: kexgex.c,v 1.4 2001/04/04 22:04:35 markus Exp $"); | 27 | RCSID("$OpenBSD: kexgex.c,v 1.5 2001/04/05 10:42:50 markus Exp $"); |
28 | 28 | ||
29 | #include <openssl/bn.h> | 29 | #include <openssl/bn.h> |
30 | 30 | ||
@@ -69,7 +69,7 @@ kexgex_hash( | |||
69 | buffer_append(&b, skexinit, skexinitlen); | 69 | buffer_append(&b, skexinit, skexinitlen); |
70 | 70 | ||
71 | buffer_put_string(&b, serverhostkeyblob, sbloblen); | 71 | buffer_put_string(&b, serverhostkeyblob, sbloblen); |
72 | if (min == -1 || max == -1) | 72 | if (min == -1 || max == -1) |
73 | buffer_put_int(&b, wantbits); | 73 | buffer_put_int(&b, wantbits); |
74 | else { | 74 | else { |
75 | buffer_put_int(&b, min); | 75 | buffer_put_int(&b, min); |
@@ -205,7 +205,7 @@ kexgex_client(Kex *kex) | |||
205 | kbuf = xmalloc(klen); | 205 | kbuf = xmalloc(klen); |
206 | kout = DH_compute_key(kbuf, dh_server_pub, dh); | 206 | kout = DH_compute_key(kbuf, dh_server_pub, dh); |
207 | #ifdef DEBUG_KEXDH | 207 | #ifdef DEBUG_KEXDH |
208 | dump_digest("shared secret", kbuf, kout); | 208 | dump_digest("shared secret", kbuf, kout); |
209 | #endif | 209 | #endif |
210 | shared_secret = BN_new(); | 210 | shared_secret = BN_new(); |
211 | BN_bin2bn(kbuf, kout, shared_secret); | 211 | BN_bin2bn(kbuf, kout, shared_secret); |
@@ -339,7 +339,7 @@ kexgex_server(Kex *kex) | |||
339 | kbuf = xmalloc(klen); | 339 | kbuf = xmalloc(klen); |
340 | kout = DH_compute_key(kbuf, dh_client_pub, dh); | 340 | kout = DH_compute_key(kbuf, dh_client_pub, dh); |
341 | #ifdef DEBUG_KEXDH | 341 | #ifdef DEBUG_KEXDH |
342 | dump_digest("shared secret", kbuf, kout); | 342 | dump_digest("shared secret", kbuf, kout); |
343 | #endif | 343 | #endif |
344 | shared_secret = BN_new(); | 344 | shared_secret = BN_new(); |
345 | BN_bin2bn(kbuf, kout, shared_secret); | 345 | BN_bin2bn(kbuf, kout, shared_secret); |