Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Copyright (c) 2014, Google Inc.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  10. * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  12. * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  13. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
  14. #ifndef HEADER_TEST_CONFIG
  15. #define HEADER_TEST_CONFIG
  16. #include <string>
  17. struct TestConfig {
  18. TestConfig();
  19. bool is_server;
  20. bool is_dtls;
  21. bool resume;
  22. bool fallback_scsv;
  23. std::string key_file;
  24. std::string cert_file;
  25. std::string expected_server_name;
  26. std::string expected_certificate_types;
  27. bool require_any_client_certificate;
  28. std::string advertise_npn;
  29. std::string expected_next_proto;
  30. bool false_start;
  31. std::string select_next_proto;
  32. bool async;
  33. bool write_different_record_sizes;
  34. bool cbc_record_splitting;
  35. bool partial_write;
  36. bool no_tls12;
  37. bool no_tls11;
  38. bool no_tls1;
  39. bool no_ssl3;
  40. bool cookie_exchange;
  41. std::string expected_channel_id;
  42. std::string send_channel_id;
  43. bool shim_writes_first;
  44. bool tls_d5_bug;
  45. std::string host_name;
  46. std::string advertise_alpn;
  47. std::string expected_alpn;
  48. std::string expected_advertised_alpn;
  49. std::string select_alpn;
  50. };
  51. bool ParseConfig(int argc, char **argv, TestConfig *out_config);
  52. #endif // HEADER_TEST_CONFIG