mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
allow user packets with only revocation packet
This commit is contained in:
parent
007bbdda2b
commit
b2f32827c6
@ -648,10 +648,6 @@ public class ProviderHelper {
|
||||
UserPacketItem item = uids.get(userIdRank);
|
||||
operations.add(buildUserIdOperations(masterKeyId, item, userIdRank));
|
||||
|
||||
if (item.selfCert == null) {
|
||||
throw new AssertionError("User ids MUST be self-certified at this point!!");
|
||||
}
|
||||
|
||||
if (item.selfRevocation != null) {
|
||||
operations.add(buildCertOperations(masterKeyId, userIdRank, item.selfRevocation,
|
||||
Certs.VERIFIED_SELF));
|
||||
@ -659,6 +655,10 @@ public class ProviderHelper {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item.selfCert == null) {
|
||||
throw new AssertionError("User ids MUST be self-certified at this point!!");
|
||||
}
|
||||
|
||||
operations.add(buildCertOperations(masterKeyId, userIdRank, item.selfCert,
|
||||
selfCertsAreTrusted ? Certs.VERIFIED_SECRET : Certs.VERIFIED_SELF));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user