Implement Clone for Identity (#1334)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user