summaryrefslogtreecommitdiff
path: root/lib/libutil/ber.h
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2021-08-29 13:27:12 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2021-08-29 13:27:12 +0000
commit5362b565902672cd8a94091ce7513564b28d2a24 (patch)
treea777e2d45387df4e91e400f9955c770d72269485 /lib/libutil/ber.h
parent02464e0b9031f96452f6b490eece5badc6628818 (diff)
Add ober_dup. Needed for upcoming SNMPv3 support for trap receiver in
snmpd(8). OK jmatthew@ OK deraadt@ for bumping libutil now.
Diffstat (limited to 'lib/libutil/ber.h')
-rw-r--r--lib/libutil/ber.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libutil/ber.h b/lib/libutil/ber.h
index e89deb46c2b..6d12f2f52f5 100644
--- a/lib/libutil/ber.h
+++ b/lib/libutil/ber.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ber.h,v 1.3 2019/12/31 10:34:14 martijn Exp $ */
+/* $OpenBSD: ber.h,v 1.4 2021/08/29 13:27:11 martijn Exp $ */
/*
* Copyright (c) 2007, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -137,6 +137,7 @@ ssize_t ober_write_elements(struct ber *, struct ber_element *);
void ober_set_readbuf(struct ber *, void *, size_t);
struct ber_element *ober_read_elements(struct ber *, struct ber_element *);
off_t ober_getpos(struct ber_element *);
+struct ber_element *ober_dup(struct ber_element *);
void ober_free_element(struct ber_element *);
void ober_free_elements(struct ber_element *);
size_t ober_calc_len(struct ber_element *);