Page MenuHomeDevCentral

Add SASL capability
ClosedPublic

Authored by dereckson on May 15 2023, 17:27.
Tags
None
Referenced Files
F3778155: D3096.diff
Mon, Nov 25, 04:07
F3774762: D3096.diff
Sun, Nov 24, 13:42
Unknown Object (File)
Fri, Nov 22, 17:06
Unknown Object (File)
Fri, Nov 22, 09:52
Unknown Object (File)
Wed, Nov 20, 19:54
Unknown Object (File)
Wed, Nov 20, 19:24
Unknown Object (File)
Tue, Nov 19, 08:51
Unknown Object (File)
Tue, Nov 19, 04:56
Subscribers
None

Details

Summary

Libera requires SASL authentication to a NickServ account for IPv4 ranges
from dedicated hosting providers like OVH and Scaleway/Online.

This change implements SASL PLAIN to authenticate to nickserv at connection
time through SASL instead of doing so in perform.ini, and as such, gain access
to Libera servers.

Base64 code is from Jouni Malinen <j@w1.fi> under BSD-2-Clause license,
and has been extracted from FreeBSD source code at commit 0a6760a1de.

To avoid to leak password to the console or service log,
the settings aren't show anymore, excepted if debug mode
is enabled.

References:

Ref T1739.

Test Plan
  • Connect to Libera, got 900 and 903 responses, successfully authenticated
  • SASL code has been tested through valgrind to ensure memory correctness

Diff Detail

Repository
rDARKBOT Darkbot
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
dereckson edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.May 15 2023, 17:29
This revision was automatically updated to reflect the committed changes.