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
232 SupplicantTlsCompleteCallback tlsCompleteCallback; ///<TLS negotiation completion callback function
234 SupplicantPaeStateChangeCallback paeStateChangeCallback; ///<Supplicant PAE state change callback function
235 SupplicantBackendStateChangeCallback backendStateChangeCallback; ///<Supplicant backend state change callback function
236 EapPeerStateChangeCallback eapPeerStateChangeCallback; ///<EAP peer state change callback function
266 SupplicantPortStatus suppPortStatus; ///<Current authorization state of the supplicant PAE state machine (8.2.2.2 w)
271 bool_t eapRestart; ///<The higher layer is ready to establish an authentication session (8.2.11.1.1 a)
273 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:439
uint_t heldPeriod
Initialization value used for the heldWhile timer (8.2.11.1.2 a)
Definition: supplicant.h:277
uint_t maxStart
Maximum number of successive EAPOL-Start messages that will be sent (8.2.11.1.2 c)
Definition: supplicant.h:279
bool_t portValid
The value of this variable is set externally (8.2.2.2 s)
Definition: supplicant.h:263
error_t supplicantSetHeldPeriod(SupplicantContext *context, uint_t heldPeriod)
Set the value of the heldPeriod parameter.
Definition: supplicant.c:237
error_t supplicantSetAuthPeriod(SupplicantContext *context, uint_t authPeriod)
Set the value of the authPeriod parameter.
Definition: supplicant.c:262
SupplicantPortMode sPortMode
Used to switch between the auto and non-auto modes of operation (8.2.11.1.1 c)
Definition: supplicant.h:273
uint_t clientTimeout
Time to wait for a valid request before aborting (4.1.3)
Definition: supplicant.h:299
EapPeerStateChangeCallback eapPeerStateChangeCallback
EAP peer state change callback function.
Definition: supplicant.h:203
error_t supplicantStart(SupplicantContext *context)
Start 802.1X supplicant.
Definition: supplicant.c:473
uint_t heldWhile
Timer used by the supplicant PAE state machine (8.2.2.1 c)
Definition: supplicant.h:252
error_t supplicantInit(SupplicantContext *context, const SupplicantSettings *settings)
Initialize 802.1X supplicant context.
Definition: supplicant.c:86
bool_t eapolEap
EAPOL PDU carrying a packet Type of EAP-Packet is received (8.2.2.2 h)
Definition: supplicant.h:256
Supplicant backend state machine.
error_t supplicantSetPassword(SupplicantContext *context, const char_t *password)
Set password.
Definition: supplicant.c:206
uint_t startPeriod
Initialization value used for the startWhen timer (8.2.11.1.2 b)
Definition: supplicant.h:278
SupplicantPortStatus suppPortStatus
Current authorization state of the supplicant PAE state machine (8.2.2.2 w)
Definition: supplicant.h:266
bool_t eapNoResp
No EAP Response for the last EAP frame delivered to EAP (8.2.12.1.1 a)
Definition: supplicant.h:281
error_t supplicantSetStartPeriod(SupplicantContext *context, uint_t startPeriod)
Set the value of the startPeriod parameter.
Definition: supplicant.c:287
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:285
bool_t eapResp
An EAP frame available for transmission to authenticator (8.2.12.1.1 c)
Definition: supplicant.h:283
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:274
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:236
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:282
uint_t authWhile
Timer used by the supplicant backend state machine (8.2.2.1 a)
Definition: supplicant.h:251
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:371
SupplicantTlsInitCallback tlsInitCallback
TLS negotiation initialization callback function.
Definition: supplicant.h:231
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:49
error_t supplicantSetMaxStart(SupplicantContext *context, uint_t maxStart)
Set the value of the maxStart parameter.
Definition: supplicant.c:312
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:234
error_t supplicantSetUsername(SupplicantContext *context, const char_t *username)
Set user name.
Definition: supplicant.c:180
bool_t eapRestart
The higher layer is ready to establish an authentication session (8.2.11.1.1 a)
Definition: supplicant.h:271
SupplicantTlsInitCallback tlsInitCallback
TLS negotiation initialization callback function.
Definition: supplicant.h:198
SupplicantBackendStateChangeCallback backendStateChangeCallback
Supplicant backend state change callback function.
Definition: supplicant.h:235
uint_t reqId
Identifier value associated with the current EAP request (4.3.2)
Definition: supplicant.h:311
error_t supplicantStop(SupplicantContext *context)
Stop 802.1X supplicant.
Definition: supplicant.c:571
EAP (Extensible Authentication Protocol)
void supplicantDeinit(SupplicantContext *context)
Release 802.1X supplicant context.
Definition: supplicant.c:699
uint_t startWhen
Timer used by the supplicant PAE state machine (8.2.2.1 f)
Definition: supplicant.h:253
bool_t initialize
Forces all EAPOL state machines to their initial state (8.2.2.2 k)
Definition: supplicant.h:258
error_t supplicantSetClientTimeout(SupplicantContext *context, uint_t clientTimeout)
Set the value of the clientTimeout parameter.
Definition: supplicant.c:345
SupplicantTlsCompleteCallback tlsCompleteCallback
TLS negotiation completion callback function.
Definition: supplicant.h:232
EAP peer state machine.