mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Fix order of issuer/target certificate in certification verification method
This commit is contained in:
parent
41dfb269f1
commit
7dfb814b8a
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ class WebOfTrust(private val certificateStore: PGPCertificateStore) {
|
|||
// perform shared verification steps
|
||||
verifyCommonSignatureCriteria(candidate, certification, issuerSigningKey, targetPrimaryKey, policy)
|
||||
// check correct signature
|
||||
SignatureValidator.correctSignatureOverUserId(userId, issuerSigningKey, targetPrimaryKey).verify(certification)
|
||||
SignatureValidator.correctSignatureOverUserId(userId, targetPrimaryKey, issuerSigningKey).verify(certification)
|
||||
// Only add the edge, if the above checks did not throw
|
||||
networkBuilder.addEdge(fromCertification(issuer, target, userId, certification))
|
||||
return // we're done
|
||||
|
|
Loading…
Reference in a new issue