HomeDevCentral

Add SASL capability

Description

Add SASL capability

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

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1739

Differential Revision: https://devcentral.nasqueron.org/D3096

Details

Provenance
derecksonAuthored on May 15 2023, 16:31
derecksonPushed on May 15 2023, 17:30
Reviewer
dereckson
Differential Revision
D3096: Add SASL capability
Parents
rDARKBOT829d0e0bda75: Don't declare mutable variables as static
Branches
Unknown
Tags
Unknown
Tasks
T1739: Add SASL capability to Darkbot