]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: fix panic when using unavailable hash function.
authorAdam Langley <agl@golang.org>
Thu, 3 May 2012 20:39:57 +0000 (16:39 -0400)
committerAdam Langley <agl@golang.org>
Thu, 3 May 2012 20:39:57 +0000 (16:39 -0400)
commitc8e1946f33ee2cf482922ba2398086189faf53f6
tree517479f20317dbc44fb955292fae8c9c76350173
parent278d4a583d2e73b04a5460cf269d262adad8f87a
crypto/x509: fix panic when using unavailable hash function.

crypto.Hash.New() changed to panicking when the hash function isn't
linked in, but crypto/x509 still expects it to return nil.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6175047
src/pkg/crypto/x509/x509.go