we don't need this sync
authorVolker Birk <vb@pep-project.org>
Wed, 29 May 2019 23:49:12 +0200
branchsync
changeset 378293bee764e48e
parent 3781 bcf9649b3b41
child 3783 119aba513e36
we don't need this
sync/cond_act_sync.yml2
sync/sync.fsm
     1.1 --- a/sync/cond_act_sync.yml2	Wed May 29 23:43:37 2019 +0200
     1.2 +++ b/sync/cond_act_sync.yml2	Wed May 29 23:49:12 2019 +0200
     1.3 @@ -145,6 +145,12 @@
     1.4  
     1.5      // this is the random data we are using as a base
     1.6      call "new_UUID" with "dst" > &session->sync_state.own.negotiation
     1.7 +||
     1.8 +    memset(session->sync_state.keysync.negotiation.buf, 0,
     1.9 +            session->sync_state.keysync.negotiation.size);
    1.10 +    memset(session->sync_state.comm_partner.negotiation.buf, 0,
    1.11 +            session->sync_state.comm_partner.negotiation.size);
    1.12 +||
    1.13  }
    1.14  
    1.15  action useOwnChallenge call "copy_UUID" {
    1.16 @@ -197,14 +203,6 @@
    1.17      }
    1.18  }
    1.19  
    1.20 -action closeNegotiation
    1.21 -||
    1.22 -    memset(session->sync_state.keysync.negotiation.buf, 0,
    1.23 -            session->sync_state.keysync.negotiation.size);
    1.24 -    memset(session->sync_state.comm_partner.negotiation.buf, 0,
    1.25 -            session->sync_state.comm_partner.negotiation.size);
    1.26 -||
    1.27 -
    1.28  action storeNegotiation {
    1.29  ||
    1.30      // sender key must be stable while transaction
     2.1 --- a/sync/sync.fsm	Wed May 29 23:43:37 2019 +0200
     2.2 +++ b/sync/sync.fsm	Wed May 29 23:49:12 2019 +0200
     2.3 @@ -23,7 +23,6 @@
     2.4  
     2.5          state Sole timeout=off {
     2.6              on Init {
     2.7 -                do closeNegotiation;
     2.8                  do newChallengeAndNegotiationBase;
     2.9                  do showBeingSole;
    2.10                  send Beacon;
    2.11 @@ -266,7 +265,6 @@
    2.12  
    2.13          state Grouped timeout=off {
    2.14              on Init {
    2.15 -                do closeNegotiation;
    2.16                  do newChallengeAndNegotiationBase;
    2.17                  do showBeingInGroup;
    2.18              }