summaryrefslogtreecommitdiff
path: root/src/pkg/asn1/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/asn1/common.go')
-rw-r--r--src/pkg/asn1/common.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/asn1/common.go b/src/pkg/asn1/common.go
index 14fa30426..4a5eca145 100644
--- a/src/pkg/asn1/common.go
+++ b/src/pkg/asn1/common.go
@@ -24,11 +24,14 @@ const (
tagBitString = 3
tagOctetString = 4
tagOID = 6
+ tagEnum = 10
tagSequence = 16
tagSet = 17
tagPrintableString = 19
+ tagT61String = 20
tagIA5String = 22
tagUTCTime = 23
+ tagGeneralizedTime = 24
)
const (
@@ -121,6 +124,8 @@ func getUniversalType(t reflect.Type) (tagNumber int, isCompound, ok bool) {
return tagBitString, false, true
case timeType:
return tagUTCTime, false, true
+ case enumeratedType:
+ return tagEnum, false, true
}
switch t := t.(type) {
case *reflect.BoolType: