aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
authorAndrew Medvedev <andrew.y.medvedev@gmail.com>2019-09-21 20:18:47 +0300
committerFilippo Valsorda <filippo@golang.org>2019-09-23 14:57:39 +0000
commit37c033b0a5433ce4132e8694705ad66d4650f670 (patch)
tree6a63f917872d5d26414cdaea2773fef63f5b40f8 /test/codegen
parent361ab73305788c4bf35359a02d8873c36d654f1b (diff)
downloadgo-37c033b0a5433ce4132e8694705ad66d4650f670.tar.xz
crypto/x509: give type hint in error message in marshalPublicKey
Currently if type of public key is unsupported, error message is "only RSA and ECDSA public keys supported". After adding Ed25519 this message is no longer correct. Moreover, it is superfluous because documentation for MarshalPKIXPublicKey, CreateCertificateRequest and CreateCertificate already lists supported public key types. This CL removes unnecessary details from error message. It also adds reporting the type of unsupported key, which helps debugging cases when struct (instead of a pointer) to otherwise correct public key is given. Fixes #32640 Change-Id: I45e6e3d756b543688d850009b4da8a4023c05027 Reviewed-on: https://go-review.googlesource.com/c/go/+/196777 Reviewed-by: Filippo Valsorda <filippo@golang.org>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions