Skip to main content

pkix/crmf/
controls.rs

1/* Copyright (c) Fortanix, Inc.
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 */
7
8//! Controls-related types
9
10use yasna::{ASN1Result, BERDecodable, BERReader, DERWriter};
11
12use crate::{x509::AttributeTypeAndValue, DerWrite};
13
14derive_sequence_of!{
15    /// The `Controls` type is defined in [RFC 4211 Section 6].
16    ///
17    /// ```text
18    ///   Controls  ::= SEQUENCE SIZE(1..MAX) OF SingleAttribute
19    ///                     {{RegControlSet}}
20    /// ```
21    ///
22    /// [RFC 4211 Section 6]: https://www.rfc-editor.org/rfc/rfc4211#section-6
23    AttributeTypeAndValue => Controls
24}