#include "components/media_router/common/providers/cast/certificate/cast_cert_reader.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "net/cert/x509_util.h"
#include "third_party/boringssl/src/pki/common_cert_errors.h"
#include "third_party/boringssl/src/pki/pem.h"
namespace cast_certificate {
bool PopulateStoreWithCertsFromPath(bssl::TrustStoreInMemory* store,
const base::FilePath& path) { … }
std::vector<std::string> ReadCertificateChainFromFile(
const base::FilePath& path) { … }
std::vector<std::string> ReadCertificateChainFromString(const char* str) { … }
}