Module ocs_eap_pwd_fsm

Copyright © 2016 - 2026 SigScale Global Inc.

Behaviours: gen_fsm.

References

Data Types

statedata()

statedata() = #statedata{server_address = inet:ip_address(), server_port = pos_integer(), client_address = undefined | inet:ip_address(), client_port = undefined | pos_integer(), radius_fsm = undefined | pid(), session_id = string() | {NAS::inet:ip_address() | string(), Port::string(), Peer::string()}, start = undefined | #diameter_eap_app_DER{} | #radius{code = byte(), id = byte(), authenticator = binary() | [byte()], attributes = binary() | radius_attributes:attributes()}, eap_id = byte(), group_desc = byte(), rand_func = byte(), prf = byte(), secret = undefined | binary(), token = undefined | binary(), password = undefined | binary(), prep = undefined | none | rfc2759 | saslprep, server_id = binary(), peer_id = undefined | binary(), pwe = undefined | binary(), s_rand = undefined | integer(), scalar_s = undefined | binary(), element_s = undefined | binary(), scalar_p = undefined | binary(), element_p = undefined | binary(), ks = undefined | binary(), confirm_s = undefined | binary(), confirm_p = undefined | binary(), mk = undefined | binary(), msk = undefined | binary(), auth_app_id = undefined | integer(), auth_req_type = undefined | integer(), origin_host = undefined | binary(), origin_realm = undefined | binary(), diameter_port_server = undefined | pid(), password_required = boolean(), trusted = boolean(), service_type = undefined | integer()}

Function Index

init/1Initialize the ocs_eap_pwd_fsm finite state machine.
eap_start/2Handle events sent with gen_fsm:send_event/2 in the eap_start state.
id/2Handle events sent with gen_fsm:send_event/2 in the id state.
commit/2Handle events sent with gen_fsm:send_event/2 in the commit state.
confirm/2Handle events sent with gen_fsm:send_event/2 in the confirm state.
handle_event/3Handle an event sent with gen_fsm:send_all_state_event/2.
handle_sync_event/4Handle an event sent with gen_fsm:sync_send_all_state_event/2,3.
handle_info/3Handle a received message.
terminate/3Cleanup and exit.
code_change/4Update internal state data during a release upgrade/downgrade.
encrypt_key/4*Encrypt the Pairwise Master Key (PMK) according to RFC2548 section 2.4.2 for use as String in a MS-MPPE-Recv-Key or MS-MPPE-Send-Key attribute.
get_service_type/1*

Function Details

init/1

init(Args) -> Result

Initialize the ocs_eap_pwd_fsm finite state machine.

See also: //stdlib/gen_fsm:init/1.

eap_start/2

eap_start(Event, StateData) -> Result

Handle events sent with gen_fsm:send_event/2 in the eap_start state. @see //stdlib/gen_fsm:StateName/2

id/2

id(Event, StateData) -> Result

Handle events sent with gen_fsm:send_event/2 in the id state. @see //stdlib/gen_fsm:StateName/2

commit/2

commit(Event, StateData) -> Result

Handle events sent with gen_fsm:send_event/2 in the commit state. @see //stdlib/gen_fsm:StateName/2

confirm/2

confirm(Event, StateData) -> Result

Handle events sent with gen_fsm:send_event/2 in the confirm state. @see //stdlib/gen_fsm:StateName/2

handle_event/3

handle_event(Event, StateName, StateData) -> Result

Handle an event sent with gen_fsm:send_all_state_event/2.

See also: //stdlib/gen_fsm:handle_event/3.

handle_sync_event/4

handle_sync_event(Event, From, StateName, StateData) -> Result

Handle an event sent with gen_fsm:sync_send_all_state_event/2,3.

See also: //stdlib/gen_fsm:handle_sync_event/4.

handle_info/3

handle_info(Info, StateName, StateData) -> Result

Handle a received message.

See also: //stdlib/gen_fsm:handle_info/3.

terminate/3

terminate(Reason, StateName, StateData) -> any()

Cleanup and exit.

See also: //stdlib/gen_fsm:terminate/3.

code_change/4

code_change(OldVsn, StateName, StateData, Extra) -> Result

Update internal state data during a release upgrade/downgrade.

See also: //stdlib/gen_fsm:code_change/4.

encrypt_key/4 *

encrypt_key(Secret, RequestAuthenticator, Salt, Key) -> Ciphertext

Encrypt the Pairwise Master Key (PMK) according to RFC2548 section 2.4.2 for use as String in a MS-MPPE-Recv-Key or MS-MPPE-Send-Key attribute.

get_service_type/1 *

get_service_type(Attr) -> any()


Generated by EDoc