Lines Matching refs:ld

36     LDAP		*ld,  in ldap_extended_operation()  argument
60 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_extended_operation()
66 if ( NSLDAPI_LDAP_VERSION( ld ) < LDAP_VERSION3 ) { in ldap_extended_operation()
68 LDAP_SET_LDERRNO( ld, rc, NULL, NULL ); in ldap_extended_operation()
75 LDAP_SET_LDERRNO( ld, rc, NULL, NULL ); in ldap_extended_operation()
79 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in ldap_extended_operation()
80 msgid = ++ld->ld_msgid; in ldap_extended_operation()
81 LDAP_MUTEX_UNLOCK( ld, LDAP_MSGID_LOCK ); in ldap_extended_operation()
84 if ( ld->ld_cache_on && ld->ld_cache_extendedop != NULL ) { in ldap_extended_operation()
85 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_extended_operation()
86 if ( (rc = (ld->ld_cache_extendedop)( ld, msgid, in ldap_extended_operation()
88 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_extended_operation()
91 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_extended_operation()
96 if (( rc = nsldapi_alloc_ber_with_options( ld, &ber )) in ldap_extended_operation()
106 LDAP_SET_LDERRNO( ld, rc, NULL, NULL ); in ldap_extended_operation()
111 if (( rc = nsldapi_put_controls( ld, serverctrls, 1, ber )) in ldap_extended_operation()
118 rc = nsldapi_send_initial_request( ld, msgid, LDAP_REQ_EXTENDED, NULL, in ldap_extended_operation()
121 return( rc < 0 ? LDAP_GET_LDERRNO( ld, NULL, NULL ) : LDAP_SUCCESS ); in ldap_extended_operation()
140 LDAP *ld, in ldap_extended_operation_s() argument
152 if (( err = ldap_extended_operation( ld, requestoid, requestdata, in ldap_extended_operation_s()
157 if ( ldap_result( ld, msgid, 1, (struct timeval *) 0, &result ) in ldap_extended_operation_s()
159 return( LDAP_GET_LDERRNO( ld, NULL, NULL ) ); in ldap_extended_operation_s()
162 if (( err = ldap_parse_extended_result( ld, result, retoidp, retdatap, in ldap_extended_operation_s()
168 return( ldap_result2error( ld, result, 1 ) ); in ldap_extended_operation_s()
179 LDAP *ld, in ldap_parse_extended_result() argument
194 if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) { in ldap_parse_extended_result()
204 if ( NSLDAPI_LDAP_VERSION( ld ) < LDAP_VERSION3 ) { in ldap_parse_extended_result()
205 LDAP_SET_LDERRNO( ld, LDAP_NOT_SUPPORTED, NULL, NULL ); in ldap_parse_extended_result()
236 LDAP_SET_LDERRNO( ld, err, m, e ); in ldap_parse_extended_result()
245 LDAP_SET_LDERRNO( ld, LDAP_DECODING_ERROR, NULL, NULL ); in ldap_parse_extended_result()