Skip to content

Commit

Permalink
sample(openssl-hook): use LD_PRELOAD hook openssl lib to support ra…
Browse files Browse the repository at this point in the history
…ts-rs anywhere use openssl

1. add useful api to rats-rs/crypto module. export rats-rs/crypto
module, some openssl fundamental variable to openssl-hook.
2. add openssl-hook sample, check the README.md for more
information.
  • Loading branch information
csyJoy authored and imlk0 committed Sep 3, 2024
1 parent fe1e961 commit 5c4785a
Show file tree
Hide file tree
Showing 5 changed files with 624 additions and 4 deletions.
18 changes: 18 additions & 0 deletions examples/openssl_hook/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "openssl_hook"
edition.workspace = true
version.workspace = true
readme.workspace = true
license.workspace = true

[lib]
crate-type = ["cdylib"]

[dependencies]
ctor = "0.2.8"
log = {workspace = true}
env_logger = {workspace = true}
libc = "0.2"
anyhow = {workspace = true}
lazy_static = "1.5"
rats-rs = {path = "../../rats-rs", features = ["is-sync"]}
Loading

0 comments on commit 5c4785a

Please sign in to comment.