From ffa6b87e86b10b69791f3ac19e47eadefe94da46 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Fri, 13 Feb 2009 10:48:29 +0100 Subject: Add dnsname_to_dn(). This function will take dns_name_t as a parameter and in turn return a suitable DN. --- ldap_convert.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ldap_convert.h') diff --git a/ldap_convert.h b/ldap_convert.h index 1fb77e4..af66d1e 100644 --- a/ldap_convert.h +++ b/ldap_convert.h @@ -20,6 +20,8 @@ #ifndef _LD_LDAP_CONVERT_H_ #define _LD_LDAP_CONVERT_H_ +#include "str.h" + /* * Convert LDAP DN 'dn', to dns_name_t 'target'. 'target' needs to be * initialized with dns_name_init() before the call and freed by the caller @@ -28,4 +30,7 @@ isc_result_t dn_to_dnsname(isc_mem_t *mctx, const char *dn, const char *root_dn, dns_name_t *target); +isc_result_t dnsname_to_dn(isc_mem_t *mctx, dns_name_t *name, + const char *root_dn, ld_string_t *target); + #endif /* !_LD_LDAP_CONVERT_H_ */ -- cgit