diff options
author | Martin Nagy <mnagy@redhat.com> | 2009-02-13 10:48:29 +0100 |
---|---|---|
committer | Martin Nagy <mnagy@redhat.com> | 2009-02-18 18:20:42 +0100 |
commit | ffa6b87e86b10b69791f3ac19e47eadefe94da46 (patch) | |
tree | cc05b3292d6349ebbbef4522edad87b3e57c8ace /ldap_convert.h | |
parent | 719309ac5dd0bd875bb1854f291785c1efc16400 (diff) | |
download | ldap_driver-ffa6b87e86b10b69791f3ac19e47eadefe94da46.tar.gz ldap_driver-ffa6b87e86b10b69791f3ac19e47eadefe94da46.tar.xz ldap_driver-ffa6b87e86b10b69791f3ac19e47eadefe94da46.zip |
Add dnsname_to_dn().
This function will take dns_name_t as a parameter and in turn return a
suitable DN.
Diffstat (limited to 'ldap_convert.h')
-rw-r--r-- | ldap_convert.h | 5 |
1 files changed, 5 insertions, 0 deletions
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_ */ |