diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-02-15 11:53:26 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2022-02-15 12:46:50 +0100 |
commit | bca427f72487f29a637dc1c243ee1b404be46516 (patch) | |
tree | 7164318f97d6587faacafcec07b580087f2a594b | |
parent | f7e3e6fbb693add25401b792c495f4a35adacd55 (diff) |
openpgp: Skip test if algorithm is not supported.
-rw-r--r-- | openpgp/src/serialize/stream.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index 3de68e64..61fe94e3 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -3400,6 +3400,11 @@ mod test { } fn test_aead_messages(algo: AEADAlgorithm) -> Result<()> { + if ! algo.is_supported() { + eprintln!("Skipping because {} is not supported.", algo); + return Ok(()); + } + // AEAD data is of the form: // // [ chunk1 ][ tag1 ] ... [ chunkN ][ tagN ][ tag ] |