Skip to content

Commit

Permalink
feat: add new init_default_crypto func
Browse files Browse the repository at this point in the history
Signed-off-by: Martichou <m@rtin.fyi>
  • Loading branch information
Martichou committed Sep 22, 2024
1 parent 4cf50c0 commit 8f7eeec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,7 @@ pub fn get_session_middleware(
.cookie_content_security(CookieContentSecurity::Signed)
.build()
}

pub fn init_default_crypto() {
rustls::crypto::aws_lc_rs::default_provider().install_default().unwrap();
}

0 comments on commit 8f7eeec

Please sign in to comment.