now the generated "data" file matches the old one

strlen -> str_len
This commit is contained in:
leitner
2004-02-05 00:08:49 +00:00
parent 723522bcaa
commit ee32353df2
13 changed files with 32 additions and 28 deletions

View File

@@ -1,15 +1,16 @@
#include <string.h>
#include "asn1.h"
#include "ldap.h"
#include "str.h"
int fmt_ldapbindrequest(char* dest,long version,char* name,char* simple) {
int l,sum;
int nlen=strlen(name);
int nlen=str_len(name);
sum=l=fmt_asn1INTEGER(dest,version);
if (dest) dest+=l;
l=fmt_asn1OCTETSTRING(dest,name,nlen);
sum+=l; if (dest) dest+=l;
nlen=strlen(simple);
nlen=str_len(simple);
l=fmt_asn1string(dest,PRIVATE,PRIMITIVE,0,simple,nlen);
if (dest) dest+=l+nlen;
return sum+l+nlen;