summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/buffer.h
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2004-10-29 23:56:17 +0000
committerdjm <djm@openbsd.org>2004-10-29 23:56:17 +0000
commitaed45ebf268c1146c01c4e6f3daab1c92eb60b59 (patch)
tree3f2405cdfd144e6c83c3b12eebab4b7171367c3f /usr.bin/ssh/buffer.h
parentfactor out common permission-asking code to separate function; ok markus@ (diff)
downloadwireguard-openbsd-aed45ebf268c1146c01c4e6f3daab1c92eb60b59.tar.xz
wireguard-openbsd-aed45ebf268c1146c01c4e6f3daab1c92eb60b59.zip
introduce a new buffer API that returns an error rather than fatal()ing when
presented with bad data; ok markus@
Diffstat (limited to 'usr.bin/ssh/buffer.h')
-rw-r--r--usr.bin/ssh/buffer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/buffer.h b/usr.bin/ssh/buffer.h
index 5e4c4124423..9c09d4f43f7 100644
--- a/usr.bin/ssh/buffer.h
+++ b/usr.bin/ssh/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 */