Skip to content

Commit

Permalink
fix(dgw): install the rustls crypto provider at start
Browse files Browse the repository at this point in the history
The installation was performed too late.
  • Loading branch information
CBenoit committed Nov 6, 2024
1 parent 5c1c60e commit 10aae47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions devolutions-gateway/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ fn main() -> anyhow::Result<()> {
println!("{conf_file_json}");
}
CliAction::Run { service_mode } => {
devolutions_gateway::tls::install_default_crypto_provider();

if service_mode {
service_controller()
.register(service_main_wrapper)
Expand Down
2 changes: 0 additions & 2 deletions devolutions-gateway/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ impl GatewayService {
);
}

devolutions_gateway::tls::install_default_crypto_provider();

if let Some(path) = conf.get_lib_xmf_path() {
// SAFETY: No initialisation or termination routine in the XMF library we should worry about for preconditions.
let result = unsafe { cadeau::xmf::init(path.as_str()) };
Expand Down

0 comments on commit 10aae47

Please sign in to comment.