Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KSmtp
Commits
2a2bf3c2
Commit
2a2bf3c2
authored
Sep 21, 2021
by
Laurent Montel
😁
Browse files
Port Q_FOREVER
parent
c0032d70
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/loginjob.cpp
View file @
2a2bf3c2
...
...
@@ -259,7 +259,7 @@ bool LoginJobPrivate::sasl_challenge(const QByteArray &challenge)
}
}
Q_FOREVER
{
for
(;;)
{
result
=
sasl_client_step
(
m_saslConn
,
challenge
.
isEmpty
()
?
nullptr
:
challenge
.
constData
(),
challenge
.
size
(),
&
m_saslClient
,
&
out
,
&
outLen
);
if
(
result
==
SASL_INTERACT
)
{
if
(
!
sasl_interact
())
{
...
...
@@ -311,7 +311,7 @@ bool LoginJobPrivate::authenticate()
const
char
*
actualMech
=
nullptr
;
const
auto
authMode
=
authCommand
(
m_actualAuthMode
);
Q_FOREVER
{
for
(;;)
{
qCDebug
(
KSMTP_LOG
)
<<
"Trying authmod"
<<
authMode
;
result
=
sasl_client_start
(
m_saslConn
,
authMode
.
constData
(),
&
m_saslClient
,
&
out
,
&
outLen
,
&
actualMech
);
if
(
result
==
SASL_INTERACT
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment