bugfix
This commit is contained in:
parent
6f16ba8ca3
commit
35953c17f6
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import (
|
||||||
"golang.org/x/crypto/openpgp/clearsign"
|
"golang.org/x/crypto/openpgp/clearsign"
|
||||||
"golang.org/x/crypto/openpgp/packet"
|
"golang.org/x/crypto/openpgp/packet"
|
||||||
errors2 "golang.org/x/crypto/openpgp/errors"
|
errors2 "golang.org/x/crypto/openpgp/errors"
|
||||||
|
"io"
|
||||||
)
|
)
|
||||||
|
|
||||||
//ReadClearSignedMessage read clear message from a clearsign package
|
//ReadClearSignedMessage read clear message from a clearsign package
|
||||||
|
|
@ -248,6 +249,8 @@ func verifySignature(pubKeyEntries openpgp.EntityList, origText *bytes.Reader, s
|
||||||
config.Time = func() time.Time {
|
config.Time = func() time.Time {
|
||||||
return time.Unix(verifyTime, 0)
|
return time.Unix(verifyTime, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
signatureReader.Seek(0, io.SeekStart)
|
||||||
signer, err = openpgp.CheckArmoredDetachedSignature(pubKeyEntries, origText, signatureReader, config)
|
signer, err = openpgp.CheckArmoredDetachedSignature(pubKeyEntries, origText, signatureReader, config)
|
||||||
} else {
|
} else {
|
||||||
// verifyTime = 0: time check disabled, everything is okay
|
// verifyTime = 0: time check disabled, everything is okay
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue