14 lines
368 B
C
14 lines
368 B
C
#include "ldap.h"
|
|
|
|
/* 100% unit test coverage tested via scan_ldapsearchrequest */
|
|
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;
|
|
}
|