summaryrefslogtreecommitdiff
path: root/src/operator-authenticate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/operator-authenticate.cc')
-rw-r--r--src/operator-authenticate.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/operator-authenticate.cc b/src/operator-authenticate.cc
index 8689b2c..63228cd 100644
--- a/src/operator-authenticate.cc
+++ b/src/operator-authenticate.cc
@@ -280,7 +280,7 @@ Operator::ProcessResult AuthenticateOperator::process(Depot &depot, Request &com
return NOTHING;
}
-Parser::ParseResult AuthenticateOperator::parse(Request &c_in)
+Parser::ParseResult AuthenticateOperator::parse(Request &c_in, Parser &p)
{
constexpr auto ACCEPT = Parser::ParseResult::ACCEPT;
@@ -290,18 +290,18 @@ Parser::ParseResult AuthenticateOperator::parse(Request &c_in)
Parser::ParseResult res;
- if ((res = expectSPACE()) != ACCEPT) {
+ if ((res = p.expectSPACE()) != ACCEPT) {
session.setLastError("Expected single SPACE after AUTHENTICATE");
return res;
}
string authtype;
- if ((res = expectAtom(authtype)) != ACCEPT) {
+ if ((res = p.expectAtom(authtype)) != ACCEPT) {
session.setLastError("Expected auth_type after AUTHENTICATE SPACE");
return Parser::ParseResult::ERROR;
}
- if ((res = expectCRLF()) != ACCEPT) {
+ if ((res = p.expectCRLF()) != ACCEPT) {
session.setLastError("Expected CRLF after AUTHENTICATE SPACE auth_type");
return res;
}