diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-02-20 22:17:21 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-02-21 09:20:28 +1100 |
commit | 44732de06884238049f285f1455b2181baa7dc82 (patch) | |
tree | deb3c48176195cfc4028b55d2a1a71607e9f7fb0 /sshd.c | |
parent | 13a39414d25646f93e6d355521d832a03aaaffe2 (diff) |
upstream commit
UpdateHostKeys fixes:
I accidentally changed the format of the hostkeys@openssh.com messages
last week without changing the extension name, and this has been causing
connection failures for people who are running -current. First reported
by sthen@
s/hostkeys@openssh.com/hostkeys-00@openssh.com/
Change the name of the proof message too, and reorder it a little.
Also, UpdateHostKeys=ask is incompatible with ControlPersist (no TTY
available to read the response) so disable UpdateHostKeys if it is in
ask mode and ControlPersist is active (and document this)
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.443 2015/02/16 22:30:03 djm Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.444 2015/02/20 22:17:21 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -942,7 +942,7 @@ notify_hostkeys(struct ssh *ssh) | |||
942 | free(fp); | 942 | free(fp); |
943 | if (nkeys == 0) { | 943 | if (nkeys == 0) { |
944 | packet_start(SSH2_MSG_GLOBAL_REQUEST); | 944 | packet_start(SSH2_MSG_GLOBAL_REQUEST); |
945 | packet_put_cstring("hostkeys@openssh.com"); | 945 | packet_put_cstring("hostkeys-00@openssh.com"); |
946 | packet_put_char(0); /* want-reply */ | 946 | packet_put_char(0); /* want-reply */ |
947 | } | 947 | } |
948 | sshbuf_reset(buf); | 948 | sshbuf_reset(buf); |