]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: improve error when parsing bad ECDSA cert
authorJakob Weisblat <jakobw@mit.edu>
Fri, 18 Aug 2017 16:24:54 +0000 (18:24 +0200)
committerFilippo Valsorda <filippo@golang.org>
Wed, 28 Mar 2018 03:46:14 +0000 (03:46 +0000)
commit89f4592d1e83b3235ab91477702642d899da8c31
treef9154af7f8e36f51bf19de7855c29f3c7c3b7a61
parent9d84e0edd042bc6ca2a9cf3e402b81d5f27103d5
crypto/x509: improve error when parsing bad ECDSA cert

When parsing an ECDSA certificate, improve the error message upon
failing to parse the curve as a named curve, rather than returning
the original ASN1 error.

Fixes #21502

Change-Id: I7ae7b3ea7a9dcbd78a9607f46f5883d3193b8367
Reviewed-on: https://go-review.googlesource.com/57050
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/x509/x509.go