comparison buffer.h @ 551:c3f2ec71e3d4 agent-client

New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList
author Matt Johnston <matt@ucc.asn.au>
date Mon, 06 Jul 2009 12:59:13 +0000
parents 161557a9dde8
children 2b1bb792cd4d f336d232fc63
comparison
equal deleted inserted replaced
550:61c3513825b0 551:c3f2ec71e3d4
53 unsigned char buf_getbool(buffer* buf); 53 unsigned char buf_getbool(buffer* buf);
54 void buf_putbyte(buffer* buf, unsigned char val); 54 void buf_putbyte(buffer* buf, unsigned char val);
55 unsigned char* buf_getptr(buffer* buf, unsigned int len); 55 unsigned char* buf_getptr(buffer* buf, unsigned int len);
56 unsigned char* buf_getwriteptr(buffer* buf, unsigned int len); 56 unsigned char* buf_getwriteptr(buffer* buf, unsigned int len);
57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen); 57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen);
58 buffer * buf_getstringbuf(buffer *buf);
58 void buf_eatstring(buffer *buf); 59 void buf_eatstring(buffer *buf);
59 void buf_putint(buffer* buf, unsigned int val); 60 void buf_putint(buffer* buf, unsigned int val);
60 void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len); 61 void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len);
61 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len); 62 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len);
62 void buf_putmpint(buffer* buf, mp_int * mp); 63 void buf_putmpint(buffer* buf, mp_int * mp);