Three Data Types
Listing 2 illustrates the three data types of interest, which are defined as symbolic constants in a header file called ParseAnyDataType.h.
Listing 2 SEQUENCE, INTEGER, and STRING Types
#define SEQ_CLASS ’\x30’ #define INT_CLASS ’\x02’ #define STR_CLASS ’\x04’
I’ll use these constants when parsing the hard-coded ASN.1 data stream from Listing 1.