summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authordjm <djm>2010-09-24 12:11:14 +0000
committerdjm <djm>2010-09-24 12:11:14 +0000
commitb94d6d23e18de0c96fc879a55b0038f3439b6445 (patch)
tree589d4e7cae3b6a985221bb44594bffd71967a542 /kex.h
parent3ce5229f5979266ffc973d85773e27643bd799a3 (diff)
downloadopenssh-b94d6d23e18de0c96fc879a55b0038f3439b6445.tar.gz
- djm@cvs.openbsd.org 2010/09/22 05:01:30
[kex.c kex.h kexecdh.c kexecdhc.c kexecdhs.c readconf.c readconf.h] [servconf.c servconf.h ssh_config.5 sshconnect2.c sshd.c sshd_config.5] add a KexAlgorithms knob to the client and server configuration to allow selection of which key exchange methods are used by ssh(1) and sshd(8) and their order of preference. ok markus@
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/kex.h b/kex.h
index 3e312fb4..7373d3c7 100644
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kex.h,v 1.51 2010/09/09 10:45:45 djm Exp $ */
+/* $OpenBSD: kex.h,v 1.52 2010/09/22 05:01:29 djm Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -138,6 +138,8 @@ struct Kex {
void (*kex[KEX_MAX])(Kex *);
};
+int kex_names_valid(const char *);
+
Kex *kex_setup(char *[PROPOSAL_MAX]);
void kex_finish(Kex *);
@@ -169,7 +171,8 @@ kex_ecdh_hash(const EVP_MD *, const EC_GROUP *, char *, char *, char *, int,
int kex_ecdh_name_to_nid(const char *);
const EVP_MD *kex_ecdh_name_to_evpmd(const char *);
#else
-# define kex_ecdh_name_to_evpmd(x) NULL
+# define kex_ecdh_name_to_nid(x) (-1)
+# define kex_ecdh_name_to_evpmd(x) (NULL)
#endif
void