Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Feature sasl plain #1873

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Feature sasl plain #1873

wants to merge 2 commits into from

Conversation

delthas
Copy link

@delthas delthas commented Aug 31, 2023

This builds upon #1573:

  • rebased
  • comments addressed
  • test added
  • tested with senpai

Feel free to squash when merging

@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #1873 (1dd995e) into master (41032f8) will increase coverage by 0.14%.
The diff coverage is 71.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1873      +/-   ##
==========================================
+ Coverage   43.26%   43.41%   +0.14%     
==========================================
  Files         122      123       +1     
  Lines       32384    32586     +202     
  Branches       33       33              
==========================================
+ Hits        14012    14148     +136     
- Misses      18347    18413      +66     
  Partials       25       25              
Files Changed Coverage Δ
include/znc/Modules.h 64.00% <ø> (ø)
modules/modpython/module.h 65.93% <ø> (ø)
include/znc/Message.h 82.43% <50.00%> (-0.91%) ⬇️
src/Client.cpp 76.40% <64.05%> (-1.78%) ⬇️
modules/saslplain.cpp 90.62% <90.62%> (ø)
include/znc/Client.h 64.86% <100.00%> (+0.48%) ⬆️
src/Message.cpp 95.72% <100.00%> (+0.01%) ⬆️
src/Modules.cpp 66.60% <100.00%> (+0.44%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41032f8...1dd995e. Read the comment docs.

SCString ssOfferCaps;
for (const auto& it : m_mCoreCaps) {
bool bServerDependent = std::get<0>(it.second);
if (!bServerDependent ||
m_ssServerDependentCaps.count(it.first) > 0)
m_ssServerDependentCaps.count(it.first) > 0) {
if (it.first.Equals("sasl") && iCapVersion >= 302) {
Copy link
Member

Choose a reason for hiding this comment

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

Why is sasl server-dependent?

PutClient(":irc.znc.in 904 " + GetNick() + " :SASL response too long");
SASLReset();
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

Could you reformat the code? It's hard to read and I don't understand what's going on

@@ -469,6 +469,15 @@ def IsClientCapSupported(self, pClient, sCap, bState):
def OnClientCapRequest(self, pClient, sCap, bState):
pass

def OnGetSASLMechanisms(self, ssMechanisms):
Copy link
Member

Choose a reason for hiding this comment

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

you skipped modperl

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

Successfully merging this pull request may close these issues.

None yet

3 participants