#define SOSKVSKEYS_H
#include "SOSCircle.h"
-#include <Security/SecureObjectSync/SOSTransportMessage.h>
#include <Security/SecureObjectSync/SOSTransportMessageKVS.h>
-
+#include <Security/SecureObjectSync/SOSAccountPriv.h>
//
// MARK: Key formation
//
kAccountChangedKey,
kDebugInfoKey,
kRingKey,
- kPeerInfoKey,
kLastCircleKey,
kLastKeyParameterKey,
+ kOTRConfig,
kUnknownKey,
} SOSKVSKeyType;
extern const CFStringRef kSOSKVSAccountChangedKey;
extern const CFStringRef kSOSKVSRequiredKey;
extern const CFStringRef kSOSKVSOfficialDSIDKey;
-
-//extern const CFStringRef kSOSKVSDebugInfo;
+extern const CFStringRef kSOSKVSLastCleanupTimestampKey;
+extern const CFStringRef kSOSKVSOTRConfigVersion;
+extern const CFStringRef kSOSKVSWroteLastKeyParams;
extern const CFStringRef sCirclePrefix;
extern const CFStringRef sRetirementPrefix;
-extern const CFStringRef sLastCirclePushedPrefix;
-extern const CFStringRef sLastKeyParametersPushedPrefix;
extern const CFStringRef sDebugInfoPrefix;
SOSKVSKeyType SOSKVSKeyGetKeyType(CFStringRef key);
SOSKVSKeyType SOSKVSKeyGetKeyTypeAndParse(CFStringRef key, CFStringRef *circle, CFStringRef *peerInfo, CFStringRef *ring, CFStringRef *backupName, CFStringRef *from, CFStringRef *to);
CFStringRef SOSCircleKeyCreateWithCircle(SOSCircleRef circle, CFErrorRef *error);
-CFStringRef SOSPeerInfoKeyCreateWithName(CFStringRef peer_info_name, CFErrorRef *error);
CFStringRef SOSRingKeyCreateWithName(CFStringRef ring_name, CFErrorRef *error);
CFStringRef SOSRetirementKeyCreateWithCircleNameAndPeer(CFStringRef circle_name, CFStringRef retirement_peer_name);
CFStringRef SOSRetirementKeyCreateWithCircleAndPeer(SOSCircleRef circle, CFStringRef retirement_peer_name);
-CFStringRef SOSMessageKeyCreateFromTransportToPeer(SOSTransportMessageRef transport, CFStringRef peer_name);
-CFStringRef SOSMessageKeyCreateFromPeerToTransport(SOSTransportMessageRef transport, CFStringRef peer_name);
+CFStringRef SOSMessageKeyCreateFromTransportToPeer(SOSMessage* transport, CFStringRef myID, CFStringRef peer_name);
+CFStringRef SOSMessageKeyCreateFromPeerToTransport(SOSMessage* transport, CFStringRef myID, CFStringRef peer_name);
+CFStringRef SOSLastKeyParametersPushedKeyCreateWithAccountGestalt(SOSAccount* account);
CFStringRef SOSMessageKeyCreateWithCircleNameAndTransportType(CFStringRef circleName, CFStringRef transportType);
-CFStringRef SOSPeerInfoV2KeyCreateWithPeerName(CFStringRef peer_name);
CFStringRef SOSRingKeyCreateWithRingName(CFStringRef ring_name);
-CFStringRef SOSLastCirclePushedKeyCreateWithCircleNameAndPeerID(CFStringRef circleName, CFStringRef peerID);
-CFStringRef SOSLastCirclePushedKeyCreateWithAccountGestalt(SOSAccountRef account);
CFStringRef SOSLastKeyParametersPushedKeyCreateWithPeerID(CFStringRef peerID);
-CFStringRef SOSLastKeyParametersPushedKeyCreateWithAccountGestalt(SOSAccountRef account);
CFStringRef SOSDebugInfoKeyCreateWithTypeName(CFStringRef type_name);
#endif