aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/bind_config.h
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-03-12 16:32:08 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-04-01 08:41:53 +0200
commitd9e6237a47283d6c5422d41f3e0917b41f062490 (patch)
treefec22122652ecbf2422861a9624b994dbf7e410d /include/libssh/bind_config.h
parent25af8641b31bb471ef957b0cfc2bb1066796a83c (diff)
downloadlibssh-d9e6237a47283d6c5422d41f3e0917b41f062490.tar.gz
libssh-d9e6237a47283d6c5422d41f3e0917b41f062490.tar.xz
libssh-d9e6237a47283d6c5422d41f3e0917b41f062490.zip
bind_config: Added minimal support for Match keyword
Only "Match All" is supported, if any other criterion is used, the block is ignored and the options are not applied. It is important to note that only a subset of the supported keywords are allowed to be used inside a Match block, currently being "LogLevel" the only supported keyword. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/bind_config.h')
-rw-r--r--include/libssh/bind_config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/bind_config.h b/include/libssh/bind_config.h
index 0a1a6d75..28216329 100644
--- a/include/libssh/bind_config.h
+++ b/include/libssh/bind_config.h
@@ -29,6 +29,8 @@
#include "libssh/server.h"
enum ssh_bind_config_opcode_e {
+ /* Known but not allowed in Match block */
+ BIND_CFG_NOT_ALLOWED_IN_MATCH = -4,
/* Unknown opcode */
BIND_CFG_UNKNOWN = -3,
/* Known and not applicable to libssh */
@@ -43,6 +45,7 @@ enum ssh_bind_config_opcode_e {
BIND_CFG_CIPHERS,
BIND_CFG_MACS,
BIND_CFG_KEXALGORITHMS,
+ BIND_CFG_MATCH,
BIND_CFG_MAX /* Keep this one last in the list */
};