diff options
author | defanor <defanor@uberspace.net> | 2020-11-19 07:02:48 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2020-11-19 07:02:48 +0300 |
commit | f56e6496224eb5b997facfe80d9d6262c9296f93 (patch) | |
tree | 97375b7996902026c1448e43bb74426d0a1e2725 /examples/basic.c | |
parent | 19428c30ba198bf96c875f1574db99a1677df00d (diff) |
Implement XEP-0373: OpenPGP for XMPP
Various checks and utility functions should still be added, and it
currently relies on gpg(1) for key generation and validation, but
PEP-based key distribution and basic OpenPGP functionality are
there.
Diffstat (limited to 'examples/basic.c')
-rw-r--r-- | examples/basic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/basic.c b/examples/basic.c index 09a98c4..1d19c90 100644 --- a/examples/basic.c +++ b/examples/basic.c @@ -139,6 +139,8 @@ main (int argc, char **argv) { } else if (strcmp(input, ".") == 0) { /* Exit. */ rexmpp_stop(&s); + } else if (strlen(input) == 42 && input[0] == 'k' && input[1] == ' ') { + rexmpp_openpgp_publish_key(&s, input + 2); } else { /* A test message for a fixed JID. */ xmlNodePtr msg = rexmpp_xml_add_id(&s, xmlNewNode(NULL, "message")); |