mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 14:36:21 +00:00
Added JID to log when failing to load PGP fingerprint
Added PGP stub for tests
This commit is contained in:
@@ -153,7 +153,7 @@ p_gpg_on_connect(const char * const barejid)
|
|||||||
error = gpgme_get_key(ctx, keyid, &key, 1);
|
error = gpgme_get_key(ctx, keyid, &key, 1);
|
||||||
g_free(keyid);
|
g_free(keyid);
|
||||||
if (error || key == NULL) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ char* p_gpg_sign(const char * const str, const char * const fp)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean p_gpg_valid_key(const char * const keyid)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
gboolean p_gpg_available(const char * const barejid)
|
gboolean p_gpg_available(const char * const barejid)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user