Mercurial > dropbear
comparison dbutil.h @ 62:20563735e8b5
just checkpointing
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 10 Aug 2004 17:09:52 +0000 |
parents | c8fcd4841956 |
children | c85c88500ea6 |
comparison
equal
deleted
inserted
replaced
61:3a4f0ef1e8c3 | 62:20563735e8b5 |
---|---|
42 #ifdef DEBUG_TRACE | 42 #ifdef DEBUG_TRACE |
43 void dropbear_trace(const char* format, ...); | 43 void dropbear_trace(const char* format, ...); |
44 void printhex(unsigned char* buf, int len); | 44 void printhex(unsigned char* buf, int len); |
45 #endif | 45 #endif |
46 char * stripcontrol(const char * text); | 46 char * stripcontrol(const char * text); |
47 unsigned char * getaddrstring(struct sockaddr * addr); | 47 unsigned char * getaddrstring(struct sockaddr_storage* addr, int withport); |
48 int dropbear_listen(const char* address, const char* port, | |
49 int *socks, unsigned int sockcount, char **errstring, int *maxfd); | |
48 int connect_remote(const char* remotehost, const char* remoteport, | 50 int connect_remote(const char* remotehost, const char* remoteport, |
49 int nonblocking, char ** errstring); | 51 int nonblocking, char ** errstring); |
50 char* getaddrhostname(struct sockaddr * addr); | 52 char* getaddrhostname(struct sockaddr_storage * addr); |
51 int buf_readfile(buffer* buf, const char* filename); | 53 int buf_readfile(buffer* buf, const char* filename); |
52 int buf_getline(buffer * line, FILE * authfile); | 54 int buf_getline(buffer * line, FILE * authfile); |
53 | 55 |
54 int m_close(int fd); | 56 int m_close(int fd); |
55 void * m_malloc(size_t size); | 57 void * m_malloc(size_t size); |