diff options
Diffstat (limited to 'src/lib/libssl/ssl_methods.c')
| -rw-r--r-- | src/lib/libssl/ssl_methods.c | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/src/lib/libssl/ssl_methods.c b/src/lib/libssl/ssl_methods.c index a3097c37b9..b9b8a95e56 100644 --- a/src/lib/libssl/ssl_methods.c +++ b/src/lib/libssl/ssl_methods.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_methods.c,v 1.26 2021/07/01 17:53:39 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_methods.c,v 1.27 2021/07/03 16:06:45 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -78,10 +78,7 @@ static const SSL_METHOD DTLS_method_data = { | |||
| 78 | .ssl_read_bytes = dtls1_read_bytes, | 78 | .ssl_read_bytes = dtls1_read_bytes, |
| 79 | .ssl_write_bytes = dtls1_write_app_data_bytes, | 79 | .ssl_write_bytes = dtls1_write_app_data_bytes, |
| 80 | .ssl_dispatch_alert = dtls1_dispatch_alert, | 80 | .ssl_dispatch_alert = dtls1_dispatch_alert, |
| 81 | .num_ciphers = ssl3_num_ciphers, | ||
| 82 | .get_cipher = dtls1_get_cipher, | 81 | .get_cipher = dtls1_get_cipher, |
| 83 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 84 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 85 | .enc_flags = TLSV1_2_ENC_FLAGS, | 82 | .enc_flags = TLSV1_2_ENC_FLAGS, |
| 86 | }; | 83 | }; |
| 87 | 84 | ||
| @@ -103,10 +100,7 @@ static const SSL_METHOD DTLS_client_method_data = { | |||
| 103 | .ssl_read_bytes = dtls1_read_bytes, | 100 | .ssl_read_bytes = dtls1_read_bytes, |
| 104 | .ssl_write_bytes = dtls1_write_app_data_bytes, | 101 | .ssl_write_bytes = dtls1_write_app_data_bytes, |
| 105 | .ssl_dispatch_alert = dtls1_dispatch_alert, | 102 | .ssl_dispatch_alert = dtls1_dispatch_alert, |
| 106 | .num_ciphers = ssl3_num_ciphers, | ||
| 107 | .get_cipher = dtls1_get_cipher, | 103 | .get_cipher = dtls1_get_cipher, |
| 108 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 109 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 110 | .enc_flags = TLSV1_2_ENC_FLAGS, | 104 | .enc_flags = TLSV1_2_ENC_FLAGS, |
| 111 | }; | 105 | }; |
| 112 | 106 | ||
| @@ -128,10 +122,7 @@ static const SSL_METHOD DTLSv1_method_data = { | |||
| 128 | .ssl_read_bytes = dtls1_read_bytes, | 122 | .ssl_read_bytes = dtls1_read_bytes, |
| 129 | .ssl_write_bytes = dtls1_write_app_data_bytes, | 123 | .ssl_write_bytes = dtls1_write_app_data_bytes, |
| 130 | .ssl_dispatch_alert = dtls1_dispatch_alert, | 124 | .ssl_dispatch_alert = dtls1_dispatch_alert, |
| 131 | .num_ciphers = ssl3_num_ciphers, | ||
| 132 | .get_cipher = dtls1_get_cipher, | 125 | .get_cipher = dtls1_get_cipher, |
| 133 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 134 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 135 | .enc_flags = TLSV1_1_ENC_FLAGS, | 126 | .enc_flags = TLSV1_1_ENC_FLAGS, |
| 136 | }; | 127 | }; |
| 137 | 128 | ||
| @@ -153,10 +144,7 @@ static const SSL_METHOD DTLSv1_client_method_data = { | |||
| 153 | .ssl_read_bytes = dtls1_read_bytes, | 144 | .ssl_read_bytes = dtls1_read_bytes, |
| 154 | .ssl_write_bytes = dtls1_write_app_data_bytes, | 145 | .ssl_write_bytes = dtls1_write_app_data_bytes, |
| 155 | .ssl_dispatch_alert = dtls1_dispatch_alert, | 146 | .ssl_dispatch_alert = dtls1_dispatch_alert, |
| 156 | .num_ciphers = ssl3_num_ciphers, | ||
| 157 | .get_cipher = dtls1_get_cipher, | 147 | .get_cipher = dtls1_get_cipher, |
| 158 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 159 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 160 | .enc_flags = TLSV1_1_ENC_FLAGS, | 148 | .enc_flags = TLSV1_1_ENC_FLAGS, |
| 161 | }; | 149 | }; |
| 162 | 150 | ||
| @@ -178,10 +166,7 @@ static const SSL_METHOD DTLSv1_2_method_data = { | |||
| 178 | .ssl_read_bytes = dtls1_read_bytes, | 166 | .ssl_read_bytes = dtls1_read_bytes, |
| 179 | .ssl_write_bytes = dtls1_write_app_data_bytes, | 167 | .ssl_write_bytes = dtls1_write_app_data_bytes, |
| 180 | .ssl_dispatch_alert = dtls1_dispatch_alert, | 168 | .ssl_dispatch_alert = dtls1_dispatch_alert, |
| 181 | .num_ciphers = ssl3_num_ciphers, | ||
| 182 | .get_cipher = dtls1_get_cipher, | 169 | .get_cipher = dtls1_get_cipher, |
| 183 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 184 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 185 | .enc_flags = TLSV1_2_ENC_FLAGS, | 170 | .enc_flags = TLSV1_2_ENC_FLAGS, |
| 186 | }; | 171 | }; |
| 187 | 172 | ||
| @@ -203,10 +188,7 @@ static const SSL_METHOD DTLSv1_2_client_method_data = { | |||
| 203 | .ssl_read_bytes = dtls1_read_bytes, | 188 | .ssl_read_bytes = dtls1_read_bytes, |
| 204 | .ssl_write_bytes = dtls1_write_app_data_bytes, | 189 | .ssl_write_bytes = dtls1_write_app_data_bytes, |
| 205 | .ssl_dispatch_alert = dtls1_dispatch_alert, | 190 | .ssl_dispatch_alert = dtls1_dispatch_alert, |
| 206 | .num_ciphers = ssl3_num_ciphers, | ||
| 207 | .get_cipher = dtls1_get_cipher, | 191 | .get_cipher = dtls1_get_cipher, |
| 208 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 209 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 210 | .enc_flags = TLSV1_2_ENC_FLAGS, | 192 | .enc_flags = TLSV1_2_ENC_FLAGS, |
| 211 | }; | 193 | }; |
| 212 | 194 | ||
| @@ -283,10 +265,7 @@ static const SSL_METHOD TLS_method_data = { | |||
| 283 | .ssl_read_bytes = tls13_legacy_read_bytes, | 265 | .ssl_read_bytes = tls13_legacy_read_bytes, |
| 284 | .ssl_write_bytes = tls13_legacy_write_bytes, | 266 | .ssl_write_bytes = tls13_legacy_write_bytes, |
| 285 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 267 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 286 | .num_ciphers = ssl3_num_ciphers, | ||
| 287 | .get_cipher = ssl3_get_cipher, | 268 | .get_cipher = ssl3_get_cipher, |
| 288 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 289 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 290 | .enc_flags = TLSV1_3_ENC_FLAGS, | 269 | .enc_flags = TLSV1_3_ENC_FLAGS, |
| 291 | }; | 270 | }; |
| 292 | #endif | 271 | #endif |
| @@ -309,10 +288,7 @@ static const SSL_METHOD TLS_legacy_method_data = { | |||
| 309 | .ssl_read_bytes = ssl3_read_bytes, | 288 | .ssl_read_bytes = ssl3_read_bytes, |
| 310 | .ssl_write_bytes = ssl3_write_bytes, | 289 | .ssl_write_bytes = ssl3_write_bytes, |
| 311 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 290 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 312 | .num_ciphers = ssl3_num_ciphers, | ||
| 313 | .get_cipher = ssl3_get_cipher, | 291 | .get_cipher = ssl3_get_cipher, |
| 314 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 315 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 316 | .enc_flags = TLSV1_2_ENC_FLAGS, | 292 | .enc_flags = TLSV1_2_ENC_FLAGS, |
| 317 | }; | 293 | }; |
| 318 | 294 | ||
| @@ -335,10 +311,7 @@ static const SSL_METHOD TLS_client_method_data = { | |||
| 335 | .ssl_read_bytes = tls13_legacy_read_bytes, | 311 | .ssl_read_bytes = tls13_legacy_read_bytes, |
| 336 | .ssl_write_bytes = tls13_legacy_write_bytes, | 312 | .ssl_write_bytes = tls13_legacy_write_bytes, |
| 337 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 313 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 338 | .num_ciphers = ssl3_num_ciphers, | ||
| 339 | .get_cipher = ssl3_get_cipher, | 314 | .get_cipher = ssl3_get_cipher, |
| 340 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 341 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 342 | .enc_flags = TLSV1_3_ENC_FLAGS, | 315 | .enc_flags = TLSV1_3_ENC_FLAGS, |
| 343 | }; | 316 | }; |
| 344 | 317 | ||
| @@ -362,10 +335,7 @@ static const SSL_METHOD TLS_legacy_client_method_data = { | |||
| 362 | .ssl_read_bytes = ssl3_read_bytes, | 335 | .ssl_read_bytes = ssl3_read_bytes, |
| 363 | .ssl_write_bytes = ssl3_write_bytes, | 336 | .ssl_write_bytes = ssl3_write_bytes, |
| 364 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 337 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 365 | .num_ciphers = ssl3_num_ciphers, | ||
| 366 | .get_cipher = ssl3_get_cipher, | 338 | .get_cipher = ssl3_get_cipher, |
| 367 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 368 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 369 | .enc_flags = TLSV1_2_ENC_FLAGS, | 339 | .enc_flags = TLSV1_2_ENC_FLAGS, |
| 370 | }; | 340 | }; |
| 371 | #endif | 341 | #endif |
| @@ -388,10 +358,7 @@ static const SSL_METHOD TLSv1_method_data = { | |||
| 388 | .ssl_read_bytes = ssl3_read_bytes, | 358 | .ssl_read_bytes = ssl3_read_bytes, |
| 389 | .ssl_write_bytes = ssl3_write_bytes, | 359 | .ssl_write_bytes = ssl3_write_bytes, |
| 390 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 360 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 391 | .num_ciphers = ssl3_num_ciphers, | ||
| 392 | .get_cipher = ssl3_get_cipher, | 361 | .get_cipher = ssl3_get_cipher, |
| 393 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 394 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 395 | .enc_flags = TLSV1_ENC_FLAGS, | 362 | .enc_flags = TLSV1_ENC_FLAGS, |
| 396 | }; | 363 | }; |
| 397 | 364 | ||
| @@ -413,10 +380,7 @@ static const SSL_METHOD TLSv1_client_method_data = { | |||
| 413 | .ssl_read_bytes = ssl3_read_bytes, | 380 | .ssl_read_bytes = ssl3_read_bytes, |
| 414 | .ssl_write_bytes = ssl3_write_bytes, | 381 | .ssl_write_bytes = ssl3_write_bytes, |
| 415 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 382 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 416 | .num_ciphers = ssl3_num_ciphers, | ||
| 417 | .get_cipher = ssl3_get_cipher, | 383 | .get_cipher = ssl3_get_cipher, |
| 418 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 419 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 420 | .enc_flags = TLSV1_ENC_FLAGS, | 384 | .enc_flags = TLSV1_ENC_FLAGS, |
| 421 | }; | 385 | }; |
| 422 | 386 | ||
| @@ -438,10 +402,7 @@ static const SSL_METHOD TLSv1_1_method_data = { | |||
| 438 | .ssl_read_bytes = ssl3_read_bytes, | 402 | .ssl_read_bytes = ssl3_read_bytes, |
| 439 | .ssl_write_bytes = ssl3_write_bytes, | 403 | .ssl_write_bytes = ssl3_write_bytes, |
| 440 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 404 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 441 | .num_ciphers = ssl3_num_ciphers, | ||
| 442 | .get_cipher = ssl3_get_cipher, | 405 | .get_cipher = ssl3_get_cipher, |
| 443 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 444 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 445 | .enc_flags = TLSV1_1_ENC_FLAGS, | 406 | .enc_flags = TLSV1_1_ENC_FLAGS, |
| 446 | }; | 407 | }; |
| 447 | 408 | ||
| @@ -463,10 +424,7 @@ static const SSL_METHOD TLSv1_1_client_method_data = { | |||
| 463 | .ssl_read_bytes = ssl3_read_bytes, | 424 | .ssl_read_bytes = ssl3_read_bytes, |
| 464 | .ssl_write_bytes = ssl3_write_bytes, | 425 | .ssl_write_bytes = ssl3_write_bytes, |
| 465 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 426 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 466 | .num_ciphers = ssl3_num_ciphers, | ||
| 467 | .get_cipher = ssl3_get_cipher, | 427 | .get_cipher = ssl3_get_cipher, |
| 468 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 469 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 470 | .enc_flags = TLSV1_1_ENC_FLAGS, | 428 | .enc_flags = TLSV1_1_ENC_FLAGS, |
| 471 | }; | 429 | }; |
| 472 | 430 | ||
| @@ -488,10 +446,7 @@ static const SSL_METHOD TLSv1_2_method_data = { | |||
| 488 | .ssl_read_bytes = ssl3_read_bytes, | 446 | .ssl_read_bytes = ssl3_read_bytes, |
| 489 | .ssl_write_bytes = ssl3_write_bytes, | 447 | .ssl_write_bytes = ssl3_write_bytes, |
| 490 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 448 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 491 | .num_ciphers = ssl3_num_ciphers, | ||
| 492 | .get_cipher = ssl3_get_cipher, | 449 | .get_cipher = ssl3_get_cipher, |
| 493 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 494 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 495 | .enc_flags = TLSV1_2_ENC_FLAGS, | 450 | .enc_flags = TLSV1_2_ENC_FLAGS, |
| 496 | }; | 451 | }; |
| 497 | 452 | ||
| @@ -513,10 +468,7 @@ static const SSL_METHOD TLSv1_2_client_method_data = { | |||
| 513 | .ssl_read_bytes = ssl3_read_bytes, | 468 | .ssl_read_bytes = ssl3_read_bytes, |
| 514 | .ssl_write_bytes = ssl3_write_bytes, | 469 | .ssl_write_bytes = ssl3_write_bytes, |
| 515 | .ssl_dispatch_alert = ssl3_dispatch_alert, | 470 | .ssl_dispatch_alert = ssl3_dispatch_alert, |
| 516 | .num_ciphers = ssl3_num_ciphers, | ||
| 517 | .get_cipher = ssl3_get_cipher, | 471 | .get_cipher = ssl3_get_cipher, |
| 518 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
| 519 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
| 520 | .enc_flags = TLSV1_2_ENC_FLAGS, | 472 | .enc_flags = TLSV1_2_ENC_FLAGS, |
| 521 | }; | 473 | }; |
| 522 | 474 | ||
