cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: building with nghttp2 + ssl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 24 Oct 2014 22:49:40 +0200 (CEST)

On Fri, 24 Oct 2014, Guenter wrote:

> I've now managed to build libcurl/curl with nghttp2 (MinGW):

...

> but when I try to build with OpenSSL I only get:
> vtls/openssl.c:1426:6: Error: #error http2 builds require OpenSSL with NPN or
> ALPN support
> mingw32-make[1]: *** [vtls/openssl.o] Error 1
>
> I've tried with OpenSSl 1.0.1j and 1.0.2beta3 ... is it required to also
> build nghttp2 with OpenSSL, or do I need to enable NPN or ALPN support with
> OpenSSL??

I've used the development OpenSSL 1.1.0 off their git when toying with this.

> and from where come those macros in vtls/openssl.c which cause the #error?
> Does libcurl's configure set them? I've grep'd through openssl sources but
> no sign of them, and also I didnt find them in libcurl's configure ...

configure.ac line 1574 - 1576 test for the presense of those functions when
OpenSSL is used.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-24