Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implementation of initial responses with GNU SASL (resolves #319) #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RichardSteele
Copy link
Contributor

Implements initial responses with GNU SASL.
Guards its usage within IMAP by respecting SASL-IR capability of server.

@@ -397,7 +409,7 @@ void IMAPConnection::authenticateSASL() {

shared_ptr <IMAPCommand> authCmd;

if (saslSession->getMechanism()->hasInitialResponse()) {
if (saslIR && saslSession->getMechanism()->hasInitialResponse()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or we could simply use hasCapability() here, maybe more concise?

if (hasCapability("SASL-IR") && saslSession->getMechanism()->hasInitialResponse()) {

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants