ber_peek_tag

Returns the tag and length of the next element in a BerElement.

Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h> or <lber.h>
  
  ber_tag_t ber_peek_tag (
     BerElement  *ber,
     ber_len_t   *lenPtr);
  

Parameters

ber

(IN) Points to the BerElement.

lenPtr

(OUT) Points to the length of next element to be parsed.

Return Values

Returns the tag of the next element to be parsed on success; returns LBER_DEFAULT if there is no further data to be read.

Remarks

The decoding position within the ber parameter is not changed and will not affect the future use of the ber parameter.