Skip to content

Commit

Permalink
fix: enhance OpenSSL compatibility mode
Browse files Browse the repository at this point in the history
 Related: #437
  • Loading branch information
yuezk committed Nov 2, 2024
1 parent 1e70dd0 commit 0c411a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/gpclient/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 13 additions & 1 deletion crates/gpapi/src/utils/openssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down

0 comments on commit 0c411a5

Please sign in to comment.