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.
This commit is contained in:
parent
569f936660
commit
ed3a3c4dd4
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue