summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls1.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/tls1.h')
-rw-r--r--src/lib/libssl/tls1.h11
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.