Share via


EapPeerSetCredentials (Compact 7)

3/12/2014

Supplies new or updated authentication credentials to the EAP method.

Syntax

DWORD WINAPI EapPeerSetCredentials(
  __in   EAP_SESSION_HANDLE sessionHandle,
  __in   LPWSTR pwszIdentity,
  __in   LPWSTR pwszPassword,
  __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.
  • pwszIdentity
    A pointer that specifies the user identity for which to set the credentials. This user identity string is obtained by calling the EapPeerGetIdentity function.
  • pwszPassword
    A pointer that contains the clear text password for the user identity.
  • ppEapError
    A pointer to a pointer to 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

If the registry key InvokeUserNameDlg is set, EapPeerSetCredentials should be exported. If the registry key InvokeUserNameDlg is not set, EapPeerSetCredentials should export the EapPeerGetIdentity and EapPeerInvokeIdentityUI functions.

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.

See Also

Reference

EAPHost Peer Method Run-Time Functions
EapPeerGetIdentity
EapPeerInvokeIdentityUI
EapPeerSetCredentials