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. | /// Represents a private key and X509 cert as a client certificate. | ||||||
|  | #[derive(Clone)] | ||||||
| pub struct Identity { | pub struct Identity { | ||||||
|     #[cfg_attr(not(any(feature = "native-tls", feature = "__rustls")), allow(unused))] |     #[cfg_attr(not(any(feature = "native-tls", feature = "__rustls")), allow(unused))] | ||||||
|     inner: ClientCert, |     inner: ClientCert, | ||||||
| } | } | ||||||
|  |  | ||||||
|  | #[derive(Clone)] | ||||||
| enum ClientCert { | enum ClientCert { | ||||||
|     #[cfg(feature = "native-tls")] |     #[cfg(feature = "native-tls")] | ||||||
|     Pkcs12(native_tls_crate::Identity), |     Pkcs12(native_tls_crate::Identity), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user