TrustCore SDK NanoSec API reference  version 7.0
eap_gtc.h
Go to the documentation of this file.
1 /*
2  * eap_gtc.h
3  *
4  * EAP GTC Helper Functions
5  *
6  * Copyright 2019-2024 DigiCert, Inc. All Rights Reserved.
7  * Proprietary and Confidential Material.
8  *
9  */
10 
32 #ifndef __EAP_GTC_H__
33 #define __EAP_GTC_H__
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #if (defined(__ENABLE_MOCANA_EAP_PEER__) || defined(__ENABLE_MOCANA_EAP_AUTH__))
40 
78 MOC_EXTERN MSTATUS
79 EAP_GTCProcessPeer (ubyte *appSessionHdl,
80  ubyte *passwordString,ubyte4 passLen,
81  ubyte **eapRespData, ubyte4 *eapRespLen);
82 
118 MOC_EXTERN MSTATUS
119 EAP_GTCstartRequest (ubyte *appSessionHdl,
120  ubyte *msgString,ubyte4 msgLen,
121  ubyte **eapReqData, ubyte4 *eapReqLen);
122 
167 MOC_EXTERN MSTATUS
168 EAP_GTCProcessAuth (ubyte *appSessionHdl,
169  ubyte *data, ubyte4 len,ubyte *passwordString,
170  ubyte4 passLen,
171  sbyte4 *cmp);
172 
173 #endif /* ((defined(__ENABLE_MOCANA_EAP_PEER__) || defined(__ENABLE_MOCANA_EAP_AUTH__)) */
174 
175 #ifdef __cplusplus
176 }
177 #endif
178 
179 #endif /* __EAP_GTC_H__ */
MOC_EXTERN MSTATUS EAP_GTCProcessPeer(ubyte *appSessionHdl, ubyte *passwordString, ubyte4 passLen, ubyte **eapRespData, ubyte4 *eapRespLen)
Generate a token response.
MOC_EXTERN MSTATUS EAP_GTCstartRequest(ubyte *appSessionHdl, ubyte *msgString, ubyte4 msgLen, ubyte **eapReqData, ubyte4 *eapReqLen)
Builds an EAP request.
MOC_EXTERN MSTATUS EAP_GTCProcessAuth(ubyte *appSessionHdl, ubyte *data, ubyte4 len, ubyte *passwordString, ubyte4 passLen, sbyte4 *cmp)
Validate a token response.