feature: Add match_localnetwork predicate and its feature

Signed-off-by: Francesco Rollo <eferollo@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Eshan Kelkar <eshankelkar@galorithm.com>
This commit is contained in:
Francesco Rollo
2024-05-29 18:01:01 +02:00
committed by Sahana Prasad
parent c93a730bc1
commit e90df71955
5 changed files with 535 additions and 17 deletions

View File

@@ -33,7 +33,7 @@
# endif /* _MSC_VER */
#else
# include <sys/types.h>
#include <sys/types.h>
#endif /* _WIN32 */
#ifdef __cplusplus

View File

@@ -330,6 +330,11 @@ int decompress_buffer(ssh_session session,ssh_buffer buf, size_t maxlen);
int match_pattern_list(const char *string, const char *pattern,
size_t len, int dolower);
int match_hostname(const char *host, const char *pattern, unsigned int len);
#ifndef _WIN32
int match_cidr_address_list(const char *address,
const char *addrlist,
int sa_family);
#endif
/* connector.c */
int ssh_connector_set_event(ssh_connector connector, ssh_event event);