diff options
author | jsing <> | 2017-01-26 06:32:58 +0000 |
---|---|---|
committer | jsing <> | 2017-01-26 06:32:58 +0000 |
commit | aa0037c390e8abacf9713cd2521b1b3f265af0e9 (patch) | |
tree | 09a483692ecb3d9b3259d70bca4f0473c356e0f5 /src/lib/libssl/d1_clnt.c | |
parent | 49b29010b73e2191c70fb3c541ef163c31dc59f6 (diff) | |
download | openbsd-aa0037c390e8abacf9713cd2521b1b3f265af0e9.tar.gz openbsd-aa0037c390e8abacf9713cd2521b1b3f265af0e9.tar.bz2 openbsd-aa0037c390e8abacf9713cd2521b1b3f265af0e9.zip |
Remove most of SSL3_ENC_METHOD - we can just inline the function calls
and defines since they are the same everywhere.
ok beck@
Diffstat (limited to 'src/lib/libssl/d1_clnt.c')
-rw-r--r-- | src/lib/libssl/d1_clnt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libssl/d1_clnt.c b/src/lib/libssl/d1_clnt.c index 5f8b56ebed..c0f90dce6f 100644 --- a/src/lib/libssl/d1_clnt.c +++ b/src/lib/libssl/d1_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_clnt.c,v 1.70 2017/01/26 05:31:25 jsing Exp $ */ | 1 | /* $OpenBSD: d1_clnt.c,v 1.71 2017/01/26 06:32:58 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -437,12 +437,12 @@ dtls1_connect(SSL *s) | |||
437 | s->internal->init_num = 0; | 437 | s->internal->init_num = 0; |
438 | 438 | ||
439 | s->session->cipher = S3I(s)->tmp.new_cipher; | 439 | s->session->cipher = S3I(s)->tmp.new_cipher; |
440 | if (!s->method->internal->ssl3_enc->setup_key_block(s)) { | 440 | if (!tls1_setup_key_block(s)) { |
441 | ret = -1; | 441 | ret = -1; |
442 | goto end; | 442 | goto end; |
443 | } | 443 | } |
444 | 444 | ||
445 | if (!s->method->internal->ssl3_enc->change_cipher_state(s, | 445 | if (!tls1_change_cipher_state(s, |
446 | SSL3_CHANGE_CIPHER_CLIENT_WRITE)) { | 446 | SSL3_CHANGE_CIPHER_CLIENT_WRITE)) { |
447 | ret = -1; | 447 | ret = -1; |
448 | goto end; | 448 | goto end; |
@@ -458,8 +458,8 @@ dtls1_connect(SSL *s) | |||
458 | dtls1_start_timer(s); | 458 | dtls1_start_timer(s); |
459 | ret = ssl3_send_finished(s, | 459 | ret = ssl3_send_finished(s, |
460 | SSL3_ST_CW_FINISHED_A, SSL3_ST_CW_FINISHED_B, | 460 | SSL3_ST_CW_FINISHED_A, SSL3_ST_CW_FINISHED_B, |
461 | s->method->internal->ssl3_enc->client_finished_label, | 461 | TLS_MD_CLIENT_FINISH_CONST, |
462 | s->method->internal->ssl3_enc->client_finished_label_len); | 462 | TLS_MD_CLIENT_FINISH_CONST_SIZE); |
463 | if (ret <= 0) | 463 | if (ret <= 0) |
464 | goto end; | 464 | goto end; |
465 | s->internal->state = SSL3_ST_CW_FLUSH; | 465 | s->internal->state = SSL3_ST_CW_FLUSH; |