SASL always base64 by default

This commit is contained in:
the-djmaze 2023-03-21 18:56:48 +01:00
parent 7105e23781
commit 30c95ac04e
4 changed files with 1 additions and 5 deletions

View file

@ -146,7 +146,6 @@ class ImapClient extends \MailSo\Net\NetClient
}
$SASL = \SnappyMail\SASL::factory($type);
$SASL->base64 = true;
try
{

View file

@ -107,7 +107,6 @@ class SieveClient extends \MailSo\Net\NetClient
}
$SASL = \SnappyMail\SASL::factory($type);
$SASL->base64 = true;
$bAuth = false;
try

View file

@ -136,7 +136,6 @@ class SmtpClient extends \MailSo\Net\NetClient
if ($this->Settings->authPlainLine) {
// https://github.com/the-djmaze/snappymail/issues/1038
$SASL = \SnappyMail\SASL::factory('PLAIN');
$SASL->base64 = true;
try
{
$sResult = $this->sendRequestWithCheck('AUTH', 235, 'PLAIN ' . $SASL->authenticate($sLogin, $sPassword));
@ -150,7 +149,6 @@ class SmtpClient extends \MailSo\Net\NetClient
} else {
// Start authentication
$SASL = \SnappyMail\SASL::factory($type);
$SASL->base64 = true;
try
{

View file

@ -4,7 +4,7 @@ namespace SnappyMail;
abstract class SASL
{
public bool $base64 = false;
public bool $base64 = true;
abstract public function authenticate(string $authcid, string $passphrase, ?string $authzid = null) : string;