aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/ssl
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-11-27 21:35:35 -0800
committerSteven Fackler <[email protected]>2016-11-27 21:35:35 -0800
commit146512099b484928e9b9396d4b8a476b1c47ee54 (patch)
tree0c5d1e0a062d0ddcd54f402f2657e5d94cbaebef /openssl/src/ssl
parentCleanup (diff)
downloadrust-openssl-146512099b484928e9b9396d4b8a476b1c47ee54.tar.xz
rust-openssl-146512099b484928e9b9396d4b8a476b1c47ee54.zip
Implement Clone for SslConnector and SslAcceptor
Diffstat (limited to 'openssl/src/ssl')
-rw-r--r--openssl/src/ssl/connector.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl/src/ssl/connector.rs b/openssl/src/ssl/connector.rs
index 9ff89c0e..cc5c5273 100644
--- a/openssl/src/ssl/connector.rs
+++ b/openssl/src/ssl/connector.rs
@@ -83,6 +83,7 @@ impl SslConnectorBuilder {
///
/// OpenSSL's built in hostname verification is used when linking against OpenSSL 1.0.2 or 1.1.0,
/// and a custom implementation is used when linking against OpenSSL 1.0.1.
+#[derive(Clone)]
pub struct SslConnector(SslContext);
impl SslConnector {
@@ -236,6 +237,7 @@ fn setup_curves(_: &mut SslContextBuilder) -> Result<(), ErrorStack> {
///
/// OpenSSL's default configuration is highly insecure. This connector manages the OpenSSL
/// structures, configuring cipher suites, session options, and more.
+#[derive(Clone)]
pub struct SslAcceptor(SslContext);
impl SslAcceptor {