gpt4 book ai didi

swift - 如何使用 SSLSetALPNProtocols?

转载 作者:搜寻专家 更新时间:2023-10-31 19:36:34 25 4
gpt4 key购买 nike

我正在为 vapor 开发一个 TLS 库项目并支持 Apple 的(传输)安全和 OpenSSL 用于 HTTP/2 客户端和服务器。

On this line of code我正在尝试调用 SSLSetALPNProtocols。无论采用何种方法,我都会在该行代码中遇到 ld 链接器错误。

Undefined symbols for architecture x86_64:
"_SSLSetALPNProtocols", referenced from:
__T08AppleSSL9SSLOptionV4alpnACSaySSG9protocols_tFZySo10SSLContextCKcfU_ in Options.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

没有可用的文档来强调可能的明显错误 since the page is empty .

那么,我如何让这段代码在 ALPN 支持下编译?

最佳答案

目前这是不可能的。 Apple 忘记导出 SSLSetALPNProtocolsSSLCopyALPNProtocols 函数。

我已经提交了 rdar://34790589(rdar://33907676 的副本)

关于swift - 如何使用 SSLSetALPNProtocols?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46685756/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com