File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -607,6 +607,8 @@ pub const CURLOPT_ISSUERCERT_BLOB: CURLoption = CURLOPTTYPE_BLOB + 295;
607
607
608
608
pub const CURLOPT_AWS_SIGV4 : CURLoption = CURLOPTTYPE_OBJECTPOINT + 305 ;
609
609
610
+ pub const CURLOPT_CAINFO_BLOB : CURLoption = CURLOPTTYPE_BLOB + 309 ;
611
+
610
612
pub const CURL_IPRESOLVE_WHATEVER : c_int = 0 ;
611
613
pub const CURL_IPRESOLVE_V4 : c_int = 1 ;
612
614
pub const CURL_IPRESOLVE_V6 : c_int = 2 ;
Original file line number Diff line number Diff line change @@ -1003,6 +1003,11 @@ impl Easy {
1003
1003
self . inner . key_password ( password)
1004
1004
}
1005
1005
1006
+ /// Same as [`Easy2::ssl_cainfo_blob`](struct.Easy2.html#method.ssl_cainfo_blob)
1007
+ pub fn ssl_cainfo_blob ( & mut self , blob : & [ u8 ] ) -> Result < ( ) , Error > {
1008
+ self . inner . ssl_cainfo_blob ( blob)
1009
+ }
1010
+
1006
1011
/// Same as [`Easy2::ssl_engine`](struct.Easy2.html#method.ssl_engine)
1007
1012
pub fn ssl_engine ( & mut self , engine : & str ) -> Result < ( ) , Error > {
1008
1013
self . inner . ssl_engine ( engine)
Original file line number Diff line number Diff line change @@ -2073,6 +2073,18 @@ impl<H> Easy2<H> {
2073
2073
self . setopt_str ( curl_sys:: CURLOPT_KEYPASSWD , & password)
2074
2074
}
2075
2075
2076
+ /// Set the SSL Certificate Authorities using an in-memory blob.
2077
+ ///
2078
+ /// The specified byte buffer should contain the binary content of one
2079
+ /// or more PEM-encoded CA certificates, which will be copied into
2080
+ /// the handle.
2081
+ ///
2082
+ /// By default this option is not set and corresponds to
2083
+ /// `CURLOPT_CAINFO_BLOB`.
2084
+ pub fn ssl_cainfo_blob ( & mut self , blob : & [ u8 ] ) -> Result < ( ) , Error > {
2085
+ self . setopt_blob ( curl_sys:: CURLOPT_CAINFO_BLOB , blob)
2086
+ }
2087
+
2076
2088
/// Set the SSL engine identifier.
2077
2089
///
2078
2090
/// This will be used as the identifier for the crypto engine you want to
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ fn main() {
66
66
if version < 77 {
67
67
match s {
68
68
"CURLVERSION_TENTH"
69
+ | "CURLOPT_CAINFO_BLOB"
69
70
| "CURLVERSION_NOW"
70
71
| "CURL_VERSION_ALTSVC"
71
72
| "CURL_VERSION_ZSTD"
You can’t perform that action at this time.
0 commit comments