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
40
41
42
43
//! `CMSVersion` [RFC 5652 ยง 10.2.5](https://datatracker.ietf.org/doc/html/rfc5652#section-10.2.5)
use Ordering;
use ;
/// The CMSVersion type gives a syntax version number, for compatibility
/// with future revisions of this specification.
/// ```text
/// CMSVersion ::= INTEGER
/// { v0(0), v1(1), v2(2), v3(3), v4(4), v5(5) }
/// ```
///
/// See [RFC 5652 10.2.5](https://datatracker.ietf.org/doc/html/rfc5652#section-10.2.5).
// TODO(tarcieri): fix `ValueOrd` derive for this case (`asn1` attribute is clashing)