Compare commits

...

4 Commits

Author SHA1 Message Date
Kevin Yue
0c411a542f
fix: enhance OpenSSL compatibility mode
Related: #437
2024-11-02 09:36:11 +00:00
Kevin Yue
1e70dd088f
Release 2.3.8 2024-10-31 14:50:24 +00:00
Kevin Yue
2dc7f97ff0
Merge branch 'dev' into main 2024-10-31 14:36:50 +00:00
Kevin Yue
516d685c9e
fix: saved credentials not working 2024-10-30 16:13:20 +00:00
6 changed files with 29 additions and 11 deletions

14
Cargo.lock generated
View File

@ -579,7 +579,7 @@ dependencies = [
[[package]]
name = "common"
version = "2.3.7"
version = "2.3.8"
dependencies = [
"is_executable",
]
@ -1449,7 +1449,7 @@ dependencies = [
[[package]]
name = "gpapi"
version = "2.3.7"
version = "2.3.8"
dependencies = [
"anyhow",
"base64 0.21.5",
@ -1485,7 +1485,7 @@ dependencies = [
[[package]]
name = "gpauth"
version = "2.3.7"
version = "2.3.8"
dependencies = [
"anyhow",
"clap",
@ -1506,7 +1506,7 @@ dependencies = [
[[package]]
name = "gpclient"
version = "2.3.7"
version = "2.3.8"
dependencies = [
"anyhow",
"clap",
@ -1528,7 +1528,7 @@ dependencies = [
[[package]]
name = "gpgui-helper"
version = "2.3.7"
version = "2.3.8"
dependencies = [
"anyhow",
"clap",
@ -1546,7 +1546,7 @@ dependencies = [
[[package]]
name = "gpservice"
version = "2.3.7"
version = "2.3.8"
dependencies = [
"anyhow",
"axum",
@ -2625,7 +2625,7 @@ dependencies = [
[[package]]
name = "openconnect"
version = "2.3.7"
version = "2.3.8"
dependencies = [
"cc",
"common",

View File

@ -5,7 +5,7 @@ members = ["crates/*", "apps/gpclient", "apps/gpservice", "apps/gpauth", "apps/g
[workspace.package]
rust-version = "1.70"
version = "2.3.7"
version = "2.3.8"
authors = ["Kevin Yue <k3vinyue@gmail.com>"]
homepage = "https://github.com/yuezk/GlobalProtect-openconnect"
edition = "2021"

View File

@ -50,7 +50,7 @@ struct Cli {
#[command(subcommand)]
command: CliCommand,
#[arg(long, help = "Get around the OpenSSL `unsafe legacy renegotiation` error")]
#[arg(long, help = "Uses extended compatibility mode for OpenSSL operations to support a broader range of systems and formats.")]
fix_openssl: bool,
#[arg(long, help = "Ignore the TLS errors")]
ignore_tls_errors: bool,

View File

@ -1,5 +1,12 @@
# Changelog
## 2.3.8 - 2024-10-31
- GUI: support configure the external browser to use for authentication (fix [#423](https://github.com/yuezk/GlobalProtect-openconnect/issues/423))
- GUI: add option to remember the credential (fix [#420](https://github.com/yuezk/GlobalProtect-openconnect/issues/420))
- GUI: fix the credential not saved issue (fix [#420](https://github.com/yuezk/GlobalProtect-openconnect/issues/420))
- CLI: fix the default browser detection issue (fix [#416](https://github.com/yuezk/GlobalProtect-openconnect/issues/416))
## 2.3.7 - 2024-08-16
- Fix the Rust type inference regression [issue in 1.80](https://github.com/rust-lang/rust/issues/125319).

View File

@ -194,7 +194,6 @@ impl Credential {
Some(cred.prelogon_user_auth_cookie()),
None,
),
// Use the empty string as the password if auth_cookie is present
Credential::Cached(cred) => (
cred.password(),
None,

View File

@ -10,12 +10,24 @@ pub fn openssl_conf() -> String {
[openssl_init]
ssl_conf = ssl_sect
providers = provider_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
Options = {}",
Options = {}
[provider_sect]
default = default_sect
legacy = legacy_sect
[default_sect]
activate = 1
[legacy_sect]
activate = 1
",
option
)
}