1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Added JID to log when failing to load PGP fingerprint

Added PGP stub for tests
This commit is contained in:
James Booth 2015-08-23 23:09:44 +01:00
parent 8501d1db33
commit b1ab4b2854
2 changed files with 6 additions and 1 deletions

View File

@ -153,7 +153,7 @@ p_gpg_on_connect(const char * const barejid)
error = gpgme_get_key(ctx, keyid, &key, 1);
g_free(keyid);
if (error || key == NULL) {
log_error("GPG: Failed to get key. %s %s", gpgme_strsource(error), gpgme_strerror(error));
log_warning("GPG: Failed to get key for %s: %s %s", jid, gpgme_strsource(error), gpgme_strerror(error));
continue;
}

View File

@ -30,6 +30,11 @@ char* p_gpg_sign(const char * const str, const char * const fp)
return NULL;
}
gboolean p_gpg_valid_key(const char * const keyid)
{
return FALSE;
}
gboolean p_gpg_available(const char * const barejid)
{
return FALSE;