]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/x509/x_exten.c
Reorganize local header files
[thirdparty/openssl.git] / crypto / x509 / x_exten.c
CommitLineData
0f113f3e 1/*
b1322259 2 * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
9d6b1ce6 3 *
3e4b43b9 4 * Licensed under the Apache License 2.0 (the "License"). You may not use
b1322259
RS
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
d02b48c6
RE
8 */
9
9d6b1ce6 10#include <stddef.h>
f0e8ae72 11#include <openssl/x509.h>
9d6b1ce6
DSH
12#include <openssl/asn1.h>
13#include <openssl/asn1t.h>
706457b7 14#include "x509_local.h"
d02b48c6 15
9d6b1ce6 16ASN1_SEQUENCE(X509_EXTENSION) = {
0f113f3e
MC
17 ASN1_SIMPLE(X509_EXTENSION, object, ASN1_OBJECT),
18 ASN1_OPT(X509_EXTENSION, critical, ASN1_BOOLEAN),
4392479c 19 ASN1_EMBED(X509_EXTENSION, value, ASN1_OCTET_STRING)
d339187b 20} ASN1_SEQUENCE_END(X509_EXTENSION)
d02b48c6 21
0f113f3e
MC
22ASN1_ITEM_TEMPLATE(X509_EXTENSIONS) =
23 ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, Extension, X509_EXTENSION)
67c8e7f4
DSH
24ASN1_ITEM_TEMPLATE_END(X509_EXTENSIONS)
25
9d6b1ce6 26IMPLEMENT_ASN1_FUNCTIONS(X509_EXTENSION)
67c8e7f4 27IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
1241126a 28IMPLEMENT_ASN1_DUP_FUNCTION(X509_EXTENSION)