Page MenuHomeDevCentral

Add SASL capability
ClosedPublic

Authored by dereckson on May 15 2023, 17:27.
Tags
None
Referenced Files
F3713321: D3096.id7903.diff
Mon, Nov 4, 01:25
Unknown Object (File)
Fri, Nov 1, 12:24
Unknown Object (File)
Fri, Nov 1, 04:50
Unknown Object (File)
Sat, Oct 26, 22:20
Unknown Object (File)
Sat, Oct 26, 22:09
Unknown Object (File)
Sat, Oct 26, 19:25
Unknown Object (File)
Tue, Oct 22, 02:52
Unknown Object (File)
Sun, Oct 20, 17:50
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.