3 * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
14 #include <ac/stdlib.h>
16 #include <ac/socket.h>
17 #include <ac/string.h>
23 ldap_first_message( LDAP *ld, LDAPMessage *chain )
26 assert( LDAP_VALID( ld ) );
27 assert( chain != NULL );
33 ldap_next_message( LDAP *ld, LDAPMessage *msg )
36 assert( LDAP_VALID( ld ) );
37 assert( msg != NULL );
43 ldap_count_messages( LDAP *ld, LDAPMessage *chain )
48 assert( LDAP_VALID( ld ) );
50 for ( i = 0; chain != NULL; chain = chain->lm_chain ) {
58 ldap_get_message_ber( LDAPMessage *ld )