EapPeerConfigXml2Blob function (eapmethodpeerapis.h)

Converts XML into the configuration BLOB.

Syntax

DWORD EapPeerConfigXml2Blob(
  [in]  DWORD            dwFlags,
  [in]  EAP_METHOD_TYPE  eapMethodType,
  [in]  IXMLDOMDocument2 *pConfigDoc,
  [out] BYTE             **ppConfigOut,
  [out] DWORD            *pdwSizeOfConfigOut,
  [out] EAP_ERROR        **ppEapError
);

Parameters

[in] dwFlags

A combination of EAP flags that describe the EAP authentication session behavior. May be set to 0.

[in] eapMethodType

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

[in] pConfigDoc

Sends a pointer to the XML configuration to be converted.

[out] ppConfigOut

A pointer to a pointer to a byte buffer that contains the configuration data converted from XML. The configuration data is created inside the EapHostConfig Schema element. The buffer is of size pdwSizeOfConfigOut. After consuming the data, this memory must be freed by calling EapPeerFreeMemory.

[out] pdwSizeOfConfigOut

A pointer to the size, in bytes, of the configuration BLOB in ppConfigBlob.

[out] ppEapError

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

Return value

None

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header eapmethodpeerapis.h

See also

EAPHost Peer Method Configuration Functions