Update the BoringSSL suppressions file based on the latest shim
[openssl.git] / test / ossl_shim / test_config.h
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
15 #ifndef HEADER_TEST_CONFIG
16 #define HEADER_TEST_CONFIG
17
18 #include <string>
19 #include <vector>
20
21
22 struct TestConfig {
23   int port = 0;
24   bool is_server = false;
25   bool is_dtls = false;
26   int resume_count = 0;
27   bool fallback_scsv = false;
28   std::string key_file;
29   std::string cert_file;
30   std::string expected_server_name;
31   std::string expected_certificate_types;
32   bool require_any_client_certificate = false;
33   std::string advertise_npn;
34   std::string expected_next_proto;
35   std::string select_next_proto;
36   bool async = false;
37   bool write_different_record_sizes = false;
38   bool partial_write = false;
39   bool no_tls13 = false;
40   bool no_tls12 = false;
41   bool no_tls11 = false;
42   bool no_tls1 = false;
43   bool no_ssl3 = false;
44   bool shim_writes_first = false;
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   bool decline_alpn = false;
51   bool expect_session_miss = false;
52   bool expect_extended_master_secret = false;
53   std::string psk;
54   std::string psk_identity;
55   std::string srtp_profiles;
56   int min_version = 0;
57   int max_version = 0;
58   int mtu = 0;
59   bool implicit_handshake = false;
60   std::string cipher;
61   bool handshake_never_done = false;
62   int export_keying_material = 0;
63   std::string export_label;
64   std::string export_context;
65   bool use_export_context = false;
66   bool expect_ticket_renewal = false;
67   bool expect_no_session = false;
68   bool use_ticket_callback = false;
69   bool renew_ticket = false;
70   bool enable_client_custom_extension = false;
71   bool enable_server_custom_extension = false;
72   bool custom_extension_skip = false;
73   bool custom_extension_fail_add = false;
74   bool check_close_notify = false;
75   bool shim_shuts_down = false;
76   bool verify_fail = false;
77   bool verify_peer = false;
78   bool expect_verify_result = false;
79   int expect_total_renegotiations = 0;
80   bool renegotiate_freely = false;
81   bool p384_only = false;
82   bool enable_all_curves = false;
83   bool use_sparse_dh_prime = false;
84   bool use_old_client_cert_callback = false;
85   bool use_null_client_ca_list = false;
86   bool peek_then_read = false;
87   int max_cert_list = 0;
88 };
89
90 bool ParseConfig(int argc, char **argv, TestConfig *out_config);
91
92
93 #endif  // HEADER_TEST_CONFIG