| // Copyright 2012 The ChromiumOS Authors | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #ifndef LOGIN_MANAGER_KEYGEN_WORKER_H_ | |
| #define LOGIN_MANAGER_KEYGEN_WORKER_H_ | |
| #include <string> | |
| #include <base/files/file_path.h> | |
| namespace login_manager { | |
| class NssUtil; | |
| namespace keygen { | |
| // Generates a keypair using the NSSDB under user_homedir, extracts | |
| // the public half and stores it at file_path. | |
| int GenerateKey(const base::FilePath& file_path, | |
| const base::FilePath& user_homedir, | |
| NssUtil* nss); | |
| } // namespace keygen | |
| } // namespace login_manager | |
| #endif // LOGIN_MANAGER_KEYGEN_WORKER_H_ |