summaryrefslogtreecommitdiff
path: root/kexdh.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-02-26 17:58:29 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-02-26 17:58:29 +0000
commit14519086e4d04acec0e0f83e1d31ffdce4419d52 (patch)
tree2a4c32ac3d83a81991bae34f4a1552fc9b4e0345 /kexdh.c
parent9c8edc96fcb30cb8a9b0bd87fc1903c6fb618c31 (diff)
- markus@cvs.openbsd.org 2002/02/23 17:59:02
[kex.c kexdh.c kexgex.c] don't allow garbage after payload.
Diffstat (limited to 'kexdh.c')
-rw-r--r--kexdh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexdh.c b/kexdh.c
index f87d52952..2049d6e1b 100644
--- a/kexdh.c
+++ b/kexdh.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: kexdh.c,v 1.14 2002/01/31 13:35:11 markus Exp $"); 26RCSID("$OpenBSD: kexdh.c,v 1.15 2002/02/23 17:59:02 markus Exp $");
27 27
28#include <openssl/crypto.h> 28#include <openssl/crypto.h>
29#include <openssl/bn.h> 29#include <openssl/bn.h>
@@ -220,6 +220,7 @@ kexdh_server(Kex *kex)
220 if ((dh_client_pub = BN_new()) == NULL) 220 if ((dh_client_pub = BN_new()) == NULL)
221 fatal("dh_client_pub == NULL"); 221 fatal("dh_client_pub == NULL");
222 packet_get_bignum2(dh_client_pub); 222 packet_get_bignum2(dh_client_pub);
223 packet_check_eom();
223 224
224#ifdef DEBUG_KEXDH 225#ifdef DEBUG_KEXDH
225 fprintf(stderr, "dh_client_pub= "); 226 fprintf(stderr, "dh_client_pub= ");