From dbd8ca2bf63f7d1c944e665626ff74f6de9489bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= Date: Sun, 12 Jan 2014 00:18:58 +0200 Subject: [PATCH 1/2] sasl: send RPL_SASLMECHS --- modules/m_sasl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/m_sasl.c b/modules/m_sasl.c index 8dbbf0e7..756af1ff 100644 --- a/modules/m_sasl.c +++ b/modules/m_sasl.c @@ -172,6 +172,8 @@ me_sasl(struct Client *client_p, struct Client *source_p, } *target_p->preClient->sasl_agent = '\0'; /* Blank the stored agent so someone else can answer */ } + else if(*parv[3] == 'M') + sendto_one(target_p, form_str(RPL_SASLMECHS), me.name, EmptyString(target_p->name) ? "*" : target_p->name, parv[4]); return 0; } From 9337f5ce45c01d1fa6f0aa2e6fcaa2e14d93e952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= Date: Sun, 12 Jan 2014 21:17:34 +0200 Subject: [PATCH 2/2] doc/ts6-protocol: Correct the mode letter for termination --- doc/technical/ts6-protocol.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/technical/ts6-protocol.txt b/doc/technical/ts6-protocol.txt index df253420..dc0f390a 100644 --- a/doc/technical/ts6-protocol.txt +++ b/doc/technical/ts6-protocol.txt @@ -725,7 +725,7 @@ source: server parameters: source uid, target uid, mode, data Part of a SASL authentication exchange. The mode is 'C' to send some data -(base64 encoded), or 'S' to end the exchange (data indicates type of +(base64 encoded), or 'D' to end the exchange (data indicates type of termination: 'A' for abort, 'F' for authentication failure, 'S' for authentication success).