aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-09-04 13:46:37 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-05 11:43:05 +0200
commite9b44d26b12aa1314718a37fe2598dafb9843e3f (patch)
tree8f525fa749b4c5fcb52ed13043971434fd2cf547 /include/libssh/priv.h
parent9f5f10552b54d1e8a21f9ccbcf5bbe37744d36f6 (diff)
downloadlibssh-e9b44d26b12aa1314718a37fe2598dafb9843e3f.tar.gz
libssh-e9b44d26b12aa1314718a37fe2598dafb9843e3f.tar.xz
libssh-e9b44d26b12aa1314718a37fe2598dafb9843e3f.zip
config: Parse Match keyword
Amends f818e63f8, which introduced the constants and matching of this configuration option, but did not implement the handling of the values which was causing the configuration parser failing for certain configurations. This commit exposes match_pattern_list() from match.c Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1624425 Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 2123fc03..31abb106 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -262,6 +262,8 @@ int compress_buffer(ssh_session session,ssh_buffer buf);
int decompress_buffer(ssh_session session,ssh_buffer buf, size_t maxlen);
/* match.c */
+int match_pattern_list(const char *string, const char *pattern,
+ unsigned int len, int dolower);
int match_hostname(const char *host, const char *pattern, unsigned int len);
/* connector.c */