EapPeerCredentialsXml2Blob function

Converts XML into the configuration BLOB. The XML based credentials can come from group policy or from a system administrator.

Syntax


DWORD WINAPI EapPeerCredentialsXml2Blob(
  _In_        DWORD            dwFlags,
  _In_        EAP_METHOD_TYPE  eapMethodType,
  _In_        IXMLDOMDocument2 *pCredentialsDoc,
  _In_  const BYTE             *pConfigIn,
  _In_        DWORD            dwSizeOfConfigIn,
  _Out_       BYTE             **ppCredentialsOut,
  _Out_       DWORD            *pdwSizeofCredentialsOut,
  _Out_       EAP_ERROR        **ppEapError
);

Parameters

dwFlags [in]

Not used. Set to 0.

eapMethodType [in]

An EAP_METHOD_TYPE structure that contains vendor and author information about the EAP method used for authenticating the connection.

pCredentialsDoc [in]

A pointer to an XML node that contains credentials, which are either user or machine credentials depending on the configuration passed in. The XML document is created with the EapHostUserCredentials Schema.

pConfigIn [in]

A pointer to a byte buffer that contains a configuration BLOB for which the credentials are configured. The buffer is of size dwSizeofConfigIn.

dwSizeOfConfigIn [in]

The size, in bytes, of the buffer pointed to by pConfigIn.

ppCredentialsOut [out]

A pointer to the byte buffer that receives the credentials BLOB buffer generated by the input XML. The buffer can is of size pdwSizeofCredentialsOut. After consuming the data, this memory must be freed by calling EapPeerFreeMemory.

pdwSizeofCredentialsOut [out]

The size, in bytes, of the buffer pointed to by ppCredentialsOut.

ppEapError [out]

A pointer to the address of an EAP_ERROR structure that contains any errors raised by EAPHost during the execution of this function call. After consuming the error data, this memory must be freed by calling EapPeerFreeErrorMemory.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Eapmethodpeerapis.h

See also

EAPHost Peer Method Configuration Functions

 

 

Community Additions

ADD
Show: