1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! CertBag-related types
use ;
use Sequence;
/// The `CertBag` type is defined in [RFC 7292 Section 4.2.4].
///
///```text
/// CRLBag ::= SEQUENCE {
/// crlId BAG-TYPE.&id ({CRLTypes}),
/// crltValue [0] EXPLICIT BAG-TYPE.&Type ({CRLTypes}{@crlId})
/// }
///```
///
/// [RFC 7292 Section 4.2.4]: https://www.rfc-editor.org/rfc/rfc7292#section-4.2.4
// todo defer: add support for other CRL types
/// The `CRLTypes` type is defined in [RFC 7292 Section 4.2.4].
///
///```text
/// x509CRL BAG-TYPE ::=
/// {OCTET STRING IDENTIFIED BY {crlTypes 1}}
/// -- DER-encoded X.509 CRL stored in OCTET STRING
///
/// CRLTypes BAG-TYPE ::= {
/// x509CRL,
/// ... -- For future extensions
/// }
///```
///
/// [RFC 7292 Section 4.2.4]: https://www.rfc-editor.org/rfc/rfc7292#section-4.2.4
pub type CrlTypes = OctetString;