summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/kex.h b/kex.h
index a708e4868..4e5ead839 100644
--- a/kex.h
+++ b/kex.h
@@ -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 {
178int kex_names_valid(const char *); 179int kex_names_valid(const char *);
179char *kex_alg_list(char); 180char *kex_alg_list(char);
180char *kex_names_cat(const char *, const char *); 181char *kex_names_cat(const char *, const char *);
181int kex_assemble_names(const char *, char **); 182int kex_assemble_names(char **, const char *, const char *);
182 183
183int kex_new(struct ssh *, char *[PROPOSAL_MAX], struct kex **); 184int kex_new(struct ssh *, char *[PROPOSAL_MAX], struct kex **);
184int kex_setup(struct ssh *, char *[PROPOSAL_MAX]); 185int kex_setup(struct ssh *, char *[PROPOSAL_MAX]);