diff options
| author | Steven Fackler <[email protected]> | 2014-10-07 09:50:05 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-10-07 09:50:05 -0700 |
| commit | ad08bf4ed94c89be047ebf2db119e0eb465e821b (patch) | |
| tree | cdd9ceae4396b652705bc40e8f7ae406b6d22eac /src/ssl/mod.rs | |
| parent | Merge pull request #69 from vhbit/bn-zero-fix (diff) | |
| parent | Using `Path`s instead of plain strings (diff) | |
| download | rust-openssl-ad08bf4ed94c89be047ebf2db119e0eb465e821b.tar.xz rust-openssl-ad08bf4ed94c89be047ebf2db119e0eb465e821b.zip | |
Merge pull request #71 from vhbit/path-ization
Using `Path`s instead of plain strings
Diffstat (limited to 'src/ssl/mod.rs')
| -rw-r--r-- | src/ssl/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ssl/mod.rs b/src/ssl/mod.rs index c7c024ed..b37d3142 100644 --- a/src/ssl/mod.rs +++ b/src/ssl/mod.rs @@ -248,7 +248,7 @@ impl SslContext { #[allow(non_snake_case)] /// Specifies the file that contains trusted CA certificates. - pub fn set_CA_file(&mut self, file: &str) -> Option<SslError> { + pub fn set_CA_file(&mut self, file: &Path) -> Option<SslError> { wrap_ssl_result(file.with_c_str(|file| { unsafe { ffi::SSL_CTX_load_verify_locations(self.ctx, file, ptr::null()) @@ -257,7 +257,7 @@ impl SslContext { } /// Specifies the file that is client certificate - pub fn set_certificate_file(&mut self, file: &str, + pub fn set_certificate_file(&mut self, file: &Path, file_type: X509FileType) -> Option<SslError> { wrap_ssl_result(file.with_c_str(|file| { unsafe { @@ -267,7 +267,7 @@ impl SslContext { } /// Specifies the file that is client private key - pub fn set_private_key_file(&mut self, file: &str, + pub fn set_private_key_file(&mut self, file: &Path, file_type: X509FileType) -> Option<SslError> { wrap_ssl_result(file.with_c_str(|file| { unsafe { |