summaryrefslogtreecommitdiff
path: root/src/rexmpp_jid.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-02-11 16:43:47 +0300
committerdefanor <defanor@uberspace.net>2021-02-11 17:33:22 +0300
commit30b8528e17ea184a704229a82f0446b8a400ccfd (patch)
treeed9e1d1f4052f417eeec4c4d8ee4e733943cb493 /src/rexmpp_jid.h
parent6acda7ad1f834016c9cebea0dd82467db86baeeb (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 'src/rexmpp_jid.h')
-rw-r--r--src/rexmpp_jid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rexmpp_jid.h b/src/rexmpp_jid.h
index 8613e3d..bfeedcb 100644
--- a/src/rexmpp_jid.h
+++ b/src/rexmpp_jid.h
@@ -20,5 +20,6 @@ struct rexmpp_jid {
};
int rexmpp_jid_parse (const char *str, struct rexmpp_jid *jid);
+int rexmpp_jid_check (struct rexmpp_jid *jid);
#endif