1 /* 2 * Copyright 2003-2004, Waldemar Kornewald <wkornew@gmx.net> 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef __K_PPP_AUTHENTICATION_HANDLER__H 7 #define __K_PPP_AUTHENTICATION_HANDLER__H 8 9 #include <KPPPOptionHandler.h> 10 11 12 class _KPPPAuthenticationHandler : public KPPPOptionHandler { 13 public: 14 _KPPPAuthenticationHandler(KPPPInterface& interface); 15 16 KPPPProtocol *NextAuthenticator(const KPPPProtocol *start, 17 ppp_side side) const; 18 19 virtual status_t AddToRequest(KPPPConfigurePacket& request); 20 virtual status_t ParseNak(const KPPPConfigurePacket& nak); 21 virtual status_t ParseReject(const KPPPConfigurePacket& reject); 22 virtual status_t ParseAck(const KPPPConfigurePacket& ack); 23 24 virtual status_t ParseRequest(const KPPPConfigurePacket& request, 25 int32 index, KPPPConfigurePacket& nak, KPPPConfigurePacket& reject); 26 virtual status_t SendingAck(const KPPPConfigurePacket& ack); 27 28 virtual void Reset(); 29 30 private: 31 KPPPProtocol *fLocalAuthenticator, *fPeerAuthenticator, 32 *fSuggestedLocalAuthenticator, *fSuggestedPeerAuthenticator; 33 bool fPeerAuthenticatorRejected; 34 }; 35 36 37 #endif 38