Skip to content

Commit

Permalink
Implement Clone for Identity (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioprog committed Sep 29, 2021
1 parent eb9e343 commit cf87893
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ enum Cert {
}

/// Represents a private key and X509 cert as a client certificate.
#[derive(Clone)]
pub struct Identity {
#[cfg_attr(not(any(feature = "native-tls", feature = "__rustls")), allow(unused))]
inner: ClientCert,
}

#[derive(Clone)]
enum ClientCert {
#[cfg(feature = "native-tls")]
Pkcs12(native_tls_crate::Identity),
Expand Down

0 comments on commit cf87893

Please sign in to comment.