From 332ff7a104d978a607aae7239c70073c4e88fa22 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 21 Apr 2017 16:39:24 +0200 Subject: Remove unused string matching helpers --- ldif.h | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 ldif.h (limited to 'ldif.h') diff --git a/ldif.h b/ldif.h deleted file mode 100644 index fc6496b..0000000 --- a/ldif.h +++ /dev/null @@ -1,32 +0,0 @@ -#define _FILE_OFFSET_BITS 64 -#include -#include -#include "asn1.h" -#include "ldap.h" - -/* how many attributes do we allow per record? */ -#define ATTRIBS 100 - -struct attribute { - uint32_t name, value; -}; - -struct ldaprec { - uint32_t dn; - unsigned int n; /* number of attributes */ - struct attribute a[ATTRIBS]; - struct ldaprec* next; -}; - -extern uint32_t dn, mail, sn, cn, objectClass; -extern struct ldaprec *first; -extern unsigned long ldifrecords; - -int ldif_parse(const char* filename,off_t fromofs,struct stat* ss); - -/* return non-zero if the record matches the search request */ -int ldap_match(struct ldaprec* r,struct SearchRequest* sr); -int ldap_match_mapped(uint32_t ofs,struct SearchRequest* sr); -int ldap_match_present(uint32_t ofs,uint32_t attrofs); -uint32_t ldap_find_attr_value(uint32_t ofs,uint32_t attrofs); -int ldap_matchfilter_mapped(uint32_t ofs,struct Filter* f); -- cgit v1.2.3-55-g7522