Merge remote-tracking branch 'origin/master'

This commit is contained in:
Vincent Breitmoser committed 2015-10-08 19:56:33 +02:00
commit 084d6f1d3d
5 files changed
+9 -160

No files matched your search

@@ -84,6 +84,8 @@ public class UncachedKeyRing implements Serializable {
final PGPKeyRing mRing;
final boolean mIsSecret;
private static final int CANONICALIZE_MAX_USER_IDS = 100;
UncachedKeyRing(PGPKeyRing ring) {
mRing = ring;
mIsSecret = ring instanceof PGPSecretKeyRing;
@@ -461,7 +463,7 @@ public class UncachedKeyRing implements Serializable {
// strip out the first found user id with this name
modified = PGPPublicKey.removeCertification(modified, rawUserId);
}
if (processedUserIds.size() > 100) {
if (processedUserIds.size() > CANONICALIZE_MAX_USER_IDS) {
log.add(LogType.MSG_KC_UID_TOO_MANY, indent, userId);
// strip out the user id
modified = PGPPublicKey.removeCertification(modified, rawUserId);