1 #[derive(Copy, Clone, Debug, PartialEq, Eq)]
2 pub enum ClientCertificateType {
3     RsaSign = 1,
4     EcdsaSign = 64,
5     Unsupported,
6 }
7 
8 impl From<u8> for ClientCertificateType {
from(val: u8) -> Self9     fn from(val: u8) -> Self {
10         match val {
11             1 => ClientCertificateType::RsaSign,
12             64 => ClientCertificateType::EcdsaSign,
13             _ => ClientCertificateType::Unsupported,
14         }
15     }
16 }
17