IOSAD-132 PEPSyncHandshakeSignal. IOSAD-132
authorDirk Zimmermann <dz@pep.security>
Fri, 20 Sep 2019 17:00:26 +0200
branchIOSAD-132
changeset 126537d9bb36c68b
parent 1264 2f139296cbbd
child 1266 e42bf7549b92
IOSAD-132 PEPSyncHandshakeSignal.
pEpObjCAdapterFramework/PEPEngineTypes.h
     1.1 --- a/pEpObjCAdapterFramework/PEPEngineTypes.h	Fri Sep 20 17:00:26 2019 +0200
     1.2 +++ b/pEpObjCAdapterFramework/PEPEngineTypes.h	Fri Sep 20 17:00:26 2019 +0200
     1.3 @@ -155,32 +155,24 @@
     1.4      PEPIdentityFlagsDeviceGroup = 0x0100 // PEP_idf_devicegroup
     1.5  };
     1.6  
     1.7 -typedef NS_CLOSED_ENUM(int, PEPSyncHandshakeSignal) { // _sync_handshake_signal
     1.8 -    PEPSyncHandshakeSignalUndefined = 0, // SYNC_NOTIFY_UNDEFINED = 0,
     1.9 +typedef NS_CLOSED_ENUM(int, PEPSyncHandshakeSignal) {
    1.10 +    PEPSyncHandshakeSignalUndefined = 0, // SYNC_NOTIFY_UNDEFINED
    1.11  
    1.12 -    // request show handshake dialog
    1.13 -    PEPSyncHandshakeSignalInitAddOurDevice = 1, // SYNC_NOTIFY_INIT_ADD_OUR_DEVICE = 1,
    1.14 -    PEPSyncHandshakeSignalInitAddOtherDevice = 2, // SYNC_NOTIFY_INIT_ADD_OTHER_DEVICE = 2,
    1.15 -    PEPSyncHandshakeSignalInitFormGroup = 3, // SYNC_NOTIFY_INIT_FORM_GROUP = 3,
    1.16 -    // SYNC_NOTIFY_INIT_MOVE_OUR_DEVICE = 4,
    1.17 +    PEPSyncHandshakeSignalInitAddOurDevice = 1, // SYNC_NOTIFY_INIT_ADD_OUR_DEVICE
    1.18 +    PEPSyncHandshakeSignalInitAddOtherDevice = 2, // SYNC_NOTIFY_INIT_ADD_OTHER_DEVICE
    1.19 +    PEPSyncHandshakeSignalInitFormGroup = 3, // SYNC_NOTIFY_INIT_FORM_GROUP
    1.20  
    1.21 -    // handshake process timed out
    1.22 -    PEPSyncHandshakeSignalTimeout = 5, // SYNC_NOTIFY_TIMEOUT = 5,
    1.23 +    PEPSyncHandshakeSignalTimeout = 5, // SYNC_NOTIFY_TIMEOUT
    1.24  
    1.25 -    // handshake accepted by user
    1.26 -    PEPSyncHandshakeSignalAcceptedDeviceAdded = 6, // SYNC_NOTIFY_ACCEPTED_DEVICE_ADDED = 6,
    1.27 -    PEPSyncHandshakeSignalAcceptedGroupCreated = 7, // SYNC_NOTIFY_ACCEPTED_GROUP_CREATED = 7,
    1.28 -    // SYNC_NOTIFY_ACCEPTED_DEVICE_MOVED = 8,
    1.29 +    PEPSyncHandshakeSignalAcceptedDeviceAdded = 6, // SYNC_NOTIFY_ACCEPTED_DEVICE_ADDED
    1.30 +    PEPSyncHandshakeSignalAcceptedGroupCreated = 7, // SYNC_NOTIFY_ACCEPTED_GROUP_CREATED
    1.31 +
    1.32 +    PEPSyncHandshakeSignalOvertaken = 9, // SYNC_NOTIFY_OVERTAKEN
    1.33  
    1.34 -    // handshake dialog must be closed
    1.35 -    PEPSyncHandshakeSignalOvertaken = 9, // SYNC_NOTIFY_OVERTAKEN = 9,
    1.36 +    PEPSyncHandshakeSignalFormingGroup = 10, // SYNC_NOTIFY_FORMING_GROUP
    1.37  
    1.38 -    /** currently exchanging private keys */
    1.39 -    PEPSyncHandshakeSignalFormingGroup = 10, // SYNC_NOTIFY_FORMING_GROUP = 10
    1.40 -
    1.41 -    // notificaton of actual group status
    1.42 -    PEPSyncHandshakeSignalSole = 254, // SYNC_NOTIFY_SOLE = 254,
    1.43 -    PEPSyncHandshakeSignalInGroup = 255 // SYNC_NOTIFY_IN_GROUP = 255
    1.44 +    PEPSyncHandshakeSignalSole = 254, // SYNC_NOTIFY_SOLE
    1.45 +    PEPSyncHandshakeSignalInGroup = 255 // SYNC_NOTIFY_IN_GROUP
    1.46  };
    1.47  
    1.48  typedef NS_CLOSED_ENUM(int, PEPSyncHandshakeResult) {