OpenCoverage

t1_clnt.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/t1_clnt.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7static 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-
27static 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-
36static 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-
56static 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-
65static 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-
85static 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-
94static 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-
114static 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-
123const SSL_METHOD *-
124tls1_get_client_method(int ver)-
125{-
126 if (ver == 0x0303
ver == 0x0303Description
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • ssltest
  • tlstest
FALSEevaluated 29 times by 1 test
Evaluated by:
  • ssltest
)
29-34
127 return
executed 34 times by 2 tests: return (TLSv1_2_client_method());
Executed by:
  • ssltest
  • tlstest
(TLSv1_2_client_method());
executed 34 times by 2 tests: return (TLSv1_2_client_method());
Executed by:
  • ssltest
  • tlstest
34
128 if (ver == 0x0302
ver == 0x0302Description
TRUEnever evaluated
FALSEevaluated 29 times by 1 test
Evaluated by:
  • ssltest
)
0-29
129 return
never executed: return (TLSv1_1_client_method());
(TLSv1_1_client_method());
never executed: return (TLSv1_1_client_method());
0
130 if (ver == 0x0301
ver == 0x0301Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • ssltest
FALSEevaluated 11 times by 1 test
Evaluated by:
  • ssltest
)
11-18
131 return
executed 18 times by 1 test: return (TLSv1_client_method());
Executed by:
  • ssltest
(TLSv1_client_method());
executed 18 times by 1 test: return (TLSv1_client_method());
Executed by:
  • ssltest
18
132 return
executed 11 times by 1 test: return ( ((void *)0) );
Executed by:
  • ssltest
(
executed 11 times by 1 test: return ( ((void *)0) );
Executed by:
  • ssltest
11
133 ((void *)0)
executed 11 times by 1 test: return ( ((void *)0) );
Executed by:
  • ssltest
11
134 );
executed 11 times by 1 test: return ( ((void *)0) );
Executed by:
  • ssltest
11
135}-
136-
137const SSL_METHOD *-
138SSLv23_client_method(void)-
139{-
140 return
executed 8 times by 3 tests: return (TLS_client_method());
Executed by:
  • cipherstest
  • clienttest
  • tlstest
(TLS_client_method());
executed 8 times by 3 tests: return (TLS_client_method());
Executed by:
  • cipherstest
  • clienttest
  • tlstest
8
141}-
142-
143const SSL_METHOD *-
144TLS_client_method(void)-
145{-
146 return
executed 21 times by 4 tests: return (&TLS_client_method_data);
Executed by:
  • cipherstest
  • clienttest
  • tlsexttest
  • tlstest
(&TLS_client_method_data);
executed 21 times by 4 tests: return (&TLS_client_method_data);
Executed by:
  • cipherstest
  • clienttest
  • tlsexttest
  • tlstest
21
147}-
148-
149const SSL_METHOD *-
150TLSv1_client_method(void)-
151{-
152 return
executed 22 times by 4 tests: return (&TLSv1_client_method_data);
Executed by:
  • cipherstest
  • clienttest
  • libssl.so.46.0.1
  • ssltest
(&TLSv1_client_method_data);
executed 22 times by 4 tests: return (&TLSv1_client_method_data);
Executed by:
  • cipherstest
  • clienttest
  • libssl.so.46.0.1
  • ssltest
22
153}-
154-
155const SSL_METHOD *-
156TLSv1_1_client_method(void)-
157{-
158 return
executed 2 times by 2 tests: return (&TLSv1_1_client_method_data);
Executed by:
  • cipherstest
  • clienttest
(&TLSv1_1_client_method_data);
executed 2 times by 2 tests: return (&TLSv1_1_client_method_data);
Executed by:
  • cipherstest
  • clienttest
2
159}-
160-
161const SSL_METHOD *-
162TLSv1_2_client_method(void)-
163{-
164 return
executed 39 times by 7 tests: return (&TLSv1_2_client_method_data);
Executed by:
  • cipher_list
  • cipherstest
  • clienttest
  • ssltest
  • tls_ext_alpn
  • tlsexttest
  • tlstest
(&TLSv1_2_client_method_data);
executed 39 times by 7 tests: return (&TLSv1_2_client_method_data);
Executed by:
  • cipher_list
  • cipherstest
  • clienttest
  • ssltest
  • tls_ext_alpn
  • tlsexttest
  • tlstest
39
165}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2