OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Contains the implementation of class Pkcs11Init |
| 6 |
| 7 #include "pkcs11_init.h" |
| 8 |
| 9 #include <iostream> |
| 10 |
| 11 #include <base/logging.h> |
| 12 #include <base/file_util.h> |
| 13 #include <base/string_util.h> |
| 14 #include <glib.h> |
| 15 #include <opencryptoki/pkcs11.h> |
| 16 |
| 17 #include "platform.h" |
| 18 |
| 19 namespace cryptohome { |
| 20 |
| 21 const CK_CHAR kDefaultUserPin[] = "111111"; |
| 22 const CK_CHAR kDefaultLabel[] = "TPM"; |
| 23 |
| 24 Pkcs11Init::Pkcs11Init() { |
| 25 } |
| 26 |
| 27 Pkcs11Init::~Pkcs11Init() { |
| 28 } |
| 29 |
| 30 void Pkcs11Init::GetTpmTokenInfo(gchar **OUT_label, |
| 31 gchar **OUT_user_pin) { |
| 32 *OUT_label = g_strdup(reinterpret_cast<const gchar *>(kDefaultLabel)); |
| 33 *OUT_user_pin = g_strdup(reinterpret_cast<const gchar *>(kDefaultUserPin)); |
| 34 } |
| 35 |
| 36 } // namespace cryptohome |
OLD | NEW |