comparison dbutil.h @ 26:0969767bca0d

snapshot of stuff
author Matt Johnston <matt@ucc.asn.au>
date Mon, 26 Jul 2004 02:44:20 +0000
parents 469950e86d0f
children c8fcd4841956
comparison
equal deleted inserted replaced
25:e4b6e2d569b2 26:0969767bca0d
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 * addr);
48 int connect_remote(const char* remotehost, const char* remoteport,
49 int nonblocking, char ** errstring);
48 char* getaddrhostname(struct sockaddr * addr); 50 char* getaddrhostname(struct sockaddr * addr);
49 int buf_readfile(buffer* buf, const char* filename); 51 int buf_readfile(buffer* buf, const char* filename);
50 52
51 int m_close(int fd); 53 int m_close(int fd);
52 void * m_malloc(size_t size); 54 void * m_malloc(size_t size);
54 void * m_realloc(void* ptr, size_t size); 56 void * m_realloc(void* ptr, size_t size);
55 #define m_free(X) __m_free(X); (X) = NULL; 57 #define m_free(X) __m_free(X); (X) = NULL;
56 void __m_free(void* ptr); 58 void __m_free(void* ptr);
57 void m_burn(void* data, unsigned int len); 59 void m_burn(void* data, unsigned int len);
58 60
61 /* Used to force mp_ints to be initialised */
62 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL}
63
59 #endif /* _DBUTIL_H_ */ 64 #endif /* _DBUTIL_H_ */