mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-14 06:00:16 -05:00
some small notation data fixes
This commit is contained in:
parent
22ea1defa8
commit
2223cdd405
@ -933,7 +933,8 @@ public class PgpKeyOperation {
|
|||||||
PGPSignature emptySig = sGen.generateCertification(masterPublicKey);
|
PGPSignature emptySig = sGen.generateCertification(masterPublicKey);
|
||||||
|
|
||||||
masterPublicKey = PGPPublicKey.addCertification(masterPublicKey, emptySig);
|
masterPublicKey = PGPPublicKey.addCertification(masterPublicKey, emptySig);
|
||||||
PGPSecretKey.replacePublicKey(sKR.getSecretKey(), masterPublicKey);
|
sKR = PGPSecretKeyRing.insertSecretKey(sKR,
|
||||||
|
PGPSecretKey.replacePublicKey(sKR.getSecretKey(), masterPublicKey));
|
||||||
|
|
||||||
return sKR;
|
return sKR;
|
||||||
}
|
}
|
||||||
@ -956,7 +957,8 @@ public class PgpKeyOperation {
|
|||||||
PGPSignature emptySig = sGen.generateCertification(masterPublicKey);
|
PGPSignature emptySig = sGen.generateCertification(masterPublicKey);
|
||||||
|
|
||||||
masterPublicKey = PGPPublicKey.addCertification(masterPublicKey, emptySig);
|
masterPublicKey = PGPPublicKey.addCertification(masterPublicKey, emptySig);
|
||||||
PGPSecretKey.replacePublicKey(sKR.getSecretKey(), masterPublicKey);
|
sKR = PGPSecretKeyRing.insertSecretKey(sKR,
|
||||||
|
PGPSecretKey.replacePublicKey(sKR.getSecretKey(), masterPublicKey));
|
||||||
|
|
||||||
return sKR;
|
return sKR;
|
||||||
}
|
}
|
||||||
|
@ -349,14 +349,6 @@ public class UncachedKeyRing {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cert.isLocal()) {
|
|
||||||
// Remove revocation certs with "local" flag
|
|
||||||
log.add(LogType.MSG_KC_REVOKE_BAD_LOCAL, indent);
|
|
||||||
modified = PGPPublicKey.removeCertification(modified, zert);
|
|
||||||
badCerts += 1;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// special case: direct key signatures!
|
// special case: direct key signatures!
|
||||||
if (cert.getSignatureType() == PGPSignature.DIRECT_KEY) {
|
if (cert.getSignatureType() == PGPSignature.DIRECT_KEY) {
|
||||||
// must be local, otherwise strip!
|
// must be local, otherwise strip!
|
||||||
@ -382,6 +374,12 @@ public class UncachedKeyRing {
|
|||||||
redundantCerts += 1;
|
redundantCerts += 1;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
} else if (cert.isLocal()) {
|
||||||
|
// Remove revocation certs with "local" flag
|
||||||
|
log.add(LogType.MSG_KC_REVOKE_BAD_LOCAL, indent);
|
||||||
|
modified = PGPPublicKey.removeCertification(modified, zert);
|
||||||
|
badCerts += 1;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// first revocation? fine then.
|
// first revocation? fine then.
|
||||||
|
Loading…
Reference in New Issue
Block a user