diff options
Diffstat (limited to 'chrome/browser/chromeos/attestation/platform_verification_flow.h')
-rw-r--r-- | chrome/browser/chromeos/attestation/platform_verification_flow.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/attestation/platform_verification_flow.h b/chrome/browser/chromeos/attestation/platform_verification_flow.h index 0e4e169..e21c024 100644 --- a/chrome/browser/chromeos/attestation/platform_verification_flow.h +++ b/chrome/browser/chromeos/attestation/platform_verification_flow.h @@ -180,6 +180,15 @@ class PlatformVerificationFlow bool consent_required, ConsentResponse consent_response); + // Initiates the flow to get a platform key certificate. The arguments to + // ChallengePlatformKey are in |context|. |user_id| identifies the user for + // which to get a certificate. If |force_new_key| is true then any existing + // key for the same user and service will be ignored and a new key will be + // generated and certified. + void GetCertificate(const ChallengeContext& context, + const std::string& user_id, + bool force_new_key); + // A callback called when an attestation certificate request operation // completes. The arguments to ChallengePlatformKey are in |context|. // |user_id| identifies the user for which the certificate was requested. @@ -252,6 +261,9 @@ class PlatformVerificationFlow const GURL& url, bool allow_domain); + // Returns true iff |certificate| is an expired X.509 certificate. + bool IsExpired(const std::string& certificate); + void set_testing_prefs(PrefService* testing_prefs) { testing_prefs_ = testing_prefs; } |