Files
mars-tinyldap/fmt_ldapava.c
leitner e04ca78ff8 add "generic" format string based encoder and decoder (scan_asn1generic,
fmt_asn1generic, see t10.c for example usage)
add "generic" asn.1 dumper (in t10.c)
fix some read off-by-one errors, minor cleanups
add real OID support
add bitstring support
2011-04-28 19:50:11 +00:00

10 lines
216 B
C

#include "ldap.h"
size_t fmt_ldapava(char* dest,struct AttributeValueAssertion* a) {
size_t sum,l;
sum=fmt_ldapstring(dest,&a->desc);
if (dest) dest+=sum;
l=fmt_ldapstring(dest,&a->value);
return sum+l;
}