summaryrefslogtreecommitdiff
path: root/bufaux.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 /bufaux.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 'bufaux.h')
-rw-r--r--bufaux.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/bufaux.h b/bufaux.h
index 61c72e35..e30911dd 100644
--- a/bufaux.h
+++ b/bufaux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bufaux.h,v 1.19 2003/11/10 16:23:41 jakob Exp $ */
+/* $OpenBSD: bufaux.h,v 1.20 2004/10/29 23:56:17 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -42,4 +42,14 @@ void buffer_put_cstring(Buffer *, const char *);
#define buffer_skip_string(b) \
do { u_int l = buffer_get_int(b); buffer_consume(b, l); } while(0)
+int buffer_put_bignum_ret(Buffer *, const BIGNUM *);
+int buffer_get_bignum_ret(Buffer *, BIGNUM *);
+int buffer_put_bignum2_ret(Buffer *, const BIGNUM *);
+int buffer_get_bignum2_ret(Buffer *, BIGNUM *);
+int buffer_get_short_ret(u_short *, Buffer *);
+int buffer_get_int_ret(u_int *, Buffer *);
+int buffer_get_int64_ret(u_int64_t *, Buffer *);
+void *buffer_get_string_ret(Buffer *, u_int *);
+int buffer_get_char_ret(char *, Buffer *);
+
#endif /* BUFAUX_H */