apple / swift-nio-ssl

TLS Support for SwiftNIO, based on BoringSSL.
https://swiftpackageindex.com/apple/swift-nio-ssl/main/documentation/niossl
Apache License 2.0
388 stars 139 forks source link

Incomplete definition of type 'struct bio_st' #377

Closed elbuki closed 2 years ago

elbuki commented 2 years ago

Hi there! 👋

I was setting up a project with the SlackKit library that has a dependency to swift-nio-ssl and when building an error in shims.c appears with the following:

Screen Shot 2022-07-02 at 4 51 45 PM

This is my development stack just in case:

Xcode 13.4.1
macOS 12.4
SlackKit 4.8.0
Libressl stable 3.5.3 installed with Homebrew 3.4.11
MacBook Air 2020 M1

Related issue: https://github.com/pvzig/SlackKit/issues/211

Lukasa commented 2 years ago

Unfortunately you appear to be using v1 of this library, which exited support some time ago. SwiftNIO SSL 2.x has been the mainline release since March 2019, so the v1 series is receiving security fixes only. I recommend encouraging SlackKit to adopt newer versions of their web socket stack, which appears to be the thing dragging in the old copy of SwiftNIO SSL.