Golang crypto/x509/pkix.AttributeTypeAndValueSET type example

package crypto/x509/pkix

AttributeTypeAndValueSET represents a set of ASN.1 sequences of AttributeTypeAndValue sequences from RFC 2986 (PKCS #10).

Golang crypto/x509/pkix.AttributeTypeAndValueSET type usage example

 type tbsCertificateRequest struct {
  Raw asn1.RawContent
  Version int
  Subject asn1.RawValue
  PublicKey  publicKeyInfo
  Attributes []pkix.AttributeTypeAndValueSET `asn1:"tag:0"`
 }

Reference :

http://golang.org/pkg/crypto/x509/pkix/#AttributeTypeAndValueSET

Advertisement