#ifndef ____SMTP_AUTH_h__ # define ____SMTP_AUTH_h__ # include "SMTPCommand.h" namespace mail { class __SMTP_AUTH : public SMTPCommand { public: int processCommand(coreutils::ZString &request, SMTPSession &session, SMTPServer &server) override; bool authLogin(coreutils::ZString &userName, coreutils::ZString &password, SMTPServer &server); private: void finish(SMTPSession &session, const char *reply); void verify(SMTPSession &session, SMTPServer &server); void plain(const std::string &response, SMTPSession &session, SMTPServer &server); }; } #endif