使用http3编译curl - 卡在ngtcp2的步骤上

使用http3编译curl - 卡在ngtcp2的步骤上

我正在尝试使用实验性 http3/quic 堆栈编译curl。我在几个地方阅读并遵循了食谱示例(最具体的是这里(https://github.com/curl/curl/blob/master/docs/HTTP3.md)) 没有成功。

我目前陷入了curl 的最终编译中,试图找到几个ngtcp2_crypto_* 函数。我相信我已经将此追溯到 ngtcp2 编译在配置步骤中缺少“--with-openssl”标志的问题。当我运行时出现错误:

checking for OPENSSL... yes
checking for SSL_is_quic... no
configure: openssl does not have QUIC interface, disabling it
configure: error: openssl was requested (--with-openssl) but not found

不过我安装的openssl版本,也就是启用了QUIC的版本,是能够成功连接Google的,如下:

openssl s_client -connect google.com:443 -tls1_3
CONNECTED(00000003)
depth=2 C = US, O = Google Trust Services LLC, CN = GTS Root R1
verify error:num=20:unable to get local issuer certificate

有任何想法吗?

编辑:我已经使用快速扩展安装了 SSL 库操作系统是 Ubuntu 20.04.2 LTS

相关内容