Skip to content

Commit 82aac72

Browse files
Copilot0xrinegade
andcommitted
Fix webpki security vulnerability RUSTSEC-2021-0145
Co-authored-by: 0xrinegade <[email protected]>
1 parent 21812b2 commit 82aac72

File tree

5 files changed

+1
-45
lines changed

5 files changed

+1
-45
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ colored = "3.0.0"
3434
url = "2.5.4"
3535
serde_json = "1.0.140"
3636
dirs = "6.0.0"
37-
webpki = "0.22.4"
37+
3838

3939
[dev-dependencies]
4040
assert_cmd = "2.0.16"

src/main.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,6 @@ struct Config {
3030
no_color: bool,
3131
}
3232

33-
// Wrapper type for webpki::Error to implement traits
34-
#[derive(Debug)]
35-
struct WebPkiError(webpki::Error);
36-
37-
impl std::fmt::Display for WebPkiError {
38-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39-
write!(f, "WebPkiError: {:?}", self.0)
40-
}
41-
}
42-
43-
impl std::error::Error for WebPkiError {}
44-
45-
// Convert from webpki::Error to WebPkiError
46-
impl From<webpki::Error> for WebPkiError {
47-
fn from(error: webpki::Error) -> Self {
48-
WebPkiError(error)
49-
}
50-
}
51-
5233
#[tokio::main]
5334
async fn main() -> Result<(), Box<dyn std::error::Error>> {
5435
let app_matches = parse_command_line();

src/prelude.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ pub use crate::utils::dashboard;
1515
pub use crate::utils::examples;
1616
// Color formatting utilities
1717
pub use crate::utils::color;
18-
// WebPKI error wrapper
19-
pub use crate::utils::webpki_error;
2018

2119
/// Type alias for progress callback functions
2220
///

src/utils/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ pub mod ssh_deploy;
2828
pub mod svm_info;
2929

3030
// External dependency wrappers
31-
/// Wrapper for webpki::Error to implement std::error::Error trait
32-
pub mod webpki_error;
3331

3432
/// Loads a YAML configuration file and deserializes it into the specified type
3533
///

src/utils/webpki_error.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)