mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 22:32:07 +01:00
Fix key ring builder adding additional user-ids as primary
This commit is contained in:
parent
7c27d60dbf
commit
4b2089b42b
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,8 @@ public class KeyRingBuilder implements KeyRingBuilderInterface<KeyRingBuilder> {
|
||||||
SelfSignatureSubpackets subpackets = null;
|
SelfSignatureSubpackets subpackets = null;
|
||||||
if (callback == null) {
|
if (callback == null) {
|
||||||
subpackets = hashedSubPacketGenerator;
|
subpackets = hashedSubPacketGenerator;
|
||||||
|
subpackets.setPrimaryUserId(null);
|
||||||
|
// additional user-ids are not primary
|
||||||
} else {
|
} else {
|
||||||
subpackets = SignatureSubpackets.createHashedSubpackets(primaryPubKey);
|
subpackets = SignatureSubpackets.createHashedSubpackets(primaryPubKey);
|
||||||
callback.modifyHashedSubpackets(subpackets);
|
callback.modifyHashedSubpackets(subpackets);
|
||||||
|
|
Loading…
Reference in a new issue