oe_verify_attestation_certificate
This function perform a custom validation on the input certificate. This validation includes extracting an attestation evidence extension from the certificate before validating this evidence. An optional enclave_identity_callback could be passed in for a calling client to further validate the identity of the enclave creating the quote.
- Parameters
-
[in] | cert_in_der | a pointer to buffer holding certificate contents in DER format |
[in] | cert_in_der_len | size of certificate buffer above |
[in] | enclave_identity_callback | callback routine for custom identity checking |
[in] | arg | an optional context pointer argument specified by the caller when setting callback |
- Return values
-
OE_OK | on a successful validation |
OE_VERIFY_FAILED | on quote failure |
OE_INVALID_PARAMETER | At least one parameter is invalid |
OE_FAILURE | general failure |
other | appropriate error code |