mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Added JID to log when failing to load PGP fingerprint
Added PGP stub for tests
This commit is contained in:
parent
8501d1db33
commit
b1ab4b2854
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user