diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-12 23:01:43 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-12 23:01:43 +0200 |
commit | 052073c36d33089d3a99992840c88c6245461813 (patch) | |
tree | 1689458244df3e4671343112cfbd71aad558aad8 /include | |
parent | 60c778ad7fa198ad0bf6f5a718a69623134c825c (diff) | |
download | libssh-052073c36d33089d3a99992840c88c6245461813.tar.gz libssh-052073c36d33089d3a99992840c88c6245461813.tar.xz libssh-052073c36d33089d3a99992840c88c6245461813.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/priv.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |