summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-08 10:34:21 +0100
committerAzul <azul@riseup.net>2020-12-08 12:51:56 +0100
commit96dfdae428197dd180cf10cff54b96ce8bc35d7b (patch)
tree8d57c13921fdbc95bd3e0438e496d240a42676f2 /openpgp/src/crypto
parent6f77fb84cec4d3d62d3885ce6270919bc81419dc (diff)
openpgp: Add assert_send_and_sync! for more types.
- All types that are `Send` and `Sync` are checked now. - Fixes #627.
Diffstat (limited to 'openpgp/src/crypto')
-rw-r--r--openpgp/src/crypto/backend/cng/symmetric.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/crypto/backend/cng/symmetric.rs b/openpgp/src/crypto/backend/cng/symmetric.rs
index 432e6679..d3215eec 100644
--- a/openpgp/src/crypto/backend/cng/symmetric.rs
+++ b/openpgp/src/crypto/backend/cng/symmetric.rs
@@ -77,6 +77,7 @@ impl Mode for Mutex<cng::SymmetricAlgorithmKey> {
#[derive(Debug, thiserror::Error)]
#[error("Unsupported algorithm: {0}")]
pub struct UnsupportedAlgorithm(SymmetricAlgorithm);
+assert_send_and_sync!(UnsupportedAlgorithm);
impl From<UnsupportedAlgorithm> for Error {
fn from(value: UnsupportedAlgorithm) -> Error {