summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-01-28 10:15:34 +0000
committermarkus <markus@openbsd.org>2001-01-28 10:15:34 +0000
commit7b2e10c71e90c6dc38164c81678dffb652848007 (patch)
treecb40eb058a1f79a91a4d7b286a7420ffc6f18ce1
parentAdd a field to mixer_devinto_t that indicates the minimum delta to change (diff)
downloadwireguard-openbsd-7b2e10c71e90c6dc38164c81678dffb652848007.tar.xz
wireguard-openbsd-7b2e10c71e90c6dc38164c81678dffb652848007.zip
re-keying is not supported; ok deraadt@
-rw-r--r--usr.bin/ssh/dispatch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/dispatch.c b/usr.bin/ssh/dispatch.c
index 74fcc553cfc..a771094fe65 100644
--- a/usr.bin/ssh/dispatch.c
+++ b/usr.bin/ssh/dispatch.c
@@ -22,12 +22,14 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "includes.h"
-RCSID("$OpenBSD: dispatch.c,v 1.7 2001/01/21 19:05:49 markus Exp $");
+RCSID("$OpenBSD: dispatch.c,v 1.8 2001/01/28 10:15:34 markus Exp $");
#include "ssh1.h"
+#include "ssh2.h"
#include "log.h"
#include "dispatch.h"
#include "packet.h"
+#include "compat.h"
#define DISPATCH_MIN 0
#define DISPATCH_MAX 255
@@ -38,6 +40,8 @@ void
dispatch_protocol_error(int type, int plen, void *ctxt)
{
error("Hm, dispatch protocol error: type %d plen %d", type, plen);
+ if (compat20 && type == SSH2_MSG_KEXDH_INIT)
+ fatal("dispatch_protocol_error: rekeying is not supported");
}
void
dispatch_init(dispatch_fn *dflt)