about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-10 13:43:32 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-10 13:43:32 +0200
commit63a71af8033c3297514e6721475b9bed797e8f97 (patch)
tree09779b0d915606161521ac1ed4e98ed37092e0b8 /src/command/cmd_funcs.c
parentec6b61c2bbaf6634b1f9dc89892ede82b5c74c01 (diff)
parentd7b7f547823de766fe1f00f4565f5e7f01bb679d (diff)
downloadprofani-tty-63a71af8033c3297514e6721475b9bed797e8f97.tar.gz
Merge branch 'feature/ox-discover'
Patch sent by DebXWoody by mail under:
`[PATCH] OX: Discovering Public Keys via PEP`
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r--src/command/cmd_funcs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index d7488cff..cc52cf42 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -7545,6 +7545,18 @@ cmd_ox(ProfWin* window, const char* const command, gchar** args)
         } else {
             cons_show("Filename is required");
         }
+    } else if (g_strcmp0(args[0], "discover") == 0) {
+        if (args[1]) {
+            ox_discover_public_key(args[1]);
+        } else {
+            cons_show("JID is required");
+        }
+    } else if (g_strcmp0(args[0], "request") == 0) {
+        if (args[1] && args[2]) {
+            ox_request_public_key(args[1], args[2]);
+        } else {
+            cons_show("JID and Fingerprint is required");
+        }
     } else {
         cons_show("OX not implemented");
     }