diff options
author | defanor <defanor@uberspace.net> | 2021-02-11 16:43:47 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-02-11 17:33:22 +0300 |
commit | 30b8528e17ea184a704229a82f0446b8a400ccfd (patch) | |
tree | ed9e1d1f4052f417eeec4c4d8ee4e733943cb493 /examples | |
parent | 6acda7ad1f834016c9cebea0dd82467db86baeeb (diff) |
Add initial JID checks
The rexmpp_jid_check function now ensures that JID parts are valid
UTF-8 strings, and that only allowed code points (per RFC 8265) are
used in those. Though there is a few more checks to perform still.
Diffstat (limited to 'examples')
-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 123225a..404b281 100644 --- a/examples/basic.c +++ b/examples/basic.c @@ -106,6 +106,8 @@ main (int argc, char **argv) { /* GNUTLS_X509_FMT_PEM); */ s.roster_cache_file = "roster.xml"; + /* rexmpp_openpgp_set_home_dir(&s, "./pgp/"); */ + /* Once the main structure is initialised and everything is sufficiently configured, we are ready to run the main loop and call rexmpp from it. */ |