From 30b8528e17ea184a704229a82f0446b8a400ccfd Mon Sep 17 00:00:00 2001 From: defanor Date: Thu, 11 Feb 2021 16:43:47 +0300 Subject: 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. --- examples/basic.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') 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. */ -- cgit v1.2.3