1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

irc: send SASL username with mechanism EXTERNAL (closes #2270)

The SASL username is sent if set, otherwise "+" is still sent.
This commit is contained in:
Sébastien Helleu
2025-10-12 16:11:33 +02:00
parent b066f713d7
commit 72b2242135
5 changed files with 47 additions and 1 deletions
+15
View File
@@ -114,3 +114,18 @@ TEST(IrcSasl, MechanismEcdsaNist256pChallenge)
{
/* TODO: write tests */
}
/*
* Tests functions:
* irc_sasl_mechanism_external
*/
TEST(IrcSasl, MechanismExternal)
{
char *str;
WEE_TEST_STR("+", irc_sasl_mechanism_external (NULL));
WEE_TEST_STR("+", irc_sasl_mechanism_external (""));
WEE_TEST_STR("YWxpY2U=", irc_sasl_mechanism_external ("alice"));
}