Page MenuHomeDevCentral

Add SASL capability
ClosedPublic

Authored by dereckson on May 15 2023, 17:27.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 05:39
Unknown Object (File)
Thu, Dec 12, 15:23
Unknown Object (File)
Thu, Dec 12, 00:29
Unknown Object (File)
Sun, Dec 8, 19:08
Unknown Object (File)
Fri, Dec 6, 08:58
Unknown Object (File)
Mon, Dec 2, 17:13
Unknown Object (File)
Mon, Nov 25, 04:07
Unknown Object (File)
Sun, Nov 24, 13:42
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.