anchor.diff:      Transport:send(Socket, BinMsg),
       State1 = State0#state{connection_states = CS2,
   			 negotiated_version = Version, %% Requested version
  -			 session = 
  -                         #session{session_id = Hello#client_hello.session_id,
  -                                  is_resumable = false},
  +			  session =
  +			      Session0#session{session_id = Hello#client_hello.session_id,
  +					       is_resumable = false},
   			  tls_handshake_hashes = Hashes1},
       {Record, State} = next_record(State1),
       next_state(hello, Record, State);
  -    
  +
   hello(start, #state{role = server} = State0) ->
       {Record, State} = next_record(State0),
       next_state(hello, Record, State);
  
positive.code: 	{ok, Ref, CacheRef, OwnCert, Key, DHParams} ->	   
  	    Session = State0#state.session,
  	    State = State0#state{tls_handshake_hashes = Hashes0,
  				 own_cert = OwnCert,
  				 session = Session#session{own_certificate = OwnCert},
  				 cert_db_ref = Ref,
  				 session_cache = CacheRef,
  
negative.code: %%--------------------------------------------------------------------
  hello(start, #state{host = Host, port = Port, role = client,
  		    ssl_options = SslOpts, 
  		    session = #session{own_certificate = Cert} = Session0,
  		    transport_cb = Transport, socket = Socket,
  		    connection_states = ConnectionStates,
  		    renegotiation = {Renegotiation, _}} = State0) ->
      Hello = ssl_handshake:client_hello(Host, Port, 
  				       ConnectionStates, 
  				       SslOpts, Renegotiation, Cert),
  