Common PAP and MSCHAPv2 code merged in intermediate base class method_noneap

This commit is contained in:
2016-09-02 14:24:23 +02:00
parent a8070e9bba
commit 7a3d4e0947
6 changed files with 117 additions and 80 deletions

View File

@@ -37,7 +37,7 @@ namespace eap
namespace eap
{
class method_pap : public method
class method_pap : public method_noneap
{
public:
///
@@ -89,15 +89,6 @@ namespace eap
_In_ DWORD dwReceivedPacketSize,
_Inout_ EapPeerMethodOutput *pEapOutput);
///
/// Obtains a response packet from the EAP method.
///
/// \sa [EapPeerGetResponsePacket function](https://msdn.microsoft.com/en-us/library/windows/desktop/aa363610.aspx)
///
virtual void get_response_packet(
_Inout_bytecap_(*dwSendPacketSize) void *pSendPacket,
_Inout_ DWORD *pdwSendPacketSize);
///
/// Obtains the result of an authentication session from the EAP method.
///
@@ -112,8 +103,6 @@ namespace eap
protected:
credentials_pap &m_cred; ///< EAP-TLS user credentials
sanitizing_blob m_packet_res; ///< Response packet
enum {
phase_unknown = -1, ///< Unknown phase
phase_init = 0, ///< Handshake initialize