commit | aeb0262c111aba457462a18e0ab779a1c77ad783 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@golang.org> | Wed Jun 04 11:40:03 2014 -0700 |
committer | Adam Langley <agl@golang.org> | Wed Jun 04 11:40:03 2014 -0700 |
tree | ad19918fe18cf9e0d9849be077035e28f1154eb9 | |
parent | 9fb356864640495bb15bef1f3e78c4264527b364 [diff] |
go.crypto/openpgp: fix hash presence checks. At some point in the distant past, crypto.Hash.New() changed from returning nil when a hash function wasn't provided, to panicing. Some of the code in openpgp predates this and was still using the nil check. LGTM=bradfitz R=sburford, bradfitz CC=golang-codereviews https://golang.org/cl/104850045