/usr/share/mingw-w64/include/raseapif.h is in mingw-w64-common 4.0.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 | /**
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
*/
#ifndef _RASEAPIF_
#define _RASEAPIF_
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
#ifdef __cplusplus
extern "C" {
#endif
#define RAS_EAP_REGISTRY_LOCATION TEXT("System\\CurrentControlSet\\Services\\Rasman\\PPP\\EAP")
#define RAS_EAP_VALUENAME_PATH TEXT("Path")
#define RAS_EAP_VALUENAME_CONFIGUI TEXT("ConfigUIPath")
#define RAS_EAP_VALUENAME_INTERACTIVEUI TEXT("InteractiveUIPath")
#define RAS_EAP_VALUENAME_IDENTITY TEXT("IdentityPath")
#define RAS_EAP_VALUENAME_FRIENDLY_NAME TEXT("FriendlyName")
#define RAS_EAP_VALUENAME_DEFAULT_DATA TEXT("ConfigData")
#define RAS_EAP_VALUENAME_REQUIRE_CONFIGUI TEXT("RequireConfigUI")
#define RAS_EAP_VALUENAME_ENCRYPTION TEXT("MPPEEncryptionSupported")
#define RAS_EAP_VALUENAME_INVOKE_NAMEDLG TEXT("InvokeUsernameDialog")
#define RAS_EAP_VALUENAME_INVOKE_PWDDLG TEXT("InvokePasswordDialog")
#define RAS_EAP_VALUENAME_CONFIG_CLSID TEXT("ConfigCLSID")
#define RAS_EAP_VALUENAME_STANDALONE_SUPPORTED TEXT("StandaloneSupported")
#define RAS_EAP_VALUENAME_ROLES_SUPPORTED TEXT("RolesSupported")
#define RAS_EAP_VALUENAME_PER_POLICY_CONFIG TEXT("PerPolicyConfig")
#define RAS_EAP_VALUENAME_ISTUNNEL_METHOD TEXT("IsTunnelMethod")
#define RAS_EAP_VALUENAME_FILTER_INNERMETHODS TEXT("FilterInnerMethods")
#define RAS_EAP_ROLE_AUTHENTICATOR 0x00000001
#define RAS_EAP_ROLE_AUTHENTICATEE 0x00000002
#define RAS_EAP_ROLE_EXCLUDE_IN_EAP 0x00000004
#define RAS_EAP_ROLE_EXCLUDE_IN_PEAP 0x00000008
#define RAS_EAP_ROLE_EXCLUDE_IN_VPN 0x00000010
typedef enum _RAS_AUTH_ATTRIBUTE_TYPE_ {
raatMinimum = 0,
raatUserName,
raatUserPassword,
raatMD5CHAPPassword,
raatNASIPAddress,
raatNASPort,
raatServiceType,
raatFramedProtocol,
raatFramedIPAddress,
raatFramedIPNetmask,
raatFramedRouting = 10,
raatFilterId,
raatFramedMTU,
raatFramedCompression,
raatLoginIPHost,
raatLoginService,
raatLoginTCPPort,
raatUnassigned17,
raatReplyMessage,
raatCallbackNumber,
raatCallbackId =20,
raatUnassigned21,
raatFramedRoute,
raatFramedIPXNetwork,
raatState,
raatClass,
raatVendorSpecific,
raatSessionTimeout,
raatIdleTimeout,
raatTerminationAction,
raatCalledStationId = 30,
raatCallingStationId,
raatNASIdentifier,
raatProxyState,
raatLoginLATService,
raatLoginLATNode,
raatLoginLATGroup,
raatFramedAppleTalkLink,
raatFramedAppleTalkNetwork,
raatFramedAppleTalkZone,
raatAcctStatusType = 40,
raatAcctDelayTime,
raatAcctInputOctets,
raatAcctOutputOctets,
raatAcctSessionId,
raatAcctAuthentic,
raatAcctSessionTime,
raatAcctInputPackets,
raatAcctOutputPackets,
raatAcctTerminateCause,
raatAcctMultiSessionId = 50,
raatAcctLinkCount,
raatAcctEventTimeStamp = 55,
raatMD5CHAPChallenge = 60,
raatNASPortType,
raatPortLimit,
raatLoginLATPort,
raatTunnelType,
raatTunnelMediumType,
raatTunnelClientEndpoint,
raatTunnelServerEndpoint,
raatARAPPassword = 70,
raatARAPFeatures,
raatARAPZoneAccess,
raatARAPSecurity,
raatARAPSecurityData,
raatPasswordRetry,
raatPrompt,
raatConnectInfo,
raatConfigurationToken,
raatEAPMessage,
raatSignature = 80,
raatARAPChallengeResponse = 84,
raatAcctInterimInterval = 85,
raatNASIPv6Address = 95,
raatFramedInterfaceId,
raatFramedIPv6Prefix,
raatLoginIPv6Host,
raatFramedIPv6Route,
raatFramedIPv6Pool,
raatARAPGuestLogon = 8096,
raatCertificateOID,
raatEAPConfiguration,
raatPEAPEmbeddedEAPTypeId = 8099,
raatInnerEAPTypeId = 8099,
raatPEAPFastRoamedSession = 8100,
raatFastRoamedSession = 8100,
raatEAPTLV = 8102,
raatCredentialsChanged,
raatPeerId = 9000,
raatServerId,
raatMethodId,
raatEMSK,
raatSessionId,
raatReserved = 0xffffffff
} RAS_AUTH_ATTRIBUTE_TYPE;
#define raatARAPChallenge 33
#define raatARAPOldPassword 19
#define raatARAPNewPassword 20
#define raatARAPPasswordChangeReason 21
typedef struct _RAS_AUTH_ATTRIBUTE {
RAS_AUTH_ATTRIBUTE_TYPE raaType;
DWORD dwLength;
PVOID Value;
} RAS_AUTH_ATTRIBUTE,*PRAS_AUTH_ATTRIBUTE;
#define EAPCODE_Request 1
#define EAPCODE_Response 2
#define EAPCODE_Success 3
#define EAPCODE_Failure 4
#define MAXEAPCODE 4
#define RAS_EAP_FLAG_ROUTER 0x00000001
#define RAS_EAP_FLAG_NON_INTERACTIVE 0x00000002
#define RAS_EAP_FLAG_LOGON 0x00000004
#define RAS_EAP_FLAG_PREVIEW 0x00000008
#define RAS_EAP_FLAG_FIRST_LINK 0x00000010
#define RAS_EAP_FLAG_MACHINE_AUTH 0x00000020
#define RAS_EAP_FLAG_GUEST_ACCESS 0x00000040
#define RAS_EAP_FLAG_8021X_AUTH 0x00000080
#define RAS_EAP_FLAG_HOSTED_IN_PEAP 0x00000100
#define RAS_EAP_FLAG_RESUME_FROM_HIBERNATE 0x00000200
#define RAS_EAP_FLAG_PEAP_UPFRONT 0x00000400
#define RAS_EAP_FLAG_ALTERNATIVE_USER_DB 0x00000800
#define RAS_EAP_FLAG_PEAP_FORCE_FULL_AUTH 0x00001000
#define RAS_EAP_FLAG_PRE_LOGON 0x00020000
#define RAS_EAP_FLAG_CONFG_READONLY 0x00080000
#define RAS_EAP_FLAG_RESERVED 0x00100000
#define RAS_EAP_FLAG_SAVE_CREDMAN 0x00200000
typedef struct _PPP_EAP_PACKET {
BYTE Code;
BYTE Id;
BYTE Length[2];
BYTE Data[1];
} PPP_EAP_PACKET,*PPPP_EAP_PACKET;
#define PPP_EAP_PACKET_HDR_LEN (sizeof(PPP_EAP_PACKET) - 1)
typedef struct _PPP_EAP_INPUT {
DWORD dwSizeInBytes;
DWORD fFlags;
WINBOOL fAuthenticator;
WCHAR *pwszIdentity;
WCHAR *pwszPassword;
BYTE bInitialId;
RAS_AUTH_ATTRIBUTE *pUserAttributes;
WINBOOL fAuthenticationComplete;
DWORD dwAuthResultCode;
HANDLE hTokenImpersonateUser;
WINBOOL fSuccessPacketReceived;
WINBOOL fDataReceivedFromInteractiveUI;
PBYTE pDataFromInteractiveUI;
DWORD dwSizeOfDataFromInteractiveUI;
PBYTE pConnectionData;
DWORD dwSizeOfConnectionData;
PBYTE pUserData;
DWORD dwSizeOfUserData;
HANDLE hReserved;
} PPP_EAP_INPUT,*PPPP_EAP_INPUT;
typedef enum _PPP_EAP_ACTION {
EAPACTION_NoAction,
EAPACTION_Authenticate,
EAPACTION_Done,
EAPACTION_SendAndDone,
EAPACTION_Send,
EAPACTION_SendWithTimeout,
EAPACTION_SendWithTimeoutInteractive,
EAPACTION_IndicateTLV,
EAPACTION_IndicateIdentity
} PPP_EAP_ACTION;
typedef struct _PPP_EAP_OUTPUT {
DWORD dwSizeInBytes;
PPP_EAP_ACTION Action;
DWORD dwAuthResultCode;
RAS_AUTH_ATTRIBUTE *pUserAttributes;
WINBOOL fInvokeInteractiveUI;
PBYTE pUIContextData;
DWORD dwSizeOfUIContextData;
WINBOOL fSaveConnectionData;
PBYTE pConnectionData;
DWORD dwSizeOfConnectionData;
WINBOOL fSaveUserData;
PBYTE pUserData;
DWORD dwSizeOfUserData;
} PPP_EAP_OUTPUT,*PPPP_EAP_OUTPUT;
typedef struct _PPP_EAP_INFO {
DWORD dwSizeInBytes;
DWORD dwEapTypeId;
DWORD (WINAPI *RasEapInitialize)(WINBOOL fInitialize);
DWORD (WINAPI *RasEapBegin)(VOID **ppWorkBuffer, PPP_EAP_INPUT *pPppEapInput);
DWORD (WINAPI *RasEapEnd)(VOID *pWorkBuffer);
DWORD (WINAPI *RasEapMakeMessage)(VOID *pWorkBuf, PPP_EAP_PACKET *pReceivePacket, PPP_EAP_PACKET *pSendPacket, DWORD cbSendPacket, PPP_EAP_OUTPUT *pEapOutput, PPP_EAP_INPUT *pEapInput);
} PPP_EAP_INFO,*PPPP_EAP_INFO;
typedef struct _LEGACY_IDENTITY_UI_PARAMS {
DWORD eapType;
DWORD dwFlags;
DWORD dwSizeofConnectionData;
BYTE *pConnectionData;
DWORD dwSizeofUserData;
BYTE *pUserData;
DWORD dwSizeofUserDataOut;
BYTE *pUserDataOut;
LPWSTR pwszIdentity;
DWORD dwError;
} LEGACY_IDENTITY_UI_PARAMS;
typedef struct _LEGACY_INTERACTIVE_UI_PARAMS {
DWORD eapType;
DWORD dwSizeofContextData;
BYTE *pContextData;
DWORD dwSizeofInteractiveUIData;
BYTE *pInteractiveUIData;
DWORD dwError;
} LEGACY_INTERACTIVE_UI_PARAMS;
DWORD WINAPI RasEapGetInfo(DWORD dwEapTypeId, PPP_EAP_INFO *pEapInfo);
DWORD WINAPI RasEapFreeMemory(BYTE *pMemory);
DWORD WINAPI RasEapInvokeInteractiveUI(DWORD dwEapTypeId, HWND hwndParent, BYTE *pUIContextData, DWORD dwSizeOfUIContextData, BYTE **ppDataFromInteractiveUI, DWORD *pdwSizeOfDataFromInteractiveUI);
DWORD WINAPI RasEapInvokeConfigUI(DWORD dwEapTypeId, HWND hwndParent, DWORD dwFlags, BYTE *pConnectionDataIn, DWORD dwSizeOfConnectionDataIn, BYTE **ppConnectionDataOut, DWORD *pdwSizeOfConnectionDataOut);
DWORD WINAPI RasEapGetIdentity(DWORD dwEapTypeId, HWND hwndParent, DWORD dwFlags, const WCHAR *pwszPhonebook, const WCHAR *pwszEntry, BYTE *pConnectionDataIn, DWORD dwSizeOfConnectionDataIn, BYTE *pUserDataIn, DWORD dwSizeOfUserDataIn, BYTE **ppUserDataOut, DWORD *pdwSizeOfUserDataOut, WCHAR **ppwszIdentityOut);
#ifdef __cplusplus
}
#endif
#endif
#endif
|