]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSPeerOTRTimer.h
Security-58286.60.28.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
13 //functions to handle max retry counter
14 void SOSPeerOTRTimerIncreaseOTRNegotiationRetryCount(SOSAccount* account, NSString* peerid);
15 bool SOSPeerOTRTimerHaveReachedMaxRetryAllowance(SOSAccount* account, NSString* peerid);
16 void SOSPeerOTRTimerClearMaxRetryCount(SOSAccount* account, NSString* peerid);
17 bool SOSPeerOTRTimerHaveAnRTTAvailable(SOSAccount* account, NSString* peerid);
18 void SOSPeerOTRTimerRemoveRTTTimeoutForPeer(SOSAccount* account, NSString* peerid);
19 void SOSPeerOTRTimerRemoveLastSentMessageTimestamp(SOSAccount* account, NSString* peerid);
20
21 #endif /* SOSPeerOTRTimer_h */