diff options
author | 2021-01-27 10:05:28 +0000 | |
---|---|---|
committer | 2021-01-27 10:05:28 +0000 | |
commit | 94a545505ab96a2b539673cd535f51e363e8704d (patch) | |
tree | d84d16a9823edcd5835a826ab89a3d52aa71d4d1 /usr.bin/ssh/ssh_api.c | |
parent | remove global variable used to stash compat flags and use the (diff) | |
download | wireguard-openbsd-94a545505ab96a2b539673cd535f51e363e8704d.tar.xz wireguard-openbsd-94a545505ab96a2b539673cd535f51e363e8704d.zip |
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@
Diffstat (limited to 'usr.bin/ssh/ssh_api.c')
-rw-r--r-- | usr.bin/ssh/ssh_api.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/ssh/ssh_api.c b/usr.bin/ssh/ssh_api.c index 27b9c9e2410..3de29807654 100644 --- a/usr.bin/ssh/ssh_api.c +++ b/usr.bin/ssh/ssh_api.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh_api.c,v 1.25 2021/01/27 09:26:54 djm Exp $ */ +/* $OpenBSD: ssh_api.c,v 1.26 2021/01/27 10:05:28 djm Exp $ */ /* * Copyright (c) 2012 Markus Friedl. All rights reserved. * @@ -56,10 +56,6 @@ int mm_sshkey_sign(struct sshkey *, u_char **, u_int *, DH *mm_choose_dh(int, int, int); #endif -/* Define these two variables here so that they are part of the library */ -u_char *session_id2 = NULL; -u_int session_id2_len = 0; - int mm_sshkey_sign(struct sshkey *key, u_char **sigp, u_int *lenp, const u_char *data, u_int datalen, const char *alg, |