5 // Created by Richard Murphy on 12/4/14.
9 #ifndef sec_SOSPeerInfoPriv_h
10 #define sec_SOSPeerInfoPriv_h
12 #include <CoreFoundation/CFRuntime.h>
13 #include <CoreFoundation/CoreFoundation.h>
14 #include <utilities/SecCFWrappers.h>
16 struct __OpaqueSOSPeerInfo
{
19 CFMutableDictionaryRef description
;
23 CFDictionaryRef gestalt
;
26 /* V2 and beyond are listed below */
27 CFSetRef secproperties
;
28 CFMutableDictionaryRef v2Dictionary
;
31 SOSPeerInfoRef
SOSPeerInfoAllocate(CFAllocatorRef allocator
);
32 bool SOSPeerInfoSign(SecKeyRef privKey
, SOSPeerInfoRef peer
, CFErrorRef
*error
);
33 bool SOSPeerInfoVerify(SOSPeerInfoRef peer
, CFErrorRef
*error
);
34 void SOSPeerInfoSetVersionNumber(SOSPeerInfoRef pi
, int version
);
36 extern const CFStringRef peerIDLengthKey
;