Get Certificate Special Usage from the type.
(&self)
| 26 | |
| 27 | /// Get Certificate Special Usage from the type. |
| 28 | fn get_special_usage(&self) -> Result<Option<String>> { |
| 29 | let Some(found) = self.get_extension_bytes(PHALA_RATLS_CERT_USAGE)? else { |
| 30 | return Ok(None); |
| 31 | }; |
| 32 | let found = String::from_utf8(found).context("Failed to decode special usage as utf8")?; |
| 33 | Ok(Some(found)) |
| 34 | } |
| 35 | |
| 36 | /// Get the app id from the certificate |
| 37 | fn get_app_id(&self) -> Result<Option<Vec<u8>>> { |
no test coverage detected