@@ -3813,6 +3813,46 @@ impl SslOpt {
38133813 SslOpt { bits : 0 }
38143814 }
38153815
3816+ /// Tell libcurl to automatically locate and use a client certificate for authentication,
3817+ /// when requested by the server.
3818+ ///
3819+ /// This option is only supported for Schannel (the native Windows SSL library).
3820+ /// Prior to 7.77.0 this was the default behavior in libcurl with Schannel.
3821+ ///
3822+ /// Since the server can request any certificate that supports client authentication in
3823+ /// the OS certificate store it could be a privacy violation and unexpected. (Added in 7.77.0)
3824+ pub fn auto_client_cert ( & mut self , on : bool ) -> & mut SslOpt {
3825+ self . flag ( curl_sys:: CURLSSLOPT_AUTO_CLIENT_CERT , on)
3826+ }
3827+
3828+ /// Tell libcurl to use the operating system's native CA store for certificate verification.
3829+ ///
3830+ /// Works only on Windows when built to use OpenSSL.
3831+ ///
3832+ /// This option is experimental and behavior is subject to change. (Added in 7.71.0)
3833+ pub fn native_ca ( & mut self , on : bool ) -> & mut SslOpt {
3834+ self . flag ( curl_sys:: CURLSSLOPT_NATIVE_CA , on)
3835+ }
3836+
3837+ /// Tells libcurl to ignore certificate revocation checks in case of missing or
3838+ /// offline distribution points for those SSL backends where such behavior is present.
3839+ ///
3840+ /// This option is only supported for Schannel (the native Windows SSL library).
3841+ ///
3842+ /// If combined with CURLSSLOPT_NO_REVOKE, the latter takes precedence. (Added in 7.70.0)
3843+ pub fn revoke_best_effort ( & mut self , on : bool ) -> & mut SslOpt {
3844+ self . flag ( curl_sys:: CURLSSLOPT_REVOKE_BEST_EFFORT , on)
3845+ }
3846+
3847+ /// Tells libcurl to not accept "partial" certificate chains, which it otherwise does by default.
3848+ ///
3849+ /// This option is only supported for OpenSSL and will fail the certificate verification
3850+ /// if the chain ends with an intermediate certificate and not with a root cert.
3851+ /// (Added in 7.68.0)
3852+ pub fn no_partial_chain ( & mut self , on : bool ) -> & mut SslOpt {
3853+ self . flag ( curl_sys:: CURLSSLOPT_NO_PARTIALCHAIN , on)
3854+ }
3855+
38163856 /// Tells libcurl to disable certificate revocation checks for those SSL
38173857 /// backends where such behavior is present.
38183858 ///
0 commit comments