Index: trunk/extensions/TorBlock/ASN1Parser.php |
— | — | @@ -6,17 +6,17 @@ |
7 | 7 | class ASN1Parser { |
8 | 8 | /* const */ static $tagClasses = array( 'universal', 'application', 'context-specific', 'private' ); |
9 | 9 | /* const */ static $tagNames = array( |
10 | | - 2 => 'INTEGER', |
11 | | - 3 => 'BIT STRING', |
12 | | - 4 => 'OCTET STRING', |
13 | | - 5 => 'NULL', |
14 | | - 6 => 'OBJECT IDENTIFIER', |
15 | | - 16 => 'SEQUENCE', |
16 | | - 17 => 'SET', |
17 | | - 19 => 'PrintableString', |
18 | | - 20 => 'T61String', |
19 | | - 22 => 'IA5String', |
20 | | - 23 => 'UTCTime' |
| 10 | + self::INTEGER => 'INTEGER', |
| 11 | + self::BIT_STRING => 'BIT STRING', |
| 12 | + self::OCTET_STRING => 'OCTET STRING', |
| 13 | + self::NULL => 'NULL', |
| 14 | + self::OBJECT_IDENTIFIER => 'OBJECT IDENTIFIER', |
| 15 | + self::SEQUENCE => 'SEQUENCE', |
| 16 | + self::SET => 'SET', |
| 17 | + self::PrintableString => 'PrintableString', |
| 18 | + self::T61String => 'T61String', |
| 19 | + self::IA5String => 'IA5String', |
| 20 | + self::UTCTime => 'UTCTime' |
21 | 21 | ); |
22 | 22 | |
23 | 23 | const INTEGER = 2; |