Added partner parameter to deliverHandshakeResult keysync
authorEdouard Tisserant <edouard@pep-project.org>
Tue, 13 Sep 2016 16:35:17 +0200
branchkeysync
changeset 1160a176739cd3c3
parent 1159 ad1ee2ba1504
child 1161 9a1f9ec6561a
Added partner parameter to deliverHandshakeResult
src/sync.c
src/sync.h
     1.1 --- a/src/sync.c	Mon Sep 12 22:15:51 2016 +0200
     1.2 +++ b/src/sync.c	Tue Sep 13 16:35:17 2016 +0200
     1.3 @@ -54,6 +54,7 @@
     1.4  
     1.5  DYNAMIC_API PEP_STATUS deliverHandshakeResult(
     1.6          PEP_SESSION session,
     1.7 +        Identity partner,
     1.8          sync_handshake_result result
     1.9      )
    1.10  {
    1.11 @@ -68,10 +69,10 @@
    1.12              status = fsm_DeviceState_inject(session, Cancel, NULL, 0);
    1.13              break;
    1.14          case SYNC_HANDSHAKE_ACCEPTED:
    1.15 -            status = fsm_DeviceState_inject(session, HandshakeAccepted, NULL, 0);
    1.16 +            status = fsm_DeviceState_inject(session, HandshakeAccepted, partner, 0);
    1.17              break;
    1.18          case SYNC_HANDSHAKE_REJECTED:
    1.19 -            status = fsm_DeviceState_inject(session, HandshakeRejected, NULL, 0);
    1.20 +            status = fsm_DeviceState_inject(session, HandshakeRejected, partner, 0);
    1.21              break;
    1.22          default:
    1.23              return PEP_ILLEGAL_VALUE;
     2.1 --- a/src/sync.h	Mon Sep 12 22:15:51 2016 +0200
     2.2 +++ b/src/sync.h	Tue Sep 13 16:35:17 2016 +0200
     2.3 @@ -61,6 +61,7 @@
     2.4  
     2.5  DYNAMIC_API PEP_STATUS deliverHandshakeResult(
     2.6          PEP_SESSION session,
     2.7 +        Identity partner,
     2.8          sync_handshake_result result
     2.9      );
    2.10