TrustCore SDK NanoSec API reference  version 7.0
eap_tls.h File Reference

EAP TLS helper functions. More...

Go to the source code of this file.

Functions

MOC_EXTERN MSTATUS EAP_TLScloseConnection (ubyte *appSessionHdl, ubyte *tls_connection)
 Close an EAP-TLS connection. More...
 
MOC_EXTERN MSTATUS EAP_TLSCreateSession (ubyte *appSessionHdl, ubyte **tls_connection, eap_tls_connection connectionType, ubyte4 *sessionIdLen, ubyte *sessionId, ubyte *masterSecret, ubyte *dnsName, ubyte methodType, ubyte peerVersion, ubyte authVersion, struct certStore *pCertStore)
 Create an EAP-TLS session. More...
 
MOC_EXTERN MSTATUS EAP_TLSformAlert (ubyte *tls_connection, sbyte4 alertClass, sbyte4 alertId, ubyte4 len, ubyte **eapRespData, ubyte4 *eapRespLen)
 Build a TLS Alert Messsage to be sent over EAP. More...
 
MOC_EXTERN MSTATUS EAP_TLSgetClientSessionInfo (ubyte *appSessionHdl, ubyte *tls_connection, ubyte4 *sessionIdLen, ubyte *sessionId, ubyte *masterSecret)
 Get EAP-TLS session's session ID and master secret. More...
 
MOC_EXTERN MSTATUS EAP_TLSgetKey (ubyte *tls_connection, ubyte *key, ubyte2 keyLen)
 Get a new EAP-TLS session key. More...
 
MOC_EXTERN MSTATUS EAP_TLSgetMTU (ubyte *tls_connection, ubyte *setMTU)
 Get the MTU (maximum transmission unit) value from the TLS control block. More...
 
MOC_EXTERN MSTATUS EAP_TLSGetNegotiatedVersion (ubyte *tls_connection, ubyte *version)
 Get the negotiated version of an EAP-TLS packet. More...
 
MOC_EXTERN MSTATUS EAP_TLSgetSessionStatus (ubyte *appSessionHdl, ubyte *tls_connection, ubyte4 *sessionStatus)
 Get an EAP-TLS session's session status. More...
 
MOC_EXTERN MSTATUS EAP_TLSgetSSLInstance (ubyte *appSessionHdl, ubyte *tls_connection, sbyte4 *connectionInstance)
 Get an EAP-TLS connection's SSL connection instance. More...
 
MOC_EXTERN MSTATUS EAP_TLSPeerGetAuthVersion (ubyte *appSessionHdl, ubyte *authVersion, ubyte *pkt, ubyte pktLen)
 Get the authentication version of an EAP-TLS packet. More...
 
MOC_EXTERN MSTATUS EAP_TLSPeerStart (ubyte *appSessionHdl, ubyte *tls_connection, ubyte methodType, ubyte *pkt, ubyte4 pktLen, ubyte **eapRespData, ubyte4 *eapRespLen)
 Build a client Hello message and add it to the send buffer. More...
 
MOC_EXTERN MSTATUS EAP_TLSProcessMsg (ubyte *appSessionHdl, ubyte *tls_connection, ubyte *data, ubyte4 len, ubyte **eapRespData, ubyte4 *eapRespLen)
 Process a received EAP-TLS message and build a response. More...
 
MOC_EXTERN MSTATUS EAP_TLSRecvData (ubyte *appSessionHdl, ubyte *tls_connection, ubyte *data, ubyte4 len, ubyte **eapRespData, ubyte4 *eapRespLen, ubyte **eapRemData, ubyte4 *eapRemLen)
 Decrypt EAP message payload. More...
 
MOC_EXTERN MSTATUS EAP_TLSSendData (ubyte *appSessionHdl, ubyte *tls_connection, ubyte *data, ubyte4 len, ubyte **eapRespData, ubyte4 *eapRespLen)
 Encrypt EAP (clear text) data. More...
 
MOC_EXTERN MSTATUS EAP_TLSSetAuthId (ubyte *appSessionHdl, ubyte *tls_connection, ubyte *authId, ubyte2 authIdLen)
 Set EAP-FAST authenticator ID. More...
 
MOC_EXTERN MSTATUS EAP_TLSsetParams (ubyte *appSessionHdl, ubyte *tls_connection, ubyte methodType, eap_tls_param paramType, ubyte *param, ubyte4 paramLen)
 Set any parameter of any method to a specified value. More...
 
MOC_EXTERN MSTATUS EAP_TLSstartRequest (ubyte *appSessionHdl, ubyte *tls_connection, certDescriptor *sslCert, ubyte methodType, ubyte **eapReqData, ubyte4 *eapReqLen)
 Send an EAP-TLS Start message. More...
 

Detailed Description

This header file contains definitions, enumerations, and function declarations for EAP TLS helper functions.

Since
1.41
Version
2.02 and later

To build products using this header file's functions, the following flag must be defined in moptions.h:

  • __ENABLE_MOCANA_EAP_TLS__

Additionally, at least one of the following flags must be defined in moptions.h:

  • __ENABLE_MOCANA_EAP_AUTH__
  • __ENABLE_MOCANA_EAP_PEER__

eap_tls.h