Skip to content

Commit

Permalink
PROD-9297 review changes 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mridul-manohar committed Nov 13, 2024
1 parent 432a86a commit 1cec541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions mbedtls/src/pk/dsa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
use crate::bignum::Mpi;
use crate::hash::{MdInfo, Type as MdType};
use crate::pk::rfc6979::generate_rfc6979_nonce;
#[cfg(not(feature = "std"))]
use crate::Error;
use crate::{error::codes, Result};

use crate::rng::Random;
Expand Down
7 changes: 3 additions & 4 deletions mbedtls/src/ssl/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ use mbedtls_sys::*;
use crate::alloc::List as MbedtlsList;
#[cfg(not(feature = "std"))]
use crate::alloc_prelude::*;
#[cfg(feature = "std")]
use crate::error::{codes, IntoResult, Result};
use crate::error::{IntoResult, Result};
use crate::pk::dhparam::Dhm;
use crate::pk::Pk;
use crate::private::UnsafeFrom;
Expand Down Expand Up @@ -268,7 +267,7 @@ impl Config {
Version::Tls1_1 => 2,
Version::Tls1_2 => 3,
_ => {
return Err(codes::SslBadHsProtocolVersion.into());
return Err(crate::error::codes::SslBadHsProtocolVersion.into());
}
};

Expand All @@ -283,7 +282,7 @@ impl Config {
Version::Tls1_1 => 2,
Version::Tls1_2 => 3,
_ => {
return Err(codes::SslBadHsProtocolVersion.into());
return Err(crate::error::codes::SslBadHsProtocolVersion.into());
}
};
unsafe { ssl_conf_max_version(self.into(), 3, minor) };
Expand Down

0 comments on commit 1cec541

Please sign in to comment.