anchor.diff:  			UserName, Secret, MAC, Auth, RadId),
   	{RadId, Auth}.
   
  -server_hello(Socket, Address, Port, NasId, UserName, Secret,
  +server_hello_radius(Socket, Address, Port, NasId, UserName, Secret,
   		MAC, Auth, RadId) ->
   	EapMsg = access_challenge(Socket, Address, Port,
   			Secret, RadId, Auth),
   	#eap_packet{code = request, identifier = EapId, type = ?TTLS,
   			data = EapData} = ocs_eap_codec:eap_packet(EapMsg),
   	TtlsData = ocs_eap_codec:eap_ttls(EapData),
  -	server_hello1(TtlsData, Socket, Address, Port, NasId,
  +	server_hello_radius1(TtlsData, Socket, Address, Port, NasId,
   			UserName, Secret, MAC, Auth, RadId, EapId, <<>>).
   %% @hidden
  -server_hello1(#eap_ttls{more = true, data = SH}, Socket, Address, Port,
  +server_hello_radius1(#eap_ttls{more = true, data = SH}, Socket, Address, Port,
   		NasId, UserName, Secret, MAC, Auth, RadId, EapId, Buf) ->
   	send_ack(Socket, Address, Port, NasId, UserName, Secret,
   			MAC, Auth, RadId, EapId),
  
positive.code: 	TtlsPacket = ocs_eap_codec:eap_ttls(EapData),
  	NewRadId = RadId + 1,
  	NewAuth = radius:authenticator(),
  	server_hello1(TtlsPacket, Socket, Address, Port, NasId,
  		UserName, Secret, MAC, NewAuth, NewRadId, NewEapId, <<Buf/binary, SC/binary>>);
  server_cipher1(#eap_ttls{data = SC}, _, _, _, _, _, _, _, _,
  		RadId, EapId, Buf) ->
  	%send_ack(Socket, Address, Port, NasId, UserName, Secret,
  	%		MAC, Auth, RadId, EapId),
  	NewRadId = RadId + 1,
  	{NewRadId, EapId, <<Buf/binary, SC/binary>>}.
  
  client_passthrough(SslSocket, UserName, Password, Socket, Address, Port,
  		NasId, Secret, MAC, Auth, EapId, RadId) ->
  	UN = #diameter_avp{code = ?UserName, is_mandatory = true,
  			data = UserName},
  
negative.code: 	access_request(EapPacket, Socket, Address, Port, NasId,
  			AnonymousName, Secret, MAC, Auth, RadId).
  
  receive_identity(Socket, Address, Port, Secret, Auth, RadId) ->
  	EapMsg = access_challenge(Socket, Address, Port,
  			Secret, RadId, Auth),
  	#eap_packet{code = request, type = ?PWD, identifier = EapId,
  