From 9ebc3ff3fdd5b961c8a0ea3fa1c4db6a56e5aa3c Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Tue, 15 Oct 2024 14:41:32 -0700 Subject: [PATCH] cms: losen lifetime of the signature This is a followup on #1532. The lifetime requirement on the signature was a mistake. --- cms/src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/src/builder.rs b/cms/src/builder.rs index 5f49fd31a..9f658ef50 100644 --- a/cms/src/builder.rs +++ b/cms/src/builder.rs @@ -438,7 +438,7 @@ impl<'s> SignedDataBuilder<'s> { S: Keypair + DynSignatureAlgorithmIdentifier, S: AsyncSigner, S::VerifyingKey: EncodePublicKey, - Signature: SignatureBitStringEncoding + 'static, + Signature: SignatureBitStringEncoding, { let signer_info = signer_info_builder .build_async::(signer) @@ -461,7 +461,7 @@ impl<'s> SignedDataBuilder<'s> { S: Keypair + DynSignatureAlgorithmIdentifier, S: AsyncRandomizedSigner, S::VerifyingKey: EncodePublicKey, - Signature: SignatureBitStringEncoding + 'static, + Signature: SignatureBitStringEncoding, { let signer_info = signer_info_builder .build_with_rng_async::(signer, rng)