diff options
author | defanor <defanor@uberspace.net> | 2021-02-07 17:04:57 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-02-07 17:04:57 +0300 |
commit | 110d11fac989d27d72486e4eb7cca46b28f46ce2 (patch) | |
tree | 227c93b486db229cc6d55ff5e9f6c049623474e1 /src/rexmpp_openpgp.h | |
parent | adc336685e0167a9ba0919d48854b13137bb4055 (diff) |
Add the rexmpp_openpgp_set_home_dir utility function
Diffstat (limited to 'src/rexmpp_openpgp.h')
-rw-r--r-- | src/rexmpp_openpgp.h | 10 |
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 |