diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-27 02:11:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-27 02:11:16 +0200 |
commit | ed3a3c4dd44efb92a1897baa4e07aa685227cddd (patch) | |
tree | b0c417d87a1b5776437e8c4e58b215b0ca6fbddd | |
parent | 569f9366601736f0478fa7015a4e0a813674d764 (diff) | |
download | plan9front-ed3a3c4dd44efb92a1897baa4e07aa685227cddd.tar.xz |
ssh: work around github.com's broken cipher negotiation code (thanks Ori_B)
key exchange with git@github.com fails as they appear to try to
negotiate a mac algorithm even tho we use an AEAD cipher which
does not use a mac algorithm.
the work around is to supply a dummy mac algorithm that they
can negotiate to make them happy.
-rw-r--r-- | sys/src/cmd/ssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ssh.c b/sys/src/cmd/ssh.c index 2d23be1d3..239a4f542 100644 --- a/sys/src/cmd/ssh.c +++ b/sys/src/cmd/ssh.c @@ -489,7 +489,7 @@ kex(int gotkexinit) static char kexalgs[] = "curve25519-sha256,curve25519-sha256@libssh.org"; static char cipheralgs[] = "chacha20-poly1305@openssh.com"; static char zipalgs[] = "none"; - static char macalgs[] = ""; + static char macalgs[] = "hmac-sha1"; /* work around for github.com */ static char langs[] = ""; uchar cookie[16], x[32], yc[32], z[32], k[32+1], h[SHA2_256dlen], *ys, *ks, *sig; |