sync/cond_act_sync.yml2
branchsync
changeset 3601 0052c5587b9a
parent 3594 7f2ef2823948
child 3605 27595b58666d
     1.1 --- a/sync/cond_act_sync.yml2	Thu May 02 06:14:30 2019 +0200
     1.2 +++ b/sync/cond_act_sync.yml2	Thu May 02 11:01:42 2019 +0200
     1.3 @@ -122,14 +122,26 @@
     1.4      ||
     1.5  }
     1.6  
     1.7 -action newChallenge
     1.8 +action newChallenge {
     1.9 +    // random new challenge
    1.10      call "new_UUID" with "dst" > &session->own_sync_state.challenge
    1.11 +    // store a copy of this challenge
    1.12 +    call "copy_UUID" {
    1.13 +        with "src" > &session->own_sync_state.challenge
    1.14 +        with "dst" > &session->sync_state.common.challenge
    1.15 +    }
    1.16 +}
    1.17  
    1.18 -action storeChallenge call "copy_UUID" {
    1.19 +action replyChallenge call "copy_UUID" {
    1.20      with "src" > &session->sync_state.keysync.challenge
    1.21      with "dst" > &session->own_sync_state.challenge
    1.22  }
    1.23  
    1.24 +action useOwnChallenge call "copy_UUID" {
    1.25 +    with "src" > &session->sync_state.common.challenge
    1.26 +    with "dst" > &session->own_sync_state.challenge
    1.27 +}
    1.28 +
    1.29  action newTransaction {
    1.30  ||
    1.31      // sender key must be stable while transaction