summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-11-05 20:41:24 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-11-05 20:41:24 +1100
commit50dbe8314b1796d05e12c1a8a9b9c8b3242d8c5a (patch)
treea685c2d4cd4ca1dbbd2e689a18f7d6e3af65faa2 /buffer.h
parentce327b62ac28cb6a605fd827a97d978ea31e2860 (diff)
- djm@cvs.openbsd.org 2004/10/29 23:56:17
[bufaux.c bufaux.h buffer.c buffer.h] introduce a new buffer API that returns an error rather than fatal()ing when presented with bad data; ok markus@
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/buffer.h b/buffer.h
index 5e4c41244..9c09d4f43 100644
--- a/buffer.h
+++ b/buffer.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: buffer.h,v 1.11 2002/03/04 17:27:39 stevesk Exp $ */ 1/* $OpenBSD: buffer.h,v 1.12 2004/10/29 23:56:17 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -40,4 +40,8 @@ void buffer_consume_end(Buffer *, u_int);
40 40
41void buffer_dump(Buffer *); 41void buffer_dump(Buffer *);
42 42
43int buffer_get_ret(Buffer *, void *, u_int);
44int buffer_consume_ret(Buffer *, u_int);
45int buffer_consume_end_ret(Buffer *, u_int);
46
43#endif /* BUFFER_H */ 47#endif /* BUFFER_H */