1*a87701e9SGary Mills /*
2*a87701e9SGary Mills  * This file and its contents are supplied under the terms of the
3*a87701e9SGary Mills  * Common Development and Distribution License ("CDDL"), version 1.0.
4*a87701e9SGary Mills  * You may only use this file in accordance with the terms of version
5*a87701e9SGary Mills  * 1.0 of the CDDL.
6*a87701e9SGary Mills  *
7*a87701e9SGary Mills  * A full copy of the text of the CDDL should have accompanied this
8*a87701e9SGary Mills  * source.  A copy of the CDDL is also available via the Internet at
9*a87701e9SGary Mills  * http://www.illumos.org/license/CDDL.
10*a87701e9SGary Mills  */
11*a87701e9SGary Mills 
12*a87701e9SGary Mills /*
13*a87701e9SGary Mills  * Copyright 2015 Gary Mills
14*a87701e9SGary Mills  */
15*a87701e9SGary Mills 
16*a87701e9SGary Mills #ifndef _NIS_PARSE_LDAP_UTIL_H
17*a87701e9SGary Mills #define	_NIS_PARSE_LDAP_UTIL_H
18*a87701e9SGary Mills 
19*a87701e9SGary Mills /*
20*a87701e9SGary Mills  * Functions defined in nis_parse_ldap_util.c needed elsewhere
21*a87701e9SGary Mills  */
22*a87701e9SGary Mills 
23*a87701e9SGary Mills #ifdef __cplusplus
24*a87701e9SGary Mills extern "C" {
25*a87701e9SGary Mills #endif
26*a87701e9SGary Mills 
27*a87701e9SGary Mills extern void *s_malloc(size_t);
28*a87701e9SGary Mills extern bool_t add_column(__nis_table_mapping_t *, const char *);
29*a87701e9SGary Mills extern bool_t dup_index(__nis_index_t *, __nis_index_t *);
30*a87701e9SGary Mills extern bool_t dup_mapping_element(__nis_mapping_element_t *,
31*a87701e9SGary Mills     __nis_mapping_element_t *);
32*a87701e9SGary Mills extern bool_t make_fqdn(__nis_object_dn_t *, const char *);
33*a87701e9SGary Mills extern bool_t make_full_dn(char **, const char *);
34*a87701e9SGary Mills extern void append_dot(char **);
35*a87701e9SGary Mills extern void append_comma(char **);
36*a87701e9SGary Mills extern __nis_mapping_rule_t **dup_mapping_rules(__nis_mapping_rule_t **,
37*a87701e9SGary Mills     int n_rules);
38*a87701e9SGary Mills extern __nis_mapping_rule_t *dup_mapping_rule(__nis_mapping_rule_t *);
39*a87701e9SGary Mills 
40*a87701e9SGary Mills #ifdef __cplusplus
41*a87701e9SGary Mills }
42*a87701e9SGary Mills #endif
43*a87701e9SGary Mills 
44*a87701e9SGary Mills #endif /* _NIS_PARSE_LDAP_UTIL_H */
45