mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
log warning on bad uid encoding
This commit is contained in:
parent
f8677a5f16
commit
8a188a79dc
@ -438,6 +438,11 @@ public class UncachedKeyRing {
|
||||
badCerts += 1;
|
||||
continue;
|
||||
}
|
||||
// warn user if the signature was made with bad encoding
|
||||
if (!cert.verifySignature(masterKey, userId)) {
|
||||
log.add(LogLevel.WARN, LogType.MSG_KC_UID_WARN_ENCODING,
|
||||
indent, userId);
|
||||
}
|
||||
} catch (PgpGeneralException e) {
|
||||
log.add(LogLevel.WARN, LogType.MSG_KC_UID_BAD_ERR,
|
||||
indent, userId);
|
||||
|
@ -339,6 +339,7 @@ public class OperationResultParcel implements Parcelable {
|
||||
MSG_KC_UID_REVOKE_DUP (R.string.msg_kc_uid_revoke_dup),
|
||||
MSG_KC_UID_REVOKE_OLD (R.string.msg_kc_uid_revoke_old),
|
||||
MSG_KC_UID_REMOVE (R.string.msg_kc_uid_remove),
|
||||
MSG_KC_UID_WARN_ENCODING (R.string.msg_kc_uid_warn_encoding),
|
||||
|
||||
|
||||
// keyring consolidation
|
||||
|
@ -661,6 +661,7 @@
|
||||
<string name="msg_kc_uid_no_cert">"No valid self-certificate found for user id '%s', removing from ring"</string>
|
||||
<string name="msg_kc_uid_remove">"Removing invalid user id '%s'"</string>
|
||||
<string name="msg_kc_uid_dup">"Removing duplicate user id '%s'. The secret key contained two of them. This may result in missing certificates!"</string>
|
||||
<string name="msg_kc_uid_warn_encoding">"User id does not verify as UTF-8!"</string>
|
||||
|
||||
<!-- Keyring merging log entries -->
|
||||
<string name="msg_mg_error_secret_dummy">"New public subkey found, but secret subkey dummy generation is not supported!"</string>
|
||||
|
Loading…
Reference in New Issue
Block a user