pub unsafe extern "C" fn sgx_qv_verify_quote(
    p_quote: *const u8,
    quote_size: u32,
    p_quote_collateral: *const sgx_ql_qve_collateral_t,
    expiration_check_date: time_t,
    p_collateral_expiration_status: *mut u32,
    p_quote_verification_result: *mut sgx_ql_qv_result_t,
    p_qve_report_info: *mut sgx_ql_qe_report_info_t,
    supplemental_data_size: u32,
    p_supplemental_data: *mut u8
) -> quote3_error_t
Expand description

Perform ECDSA quote verification.

@param p_quote[IN] - Pointer to SGX Quote. @param quote_size[IN] - Size of the buffer pointed to by p_quote (in bytes). @param p_quote_collateral[IN] - This is a pointer to the Quote Certification Collateral provided by the caller. @param expiration_check_date[IN] - This is the date that the QvE will use to determine if any of the inputted collateral have expired. @param p_collateral_expiration_status[OUT] - Address of the outputted expiration status. This input must not be NULL. @param p_quote_verification_result[OUT] - Address of the outputted quote verification result. @param p_qve_report_info[IN/OUT] - This parameter can be used in 2 ways. If p_qve_report_info is NOT NULL, the API will use Intel QvE to perform quote verification, and QvE will generate a report using the target_info in sgx_ql_qe_report_info_t structure. if p_qve_report_info is NULL, the API will use QVL library to perform quote verification, note that the results can not be cryptographically authenticated in this mode. @param supplemental_data_size[IN] - Size of the buffer pointed to by p_quote (in bytes). @param p_supplemental_data[OUT] - The parameter is optional. If it is NULL, supplemental_data_size must be 0.

@return Status code of the operation, one of: - SGX_QL_SUCCESS - SGX_QL_ERROR_INVALID_PARAMETER - SGX_QL_QUOTE_FORMAT_UNSUPPORTED - SGX_QL_QUOTE_CERTIFICATION_DATA_UNSUPPORTED - SGX_QL_UNABLE_TO_GENERATE_REPORT - SGX_QL_CRL_UNSUPPORTED_FORMAT - SGX_QL_ERROR_UNEXPECTED