Impl Sync and Send for SslContextBuilder

This commit is contained in:
Steven Fackler 2016-10-30 20:34:35 -07:00
parent add8e4023e
commit 5b0fc9a185
1 changed files with 3 additions and 0 deletions

View File

@ -415,6 +415,9 @@ pub enum SniError {
/// A builder for `SslContext`s. /// A builder for `SslContext`s.
pub struct SslContextBuilder(*mut ffi::SSL_CTX); pub struct SslContextBuilder(*mut ffi::SSL_CTX);
unsafe impl Sync for SslContextBuilder {}
unsafe impl Send for SslContextBuilder {}
impl Drop for SslContextBuilder { impl Drop for SslContextBuilder {
fn drop(&mut self) { fn drop(&mut self) {
unsafe { ffi::SSL_CTX_free(self.as_ptr()) } unsafe { ffi::SSL_CTX_free(self.as_ptr()) }