Browse Source

Fix the conditional compilation

pull/39/head
Rodolphe Breard 4 years ago
parent
commit
b08da88bcf
  1. 5
      acme_common/src/crypto/openssl_certificate.rs

5
acme_common/src/crypto/openssl_certificate.rs

@ -76,7 +76,10 @@ impl X509Certificate {
let digest = MessageDigest::sha256(); let digest = MessageDigest::sha256();
#[cfg(any(ed25519, ed448))] #[cfg(any(ed25519, ed448))]
let digest = match key_pair.key_type { 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(), _ => MessageDigest::sha256(),
}; };
let inner_cert = gen_certificate(domain, &key_pair, &digest, acme_ext)?; let inner_cert = gen_certificate(domain, &key_pair, &digest, acme_ext)?;

Loading…
Cancel
Save