pub struct AttestationReportVerifier {
    pub accepted_enclave_attrs: Vec<EnclaveAttr>,
    pub root_ca: Vec<u8>,
    pub verifier: AttestationReportVerificationFn,
}
Expand description

Type used to verify attestation reports (this can be set as a certificate verifier in rustls::ClientConfig).

Fields

accepted_enclave_attrs: Vec<EnclaveAttr>

Valid enclave attributes (only enclaves with attributes in this vector will be accepted).

root_ca: Vec<u8>

Root certificate of the attestation service provider (e.g., IAS).

verifier: AttestationReportVerificationFn

User defined function to verify the attestation report.

Implementations

Trait Implementations

Returns true to enable the server to request a client certificate and false to skip requesting a client certificate. Defaults to true. Read more
Returns the subject names of the client authentication trust anchors to share with the client when requesting client authentication. Read more
Verify a certificate chain. presented_certs is the certificate chain from the client. Read more
Return Some(true) to require a client certificate and Some(false) to make client authentication optional. Return None to abort the connection. Defaults to Some(self.offer_client_auth()). Read more
Verify a signature allegedly by the given server certificate. Read more
Verify a signature allegedly by the given server certificate. Read more
Return the list of SignatureSchemes that this verifier will handle, in verify_tls12_signature and verify_tls13_signature calls. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Verify a the certificate chain presented_certs against the roots configured in roots. Make sure that dns_name is quoted by the top certificate in the chain. Read more
Verify a signature allegedly by the given server certificate. Read more
Verify a signature allegedly by the given server certificate. Read more
Return the list of SignatureSchemes that this verifier will handle, in verify_tls12_signature and verify_tls13_signature calls. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

Wrap the input message T in a tonic::Request
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more