KVIrc  4.9.2
DeveloperAPIs
Functions
KviSASL Namespace Reference

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

Functions

bool plainMethod (KviCString &szIn, KviCString &szOut, QByteArray &baNick, QByteArray &baPass)
 Create the auth message for PLAIN authentication. More...
 

Detailed Description

This namespace implement some SASL authentication methods.

Currently implementhed methods are PLAIN and DH-BLOWFISH

Function Documentation

KVILIB_API bool KviSASL::plainMethod ( KviCString szIn,
KviCString szOut,
QByteArray &  baNick,
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().