Share via


EapHostPeerGetSendPacket (Compact 2013)

3/26/2014

Is called by the supplicant when the supplicant has to obtain a packet from EAPHost to send to the authenticator.EapHostPeerGetSendPacket is called when the supplicant receives the EapHostPeerResponseSend enumerator from the server.

Syntax

DWORD WINAPI EapHostPeerGetSendPacket(
  __in   EAP_SESSIONID sessionHandle,
  __out  DWORD* pcbSendPacket,
  __out  BYTE** ppSendPacket,
  __out  EAP_ERROR** ppEapError
);

Parameters

  • sessionHandle
    A pointer to an EAP_SESSIONID structure that contains the unique handle for this EAP authentication session on the EAPHost server. This handle is returned in the pSessionId parameter in a previous call to EapHostPeerBeginSession.
  • pcbSendPacket
    A pointer to a DWORD that specifies the maximum size, in bytes, of the buffer pointed to by ppSendPacket. EapHostPeerGetSendPacket on return is the size of the actual data pointed to by ppSendPacket.
  • ppSendPacket
    A pointer to a pointer to a buffer that contains the packet data returned by the EAP module. The buffer is allocated by EAPHost.
  • ppEapError
    A pointer to the address of an EAP_ERROR structure. The address should be set to NULL before the code calls this function. If error data is available, a pointer to the address of an EAP_ERROR structure that contains any errors raised during the execution of this function call is received. After using the error data, free this memory by calling EapHostPeerFreeEapError.

See Also

Reference

EAPHost Supplicant Run-time Functions