rust-lang / git2-rs

libgit2 bindings for Rust
https://docs.rs/git2
Apache License 2.0
1.64k stars 380 forks source link

Allow setting GIT_OPT_SET_SSL_CERT_LOCATIONS option in libgit2 #995

Open aharbis opened 8 months ago

aharbis commented 8 months ago

The git2::opts module exposes some options, but not all. I'm interested in being able to set GIT_OPT_SET_SSL_CERT_LOCATIONS to control where libgit2 looks for SSL certificates.

If there is some workaround (maybe a build-time configuration?) that would also be helpful.

ehuss commented 8 months ago

A PR to add a binding for that option would be welcome. I think it would just roughly follow the form of the other options.

aharbis commented 8 months ago

PR raised: https://github.com/rust-lang/git2-rs/pull/997