MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / get_special_usage

Method get_special_usage

ra-tls/src/traits.rs:28–34  ·  view source on GitHub ↗

Get Certificate Special Usage from the type.

(&self)

Source from the content-addressed store, hash-verified

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>>> {

Callers 1

Implementers 3

cert.rsra-tls/src/cert.rs
rocket_helper.rsra-rpc/src/rocket_helper.rs
wavekv_sync.rsgateway/src/web_routes/wavekv_sync.rs

Calls 1

get_extension_bytesMethod · 0.80

Tested by

no test coverage detected