openssl: backport build fix when hardware support is used
[openwrt/openwrt.git] / package / libs / openssl / patches / 301-fix_no_nextprotoneg_build.patch
1 From f15a7e39a1f7d41716ca5f07faef74f55147d2cf Mon Sep 17 00:00:00 2001
2 From: Dirk Feytons <dirk.feytons@gmail.com>
3 Date: Thu, 22 Sep 2016 16:17:45 +0200
4 Subject: [PATCH] Fix build with no-nextprotoneg
5
6 Add a missing ifdef. Same change is already present in master.
7
8 Reviewed-by: Matt Caswell <matt@openssl.org>
9 Reviewed-by: Rich Salz <rsalz@openssl.org>
10 (Merged from https://github.com/openssl/openssl/pull/1100)
11 ---
12 ssl/t1_ext.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15 --- a/ssl/t1_ext.c
16 +++ b/ssl/t1_ext.c
17 @@ -275,7 +275,9 @@ int SSL_extension_supported(unsigned int
18 case TLSEXT_TYPE_ec_point_formats:
19 case TLSEXT_TYPE_elliptic_curves:
20 case TLSEXT_TYPE_heartbeat:
21 +# ifndef OPENSSL_NO_NEXTPROTONEG
22 case TLSEXT_TYPE_next_proto_neg:
23 +# endif
24 case TLSEXT_TYPE_padding:
25 case TLSEXT_TYPE_renegotiate:
26 case TLSEXT_TYPE_server_name: