version 1.10, 1998/11/04 00:41:01
|
version 1.11, 1998/11/04 12:15:19
|
Line 30 static int wait4msg LDAP_P(( LDAP *ld, i
|
Line 30 static int wait4msg LDAP_P(( LDAP *ld, i
|
#ifdef LDAP_REFERRALS |
#ifdef LDAP_REFERRALS |
static int read1msg LDAP_P(( LDAP *ld, int msgid, int all, Sockbuf *sb, LDAPConn *lc, |
static int read1msg LDAP_P(( LDAP *ld, int msgid, int all, Sockbuf *sb, LDAPConn *lc, |
LDAPMessage **result )); |
LDAPMessage **result )); |
static int build_result_ber LDAP_P(( LDAP *ld, BerElement *ber, LDAPRequest *lr )); |
static unsigned long build_result_ber LDAP_P(( LDAP *ld, BerElement *ber, LDAPRequest *lr )); |
static void merge_error_info LDAP_P(( LDAP *ld, LDAPRequest *parentr, LDAPRequest *lr )); |
static void merge_error_info LDAP_P(( LDAP *ld, LDAPRequest *parentr, LDAPRequest *lr )); |
#else /* LDAP_REFERRALS */ |
#else /* LDAP_REFERRALS */ |
static int read1msg LDAP_P(( LDAP *ld, int msgid, int all, Sockbuf *sb, |
static int read1msg LDAP_P(( LDAP *ld, int msgid, int all, Sockbuf *sb, |
Line 512 lr->lr_res_matched ? lr->lr_res_matched
|
Line 512 lr->lr_res_matched ? lr->lr_res_matched
|
|
|
|
|
#ifdef LDAP_REFERRALS |
#ifdef LDAP_REFERRALS |
static int |
static unsigned long |
build_result_ber( LDAP *ld, BerElement *ber, LDAPRequest *lr ) |
build_result_ber( LDAP *ld, BerElement *ber, LDAPRequest *lr ) |
{ |
{ |
unsigned long len; |
unsigned long len; |
Line 523 build_result_ber( LDAP *ld, BerElement *
|
Line 523 build_result_ber( LDAP *ld, BerElement *
|
if ( ber_printf( ber, "{it{ess}}", lr->lr_msgid, |
if ( ber_printf( ber, "{it{ess}}", lr->lr_msgid, |
(long)lr->lr_res_msgtype, lr->lr_res_errno, |
(long)lr->lr_res_msgtype, lr->lr_res_errno, |
lr->lr_res_matched ? lr->lr_res_matched : "", |
lr->lr_res_matched ? lr->lr_res_matched : "", |
lr->lr_res_error ? lr->lr_res_error : "" ) == LBER_ERROR ) { |
lr->lr_res_error ? lr->lr_res_error : "" ) == -1 ) { |
return( LBER_ERROR ); |
return( LBER_ERROR ); |
} |
} |
|
|