diff options
author | djm@openbsd.org <djm@openbsd.org> | 2023-08-28 05:28:43 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-08-28 05:34:01 +0200 |
commit | dce6d80d2ed3cad2c516082682d5f6ca877ef714 (patch) | |
tree | f938d8cff790af10c6a3097502dfbfa5c728ea01 /kex.h | |
parent | upstream: Log errors in kex_exchange_identification() with level (diff) | |
download | openssh-dce6d80d2ed3cad2c516082682d5f6ca877ef714.tar.xz openssh-dce6d80d2ed3cad2c516082682d5f6ca877ef714.zip |
upstream: Introduce a transport-level ping facility
This adds a pair of SSH transport protocol messages SSH2_MSG_PING/PONG
to implement a ping capability. These messages use numbers in the "local
extensions" number space and are advertised using a "ping@openssh.com"
ext-info message with a string version number of "0".
ok markus@
OpenBSD-Commit-ID: b6b3c4cb2084c62f85a8dc67cf74954015eb547f
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: kex.h,v 1.118 2023/03/06 12:14:48 dtucker Exp $ */ +/* $OpenBSD: kex.h,v 1.119 2023/08/28 03:28:43 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. @@ -111,6 +111,7 @@ enum kex_exchange { #define KEX_HAS_PUBKEY_HOSTBOUND 0x0004 #define KEX_RSA_SHA2_256_SUPPORTED 0x0008 /* only set in server for now */ #define KEX_RSA_SHA2_512_SUPPORTED 0x0010 /* only set in server for now */ +#define KEX_HAS_PING 0x0020 struct sshenc { char *name; |