about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/pgp/gpg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c
index 99d37c64..25704847 100644
--- a/src/pgp/gpg.c
+++ b/src/pgp/gpg.c
@@ -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;
     }