dsakey proof of concept (needs cleanup)
[epoint] / patches / creationtime.diff
index 3c61d8f..452aa61 100644 (file)
@@ -1,6 +1,6 @@
 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.
@@ -21,7 +21,7 @@ diff -r 221f3eb76b52 src/pkg/crypto/openpgp/packet/signature.go
        }
  
 -      if sig.CreationTime == 0 {
-+      if !hasCreationTime {
++      if isHashed && !hasCreationTime {
                err = error_.StructuralError("no creation time in signature")
        }