blob: 54d1fe7d3b6866a889d600f206d2c7831f611602 [file] [log] [blame]
Amin Hassanifd40bd92018-09-21 11:03:52 -07001// 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 Hassani6baacf12018-09-25 16:31:25 -070011#include <base/files/file_path.h>
12
Amin Hassanifd40bd92018-09-21 11:03:52 -070013namespace oobe_config {
14
15int RunCommand(const std::vector<std::string>& command);
16
Amin Hassani6baacf12018-09-25 16:31:25 -070017// Using |priv_key|, signs |src|, and writes the digest into |dst|.
18bool SignFile(const base::FilePath& priv_key,
19 const base::FilePath& src,
20 const base::FilePath& dst);
21
Amin Hassanifd40bd92018-09-21 11:03:52 -070022} // namespace oobe_config
23
24#endif // OOBE_CONFIG_UTILS_H_