blob: e895f88a0e3e2c609bc3f0e1b2a2b78f9d1e0f06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
use super::GeneralNames;
use crate::name::RelativeDistinguishedName;
use der::{Choice, ValueOrd};
/// DistributionPointName as defined in [RFC 5280 Section 4.2.1.13].
///
/// ```text
/// DistributionPointName ::= CHOICE {
/// fullName [0] GeneralNames,
/// nameRelativeToCRLIssuer [1] RelativeDistinguishedName
/// }
/// ```
///
/// [RFC 5280 Section 4.2.1.13]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.13
#[derive(Clone, Debug, Eq, PartialEq, Choice, ValueOrd)]
#[allow(missing_docs)]
pub enum DistributionPointName<'a> {
#[asn1(context_specific = "0", tag_mode = "IMPLICIT", constructed = "true")]
FullName(GeneralNames<'a>),
#[asn1(context_specific = "1", tag_mode = "IMPLICIT", constructed = "true")]
NameRelativeToCRLIssuer(RelativeDistinguishedName<'a>),
}
|