about summary refs log tree commit diff stats
path: root/tests/unittests/pgp/stub_gpg.c
blob: 807e9b6b77eb58fd6bb204a78515a9ccf075f8c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#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;
}