~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/crypto/x509/pkix/pkix.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
// 5280, section 4.1.1.2.
17
17
type AlgorithmIdentifier struct {
18
18
        Algorithm  asn1.ObjectIdentifier
19
 
        Parameters asn1.RawValue "optional"
 
19
        Parameters asn1.RawValue `asn1:"optional"`
20
20
}
21
21
 
22
22
type RDNSequence []RelativeDistinguishedNameSET
32
32
// 5280, section 4.2.
33
33
type Extension struct {
34
34
        Id       asn1.ObjectIdentifier
35
 
        Critical bool "optional"
 
35
        Critical bool `asn1:"optional"`
36
36
        Value    []byte
37
37
}
38
38
 
149
149
// 5280, section 5.1.
150
150
type TBSCertificateList struct {
151
151
        Raw                 asn1.RawContent
152
 
        Version             int "optional,default:2"
 
152
        Version             int `asn1:"optional,default:2"`
153
153
        Signature           AlgorithmIdentifier
154
154
        Issuer              RDNSequence
155
155
        ThisUpdate          *time.Time
156
156
        NextUpdate          *time.Time
157
 
        RevokedCertificates []RevokedCertificate "optional"
158
 
        Extensions          []Extension          "tag:0,optional,explicit"
 
157
        RevokedCertificates []RevokedCertificate `asn1:"optional"`
 
158
        Extensions          []Extension          `asn1:"tag:0,optional,explicit"`
159
159
}
160
160
 
161
161
// RevokedCertificate represents the ASN.1 structure of the same name. See RFC
163
163
type RevokedCertificate struct {
164
164
        SerialNumber   *big.Int
165
165
        RevocationTime *time.Time
166
 
        Extensions     []Extension "optional"
 
166
        Extensions     []Extension `asn1:"optional"`
167
167
}