anchor.diff:  %%--------------------------------------------------------------------
   hello(start, #state{host = Host, port = Port, role = client,
   		    ssl_options = SslOpts, 
  -		    own_cert = Cert,
  +		    session = #session{own_certificate = Cert} = Session0,
   		    transport_cb = Transport, socket = Socket,
   		    connection_states = ConnectionStates,
  -		    renegotiation = {Renegotiation, _}}
  -      = State0) ->
  -
  +		    renegotiation = {Renegotiation, _}} = State0) ->
       Hello = ssl_handshake:client_hello(Host, Port, 
   				       ConnectionStates, 
   				       SslOpts, Renegotiation, Cert),
  
positive.code: 	    next_state_is_connection(State)
      end.
  
  next_state_is_connection(State = 
  		      #state{recv_during_renegotiation = true, socket_options = 
  			     #socket_options{active = false}})  -> 
      passive_receive(State#state{recv_during_renegotiation = false}, connection);
  
  next_state_is_connection(State0) ->
      {Record, State} = next_record_if_active(State0),
      next_state(connection, Record, State).
  
  register_session(_, _, _, #session{is_resumable = true} = Session) ->
      Session; %% Already registered
  
negative.code: 
  hello(Hello = #client_hello{client_version = ClientVersion}, 
        State = #state{connection_states = ConnectionStates0,
  		     port = Port, session = #session{own_certificate = Cert} = Session0,
  		     renegotiation = {Renegotiation, _},
  		     session_cache = Cache,		  
  		     session_cache_cb = CacheCb,
  		     ssl_options = SslOpts}) ->
      case ssl_handshake:hello(Hello, SslOpts, {Port, Session0, Cache, CacheCb,
  				     ConnectionStates0, Cert}, Renegotiation) of
          {Version, {Type, Session}, ConnectionStates} ->       
  