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

Unified Diff: pkcs11_init.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 | « interface.cc ('k') | pkcs11_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkcs11_init.h
diff --git a/pkcs11_init.h b/pkcs11_init.h
new file mode 100644
index 0000000000000000000000000000000000000000..e8a09762513fe9d93d5112c6d3ce73f151b86731
--- /dev/null
+++ b/pkcs11_init.h
@@ -0,0 +1,32 @@
+// 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.
+
+// Pkcs11Init - class for handling opencryptoki initialization.
+
+#ifndef CRYPTOHOME_PKCS11_INIT_H_
+#define CRYPTOHOME_PKCS11_INIT_H_
+
+#include <base/basictypes.h>
+#include <glib.h>
+
+namespace cryptohome {
+
+class Pkcs11Init {
+ public:
+ Pkcs11Init();
+ virtual ~Pkcs11Init();
+
+ bool IsTpmTokenReady() const {
+ return true;
+ }
+ void GetTpmTokenInfo(gchar **OUT_label,
+ gchar **OUT_user_pin);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(Pkcs11Init);
+};
+
+} // namespace cryptohome
+
+#endif // CRYPTOHOME_PKCS11_INIT_H_
« no previous file with comments | « interface.cc ('k') | pkcs11_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698