/* * Copyright 2003-2004, Waldemar Kornewald * Distributed under the terms of the MIT License. */ #ifndef __K_PPP_AUTHENTICATION_HANDLER__H #define __K_PPP_AUTHENTICATION_HANDLER__H #include class _KPPPAuthenticationHandler : public KPPPOptionHandler { public: _KPPPAuthenticationHandler(KPPPInterface& interface); KPPPProtocol *NextAuthenticator(const KPPPProtocol *start, ppp_side side) const; virtual status_t AddToRequest(KPPPConfigurePacket& request); virtual status_t ParseNak(const KPPPConfigurePacket& nak); virtual status_t ParseReject(const KPPPConfigurePacket& reject); virtual status_t ParseAck(const KPPPConfigurePacket& ack); virtual status_t ParseRequest(const KPPPConfigurePacket& request, int32 index, KPPPConfigurePacket& nak, KPPPConfigurePacket& reject); virtual status_t SendingAck(const KPPPConfigurePacket& ack); virtual void Reset(); private: KPPPProtocol *fLocalAuthenticator, *fPeerAuthenticator, *fSuggestedLocalAuthenticator, *fSuggestedPeerAuthenticator; bool fPeerAuthenticatorRejected; }; #endif