summaryrefslogtreecommitdiff
path: root/myproposal.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-02-23 08:20:43 +0000
committerDamien Miller <djm@mindrot.org>2019-02-24 10:51:46 +1100
commit9b61130fbd95d196bce81ebeca94a4cb7c0d5ba0 (patch)
tree3ad20b470660a2193096586ccbf8acf6f580da4a /myproposal.h
parent37638c752041d591371900df820f070037878a2d (diff)
upstream: openssh-7.9 accidentally reused the server's algorithm lists
in the client for KEX, ciphers and MACs. The ciphers and MACs were identical between the client and server, but the error accidentially disabled the diffie-hellman-group-exchange-sha1 KEX method. This fixes the client code to use the correct method list, but because nobody complained, it also disables the diffie-hellman-group-exchange-sha1 KEX method. Reported by nuxi AT vault24.org via bz#2697; ok dtucker OpenBSD-Commit-ID: e30c33a23c10fd536fefa120e86af1842e33fd57
Diffstat (limited to 'myproposal.h')
-rw-r--r--myproposal.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/myproposal.h b/myproposal.h
index 27b4a15a1..f16729876 100644
--- a/myproposal.h
+++ b/myproposal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: myproposal.h,v 1.57 2018/09/12 01:34:02 djm Exp $ */ 1/* $OpenBSD: myproposal.h,v 1.58 2019/02/23 08:20:43 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -90,20 +90,15 @@
90# else 90# else
91# define KEX_CURVE25519_METHODS "" 91# define KEX_CURVE25519_METHODS ""
92# endif 92# endif
93#define KEX_COMMON_KEX \ 93#define KEX_SERVER_KEX \
94 KEX_CURVE25519_METHODS \ 94 KEX_CURVE25519_METHODS \
95 KEX_ECDH_METHODS \ 95 KEX_ECDH_METHODS \
96 KEX_SHA2_METHODS 96 KEX_SHA2_METHODS \
97
98#define KEX_SERVER_KEX KEX_COMMON_KEX \
99 KEX_SHA2_GROUP14 \
100 "diffie-hellman-group14-sha1" \
101
102#define KEX_CLIENT_KEX KEX_COMMON_KEX \
103 "diffie-hellman-group-exchange-sha1," \
104 KEX_SHA2_GROUP14 \ 97 KEX_SHA2_GROUP14 \
105 "diffie-hellman-group14-sha1" 98 "diffie-hellman-group14-sha1"
106 99
100#define KEX_CLIENT_KEX KEX_SERVER_KEX
101
107#define KEX_DEFAULT_PK_ALG \ 102#define KEX_DEFAULT_PK_ALG \
108 HOSTKEY_ECDSA_CERT_METHODS \ 103 HOSTKEY_ECDSA_CERT_METHODS \
109 "ssh-ed25519-cert-v01@openssh.com," \ 104 "ssh-ed25519-cert-v01@openssh.com," \