Open Enclave  0.16.1
verifier.h
Go to the documentation of this file.
1 // Copyright (c) Open Enclave SDK contributors.
2 // Licensed under the MIT License.
3 
12 #ifndef _OE_ATTESTATION_VERIFIER_H
13 #define _OE_ATTESTATION_VERIFIER_H
14 
17 #include <openenclave/bits/types.h>
18 
19 OE_EXTERNC_BEGIN
20 
36 
55  oe_uuid_t** format_ids,
56  size_t* format_ids_length);
57 
70 
90  const oe_uuid_t* format_id,
91  uint8_t** settings,
92  size_t* settings_size);
93 
106 
162  const oe_uuid_t* format_id,
163  const uint8_t* evidence_buffer,
164  size_t evidence_buffer_size,
165  const uint8_t* endorsements_buffer,
166  size_t endorsements_buffer_size,
167  const oe_policy_t* policies,
168  size_t policies_size,
169  oe_claim_t** claims,
170  size_t* claims_length);
171 
180  oe_claim_t* claims,
181  size_t claims_length,
182  void* arg);
183 
210  uint8_t* certificate_in_der,
211  size_t certificate_in_der_size,
212  oe_verify_claims_callback_t claim_verify_callback,
213  void* arg);
214 
244  uint8_t* certificate_in_der,
245  size_t certificate_in_der_size,
246  uint8_t* endorsements_buffer,
247  size_t endorsements_buffer_size,
248  oe_policy_t* policies,
249  size_t policies_size,
250  oe_claim_t** claims,
251  size_t* claims_length);
252 
265 oe_result_t oe_free_claims(oe_claim_t* claims, size_t claims_length);
266 
282 
283 OE_EXTERNC_END
284 
285 #endif /* _OE_ATTESTATION_VERIFIER_H */
oe_verify_claims_callback_t
oe_result_t(* oe_verify_claims_callback_t)(oe_claim_t *claims, size_t claims_length, void *arg)
Type definition for a claims verification callback.
Definition: verifier.h:179
types.h
oe_verifier_free_formats
oe_result_t oe_verifier_free_formats(oe_uuid_t *format_ids)
oe_verifier_free_formats
oe_free_claims
oe_result_t oe_free_claims(oe_claim_t *claims, size_t claims_length)
oe_free_claims
oe_verifier_initialize
oe_result_t oe_verifier_initialize(void)
oe_verifier_initialize
oe_verifier_shutdown
oe_result_t oe_verifier_shutdown(void)
oe_verifier_shutdown
_oe_policy
Generic struct for defining policy for the attestation plugins.
Definition: evidence.h:163
oe_verify_attestation_certificate_with_evidence
oe_result_t oe_verify_attestation_certificate_with_evidence(uint8_t *certificate_in_der, size_t certificate_in_der_size, oe_verify_claims_callback_t claim_verify_callback, void *arg)
oe_verify_attestation_certificate_with_evidence
_oe_uuid_t
Struct containing the definition for an UUID.
Definition: evidence.h:43
oe_verifier_get_format_settings
oe_result_t oe_verifier_get_format_settings(const oe_uuid_t *format_id, uint8_t **settings, size_t *settings_size)
oe_verifier_get_format_settings
oe_verify_attestation_certificate_with_evidence_v2
oe_result_t oe_verify_attestation_certificate_with_evidence_v2(uint8_t *certificate_in_der, size_t certificate_in_der_size, uint8_t *endorsements_buffer, size_t endorsements_buffer_size, oe_policy_t *policies, size_t policies_size, oe_claim_t **claims, size_t *claims_length)
oe_verify_attestation_certificate_with_evidence_v2
oe_verify_evidence
oe_result_t oe_verify_evidence(const oe_uuid_t *format_id, const uint8_t *evidence_buffer, size_t evidence_buffer_size, const uint8_t *endorsements_buffer, size_t endorsements_buffer_size, const oe_policy_t *policies, size_t policies_size, oe_claim_t **claims, size_t *claims_length)
oe_verify_evidence
result.h
_oe_claim
Claims struct used for claims parameters for the attestation plugins.
Definition: evidence.h:51
oe_verifier_free_format_settings
oe_result_t oe_verifier_free_format_settings(uint8_t *settings)
oe_verifier_free_format_settings
evidence.h
oe_verifier_get_formats
oe_result_t oe_verifier_get_formats(oe_uuid_t **format_ids, size_t *format_ids_length)
oe_verifier_get_formats
oe_result_t
enum _oe_result oe_result_t
This enumeration type defines return codes for Open Enclave functions.