1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/tests/unittests/pgp/stub_gpg.c

119 lines
1.3 KiB
C
Raw Normal View History

2015-03-21 20:12:14 -04:00
#include <glib.h>
#include "pgp/gpg.h"
2020-07-07 08:18:57 -04:00
void
p_gpg_init(void)
{
}
void
p_gpg_close(void)
{
}
2015-03-21 20:29:57 -04:00
2020-07-07 08:18:57 -04:00
GHashTable*
p_gpg_list_keys(void)
2015-03-21 20:12:14 -04:00
{
return NULL;
}
2015-03-21 20:29:57 -04:00
GHashTable*
p_gpg_pubkeys(void)
{
return NULL;
}
2020-07-07 08:18:57 -04:00
const char*
p_gpg_libver(void)
{
2015-03-21 20:29:57 -04:00
return NULL;
}
2020-07-07 08:18:57 -04:00
void
p_gpg_verify(const char* const barejid, const char* const sign)
{
}
2020-07-07 08:18:57 -04:00
char*
p_gpg_sign(const char* const str, const char* const fp)
{
return NULL;
}
2020-07-07 08:18:57 -04:00
gboolean
p_gpg_valid_key(const char* const keyid, char** err_str)
{
return FALSE;
}
2020-07-07 08:18:57 -04:00
gboolean
p_gpg_available(const char* const barejid)
2015-06-20 18:49:24 -04:00
{
return FALSE;
}
2020-07-07 08:18:57 -04:00
char*
p_gpg_decrypt(const char* const cipher)
{
return NULL;
}
2015-06-23 18:29:10 -04:00
2020-07-07 08:18:57 -04:00
void
p_gpg_on_connect(const char* const barejid)
{
}
void
p_gpg_on_disconnect(void)
{
}
2015-06-23 18:29:10 -04:00
2020-07-07 08:18:57 -04:00
gboolean
p_gpg_addkey(const char* const jid, const char* const keyid)
2015-06-23 18:29:10 -04:00
{
return TRUE;
}
2020-07-07 08:18:57 -04:00
void
p_gpg_free_decrypted(char* decrypted)
{
}
2015-08-10 20:00:23 -04:00
2020-07-07 08:18:57 -04:00
void
p_gpg_free_keys(GHashTable* keys)
{
}
2020-07-07 08:18:57 -04:00
void
p_gpg_autocomplete_key_reset(void)
{
}
2015-08-25 18:44:03 -04:00
2020-07-07 08:18:57 -04:00
char*
p_gpg_autocomplete_key(const char* const search_str, gboolean previous, void* context)
2015-08-25 18:44:03 -04:00
{
return NULL;
}
2020-07-07 08:18:57 -04:00
char*
p_gpg_format_fp_str(char* fp)
2015-08-29 21:12:05 -04:00
{
return NULL;
}
char*
p_gpg_get_pubkey(const char* const keyid)
{
return NULL;
}
gboolean
p_gpg_is_public_key_format(const char* buffer)
{
return TRUE;
}
ProfPGPKey*
p_gpg_import_pubkey(const char* buffer)
{
return NULL;
}