mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-18 02:12:06 +01:00
OpenPgpMessageInputStream: Source verification certs from ConsumerOptions.getCertificateSource()
This commit is contained in:
parent
a792952845
commit
d7e4fcaec6
1 changed files with 3 additions and 5 deletions
|
@ -1018,11 +1018,9 @@ public class OpenPgpMessageInputStream extends DecryptionStream {
|
||||||
}
|
}
|
||||||
|
|
||||||
private PGPPublicKeyRing findCertificate(long keyId) {
|
private PGPPublicKeyRing findCertificate(long keyId) {
|
||||||
for (PGPPublicKeyRing cert : options.getCertificates()) {
|
PGPPublicKeyRing cert = options.getCertificateSource().getCertificate(keyId);
|
||||||
PGPPublicKey verificationKey = cert.getPublicKey(keyId);
|
if (cert != null) {
|
||||||
if (verificationKey != null) {
|
return cert;
|
||||||
return cert;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.getMissingCertificateCallback() != null) {
|
if (options.getMissingCertificateCallback() != null) {
|
||||||
|
|
Loading…
Reference in a new issue