summaryrefslogblamecommitdiffstats
path: root/fmt_ldapsearchresultentry.c
blob: 3a30b53164da57f0bd104b0c4856f16bc2327cb6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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;
}