Darin Petkov | d9050bb | 2012-09-26 16:02:52 +0200 | [diff] [blame] | 1 | // Copyright (c) 2012 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 SHILL_SHIMS_CERTIFICATES_H_ |
| 6 | #define SHILL_SHIMS_CERTIFICATES_H_ |
| 7 | |
| 8 | #include "shill/byte_string.h" |
| 9 | |
| 10 | class FilePath; |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | namespace shims { |
| 15 | |
| 16 | class Certificates { |
| 17 | public: |
| 18 | static ByteString ConvertDERToPEM(const ByteString &der_cert); |
| 19 | |
| 20 | static bool Write(const ByteString &cert, const FilePath &certfile); |
| 21 | }; |
| 22 | |
| 23 | } // namespace shims |
| 24 | |
| 25 | } // namespace shill |
| 26 | |
| 27 | #endif // SHILL_SHIMS_CERTIFICATES_H_ |