Debian Codegraph @

debian/rust-vendor/aws-lc-sys/aws-lc/crypto/x509/x_exten.c

raw
1 // Copyright (C) 1995-1998 Eric Young ([email protected]) All rights reserved.
2 // SPDX-License-Identifier: Apache-2.0
3
4 #include <openssl/asn1.h>
5 #include <openssl/asn1t.h>
6 #include <openssl/cipher.h>
7 #include <openssl/x509.h>
8
9 #include "internal.h"
10
11
12 ASN1_SEQUENCE(X509_EXTENSION) = {
13 ASN1_SIMPLE(X509_EXTENSION, object, ASN1_OBJECT),
14 ASN1_OPT(X509_EXTENSION, critical, ASN1_BOOLEAN),
15 ASN1_SIMPLE(X509_EXTENSION, value, ASN1_OCTET_STRING),
16 } ASN1_SEQUENCE_END(X509_EXTENSION)
17
18 ASN1_ITEM_TEMPLATE(X509_EXTENSIONS) =
19 ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, Extension, X509_EXTENSION)
20 ASN1_ITEM_TEMPLATE_END(X509_EXTENSIONS)
21
22 IMPLEMENT_ASN1_FUNCTIONS_const(X509_EXTENSION)
23 IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(X509_EXTENSIONS, X509_EXTENSIONS,
24 X509_EXTENSIONS)
25 IMPLEMENT_ASN1_DUP_FUNCTION_const(X509_EXTENSION)