mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
06c5cea4d1
commit
b3b8e0bac0
1 file changed
+2
-2
@@ -52,6 +52,7 @@ type SignatureVerifyReport struct {
|
||||
References []SignatureReferenceVerify
|
||||
Stamps []SignatureStamp
|
||||
StampPositions []SignatureStampPosition
|
||||
StampPositionError string
|
||||
DigestOK bool
|
||||
DataHashOK bool
|
||||
SignedValueOK bool
|
||||
@@ -235,8 +236,7 @@ func (r *Reader) verifySignature(sigListPath string, sigRef Signature, options *
|
||||
report.Stamps = append(report.Stamps, sigFile.SignedInfo.StampAnnot...)
|
||||
report.StampPositions, err = r.SignatureStampPositions(report.Stamps)
|
||||
if err != nil {
|
||||
report.Error = err.Error()
|
||||
return report
|
||||
report.StampPositionError = err.Error()
|
||||
}
|
||||
report.DigestOK = referencesOK(report.References)
|
||||
signedValuePath := signatureRefPath(sigPath, sigFile.SignedValue)
|
||||
|
||||
Reference in new issue
Block a user