Page MenuHomeDevCentral

Add SASL capability
ClosedPublic

Authored by dereckson on May 15 2023, 17:27.
Tags
None
Referenced Files
F3715269: D3096.diff
Tue, Nov 5, 04:24
Unknown Object (File)
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
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 Passed
Unit
No Test Coverage
Branch
sasl
Build Status
Buildable 4889
Build 5170: arc lint + arc unit

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.