comparison dbutil.h @ 118:5312ca05ed48 private-rez

propagate of 717950f4061f1123659ee87c7c168805af920ab7 and 839f98f136788cc1466e4641bf796f96040a085d from branch 'matt.dbclient.authpam' to 'matt.dbclient.rez'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 12 Sep 2004 04:56:50 +0000
parents 2e9d1f29c50f
children 65585699d980
comparison
equal deleted inserted replaced
57:3b2a5a1c4347 118:5312ca05ed48
40 void dropbear_close(const char* format, ...); 40 void dropbear_close(const char* format, ...);
41 void dropbear_log(int priority, const char* format, ...); 41 void dropbear_log(int priority, const char* format, ...);
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 extern int debug_trace;
45 #endif 46 #endif
46 char * stripcontrol(const char * text); 47 char * stripcontrol(const char * text);
47 unsigned char * getaddrstring(struct sockaddr * addr); 48 unsigned char * getaddrstring(struct sockaddr_storage* addr, int withport);
49 int dropbear_listen(const char* address, const char* port,
50 int *socks, unsigned int sockcount, char **errstring, int *maxfd);
48 int connect_remote(const char* remotehost, const char* remoteport, 51 int connect_remote(const char* remotehost, const char* remoteport,
49 int nonblocking, char ** errstring); 52 int nonblocking, char ** errstring);
50 char* getaddrhostname(struct sockaddr * addr); 53 char* getaddrhostname(struct sockaddr_storage * addr);
51 int buf_readfile(buffer* buf, const char* filename); 54 int buf_readfile(buffer* buf, const char* filename);
52 int buf_getline(buffer * line, FILE * authfile); 55 int buf_getline(buffer * line, FILE * authfile);
53 56
54 int m_close(int fd); 57 int m_close(int fd);
55 void * m_malloc(size_t size); 58 void * m_malloc(size_t size);
56 void * m_strdup(const char * str); 59 void * m_strdup(const char * str);
57 void * m_realloc(void* ptr, size_t size); 60 void * m_realloc(void* ptr, size_t size);
58 #define m_free(X) __m_free(X); (X) = NULL; 61 #define m_free(X) __m_free(X); (X) = NULL;
59 void __m_free(void* ptr); 62 void __m_free(void* ptr);
60 void m_burn(void* data, unsigned int len); 63 void m_burn(void* data, unsigned int len);
64 void setnonblocking(int fd);
61 65
62 /* Used to force mp_ints to be initialised */ 66 /* Used to force mp_ints to be initialised */
63 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL} 67 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL}
64 68
65 #endif /* _DBUTIL_H_ */ 69 #endif /* _DBUTIL_H_ */