| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"encoding/asn1" |
| 10 |
"go/constant" |
| 11 |
"go/token" |
| 12 |
"reflect" |
| 13 |
) |
| 14 |
|
| 15 |
func init() { |
| 16 |
Symbols["encoding/asn1/asn1"] = map[string]reflect.Value{ |
| 17 |
|
| 18 |
"ClassApplication": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), |
| 19 |
"ClassContextSpecific": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), |
| 20 |
"ClassPrivate": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), |
| 21 |
"ClassUniversal": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), |
| 22 |
"Marshal": reflect.ValueOf(asn1.Marshal), |
| 23 |
"MarshalWithParams": reflect.ValueOf(asn1.MarshalWithParams), |
| 24 |
"NullBytes": reflect.ValueOf(&asn1.NullBytes).Elem(), |
| 25 |
"NullRawValue": reflect.ValueOf(&asn1.NullRawValue).Elem(), |
| 26 |
"TagBMPString": reflect.ValueOf(constant.MakeFromLiteral("30", token.INT, 0)), |
| 27 |
"TagBitString": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), |
| 28 |
"TagBoolean": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), |
| 29 |
"TagEnum": reflect.ValueOf(constant.MakeFromLiteral("10", token.INT, 0)), |
| 30 |
"TagGeneralString": reflect.ValueOf(constant.MakeFromLiteral("27", token.INT, 0)), |
| 31 |
"TagGeneralizedTime": reflect.ValueOf(constant.MakeFromLiteral("24", token.INT, 0)), |
| 32 |
"TagIA5String": reflect.ValueOf(constant.MakeFromLiteral("22", token.INT, 0)), |
| 33 |
"TagInteger": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), |
| 34 |
"TagNull": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), |
| 35 |
"TagNumericString": reflect.ValueOf(constant.MakeFromLiteral("18", token.INT, 0)), |
| 36 |
"TagOID": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), |
| 37 |
"TagOctetString": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), |
| 38 |
"TagPrintableString": reflect.ValueOf(constant.MakeFromLiteral("19", token.INT, 0)), |
| 39 |
"TagSequence": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), |
| 40 |
"TagSet": reflect.ValueOf(constant.MakeFromLiteral("17", token.INT, 0)), |
| 41 |
"TagT61String": reflect.ValueOf(constant.MakeFromLiteral("20", token.INT, 0)), |
| 42 |
"TagUTCTime": reflect.ValueOf(constant.MakeFromLiteral("23", token.INT, 0)), |
| 43 |
"TagUTF8String": reflect.ValueOf(constant.MakeFromLiteral("12", token.INT, 0)), |
| 44 |
"Unmarshal": reflect.ValueOf(asn1.Unmarshal), |
| 45 |
"UnmarshalWithParams": reflect.ValueOf(asn1.UnmarshalWithParams), |
| 46 |
|
| 47 |
|
| 48 |
"BitString": reflect.ValueOf((*asn1.BitString)(nil)), |
| 49 |
"Enumerated": reflect.ValueOf((*asn1.Enumerated)(nil)), |
| 50 |
"Flag": reflect.ValueOf((*asn1.Flag)(nil)), |
| 51 |
"ObjectIdentifier": reflect.ValueOf((*asn1.ObjectIdentifier)(nil)), |
| 52 |
"RawContent": reflect.ValueOf((*asn1.RawContent)(nil)), |
| 53 |
"RawValue": reflect.ValueOf((*asn1.RawValue)(nil)), |
| 54 |
"StructuralError": reflect.ValueOf((*asn1.StructuralError)(nil)), |
| 55 |
"SyntaxError": reflect.ValueOf((*asn1.SyntaxError)(nil)), |
| 56 |
} |
| 57 |
} |