Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: service.h

Issue 6823012: cryptohome: Add stub functions to query PKCS11 set up status (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cryptohome.git@master
Patch Set: word wrap Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkcs11_init.cc ('k') | service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service.h
diff --git a/service.h b/service.h
index 1fa6fead4d0f2c9bec55afc1869d34b1fdc653bb..538b8ae1b09cc576776f84e49585d315a2d61c53 100644
--- a/service.h
+++ b/service.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CRYPTOHOME_SERVICE_H_
@@ -17,6 +17,7 @@
#include "cryptohome_event_source.h"
#include "mount.h"
#include "mount_task.h"
+#include "pkcs11_init.h"
#include "tpm_init.h"
namespace cryptohome {
@@ -147,6 +148,14 @@ class Service : public chromeos::dbus::AbstractDbusService,
virtual gboolean TpmIsBeingOwned(gboolean* OUT_owning, GError** error);
virtual gboolean TpmCanAttemptOwnership(GError** error);
virtual gboolean TpmClearStoredPassword(GError** error);
+
+ // Returns the label of the TPM token along with its user PIN.
+ virtual gboolean Pkcs11GetTpmTokenInfo(gchar** OUT_label,
+ gchar** OUT_user_pin,
+ GError** error);
+
+ // Returns in |OUT_ready| whether the TPM token is ready for use.
+ virtual gboolean Pkcs11IsTpmTokenReady(gboolean* OUT_ready, GError** error);
virtual gboolean GetStatusString(gchar** OUT_status, GError** error);
protected:
@@ -165,6 +174,8 @@ class Service : public chromeos::dbus::AbstractDbusService,
cryptohome::Mount* mount_;
scoped_ptr<TpmInit> default_tpm_init_;
TpmInit *tpm_init_;
+ scoped_ptr<Pkcs11Init> default_pkcs11_init_;
+ Pkcs11Init *pkcs11_init_;
bool initialize_tpm_;
base::Thread mount_thread_;
guint async_complete_signal_;
« no previous file with comments | « pkcs11_init.cc ('k') | service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698