Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_clnt.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | - | |||||||
7 | static const SSL_METHOD_INTERNAL TLS_client_method_internal_data = { | - | ||||||
8 | .version = 0x0303, | - | ||||||
9 | .min_version = 0x0301, | - | ||||||
10 | .max_version = 0x0303, | - | ||||||
11 | .ssl_new = tls1_new, | - | ||||||
12 | .ssl_clear = tls1_clear, | - | ||||||
13 | .ssl_free = tls1_free, | - | ||||||
14 | .ssl_accept = ssl_undefined_function, | - | ||||||
15 | .ssl_connect = ssl3_connect, | - | ||||||
16 | .get_ssl_method = tls1_get_client_method, | - | ||||||
17 | .get_timeout = tls1_default_timeout, | - | ||||||
18 | .ssl_version = ssl_undefined_void_function, | - | ||||||
19 | .ssl_renegotiate = ssl_undefined_function, | - | ||||||
20 | .ssl_renegotiate_check = ssl_ok, | - | ||||||
21 | .ssl_get_message = ssl3_get_message, | - | ||||||
22 | .ssl_read_bytes = ssl3_read_bytes, | - | ||||||
23 | .ssl_write_bytes = ssl3_write_bytes, | - | ||||||
24 | .ssl3_enc = &TLSv1_2_enc_data, | - | ||||||
25 | }; | - | ||||||
26 | - | |||||||
27 | static const SSL_METHOD TLS_client_method_data = { | - | ||||||
28 | .ssl_dispatch_alert = ssl3_dispatch_alert, | - | ||||||
29 | .num_ciphers = ssl3_num_ciphers, | - | ||||||
30 | .get_cipher = ssl3_get_cipher, | - | ||||||
31 | .get_cipher_by_char = ssl3_get_cipher_by_char, | - | ||||||
32 | .put_cipher_by_char = ssl3_put_cipher_by_char, | - | ||||||
33 | .internal = &TLS_client_method_internal_data, | - | ||||||
34 | }; | - | ||||||
35 | - | |||||||
36 | static const SSL_METHOD_INTERNAL TLSv1_client_method_internal_data = { | - | ||||||
37 | .version = 0x0301, | - | ||||||
38 | .min_version = 0x0301, | - | ||||||
39 | .max_version = 0x0301, | - | ||||||
40 | .ssl_new = tls1_new, | - | ||||||
41 | .ssl_clear = tls1_clear, | - | ||||||
42 | .ssl_free = tls1_free, | - | ||||||
43 | .ssl_accept = ssl_undefined_function, | - | ||||||
44 | .ssl_connect = ssl3_connect, | - | ||||||
45 | .get_ssl_method = tls1_get_client_method, | - | ||||||
46 | .get_timeout = tls1_default_timeout, | - | ||||||
47 | .ssl_version = ssl_undefined_void_function, | - | ||||||
48 | .ssl_renegotiate = ssl3_renegotiate, | - | ||||||
49 | .ssl_renegotiate_check = ssl3_renegotiate_check, | - | ||||||
50 | .ssl_get_message = ssl3_get_message, | - | ||||||
51 | .ssl_read_bytes = ssl3_read_bytes, | - | ||||||
52 | .ssl_write_bytes = ssl3_write_bytes, | - | ||||||
53 | .ssl3_enc = &TLSv1_enc_data, | - | ||||||
54 | }; | - | ||||||
55 | - | |||||||
56 | static const SSL_METHOD TLSv1_client_method_data = { | - | ||||||
57 | .ssl_dispatch_alert = ssl3_dispatch_alert, | - | ||||||
58 | .num_ciphers = ssl3_num_ciphers, | - | ||||||
59 | .get_cipher = ssl3_get_cipher, | - | ||||||
60 | .get_cipher_by_char = ssl3_get_cipher_by_char, | - | ||||||
61 | .put_cipher_by_char = ssl3_put_cipher_by_char, | - | ||||||
62 | .internal = &TLSv1_client_method_internal_data, | - | ||||||
63 | }; | - | ||||||
64 | - | |||||||
65 | static const SSL_METHOD_INTERNAL TLSv1_1_client_method_internal_data = { | - | ||||||
66 | .version = 0x0302, | - | ||||||
67 | .min_version = 0x0302, | - | ||||||
68 | .max_version = 0x0302, | - | ||||||
69 | .ssl_new = tls1_new, | - | ||||||
70 | .ssl_clear = tls1_clear, | - | ||||||
71 | .ssl_free = tls1_free, | - | ||||||
72 | .ssl_accept = ssl_undefined_function, | - | ||||||
73 | .ssl_connect = ssl3_connect, | - | ||||||
74 | .get_ssl_method = tls1_get_client_method, | - | ||||||
75 | .get_timeout = tls1_default_timeout, | - | ||||||
76 | .ssl_version = ssl_undefined_void_function, | - | ||||||
77 | .ssl_renegotiate = ssl3_renegotiate, | - | ||||||
78 | .ssl_renegotiate_check = ssl3_renegotiate_check, | - | ||||||
79 | .ssl_get_message = ssl3_get_message, | - | ||||||
80 | .ssl_read_bytes = ssl3_read_bytes, | - | ||||||
81 | .ssl_write_bytes = ssl3_write_bytes, | - | ||||||
82 | .ssl3_enc = &TLSv1_1_enc_data, | - | ||||||
83 | }; | - | ||||||
84 | - | |||||||
85 | static const SSL_METHOD TLSv1_1_client_method_data = { | - | ||||||
86 | .ssl_dispatch_alert = ssl3_dispatch_alert, | - | ||||||
87 | .num_ciphers = ssl3_num_ciphers, | - | ||||||
88 | .get_cipher = ssl3_get_cipher, | - | ||||||
89 | .get_cipher_by_char = ssl3_get_cipher_by_char, | - | ||||||
90 | .put_cipher_by_char = ssl3_put_cipher_by_char, | - | ||||||
91 | .internal = &TLSv1_1_client_method_internal_data, | - | ||||||
92 | }; | - | ||||||
93 | - | |||||||
94 | static const SSL_METHOD_INTERNAL TLSv1_2_client_method_internal_data = { | - | ||||||
95 | .version = 0x0303, | - | ||||||
96 | .min_version = 0x0303, | - | ||||||
97 | .max_version = 0x0303, | - | ||||||
98 | .ssl_new = tls1_new, | - | ||||||
99 | .ssl_clear = tls1_clear, | - | ||||||
100 | .ssl_free = tls1_free, | - | ||||||
101 | .ssl_accept = ssl_undefined_function, | - | ||||||
102 | .ssl_connect = ssl3_connect, | - | ||||||
103 | .get_ssl_method = tls1_get_client_method, | - | ||||||
104 | .get_timeout = tls1_default_timeout, | - | ||||||
105 | .ssl_version = ssl_undefined_void_function, | - | ||||||
106 | .ssl_renegotiate = ssl3_renegotiate, | - | ||||||
107 | .ssl_renegotiate_check = ssl3_renegotiate_check, | - | ||||||
108 | .ssl_get_message = ssl3_get_message, | - | ||||||
109 | .ssl_read_bytes = ssl3_read_bytes, | - | ||||||
110 | .ssl_write_bytes = ssl3_write_bytes, | - | ||||||
111 | .ssl3_enc = &TLSv1_2_enc_data, | - | ||||||
112 | }; | - | ||||||
113 | - | |||||||
114 | static const SSL_METHOD TLSv1_2_client_method_data = { | - | ||||||
115 | .ssl_dispatch_alert = ssl3_dispatch_alert, | - | ||||||
116 | .num_ciphers = ssl3_num_ciphers, | - | ||||||
117 | .get_cipher = ssl3_get_cipher, | - | ||||||
118 | .get_cipher_by_char = ssl3_get_cipher_by_char, | - | ||||||
119 | .put_cipher_by_char = ssl3_put_cipher_by_char, | - | ||||||
120 | .internal = &TLSv1_2_client_method_internal_data, | - | ||||||
121 | }; | - | ||||||
122 | - | |||||||
123 | const SSL_METHOD * | - | ||||||
124 | tls1_get_client_method(int ver) | - | ||||||
125 | { | - | ||||||
126 | if (ver == 0x0303
| 29-34 | ||||||
127 | return executed 34 times by 2 tests: (TLSv1_2_client_method());return (TLSv1_2_client_method()); Executed by:
executed 34 times by 2 tests: return (TLSv1_2_client_method()); Executed by:
| 34 | ||||||
128 | if (ver == 0x0302
| 0-29 | ||||||
129 | return never executed: (TLSv1_1_client_method());return (TLSv1_1_client_method()); never executed: return (TLSv1_1_client_method()); | 0 | ||||||
130 | if (ver == 0x0301
| 11-18 | ||||||
131 | return executed 18 times by 1 test: (TLSv1_client_method());return (TLSv1_client_method()); Executed by:
executed 18 times by 1 test: return (TLSv1_client_method()); Executed by:
| 18 | ||||||
132 | return executed 11 times by 1 test: (return ( ((void *)0) ); Executed by:
executed 11 times by 1 test: return ( ((void *)0) ); Executed by:
| 11 | ||||||
133 | ((void *)0) executed 11 times by 1 test: return ( ((void *)0) ); Executed by:
| 11 | ||||||
134 | ); executed 11 times by 1 test: return ( ((void *)0) ); Executed by:
| 11 | ||||||
135 | } | - | ||||||
136 | - | |||||||
137 | const SSL_METHOD * | - | ||||||
138 | SSLv23_client_method(void) | - | ||||||
139 | { | - | ||||||
140 | return executed 8 times by 3 tests: (TLS_client_method());return (TLS_client_method()); Executed by:
executed 8 times by 3 tests: return (TLS_client_method()); Executed by:
| 8 | ||||||
141 | } | - | ||||||
142 | - | |||||||
143 | const SSL_METHOD * | - | ||||||
144 | TLS_client_method(void) | - | ||||||
145 | { | - | ||||||
146 | return executed 21 times by 4 tests: (&TLS_client_method_data);return (&TLS_client_method_data); Executed by:
executed 21 times by 4 tests: return (&TLS_client_method_data); Executed by:
| 21 | ||||||
147 | } | - | ||||||
148 | - | |||||||
149 | const SSL_METHOD * | - | ||||||
150 | TLSv1_client_method(void) | - | ||||||
151 | { | - | ||||||
152 | return executed 22 times by 4 tests: (&TLSv1_client_method_data);return (&TLSv1_client_method_data); Executed by:
executed 22 times by 4 tests: return (&TLSv1_client_method_data); Executed by:
| 22 | ||||||
153 | } | - | ||||||
154 | - | |||||||
155 | const SSL_METHOD * | - | ||||||
156 | TLSv1_1_client_method(void) | - | ||||||
157 | { | - | ||||||
158 | return executed 2 times by 2 tests: (&TLSv1_1_client_method_data);return (&TLSv1_1_client_method_data); Executed by:
executed 2 times by 2 tests: return (&TLSv1_1_client_method_data); Executed by:
| 2 | ||||||
159 | } | - | ||||||
160 | - | |||||||
161 | const SSL_METHOD * | - | ||||||
162 | TLSv1_2_client_method(void) | - | ||||||
163 | { | - | ||||||
164 | return executed 39 times by 7 tests: (&TLSv1_2_client_method_data);return (&TLSv1_2_client_method_data); Executed by:
executed 39 times by 7 tests: return (&TLSv1_2_client_method_data); Executed by:
| 39 | ||||||
165 | } | - | ||||||
Switch to Source code | Preprocessed file |