Skip to content

Commit

Permalink
PROD-9297 review changes 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mridul-manohar committed Nov 12, 2024
1 parent cd308b4 commit d11e707
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion mbedtls/src/ssl/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use crate::alloc::List as MbedtlsList;
#[cfg(not(feature = "std"))]
use crate::alloc_prelude::*;
#[cfg(feature = "std")]
use crate::error::Error;
use crate::error::{codes, IntoResult, Result};
use crate::pk::dhparam::Dhm;
use crate::pk::Pk;
Expand Down
2 changes: 1 addition & 1 deletion mbedtls/src/ssl/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ impl<T> Context<T> {
// variable for that.
let peer_cert: &MbedtlsList<Certificate> =
UnsafeFrom::from(&((*self.handle().session).peer_cert) as *const *mut x509_crt as *const *const x509_crt)
.ok_or(codes::SslBadInputData.into())?;
.ok_or::<Error>(codes::SslBadInputData.into())?;
Ok(Some(peer_cert))
}
}
Expand Down

0 comments on commit d11e707

Please sign in to comment.