From b5e73950b26a2921671e45dd91c47c7907b9992e Mon Sep 17 00:00:00 2001 From: Carl Wallace Date: Mon, 19 Feb 2024 10:53:12 -0500 Subject: [PATCH] Fix tagging mode on EncryptedValue structure (#1354) * fix CertRequest (should have used OptionalValidity, not Validity) * remove unused Validity reference * change tagging on EncryptedValue --- crmf/src/controls.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crmf/src/controls.rs b/crmf/src/controls.rs index 698d13cc3..bdf2d7ab0 100644 --- a/crmf/src/controls.rs +++ b/crmf/src/controls.rs @@ -179,35 +179,35 @@ pub enum EncryptedKey { pub struct EncryptedValue { #[asn1( context_specific = "0", - tag_mode = "EXPLICIT", + tag_mode = "IMPLICIT", constructed = "true", optional = "true" )] pub intended_alg: Option, #[asn1( context_specific = "1", - tag_mode = "EXPLICIT", + tag_mode = "IMPLICIT", constructed = "true", optional = "true" )] pub sym_alg: Option, #[asn1( context_specific = "2", - tag_mode = "EXPLICIT", + tag_mode = "IMPLICIT", constructed = "false", optional = "true" )] pub enc_sym_key: Option, #[asn1( context_specific = "3", - tag_mode = "EXPLICIT", + tag_mode = "IMPLICIT", constructed = "true", optional = "true" )] pub key_alg: Option, #[asn1( context_specific = "4", - tag_mode = "EXPLICIT", + tag_mode = "IMPLICIT", constructed = "false", optional = "true" )]