File tree 2 files changed +7
-0
lines changed
gix-transport/src/client/blocking_io/http
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ pub fn new() -> (
157
157
verbose,
158
158
ssl_ca_info,
159
159
ssl_version,
160
+ ssl_verify,
160
161
http_version,
161
162
backend,
162
163
} ,
@@ -194,6 +195,8 @@ pub fn new() -> (
194
195
}
195
196
}
196
197
198
+ handle. ssl_verify_peer ( ssl_verify) ?;
199
+
197
200
if let Some ( http_version) = http_version {
198
201
let version = match http_version {
199
202
HttpVersion :: V1_1 => curl:: easy:: HttpVersion :: V11 ,
Original file line number Diff line number Diff line change @@ -179,6 +179,10 @@ pub struct Options {
179
179
pub ssl_ca_info : Option < PathBuf > ,
180
180
/// The SSL version or version range to use, or `None` to let the TLS backend determine which versions are acceptable.
181
181
pub ssl_version : Option < SslVersionRangeInclusive > ,
182
+ /// Controls whether to perform SSL identity verification or not. Turning this off is not recommended and can lead to
183
+ /// various security risks. An example where this may be needed is when an internal git server uses a self-signed
184
+ /// certificate and the user accepts the associated security risks.
185
+ pub ssl_verify : bool ,
182
186
/// The HTTP version to enforce. If unset, it is implementation defined.
183
187
pub http_version : Option < HttpVersion > ,
184
188
/// Backend specific options, if available.
You can’t perform that action at this time.
0 commit comments