summaryrefslogtreecommitdiff
path: root/include/keymaster/keymaster_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/keymaster/keymaster_context.h')
-rw-r--r--include/keymaster/keymaster_context.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/keymaster/keymaster_context.h b/include/keymaster/keymaster_context.h
index 052ccf2..8c4bb57 100644
--- a/include/keymaster/keymaster_context.h
+++ b/include/keymaster/keymaster_context.h
@@ -23,6 +23,7 @@
#include <assert.h>
#include <hardware/keymaster_defs.h>
+
#include <keymaster/android_keymaster_utils.h>
#include <keymaster/keymaster_enforcement.h>
#include <keymaster/km_version.h>
@@ -32,6 +33,7 @@
namespace keymaster {
class AuthorizationSet;
+class AttestationContext;
class KeyFactory;
class OperationFactory;
class SecureDeletionSecretStorage;
@@ -151,6 +153,11 @@ class KeymasterContext {
virtual KeymasterEnforcement* enforcement_policy() = 0;
/**
+ * Return the attestation context for this context.
+ */
+ virtual AttestationContext* attestation_context() { return nullptr; }
+
+ /**
* Generate an attestation certificate, with chain.
*
* If attest_key is null, the certificate will be signed with the factory attestation key (from