diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-09-14 22:00:21 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-09-14 22:00:21 +0000 |
commit | 90a1cd9e20bedecdd0f366d585d6df82269d17b7 (patch) | |
tree | 661d77f95b26a231e1c15deb9e3bde95471a913d /nslcd/util.h | |
parent | b928d6184346cd5a93f103633a5c7e5307437cd5 (diff) |
move the two remaining useful functions from util.c to ldap-nss.c
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@400 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/util.h')
-rw-r--r-- | nslcd/util.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/nslcd/util.h b/nslcd/util.h deleted file mode 100644 index c118f50..0000000 --- a/nslcd/util.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - util.h - LDAP utility functions - This file was part of the nss_ldap library which has been - forked into the nss-ldapd library. - - Copyright (C) 1997-2005 Luke Howard - Copyright (C) 2006, 2007 West Consulting - Copyright (C) 2006, 2007 Arthur de Jong - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301 USA -*/ - -#ifndef _LDAP_NSS_LDAP_UTIL_H -#define _LDAP_NSS_LDAP_UTIL_H - -/* - * get the RDN's value: eg. if the RDN was cn=lukeh, getrdnvalue(entry) - * would return lukeh. - */ -enum nss_status _nss_ldap_getrdnvalue( - MYLDAP_SESSION *session,LDAPMessage *entry,const char *rdntype, - char **rval,char **buffer,size_t * buflen); - -/* - * Escape '*' in a string for use as a filter - */ -int _nss_ldap_escape_string(const char *src,char *buffer,size_t buflen); - -/* foreward compatibility hack */ -#define myldap_escape _nss_ldap_escape_string - -#endif /* _LDAP_NSS_LDAP_UTIL_H */ |