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 /src/rexmpp_openpgp.h | |
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 'src/rexmpp_openpgp.h')
-rw-r--r-- | src/rexmpp_openpgp.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/rexmpp_openpgp.h b/src/rexmpp_openpgp.h new file mode 100644 index 0000000..9d00a6e --- /dev/null +++ b/src/rexmpp_openpgp.h @@ -0,0 +1,28 @@ +/** + @file rexmpp_openpgp.h + @brief XEP-0373 routines + @author defanor <defanor@uberspace.net> + @date 2020 + @copyright MIT license. +*/ +#ifndef REXMPP_OPENPGP_H +#define REXMPP_OPENPGP_H + +#include "rexmpp.h" + +rexmpp_err_t +rexmpp_openpgp_check_keys (rexmpp_t *s, + const char *jid, + xmlNodePtr items); + +rexmpp_err_t rexmpp_openpgp_publish_key (rexmpp_t *s, const char *fp); + +xmlNodePtr +rexmpp_openpgp_decrypt_verify (rexmpp_t *s, + const char *cipher_base64); + +char *rexmpp_openpgp_encrypt_sign (rexmpp_t *s, + xmlNodePtr payload, + char **recipients); + +#endif |