Returns the tag and length of the next element in a BerElement.
#include <ldap.h> or <lber.h>
ber_tag_t ber_peek_tag (
BerElement *ber,
ber_len_t *lenPtr);
(IN) Points to the BerElement.
(OUT) Points to the length of next element to be parsed.
Returns the tag of the next element to be parsed on success; returns LBER_DEFAULT if there is no further data to be read.
The decoding position within the ber parameter is not changed and will not affect the future use of the ber parameter.