Commit 5b0fc9a1 authored by Steven Fackler's avatar Steven Fackler
Browse files

Impl Sync and Send for SslContextBuilder

parent add8e402
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -415,6 +415,9 @@ pub enum SniError {
/// A builder for `SslContext`s.
pub struct SslContextBuilder(*mut ffi::SSL_CTX);

unsafe impl Sync for SslContextBuilder {}
unsafe impl Send for SslContextBuilder {}

impl Drop for SslContextBuilder {
    fn drop(&mut self) {
        unsafe { ffi::SSL_CTX_free(self.as_ptr()) }