1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 18:59:39 +02:00

Implement signature verification with certificate stores as cert source

This commit is contained in:
Paul Schaub 2022-08-25 19:46:28 +02:00
parent 22abb62443
commit 4594b494a9
4 changed files with 257 additions and 53 deletions

View file

@ -76,7 +76,7 @@ public class DetachedVerifyImpl implements DetachedVerify {
verificationList.add(map(signatureVerification));
}
if (!options.getCertificates().isEmpty()) {
if (!options.getCertificateSource().getExplicitCertificates().isEmpty()) {
if (verificationList.isEmpty()) {
throw new SOPGPException.NoSignature();
}

View file

@ -74,7 +74,7 @@ public class InlineVerifyImpl implements InlineVerify {
verificationList.add(map(signatureVerification));
}
if (!options.getCertificates().isEmpty()) {
if (!options.getCertificateSource().getExplicitCertificates().isEmpty()) {
if (verificationList.isEmpty()) {
throw new SOPGPException.NoSignature();
}