upstream: make ssh->kex->session_id a sshbuf instead of u_char*/size_t
and use that instead of global variables containing copies of it. feedback/ok markus@ OpenBSD-Commit-ID: a4b1b1ca4afd2e37cb9f64f737b30a6a7f96af68
This commit is contained in:
1 parent
4ca6a1fac3
commit
39be3dc209
15 files changed
+80
-103
No files matched your search
+3
-3
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: serverloop.c,v 1.224 2020/10/18 11:32:02 djm Exp $ */
|
||||
/* $OpenBSD: serverloop.c,v 1.225 2021/01/27 10:05:28 djm Exp $ */
|
||||
/*
|
||||
* Author: Tatu Ylonen <[email protected]>
|
||||
* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
|
||||
@@ -779,8 +779,8 @@ server_input_hostkeys_prove(struct ssh *ssh, struct sshbuf **respp)
|
||||
sshkey_type_plain(key->type) == KEY_RSA;
|
||||
if ((r = sshbuf_put_cstring(sigbuf,
|
||||
"[email protected]")) != 0 ||
|
||||
(r = sshbuf_put_string(sigbuf,
|
||||
ssh->kex->session_id, ssh->kex->session_id_len)) != 0 ||
|
||||
(r = sshbuf_put_stringb(sigbuf,
|
||||
ssh->kex->session_id)) != 0 ||
|
||||
(r = sshkey_puts(key, sigbuf)) != 0 ||
|
||||
(r = ssh->kex->sign(ssh, key_prv, key_pub, &sig, &slen,
|
||||
sshbuf_ptr(sigbuf), sshbuf_len(sigbuf),
|
||||
|
||||
Reference in new issue
Block a user