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/tls1.h | |
| 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/tls1.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libssl/tls1.h b/src/lib/libssl/tls1.h index e4ebbcbb00..cb68bbb562 100644 --- a/src/lib/libssl/tls1.h +++ b/src/lib/libssl/tls1.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls1.h,v 1.38 2019/03/17 15:16:39 jsing Exp $ */ | 1 | /* $OpenBSD: tls1.h,v 1.39 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 | * |
| @@ -177,10 +177,11 @@ extern "C" { | |||
| 177 | #define TLS1_VERSION_MAJOR 0x03 | 177 | #define TLS1_VERSION_MAJOR 0x03 |
| 178 | #define TLS1_VERSION_MINOR 0x01 | 178 | #define TLS1_VERSION_MINOR 0x01 |
| 179 | 179 | ||
| 180 | #ifndef LIBRESSL_INTERNAL | 180 | #define TLS1_get_version(s) \ |
| 181 | #define TLS1_get_version(s) (s->version) | 181 | ((s->version >> 8) == TLS1_VERSION_MAJOR ? s->version : 0) |
| 182 | #define TLS1_get_client_version(s) (s->client_version) | 182 | |
| 183 | #endif | 183 | #define TLS1_get_client_version(s) \ |
| 184 | ((s->client_version >> 8) == TLS1_VERSION_MAJOR ? s->client_version : 0) | ||
| 184 | 185 | ||
| 185 | /* | 186 | /* |
| 186 | * TLS Alert codes. | 187 | * TLS Alert codes. |
