summaryrefslogtreecommitdiff
path: root/vendor/github.com/google/certificate-transparency-go/asn1/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/certificate-transparency-go/asn1/common.go')
-rw-r--r--vendor/github.com/google/certificate-transparency-go/asn1/common.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/google/certificate-transparency-go/asn1/common.go b/vendor/github.com/google/certificate-transparency-go/asn1/common.go
index 3c40856bec..982d06c09e 100644
--- a/vendor/github.com/google/certificate-transparency-go/asn1/common.go
+++ b/vendor/github.com/google/certificate-transparency-go/asn1/common.go
@@ -37,6 +37,7 @@ const (
TagUTCTime = 23
TagGeneralizedTime = 24
TagGeneralString = 27
+ TagBMPString = 30
)
// ASN.1 class types represent the namespace of the tag.
@@ -75,12 +76,14 @@ type fieldParameters struct {
optional bool // true iff the field is OPTIONAL
explicit bool // true iff an EXPLICIT tag is in use.
application bool // true iff an APPLICATION tag is in use.
+ private bool // true iff a PRIVATE tag is in use.
defaultValue *int64 // a default value for INTEGER typed fields (maybe nil).
tag *int // the EXPLICIT or IMPLICIT tag (maybe nil).
stringType int // the string tag to use when marshaling.
timeType int // the time tag to use when marshaling.
set bool // true iff this should be encoded as a SET
omitEmpty bool // true iff this should be omitted if empty when marshaling.
+ lax bool // true iff unmarshalling should skip some error checks
name string // name of field for better diagnostics
// Invariants:
@@ -131,8 +134,15 @@ func parseFieldParameters(str string) (ret fieldParameters) {
if ret.tag == nil {
ret.tag = new(int)
}
+ case part == "private":
+ ret.private = true
+ if ret.tag == nil {
+ ret.tag = new(int)
+ }
case part == "omitempty":
ret.omitEmpty = true
+ case part == "lax":
+ ret.lax = true
}
}
return