2 * Copyright (c) 1990 Regents of the University of Michigan.
11 static char copyright[] = "@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
18 #include <ac/socket.h>
19 #include <ac/string.h>
26 ldap_first_entry( LDAP *ld, LDAPMessage *chain )
28 if( ld == NULL || chain == NULLMSG ) {
32 return chain->lm_msgtype == LDAP_RES_SEARCH_ENTRY
34 : ldap_next_entry( ld, chain );
39 ldap_next_entry( LDAP *ld, LDAPMessage *entry )
41 if ( ld == NULL || entry == NULLMSG ) {
46 entry = entry->lm_chain;
48 entry = entry->lm_chain )
50 if( entry->lm_msgtype == LDAP_RES_SEARCH_ENTRY ) {
60 ldap_count_entries( LDAP *ld, LDAPMessage *chain )
68 for ( i = 0; chain != NULL; chain = chain->lm_chain ) {
69 if( chain->lm_msgtype == LDAP_RES_SEARCH_ENTRY ) {