From 5fb603068396a80293d0f411297e6119a4473d62 Mon Sep 17 00:00:00 2001 From: jsing Date: Wed, 10 Mar 2021 18:32:38 +0000 Subject: [PATCH] Guard TLS1_get_{client_,}version() macros with #ifndef LIBRESSL_INTERNAL. These are no longer used (and should not be used) internally. --- lib/libssl/tls1.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libssl/tls1.h b/lib/libssl/tls1.h index 8cd52265820..628a6b2fca3 100644 --- a/lib/libssl/tls1.h +++ b/lib/libssl/tls1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls1.h,v 1.41 2020/06/05 18:14:05 jsing Exp $ */ +/* $OpenBSD: tls1.h,v 1.42 2021/03/10 18:32:38 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -177,11 +177,13 @@ extern "C" { #define TLS1_VERSION_MAJOR 0x03 #define TLS1_VERSION_MINOR 0x01 +#ifndef LIBRESSL_INTERNAL #define TLS1_get_version(s) \ ((s->version >> 8) == TLS1_VERSION_MAJOR ? s->version : 0) #define TLS1_get_client_version(s) \ ((s->client_version >> 8) == TLS1_VERSION_MAJOR ? s->client_version : 0) +#endif /* * TLS Alert codes. -- 2.20.1