diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-11-27 12:06:40 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-11-27 12:06:40 +0000 |
commit | bd653178ffd9829d35ea94c9d1ac9cf735de001a (patch) | |
tree | f10199e53e07cdd5fb991206e55258ec117de048 /usr.sbin/ypldap/ber.h | |
parent | 56a4604694d8f87a8b8167fca558bdc5a28365f5 (diff) |
Sync aldap and ber with ldap(1).
OK claudio@
Diffstat (limited to 'usr.sbin/ypldap/ber.h')
-rw-r--r-- | usr.sbin/ypldap/ber.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/ypldap/ber.h b/usr.sbin/ypldap/ber.h index d878d3e806f..ad9d0ae14cc 100644 --- a/usr.sbin/ypldap/ber.h +++ b/usr.sbin/ypldap/ber.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ber.h,v 1.9 2018/08/12 22:04:09 rob Exp $ */ +/* $OpenBSD: ber.h,v 1.10 2018/11/27 12:06:39 martijn Exp $ */ /* * Copyright (c) 2007, 2012 Reyk Floeter <reyk@openbsd.org> @@ -20,6 +20,11 @@ #ifndef _BER_H #define _BER_H +struct ber_octetstring { + size_t ostr_len; + const void *ostr_val; +}; + struct ber_element { struct ber_element *be_next; unsigned int be_type; @@ -104,9 +109,13 @@ int ber_get_boolean(struct ber_element *, int *); struct ber_element *ber_add_string(struct ber_element *, const char *); struct ber_element *ber_add_nstring(struct ber_element *, const char *, size_t); +struct ber_element *ber_add_ostring(struct ber_element *, + struct ber_octetstring *); int ber_get_string(struct ber_element *, char **); int ber_get_nstring(struct ber_element *, void **, size_t *); +int ber_get_ostring(struct ber_element *, + struct ber_octetstring *); struct ber_element *ber_add_bitstring(struct ber_element *, const void *, size_t); int ber_get_bitstring(struct ber_element *, void **, |