From 6064f826d551a9db0bd42e9cf928feaf272e8d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Thu, 30 Jan 2025 08:05:03 +0100 Subject: [PATCH] Make CoseError thread safe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make it safe to send CoseErrors between threads Fixes: #114 Signed-off-by: Miguel Martín --- src/error.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/error.rs b/src/error.rs index dea9b2a..e31435c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -15,11 +15,11 @@ use aws_sdk_kms::{ /// Aggregation of all error types returned by this library pub enum CoseError { /// Failed to generate random bytes - EntropyError(Box), + EntropyError(Box), /// Computation of a cryptographic hash failed - HashingError(Box), + HashingError(Box), /// Signature could not be performed due to OpenSSL error. - SignatureError(Box), + SignatureError(Box), /// This feature is not yet fully implemented according /// to the spec. UnimplementedError, @@ -35,7 +35,7 @@ pub enum CoseError { /// Tag is missing or incorrect. TagError(Option), /// Encryption could not be performed due to OpenSSL error. - EncryptionError(Box), + EncryptionError(Box), /// TPM error occured #[cfg(feature = "key_tpm")] TpmError(tss_esapi::Error),