failure means TIMEOUT
authorVolker Birk <vb@pep.foundation>
Thu, 08 Dec 2016 10:52:05 +0100
changeset 1475f76bc25570df
parent 1474 c8ac0e2a7ff2
child 1476 61323550db84
failure means TIMEOUT
src/message_api.c
src/sync.h
src/sync_actions.c
     1.1 --- a/src/message_api.c	Thu Dec 08 10:43:21 2016 +0100
     1.2 +++ b/src/message_api.c	Thu Dec 08 10:52:05 2016 +0100
     1.3 @@ -2042,7 +2042,7 @@
     1.4  
     1.5      // this should never happen
     1.6      assert(false);
     1.7 -	return PEP_rating_undefined;
     1.8 +	return PEP_color_no_color;
     1.9  }
    1.10  
    1.11  static bool _is_valid_hex(const char* hexstr) {
     2.1 --- a/src/sync.h	Thu Dec 08 10:43:21 2016 +0100
     2.2 +++ b/src/sync.h	Thu Dec 08 10:52:05 2016 +0100
     2.3 @@ -90,6 +90,7 @@
     2.4      // handshake process is done or was cancelled
     2.5      SYNC_NOTIFY_DISMISSED,
     2.6      SYNC_NOTIFY_CANCELED,
     2.7 +    SYNC_NOTIFY_TIMEOUT,
     2.8  
     2.9      // handshake accepted by user
    2.10      SYNC_NOTIFY_ACCEPTED_DEVICE_ADDED,
     3.1 --- a/src/sync_actions.c	Thu Dec 08 10:43:21 2016 +0100
     3.2 +++ b/src/sync_actions.c	Thu Dec 08 10:52:05 2016 +0100
     3.3 @@ -263,7 +263,7 @@
     3.4      )
     3.5  {
     3.6     assert(extra == NULL);
     3.7 -   return _notifyHandshake(session, partner, SYNC_NOTIFY_REJECTED);
     3.8 +   return _notifyHandshake(session, partner, SYNC_NOTIFY_TIMEOUT);
     3.9  }
    3.10  
    3.11  // acceptHandshake() - stores acception of partner