Extract attestation from x509 certificate
(cert: &[u8])
| 11 | |
| 12 | /// Extract attestation from x509 certificate |
| 13 | pub fn from_der(cert: &[u8]) -> Result<Option<VersionedAttestation>> { |
| 14 | let (_, cert) = |
| 15 | x509_parser::parse_x509_certificate(cert).context("Failed to parse certificate")?; |
| 16 | from_cert(&cert) |
| 17 | } |
| 18 | |
| 19 | /// Extract attestation from a certificate |
| 20 | pub fn from_cert(cert: &impl CertExt) -> Result<Option<VersionedAttestation>> { |
no test coverage detected