TrustCore SDK NanoSec API reference  version 7.0
EAP_PEAP_params Struct Reference

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...
 

Detailed Description

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).

Since
1.41
Version
1.41 and later

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__

Field Documentation

◆ connectionInstance

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).

◆ instanceId

ubyte4 EAP_PEAP_params::instanceId

Phase 1 instance ID; for multiple instance (VLAN/VR) support.

◆ sessionType

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.)

◆ tls_con

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.

◆ UserName

ubyte EAP_PEAP_params::UserName[EAP_MAX_USER_LEN]

Inner method user name passed by the peer.

◆ UserNameLen

ubyte2 EAP_PEAP_params::UserNameLen

Number of bytes in the inner method user name (UserName).

◆ version

ubyte EAP_PEAP_params::version

PEAP version.


The documentation for this struct was generated from the following file: