a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills/*
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills * This file and its contents are supplied under the terms of the
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills * Common Development and Distribution License ("CDDL"), version 1.0.
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills * You may only use this file in accordance with the terms of version
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills * 1.0 of the CDDL.
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills *
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills * A full copy of the text of the CDDL should have accompanied this
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills * source. A copy of the CDDL is also available via the Internet at
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills * http://www.illumos.org/license/CDDL.
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills */
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills/*
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills * Copyright 2015 Gary Mills
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills */
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills#ifndef _NIS_PARSE_LDAP_UTIL_H
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills#define _NIS_PARSE_LDAP_UTIL_H
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills/*
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills * Functions defined in nis_parse_ldap_util.c needed elsewhere
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills */
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills#ifdef __cplusplus
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern "C" {
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills#endif
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern void *s_malloc(size_t);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern bool_t add_column(__nis_table_mapping_t *, const char *);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern bool_t dup_index(__nis_index_t *, __nis_index_t *);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern bool_t dup_mapping_element(__nis_mapping_element_t *,
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills __nis_mapping_element_t *);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern bool_t make_fqdn(__nis_object_dn_t *, const char *);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern bool_t make_full_dn(char **, const char *);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern void append_dot(char **);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern void append_comma(char **);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern __nis_mapping_rule_t **dup_mapping_rules(__nis_mapping_rule_t **,
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills int n_rules);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Millsextern __nis_mapping_rule_t *dup_mapping_rule(__nis_mapping_rule_t *);
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills#ifdef __cplusplus
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills}
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills#endif
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills
a87701e9837f8a9ee9e4c4d3186295c0e29f743fGary Mills#endif /* _NIS_PARSE_LDAP_UTIL_H */