Revert CIPHERS set to null (#1273)

This commit is contained in:
Pierre Krieger
2019-10-09 12:31:09 +02:00
committed by GitHub
parent 084c7d0046
commit 11c2e5fbc5

View File

@ -42,7 +42,7 @@ const SHA_256: &str = "SHA256";
const SHA_512: &str = "SHA512"; const SHA_512: &str = "SHA512";
pub(crate) const DEFAULT_AGREEMENTS_PROPOSITION: &str = "P-256,P-384"; pub(crate) const DEFAULT_AGREEMENTS_PROPOSITION: &str = "P-256,P-384";
pub(crate) const DEFAULT_CIPHERS_PROPOSITION: &str = "NULL"; // "AES-128,AES-256,TwofishCTR"; pub(crate) const DEFAULT_CIPHERS_PROPOSITION: &str = "AES-128,AES-256,TwofishCTR";
pub(crate) const DEFAULT_DIGESTS_PROPOSITION: &str = "SHA256,SHA512"; pub(crate) const DEFAULT_DIGESTS_PROPOSITION: &str = "SHA256,SHA512";
/// Return a proposition string from the given sequence of `KeyAgreement` values. /// Return a proposition string from the given sequence of `KeyAgreement` values.
@ -214,3 +214,13 @@ impl Into<&'static digest::Algorithm> for Digest {
} }
} }
} }
#[cfg(test)]
mod tests {
#[test]
fn cipher_non_null() {
// This test serves as a safe-guard against accidentally pushing to master a commit that
// sets this constant to `NULL`.
assert!(!super::DEFAULT_CIPHERS_PROPOSITION.contains("NULL"));
}
}