summaryrefslogtreecommitdiffstats
path: root/asn1.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-13 18:08:11 +0200
committerSimon Rettberg2019-06-13 18:08:11 +0200
commit5829b696f3d831766c92c58b957feb6315ed7ddb (patch)
tree3d84cf15a594be38c7f31eb2992bee541d10070f /asn1.h
parentFix deprecated OpenSSL call (diff)
downloadldadp-5829b696f3d831766c92c58b957feb6315ed7ddb.tar.gz
ldadp-5829b696f3d831766c92c58b957feb6315ed7ddb.tar.xz
ldadp-5829b696f3d831766c92c58b957feb6315ed7ddb.zip
tag class CONTEXT_SPECIFIC <-> PRIVATE was swapped
Diffstat (limited to 'asn1.h')
-rw-r--r--asn1.h6
1 files changed, 3 insertions, 3 deletions
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