1
0
mirror of https://github.com/golang/go synced 2024-11-13 20:20:30 -07:00
go/src/crypto
Adam Langley b23b9a762c crypto/x509: return error for missing SerialNumber.
If the SerialNumber is nil in the template then the resulting panic is
rather deep in encoding/asn1 and it's not obvious what went wrong.

This change tests and returns a more helpful error in this case.

Fixes #16603.

Change-Id: Ib30d652555191eb78f705dff8d909e4b5808f9ca
Reviewed-on: https://go-review.googlesource.com/27238
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-08-17 23:23:18 +00:00
..
aes crypto/cipher, crypto/aes: add s390x implementation of AES-CTR 2016-04-29 21:17:31 +00:00
cipher crypto/cipher, math/big: fix example names 2016-08-16 14:36:32 +00:00
des
dsa
ecdsa crypto/ecdsa: Update documentation for Sign 2016-06-29 18:44:36 +00:00
elliptic crypto/ecdsa: reject negative inputs. 2016-05-18 14:18:48 +00:00
hmac
md5 crypto/md5: add s390x assembly implementation 2016-04-27 22:11:41 +00:00
rand
rc4
rsa
sha1 crypto/sha1: fix AVX2 variant on AMD64 2016-05-26 11:34:32 +00:00
sha256 cmd/internal/obj/x86: VPSHUFD takes an unsigned byte. 2016-08-16 00:21:50 +00:00
sha512 crypto/sha512: add s390x assembly implementation 2016-04-26 17:37:45 +00:00
subtle crypto/subtle: expand abbreviation to eliminate confusion 2016-06-09 15:30:48 +00:00
tls crypto/tls: set Conn.ConnectionState.ServerName unconditionally 2016-08-17 20:21:08 +00:00
x509 crypto/x509: return error for missing SerialNumber. 2016-08-17 23:23:18 +00:00
crypto.go