Commit f350b89a authored by Nick Ashley's avatar Nick Ashley
Browse files

Take out #[deprecated] attributes

parent 99d9fb9d
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -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);

+0 −1
Original line number Diff line number Diff line
@@ -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;