Page MenuHomeDevCentral

Add SASL capability
ClosedPublic

Authored by dereckson on May 15 2023, 17:27.
Tags
None
Referenced Files
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
Unknown Object (File)
Sun, Nov 17, 18:25
Unknown Object (File)
Thu, Nov 14, 18:02
Unknown Object (File)
Tue, Nov 12, 10:27
Unknown Object (File)
Fri, Nov 8, 20:24
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.