From 5829b696f3d831766c92c58b957feb6315ed7ddb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 13 Jun 2019 18:08:11 +0200 Subject: tag class CONTEXT_SPECIFIC <-> PRIVATE was swapped --- fmt_ldapsearchfilter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fmt_ldapsearchfilter.c') diff --git a/fmt_ldapsearchfilter.c b/fmt_ldapsearchfilter.c index 380bb15..2f33a53 100644 --- a/fmt_ldapsearchfilter.c +++ b/fmt_ldapsearchfilter.c @@ -19,7 +19,7 @@ size_t fmt_ldapsubstring(char* dest,const struct Substring* s) { size_t sum=0,tmp=0; while (s) { - tmp=fmt_asn1string(dest,PRIVATE,PRIMITIVE,s->substrtype,s->s.s,s->s.l); + tmp=fmt_asn1string(dest,CONTEXT_SPECIFIC,PRIMITIVE,s->substrtype,s->s.s,s->s.l); if (dest) dest+=tmp; sum+=tmp; s=s->next; @@ -51,7 +51,7 @@ size_t fmt_ldapsearchfilter(char* dest,const struct Filter* f) { } break; case PRESENT: - sum=fmt_asn1string(dest,PRIVATE,PRIMITIVE,(enum asn1_tag)f->type,f->ava.desc.s,f->ava.desc.l); + sum=fmt_asn1string(dest,CONTEXT_SPECIFIC,PRIMITIVE,(enum asn1_tag)f->type,f->ava.desc.s,f->ava.desc.l); break; default: return 0; } @@ -66,7 +66,7 @@ size_t fmt_ldapsearchfilter(char* dest,const struct Filter* f) { tmp=fmt_asn1length(0,savesum); if (!dest) return sum+tmp+1; if (dest) byte_copyr(dest+tmp+1,sum,dest); - fmt_asn1tag(dest,PRIVATE,CONSTRUCTED,f->type); + fmt_asn1tag(dest,CONTEXT_SPECIFIC,CONSTRUCTED,f->type); fmt_asn1length(dest+1,savesum); return sum+tmp+1; } -- cgit v1.2.3-55-g7522