mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-16 13:55:03 -05:00
Merge branch 'master' of github.com:open-keychain/open-keychain
This commit is contained in:
commit
26e82afa8e
@ -881,10 +881,12 @@ public class PgpKeyOperation {
|
||||
}
|
||||
|
||||
// add shiny new user id certificate
|
||||
boolean isPrimary = currentCert.getHashedSubPackets() != null &&
|
||||
currentCert.getHashedSubPackets().isPrimaryUserID();
|
||||
modifiedPublicKey = PGPPublicKey.removeCertification(
|
||||
modifiedPublicKey, userId, currentCert);
|
||||
PGPSignature newCert = generateUserIdSignature(
|
||||
masterPrivateKey, masterPublicKey, userId, true, flags, expiry);
|
||||
masterPrivateKey, masterPublicKey, userId, isPrimary, flags, expiry);
|
||||
modifiedPublicKey = PGPPublicKey.addCertification(
|
||||
modifiedPublicKey, userId, newCert);
|
||||
ok = true;
|
||||
|
Loading…
Reference in New Issue
Block a user