eap_peer_sm_init - Allocate and initialize EAP peer state machine @eapol_ctx: Context data to be used with eapol_cb calls @eapol_cb: Pointer to EAPOL callback functions @msg_ctx: Context data for wpa_msg() calls @conf: EAP configuration Returns: Pointer to the allocated EAP state machine or %NULL on failure This function allocates and initializes an EAP state machine. In addition, this initializes TLS library for the new EAP state machine. eapol_cb pointer will be in use until eap_peer_sm_deinit() is used to deinitialize this EAP state machine. Consequently, the caller must make sure that this data structure remains alive while the EAP state machine is active.