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

EAP SRP helper functions. More...

Go to the source code of this file.

Functions

MOC_EXTERN MSTATUS EAP_SRPbuildChallenge (ubyte *eapSessionHdl, ubyte4 instanceId, ubyte *username, ubyte4 usernameLen, ubyte *password, ubyte4 passwordLen, eapMethodType *method_type, ubyte **reqData, ubyte4 *reqLen)
 Generate an SRP challenge packet. More...
 
MOC_EXTERN MSTATUS EAP_SRPbuildLightweightChallenge (ubyte *eapSessionHdl, ubyte4 instanceId, eapMethodType *method_type, ubyte **reqData, ubyte4 *reqLen)
 Build an EAP-SRP lightweight challenge packet for reauthentication. More...
 
MOC_EXTERN MSTATUS EAP_SRPprocessAuth (ubyte *appSessionHdl, ubyte *eapSessionHdl, ubyte4 instanceId, ubyte id, ubyte *data, ubyte4 len, ubyte *passwordString, ubyte4 passLen, ubyte **eapRespData, ubyte4 *eapRespLen, ubyte *code)
 Get the EAP payload from a message received by an SRP authenticator. More...
 
MOC_EXTERN MSTATUS EAP_SRPprocessPeer (ubyte *appSessionHdl, ubyte *eapSessionHdl, ubyte4 instanceId, ubyte id, ubyte *data, ubyte4 len, ubyte *username, ubyte4 usernameLen, ubyte *passwordString, ubyte4 passLen, ubyte **eapRespData, ubyte4 *eapRespLen)
 Get the EAP payload from an SRP-SHA1 message received by an SRP peer. More...
 

Detailed Description

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

Since
1.41
Version
2.02 and later

To enable any of this file's functions, the following flag must be defined in moptions.h:

  • __ENABLE_MOCANA_EAP_SRP__

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

  • __ENABLE_MOCANA_EAP_AUTH__
  • __ENABLE_MOCANA_EAP_PEER__

eap_srp.h