Fix buffer handling in GSS after rebase
This commit is contained in:
parent
07756a2278
commit
d94cf27456
@ -1346,8 +1346,8 @@ diff -up openssh-6.8p1/kexgssc.c.gsskex openssh-6.8p1/kexgssc.c
|
|||||||
+ case KEX_GSS_GRP14_SHA1:
|
+ case KEX_GSS_GRP14_SHA1:
|
||||||
+ kex_dh_hash( ssh->kex->client_version_string,
|
+ kex_dh_hash( ssh->kex->client_version_string,
|
||||||
+ ssh->kex->server_version_string,
|
+ ssh->kex->server_version_string,
|
||||||
+ buffer_ptr(ssh->kex->my), buffer_len(ssh->kex->my),
|
+ buffer_ptr(&ssh->kex->my), buffer_len(&ssh->kex->my),
|
||||||
+ buffer_ptr(ssh->kex->peer), buffer_len(ssh->kex->peer),
|
+ buffer_ptr(&ssh->kex->peer), buffer_len(&ssh->kex->peer),
|
||||||
+ (serverhostkey ? serverhostkey : empty), slen,
|
+ (serverhostkey ? serverhostkey : empty), slen,
|
||||||
+ dh->pub_key, /* e */
|
+ dh->pub_key, /* e */
|
||||||
+ dh_server_pub, /* f */
|
+ dh_server_pub, /* f */
|
||||||
@ -1360,8 +1360,8 @@ diff -up openssh-6.8p1/kexgssc.c.gsskex openssh-6.8p1/kexgssc.c
|
|||||||
+ ssh->kex->hash_alg,
|
+ ssh->kex->hash_alg,
|
||||||
+ ssh->kex->client_version_string,
|
+ ssh->kex->client_version_string,
|
||||||
+ ssh->kex->server_version_string,
|
+ ssh->kex->server_version_string,
|
||||||
+ buffer_ptr(ssh->kex->my), buffer_len(ssh->kex->my),
|
+ buffer_ptr(&ssh->kex->my), buffer_len(&ssh->kex->my),
|
||||||
+ buffer_ptr(ssh->kex->peer), buffer_len(ssh->kex->peer),
|
+ buffer_ptr(&ssh->kex->peer), buffer_len(&ssh->kex->peer),
|
||||||
+ (serverhostkey ? serverhostkey : empty), slen,
|
+ (serverhostkey ? serverhostkey : empty), slen,
|
||||||
+ min, nbits, max,
|
+ min, nbits, max,
|
||||||
+ dh->p, dh->g,
|
+ dh->p, dh->g,
|
||||||
@ -1636,8 +1636,8 @@ diff -up openssh-6.8p1/kexgsss.c.gsskex openssh-6.8p1/kexgsss.c
|
|||||||
+ case KEX_GSS_GRP14_SHA1:
|
+ case KEX_GSS_GRP14_SHA1:
|
||||||
+ kex_dh_hash(
|
+ kex_dh_hash(
|
||||||
+ ssh->kex->client_version_string, ssh->kex->server_version_string,
|
+ ssh->kex->client_version_string, ssh->kex->server_version_string,
|
||||||
+ buffer_ptr(ssh->kex->peer), buffer_len(ssh->kex->peer),
|
+ buffer_ptr(&ssh->kex->peer), buffer_len(&ssh->kex->peer),
|
||||||
+ buffer_ptr(ssh->kex->my), buffer_len(ssh->kex->my),
|
+ buffer_ptr(&ssh->kex->my), buffer_len(&ssh->kex->my),
|
||||||
+ NULL, 0, /* Change this if we start sending host keys */
|
+ NULL, 0, /* Change this if we start sending host keys */
|
||||||
+ dh_client_pub, dh->pub_key, shared_secret,
|
+ dh_client_pub, dh->pub_key, shared_secret,
|
||||||
+ hash, &hashlen
|
+ hash, &hashlen
|
||||||
@ -1647,8 +1647,8 @@ diff -up openssh-6.8p1/kexgsss.c.gsskex openssh-6.8p1/kexgsss.c
|
|||||||
+ kexgex_hash(
|
+ kexgex_hash(
|
||||||
+ ssh->kex->hash_alg,
|
+ ssh->kex->hash_alg,
|
||||||
+ ssh->kex->client_version_string, ssh->kex->server_version_string,
|
+ ssh->kex->client_version_string, ssh->kex->server_version_string,
|
||||||
+ buffer_ptr(ssh->kex->peer), buffer_len(ssh->kex->peer),
|
+ buffer_ptr(&ssh->kex->peer), buffer_len(&ssh->kex->peer),
|
||||||
+ buffer_ptr(ssh->kex->my), buffer_len(ssh->kex->my),
|
+ buffer_ptr(&ssh->kex->my), buffer_len(&ssh->kex->my),
|
||||||
+ NULL, 0,
|
+ NULL, 0,
|
||||||
+ min, nbits, max,
|
+ min, nbits, max,
|
||||||
+ dh->p, dh->g,
|
+ dh->p, dh->g,
|
||||||
|
Loading…
Reference in New Issue
Block a user