diff options
author | Colin Watson <cjwatson@debian.org> | 2018-08-24 12:49:36 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-08-30 00:57:27 +0100 |
commit | 816386e17654ca36834bebbf351419e460fad8f6 (patch) | |
tree | 3dc79d831cb73bc25b92f5a4d18f8e328c0c570a /kex.h | |
parent | 3e6f76c7039d3df22b1d0a3a5f30150efb09b69d (diff) | |
parent | 16a47fc4b04977a14f44dd433c8da1499fa80671 (diff) |
New upstream release (7.8p1)
Closes: #907534
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.h,v 1.83 2017/05/30 14:23:52 markus Exp $ */ | 1 | /* $OpenBSD: kex.h,v 1.91 2018/07/11 18:53:29 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
@@ -27,8 +27,6 @@ | |||
27 | #define KEX_H | 27 | #define KEX_H |
28 | 28 | ||
29 | #include "mac.h" | 29 | #include "mac.h" |
30 | #include "buffer.h" /* XXX for typedef */ | ||
31 | #include "key.h" /* XXX for typedef */ | ||
32 | 30 | ||
33 | #ifdef WITH_LEAKMALLOC | 31 | #ifdef WITH_LEAKMALLOC |
34 | #include "leakmalloc.h" | 32 | #include "leakmalloc.h" |
@@ -43,6 +41,8 @@ | |||
43 | # define EC_POINT void | 41 | # define EC_POINT void |
44 | # endif /* OPENSSL_HAS_ECC */ | 42 | # endif /* OPENSSL_HAS_ECC */ |
45 | #else /* WITH_OPENSSL */ | 43 | #else /* WITH_OPENSSL */ |
44 | # define DH void | ||
45 | # define BIGNUM void | ||
46 | # define EC_KEY void | 46 | # define EC_KEY void |
47 | # define EC_GROUP void | 47 | # define EC_GROUP void |
48 | # define EC_POINT void | 48 | # define EC_POINT void |
@@ -64,6 +64,7 @@ | |||
64 | #define KEX_CURVE25519_SHA256_OLD "curve25519-sha256@libssh.org" | 64 | #define KEX_CURVE25519_SHA256_OLD "curve25519-sha256@libssh.org" |
65 | 65 | ||
66 | #define COMP_NONE 0 | 66 | #define COMP_NONE 0 |
67 | /* pre-auth compression (COMP_ZLIB) is only supported in the client */ | ||
67 | #define COMP_ZLIB 1 | 68 | #define COMP_ZLIB 1 |
68 | #define COMP_DELAYED 2 | 69 | #define COMP_DELAYED 2 |
69 | 70 | ||
@@ -142,7 +143,7 @@ struct kex { | |||
142 | int hostkey_type; | 143 | int hostkey_type; |
143 | int hostkey_nid; | 144 | int hostkey_nid; |
144 | u_int kex_type; | 145 | u_int kex_type; |
145 | int rsa_sha2; | 146 | char *server_sig_algs; |
146 | int ext_info_c; | 147 | int ext_info_c; |
147 | struct sshbuf *my; | 148 | struct sshbuf *my; |
148 | struct sshbuf *peer; | 149 | struct sshbuf *peer; |
@@ -178,7 +179,7 @@ struct kex { | |||
178 | int kex_names_valid(const char *); | 179 | int kex_names_valid(const char *); |
179 | char *kex_alg_list(char); | 180 | char *kex_alg_list(char); |
180 | char *kex_names_cat(const char *, const char *); | 181 | char *kex_names_cat(const char *, const char *); |
181 | int kex_assemble_names(const char *, char **); | 182 | int kex_assemble_names(char **, const char *, const char *); |
182 | 183 | ||
183 | int kex_new(struct ssh *, char *[PROPOSAL_MAX], struct kex **); | 184 | int kex_new(struct ssh *, char *[PROPOSAL_MAX], struct kex **); |
184 | int kex_setup(struct ssh *, char *[PROPOSAL_MAX]); | 185 | int kex_setup(struct ssh *, char *[PROPOSAL_MAX]); |