From 2b8691f154775676ae92bf00cd459c673dda04a3 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Sun, 24 Aug 2008 16:09:31 +0000 Subject: [PATCH] Documentation changes for SASL ANONYMOUS. --- src/auth.c | 2 +- src/conn.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/auth.c b/src/auth.c index 8333169..dd0b9ee 100644 --- a/src/auth.c +++ b/src/auth.c @@ -769,7 +769,7 @@ static int _handle_features_sasl(xmpp_conn_t * const conn, /* request a specific resource if we have one */ resource = xmpp_jid_resource(conn->ctx, conn->jid); if ((resource != NULL) && (strlen(resource) == 0)) { - /* j2 doesn't handle an empty resource */ + /* jabberd2 doesn't handle an empty resource */ xmpp_free(conn->ctx, resource); resource = NULL; } diff --git a/src/conn.c b/src/conn.c index 576c302..9763483 100644 --- a/src/conn.c +++ b/src/conn.c @@ -277,8 +277,9 @@ const char *xmpp_conn_get_jid(const xmpp_conn_t * const conn) /** Set the JID of the user that will be bound to the connection. * If any JID was previously set, it will be discarded. This should not be - * be used after a connection is bound. The function will make a copy of - * the JID string. + * be used after a connection is created. The function will make a copy of + * the JID string. If the supllied JID is missing the node, SASL + * ANONYMOUS authentication will be used. * * @param conn a Strophe connection object * @param jid a full or bare JID