(&self, oid: &[u64])
| 439 | |
| 440 | impl CertExt for Certificate { |
| 441 | fn get_extension_der(&self, oid: &[u64]) -> Result<Option<Vec<u8>>> { |
| 442 | let found = self |
| 443 | .params() |
| 444 | .custom_extensions |
| 445 | .iter() |
| 446 | .find(|ext| ext.oid_components().collect::<Vec<_>>() == oid) |
| 447 | .map(|ext| ext.content().to_vec()); |
| 448 | Ok(found) |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | impl CertExt for X509Certificate<'_> { |
no test coverage detected