aboutsummaryrefslogtreecommitdiff
path: root/src/ssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssl')
-rw-r--r--src/ssl/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ssl/mod.rs b/src/ssl/mod.rs
index 33112f7a..86b3ec83 100644
--- a/src/ssl/mod.rs
+++ b/src/ssl/mod.rs
@@ -276,6 +276,14 @@ impl SslContext {
}
}))
}
+
+ pub fn set_cipher_list(&mut self, cipher_list: &str) -> Option<SslError> {
+ wrap_ssl_result(cipher_list.with_c_str(|cipher_list| {
+ unsafe {
+ ffi::SSL_CTX_set_cipher_list(self.ctx, cipher_list)
+ }
+ }))
+ }
}
#[allow(dead_code)]