mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-30 12:32:17 -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);
|
UserPacketItem item = uids.get(userIdRank);
|
||||||
operations.add(buildUserIdOperations(masterKeyId, item, 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) {
|
if (item.selfRevocation != null) {
|
||||||
operations.add(buildCertOperations(masterKeyId, userIdRank, item.selfRevocation,
|
operations.add(buildCertOperations(masterKeyId, userIdRank, item.selfRevocation,
|
||||||
Certs.VERIFIED_SELF));
|
Certs.VERIFIED_SELF));
|
||||||
@ -659,6 +655,10 @@ public class ProviderHelper {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.selfCert == null) {
|
||||||
|
throw new AssertionError("User ids MUST be self-certified at this point!!");
|
||||||
|
}
|
||||||
|
|
||||||
operations.add(buildCertOperations(masterKeyId, userIdRank, item.selfCert,
|
operations.add(buildCertOperations(masterKeyId, userIdRank, item.selfCert,
|
||||||
selfCertsAreTrusted ? Certs.VERIFIED_SECRET : Certs.VERIFIED_SELF));
|
selfCertsAreTrusted ? Certs.VERIFIED_SECRET : Certs.VERIFIED_SELF));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user