Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
int tldap_msg_id(const struct tldap_message *msg);
int tldap_msg_type(const struct tldap_message *msg);
+TLDAPRC tldap_msg_rc(const struct tldap_message *msg);
const char *tldap_msg_matcheddn(struct tldap_message *msg);
const char *tldap_msg_diagnosticmessage(struct tldap_message *msg);
const char *tldap_msg_referral(struct tldap_message *msg);
return msg->type;
}
+TLDAPRC tldap_msg_rc(const struct tldap_message *msg)
+{
+ if (msg == NULL) {
+ return TLDAP_LOCAL_ERROR;
+ }
+
+ return msg->lderr;
+}
+
const char *tldap_msg_matcheddn(struct tldap_message *msg)
{
if (msg == NULL) {