We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c76165b commit 58b8a27Copy full SHA for 58b8a27
1 file changed
der/tests/derive.rs
@@ -441,8 +441,19 @@ mod sequence {
441
pub typed: &'a [u8],
442
#[asn1(context_specific = "0")]
443
pub context_specific: bool,
444
+
445
#[asn1(optional = "true")]
446
pub optional: Option<bool>,
447
448
+ #[asn1(type = "OCTET STRING", optional = "true")]
449
+ pub optional_octet_string: Option<&'a [u8]>,
450
451
+ #[asn1(type = "BIT STRING", optional = "true")]
452
+ pub optional_bit_string: Option<&'a [u8]>,
453
454
+ #[asn1(optional = "true")]
455
+ pub optional_oid: Option<ObjectIdentifier>,
456
457
#[asn1(default = "default_false_example")]
458
pub default: bool,
459
#[asn1(type = "BIT STRING", context_specific = "1")]
0 commit comments