diff options
| author | jsing <> | 2019-03-19 16:53:03 +0000 |
|---|---|---|
| committer | jsing <> | 2019-03-19 16:53:03 +0000 |
| commit | a880f04eb30f9820c8cffb75504d64b5232f8207 (patch) | |
| tree | 262e7498526b6384dd4598673843aec336cc680d /src/lib/libssl/ssl_pkt.c | |
| parent | 1e9de36acc5cec27302baaac8e72f788dd247ea4 (diff) | |
| download | openbsd-a880f04eb30f9820c8cffb75504d64b5232f8207.tar.gz openbsd-a880f04eb30f9820c8cffb75504d64b5232f8207.tar.bz2 openbsd-a880f04eb30f9820c8cffb75504d64b5232f8207.zip | |
Revert TLS1_get{,_client}_version simplification because DTLS.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/ssl_pkt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_pkt.c b/src/lib/libssl/ssl_pkt.c index 336856bccf..2a0dd68acb 100644 --- a/src/lib/libssl/ssl_pkt.c +++ b/src/lib/libssl/ssl_pkt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_pkt.c,v 1.15 2019/03/17 15:16:39 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_pkt.c,v 1.16 2019/03/19 16:53:03 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 | * |
| @@ -729,7 +729,7 @@ do_ssl3_write(SSL *s, int type, const unsigned char *buf, | |||
| 729 | * bytes and record version number > TLS 1.0 | 729 | * bytes and record version number > TLS 1.0 |
| 730 | */ | 730 | */ |
| 731 | if (S3I(s)->hs.state == SSL3_ST_CW_CLNT_HELLO_B && !s->internal->renegotiate && | 731 | if (S3I(s)->hs.state == SSL3_ST_CW_CLNT_HELLO_B && !s->internal->renegotiate && |
| 732 | s->version > TLS1_VERSION) | 732 | TLS1_get_version(s) > TLS1_VERSION) |
| 733 | *(p++) = 0x1; | 733 | *(p++) = 0x1; |
| 734 | else | 734 | else |
| 735 | *(p++) = s->version&0xff; | 735 | *(p++) = s->version&0xff; |
