Amin Hassani | fd40bd9 | 2018-09-21 11:03:52 -0700 | [diff] [blame] | 1 | // Copyright 2018 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 | #ifndef OOBE_CONFIG_UTILS_H_ |
| 6 | #define OOBE_CONFIG_UTILS_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
Amin Hassani | 6baacf1 | 2018-09-25 16:31:25 -0700 | [diff] [blame^] | 11 | #include <base/files/file_path.h> |
| 12 | |
Amin Hassani | fd40bd9 | 2018-09-21 11:03:52 -0700 | [diff] [blame] | 13 | namespace oobe_config { |
| 14 | |
| 15 | int RunCommand(const std::vector<std::string>& command); |
| 16 | |
Amin Hassani | 6baacf1 | 2018-09-25 16:31:25 -0700 | [diff] [blame^] | 17 | // Using |priv_key|, signs |src|, and writes the digest into |dst|. |
| 18 | bool SignFile(const base::FilePath& priv_key, |
| 19 | const base::FilePath& src, |
| 20 | const base::FilePath& dst); |
| 21 | |
Amin Hassani | fd40bd9 | 2018-09-21 11:03:52 -0700 | [diff] [blame] | 22 | } // namespace oobe_config |
| 23 | |
| 24 | #endif // OOBE_CONFIG_UTILS_H_ |