summaryrefslogtreecommitdiff
path: root/src/rexmpp_openpgp.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-02-07 17:04:57 +0300
committerdefanor <defanor@uberspace.net>2021-02-07 17:04:57 +0300
commit110d11fac989d27d72486e4eb7cca46b28f46ce2 (patch)
tree227c93b486db229cc6d55ff5e9f6c049623474e1 /src/rexmpp_openpgp.h
parentadc336685e0167a9ba0919d48854b13137bb4055 (diff)
Add the rexmpp_openpgp_set_home_dir utility function
Diffstat (limited to 'src/rexmpp_openpgp.h')
-rw-r--r--src/rexmpp_openpgp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rexmpp_openpgp.h b/src/rexmpp_openpgp.h
index 13b80f7..1835de7 100644
--- a/src/rexmpp_openpgp.h
+++ b/src/rexmpp_openpgp.h
@@ -30,4 +30,14 @@ char *rexmpp_openpgp_encrypt_sign (rexmpp_t *s,
xmlNodePtr payload,
const char **recipients);
+/**
+ @brief An utility function for setting GPG home directory. An
+ appropriate time to call it is right after rexmpp_init.
+ @param[in] s ::rexmpp
+ @param[in] home_dir Path to the home directory.
+ @returns ::REXMPP_E_PGP or ::REXMPP_SUCCESS
+*/
+rexmpp_err_t rexmpp_openpgp_set_home_dir (rexmpp_t *s, const char *home_dir);
+
+
#endif