diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-03-03 14:04:14 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-03-03 14:04:14 +0100 |
commit | 692b6a273befc3df9e32427e6d5c884e83c5f0ff (patch) | |
tree | 0296125245128cb22f83eacad1c8602acb29740a /openpgp/src/policy.rs | |
parent | d4a105ba331c4056d31f119c42fecac7d352d124 (diff) |
openpgp: Mark experimental features.
- Fixes #446.
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r-- | openpgp/src/policy.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs index 79e2da79..7e16273c 100644 --- a/openpgp/src/policy.rs +++ b/openpgp/src/policy.rs @@ -121,6 +121,8 @@ pub trait Policy : fmt::Debug { /// /// With this function, you can prevent the use of insecure AEAD /// constructions. + /// + /// This feature is [experimental](../index.html#experimental-features). fn aead_algorithm(&self, _algo: AEADAlgorithm) -> Result<()> { Ok(()) } @@ -632,11 +634,15 @@ impl<'a> StandardPolicy<'a> { } /// Always considers `s` to be secure. + /// + /// This feature is [experimental](../index.html#experimental-features). pub fn accept_aead_algo(&mut self, a: AEADAlgorithm) { self.aead_algos.set(a, ACCEPT); } /// Always considers `s` to be insecure. + /// + /// This feature is [experimental](../index.html#experimental-features). pub fn reject_aead_algo(&mut self, a: AEADAlgorithm) { self.aead_algos.set(a, REJECT); } @@ -647,6 +653,8 @@ impl<'a> StandardPolicy<'a> { /// algorithm has no known vulnerabilities. /// /// By default, we accept all AEAD modes. + /// + /// This feature is [experimental](../index.html#experimental-features). pub fn reject_aead_algo_at<C>(&mut self, a: AEADAlgorithm, cutoff: C) where C: Into<Option<SystemTime>>, @@ -657,6 +665,8 @@ impl<'a> StandardPolicy<'a> { } /// Returns the cutoff times for the specified hash algorithm. + /// + /// This feature is [experimental](../index.html#experimental-features). pub fn aead_algo_cutoff(&self, a: AEADAlgorithm) -> Option<SystemTime> { self.aead_algos.cutoff(a).map(|t| t.into()) |