about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-23 23:29:10 +0100
committerJames Booth <boothj5@gmail.com>2015-06-23 23:29:10 +0100
commit358e9d6af0677354fa70fa089124de07d8423eb7 (patch)
tree71554c57d40f5267307e0b815bd50be6b397400c /tests
parent2d3537515d9b0dbba51265ed7819dd80b31a33d8 (diff)
downloadprofani-tty-358e9d6af0677354fa70fa089124de07d8423eb7.tar.gz
Added /pgp setkey command
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/pgp/stub_gpg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unittests/pgp/stub_gpg.c b/tests/unittests/pgp/stub_gpg.c
index 03b58b55..671b2092 100644
--- a/tests/unittests/pgp/stub_gpg.c
+++ b/tests/unittests/pgp/stub_gpg.c
@@ -38,3 +38,12 @@ char * p_gpg_decrypt(const char * const barejid, 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;
+}
+