anchor.diff:  						       malformed_handshake_data), 
   					    Version, StateName, State)  
       end.
  +
  +gen_info_1_3(Event, connected = StateName,  #state{negotiated_version = Version} = State) ->
  +    try handle_info(Event, StateName, State) of
  +	Result ->
  +	    Result
  +    catch
  +	_:_ ->
  +	    ssl_connection:handle_own_alert(?ALERT_REC(?FATAL, ?INTERNAL_ERROR,
  +						       malformed_data),
  +					    Version, StateName, State)
  +    end;
  +
  +gen_info_1_3(Event, StateName, #state{negotiated_version = Version} = State) ->
  +    try handle_info(Event, StateName, State) of
  +	Result ->
  +	    Result
  +    catch
  +        _:_ ->
  +	    ssl_connection:handle_own_alert(?ALERT_REC(?FATAL, ?HANDSHAKE_FAILURE,
  +						       malformed_handshake_data),
  +					    Version, StateName, State)
  +    end.
  +
   	    
   unprocessed_events(Events) ->
       %% The first handshake event will be processed immediately
  
positive.code: 					    Version, StateName, State)  
      end.
  
  gen_info(Event, connection = StateName,  #state{negotiated_version = Version} = State) ->
      try handle_info(Event, StateName, State) of
  	Result ->
  
negative.code: 				      negotiated_version = Version,
  				      ssl_options = Options} = State0) ->
      try
  	EffectiveVersion = effective_version(Version, Options),
  	{Packets, Buf} = tls_handshake:get_tls_handshake(EffectiveVersion,Data,Buf0, Options),
  	State1 =
  	    State0#state{protocol_buffers =
  			     Buffers#protocol_buffers{tls_handshake_buffer = Buf}},
  