Loading openssl/src/sha.rs +10 −4 Original line number Diff line number Diff line Loading @@ -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] { Loading Loading @@ -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); Loading openssl/src/ssl/mod.rs +0 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
openssl/src/sha.rs +10 −4 Original line number Diff line number Diff line Loading @@ -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] { Loading Loading @@ -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); Loading
openssl/src/ssl/mod.rs +0 −1 Original line number Diff line number Diff line Loading @@ -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; Loading