]> git.saurik.com Git - apple/security.git/blobdiff - keychain/SecureObjectSync/SOSPeerOTRTimer.h
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / SecureObjectSync / SOSPeerOTRTimer.h
diff --git a/keychain/SecureObjectSync/SOSPeerOTRTimer.h b/keychain/SecureObjectSync/SOSPeerOTRTimer.h
new file mode 100644 (file)
index 0000000..df65540
--- /dev/null
@@ -0,0 +1,21 @@
+//
+//  SOSPeerOTRTimer.h
+//
+
+#ifndef SOSPeerOTRTimer_h
+#define SOSPeerOTRTimer_h
+
+void SOSPeerOTRTimerFired(SOSAccount* account, SOSPeerRef peer, SOSEngineRef engine, SOSCoderRef coder);
+int SOSPeerOTRTimerTimeoutValue(SOSAccount* account, SOSPeerRef peer);
+void SOSPeerOTRTimerSetupAwaitingTimer(SOSAccount* account, SOSPeerRef peer, SOSEngineRef engine, SOSCoderRef coder);
+
+
+//functions to handle max retry counter
+void SOSPeerOTRTimerIncreaseOTRNegotiationRetryCount(SOSAccount* account, NSString* peerid);
+bool SOSPeerOTRTimerHaveReachedMaxRetryAllowance(SOSAccount* account, NSString* peerid);
+void SOSPeerOTRTimerClearMaxRetryCount(SOSAccount* account, NSString* peerid);
+bool SOSPeerOTRTimerHaveAnRTTAvailable(SOSAccount* account, NSString* peerid);
+void SOSPeerOTRTimerRemoveRTTTimeoutForPeer(SOSAccount* account, NSString* peerid);
+void SOSPeerOTRTimerRemoveLastSentMessageTimestamp(SOSAccount* account, NSString* peerid);
+
+#endif /* SOSPeerOTRTimer_h */