master
 1/**
 2 * This file has no copyright assigned and is placed in the Public Domain.
 3 * This file is part of the mingw-w64 runtime package.
 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 5 */
 6#ifndef _INC_EAPAUTHENTICATORACTIONDEFINE
 7#define _INC_EAPAUTHENTICATORACTIONDEFINE
 8#if (_WIN32_WINNT >= 0x0600)
 9#include <eaptypes.h>
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef enum _EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION {
15  EAP_METHOD_AUTHENTICATOR_RESPONSE_DISCARD           = 0,
16  EAP_METHOD_AUTHENTICATOR_RESPONSE_SEND              = 1,
17  EAP_METHOD_AUTHENTICATOR_RESPONSE_RESULT            = 2,
18  EAP_METHOD_AUTHENTICATOR_RESPONSE_RESPOND           = 3,
19  EAP_METHOD_AUTHENTICATOR_RESPONSE_AUTHENTICATE      = 4,
20  EAP_METHOD_AUTHENTICATOR_RESPONSE_HANDLE_IDENTITY   = 5 
21} EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION;
22
23typedef enum _EapPeerMethodResponseAction {
24  EapPeerMethodResponseActionDiscard    = 0,
25  EapPeerMethodResponseActionSend       = 1,
26  EapPeerMethodResponseActionResult     = 2,
27  EapPeerMethodResponseActionInvokeUI   = 3,
28  EapPeerMethodResponseActionRespond    = 4,
29  EapPeerMethodResponseActionNone       = 5 
30} EapPeerMethodResponseAction;
31
32typedef enum  {
33  EapPeerMethodResultUnknown   = 1,
34  EapPeerMethodResultSuccess   = 2,
35  EapPeerMethodResultFailure   = 3 
36} EapPeerMethodResultReason;
37
38typedef struct _EAP_METHOD_AUTHENTICATOR_RESULT {
39  BOOL           fIsSuccess;
40  DWORD          dwFailureReason;
41  EAP_ATTRIBUTES *pAuthAttribs;
42} EAP_METHOD_AUTHENTICATOR_RESULT;
43
44typedef struct tagEapPeerMethodOutput {
45  EapPeerMethodResponseAction action;
46  WINBOOL                     fAllowNotifications;
47} EapPeerMethodOutput;
48
49#ifdef __cplusplus
50}
51#endif
52#endif /*(_WIN32_WINNT >= 0x0600)*/
53#endif /*_INC_EAPAUTHENTICATORACTIONDEFINE*/