Blame SOURCES/openssh-7.4p1-sha2-signatures.patch

b58e57
diff -up openssh-7.4p1/kex.c.sha2 openssh-7.4p1/kex.c
b58e57
--- openssh-7.4p1/kex.c.sha2	2017-02-17 18:15:53.589835864 +0100
b58e57
+++ openssh-7.4p1/kex.c	2017-02-17 18:17:20.404781663 +0100
b58e57
@@ -379,21 +379,14 @@ static int
b58e57
 kex_send_ext_info(struct ssh *ssh)
b58e57
 {
b58e57
 	int r;
b58e57
-	char *algs;
b58e57
 
b58e57
-	if ((algs = sshkey_alg_list(0, 1, ',')) == NULL)
b58e57
-		return SSH_ERR_ALLOC_FAIL;
b58e57
 	if ((r = sshpkt_start(ssh, SSH2_MSG_EXT_INFO)) != 0 ||
b58e57
 	    (r = sshpkt_put_u32(ssh, 1)) != 0 ||
b58e57
 	    (r = sshpkt_put_cstring(ssh, "server-sig-algs")) != 0 ||
b58e57
-	    (r = sshpkt_put_cstring(ssh, algs)) != 0 ||
b58e57
+	    (r = sshpkt_put_cstring(ssh, "rsa-sha2-256,rsa-sha2-512")) != 0 ||
b58e57
 	    (r = sshpkt_send(ssh)) != 0)
b58e57
-		goto out;
b58e57
-	/* success */
b58e57
-	r = 0;
b58e57
- out:
b58e57
-	free(algs);
b58e57
-	return r;
b58e57
+		return r;
b58e57
+	return 0;
b58e57
 }
b58e57
 
b58e57
 int