aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/session.h
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-07-03 16:16:25 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-31 14:18:34 +0200
commit6fa5e8adb0f35c4c90067d81967a38f57ebaec67 (patch)
tree1bb10c02716bccf1559ff5a29321dba675f8ad72 /include/libssh/session.h
parent60ad7ee15dc23c16d4827ee8eff7d228e13982cd (diff)
downloadlibssh-6fa5e8adb0f35c4c90067d81967a38f57ebaec67.tar.gz
libssh-6fa5e8adb0f35c4c90067d81967a38f57ebaec67.tar.xz
libssh-6fa5e8adb0f35c4c90067d81967a38f57ebaec67.zip
server: Support for extension negotiation
This includes intercepting the ext-info-c string from the client kex proposal, configuring the server to allow using this extension and sending the SSH_MSG_EXT_INFO packet back to the client after the new keys are in use. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r--include/libssh/session.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h
index 107d4aec..2f1c4269 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -90,6 +90,7 @@ enum ssh_pending_call_e {
/* server-sig-algs extension */
#define SSH_EXT_SIG_RSA_SHA256 0x01
#define SSH_EXT_SIG_RSA_SHA512 0x02
+#define SSH_EXT_ALL SSH_EXT_SIG_RSA_SHA256 | SSH_EXT_SIG_RSA_SHA512
/* members that are common to ssh_session and ssh_bind */
struct ssh_common_struct {