rust-openssl / rust-openssl/rust-openssl
Missing SSL_CTX_clear_mode and SSL_CTX_get_mode functions.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 841
- Avg merge
- 6h 51m
- Merged PRs (30d)
- 4
Description
In OpenSSL docs there are described SSL_CTX_clear_mode and SSL_CTX_get_mode functions.
It seems that library rust-openssl does not expose those functions. Is it possible to create bindings for them or other/newer functions should be used instead?
I see that https://docs.rs/openssl-sys/0.9.104/src/openssl_sys/ssl.rs.html#245-247 even SSL_CTX_set_mode does not use underlying OpenSSL's provided SSL_CTX_set_mode.
pub unsafe fn SSL_CTX_set_mode(ctx: *mut SSL_CTX, op: c_long) -> c_long {
SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, op, ptr::null_mut())
}
It SSL_CTX_ctrl docs there is comment:
These functions should never be called directly.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the openssl_sys ssl.rs definitions around SSL_CTX_set_mode and compare them with the linked OpenSSL documentation for SSL_CTX_clear_mode and SSL_CTX_get_mode. Determine how these functions should be exposed alongside the existing binding; done means the requested functions are available without relying on direct SSL_CTX_ctrl calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100