KVIrc 5.2.0
Developer APIs
Functions
KviSASL Namespace Reference

This namespace implement some SASL authentication methods. More...

Functions

bool externalMethod (const KviCString &szIn, KviCString &szOut)
 Create the auth message for EXTERNAL authentication.
 
bool plainMethod (const KviCString &szIn, KviCString &szOut, const QByteArray &baNick, const QByteArray &baPass)
 Create the auth message for PLAIN authentication.
 
QStringList supportedMethods ()
 Returns a list of the supported SASL methods.
 

Detailed Description

This namespace implement some SASL authentication methods.

Currently implementhed methods are PLAIN and EXTERNAL

Function Documentation

◆ externalMethod()

KVILIB_API bool KviSASL::externalMethod ( const KviCString szIn,
KviCString szOut 
)

Create the auth message for EXTERNAL authentication.

Parameters
szInThe server-provided token
szOutA KviCString that will be filled with the authentication message
Returns
bool

Referenced by KviIrcConnection::handleAuthenticate().

◆ plainMethod()

KVILIB_API bool KviSASL::plainMethod ( const KviCString szIn,
KviCString szOut,
const QByteArray &  baNick,
const QByteArray &  baPass 
)

Create the auth message for PLAIN authentication.

Parameters
szInThe server-provided token
szOutA KviCString that will be filled with the authentication message
baNickThe username
baPassThe password
Returns
bool

References KviMemory::allocate(), KviCString::bufferToBase64(), and KviMemory::free().

Referenced by KviIrcConnection::handleAuthenticate().

◆ supportedMethods()

KVILIB_API QStringList KviSASL::supportedMethods ( )

Returns a list of the supported SASL methods.

Returns
QStringList

Referenced by IrcServerDetailsWidget::IrcServerDetailsWidget().