supplicant.h
Go to the documentation of this file.
199 SupplicantTlsCompleteCallback tlsCompleteCallback; ///<TLS negotiation completion callback function
201 SupplicantPaeStateChangeCallback paeStateChangeCallback; ///<Supplicant PAE state change callback function
202 SupplicantBackendStateChangeCallback backendStateChangeCallback; ///<Supplicant backend state change callback function
203 EapPeerStateChangeCallback eapPeerStateChangeCallback; ///<EAP peer state change callback function
233 SupplicantTlsCompleteCallback tlsCompleteCallback; ///<TLS negotiation completion callback function
235 SupplicantPaeStateChangeCallback paeStateChangeCallback; ///<Supplicant PAE state change callback function
236 SupplicantBackendStateChangeCallback backendStateChangeCallback; ///<Supplicant backend state change callback function
237 EapPeerStateChangeCallback eapPeerStateChangeCallback; ///<EAP peer state change callback function
267 SupplicantPortStatus suppPortStatus; ///<Current authorization state of the supplicant PAE state machine (8.2.2.2 w)
272 bool_t eapRestart; ///<The higher layer is ready to establish an authentication session (8.2.11.1.1 a)
274 SupplicantPortMode sPortMode; ///<Used to switch between the auto and non-auto modes of operation (8.2.11.1.1 c)
error_t supplicantLogOff(SupplicantContext *context)
Perform user logoff.
Definition: supplicant.c:447
uint_t heldPeriod
Initialization value used for the heldWhile timer (8.2.11.1.2 a)
Definition: supplicant.h:278
uint_t maxStart
Maximum number of successive EAPOL-Start messages that will be sent (8.2.11.1.2 c)
Definition: supplicant.h:280
bool_t portValid
The value of this variable is set externally (8.2.2.2 s)
Definition: supplicant.h:264
error_t supplicantSetHeldPeriod(SupplicantContext *context, uint_t heldPeriod)
Set the value of the heldPeriod parameter.
Definition: supplicant.c:245
error_t supplicantSetAuthPeriod(SupplicantContext *context, uint_t authPeriod)
Set the value of the authPeriod parameter.
Definition: supplicant.c:270
SupplicantPortMode sPortMode
Used to switch between the auto and non-auto modes of operation (8.2.11.1.1 c)
Definition: supplicant.h:274
uint_t clientTimeout
Time to wait for a valid request before aborting (4.1.3)
Definition: supplicant.h:300
EapPeerStateChangeCallback eapPeerStateChangeCallback
EAP peer state change callback function.
Definition: supplicant.h:203
error_t supplicantStart(SupplicantContext *context)
Start 802.1X supplicant.
Definition: supplicant.c:481
uint_t heldWhile
Timer used by the supplicant PAE state machine (8.2.2.1 c)
Definition: supplicant.h:253
error_t supplicantInit(SupplicantContext *context, const SupplicantSettings *settings)
Initialize 802.1X supplicant context.
Definition: supplicant.c:87
bool_t eapolEap
EAPOL PDU carrying a packet Type of EAP-Packet is received (8.2.2.2 h)
Definition: supplicant.h:257
Supplicant backend state machine.
error_t supplicantSetPassword(SupplicantContext *context, const char_t *password)
Set password.
Definition: supplicant.c:214
uint_t startPeriod
Initialization value used for the startWhen timer (8.2.11.1.2 b)
Definition: supplicant.h:279
SupplicantPortStatus suppPortStatus
Current authorization state of the supplicant PAE state machine (8.2.2.2 w)
Definition: supplicant.h:267
bool_t eapNoResp
No EAP Response for the last EAP frame delivered to EAP (8.2.12.1.1 a)
Definition: supplicant.h:282
error_t supplicantSetStartPeriod(SupplicantContext *context, uint_t startPeriod)
Set the value of the startPeriod parameter.
Definition: supplicant.c:295
void(* EapPeerStateChangeCallback)(SupplicantContext *context, EapPeerState state)
EAP peer state change callback function.
Definition: supplicant.h:177
uint_t authPeriod
Initialization value used for the authWhile timer (8.2.12.1.2 a)
Definition: supplicant.h:286
bool_t eapResp
An EAP frame available for transmission to authenticator (8.2.12.1.1 c)
Definition: supplicant.h:284
SupplicantTlsCompleteCallback tlsCompleteCallback
TLS negotiation completion callback function.
Definition: supplicant.h:199
uint_t startCount
Number of EAPOL-Start messages that have been sent (8.2.11.1.1 d)
Definition: supplicant.h:275
void(* SupplicantBackendStateChangeCallback)(SupplicantContext *context, SupplicantBackendState state)
Supplicant backend state change callback function.
Definition: supplicant.h:169
EapPeerStateChangeCallback eapPeerStateChangeCallback
EAP peer state change callback function.
Definition: supplicant.h:237
General definitions for cryptographic algorithms.
bool_t eapReq
An EAP frame is available for processing by EAP (8.2.12.1.1 b)
Definition: supplicant.h:283
uint_t authWhile
Timer used by the supplicant backend state machine (8.2.2.1 a)
Definition: supplicant.h:252
error_t(* SupplicantTlsInitCallback)(SupplicantContext *context, TlsContext *tlsContext)
TLS negotiation initialization callback function.
Definition: supplicant.h:144
SupplicantBackendStateChangeCallback backendStateChangeCallback
Supplicant backend state change callback function.
Definition: supplicant.h:202
OsMutex mutex
Mutex preventing simultaneous access to 802.1X supplicant context.
Definition: supplicant.h:216
error_t supplicantSetPortControl(SupplicantContext *context, SupplicantPortMode portControl)
Set the value of the portControl variable.
Definition: supplicant.c:379
SupplicantTlsInitCallback tlsInitCallback
TLS negotiation initialization callback function.
Definition: supplicant.h:232
void(* SupplicantPaeStateChangeCallback)(SupplicantContext *context, SupplicantPaeState state)
Supplicant PAE state change callback function.
Definition: supplicant.h:161
SupplicantPaeStateChangeCallback paeStateChangeCallback
Supplicant PAE state change callback function.
Definition: supplicant.h:201
Supplicant PAE state machine.
void supplicantGetDefaultSettings(SupplicantSettings *settings)
Initialize settings with default values.
Definition: supplicant.c:50
error_t supplicantSetMaxStart(SupplicantContext *context, uint_t maxStart)
Set the value of the maxStart parameter.
Definition: supplicant.c:320
void(* SupplicantTlsCompleteCallback)(SupplicantContext *context, TlsContext *tlsContext, error_t error)
TLS negotiation completion callback function.
Definition: supplicant.h:151
void(* SupplicantTickCallback)(SupplicantContext *context)
Tick callback function.
Definition: supplicant.h:185
TLS (Transport Layer Security)
SupplicantPaeStateChangeCallback paeStateChangeCallback
Supplicant PAE state change callback function.
Definition: supplicant.h:235
error_t supplicantSetUsername(SupplicantContext *context, const char_t *username)
Set user name.
Definition: supplicant.c:188
bool_t eapRestart
The higher layer is ready to establish an authentication session (8.2.11.1.1 a)
Definition: supplicant.h:272
SupplicantTlsInitCallback tlsInitCallback
TLS negotiation initialization callback function.
Definition: supplicant.h:198
SupplicantBackendStateChangeCallback backendStateChangeCallback
Supplicant backend state change callback function.
Definition: supplicant.h:236
uint_t reqId
Identifier value associated with the current EAP request (4.3.2)
Definition: supplicant.h:312
error_t supplicantStop(SupplicantContext *context)
Stop 802.1X supplicant.
Definition: supplicant.c:580
EAP (Extensible Authentication Protocol)
void supplicantDeinit(SupplicantContext *context)
Release 802.1X supplicant context.
Definition: supplicant.c:713
uint_t startWhen
Timer used by the supplicant PAE state machine (8.2.2.1 f)
Definition: supplicant.h:254
bool_t initialize
Forces all EAPOL state machines to their initial state (8.2.2.2 k)
Definition: supplicant.h:259
error_t supplicantSetClientTimeout(SupplicantContext *context, uint_t clientTimeout)
Set the value of the clientTimeout parameter.
Definition: supplicant.c:353
SupplicantTlsCompleteCallback tlsCompleteCallback
TLS negotiation completion callback function.
Definition: supplicant.h:233
EAP peer state machine.
