summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-02-28 23:24:30 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-02-28 23:24:30 +0800
commit125a970d71d5b43b7b648412fcc614e782c42a1d (patch)
tree8bbc278b055fd573a9d40ba171d9031626551371 /dbutil.h
parent59bb1777be18b8f1b263aaeabe54a32933fc871d (diff)
parent89c0b2a6d863e54bd0253355146f09b92edeccda (diff)
merge tcp fastopen
Diffstat (limited to 'dbutil.h')
-rw-r--r--dbutil.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/dbutil.h b/dbutil.h
index ae9645c..83ba888 100644
--- a/dbutil.h
+++ b/dbutil.h
@@ -28,6 +28,7 @@
#include "includes.h"
#include "buffer.h"
+#include "queue.h"
#ifndef DISABLE_SYSLOG
void startsyslog();
@@ -62,28 +63,14 @@ void debug_start_net();
extern int debug_trace;
#endif
-enum dropbear_prio {
- DROPBEAR_PRIO_DEFAULT = 10,
- DROPBEAR_PRIO_LOWDELAY = 11,
- DROPBEAR_PRIO_BULK = 12,
-};
-
char * stripcontrol(const char * text);
-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);
-void set_sock_nodelay(int sock);
-void set_sock_priority(int sock, enum dropbear_prio prio);
-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, char ** errstring);
int buf_readfile(buffer* buf, const char* filename);
int buf_getline(buffer * line, FILE * authfile);