Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failure on Linux "cannot find 'SSL_get_peer_certificate' in scope" #110

Open
kevinkleine opened this issue Apr 2, 2024 · 0 comments

Comments

@kevinkleine
Copy link

OS Manjaro Linux 23.1.3
Swift 5.9.2

Package.swift

import PackageDescription

let package = Package(
    name: "wstest",
    dependencies: [
        .package(url: "https://github.com/Kitura/Kitura-WebSocket.git" , branch: "master")
    ],
    targets: [
        .executableTarget(
            name: "wstest",
                 dependencies: ["Kitura-WebSocket"]
            ),
    ]
)

Upon running swift build I'm presented with the following error

/home/kevin/p/k/swift/wstest/.build/checkouts/BlueSSLService/Sources/SSLService/SSLService.swift:1322:8: error: cannot find 'SSL_get_peer_certificate' in scope
                                if SSL_get_peer_certificate(.make(optional: sslConnect)) != nil {
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/home/kevin/p/k/swift/wstest/.build/checkouts/BlueSSLService/Sources/SSLService/SSLService.swift:1322:34: error: cannot infer contextual base in reference to member 'make'
                                if SSL_get_peer_certificate(.make(optional: sslConnect)) != nil {
                                                            ~^~~~
error: fatalError

Openssl 1.0, 1.1 and 3.2 are installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant