From d8fc38c7b81cb81d6ddae7b61feb7d8727079deb Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 24 Sep 2010 13:08:35 -0400 Subject: [PATCH] crypto/ocsp: update for asn1 change (fix build) TBR=gri CC=golang-dev https://golang.org/cl/2221044 --- src/pkg/crypto/ocsp/ocsp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/crypto/ocsp/ocsp.go b/src/pkg/crypto/ocsp/ocsp.go index 26ef065fda5..f3fa3bc834c 100644 --- a/src/pkg/crypto/ocsp/ocsp.go +++ b/src/pkg/crypto/ocsp/ocsp.go @@ -127,7 +127,7 @@ func (p ParseError) String() string { // Signature errors or parse failures will result in a ParseError. func ParseResponse(bytes []byte) (*Response, os.Error) { var resp responseASN1 - rest, err := asn1.Unmarshal(&resp, bytes) + rest, err := asn1.Unmarshal(bytes, &resp) if err != nil { return nil, err } @@ -146,7 +146,7 @@ func ParseResponse(bytes []byte) (*Response, os.Error) { } var basicResp basicResponse - rest, err = asn1.Unmarshal(&basicResp, resp.Response.Response) + rest, err = asn1.Unmarshal(resp.Response.Response, &basicResp) if err != nil { return nil, err }