Implement Clone for SslConnector and SslAcceptor
This commit is contained in:
parent
234f126d7d
commit
146512099b
|
|
@ -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,
|
/// 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.
|
/// and a custom implementation is used when linking against OpenSSL 1.0.1.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct SslConnector(SslContext);
|
pub struct SslConnector(SslContext);
|
||||||
|
|
||||||
impl SslConnector {
|
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
|
/// OpenSSL's default configuration is highly insecure. This connector manages the OpenSSL
|
||||||
/// structures, configuring cipher suites, session options, and more.
|
/// structures, configuring cipher suites, session options, and more.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct SslAcceptor(SslContext);
|
pub struct SslAcceptor(SslContext);
|
||||||
|
|
||||||
impl SslAcceptor {
|
impl SslAcceptor {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue