summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-09-12 12:51:07 +0200
committerJustus Winter <justus@sequoia-pgp.org>2023-09-12 14:31:08 +0200
commitce6ee4006b7c57b5bed7090efaeffc09905f2ef5 (patch)
tree48b08d473644bcef52e61c323e034f569c92fd8d
parentf4addd7cc4163302a62a922c7deb1a84db66c898 (diff)
openpgp: Fix building without compression support.
-rw-r--r--openpgp/src/packet/signature.rs8
-rw-r--r--openpgp/src/parse.rs4
2 files changed, 8 insertions, 4 deletions
diff --git a/openpgp/src/packet/signature.rs b/openpgp/src/packet/signature.rs
index 9f40f2a2..45dd53ac 100644
--- a/openpgp/src/packet/signature.rs
+++ b/openpgp/src/packet/signature.rs
@@ -3494,7 +3494,7 @@ mod test {
use crate::KeyID;
use crate::cert::prelude::*;
use crate::crypto;
- use crate::parse::{Parse, PacketParserBuilder};
+ use crate::parse::Parse;
use crate::packet::Key;
use crate::packet::key::Key4;
use crate::types::Curve;
@@ -3506,7 +3506,11 @@ mod test {
use super::*;
use crate::Cert;
- use crate::parse::{PacketParserResult, PacketParser};
+ use crate::parse::{
+ PacketParserBuilder,
+ PacketParserResult,
+ PacketParser,
+ };
struct Test<'a> {
key: &'a str,
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs
index 495f866e..af38d8a8 100644
--- a/openpgp/src/parse.rs
+++ b/openpgp/src/parse.rs
@@ -2104,9 +2104,9 @@ impl PacketParser<'_> {
/// # use openpgp::parse::{Parse, PacketParserResult, PacketParserBuilder};
/// // Parse a signed message, verify using the signer's key.
/// let message_data: &[u8] = // ...
- /// # include_bytes!("../tests/data/messages/signed-1-sha256-testy.gpg");
+ /// # include_bytes!("../tests/data/messages/signed-1-eddsa-ed25519.pgp");
/// # let cert: Cert = // ...
- /// # Cert::from_bytes(include_bytes!("../tests/data/keys/testy.pgp"))?;
+ /// # Cert::from_bytes(include_bytes!("../tests/data/keys/emmelie-dorothea-dina-samantha-awina-ed25519.pgp"))?;
/// let signer = // ...
/// # cert.primary_key().key();
/// let mut good = false;