| 
      
    | 
   
◆ oe_get_evidence()
      
        
          | oe_result_t oe_get_evidence  | 
          ( | 
          const oe_uuid_t *  | 
          format_id,  | 
         
        
           | 
           | 
          uint32_t  | 
          flags,  | 
         
        
           | 
           | 
          const void *  | 
          custom_claims_buffer,  | 
         
        
           | 
           | 
          size_t  | 
          custom_claims_buffer_size,  | 
         
        
           | 
           | 
          const void *  | 
          optional_parameters,  | 
         
        
           | 
           | 
          size_t  | 
          optional_parameters_size,  | 
         
        
           | 
           | 
          uint8_t **  | 
          evidence_buffer,  | 
         
        
           | 
           | 
          size_t *  | 
          evidence_buffer_size,  | 
         
        
           | 
           | 
          uint8_t **  | 
          endorsements_buffer,  | 
         
        
           | 
           | 
          size_t *  | 
          endorsements_buffer_size  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
oe_get_evidence  
Generates the evidence for the given format id. This function is only available in the enclave. 
- This feature is marked as experimental:
  
- Parameters
 - 
  
    | [in] | format_id | The format ID of the evidence to be generated.  |  
    | [in] | flags | A bit-wise parameter. Currently there is one bit defined: OE_EVIDENCE_FLAGS_EMBED_FORMAT_ID. If this bit is set, the evidence and endorsements will be wrapped with a header containing the format ID.  |  
    | [in] | custom_claims_buffer | The optional custom claims buffer.  |  
    | [in] | custom_claims_buffer_size | The number of bytes in the custom claims buffer.  |  
    | [in] | optional_parameters | The optional format-specific input parameters.  |  
    | [in] | optional_parameters_size | The size of optional_parameters in bytes.  |  
    | [out] | evidence_buffer | An output pointer that will be assigned the address of the dynamically allocated evidence buffer.  |  
    | [out] | evidence_buffer_size | A pointer that points to the size of the evidence buffer in bytes.  |  
    | [out] | endorsements_buffer | If not NULL, an output pointer that will be assigned the address of the dynamically allocated endorsements buffer.  |  
    | [out] | endorsements_buffer_size | A pointer that points to the size of the endorsements buffer in bytes.  |  
   
   
 
- Return values
 - 
  
    | OE_OK | The function succeeded.  |  
    | OE_INVALID_PARAMETER | At least one of the parameters is invalid.  |  
    | OE_NOT_FOUND | The input evidence format id is not supported.  |  
    | other | appropriate error code.  |  
   
   
 
 
 
     |