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

Function from_cert

ra-tls/src/attestation.rs:20–22  ·  view source on GitHub ↗

Extract attestation from a certificate

(cert: &impl CertExt)

Source from the content-addressed store, hash-verified

18
19/// Extract attestation from a certificate
20pub fn from_cert(cert: &impl CertExt) -> Result<Option<VersionedAttestation>> {
21 from_ext_getter(|oid| cert.get_extension_bytes(oid))
22}
23
24/// Extract attestation from a certificate extension getter
25pub fn from_ext_getter(

Callers 2

from_derFunction · 0.85

Calls 2

from_ext_getterFunction · 0.85
get_extension_bytesMethod · 0.80

Tested by

no test coverage detected