Commit 80cf83ac authored by Stuart Lynne's avatar Stuart Lynne
Browse files

1. add ldap_get_lderrno(), required if struct ldap is private

parent d0a843b7
......@@ -523,6 +523,7 @@ LDAP_F int ldap_delete_s LDAP_P(( LDAP *ld, char *dn ));
LDAP_F int ldap_result2error LDAP_P(( LDAP *ld, LDAPMessage *r, int freeit ));
LDAP_F char *ldap_err2string LDAP_P(( int err ));
LDAP_F void ldap_perror LDAP_P(( LDAP *ld, char *s ));
LDAP_F int ldap_get_lderrno LDAP_P((LDAP *ld, char **matched, char **msg));
/*
* in modify.c:
......
......@@ -164,3 +164,14 @@ ldap_result2error( LDAP *ld, LDAPMessage *r, int freeit )
return( ld->ld_errno );
}
int
ldap_get_lderrno(LDAP *ld, char **matched, char **msg)
{
if ( matched )
*matched = ld->ld_matched;
if ( msg )
*msg = NULL;
return( ld->ld_errno );
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment