EapPeerGetResponsePacket (Compact 2013)
3/26/2014
Obtains a response packet from the EAP method.
Syntax
DWORD WINAPI EapPeerGetResponsePacket(
__in EAP_SESSION_HANDLE sessionHandle,
__inout DWORD* pcbSendPacket,
__out EapPacket* pSendPacket,
__out EAP_ERROR** ppEapError
);
Parameters
- sessionHandle
A pointer to an EAP_SESSION_HANDLE structure that contains the unique handle for this EAP authentication session on the EAPHost server. This handle is returned in the pSessionHandle parameter in a previous call to EapPeerBeginSession.
- pcbSendPacket
A pointer to a value that contains the size in bytes of the buffer allocated for the response packet. On return, this parameter receives a pointer to the actual size in bytes of pSendPacket.
- pSendPacket
A pointer to an EapPacket structure that contains the response packet.
- ppEapError
A pointer to the address of an EAP_ERROR structure that contains any errors raised during the execution of this function call. After using the error data, this memory must be freed by calling EapPeerFreeErrorMemory.
Remarks
EapPeerGetResponsePacket is called by EAPHost on the EAP method to obtain a response packet. EAPHost only calls this API when the action code from a prior call indicates that a packet is available.
This call is performed by a peer-based EAPHost by using a function pointer to this API. This API must be implemented on the EAP method loaded by EAPHost, and must strictly comply with the syntax and parameter types that are specified in the documentation.