diff --git a/openssl/src/sha.rs b/openssl/src/sha.rs index 5ecd6c343a545ab91e62e28970112867602eb397..dd026677c64c9b72aa105d178e7b9c17c356cdf0 100644 --- a/openssl/src/sha.rs +++ b/openssl/src/sha.rs @@ -41,9 +41,11 @@ use openssl_macros::corresponds; use std::mem::MaybeUninit; /// Computes the SHA1 hash of some data. -#[deprecated( - note = "SHA1 is known to be insecure - it should not be used unless required for compatibility with existing systems." -)] +/// +/// # Warning +/// +/// SHA1 is known to be insecure - it should not be used unless required for +/// compatibility with existing systems. #[corresponds(SHA1)] #[inline] pub fn sha1(data: &[u8]) -> [u8; 20] { @@ -101,7 +103,11 @@ pub fn sha512(data: &[u8]) -> [u8; 64] { cfg_if! { if #[cfg(not(osslconf = "OPENSSL_NO_DEPRECATED_3_0"))] { /// An object which calculates a SHA1 hash of some data. - #[deprecated(note = "SHA1 is known to be insecure - it should not be used unless required for compatibility with existing systems.")] + /// + /// # Warning + /// + /// SHA1 is known to be insecure - it should not be used unless required for + /// compatibility with existing systems. #[derive(Clone)] pub struct Sha1(ffi::SHA_CTX); diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index e70d790e1887e7c2df76cc0484b40e409cd14d4d..4304b88b679205631f34dcdc64447e787d805f64 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -172,7 +172,6 @@ bitflags! { /// Allow legacy insecure renegotiation with servers or clients that do not support secure /// renegotiation. - #[deprecated(note = "This is insecure and should not be used unless required for compatibility with existing systems.")] const ALLOW_UNSAFE_LEGACY_RENEGOTIATION = ffi::SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION;