5 // Created by Richard Murphy on 3/3/15.
9 #ifndef _sec_SOSRingBasic_
10 #define _sec_SOSRingBasic_
12 #include "SOSRingTypes.h"
14 SOSRingRef
SOSRingCreate_Basic(CFStringRef name
, CFStringRef myPeerID
, CFErrorRef
*error
);
15 bool SOSRingResetToEmpty_Basic(SOSRingRef ring
, CFStringRef myPeerID
, CFErrorRef
*error
);
16 SOSRingStatus
SOSRingDeviceIsInRing_Basic(SOSRingRef ring
, CFStringRef peerID
);
18 bool SOSRingResetToOffering_Basic(SOSRingRef ring
, SecKeyRef user_privkey
, SOSFullPeerInfoRef requestor
, CFErrorRef
*error
);
19 bool SOSRingApply_Basic(SOSRingRef ring
, SecKeyRef user_pubkey
, SOSFullPeerInfoRef requestor
, CFErrorRef
*error
);
20 bool SOSRingWithdraw_Basic(SOSRingRef ring
, SecKeyRef user_privkey
, SOSFullPeerInfoRef requestor
, CFErrorRef
*error
);
21 bool SOSRingGenerationSign_Basic(SOSRingRef ring
, SecKeyRef user_privkey
, SOSFullPeerInfoRef requestor
, CFErrorRef
*error
);
22 bool SOSRingConcordanceSign_Basic(SOSRingRef ring
, SOSFullPeerInfoRef requestor
, CFErrorRef
*error
);
23 bool SOSRingSetPayload_Basic(SOSRingRef ring
, SecKeyRef user_privkey
, CFDataRef payload
, SOSFullPeerInfoRef requestor
, CFErrorRef
*error
);
24 CFDataRef
SOSRingGetPayload_Basic(SOSRingRef ring
, CFErrorRef
*error
);
26 extern ringFuncStruct basic
;
28 #endif /* defined(_sec_SOSRingBasic_) */