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