summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
diff options
context:
space:
mode:
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);