diff options
author | Simon Rettberg | 2014-03-15 01:49:50 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-03-15 01:49:50 +0100 |
commit | bedd2e7ccb1595c23e159eaa952ae1b0b5a3d2ad (patch) | |
tree | c7d1995a09f6ed0c4e6873252e957d72f5d07d07 /fmt_ldapsearchresultentry.c | |
download | ldadp-bedd2e7ccb1595c23e159eaa952ae1b0b5a3d2ad.tar.gz ldadp-bedd2e7ccb1595c23e159eaa952ae1b0b5a3d2ad.tar.xz ldadp-bedd2e7ccb1595c23e159eaa952ae1b0b5a3d2ad.zip |
Lean and mean initial commit
Not much functionality yet
Diffstat (limited to 'fmt_ldapsearchresultentry.c')
-rw-r--r-- | fmt_ldapsearchresultentry.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fmt_ldapsearchresultentry.c b/fmt_ldapsearchresultentry.c new file mode 100644 index 0000000..3a30b53 --- /dev/null +++ b/fmt_ldapsearchresultentry.c @@ -0,0 +1,11 @@ +#include "ldap.h" + +size_t fmt_ldapsearchresultentry(char* dest,const struct SearchResultEntry* sre) { + size_t l,sum=0; + sum=fmt_ldapstring(dest,&sre->objectName); + if (dest) dest+=sum; + l=fmt_asn1SEQUENCE(dest,fmt_ldappal(0,sre->attributes)); + sum+=l; if (dest) dest+=l; + l=fmt_ldappal(dest,sre->attributes); + return sum+l; +} |