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

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: 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
Index: pkcs11_init.h
diff --git a/pkcs11_init.h b/pkcs11_init.h
new file mode 100644
index 0000000000000000000000000000000000000000..05796e65d6d0553f4c36cd0c90970154493f47b3
--- /dev/null
+++ b/pkcs11_init.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved.
Greg Spencer (Chromium) 2011/04/08 20:21:45 Should just be "2011"
kmixter1 2011/04/08 21:04:14 Done.
+// 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 IsReady() const {
+ return true;
+ }
+ void GetTpmTokenInfo(gchar **OUT_label,
+ gchar **OUT_so_pin,
+ gchar **OUT_user_pin);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(Pkcs11Init);
+};
+
+} // namespace cryptohome
+
+#endif // CRYPTOHOME_PKCS11_INIT_H_

Powered by Google App Engine
This is Rietveld 408576698