mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-23 10:22:39 +00:00
- markus@cvs.openbsd.org 2002/02/23 17:59:02
[kex.c kexdh.c kexgex.c] don't allow garbage after payload.
This commit is contained in:
parent
9c8edc96fc
commit
14519086e4
@ -23,6 +23,9 @@
|
|||||||
- markus@cvs.openbsd.org 2002/02/22 12:20:34
|
- markus@cvs.openbsd.org 2002/02/22 12:20:34
|
||||||
[log.c log.h ssh-keyscan.c]
|
[log.c log.h ssh-keyscan.c]
|
||||||
overwrite fatal() in ssh-keyscan.c; fixes pr 2354; ok provos@
|
overwrite fatal() in ssh-keyscan.c; fixes pr 2354; ok provos@
|
||||||
|
- markus@cvs.openbsd.org 2002/02/23 17:59:02
|
||||||
|
[kex.c kexdh.c kexgex.c]
|
||||||
|
don't allow garbage after payload.
|
||||||
|
|
||||||
20020225
|
20020225
|
||||||
- (bal) Last AIX patch. Moved aix_usrinfo() outside of do_setuserconext()
|
- (bal) Last AIX patch. Moved aix_usrinfo() outside of do_setuserconext()
|
||||||
@ -7696,4 +7699,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1879 2002/02/26 17:52:14 mouring Exp $
|
$Id: ChangeLog,v 1.1880 2002/02/26 17:58:29 mouring Exp $
|
||||||
|
3
kex.c
3
kex.c
@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: kex.c,v 1.45 2002/02/14 23:41:01 markus Exp $");
|
RCSID("$OpenBSD: kex.c,v 1.46 2002/02/23 17:59:02 markus Exp $");
|
||||||
|
|
||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
|
|
||||||
@ -132,6 +132,7 @@ kex_finish(Kex *kex)
|
|||||||
|
|
||||||
debug("waiting for SSH2_MSG_NEWKEYS");
|
debug("waiting for SSH2_MSG_NEWKEYS");
|
||||||
packet_read_expect(SSH2_MSG_NEWKEYS);
|
packet_read_expect(SSH2_MSG_NEWKEYS);
|
||||||
|
packet_check_eom();
|
||||||
debug("SSH2_MSG_NEWKEYS received");
|
debug("SSH2_MSG_NEWKEYS received");
|
||||||
|
|
||||||
kex->done = 1;
|
kex->done = 1;
|
||||||
|
3
kexdh.c
3
kexdh.c
@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: kexdh.c,v 1.14 2002/01/31 13:35:11 markus Exp $");
|
RCSID("$OpenBSD: kexdh.c,v 1.15 2002/02/23 17:59:02 markus Exp $");
|
||||||
|
|
||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
@ -220,6 +220,7 @@ kexdh_server(Kex *kex)
|
|||||||
if ((dh_client_pub = BN_new()) == NULL)
|
if ((dh_client_pub = BN_new()) == NULL)
|
||||||
fatal("dh_client_pub == NULL");
|
fatal("dh_client_pub == NULL");
|
||||||
packet_get_bignum2(dh_client_pub);
|
packet_get_bignum2(dh_client_pub);
|
||||||
|
packet_check_eom();
|
||||||
|
|
||||||
#ifdef DEBUG_KEXDH
|
#ifdef DEBUG_KEXDH
|
||||||
fprintf(stderr, "dh_client_pub= ");
|
fprintf(stderr, "dh_client_pub= ");
|
||||||
|
3
kexgex.c
3
kexgex.c
@ -24,7 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: kexgex.c,v 1.17 2002/01/31 13:35:11 markus Exp $");
|
RCSID("$OpenBSD: kexgex.c,v 1.18 2002/02/23 17:59:02 markus Exp $");
|
||||||
|
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
|
||||||
@ -319,6 +319,7 @@ kexgex_server(Kex *kex)
|
|||||||
if ((dh_client_pub = BN_new()) == NULL)
|
if ((dh_client_pub = BN_new()) == NULL)
|
||||||
fatal("dh_client_pub == NULL");
|
fatal("dh_client_pub == NULL");
|
||||||
packet_get_bignum2(dh_client_pub);
|
packet_get_bignum2(dh_client_pub);
|
||||||
|
packet_check_eom();
|
||||||
|
|
||||||
#ifdef DEBUG_KEXDH
|
#ifdef DEBUG_KEXDH
|
||||||
fprintf(stderr, "dh_client_pub= ");
|
fprintf(stderr, "dh_client_pub= ");
|
||||||
|
Loading…
Reference in New Issue
Block a user