Skip to content

Commit f38deed

Browse files
committed
tls:: implement std::marker::Send for Context
This is not done automatically because Config contains a pointer to SSL_CTX, however that should be safe for Send.
1 parent f5baa91 commit f38deed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ impl Context {
264264
}
265265
}
266266

267+
unsafe impl std::marker::Send for Context {}
268+
267269
impl Drop for Context {
268270
fn drop(&mut self) {
269271
unsafe { SSL_CTX_free(self.as_ptr()) }

0 commit comments

Comments
 (0)