]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSPeerOTRTimer.h
Security-58286.41.2.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSPeerOTRTimer.h
1 //
2 // SOSPeerOTRTimer.h
3 //
4
5 #ifndef SOSPeerOTRTimer_h
6 #define SOSPeerOTRTimer_h
7
8 void SOSPeerOTRTimerFired(SOSAccount* account, SOSPeerRef peer, SOSEngineRef engine, SOSCoderRef coder);
9 int SOSPeerOTRTimerTimeoutValue(SOSAccount* account, SOSPeerRef peer);
10 void SOSPeerOTRTimerSetupAwaitingTimer(SOSAccount* account, SOSPeerRef peer, SOSEngineRef engine, SOSCoderRef coder);
11
12 //KVS global config
13 void SOSPeerOTRTimerCreateKVSConfigDict(SOSAccount* account, CFNumberRef timeout, CFStringRef peerid);
14
15
16 //functions to handle max retry counter
17 void SOSPeerOTRTimerIncreaseOTRNegotiationRetryCount(SOSAccount* account, NSString* peerid);
18 bool SOSPeerOTRTimerHaveReachedMaxRetryAllowance(SOSAccount* account, NSString* peerid);
19 void SOSPeerOTRTimerClearMaxRetryCount(SOSAccount* account, NSString* peerid);
20 bool SOSPeerOTRTimerHaveAnRTTAvailable(SOSAccount* account, NSString* peerid);
21 void SOSPeerOTRTimerRemoveRTTTimeoutForPeer(SOSAccount* account, NSString* peerid);
22 void SOSPeerOTRTimerRemoveLastSentMessageTimestamp(SOSAccount* account, NSString* peerid);
23
24 #endif /* SOSPeerOTRTimer_h */