summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-09-17 10:19:55 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-09-22 09:32:09 +0200
commit499372f18785a884dc819c03fa5d24ecd229211f (patch)
tree33b4ac0d0d196244bbc8a681029a8da9358f1ed8 /openpgp/src/serialize/stream.rs
parent6c12cbcf9d1396ec8028ea3f17430e3d20c3c89f (diff)
openpgp: Hide stream::Encryptor::aead_algo from public API.
- Mark `aead_algo` as available only during tests, - Remove support for AEAD from `sop`, - Mark `aead` parameter in FFI as unused, - openpgp-ffi: Drop `aead_algo` argument from `pgp_encryptor_new`, - Fixes #550.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs
index 15e9cb9d..7b356dba 100644
--- a/openpgp/src/serialize/stream.rs
+++ b/openpgp/src/serialize/stream.rs
@@ -2435,6 +2435,10 @@ impl<'a> Encryptor<'a> {
/// message.finalize()?;
/// # Ok(()) }
/// ```
+ // Function hidden from the public API due to
+ // https://gitlab.com/sequoia-pgp/sequoia/-/issues/550
+ // It is used only for tests so that it does not bit-rot.
+ #[cfg(test)]
pub fn aead_algo(mut self, algo: AEADAlgorithm) -> Self {
self.aead_algo = Some(algo);
self