mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-09-28 10:39:33 +02:00
Accept GENERIC_CERTIFICATION signatures when negotiating algorithms
This commit is contained in:
parent
10f1650d06
commit
2009f7f7e3
|
@ -38,7 +38,9 @@ public class OpenPgpKeyAttributeUtil {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (signature.getSignatureType() == SignatureType.POSITIVE_CERTIFICATION.getCode()) {
|
SignatureType signatureType = SignatureType.valueOf(signature.getSignatureType());
|
||||||
|
if (signatureType == SignatureType.POSITIVE_CERTIFICATION
|
||||||
|
|| signatureType == SignatureType.GENERIC_CERTIFICATION) {
|
||||||
int[] hashAlgos = signature.getHashedSubPackets().getPreferredHashAlgorithms();
|
int[] hashAlgos = signature.getHashedSubPackets().getPreferredHashAlgorithms();
|
||||||
for (int h : hashAlgos) {
|
for (int h : hashAlgos) {
|
||||||
hashAlgorithms.add(HashAlgorithm.fromId(h));
|
hashAlgorithms.add(HashAlgorithm.fromId(h));
|
||||||
|
|
Loading…
Reference in a new issue