1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00
profanity/tests/unittests/pgp/stub_gpg.c
Michael Vetter a4cadf78fa Revert "Apply coding style"
This reverts commit 9b55f2dec0.

Sorting the includes creates some problems.
2020-07-07 13:53:30 +02:00

81 lines
1.3 KiB
C

#include <glib.h>
#include "pgp/gpg.h"
void p_gpg_init(void) {}
void p_gpg_close(void) {}
GHashTable* p_gpg_list_keys(void)
{
return NULL;
}
GHashTable*
p_gpg_pubkeys(void)
{
return NULL;
}
const char* p_gpg_libver(void)
{
return NULL;
}
void p_gpg_verify(const char * const barejid, const char *const sign) {}
char* p_gpg_sign(const char * const str, const char * const fp)
{
return NULL;
}
gboolean p_gpg_valid_key(const char * const keyid, char **err_str)
{
return FALSE;
}
gboolean p_gpg_available(const char * const barejid)
{
return FALSE;
}
char * p_gpg_decrypt(const char * const cipher)
{
return NULL;
}
void p_gpg_on_connect(const char * const barejid) {}
void p_gpg_on_disconnect(void) {}
gboolean p_gpg_addkey(const char * const jid, const char * const keyid)
{
return TRUE;
}
void p_gpg_free_decrypted(char *decrypted) {}
void p_gpg_free_keys(GHashTable *keys) {}
void p_gpg_autocomplete_key_reset(void) {}
char * p_gpg_autocomplete_key(const char * const search_str, gboolean previous, void *context)
{
return NULL;
}
char *
p_gpg_format_fp_str(char *fp)
{
return NULL;
}
gboolean ox_is_private_key_available(const char *const barejid) {
return FALSE;
}
gboolean ox_is_public_key_available(const char *const barejid) {
return FALSE;
}
GHashTable* ox_gpg_public_keys(void) {
return NULL;
}