aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-05-17 11:38:43 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-06-12 10:17:54 +0200
commit250a0be0f9fa371b3dda5db594729fae862ee26d (patch)
tree2d8223046e46cf1953d6011d3a7186d120ed7f6b /include
parent8f6e6f774e4dc731bf5a6cd6f03290b9e6de826c (diff)
downloadlibssh-250a0be0f9fa371b3dda5db594729fae862ee26d.tar.gz
libssh-250a0be0f9fa371b3dda5db594729fae862ee26d.tar.xz
libssh-250a0be0f9fa371b3dda5db594729fae862ee26d.zip
options: Added an option to set server HostKey algorithms
The added option SSH_BIND_OPTIONS_HOSTKEY_ALGORITHMS allows restricting the signature algorithms to offer to the client for host authentication. The list set is used as a filter of allowed algorithms. First a list of possible signature algorithms to offer is created from the keys set and then such list is filtered against the allowed algorithms. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/server.h b/include/libssh/server.h
index 0a893595..29a5565e 100644
--- a/include/libssh/server.h
+++ b/include/libssh/server.h
@@ -54,6 +54,7 @@ enum ssh_bind_options_e {
SSH_BIND_OPTIONS_HMAC_S_C,
SSH_BIND_OPTIONS_CONFIG_DIR,
SSH_BIND_OPTIONS_PUBKEY_ACCEPTED_KEY_TYPES,
+ SSH_BIND_OPTIONS_HOSTKEY_ALGORITHMS,
};
typedef struct ssh_bind_struct* ssh_bind;