From b08da88bcfda0fe2b6a862ea01f04fc24366d79d Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Wed, 26 Aug 2020 14:12:37 +0200 Subject: [PATCH] Fix the conditional compilation --- acme_common/src/crypto/openssl_certificate.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acme_common/src/crypto/openssl_certificate.rs b/acme_common/src/crypto/openssl_certificate.rs index 424054b..7838431 100644 --- a/acme_common/src/crypto/openssl_certificate.rs +++ b/acme_common/src/crypto/openssl_certificate.rs @@ -76,7 +76,10 @@ impl X509Certificate { let digest = MessageDigest::sha256(); #[cfg(any(ed25519, ed448))] let digest = match key_pair.key_type { - KeyType::Ed25519 | KeyType::Ed448 => MessageDigest::null(), + #[cfg(ed25519)] + KeyType::Ed25519 => MessageDigest::null(), + #[cfg(ed448)] + KeyType::Ed448 => MessageDigest::null(), _ => MessageDigest::sha256(), }; let inner_cert = gen_certificate(domain, &key_pair, &digest, acme_ext)?;