Skip to content

Commit

Permalink
handle openssl 3 properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Aug 18, 2023
1 parent c974f3a commit 895aac7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/src/binaries/platform.rs
Expand Up @@ -126,7 +126,10 @@ fn parse_openssl_version(v: &str) -> String {
let r = Regex::new(r"^OpenSSL\s(\d+\.\d+)\.\d");
let matches = r.unwrap().captures(v).unwrap();
if matches.len() > 0 {
matches.get(1).unwrap().as_str().to_string() + ".x"
match matches.get(1).unwrap().as_str() {
"3.1" => "3.0.x".to_string(),
version => format!("{version}.x"),
}
} else {
"1.1.x".to_string()
}
Expand Down

0 comments on commit 895aac7

Please sign in to comment.