[ADD/WIP] Begin XMPPwerk

The fuck is a stanza? Presence? Why did Prosody not tell me I'm an idiot
when I clearly made a MALFORMED XML document? This and much more, in the
next commit!
This commit is contained in:
LDA 2024-06-16 11:08:18 +02:00
commit 868f0e4d9c
7 changed files with 207 additions and 11 deletions

View file

@ -10,8 +10,8 @@ typedef struct XMLEvent {
enum {
XML_LEXER_UNKNOWN = 0,
XML_LEXER_STARTELEM,
XML_LEXER_ELEM, /* Empty attr */
XML_LEXER_DATA,
XML_LEXER_ELEM, /* Empty attr */
XML_LEXER_ENDELEM,
XML_RELAX

View file

@ -10,7 +10,7 @@ extern Stream * XMPPInitialiseCompStream(char *host, int port);
/* Authenticates a component stream with a given shared secret,
* with a stream ID from the server. This should be called right
* after XMPPInitialiseCompStream. */
extern bool XMPPAuthenticateCompStream(Stream *stream, char *shared);
extern bool XMPPAuthenticateCompStream(Stream *stream, char *as, char *shared);
/* TODO: XMPP stuff, I don't fucking know, I'm not a Jabbernerd. */