![]() |
TrustCore SDK NanoSec API reference
version 7.0
|
Provides EAP-FAST (EAP-flexible authentication via secure tunnelling) authentication. More...
Functions | |
MOC_EXTERN MSTATUS | EAP_FASTAuthGetSessionHdl (ubyte *eapCb, ubyte **eapAuthSessionHdl) |
Get an EAP-FAST session's second stage EAP session handle. More... | |
MOC_EXTERN MSTATUS | EAP_FASTAuthInit2 (ubyte *eapCb) |
Send an Identity request to the peer. More... | |
MOC_EXTERN MSTATUS | EAP_FASTauthSendCryptoBindingTlv (ubyte *appSessionHdl, ubyte *cmk, ubyte *nonce) |
Transmits Result and crypto binding TLVs to the peer. More... | |
MOC_EXTERN MSTATUS | EAP_FASTauthSendMethodResult (ubyte *appSessionHdl, ubyte sendCryptoBinding, ubyte *compoundKey, ubyte2 result, ubyte *nonce) |
Buld a Method Result packet. More... | |
MOC_EXTERN MSTATUS | EAP_FASTauthSendPAC_ResultTlv (ubyte *eapFastSessionHdl, EAP_FAST_pac_t *pac) |
Transmits Result and PAC Provisioning TLVs to the peer. More... | |
MOC_EXTERN MSTATUS | EAP_FASTbuildAuthId (ubyte flags, ubyte *authId, ubyte2 authIdLen, ubyte **eapReqData, ubyte4 *eapReqLen) |
Build an Authority ID Requeest packet. More... | |
MOC_EXTERN MSTATUS | EAP_FASTdeleteSession (ubyte *eapFASTSession) |
Delete a second stage EAP-FAST session. More... | |
MOC_EXTERN MSTATUS | EAP_FASTEncapEAPPkt (ubyte *eapFastCb, ubyte *eapPkt, ubyte4 eapPktLen) |
Build an EAP payload TLV from an input second stage EAP packet and then pass the packet to the first stage. More... | |
MOC_EXTERN MSTATUS | EAP_FASTFormSendPacket (void *eapFASTCb, ubyte *pkt, ubyte4 pktLen, ubyte **eapResponse, ubyte4 *eapRespLen) |
Build an EAP-FAST packet from the specified encrypted second stage payload. More... | |
MOC_EXTERN MSTATUS | EAP_FASTgetAuthId (ubyte *pkt, ubyte4 pktLen, ubyte **authId, ubyte2 *authIdLen) |
Extract the authority ID (if any) from an EAP-FAST packet. More... | |
MOC_EXTERN MSTATUS | EAP_FASTgetTLVEncapEAPPkt (ubyte *eapPkt, ubyte4 eapPktLen, ubyte **response, ubyte4 *responseLen) |
Encapsulate an EAP packet into an EAP payload TLV packet. More... | |
MOC_EXTERN MSTATUS | EAP_FASTinitSession (ubyte *appSessionCB, ubyte **eapFASTSession, EAP_FAST_params *eapFASTparams) |
Create and initialize an EAP-FAST session. More... | |
MOC_EXTERN MSTATUS | EAP_FASTPeerGetSessionHdl (ubyte *eapCb, ubyte **eapSessionHdl) |
Get an EAP-FAST session's second stage EAP session handle. More... | |
MOC_EXTERN MSTATUS | EAP_FASTProcessTLV (ubyte *fastHdl, ubyte *pPkt, ubyte4 pktLen) |
Process a decrypted EAP packet's TLVs. More... | |
MOC_EXTERN MSTATUS | EAP_FASTreceiveLLPacket (void *eapFASTCb, ubyte *pkt, ubyte4 pktLen) |
Process a packet's TLVs, managing fragmentation, and send the packet on for second stage negotiation. More... | |
MOC_EXTERN MSTATUS | EAP_FASTulAuthSessionDelete (ubyte *eapFASTCb) |
Delete an EAP-FAST authenticator second stage stack. More... | |
MOC_EXTERN MSTATUS | EAP_FASTulAuthTransmit (ubyte *eapSessionHdl, ubyte4 instanceId, eapMethodType methodType, eapCode code, eapMethodDecision methodDecision, eapMethodState methodState, ubyte *eap_data, ubyte4 eap_data_len) |
Transmit packets from authenticator to peer during second stage negotiation. More... | |
MOC_EXTERN MSTATUS | EAP_FASTulPeerSessionDelete (ubyte *eapFASTCb) |
Delete an EAP-FAST peer second stage stack. More... | |
MOC_EXTERN MSTATUS | EAP_FASTulPeerTransmit (ubyte *eapSessionHdl, ubyte4 instanceId, eapMethodType methodType, eapCode code, eapMethodDecision methodDecision, eapMethodState methodState, ubyte *eap_data, ubyte4 eap_data_len) |
Transmit packets from peer to authenticator during second stage negotiation. More... | |
MOC_EXTERN MSTATUS EAP_FASTAuthGetSessionHdl | ( | ubyte * | eapCb, |
ubyte ** | eapAuthSessionHdl | ||
) |
This function retrieves the specified EAP-FAST session's second stage EAP session handle.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_AUTH__
Additionally, at least one of the following flags (or set of flags) must be defined in moptions.h:
__ENABLE_MOCANA_EAP_FAST__
and one of the asynchronous SSL flags (__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
or __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_PEAPV2__
eapCb | EAP-FAST session handle returned from EAP_FASTinitSession. |
eapAuthSessionHdl | On return, pointer to EAP-FAST second stage session handle. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTAuthInit2 | ( | ubyte * | eapCb | ) |
This function (called by the authenticator) sends an identity request to the peer during the second phase of EAP-FAST.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_AUTH__
Additionally, at least one of the following flags (or set of flags) must be defined in moptions.h:
__ENABLE_MOCANA_EAP_FAST__
and one of the asynchronous SSL flags (__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
or __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_PEAPV2__
eapCb | EAP-FAST session handle returned from EAP_FASTinitSession. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTauthSendCryptoBindingTlv | ( | ubyte * | appSessionHdl, |
ubyte * | cmk, | ||
ubyte * | nonce | ||
) |
This function (called by the authenticator) transmits the intermediate result and crypto binding TLVs (type-length-values) to the peer using the specified compound key and nonce.
This function enables the authenticator to negotiate additional methods. Once the Result TLV is sent (by a call to EAP_FASTauthSendMethodResult), the authenticator ceases negotiating additional methods.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)appSessionHdl | Application session handle (cookie given by the application to identify the session). |
cmk | Compound key (derived by using the FAST TLS algorithms provided by the TLS layer). |
nonce | 32-byte random number to incorporate into the crypto binding TLV and to use for calculating the crypto MAC (message authentication code). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTauthSendMethodResult | ( | ubyte * | appSessionHdl, |
ubyte | sendCryptoBinding, | ||
ubyte * | compoundKey, | ||
ubyte2 | result, | ||
ubyte * | nonce | ||
) |
This function builds a Method Result packet to pass the specified intermediate method crypto binding, compound key (if any) and result TLVs to the peer's upper layer.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)appSessionHdl | Application session handle (cookie given by the application to identify the session). |
sendCryptoBinding | 1 to specify that the crypto-binding TLV be sent; any other value to specify that it not be sent. |
compoundKey | Pointer to compound intermediate method key (derived by using the FAST TLS algorithms provided by the TLS layer; may be NULL ). |
result | Result to transmit: EAP_FAST_RESULT_TLV_SUCCESS or EAP_FAST_RESULT_TLV_FAILURE . |
nonce | Pointer to 32-byte random number to incorporate into the crypto binding TLV and to use for calculating the crypto MAC (message authentication code). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTauthSendPAC_ResultTlv | ( | ubyte * | eapFastSessionHdl, |
EAP_FAST_pac_t * | pac | ||
) |
This function (called by the authenticator) transmits the result and PAC Provisioning TLVs (type-length-values) to the peer using the specified Key / A-ID and Other parameters specified by the User/.
This function enables the authenticator to provision PAC on the Peer
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)eapFastSessionHdl | Application session handle (cookie given by the application to identify the session). |
pac | PAC Structure with the Relevant information. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTbuildAuthId | ( | ubyte | flags, |
ubyte * | authId, | ||
ubyte2 | authIdLen, | ||
ubyte ** | eapReqData, | ||
ubyte4 * | eapReqLen | ||
) |
This function (called by an EAP-TLS authenticator) builds an Authority ID Request packet that includes the specified flags
values. The resultant data will ultimately be sent to the peer to provide hints about the authenticator's identity during a TLS Start message transmission.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)flags | Sum of bitmasks indicating the TLS Start bit status and the TLS version. |
authId | Pointer to authority ID (often set by calling EAP_TLSSetAuthId before calling EAP_TLSstartRequest). |
authIdLen | Number of bytes in authority ID (authId ). |
eapReqData | On return, pointer to resultant EAP-FAST/TLS request payload. |
eapReqLen | On return, pointer to number of bytes in EAP request payload (eapReqData ). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTdeleteSession | ( | ubyte * | eapFASTSession | ) |
This function deletes a second stage EAP-FAST session.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)eapFASTSession | EAP-FAST session handle returned from EAP_FASTinitSession. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTEncapEAPPkt | ( | ubyte * | eapFastCb, |
ubyte * | eapPkt, | ||
ubyte4 | eapPktLen | ||
) |
This function builds an EAP payload TLV from the input second stage EAP packet and then passes the packet to the first stage using the registered upper layer callback. This packet can later be encrypted by the TLS session and passed to the EAP lower layer.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)eapFastCb | EAP-FAST session handle returned from EAP_FASTinitSession. |
eapPkt | Pointer to input EAP packet. |
eapPktLen | Number of bytes in input EAP packet (eapPkt ). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTFormSendPacket | ( | void * | eapFASTCb, |
ubyte * | pkt, | ||
ubyte4 | pktLen, | ||
ubyte ** | eapResponse, | ||
ubyte4 * | eapRespLen | ||
) |
This function builds an EAP-FAST packet from the specified encrypted second stage payload, prepending the header and performing any required fragmentation, and returning the resultant packet through the eapResponse
parameter. Typically your application passes the resulting packet to EAP for transmission from authenticator to peer or from peer to authenticator.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)eapFASTCb | EAP-FAST session handle returned from EAP_FASTinitSession. |
pkt | Pointer to payload to include in the EAP-FAST packet. |
pktLen | Number of bytes in the payload data (pkt ). |
eapResponse | On return, pointer to resultant EAP-FAST response packet. |
eapRespLen | On return, number of bytes in EAP-FAST response payload (eapResponse ). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTgetAuthId | ( | ubyte * | pkt, |
ubyte4 | pktLen, | ||
ubyte ** | authId, | ||
ubyte2 * | authIdLen | ||
) |
This function extracts the authority ID (if any) from an EAP-FAST packet, returning it through the authId
parameter.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)pkt | Pointer to EAP-FAST packet. |
pktLen | Number of bytes in EAP-FAST packet (pkt ). |
authId | On return, pointer to authority ID. |
authIdLen | On return, pointer to number of bytes in authority ID (authId ). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTgetTLVEncapEAPPkt | ( | ubyte * | eapPkt, |
ubyte4 | eapPktLen, | ||
ubyte ** | response, | ||
ubyte4 * | responseLen | ||
) |
This function encapsulates an EAP packet into an EAP payload TLV, returning the resultant packet through the response
parameter.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)eapPkt | Pointer to input EAP packet. |
eapPktLen | Number of bytes in input EAP packet (eapPkt ). |
response | On return, pointer to response packet. |
responseLen | On return, pointer to number of bytes in response packet (response ). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTinitSession | ( | ubyte * | appSessionCB, |
ubyte ** | eapFASTSession, | ||
EAP_FAST_params * | eapFASTparams | ||
) |
This function creates and initializes an EAP-FAST session based on the specified parameters, returning the resultant session handle through the eapFastSession
parameter.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)appSessionCB | Application session handle (cookie given by the application to identify the session). |
eapFASTSession | On return, pointer to EAP-FAST session handle. |
eapFASTparams | Pointer to desired EAP-FAST session parameters. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTPeerGetSessionHdl | ( | ubyte * | eapCb, |
ubyte ** | eapSessionHdl | ||
) |
This function retrieves the EAP-FAST second stage handle. (In the first stage, TLS is negotiated with EAP payload messaging. In the second stage, the method, such as MS-CHAP-V2, is negotiated over the already secure TLS channel.)
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
Additionally, at least one of the following flags must be defined in moptions.h:
__ENABLE_MOCANA_EAP_FAST__
__ENABLE_MOCANA_EAP_PEAPV2__
eapCb | EAP-FAST session handle returned from EAP_FASTinitSession. |
eapSessionHdl | On return, pointer to EAP-FAST second stage session handle. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTProcessTLV | ( | ubyte * | fastHdl, |
ubyte * | pPkt, | ||
ubyte4 | pktLen | ||
) |
This function parses a decrypted EAP packet for TLVs and processes each according to its type.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)fastHdl | EAP-FAST session handle returned from EAP_FASTinitSession. |
pPkt | Pointer to input packet. |
pktLen | Number of bytes in input packet (pPkt ). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTreceiveLLPacket | ( | void * | eapFASTCb, |
ubyte * | pkt, | ||
ubyte4 | pktLen | ||
) |
This function processes a packet's TLVs, performs any required reassembly, and passes the packet to the EAP-FAST lower layer for second stage (method) negotiation.
To enable this function, at least one flag in each of the following flag pairs must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
, __ENABLE_MOCANA_EAP_AUTH__
)__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
, __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_FAST__
, __ENABLE_MOCANA_EAP_PEAPV2__
)eapFASTCb | EAP-FAST session handle returned from EAP_FASTinitSession. |
pkt | Pointer to input packet (received from lower layer). |
pktLen | Number of bytes in input packet (pkt ). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTulAuthSessionDelete | ( | ubyte * | eapFASTCb | ) |
This function deletes an EAP-FAST authenticator second stage stack.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_AUTH__
Additionally, at least one of the following flags (or set of flags) must be defined in moptions.h:
__ENABLE_MOCANA_EAP_FAST__
and one of the asynchronous SSL flags (__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
or __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_PEAPV2__
eapFASTCb | EAP-FAST session handle returned from EAP_FASTinitSession. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTulAuthTransmit | ( | ubyte * | eapSessionHdl, |
ubyte4 | instanceId, | ||
eapMethodType | methodType, | ||
eapCode | code, | ||
eapMethodDecision | methodDecision, | ||
eapMethodState | methodState, | ||
ubyte * | eap_data, | ||
ubyte4 | eap_data_len | ||
) |
This function transmits packets from the authenticator to the peer during second stage negotiation.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_AUTH__
Additionally, at least one of the following flags (or set of flags) must be defined in moptions.h:
__ENABLE_MOCANA_EAP_FAST__
and one of the asynchronous SSL flags (__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
or __ENABLE_MOCANA_SSL_ASYNC_CLIENT_API__
)__ENABLE_MOCANA_EAP_PEAPV2__
eapSessionHdl | EAP-FAST session handle returned from EAP_FASTinitSession. |
instanceId | Instance ID. |
methodType | eapMethodType enumerated value for the second phase (see eap_proto.h). |
code | Any of the following eapCode enumerated values (defined in eap_proto.h):
|
methodDecision | eapMethodDecision enumerated value (see eap_proto.h). |
methodState | eapMethodState enumerated value (see eap_proto.h). |
eap_data | Pointer to EAP packet to be transmitted. |
eap_data_len | Number of bytes in EAP packet to be transmitted (eap_data ). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTulPeerSessionDelete | ( | ubyte * | eapFASTCb | ) |
This function deletes an EAP-FAST peer second stage stack.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
Additionally, at least one of the following flags must be defined in moptions.h:
__ENABLE_MOCANA_EAP_FAST__
__ENABLE_MOCANA_EAP_PEAPV2__
eapFASTCb | EAP-FAST session handle returned from EAP_FASTinitSession. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.MOC_EXTERN MSTATUS EAP_FASTulPeerTransmit | ( | ubyte * | eapSessionHdl, |
ubyte4 | instanceId, | ||
eapMethodType | methodType, | ||
eapCode | code, | ||
eapMethodDecision | methodDecision, | ||
eapMethodState | methodState, | ||
ubyte * | eap_data, | ||
ubyte4 | eap_data_len | ||
) |
This function transmits packets from the peer to the authenticator during second stage negotiation.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_EAP_PEER__
Additionally, at least one of the following flags must be defined in moptions.h:
__ENABLE_MOCANA_EAP_FAST__
__ENABLE_MOCANA_EAP_PEAPV2__
eapSessionHdl | EAP-FAST session handle returned from EAP_FASTinitSession. |
instanceId | Instance ID. |
methodType | eapMethodType enumerated value for the second phase (see eap_proto.h). |
code | EAP_CODE_RESPONSE (an eapCode enumerated values defined in eap_proto.h). |
methodDecision | eapMethodDecision enumerated value (see eap_proto.h). |
methodState | eapMethodState enumerated value (see eap_proto.h). |
eap_data | Pointer to EAP packet to be transmitted. |
eap_data_len | Number of bytes in EAP packet to be transmitted (eap_data ). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.