From 052073c36d33089d3a99992840c88c6245461813 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 12 Jul 2009 23:01:43 +0200 Subject: Set correct hint when connecting to an IP address libssh now uses a regular expression against destination hostnames to match numerical IP addresses and set the appropriate hint. Patches also add init and finalize code to compile the regexp --- include/libssh/priv.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 71940bd..ba173b8 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -625,7 +625,10 @@ int packet_read(SSH_SESSION *session); int packet_translate(SSH_SESSION *session); int packet_wait(SSH_SESSION *session,int type,int blocking); int packet_flush(SSH_SESSION *session, int enforce_blocking); + /* connect.c */ +int ssh_regex_init(void); +void ssh_regex_finalize(void); SSH_SESSION *ssh_session_new(); socket_t ssh_connect_host(SSH_SESSION *session, const char *host,const char *bind_addr, int port, long timeout, long usec); -- cgit