diff -r 221f3eb76b52 src/pkg/crypto/openpgp/packet/signature.go
--- a/src/pkg/crypto/openpgp/packet/signature.go Thu Nov 24 08:51:47 2011 -0800
-+++ b/src/pkg/crypto/openpgp/packet/signature.go Fri Dec 02 01:39:57 2011 +0100
++++ b/src/pkg/crypto/openpgp/packet/signature.go Fri Dec 02 01:56:00 2011 +0100
@@ -144,14 +144,21 @@
// parseSignatureSubpackets parses subpackets of the main signature packet. See
// RFC 4880, section 5.2.3.1.
}
- if sig.CreationTime == 0 {
-+ if !hasCreationTime {
++ if isHashed && !hasCreationTime {
err = error_.StructuralError("no creation time in signature")
}