![]() |
TrustCore SDK NanoSec API reference
version 7.0
|
Configuration settings and callback function pointers for EAP-PEAP sessions. More...
Data Fields | |
sbyte4 | connectionInstance |
TLS connection's session ID. More... | |
ubyte4 | instanceId |
Phase 1 instance ID. More... | |
eapSessionType | sessionType |
Type of session: EAP_SESSION_TYPE_PEER or EAP_SESSION_TYPE_AUTHENTICATOR . More... | |
ubyte * | tls_con |
EAP_TLS connection control block. More... | |
MSTATUS(* | ul2ndStageReceive )(ubyte *appSessionCB, eapMethodType type, eapCode code, ubyte id, ubyte *eap_data, ubyte4 eap_data_len, ubyte *opaque_data) |
Process received EAP messages. More... | |
MSTATUS(* | ulAuthResultTransmit )(ubyte *appSessionCB, eapAuthStatus authStatus) |
Send the inner method authentication status. More... | |
MSTATUS(* | ulTransmit )(ubyte *appSessionCB, ubyte *eapPkt, ubyte4 eapPktLen, intBoolean encrypted) |
Send a plain text inner method payload to the application (for further encryption and transmittal). More... | |
ubyte | UserName [EAP_MAX_USER_LEN] |
Inner method user name passed by the peer. More... | |
ubyte2 | UserNameLen |
Number of bytes in the inner method user name (UserName ). More... | |
ubyte | version |
PEAP version. More... | |
This structure is used for EAP-PEAP session configuration. Each included callback function should be customized for your application and then registered by assigning it to the appropriate structure function pointer(s).
To use this structure, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEAP__
Additionally, at least one of the following flags must be defined in moptions.h:
__ENABLE_MOCANA_EAP_AUTH__
__ENABLE_MOCANA_EAP_PEER__
sbyte4 EAP_PEAP_params::connectionInstance |
TLS connection's session ID: the 4-byte SSL connection ID returned from SSL session creation (not the session ID generated after TLS negotiation).
ubyte4 EAP_PEAP_params::instanceId |
Phase 1 instance ID; for multiple instance (VLAN/VR) support.
eapSessionType EAP_PEAP_params::sessionType |
Type of session. The following eapSessionType
enumerated values (defined in eap_proto.h) are supported:
EAP_SESSION_TYPE_PEER
EAP_SESSION_TYPE_AUTHENTICATOR
(No other eapSessionType
enumerated values are valid.)
ubyte* EAP_PEAP_params::tls_con |
EAP_TLS connection control block — the connection handle to an established outer (second stage) TLS connection. This handle is used in function calls to encrypt and decrpyt the payload and to generate session keys.
ubyte EAP_PEAP_params::UserName[EAP_MAX_USER_LEN] |
Inner method user name passed by the peer.
ubyte2 EAP_PEAP_params::UserNameLen |
Number of bytes in the inner method user name (UserName
).
ubyte EAP_PEAP_params::version |
PEAP version.