cast_auth_util_fuzzer_shared.h 876 B

12345678910111213141516171819202122232425
  1. // Copyright 2021 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. #ifndef COMPONENTS_CAST_CHANNEL_CAST_AUTH_UTIL_FUZZER_SHARED_H_
  5. #define COMPONENTS_CAST_CHANNEL_CAST_AUTH_UTIL_FUZZER_SHARED_H_
  6. #include <string>
  7. #include <vector>
  8. #include "components/cast_channel/fuzz_proto/fuzzer_inputs.pb.h"
  9. namespace cast_channel {
  10. namespace fuzz {
  11. // Potentially updates |input| before it should be used for fuzzing. For
  12. // example, if an auth message is present in the proto, it will override
  13. // |cast_message|.
  14. void SetupAuthenticateChallengeReplyInput(
  15. const std::vector<std::string>& certs,
  16. CastAuthUtilInputs::AuthenticateChallengeReplyInput* input);
  17. } // namespace fuzz
  18. } // namespace cast_channel
  19. #endif // COMPONENTS_CAST_CHANNEL_CAST_AUTH_UTIL_FUZZER_SHARED_H_