openssl: add option for NPN support
[librecmc/librecmc.git] / package / libs / openssl / patches / 301-fix_no_nextprotoneg_build.patch
1 --- a/ssl/t1_ext.c
2 +++ b/ssl/t1_ext.c
3 @@ -275,7 +275,9 @@ int SSL_extension_supported(unsigned int
4      case TLSEXT_TYPE_ec_point_formats:
5      case TLSEXT_TYPE_elliptic_curves:
6      case TLSEXT_TYPE_heartbeat:
7 +# ifndef OPENSSL_NO_NEXTPROTONEG
8      case TLSEXT_TYPE_next_proto_neg:
9 +# endif
10      case TLSEXT_TYPE_padding:
11      case TLSEXT_TYPE_renegotiate:
12      case TLSEXT_TYPE_server_name: