mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
ox_key_is_usable - Logging and owner trust check
* Added logging messages (INFO if key can not be used) * Check owner_trust < GPGME_VALIDITY_MARGINAL The key can not be used if the owner_trust is less than MARGINAL.
This commit is contained in:
parent
7acc044a52
commit
62018f48c5
@ -1110,6 +1110,12 @@ _ox_key_is_usable(gpgme_key_t key, const char* const barejid, gboolean secret)
|
||||
gboolean result = TRUE;
|
||||
|
||||
if (key->revoked || key->expired || key->disabled) {
|
||||
log_info("OX: %s's key is revoked, expired or disabled", barejid);
|
||||
result = FALSE;
|
||||
}
|
||||
|
||||
if (key->owner_trust < GPGME_VALIDITY_MARGINAL) {
|
||||
log_info("OX: Owner trust of %s's key is < GPGME_VALIDITY_MARGINAL", barejid);
|
||||
result = FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user