From bc946633e0bcae5fe63528ad743bcc67de7e347d Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" <jannis@fehcom.de> Date: Wed, 11 Oct 2023 21:49:37 +0200 Subject: created a Parser class --- src/operator-starttls.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/operator-starttls.cc') diff --git a/src/operator-starttls.cc b/src/operator-starttls.cc index 7e8b1f4..fefeb36 100644 --- a/src/operator-starttls.cc +++ b/src/operator-starttls.cc @@ -85,14 +85,14 @@ Operator::ProcessResult StarttlsOperator::process(Depot &depot, Request &command return ProcessResult::NOTHING; } -Parser::ParseResult StarttlsOperator::parse(Request &c_in) +Parser::ParseResult StarttlsOperator::parse(Request &c_in, Parser &p) { Session &session = Session::getInstance(); if (c_in.getUidMode()) return Parser::ParseResult::REJECT; Parser::ParseResult res; - if ((res = expectCRLF()) != Parser::ParseResult::ACCEPT) { + if ((res = p.expectCRLF()) != Parser::ParseResult::ACCEPT) { session.setLastError("Expected CRLF"); return res; } -- cgit v1.2.3