]> git.saurik.com Git - apple/security.git/blame - OSX/sec/SOSCircle/SecureObjectSync/SOSPeerInfoDER.h
Security-57740.60.18.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSPeerInfoDER.h
CommitLineData
5c19dc3a
A
1//
2// SOSPeerInfoDER.h
3// sec
4//
5// Created by Richard Murphy on 2/9/15.
6//
7//
8
9#ifndef _sec_SOSPeerInfoDER_
10#define _sec_SOSPeerInfoDER_
11
12#include <corecrypto/ccder.h>
13#include <utilities/der_date.h>
14#include <Security/SecureObjectSync/SOSPeerInfo.h>
15
16#include <stdio.h>
17//
18// DER Import Export
19//
20SOSPeerInfoRef SOSPeerInfoCreateFromDER(CFAllocatorRef allocator, CFErrorRef* error,
21 const uint8_t** der_p, const uint8_t *der_end);
22
23SOSPeerInfoRef SOSPeerInfoCreateFromData(CFAllocatorRef allocator, CFErrorRef* error,
24 CFDataRef peerinfo_data);
25
26size_t SOSPeerInfoGetDEREncodedSize(SOSPeerInfoRef peer, CFErrorRef *error);
27uint8_t* SOSPeerInfoEncodeToDER(SOSPeerInfoRef peer, CFErrorRef* error,
28 const uint8_t* der, uint8_t* der_end);
29
30CFDataRef SOSPeerInfoCopyEncodedData(SOSPeerInfoRef peer, CFAllocatorRef allocator, CFErrorRef *error);
31
32#endif /* defined(_sec_SOSPeerInfoDER_) */