swift – 如何使用SSLSetALPNProtocols?

我正在为
vapor项目开发一个TLS库,并支持Apple(Transport-)Security和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忘记导出SSLSetALPNProtocols和SSLCopyALPNProtocols功能.

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

点赞