github.com/jcmturner/gokrb5/v8@v8.4.4/types/TypedData.go (about) 1 package types 2 3 import "github.com/jcmturner/gofork/encoding/asn1" 4 5 // TypedData implements RFC 4120 type: https://tools.ietf.org/html/rfc4120#section-5.9.1 6 type TypedData struct { 7 DataType int32 `asn1:"explicit,tag:0"` 8 DataValue []byte `asn1:"optional,explicit,tag:1"` 9 } 10 11 // TypedDataSequence implements RFC 4120 type: https://tools.ietf.org/html/rfc4120#section-5.9.1 12 type TypedDataSequence []TypedData 13 14 // Unmarshal bytes into the TypedDataSequence. 15 func (a *TypedDataSequence) Unmarshal(b []byte) error { 16 _, err := asn1.Unmarshal(b, a) 17 return err 18 }