]> git.saurik.com Git - apple/security.git/blobdiff - OSX/sec/SOSCircle/SecureObjectSync/SOSRingUtils.h
Security-57740.20.22.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSRingUtils.h
index d8912c88e26c18ff9d2c65383de51491190acd90..0b97e4633064f42f84d5955fe9c2701d0ecb485c 100644 (file)
@@ -36,6 +36,11 @@ void SOSRingAssertStable(SOSRingRef ring)
     assert(ring->data);
 }
 
+static inline
+bool SOSRingIsStable(SOSRingRef ring) {
+    return (ring) && (ring->unSignedInformation) && (ring->signedInformation) && (ring->signatures)&& (ring->data);
+}
+
 /* unSignedInformation Dictionary Keys */
 extern CFStringRef sApplicantsKey;
 extern CFStringRef sRejectionsKey;
@@ -74,8 +79,8 @@ SOSConcordanceStatus SOSRingPeerKeyConcordanceTrust(SOSFullPeerInfoRef me, CFSet
 bool SOSRingHasPeerWithID(SOSRingRef ring, CFStringRef peerid, CFErrorRef *error);
 
 int SOSRingCountPeers(SOSRingRef ring);
-CFStringRef SOSRingSignerList(SOSRingRef ring);
-CFDictionaryRef SOSRingPeerIDList(SOSRingRef ring);
+CFStringRef SOSRingCopySignerList(SOSRingRef ring);
+CFDictionaryRef SOSRingCopyPeerIDList(SOSRingRef ring);
 
 
 int SOSRingCountApplicants(SOSRingRef ring);
@@ -94,6 +99,7 @@ const char *SOSRingGetNameC(SOSRingRef ring);
 
 void SOSRingGenerationIncrement(SOSRingRef ring);
 bool SOSRingIsOlderGeneration(SOSRingRef olderRing, SOSRingRef newerRing);
+void SOSRingGenerationCreateWithBaseline(SOSRingRef newring, SOSRingRef baseline);
 
 bool SOSRingSetApplicants(SOSRingRef ring, CFMutableSetRef applicants);