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 5e4c4124..9c09d4f4 100644
--- a/buffer.h
+++ b/buffer.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.h,v 1.11 2002/03/04 17:27:39 stevesk Exp $ */
+/* $OpenBSD: buffer.h,v 1.12 2004/10/29 23:56:17 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -40,4 +40,8 @@ void buffer_consume_end(Buffer *, u_int);
void buffer_dump(Buffer *);
+int buffer_get_ret(Buffer *, void *, u_int);
+int buffer_consume_ret(Buffer *, u_int);
+int buffer_consume_end_ret(Buffer *, u_int);
+
#endif /* BUFFER_H */