mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-27 13:28:00 +01:00
Accept GENERIC_CERTIFICATION signatures when negotiating algorithms
This commit is contained in:
parent
10f1650d06
commit
2009f7f7e3
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ public class OpenPgpKeyAttributeUtil {
|
|||
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();
|
||||
for (int h : hashAlgos) {
|
||||
hashAlgorithms.add(HashAlgorithm.fromId(h));
|
||||
|
|
Loading…
Reference in a new issue