]>
git.saurik.com Git - apple/security.git/blob - keychain/SecureObjectSync/SOSPeerInfoDER.h
5 // Created by Richard Murphy on 2/9/15.
9 #ifndef _sec_SOSPeerInfoDER_
10 #define _sec_SOSPeerInfoDER_
12 #include <corecrypto/ccder.h>
13 #include <utilities/der_date.h>
14 #include <Security/SecureObjectSync/SOSPeerInfo.h>
20 SOSPeerInfoRef
SOSPeerInfoCreateFromDER(CFAllocatorRef allocator
, CFErrorRef
* error
,
21 const uint8_t** der_p
, const uint8_t *der_end
);
23 SOSPeerInfoRef
SOSPeerInfoCreateFromData(CFAllocatorRef allocator
, CFErrorRef
* error
,
24 CFDataRef peerinfo_data
);
26 size_t SOSPeerInfoGetDEREncodedSize(SOSPeerInfoRef peer
, CFErrorRef
*error
);
27 uint8_t* SOSPeerInfoEncodeToDER(SOSPeerInfoRef peer
, CFErrorRef
* error
,
28 const uint8_t* der
, uint8_t* der_end
);
30 CFDataRef
SOSPeerInfoCopyEncodedData(SOSPeerInfoRef peer
, CFAllocatorRef allocator
, CFErrorRef
*error
);
32 #endif /* defined(_sec_SOSPeerInfoDER_) */