@@ -333,6 +333,28 @@ class DeviceAttestationVerifier
333
333
typedef void (*OnAttestationInformationVerification)(void * context, const AttestationInfo & info,
334
334
AttestationVerificationResult result);
335
335
336
+ /* *
337
+ * @brief Interface for checking the device attestation revocation status
338
+ *
339
+ */
340
+ class DeviceAttestationRevocationDelegate
341
+ {
342
+ public:
343
+ DeviceAttestationRevocationDelegate () = default ;
344
+ virtual ~DeviceAttestationRevocationDelegate () = default ;
345
+
346
+ /* *
347
+ * @brief Verify whether or not the given DAC chain is revoked.
348
+ *
349
+ * @param[in] info All of the information required to check for revoked DAC chain.
350
+ * @param[in] onCompletion Callback handler to provide Attestation Information Verification result to the caller of
351
+ * CheckForRevokedDACChain().
352
+ */
353
+ virtual void CheckForRevokedDACChain (
354
+ const DeviceAttestationVerifier::AttestationInfo & info,
355
+ Callback::Callback<DeviceAttestationVerifier::OnAttestationInformationVerification> * onCompletion) = 0;
356
+ };
357
+
336
358
/* *
337
359
* @brief Verify an attestation information payload against a DAC/PAI chain.
338
360
*
@@ -419,28 +441,6 @@ class DeviceAttestationVerifier
419
441
bool mEnableCdTestKeySupport = true ;
420
442
};
421
443
422
- /* *
423
- * @brief Interface for checking the device attestation revocation status
424
- *
425
- */
426
- class DeviceAttestationRevocationDelegate
427
- {
428
- public:
429
- DeviceAttestationRevocationDelegate () = default ;
430
- virtual ~DeviceAttestationRevocationDelegate () = default ;
431
-
432
- /* *
433
- * @brief Verify whether or not the given DAC chain is revoked.
434
- *
435
- * @param[in] info All of the information required to check for revoked DAC chain.
436
- * @param[in] onCompletion Callback handler to provide Attestation Information Verification result to the caller of
437
- * CheckForRevokedDACChain().
438
- */
439
- virtual void
440
- CheckForRevokedDACChain (const DeviceAttestationVerifier::AttestationInfo & info,
441
- Callback::Callback<DeviceAttestationVerifier::OnAttestationInformationVerification> * onCompletion) = 0 ;
442
- };
443
-
444
444
/* *
445
445
* Instance getter for the global DeviceAttestationVerifier.
446
446
*
0 commit comments