summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2010-02-27 11:53:18 +0000
committerMatt Johnston <matt@ucc.asn.au>2010-02-27 11:53:18 +0000
commitddbfdb079991e9705c8874ae2d2dbd64394f269c (patch)
tree6358929d48902659b423493edf17831541c732ac /dbutil.h
parent85288d7b6174b78af903fb55593bccd0014e5f30 (diff)
parent3b078445482f42dabfe4922e67a958dc607b166f (diff)
merge of '48fdaa8706d1acda35e9d564adc9a1fbc96c18c8'
and '658fd03abd21e0da7c4c89b9fff9dc693c72daae' --HG-- extra : convert_revision : 8064882fcaa13d586651021462b9014b74332107
Diffstat (limited to 'dbutil.h')
-rw-r--r--dbutil.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/dbutil.h b/dbutil.h
index 706f35e..474db62 100644
--- a/dbutil.h
+++ b/dbutil.h
@@ -46,15 +46,20 @@ void printhex(const char * label, const unsigned char * buf, int len);
extern int debug_trace;
#endif
char * stripcontrol(const char * text);
-unsigned char * getaddrstring(struct sockaddr_storage* addr, int withport);
+void get_socket_address(int fd, char **local_host, char **local_port,
+ char **remote_host, char **remote_port, int host_lookup);
+void getaddrstring(struct sockaddr_storage* addr,
+ char **ret_host, char **ret_port, int host_lookup);
int dropbear_listen(const char* address, const char* port,
int *socks, unsigned int sockcount, char **errstring, int *maxfd);
int spawn_command(void(*exec_fn)(void *user_data), void *exec_data,
int *writefd, int *readfd, int *errfd, pid_t *pid);
void run_shell_command(const char* cmd, unsigned int maxfd, char* usershell);
+#ifdef ENABLE_CONNECT_UNIX
+int connect_unix(const char* addr);
+#endif
int connect_remote(const char* remotehost, const char* remoteport,
int nonblocking, char ** errstring);
-char* getaddrhostname(struct sockaddr_storage * addr);
int buf_readfile(buffer* buf, const char* filename);
int buf_getline(buffer * line, FILE * authfile);