]> git.saurik.com Git - apple/security.git/blob - OSX/utilities/der_set.h
Security-59754.41.1.tar.gz
[apple/security.git] / OSX / utilities / der_set.h
1 //
2 // der_set.h
3 // utilities
4 //
5 // Created by Richard Murphy on 1/22/15.
6 // Copyright © 2015 Apple Inc. All rights reserved.
7 //
8
9 #ifndef _utilities_der_set_
10 #define _utilities_der_set_
11
12 #include <stdio.h>
13 #include <CoreFoundation/CoreFoundation.h>
14 #include <corecrypto/ccder.h>
15
16 // If you provide a set in *set, we will add elements to it and return the union.
17 const uint8_t* der_decode_set(CFAllocatorRef allocator,
18 CFSetRef* set, CFErrorRef *error,
19 const uint8_t* der, const uint8_t *der_end);
20
21 size_t der_sizeof_set(CFSetRef dict, CFErrorRef *error);
22
23 uint8_t* der_encode_set(CFSetRef set, CFErrorRef *error,
24 const uint8_t *der, uint8_t *der_end);
25
26
27 #endif /* defined(_utilities_der_set_) */