Skip to content

Commit ae2d966

Browse files
rolandshoemakergopherbot
authored andcommitted
ocsp: add Response.Raw
Fixes golang/go#38340 Change-Id: I77afc901584ac3361eafa13c9ee9f8cf9ec2ee28 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/389256 Trust: Roland Shoemaker <[email protected]> Run-TryBot: Roland Shoemaker <[email protected]> Auto-Submit: Roland Shoemaker <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Damien Neil <[email protected]>
1 parent 2c7772b commit ae2d966

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ocsp/ocsp.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ func (req *Request) Marshal() ([]byte, error) {
345345
// Response represents an OCSP response containing a single SingleResponse. See
346346
// RFC 6960.
347347
type Response struct {
348+
Raw []byte
349+
348350
// Status is one of {Good, Revoked, Unknown}
349351
Status int
350352
SerialNumber *big.Int
@@ -518,6 +520,7 @@ func ParseResponseForCert(bytes []byte, cert, issuer *x509.Certificate) (*Respon
518520
}
519521

520522
ret := &Response{
523+
Raw: bytes,
521524
TBSResponseData: basicResp.TBSResponseData.Raw,
522525
Signature: basicResp.Signature.RightAlign(),
523526
SignatureAlgorithm: getSignatureAlgorithmFromOID(basicResp.SignatureAlgorithm.Algorithm),

0 commit comments

Comments
 (0)