~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/crypto/ocsp/ocsp.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:
43
43
 
44
44
type responseASN1 struct {
45
45
        Status   asn1.Enumerated
46
 
        Response responseBytes "explicit,tag:0"
 
46
        Response responseBytes `asn1:"explicit,tag:0"`
47
47
}
48
48
 
49
49
type responseBytes struct {
55
55
        TBSResponseData    responseData
56
56
        SignatureAlgorithm pkix.AlgorithmIdentifier
57
57
        Signature          asn1.BitString
58
 
        Certificates       []asn1.RawValue "explicit,tag:0,optional"
 
58
        Certificates       []asn1.RawValue `asn1:"explicit,tag:0,optional"`
59
59
}
60
60
 
61
61
type responseData struct {
62
62
        Raw           asn1.RawContent
63
 
        Version       int              "optional,default:1,explicit,tag:0"
64
 
        RequestorName pkix.RDNSequence "optional,explicit,tag:1"
65
 
        KeyHash       []byte           "optional,explicit,tag:2"
 
63
        Version       int              `asn1:"optional,default:1,explicit,tag:0"`
 
64
        RequestorName pkix.RDNSequence `asn1:"optional,explicit,tag:1"`
 
65
        KeyHash       []byte           `asn1:"optional,explicit,tag:2"`
66
66
        ProducedAt    *time.Time
67
67
        Responses     []singleResponse
68
68
}
69
69
 
70
70
type singleResponse struct {
71
71
        CertID     certID
72
 
        Good       asn1.Flag   "explicit,tag:0,optional"
73
 
        Revoked    revokedInfo "explicit,tag:1,optional"
74
 
        Unknown    asn1.Flag   "explicit,tag:2,optional"
 
72
        Good       asn1.Flag   `asn1:"explicit,tag:0,optional"`
 
73
        Revoked    revokedInfo `asn1:"explicit,tag:1,optional"`
 
74
        Unknown    asn1.Flag   `asn1:"explicit,tag:2,optional"`
75
75
        ThisUpdate *time.Time
76
 
        NextUpdate *time.Time "explicit,tag:0,optional"
 
76
        NextUpdate *time.Time `asn1:"explicit,tag:0,optional"`
77
77
}
78
78
 
79
79
type revokedInfo struct {
80
80
        RevocationTime *time.Time
81
 
        Reason         int "explicit,tag:0,optional"
 
81
        Reason         int `asn1:"explicit,tag:0,optional"`
82
82
}
83
83
 
84
84
// This is the exposed reflection of the internal OCSP structures.