summaryrefslogtreecommitdiffstats
path: root/scan_ldapava.c
blob: b9332c46cba11556008f61e8a446741761305e1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "ldap.h"

size_t scan_ldapava(const char* src,const char* max,struct AttributeValueAssertion* ava) {
  size_t res,tmp;
  if (!(res=scan_ldapstring(src,max,&ava->desc))) goto error;
  if (!(tmp=scan_ldapstring(src+res,max,&ava->value))) goto error;
  return res+tmp;
error:
  return 0;
}