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 CAST_RECEIVER_CHANNEL_TESTING_DEVICE_AUTH_TEST_HELPERS_H_
6 #define CAST_RECEIVER_CHANNEL_TESTING_DEVICE_AUTH_TEST_HELPERS_H_
7 
8 #include <openssl/x509.h>
9 
10 #include <vector>
11 
12 #include "absl/strings/string_view.h"
13 #include "cast/receiver/channel/device_auth_namespace_handler.h"
14 #include "cast/receiver/channel/static_credentials.h"
15 
16 namespace openscreen {
17 namespace cast {
18 
19 void InitStaticCredentialsFromFiles(StaticCredentialsProvider* creds,
20                                     bssl::UniquePtr<X509>* parsed_cert,
21                                     TrustStore* fake_trust_store,
22                                     absl::string_view privkey_filename,
23                                     absl::string_view chain_filename,
24                                     absl::string_view tls_filename);
25 
26 }  // namespace cast
27 }  // namespace openscreen
28 
29 #endif  // CAST_RECEIVER_CHANNEL_TESTING_DEVICE_AUTH_TEST_HELPERS_H_
30