mirror of
https://github.com/darlinghq/darling-security.git
synced 2024-11-27 05:50:21 +00:00
28 lines
784 B
C
28 lines
784 B
C
//
|
|
// der_set.h
|
|
// utilities
|
|
//
|
|
// Created by Richard Murphy on 1/22/15.
|
|
// Copyright © 2015 Apple Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef _utilities_der_set_
|
|
#define _utilities_der_set_
|
|
|
|
#include <stdio.h>
|
|
#include <CoreFoundation/CoreFoundation.h>
|
|
#include <corecrypto/ccder.h>
|
|
|
|
// If you provide a set in *set, we will add elements to it and return the union.
|
|
const uint8_t* der_decode_set(CFAllocatorRef allocator,
|
|
CFSetRef* set, CFErrorRef *error,
|
|
const uint8_t* der, const uint8_t *der_end);
|
|
|
|
size_t der_sizeof_set(CFSetRef dict, CFErrorRef *error);
|
|
|
|
uint8_t* der_encode_set(CFSetRef set, CFErrorRef *error,
|
|
const uint8_t *der, uint8_t *der_end);
|
|
|
|
|
|
#endif /* defined(_utilities_der_set_) */
|