• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium 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 UTIL_CRYPTO_PEM_HELPERS_H_
6 #define UTIL_CRYPTO_PEM_HELPERS_H_
7 
8 #include <openssl/evp.h>
9 
10 #include <string>
11 #include <vector>
12 
13 #include "absl/strings/string_view.h"
14 
15 namespace openscreen {
16 
17 std::vector<std::string> ReadCertificatesFromPemFile(
18     absl::string_view filename);
19 
20 bssl::UniquePtr<EVP_PKEY> ReadKeyFromPemFile(absl::string_view filename);
21 
22 }  // namespace openscreen
23 
24 #endif  // UTIL_CRYPTO_PEM_HELPERS_H_
25