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 --- asn1.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asn1.h') diff --git a/asn1.h b/asn1.h index 56a2368..6ff21c8 100644 --- a/asn1.h +++ b/asn1.h @@ -9,8 +9,8 @@ enum asn1_tagclass { UNIVERSAL=(0<<6), APPLICATION=(1<<6), - PRIVATE=(2<<6), - CONTEXT_SPECIFIC=(3<<6) + CONTEXT_SPECIFIC=(2<<6), + PRIVATE=(3<<6) }; enum asn1_tagtype { @@ -228,7 +228,7 @@ size_t fmt_asn1generic(char* dest,const char* fmt,...); * 'p' (scan only) like 's' but check that contents of string is printable * 'a' (scan only) like 's' but check that contents of string is ascii * '!' (scan only) next argument is struct string*, fill in region until end of current sequence / set (for optional data) - * 'c' context specific value (tag class PRIVATE, type CONSTRUCTED, tag taken from unsigned long arg / written to unsigned long* argument) + * 'c' context specific value (tag class CONTEXT_SPECIFIC, type CONSTRUCTED, tag taken from unsigned long arg / written to unsigned long* argument) */ #endif -- cgit v1.2.3-55-g7522