Commit ba756301 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

crypto/x509: fix copy/paste-o in error message

Fixes #15371

Change-Id: Iff8d36e1bd9b5641f6b577a30ac6e967f973c939
Reviewed-on: https://go-review.googlesource.com/22240Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
parent 998c8e03
......@@ -1133,7 +1133,7 @@ func parseCertificate(in *certificate) (*Certificate, error) {
if rest, err := asn1.Unmarshal(e.Value, &keyid); err != nil {
return nil, err
} else if len(rest) != 0 {
return nil, errors.New("x509: trailing data after X.509 authority key-id")
return nil, errors.New("x509: trailing data after X.509 key-id")
}
out.SubjectKeyId = keyid
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment