1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-26 14:22:05 +01:00

Fix key ring builder adding additional user-ids as primary

This commit is contained in:
Paul Schaub 2021-11-21 23:02:23 +01:00
parent 7c27d60dbf
commit 4b2089b42b

View file

@ -175,6 +175,8 @@ public class KeyRingBuilder implements KeyRingBuilderInterface<KeyRingBuilder> {
SelfSignatureSubpackets subpackets = null;
if (callback == null) {
subpackets = hashedSubPacketGenerator;
subpackets.setPrimaryUserId(null);
// additional user-ids are not primary
} else {
subpackets = SignatureSubpackets.createHashedSubpackets(primaryPubKey);
callback.modifyHashedSubpackets(subpackets);