Merge pull request #46 from grawity/sasl-mechlist

sasl: send RPL_SASLMECHS
This commit is contained in:
William Pitcock 2014-02-08 13:02:16 -06:00
commit 7f2508c135
2 changed files with 3 additions and 1 deletions

View file

@ -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).

View file

@ -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;
}