summaryrefslogtreecommitdiffstats
path: root/openpgp/src/policy.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-07 16:30:52 +0100
committerAzul <azul@riseup.net>2020-12-08 10:36:50 +0100
commit52794155913ce1fa78ce01a41b29c67e721e9847 (patch)
tree1d1d5776f8aca2594031916fe9179aa90e41ed8c /openpgp/src/policy.rs
parent88df27d0ae174b87e980371c5600d470516ed116 (diff)
openpgp: Require Policies to be Send and Sync.
- This ensures that all types with Policies (`Valid*`) are `Send` and `Sync`.
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r--openpgp/src/policy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs
index fc74fe59..4920317b 100644
--- a/openpgp/src/policy.rs
+++ b/openpgp/src/policy.rs
@@ -62,7 +62,7 @@ use cutofflist::{
};
/// A policy for cryptographic operations.
-pub trait Policy : fmt::Debug {
+pub trait Policy : fmt::Debug + Send + Sync {
/// Returns an error if the signature violates the policy.
///
/// This function performs the last check before the library