anchor.diff:  -export([]).
   
   %% export the ocs_eap_pwd_fsm state callbacks
  --export([idle/2, wait_for_id/2, wait_for_commit/2, wait_for_confirm/2]).
  +-export([eap_start/2, wait_for_id/2, wait_for_commit/2, wait_for_confirm/2]).
   
   %% export the call backs needed for gen_fsm behaviour
   -export([init/1, handle_event/3, handle_sync_event/4, handle_info/3,
  
positive.code: -record(statedata,
  		{address :: inet:ip_address(),
  		port :: pos_integer(),
  		session_id:: {NAS :: inet:ip_address() | string(),
  				Port :: string(), Peer :: string()},
  		eap_id = 0 :: byte(),
  		group_desc  = 19 :: byte(),
  		rand_func = 1 :: byte(),
  
negative.code: %% @see //stdlib/gen_fsm:init/1
  %% @private
  %%
  init([Address, Port, RadiusFsm, Secret, SessionID,
  		#radius{code = ?AccessRequest, id = ID,
  		authenticator = Authenticator, attributes = Attributes}] = _Args) ->
  	StateData = #statedata{address = Address, port = Port,
  			radius_id = ID, secret = Secret, session_id = SessionID,
  			req_auth = Authenticator, req_attr = Attributes},
  	process_flag(trap_exit, true),
  	{ok, request, StateData, 0}.
  
  -spec eap_start(Event :: timeout | term(), StateData :: #statedata{}) ->
  	Result :: {next_state, NextStateName :: atom(), NewStateData :: #statedata{}}
  		| {next_state, NextStateName :: atom(), NewStateData :: #statedata{},
  		Timeout :: non_neg_integer() | infinity}
  		| {next_state, NextStateName :: atom(), NewStateData :: #statedata{}, hibernate}
  		| {stop, Reason :: normal | term(), NewStateData :: #statedata{}}.
  %% @doc Handle events sent with {@link //stdlib/gen_fsm:send_event/2.
  %%		gen_fsm:send_event/2} in the <b>eap_start</b> state.
  %% @@see //stdlib/gen_fsm:StateName/2
  %% @private
  eap_start(timeout, #statedata{radius_fsm = RadiusFsm, id = RadiusID,
  		req_auth = RequestAuthenticator, req_attr = Attributes,
  		eap_id = EapID, session_id = SessionID, secret = Secret,
  		group_desc = GroupDesc, rand_func = RandFunc, prf = PRF} = StateData) ->
  	Token = crypto:rand_bytes(4),
  	{ok, HostName} = inet:gethostname(),
  	ServerID = list_to_binary(HostName),
  