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

EAP PEAP helper functions. More...

Go to the source code of this file.

Data Structures

struct  EAP_PEAP_params
 Configuration settings and callback function pointers for EAP-PEAP sessions. More...
 

Functions

MOC_EXTERN MSTATUS EAP_PEAPdeleteSession (void *eapPEAPSession)
 Delete an EAP-PEAP session. More...
 
MOC_EXTERN MSTATUS EAP_PEAPFormSendPacket (void *eapPEAPCb, ubyte *pkt, ubyte4 pktLen, ubyte **eapResponse, ubyte4 *eapRespLen)
 Build a PEAP packet. More...
 
MOC_EXTERN MSTATUS EAP_PEAPgetKey (void *eapCb, ubyte *key, ubyte2 keyLen)
 Generate and return a session's authentication keys. More...
 
MOC_EXTERN MSTATUS EAP_PEAPgetSessionStatus (void *eapPEAPCb, ubyte *eapSessionStatus)
 Get a session's current status. More...
 
MOC_EXTERN MSTATUS EAP_PEAPinitSession (ubyte *appSessionCB, ubyte **eapPEAPSession, EAP_PEAP_params *eapPEAPparams)
 Create and initialize an EAP-PEAP session. More...
 
MOC_EXTERN MSTATUS EAP_PEAPreceiveLLPacket (void *eapPEAPCb, ubyte *pkt, ubyte4 pktLen)
 Process an encrypted PEAP payload. More...
 
MOC_EXTERN MSTATUS EAP_PEAPSendResultTlv (ubyte *eapHdl, ubyte2 intResult)
 Build and send a result TLV packet. More...
 
MOC_EXTERN MSTATUS EAP_PEAPSetEapHdr (void *eapCB, eapCode code, ubyte id)
 Assign the code and ID values to an inner EAP header. More...
 
MOC_EXTERN MSTATUS EAP_PEAPulAuthTransmit (ubyte *eapSessionHdl, ubyte4 instanceId, eapMethodType methodType, eapCode code, eapMethodDecision methodDecision, eapMethodState methodState, ubyte *eap_data, ubyte4 eap_data_len)
 Transmit packets from the authenticator to the peer through the second stage EAP stack. More...
 
MOC_EXTERN MSTATUS EAP_PEAPulPeerTransmit (ubyte *eapSessionHdl, ubyte4 instanceId, eapMethodType methodType, eapCode code, eapMethodDecision methodDecision, eapMethodState methodState, ubyte *eap_data, ubyte4 eap_data_len)
 Transmit packets from the peer to the authenticator through the second stage EAP stack. More...
 

Detailed Description

This header file contains structure and function declarations for EAP PEAP 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_PEAP__

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

  • __ENABLE_MOCANA_EAP_AUTH__
  • __ENABLE_MOCANA_EAP_PEER__

eap_peap.h