From d2be079b7bbc20d5f99951138f9623c0aad2e3c5 Mon Sep 17 00:00:00 2001
From: Arthur Gautier <baloo@superbaloo.net>
Date: Tue, 15 Oct 2024 21:44:50 +0000
Subject: [PATCH] cms: losen lifetime of the signature (#1575)

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<Signature>,
         S::VerifyingKey: EncodePublicKey,
-        Signature: SignatureBitStringEncoding + 'static,
+        Signature: SignatureBitStringEncoding,
     {
         let signer_info = signer_info_builder
             .build_async::<S, Signature>(signer)
@@ -461,7 +461,7 @@ impl<'s> SignedDataBuilder<'s> {
         S: Keypair + DynSignatureAlgorithmIdentifier,
         S: AsyncRandomizedSigner<Signature>,
         S::VerifyingKey: EncodePublicKey,
-        Signature: SignatureBitStringEncoding + 'static,
+        Signature: SignatureBitStringEncoding,
     {
         let signer_info = signer_info_builder
             .build_with_rng_async::<S, Signature>(signer, rng)