TLS: Fix and complete ASN.1 tag list
authorJouni Malinen <j@w1.fi>
Sun, 13 Dec 2015 20:10:46 +0000 (22:10 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 13 Dec 2015 20:12:07 +0000 (22:12 +0200)
One of the unused defines had incorrect value and couple of tags were
missing.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/tls/asn1.h

index 7475007..6bd7df5 100644 (file)
@@ -20,6 +20,7 @@
 #define ASN1_TAG_EXTERNAL      0x08 /* not yet parsed */
 #define ASN1_TAG_REAL          0x09 /* not yet parsed */
 #define ASN1_TAG_ENUMERATED    0x0A /* not yet parsed */
+#define ASN1_TAG_EMBEDDED_PDV  0x0B /* not yet parsed */
 #define ASN1_TAG_UTF8STRING    0x0C /* not yet parsed */
 #define ANS1_TAG_RELATIVE_OID  0x0D
 #define ASN1_TAG_SEQUENCE      0x10 /* shall be constructed */
@@ -35,7 +36,8 @@
 #define ASN1_TAG_VISIBLESTRING 0x1A
 #define ASN1_TAG_GENERALSTRING 0x1B /* not yet parsed */
 #define ASN1_TAG_UNIVERSALSTRING       0x1C /* not yet parsed */
-#define ASN1_TAG_BMPSTRING     0x1D /* not yet parsed */
+#define ASN1_TAG_CHARACTERSTRING       0x1D /* not yet parsed */
+#define ASN1_TAG_BMPSTRING     0x1E /* not yet parsed */
 
 #define ASN1_CLASS_UNIVERSAL           0
 #define ASN1_CLASS_APPLICATION         1