Build Information
Failed to build ForecastIO-Vapor, reference master (7dfb25
), with Swift 6.0 for Linux on 11 Sep 2024 19:00:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aaastorga/darksky-provider.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/aaastorga/darksky-provider
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7dfb258 Update DarkSkyClient.swift
Cloned https://github.com/aaastorga/darksky-provider.git
Revision (git rev-parse @):
7dfb258e0e2fb4168922483aacc6774e7b14626d
SUCCESS checkout https://github.com/aaastorga/darksky-provider.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/aaastorga/darksky-provider.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-nio-ssl-support.git
Fetching https://github.com/vapor/http.git
Fetching https://github.com/vapor/service.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-zlib-support.git
[1/16] Fetching swift-nio-ssl-support
[17/25483] Fetching swift-nio-ssl-support, http
[1546/25498] Fetching swift-nio-ssl-support, http, swift-nio-zlib-support
[8691/26417] Fetching swift-nio-ssl-support, http, swift-nio-zlib-support, service
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.33s)
[12453/26402] Fetching swift-nio-ssl-support, http, service
Fetching https://github.com/vapor/core.git
[21310/38983] Fetching swift-nio-ssl-support, http, service, swift-nio-ssl
[23578/59126] Fetching swift-nio-ssl-support, http, service, swift-nio-ssl, core
[46922/128876] Fetching swift-nio-ssl-support, http, service, swift-nio-ssl, core, swift-nio
Fetched https://github.com/vapor/service.git from cache (0.95s)
Fetched https://github.com/apple/swift-nio-ssl-support.git from cache (0.95s)
[55096/127941] Fetching http, swift-nio-ssl, core, swift-nio
Fetching https://github.com/vapor/vapor.git
[84697/197909] Fetching http, swift-nio-ssl, core, swift-nio, vapor
Fetched https://github.com/vapor/core.git from cache (1.23s)
[84121/177766] Fetching http, swift-nio-ssl, swift-nio, vapor
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.71s)
[78524/165185] Fetching http, swift-nio, vapor
Fetched https://github.com/vapor/vapor.git from cache (2.25s)
Computing version for https://github.com/vapor/vapor.git
Computed https://github.com/vapor/vapor.git at 3.3.3 (0.98s)
Fetching https://github.com/vapor/validation.git
Fetching https://github.com/vapor/template-kit.git
Fetching https://github.com/vapor/websocket.git
Fetching https://github.com/vapor/url-encoded-form.git
[1/381] Fetching url-encoded-form
[36/1663] Fetching url-encoded-form, template-kit
[1664/4136] Fetching url-encoded-form, template-kit, websocket
[1665/4715] Fetching url-encoded-form, template-kit, websocket, validation
Fetched https://github.com/vapor/url-encoded-form.git from cache (0.28s)
Fetching https://github.com/vapor/routing.git
Fetched https://github.com/vapor/template-kit.git from cache (0.30s)
Fetched https://github.com/vapor/validation.git from cache (0.31s)
Fetching https://github.com/vapor/multipart.git
Fetching https://github.com/vapor/database-kit.git
Fetched https://github.com/vapor/websocket.git from cache (0.39s)
Fetching https://github.com/vapor/crypto.git
[1/1181] Fetching database-kit
[25/21871] Fetching database-kit, routing
[1467/23716] Fetching database-kit, routing, multipart
[22371/26502] Fetching database-kit, routing, multipart, crypto
Fetched https://github.com/vapor/database-kit.git from cache (1.05s)
Fetching https://github.com/vapor/console.git
[23993/25321] Fetching routing, multipart, crypto
Fetched https://github.com/vapor/routing.git from cache (1.46s)
Fetched https://github.com/vapor/http.git from cache (6.01s)
Fetched https://github.com/vapor/crypto.git from cache (1.40s)
Fetched https://github.com/apple/swift-nio.git from cache (6.09s)
[1/5450] Fetching console
Fetched https://github.com/vapor/multipart.git from cache (1.72s)
Fetched https://github.com/vapor/console.git from cache (0.84s)
Computing version for https://github.com/vapor/service.git
Computed https://github.com/vapor/service.git at 1.0.0 (2.17s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 3.1.3 (0.71s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.5.1 (0.62s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (0.53s)
Computing version for https://github.com/vapor/http.git
Computed https://github.com/vapor/service.git at 1.0.0 (0.00s)
Computed https://github.com/vapor/core.git at 3.1.3 (0.00s)
Computed https://github.com/vapor/http.git at 3.4.0 (0.00s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 1.1.0 (0.55s)
Computing version for https://github.com/apple/swift-nio-ssl-support.git
Computed https://github.com/apple/swift-nio-ssl-support.git at 1.0.0 (0.52s)
Computing version for https://github.com/vapor/validation.git
Computed https://github.com/vapor/validation.git at 2.1.1 (0.56s)
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.85s)
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (0.00s)
Computing version for https://github.com/vapor/routing.git
Computed https://github.com/vapor/routing.git at 3.1.0 (0.71s)
Computing version for https://github.com/vapor/websocket.git
Computed https://github.com/vapor/websocket.git at 1.0.2 (0.54s)
Computing version for https://github.com/vapor/console.git
Computed https://github.com/vapor/console.git at 3.1.1 (0.54s)
Computing version for https://github.com/vapor/database-kit.git
Computed https://github.com/vapor/database-kit.git at 1.3.3 (0.53s)
Computing version for https://github.com/vapor/url-encoded-form.git
Computed https://github.com/vapor/url-encoded-form.git at 1.1.0 (0.52s)
Computing version for https://github.com/vapor/template-kit.git
Computed https://github.com/vapor/template-kit.git at 1.5.0 (0.53s)
Computing version for https://github.com/vapor/multipart.git
Computed https://github.com/vapor/multipart.git at 3.1.3 (0.52s)
Computing version for https://github.com/vapor/crypto.git
Computed https://github.com/vapor/crypto.git at 3.4.1 (0.54s)
Creating working copy for https://github.com/vapor/validation.git
Working copy of https://github.com/vapor/validation.git resolved at 2.1.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
Creating working copy for https://github.com/vapor/template-kit.git
Working copy of https://github.com/vapor/template-kit.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 1.1.0
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/vapor/multipart.git
Working copy of https://github.com/vapor/multipart.git resolved at 3.1.3
Creating working copy for https://github.com/vapor/vapor.git
Working copy of https://github.com/vapor/vapor.git resolved at 3.3.3
Creating working copy for https://github.com/vapor/url-encoded-form.git
Working copy of https://github.com/vapor/url-encoded-form.git resolved at 1.1.0
Creating working copy for https://github.com/vapor/database-kit.git
Working copy of https://github.com/vapor/database-kit.git resolved at 1.3.3
Creating working copy for https://github.com/vapor/service.git
Working copy of https://github.com/vapor/service.git resolved at 1.0.0
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 3.1.3
Creating working copy for https://github.com/vapor/crypto.git
Working copy of https://github.com/vapor/crypto.git resolved at 3.4.1
Creating working copy for https://github.com/vapor/websocket.git
Working copy of https://github.com/vapor/websocket.git resolved at 1.0.2
Creating working copy for https://github.com/vapor/routing.git
Working copy of https://github.com/vapor/routing.git resolved at 3.1.0
Creating working copy for https://github.com/vapor/http.git
Working copy of https://github.com/vapor/http.git resolved at 3.4.0
Creating working copy for https://github.com/apple/swift-nio-ssl-support.git
Working copy of https://github.com/apple/swift-nio-ssl-support.git resolved at 1.0.0
Creating working copy for https://github.com/vapor/console.git
Working copy of https://github.com/vapor/console.git resolved at 3.1.1
warning: 'swift-nio-ssl-support': ignoring declared target(s) 'swift-nio-ssl-support' in the system package
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Building for debugging...
[0/42] Write sources
[28/42] Compiling CNIOOpenSSL empty.c
[29/42] Compiling CNIOZlib empty.c
[30/42] Compiling CNIOLinux ifaddrs-android.c
[31/42] Compiling CNIODarwin shim.c
[32/42] Compiling CNIOSHA1 c_nio_sha1.c
[33/42] Compiling CNIOLinux shim.c
[34/42] Write sources
[35/42] Compiling CBase32 base32.c
[36/42] Compiling CBcrypt bcrypt.c
[37/42] Compiling CBcrypt blf.c
[38/42] Compiling CNIOHTTPParser c_nio_http_parser.c
[39/42] Write swift-version-24593BA9C3E375BF.txt
[40/42] Compiling CCryptoOpenSSL shim.c
[41/51] Compiling c-atomics.c
[43/54] Compiling NIOPriorityQueue PriorityQueue.swift
[44/54] Emitting module COperatingSystem
[45/54] Compiling COperatingSystem libc.swift
[47/55] Compiling NIOConcurrencyHelpers atomics.swift
[48/55] Emitting module NIOConcurrencyHelpers
[49/55] Compiling NIOConcurrencyHelpers lock.swift
[51/56] Emitting module NIOPriorityQueue
[52/56] Compiling NIOPriorityQueue Heap.swift
[54/107] Compiling Debugging SourceLocation.swift
[55/107] Compiling Debugging Demangler.swift
[56/107] Emitting module Debugging
[57/107] Compiling Debugging Debuggable.swift
[59/108] Compiling NIO Heap.swift
[60/108] Compiling NIO IO.swift
[61/108] Compiling NIO IOData.swift
[62/108] Compiling NIO IntegerTypes.swift
[63/108] Compiling NIO Interfaces.swift
[64/108] Compiling NIO Linux.swift
[65/108] Compiling NIO LinuxCPUSet.swift
[66/114] Emitting module NIO
[67/114] Compiling NIO MarkedCircularBuffer.swift
[68/114] Compiling NIO MulticastChannel.swift
[69/114] Compiling NIO NIOAny.swift
[70/114] Compiling NIO NonBlockingFileIO.swift
[71/114] Compiling NIO PendingDatagramWritesManager.swift
[72/114] Compiling NIO PendingWritesManager.swift
[73/114] Compiling NIO PriorityQueue.swift
[74/114] Compiling NIO RecvByteBufferAllocator.swift
[75/114] Compiling NIO Resolver.swift
[76/114] Compiling NIO Selectable.swift
[77/114] Compiling NIO Selector.swift
[78/114] Compiling NIO ServerSocket.swift
[79/114] Compiling NIO Socket.swift
[80/114] Compiling NIO SocketAddresses.swift
[81/114] Compiling NIO EventLoop.swift
[82/114] Compiling NIO EventLoopFuture.swift
[83/114] Compiling NIO FileDescriptor.swift
[84/114] Compiling NIO FileHandle.swift
[85/114] Compiling NIO FileRegion.swift
[86/114] Compiling NIO GetaddrinfoResolver.swift
[87/114] Compiling NIO HappyEyeballs.swift
[88/114] Compiling NIO ByteBuffer-int.swift
[89/114] Compiling NIO ByteBuffer-views.swift
[90/114] Compiling NIO Channel.swift
[91/114] Compiling NIO ChannelHandler.swift
[92/114] Compiling NIO ChannelHandlers.swift
[93/114] Compiling NIO ChannelInvoker.swift
[94/114] Compiling NIO ChannelOption.swift
[95/114] Compiling NIO ChannelPipeline.swift
[96/114] Compiling NIO CircularBuffer.swift
[97/114] Compiling NIO Codec.swift
[98/114] Compiling NIO CompositeError.swift
[99/114] Compiling NIO ContiguousCollection.swift
[100/114] Compiling NIO DeadChannel.swift
[101/114] Compiling NIO Embedded.swift
[102/114] Compiling NIO SocketChannel.swift
[103/114] Compiling NIO SocketOptionProvider.swift
[104/114] Compiling NIO System.swift
[105/114] Compiling NIO Thread.swift
[106/114] Compiling NIO TypeAssistedChannelHandler.swift
[107/114] Compiling NIO Utilities.swift
[108/114] Compiling NIO AddressedEnvelope.swift
[109/114] Compiling NIO BaseSocket.swift
[110/114] Compiling NIO BaseSocketChannel.swift
[111/114] Compiling NIO BlockingIOThreadPool.swift
[112/114] Compiling NIO Bootstrap.swift
[113/114] Compiling NIO ByteBuffer-aux.swift
[114/114] Compiling NIO ByteBuffer-core.swift
[116/157] Compiling NIOTLS TLSEvents.swift
[117/157] Emitting module NIOFoundationCompat
[118/157] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[119/157] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[120/159] Compiling Bits Byte+Control.swift
[121/159] Compiling Bits Byte+Digit.swift
[122/159] Compiling Bits BitsError.swift
[123/159] Compiling Bits Byte+Alphabet.swift
[125/160] Compiling Bits Data+Bytes.swift
[126/161] Compiling Async Worker.swift
[127/161] Emitting module Async
[130/161] Compiling Bits Deprecated.swift
[131/161] Compiling Bits ByteBuffer+binaryFloatingPointOperations.swift
[132/161] Compiling Bits ByteBuffer+peek.swift
[133/161] Compiling Bits Bytes.swift
[134/161] Compiling Bits ByteBuffer+require.swift
[135/161] Compiling Bits ByteBuffer+string.swift
[136/161] Compiling Bits Data+Strings.swift
[139/161] Emitting module Bits
[140/162] Compiling Async Future+Flatten.swift
[141/162] Compiling Async Future+Global.swift
[146/162] Compiling Async Exports.swift
[147/162] Compiling Async Future+DoCatch.swift
[148/162] Compiling Async FutureType.swift
[149/162] Compiling Async QueueHandler.swift
[150/163] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[153/163] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[154/163] Emitting module NIOTLS
[155/163] Compiling NIOTLS SNIHandler.swift
[156/164] Compiling NIOHTTP1 HTTPEncoder.swift
[157/165] Compiling NIOHTTP1 HTTPUpgradeHandler.swift
[159/191] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[160/191] Compiling NIOHTTP1 HTTPResponseCompressor.swift
[161/202] Compiling Random Array+Random.swift
[162/202] Compiling Random RandomProtocol.swift
[163/202] Compiling Random URandom.swift
[164/202] Emitting module Random
[165/202] Compiling Random OSRandom.swift
[166/203] Compiling Core Deprecated.swift
[167/203] Compiling Core DirectoryConfig.swift
[168/203] Compiling Core Exports.swift
[169/206] Compiling NIOHTTP1 HTTPTypes.swift
[171/206] Compiling NIOOpenSSL OpenSSLServerHandler.swift
[172/206] Compiling NIOOpenSSL SSLCertificate.swift
[173/206] Compiling NIOOpenSSL SSLConnection.swift
[174/206] Compiling Core NestedData.swift
[175/206] Compiling Core OptionalType.swift
[176/206] Compiling Core Process+Execute.swift
[177/206] Emitting module NIOHTTP1
[178/206] Compiling NIOOpenSSL IdentityVerification.swift
[179/206] Compiling NIOOpenSSL OpenSSLClientHandler.swift
[180/206] Compiling Core Reflectable.swift
[181/206] Compiling Core String+Utilities.swift
[182/206] Compiling Core Thread+Async.swift
[184/216] Compiling NIOOpenSSL SSLPrivateKey.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:27:44: error: cannot find type 'EVP_PKEY' in scope
25 | /// bytes or from a file path.
26 | public class OpenSSLPrivateKey {
27 | internal let ref: UnsafeMutablePointer<EVP_PKEY>
| `- error: cannot find type 'EVP_PKEY' in scope
28 |
29 | private init(withReference ref: UnsafeMutablePointer<EVP_PKEY>) {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:29:58: error: cannot find type 'EVP_PKEY' in scope
27 | internal let ref: UnsafeMutablePointer<EVP_PKEY>
28 |
29 | private init(withReference ref: UnsafeMutablePointer<EVP_PKEY>) {
| `- error: cannot find type 'EVP_PKEY' in scope
30 | self.ref = ref
31 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:93:65: error: cannot find type 'EVP_PKEY' in scope
91 | /// In general, however, this function should be avoided in favour of one of the convenience
92 | /// initializers, which ensure that the lifetime of the X509 object is better-managed.
93 | static public func fromUnsafePointer(pointer: UnsafePointer<EVP_PKEY>) -> OpenSSLPrivateKey {
| `- error: cannot find type 'EVP_PKEY' in scope
94 | return OpenSSLPrivateKey(withReference: UnsafeMutablePointer(mutating: pointer))
95 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:43:39: error: cannot find type 'EVP_PKEY' in scope
41 | }
42 |
43 | let key: UnsafeMutablePointer<EVP_PKEY>?
| `- error: cannot find type 'EVP_PKEY' in scope
44 | switch format {
45 | case .pem:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:55:14: error: no exact matches in call to initializer
33 | /// Create an OpenSSLPrivateKey from a file at a given path in either PEM or
34 | /// DER format.
35 | public convenience init (file: String, format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (file: String, format: OpenSSLSerializationFormats)
36 | let fileObject = file.withCString { filePtr in
37 | return fopen(filePtr, "rb")
:
53 | }
54 |
55 | self.init(withReference: key!)
| `- error: no exact matches in call to initializer
56 | }
57 |
58 | /// Create an OpenSSLPrivateKey from a buffer of bytes in either PEM or
59 | /// DER format.
60 | public convenience init (buffer: [Int8], format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (buffer: [Int8], format: OpenSSLSerializationFormats)
61 | let bio = buffer.withUnsafeBytes {
62 | return BIO_new_mem_buf(UnsafeMutableRawPointer(mutating: $0.baseAddress!), Int32($0.count))!
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:68:39: error: cannot find type 'EVP_PKEY' in scope
66 | }
67 |
68 | let key: UnsafeMutablePointer<EVP_PKEY>?
| `- error: cannot find type 'EVP_PKEY' in scope
69 | switch format {
70 | case .pem:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:80:14: error: no exact matches in call to initializer
33 | /// Create an OpenSSLPrivateKey from a file at a given path in either PEM or
34 | /// DER format.
35 | public convenience init (file: String, format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (file: String, format: OpenSSLSerializationFormats)
36 | let fileObject = file.withCString { filePtr in
37 | return fopen(filePtr, "rb")
:
58 | /// Create an OpenSSLPrivateKey from a buffer of bytes in either PEM or
59 | /// DER format.
60 | public convenience init (buffer: [Int8], format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (buffer: [Int8], format: OpenSSLSerializationFormats)
61 | let bio = buffer.withUnsafeBytes {
62 | return BIO_new_mem_buf(UnsafeMutableRawPointer(mutating: $0.baseAddress!), Int32($0.count))!
:
78 | }
79 |
80 | self.init(withReference: key!)
| `- error: no exact matches in call to initializer
81 | }
82 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:94:16: error: no exact matches in call to initializer
33 | /// Create an OpenSSLPrivateKey from a file at a given path in either PEM or
34 | /// DER format.
35 | public convenience init (file: String, format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (file: String, format: OpenSSLSerializationFormats)
36 | let fileObject = file.withCString { filePtr in
37 | return fopen(filePtr, "rb")
:
58 | /// Create an OpenSSLPrivateKey from a buffer of bytes in either PEM or
59 | /// DER format.
60 | public convenience init (buffer: [Int8], format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (buffer: [Int8], format: OpenSSLSerializationFormats)
61 | let bio = buffer.withUnsafeBytes {
62 | return BIO_new_mem_buf(UnsafeMutableRawPointer(mutating: $0.baseAddress!), Int32($0.count))!
:
92 | /// initializers, which ensure that the lifetime of the X509 object is better-managed.
93 | static public func fromUnsafePointer(pointer: UnsafePointer<EVP_PKEY>) -> OpenSSLPrivateKey {
94 | return OpenSSLPrivateKey(withReference: UnsafeMutablePointer(mutating: pointer))
| `- error: no exact matches in call to initializer
95 | }
96 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:94:49: error: generic parameter 'Pointee' could not be inferred
92 | /// initializers, which ensure that the lifetime of the X509 object is better-managed.
93 | static public func fromUnsafePointer(pointer: UnsafePointer<EVP_PKEY>) -> OpenSSLPrivateKey {
94 | return OpenSSLPrivateKey(withReference: UnsafeMutablePointer(mutating: pointer))
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
95 | }
96 |
[185/217] Compiling NIOWebSocket Base64.swift
[186/217] Compiling NIOWebSocket SHA1.swift
[187/217] Compiling NIOOpenSSL OpenSSLHandler.swift
[188/217] Compiling Core ReflectionDecodable.swift
[189/217] Compiling Core ReflectionDecoders.swift
[190/217] Compiling Core CoreError.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:28:44: error: cannot find type 'X509' in scope
26 | /// bytes or from a file path.
27 | public class OpenSSLCertificate {
28 | internal let ref: UnsafeMutablePointer<X509>
| `- error: cannot find type 'X509' in scope
29 |
30 | internal enum AlternativeName {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:40:58: error: cannot find type 'X509' in scope
38 | }
39 |
40 | private init(withReference ref: UnsafeMutablePointer<X509>) {
| `- error: cannot find type 'X509' in scope
41 | self.ref = ref
42 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:106:65: error: cannot find type 'X509' in scope
104 | /// In general, however, this function should be avoided in favour of one of the convenience
105 | /// initializers, which ensure that the lifetime of the `X509` object is better-managed.
106 | static public func fromUnsafePointer(pointer: UnsafePointer<X509>) -> OpenSSLCertificate {
| `- error: cannot find type 'X509' in scope
107 | return OpenSSLCertificate(withReference: UnsafeMutablePointer(mutating: pointer))
108 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:179:49: error: cannot find type 'stack_st_GENERAL_NAME' in scope
177 | typealias Element = OpenSSLCertificate.AlternativeName
178 |
179 | private let nameStack: UnsafeMutablePointer<stack_st_GENERAL_NAME>
| `- error: cannot find type 'stack_st_GENERAL_NAME' in scope
180 | private var nextIdx: Int32
181 | private let stackSize: Int32
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:183:42: error: cannot find type 'stack_st_GENERAL_NAME' in scope
181 | private let stackSize: Int32
182 |
183 | init(nameStack: UnsafeMutablePointer<stack_st_GENERAL_NAME>) {
| `- error: cannot find type 'stack_st_GENERAL_NAME' in scope
184 | self.nameStack = nameStack
185 | self.stackSize = CNIOOpenSSL_sk_GENERAL_NAME_num(nameStack)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:56:40: error: cannot find type 'X509' in scope
54 | }
55 |
56 | let x509: UnsafeMutablePointer<X509>?
| `- error: cannot find type 'X509' in scope
57 | switch format {
58 | case .pem:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:68:14: error: no exact matches in call to initializer
46 | ///
47 | /// Note that this method will only ever load the first certificate from a given file.
48 | public convenience init (file: String, format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (file: String, format: OpenSSLSerializationFormats)
49 | let fileObject = file.withCString { filePtr in
50 | return fopen(filePtr, "rb")
:
66 | }
67 |
68 | self.init(withReference: x509!)
| `- error: no exact matches in call to initializer
69 | }
70 |
71 | /// Create an OpenSSLCertificate from a buffer of bytes in either PEM or
72 | /// DER format.
73 | public convenience init (buffer: [Int8], format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (buffer: [Int8], format: OpenSSLSerializationFormats)
74 | let bio = buffer.withUnsafeBytes {
75 | return BIO_new_mem_buf(UnsafeMutableRawPointer(mutating: $0.baseAddress!), Int32($0.count))!
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:81:40: error: cannot find type 'X509' in scope
79 | }
80 |
81 | let x509: UnsafeMutablePointer<X509>?
| `- error: cannot find type 'X509' in scope
82 | switch format {
83 | case .pem:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:93:14: error: no exact matches in call to initializer
46 | ///
47 | /// Note that this method will only ever load the first certificate from a given file.
48 | public convenience init (file: String, format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (file: String, format: OpenSSLSerializationFormats)
49 | let fileObject = file.withCString { filePtr in
50 | return fopen(filePtr, "rb")
:
71 | /// Create an OpenSSLCertificate from a buffer of bytes in either PEM or
72 | /// DER format.
73 | public convenience init (buffer: [Int8], format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (buffer: [Int8], format: OpenSSLSerializationFormats)
74 | let bio = buffer.withUnsafeBytes {
75 | return BIO_new_mem_buf(UnsafeMutableRawPointer(mutating: $0.baseAddress!), Int32($0.count))!
:
91 | }
92 |
93 | self.init(withReference: x509!)
| `- error: no exact matches in call to initializer
94 | }
95 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:107:16: error: no exact matches in call to initializer
46 | ///
47 | /// Note that this method will only ever load the first certificate from a given file.
48 | public convenience init (file: String, format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (file: String, format: OpenSSLSerializationFormats)
49 | let fileObject = file.withCString { filePtr in
50 | return fopen(filePtr, "rb")
:
71 | /// Create an OpenSSLCertificate from a buffer of bytes in either PEM or
72 | /// DER format.
73 | public convenience init (buffer: [Int8], format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (buffer: [Int8], format: OpenSSLSerializationFormats)
74 | let bio = buffer.withUnsafeBytes {
75 | return BIO_new_mem_buf(UnsafeMutableRawPointer(mutating: $0.baseAddress!), Int32($0.count))!
:
105 | /// initializers, which ensure that the lifetime of the `X509` object is better-managed.
106 | static public func fromUnsafePointer(pointer: UnsafePointer<X509>) -> OpenSSLCertificate {
107 | return OpenSSLCertificate(withReference: UnsafeMutablePointer(mutating: pointer))
| `- error: no exact matches in call to initializer
108 | }
109 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:107:50: error: generic parameter 'Pointee' could not be inferred
105 | /// initializers, which ensure that the lifetime of the `X509` object is better-managed.
106 | static public func fromUnsafePointer(pointer: UnsafePointer<X509>) -> OpenSSLCertificate {
107 | return OpenSSLCertificate(withReference: UnsafeMutablePointer(mutating: pointer))
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
108 | }
109 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:115:61: error: cannot find 'stack_st_GENERAL_NAME' in scope
113 | return nil
114 | }
115 | let sanNames = sanExtension.assumingMemoryBound(to: stack_st_GENERAL_NAME.self)
| `- error: cannot find 'stack_st_GENERAL_NAME' in scope
116 | return SubjectAltNameSequence(nameStack: sanNames)
117 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:159:21: error: missing arguments for parameters #2, #3 in call
157 |
158 | let arr = [UInt8](UnsafeBufferPointer(start: namePtr, count: Int(stringLength)))
159 | CRYPTO_free(namePtr)
| `- error: missing arguments for parameters #2, #3 in call
160 | return arr
161 | }
CNIOOpenSSL.CRYPTO_free:1:13: note: 'CRYPTO_free' declared here
1 | public func CRYPTO_free(_ ptr: UnsafeMutableRawPointer!, _ file: UnsafePointer<CChar>!, _ line: Int32)
| `- note: 'CRYPTO_free' declared here
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:39:43: error: cannot find type 'SSL' in scope
37 | /// used to create the connection.
38 | internal final class SSLConnection {
39 | private let ssl: UnsafeMutablePointer<SSL>
| `- error: cannot find type 'SSL' in scope
40 | private let parentContext: SSLContext
41 | private let fromNetwork: UnsafeMutablePointer<BIO>
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:41:51: error: cannot find type 'BIO' in scope
39 | private let ssl: UnsafeMutablePointer<SSL>
40 | private let parentContext: SSLContext
41 | private let fromNetwork: UnsafeMutablePointer<BIO>
| `- error: cannot find type 'BIO' in scope
42 | private let toNetwork: UnsafeMutablePointer<BIO>
43 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:42:49: error: cannot find type 'BIO' in scope
40 | private let parentContext: SSLContext
41 | private let fromNetwork: UnsafeMutablePointer<BIO>
42 | private let toNetwork: UnsafeMutablePointer<BIO>
| `- error: cannot find type 'BIO' in scope
43 |
44 | /// Whether certificate hostnames should be validated.
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:52:40: error: cannot find type 'SSL' in scope
50 | }
51 |
52 | init? (_ ssl: UnsafeMutablePointer<SSL>, parentContext: SSLContext) {
| `- error: cannot find type 'SSL' in scope
53 | self.ssl = ssl
54 | self.parentContext = parentContext
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:290:29: error: cannot find 'SSL_get_peer_certificate' in scope
288 | /// if available.
289 | func getPeerCertificate() -> OpenSSLCertificate? {
290 | guard let certPtr = SSL_get_peer_certificate(ssl) else {
| `- error: cannot find 'SSL_get_peer_certificate' in scope
291 | return nil
292 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:28:44: error: cannot find type 'X509' in scope
26 | /// bytes or from a file path.
27 | public class OpenSSLCertificate {
28 | internal let ref: UnsafeMutablePointer<X509>
| `- error: cannot find type 'X509' in scope
29 |
30 | internal enum AlternativeName {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:40:58: error: cannot find type 'X509' in scope
38 | }
39 |
40 | private init(withReference ref: UnsafeMutablePointer<X509>) {
| `- error: cannot find type 'X509' in scope
41 | self.ref = ref
42 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:106:65: error: cannot find type 'X509' in scope
104 | /// In general, however, this function should be avoided in favour of one of the convenience
105 | /// initializers, which ensure that the lifetime of the `X509` object is better-managed.
106 | static public func fromUnsafePointer(pointer: UnsafePointer<X509>) -> OpenSSLCertificate {
| `- error: cannot find type 'X509' in scope
107 | return OpenSSLCertificate(withReference: UnsafeMutablePointer(mutating: pointer))
108 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:179:49: error: cannot find type 'stack_st_GENERAL_NAME' in scope
177 | typealias Element = OpenSSLCertificate.AlternativeName
178 |
179 | private let nameStack: UnsafeMutablePointer<stack_st_GENERAL_NAME>
| `- error: cannot find type 'stack_st_GENERAL_NAME' in scope
180 | private var nextIdx: Int32
181 | private let stackSize: Int32
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:183:42: error: cannot find type 'stack_st_GENERAL_NAME' in scope
181 | private let stackSize: Int32
182 |
183 | init(nameStack: UnsafeMutablePointer<stack_st_GENERAL_NAME>) {
| `- error: cannot find type 'stack_st_GENERAL_NAME' in scope
184 | self.nameStack = nameStack
185 | self.stackSize = CNIOOpenSSL_sk_GENERAL_NAME_num(nameStack)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:56:40: error: cannot find type 'X509' in scope
54 | }
55 |
56 | let x509: UnsafeMutablePointer<X509>?
| `- error: cannot find type 'X509' in scope
57 | switch format {
58 | case .pem:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:68:14: error: no exact matches in call to initializer
46 | ///
47 | /// Note that this method will only ever load the first certificate from a given file.
48 | public convenience init (file: String, format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (file: String, format: OpenSSLSerializationFormats)
49 | let fileObject = file.withCString { filePtr in
50 | return fopen(filePtr, "rb")
:
66 | }
67 |
68 | self.init(withReference: x509!)
| `- error: no exact matches in call to initializer
69 | }
70 |
71 | /// Create an OpenSSLCertificate from a buffer of bytes in either PEM or
72 | /// DER format.
73 | public convenience init (buffer: [Int8], format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (buffer: [Int8], format: OpenSSLSerializationFormats)
74 | let bio = buffer.withUnsafeBytes {
75 | return BIO_new_mem_buf(UnsafeMutableRawPointer(mutating: $0.baseAddress!), Int32($0.count))!
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:81:40: error: cannot find type 'X509' in scope
79 | }
80 |
81 | let x509: UnsafeMutablePointer<X509>?
| `- error: cannot find type 'X509' in scope
82 | switch format {
83 | case .pem:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:93:14: error: no exact matches in call to initializer
46 | ///
47 | /// Note that this method will only ever load the first certificate from a given file.
48 | public convenience init (file: String, format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (file: String, format: OpenSSLSerializationFormats)
49 | let fileObject = file.withCString { filePtr in
50 | return fopen(filePtr, "rb")
:
71 | /// Create an OpenSSLCertificate from a buffer of bytes in either PEM or
72 | /// DER format.
73 | public convenience init (buffer: [Int8], format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (buffer: [Int8], format: OpenSSLSerializationFormats)
74 | let bio = buffer.withUnsafeBytes {
75 | return BIO_new_mem_buf(UnsafeMutableRawPointer(mutating: $0.baseAddress!), Int32($0.count))!
:
91 | }
92 |
93 | self.init(withReference: x509!)
| `- error: no exact matches in call to initializer
94 | }
95 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:107:16: error: no exact matches in call to initializer
46 | ///
47 | /// Note that this method will only ever load the first certificate from a given file.
48 | public convenience init (file: String, format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (file: String, format: OpenSSLSerializationFormats)
49 | let fileObject = file.withCString { filePtr in
50 | return fopen(filePtr, "rb")
:
71 | /// Create an OpenSSLCertificate from a buffer of bytes in either PEM or
72 | /// DER format.
73 | public convenience init (buffer: [Int8], format: OpenSSLSerializationFormats) throws {
| `- note: candidate has partially matching parameter list (buffer: [Int8], format: OpenSSLSerializationFormats)
74 | let bio = buffer.withUnsafeBytes {
75 | return BIO_new_mem_buf(UnsafeMutableRawPointer(mutating: $0.baseAddress!), Int32($0.count))!
:
105 | /// initializers, which ensure that the lifetime of the `X509` object is better-managed.
106 | static public func fromUnsafePointer(pointer: UnsafePointer<X509>) -> OpenSSLCertificate {
107 | return OpenSSLCertificate(withReference: UnsafeMutablePointer(mutating: pointer))
| `- error: no exact matches in call to initializer
108 | }
109 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:107:50: error: generic parameter 'Pointee' could not be inferred
105 | /// initializers, which ensure that the lifetime of the `X509` object is better-managed.
106 | static public func fromUnsafePointer(pointer: UnsafePointer<X509>) -> OpenSSLCertificate {
107 | return OpenSSLCertificate(withReference: UnsafeMutablePointer(mutating: pointer))
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
108 | }
109 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:115:61: error: cannot find 'stack_st_GENERAL_NAME' in scope
113 | return nil
114 | }
115 | let sanNames = sanExtension.assumingMemoryBound(to: stack_st_GENERAL_NAME.self)
| `- error: cannot find 'stack_st_GENERAL_NAME' in scope
116 | return SubjectAltNameSequence(nameStack: sanNames)
117 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:159:21: error: missing arguments for parameters #2, #3 in call
157 |
158 | let arr = [UInt8](UnsafeBufferPointer(start: namePtr, count: Int(stringLength)))
159 | CRYPTO_free(namePtr)
| `- error: missing arguments for parameters #2, #3 in call
160 | return arr
161 | }
CNIOOpenSSL.CRYPTO_free:1:13: note: 'CRYPTO_free' declared here
1 | public func CRYPTO_free(_ ptr: UnsafeMutableRawPointer!, _ file: UnsafePointer<CChar>!, _ line: Int32)
| `- note: 'CRYPTO_free' declared here
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:39:43: error: cannot find type 'SSL' in scope
37 | /// used to create the connection.
38 | internal final class SSLConnection {
39 | private let ssl: UnsafeMutablePointer<SSL>
| `- error: cannot find type 'SSL' in scope
40 | private let parentContext: SSLContext
41 | private let fromNetwork: UnsafeMutablePointer<BIO>
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:41:51: error: cannot find type 'BIO' in scope
39 | private let ssl: UnsafeMutablePointer<SSL>
40 | private let parentContext: SSLContext
41 | private let fromNetwork: UnsafeMutablePointer<BIO>
| `- error: cannot find type 'BIO' in scope
42 | private let toNetwork: UnsafeMutablePointer<BIO>
43 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:42:49: error: cannot find type 'BIO' in scope
40 | private let parentContext: SSLContext
41 | private let fromNetwork: UnsafeMutablePointer<BIO>
42 | private let toNetwork: UnsafeMutablePointer<BIO>
| `- error: cannot find type 'BIO' in scope
43 |
44 | /// Whether certificate hostnames should be validated.
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:52:40: error: cannot find type 'SSL' in scope
50 | }
51 |
52 | init? (_ ssl: UnsafeMutablePointer<SSL>, parentContext: SSLContext) {
| `- error: cannot find type 'SSL' in scope
53 | self.ssl = ssl
54 | self.parentContext = parentContext
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:290:29: error: cannot find 'SSL_get_peer_certificate' in scope
288 | /// if available.
289 | func getPeerCertificate() -> OpenSSLCertificate? {
290 | guard let certPtr = SSL_get_peer_certificate(ssl) else {
| `- error: cannot find 'SSL_get_peer_certificate' in scope
291 | return nil
292 | }
[193/217] Compiling NIOOpenSSL SSLContext.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:72:75: error: cannot find type 'X509_STORE_CTX' in scope
70 | }
71 |
72 | private func verifyCallback(preverifyOk: Int32, ctx: UnsafeMutablePointer<X509_STORE_CTX>?) -> Int32 {
| `- error: cannot find type 'X509_STORE_CTX' in scope
73 | // This is a no-op verify callback for use with OpenSSL.
74 | return preverifyOk
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:77:53: error: cannot find type 'SSL' in scope
75 | }
76 |
77 | private func alpnCallback(ssl: UnsafeMutablePointer<SSL>?,
| `- error: cannot find type 'SSL' in scope
78 | out: UnsafeMutablePointer<UnsafePointer<UInt8>?>?,
79 | outlen: UnsafeMutablePointer<UInt8>?,
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:110:50: error: cannot find type 'SSL_CTX' in scope
108 | /// which are expected to be broadly the same.
109 | public final class SSLContext {
110 | private let sslContext: UnsafeMutablePointer<SSL_CTX>
| `- error: cannot find type 'SSL_CTX' in scope
111 | internal let configuration: TLSConfiguration
112 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:254:95: error: cannot find type 'SSL_CTX' in scope
252 |
253 | extension SSLContext {
254 | private static func useCertificateChainFile(_ path: String, context: UnsafeMutablePointer<SSL_CTX>) {
| `- error: cannot find type 'SSL_CTX' in scope
255 | // TODO(cory): This shouldn't be an assert but should instead be actual error handling.
256 | // assert(path.isFileURL)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:265:102: error: cannot find type 'SSL_CTX' in scope
263 | }
264 |
265 | private static func setLeafCertificate(_ cert: OpenSSLCertificate, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
266 | let rc = SSL_CTX_use_certificate(context, cert.ref)
267 | guard rc == 1 else {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:272:113: error: cannot find type 'SSL_CTX' in scope
270 | }
271 |
272 | private static func addAdditionalChainCertificate(_ cert: OpenSSLCertificate, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
273 | // This dup is necessary because the SSL_CTX_ctrl doesn't copy the X509 object itself.
274 | guard 1 == SSL_CTX_ctrl(context, SSL_CTRL_EXTRA_CHAIN_CERT, 0, X509_dup(cert.ref)) else {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:279:95: error: cannot find type 'SSL_CTX' in scope
277 | }
278 |
279 | private static func setPrivateKey(_ key: OpenSSLPrivateKey, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
280 | guard 1 == SSL_CTX_use_PrivateKey(context, key.ref) else {
281 | throw NIOOpenSSLError.failedToLoadPrivateKey
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:285:102: error: cannot find type 'SSL_CTX' in scope
283 | }
284 |
285 | private static func addRootCertificate(_ cert: OpenSSLCertificate, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
286 | let store = SSL_CTX_get_cert_store(context)!
287 | if 0 == X509_STORE_add_cert(store, cert.ref) {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:292:89: error: cannot find type 'SSL_CTX' in scope
290 | }
291 |
292 | private static func usePrivateKeyFile(_ path: String, context: UnsafeMutablePointer<SSL_CTX>) {
| `- error: cannot find type 'SSL_CTX' in scope
293 | let pathExtension = path.split(separator: ".").last
294 | let fileType: Int32
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:314:91: error: cannot find type 'SSL_CTX' in scope
312 | }
313 |
314 | private static func loadVerifyLocations(_ path: String, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
315 | let isDirectory: Bool
316 | switch FileSystemObject.pathType(path: path) {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:337:96: error: cannot find type 'SSL_CTX' in scope
335 | }
336 |
337 | private static func setAlpnProtocols(_ protocols: [[UInt8]], context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
338 | // This copy should be done infrequently, so we don't worry too much about it.
339 | let protoBuf = protocols.reduce([UInt8](), +)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:351:71: error: cannot find type 'SSL_CTX' in scope
349 | }
350 |
351 | private static func setAlpnCallback(context: UnsafeMutablePointer<SSL_CTX>) {
| `- error: cannot find type 'SSL_CTX' in scope
352 | CNIOOpenSSL_SSL_CTX_set_alpn_select_cb(context, alpnCallback, nil)
353 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:117:37: error: cannot find 'SSLv23_method' in scope
115 | public init(configuration: TLSConfiguration) throws {
116 | precondition(initialized)
117 | guard let ctx = SSL_CTX_new(SSLv23_method()) else { throw NIOOpenSSLError.unableToAllocateOpenSSLObject }
| `- error: cannot find 'SSLv23_method' in scope
118 |
119 | // TODO(cory): It doesn't seem like this initialization should happen here: where?
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:122:34: error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
120 | CNIOOpenSSL_SSL_CTX_setAutoECDH(ctx)
121 |
122 | var opensslOptions = Int(SSL_OP_NO_COMPRESSION)
| `- error: cannot find 'SSL_OP_NO_COMPRESSION' in scope
123 |
124 | // Handle TLS versions
/usr/include/openssl/ssl.h:387:10: note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
385 | # define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION SSL_OP_BIT(16)
386 | /* Don't use compression even if supported */
387 | # define SSL_OP_NO_COMPRESSION SSL_OP_BIT(17)
| `- note: macro 'SSL_OP_NO_COMPRESSION' unavailable: structure not supported
388 | /* Permit unsafe legacy renegotiation */
389 | # define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION SSL_OP_BIT(18)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:127:35: error: cannot find 'SSL_OP_NO_TLSv1_2' in scope
125 | switch configuration.minimumTLSVersion {
126 | case .tlsv13:
127 | opensslOptions |= Int(SSL_OP_NO_TLSv1_2)
| `- error: cannot find 'SSL_OP_NO_TLSv1_2' in scope
128 | fallthrough
129 | case .tlsv12:
/usr/include/openssl/ssl.h:420:10: note: macro 'SSL_OP_NO_TLSv1_2' unavailable: structure not supported
418 | # define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
419 | # define SSL_OP_NO_TLSv1 SSL_OP_BIT(26)
420 | # define SSL_OP_NO_TLSv1_2 SSL_OP_BIT(27)
| `- note: macro 'SSL_OP_NO_TLSv1_2' unavailable: structure not supported
421 | # define SSL_OP_NO_TLSv1_1 SSL_OP_BIT(28)
422 | # define SSL_OP_NO_TLSv1_3 SSL_OP_BIT(29)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:130:35: error: cannot find 'SSL_OP_NO_TLSv1_1' in scope
128 | fallthrough
129 | case .tlsv12:
130 | opensslOptions |= Int(SSL_OP_NO_TLSv1_1)
| `- error: cannot find 'SSL_OP_NO_TLSv1_1' in scope
131 | fallthrough
132 | case .tlsv11:
/usr/include/openssl/ssl.h:421:10: note: macro 'SSL_OP_NO_TLSv1_1' unavailable: structure not supported
419 | # define SSL_OP_NO_TLSv1 SSL_OP_BIT(26)
420 | # define SSL_OP_NO_TLSv1_2 SSL_OP_BIT(27)
421 | # define SSL_OP_NO_TLSv1_1 SSL_OP_BIT(28)
| `- note: macro 'SSL_OP_NO_TLSv1_1' unavailable: structure not supported
422 | # define SSL_OP_NO_TLSv1_3 SSL_OP_BIT(29)
423 | # define SSL_OP_NO_DTLSv1 SSL_OP_BIT(26)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:133:35: error: cannot find 'SSL_OP_NO_TLSv1' in scope
131 | fallthrough
132 | case .tlsv11:
133 | opensslOptions |= Int(SSL_OP_NO_TLSv1)
| `- error: cannot find 'SSL_OP_NO_TLSv1' in scope
134 | fallthrough
135 | case .tlsv1:
/usr/include/openssl/ssl.h:419:10: note: macro 'SSL_OP_NO_TLSv1' unavailable: structure not supported
417 | # define SSL_OP_NO_ANTI_REPLAY SSL_OP_BIT(24)
418 | # define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
419 | # define SSL_OP_NO_TLSv1 SSL_OP_BIT(26)
| `- note: macro 'SSL_OP_NO_TLSv1' unavailable: structure not supported
420 | # define SSL_OP_NO_TLSv1_2 SSL_OP_BIT(27)
421 | # define SSL_OP_NO_TLSv1_1 SSL_OP_BIT(28)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:136:35: error: cannot find 'SSL_OP_NO_SSLv3' in scope
134 | fallthrough
135 | case .tlsv1:
136 | opensslOptions |= Int(SSL_OP_NO_SSLv3)
| `- error: cannot find 'SSL_OP_NO_SSLv3' in scope
137 | fallthrough
138 | case .sslv3:
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
416 | */
417 | # define SSL_OP_NO_ANTI_REPLAY SSL_OP_BIT(24)
418 | # define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
| `- note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
419 | # define SSL_OP_NO_TLSv1 SSL_OP_BIT(26)
420 | # define SSL_OP_NO_TLSv1_2 SSL_OP_BIT(27)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:147:35: error: cannot find 'SSL_OP_NO_SSLv3' in scope
145 | switch configuration.maximumTLSVersion {
146 | case .some(.sslv2):
147 | opensslOptions |= Int(SSL_OP_NO_SSLv3)
| `- error: cannot find 'SSL_OP_NO_SSLv3' in scope
148 | fallthrough
149 | case .some(.sslv3):
/usr/include/openssl/ssl.h:418:10: note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
416 | */
417 | # define SSL_OP_NO_ANTI_REPLAY SSL_OP_BIT(24)
418 | # define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
| `- note: macro 'SSL_OP_NO_SSLv3' unavailable: structure not supported
419 | # define SSL_OP_NO_TLSv1 SSL_OP_BIT(26)
420 | # define SSL_OP_NO_TLSv1_2 SSL_OP_BIT(27)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:150:35: error: cannot find 'SSL_OP_NO_TLSv1' in scope
148 | fallthrough
149 | case .some(.sslv3):
150 | opensslOptions |= Int(SSL_OP_NO_TLSv1)
| `- error: cannot find 'SSL_OP_NO_TLSv1' in scope
151 | fallthrough
152 | case .some(.tlsv1):
/usr/include/openssl/ssl.h:419:10: note: macro 'SSL_OP_NO_TLSv1' unavailable: structure not supported
417 | # define SSL_OP_NO_ANTI_REPLAY SSL_OP_BIT(24)
418 | # define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
419 | # define SSL_OP_NO_TLSv1 SSL_OP_BIT(26)
| `- note: macro 'SSL_OP_NO_TLSv1' unavailable: structure not supported
420 | # define SSL_OP_NO_TLSv1_2 SSL_OP_BIT(27)
421 | # define SSL_OP_NO_TLSv1_1 SSL_OP_BIT(28)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:153:35: error: cannot find 'SSL_OP_NO_TLSv1_1' in scope
151 | fallthrough
152 | case .some(.tlsv1):
153 | opensslOptions |= Int(SSL_OP_NO_TLSv1_1)
| `- error: cannot find 'SSL_OP_NO_TLSv1_1' in scope
154 | fallthrough
155 | case .some(.tlsv11):
/usr/include/openssl/ssl.h:421:10: note: macro 'SSL_OP_NO_TLSv1_1' unavailable: structure not supported
419 | # define SSL_OP_NO_TLSv1 SSL_OP_BIT(26)
420 | # define SSL_OP_NO_TLSv1_2 SSL_OP_BIT(27)
421 | # define SSL_OP_NO_TLSv1_1 SSL_OP_BIT(28)
| `- note: macro 'SSL_OP_NO_TLSv1_1' unavailable: structure not supported
422 | # define SSL_OP_NO_TLSv1_3 SSL_OP_BIT(29)
423 | # define SSL_OP_NO_DTLSv1 SSL_OP_BIT(26)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:156:35: error: cannot find 'SSL_OP_NO_TLSv1_2' in scope
154 | fallthrough
155 | case .some(.tlsv11):
156 | opensslOptions |= Int(SSL_OP_NO_TLSv1_2)
| `- error: cannot find 'SSL_OP_NO_TLSv1_2' in scope
157 | case .some(.tlsv12), .some(.tlsv13), .none:
158 | break
/usr/include/openssl/ssl.h:420:10: note: macro 'SSL_OP_NO_TLSv1_2' unavailable: structure not supported
418 | # define SSL_OP_NO_SSLv3 SSL_OP_BIT(25)
419 | # define SSL_OP_NO_TLSv1 SSL_OP_BIT(26)
420 | # define SSL_OP_NO_TLSv1_2 SSL_OP_BIT(27)
| `- note: macro 'SSL_OP_NO_TLSv1_2' unavailable: structure not supported
421 | # define SSL_OP_NO_TLSv1_1 SSL_OP_BIT(28)
422 | # define SSL_OP_NO_TLSv1_3 SSL_OP_BIT(29)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:164:27: error: cannot find 'SSL_CTRL_OPTIONS' in scope
162 | // Sadly, SSL_CTX_set_options is a macro, which means we cannot use it directly, and our modulemap doesn't
163 | // reveal it in a helpful way, so we write it like this instead.
164 | SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, opensslOptions, nil)
| `- error: cannot find 'SSL_CTRL_OPTIONS' in scope
165 |
166 | // Cipher suites. We just pass this straight to OpenSSL.
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:52:40: error: cannot find type 'SSL' in scope
50 | }
51 |
52 | init? (_ ssl: UnsafeMutablePointer<SSL>, parentContext: SSLContext) {
| `- error: cannot find type 'SSL' in scope
53 | self.ssl = ssl
54 | self.parentContext = parentContext
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:28:44: error: cannot find type 'X509' in scope
26 | /// bytes or from a file path.
27 | public class OpenSSLCertificate {
28 | internal let ref: UnsafeMutablePointer<X509>
| `- error: cannot find type 'X509' in scope
29 |
30 | internal enum AlternativeName {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:274:72: error: cannot convert value of type 'OpaquePointer?' to expected argument type 'UnsafeMutableRawPointer?'
272 | private static func addAdditionalChainCertificate(_ cert: OpenSSLCertificate, context: UnsafeMutablePointer<SSL_CTX>) throws {
273 | // This dup is necessary because the SSL_CTX_ctrl doesn't copy the X509 object itself.
274 | guard 1 == SSL_CTX_ctrl(context, SSL_CTRL_EXTRA_CHAIN_CERT, 0, X509_dup(cert.ref)) else {
| `- error: cannot convert value of type 'OpaquePointer?' to expected argument type 'UnsafeMutableRawPointer?'
275 | throw NIOOpenSSLError.failedToLoadCertificate
276 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:27:44: error: cannot find type 'EVP_PKEY' in scope
25 | /// bytes or from a file path.
26 | public class OpenSSLPrivateKey {
27 | internal let ref: UnsafeMutablePointer<EVP_PKEY>
| `- error: cannot find type 'EVP_PKEY' in scope
28 |
29 | private init(withReference ref: UnsafeMutablePointer<EVP_PKEY>) {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:28:44: error: cannot find type 'X509' in scope
26 | /// bytes or from a file path.
27 | public class OpenSSLCertificate {
28 | internal let ref: UnsafeMutablePointer<X509>
| `- error: cannot find type 'X509' in scope
29 |
30 | internal enum AlternativeName {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:179:49: error: cannot find type 'stack_st_GENERAL_NAME' in scope
177 | typealias Element = OpenSSLCertificate.AlternativeName
178 |
179 | private let nameStack: UnsafeMutablePointer<stack_st_GENERAL_NAME>
| `- error: cannot find type 'stack_st_GENERAL_NAME' in scope
180 | private var nextIdx: Int32
181 | private let stackSize: Int32
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:28:44: error: cannot find type 'X509' in scope
26 | /// bytes or from a file path.
27 | public class OpenSSLCertificate {
28 | internal let ref: UnsafeMutablePointer<X509>
| `- error: cannot find type 'X509' in scope
29 |
30 | internal enum AlternativeName {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:179:49: error: cannot find type 'stack_st_GENERAL_NAME' in scope
177 | typealias Element = OpenSSLCertificate.AlternativeName
178 |
179 | private let nameStack: UnsafeMutablePointer<stack_st_GENERAL_NAME>
| `- error: cannot find type 'stack_st_GENERAL_NAME' in scope
180 | private var nextIdx: Int32
181 | private let stackSize: Int32
error: emit-module command failed with exit code 1 (use -v to see invocation)
[198/217] Emitting module NIOOpenSSL
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:28:44: error: cannot find type 'X509' in scope
26 | /// bytes or from a file path.
27 | public class OpenSSLCertificate {
28 | internal let ref: UnsafeMutablePointer<X509>
| `- error: cannot find type 'X509' in scope
29 |
30 | internal enum AlternativeName {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:40:58: error: cannot find type 'X509' in scope
38 | }
39 |
40 | private init(withReference ref: UnsafeMutablePointer<X509>) {
| `- error: cannot find type 'X509' in scope
41 | self.ref = ref
42 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:106:65: error: cannot find type 'X509' in scope
104 | /// In general, however, this function should be avoided in favour of one of the convenience
105 | /// initializers, which ensure that the lifetime of the `X509` object is better-managed.
106 | static public func fromUnsafePointer(pointer: UnsafePointer<X509>) -> OpenSSLCertificate {
| `- error: cannot find type 'X509' in scope
107 | return OpenSSLCertificate(withReference: UnsafeMutablePointer(mutating: pointer))
108 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:179:49: error: cannot find type 'stack_st_GENERAL_NAME' in scope
177 | typealias Element = OpenSSLCertificate.AlternativeName
178 |
179 | private let nameStack: UnsafeMutablePointer<stack_st_GENERAL_NAME>
| `- error: cannot find type 'stack_st_GENERAL_NAME' in scope
180 | private var nextIdx: Int32
181 | private let stackSize: Int32
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLCertificate.swift:183:42: error: cannot find type 'stack_st_GENERAL_NAME' in scope
181 | private let stackSize: Int32
182 |
183 | init(nameStack: UnsafeMutablePointer<stack_st_GENERAL_NAME>) {
| `- error: cannot find type 'stack_st_GENERAL_NAME' in scope
184 | self.nameStack = nameStack
185 | self.stackSize = CNIOOpenSSL_sk_GENERAL_NAME_num(nameStack)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:39:43: error: cannot find type 'SSL' in scope
37 | /// used to create the connection.
38 | internal final class SSLConnection {
39 | private let ssl: UnsafeMutablePointer<SSL>
| `- error: cannot find type 'SSL' in scope
40 | private let parentContext: SSLContext
41 | private let fromNetwork: UnsafeMutablePointer<BIO>
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:41:51: error: cannot find type 'BIO' in scope
39 | private let ssl: UnsafeMutablePointer<SSL>
40 | private let parentContext: SSLContext
41 | private let fromNetwork: UnsafeMutablePointer<BIO>
| `- error: cannot find type 'BIO' in scope
42 | private let toNetwork: UnsafeMutablePointer<BIO>
43 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:42:49: error: cannot find type 'BIO' in scope
40 | private let parentContext: SSLContext
41 | private let fromNetwork: UnsafeMutablePointer<BIO>
42 | private let toNetwork: UnsafeMutablePointer<BIO>
| `- error: cannot find type 'BIO' in scope
43 |
44 | /// Whether certificate hostnames should be validated.
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLConnection.swift:52:40: error: cannot find type 'SSL' in scope
50 | }
51 |
52 | init? (_ ssl: UnsafeMutablePointer<SSL>, parentContext: SSLContext) {
| `- error: cannot find type 'SSL' in scope
53 | self.ssl = ssl
54 | self.parentContext = parentContext
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:72:75: error: cannot find type 'X509_STORE_CTX' in scope
70 | }
71 |
72 | private func verifyCallback(preverifyOk: Int32, ctx: UnsafeMutablePointer<X509_STORE_CTX>?) -> Int32 {
| `- error: cannot find type 'X509_STORE_CTX' in scope
73 | // This is a no-op verify callback for use with OpenSSL.
74 | return preverifyOk
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:77:53: error: cannot find type 'SSL' in scope
75 | }
76 |
77 | private func alpnCallback(ssl: UnsafeMutablePointer<SSL>?,
| `- error: cannot find type 'SSL' in scope
78 | out: UnsafeMutablePointer<UnsafePointer<UInt8>?>?,
79 | outlen: UnsafeMutablePointer<UInt8>?,
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:110:50: error: cannot find type 'SSL_CTX' in scope
108 | /// which are expected to be broadly the same.
109 | public final class SSLContext {
110 | private let sslContext: UnsafeMutablePointer<SSL_CTX>
| `- error: cannot find type 'SSL_CTX' in scope
111 | internal let configuration: TLSConfiguration
112 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:254:95: error: cannot find type 'SSL_CTX' in scope
252 |
253 | extension SSLContext {
254 | private static func useCertificateChainFile(_ path: String, context: UnsafeMutablePointer<SSL_CTX>) {
| `- error: cannot find type 'SSL_CTX' in scope
255 | // TODO(cory): This shouldn't be an assert but should instead be actual error handling.
256 | // assert(path.isFileURL)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:265:102: error: cannot find type 'SSL_CTX' in scope
263 | }
264 |
265 | private static func setLeafCertificate(_ cert: OpenSSLCertificate, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
266 | let rc = SSL_CTX_use_certificate(context, cert.ref)
267 | guard rc == 1 else {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:272:113: error: cannot find type 'SSL_CTX' in scope
270 | }
271 |
272 | private static func addAdditionalChainCertificate(_ cert: OpenSSLCertificate, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
273 | // This dup is necessary because the SSL_CTX_ctrl doesn't copy the X509 object itself.
274 | guard 1 == SSL_CTX_ctrl(context, SSL_CTRL_EXTRA_CHAIN_CERT, 0, X509_dup(cert.ref)) else {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:279:95: error: cannot find type 'SSL_CTX' in scope
277 | }
278 |
279 | private static func setPrivateKey(_ key: OpenSSLPrivateKey, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
280 | guard 1 == SSL_CTX_use_PrivateKey(context, key.ref) else {
281 | throw NIOOpenSSLError.failedToLoadPrivateKey
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:285:102: error: cannot find type 'SSL_CTX' in scope
283 | }
284 |
285 | private static func addRootCertificate(_ cert: OpenSSLCertificate, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
286 | let store = SSL_CTX_get_cert_store(context)!
287 | if 0 == X509_STORE_add_cert(store, cert.ref) {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:292:89: error: cannot find type 'SSL_CTX' in scope
290 | }
291 |
292 | private static func usePrivateKeyFile(_ path: String, context: UnsafeMutablePointer<SSL_CTX>) {
| `- error: cannot find type 'SSL_CTX' in scope
293 | let pathExtension = path.split(separator: ".").last
294 | let fileType: Int32
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:314:91: error: cannot find type 'SSL_CTX' in scope
312 | }
313 |
314 | private static func loadVerifyLocations(_ path: String, context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
315 | let isDirectory: Bool
316 | switch FileSystemObject.pathType(path: path) {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:337:96: error: cannot find type 'SSL_CTX' in scope
335 | }
336 |
337 | private static func setAlpnProtocols(_ protocols: [[UInt8]], context: UnsafeMutablePointer<SSL_CTX>) throws {
| `- error: cannot find type 'SSL_CTX' in scope
338 | // This copy should be done infrequently, so we don't worry too much about it.
339 | let protoBuf = protocols.reduce([UInt8](), +)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLContext.swift:351:71: error: cannot find type 'SSL_CTX' in scope
349 | }
350 |
351 | private static func setAlpnCallback(context: UnsafeMutablePointer<SSL_CTX>) {
| `- error: cannot find type 'SSL_CTX' in scope
352 | CNIOOpenSSL_SSL_CTX_set_alpn_select_cb(context, alpnCallback, nil)
353 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:27:44: error: cannot find type 'EVP_PKEY' in scope
25 | /// bytes or from a file path.
26 | public class OpenSSLPrivateKey {
27 | internal let ref: UnsafeMutablePointer<EVP_PKEY>
| `- error: cannot find type 'EVP_PKEY' in scope
28 |
29 | private init(withReference ref: UnsafeMutablePointer<EVP_PKEY>) {
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:29:58: error: cannot find type 'EVP_PKEY' in scope
27 | internal let ref: UnsafeMutablePointer<EVP_PKEY>
28 |
29 | private init(withReference ref: UnsafeMutablePointer<EVP_PKEY>) {
| `- error: cannot find type 'EVP_PKEY' in scope
30 | self.ref = ref
31 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLPrivateKey.swift:93:65: error: cannot find type 'EVP_PKEY' in scope
91 | /// In general, however, this function should be avoided in favour of one of the convenience
92 | /// initializers, which ensure that the lifetime of the X509 object is better-managed.
93 | static public func fromUnsafePointer(pointer: UnsafePointer<EVP_PKEY>) -> OpenSSLPrivateKey {
| `- error: cannot find type 'EVP_PKEY' in scope
94 | return OpenSSLPrivateKey(withReference: UnsafeMutablePointer(mutating: pointer))
95 | }
[199/217] Compiling NIOOpenSSL SSLErrors.swift
[200/217] Compiling NIOOpenSSL SSLInit.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLInit.swift:28:5: error: cannot find 'SSL_library_init' in scope
26 | func initializeOpenSSL() -> Bool {
27 | // Initializing OpenSSL is made up of two steps. First, we need to load all the various crypto bits.
28 | SSL_library_init()
| `- error: cannot find 'SSL_library_init' in scope
29 | OPENSSL_add_all_algorithms_conf()
30 | SSL_load_error_strings()
/usr/include/openssl/ssl.h:2095:11: note: macro 'SSL_library_init' unavailable: function like macros not supported
2093 |
2094 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
2095 | # define SSL_library_init() OPENSSL_init_ssl(0, NULL)
| `- note: macro 'SSL_library_init' unavailable: function like macros not supported
2096 | # endif
2097 |
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLInit.swift:29:5: error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
27 | // Initializing OpenSSL is made up of two steps. First, we need to load all the various crypto bits.
28 | SSL_library_init()
29 | OPENSSL_add_all_algorithms_conf()
| `- error: cannot find 'OPENSSL_add_all_algorithms_conf' in scope
30 | SSL_load_error_strings()
31 | ERR_load_crypto_strings()
/usr/include/openssl/evp.h:1146:11: note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1144 |
1145 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1146 | # define OPENSSL_add_all_algorithms_conf() \
| `- note: macro 'OPENSSL_add_all_algorithms_conf' unavailable: function like macros not supported
1147 | OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \
1148 | | OPENSSL_INIT_ADD_ALL_DIGESTS \
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLInit.swift:30:5: error: cannot find 'SSL_load_error_strings' in scope
28 | SSL_library_init()
29 | OPENSSL_add_all_algorithms_conf()
30 | SSL_load_error_strings()
| `- error: cannot find 'SSL_load_error_strings' in scope
31 | ERR_load_crypto_strings()
32 | OPENSSL_config(nil)
/usr/include/openssl/ssl.h:1708:11: note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1706 |
1707 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0
1708 | # define SSL_load_error_strings() \
| `- note: macro 'SSL_load_error_strings' unavailable: function like macros not supported
1709 | OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \
1710 | | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLInit.swift:31:5: error: cannot find 'ERR_load_crypto_strings' in scope
29 | OPENSSL_add_all_algorithms_conf()
30 | SSL_load_error_strings()
31 | ERR_load_crypto_strings()
| `- error: cannot find 'ERR_load_crypto_strings' in scope
32 | OPENSSL_config(nil)
33 |
/usr/include/openssl/err.h:468:10: note: macro 'ERR_load_crypto_strings' unavailable: function like macros not supported
466 |
467 | #ifndef OPENSSL_NO_DEPRECATED_1_1_0
468 | # define ERR_load_crypto_strings() \
| `- note: macro 'ERR_load_crypto_strings' unavailable: function like macros not supported
469 | OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)
470 | # define ERR_free_strings() while(0) continue
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLInit.swift:39:8: error: cannot find 'CRYPTO_get_locking_callback' in scope
37 | var err = pthread_mutex_lock(callbackLock)
38 | precondition(err == 0)
39 | if CRYPTO_get_locking_callback() == nil { setupLockingCallbacks() }
| `- error: cannot find 'CRYPTO_get_locking_callback' in scope
40 | err = pthread_mutex_unlock(callbackLock)
41 | precondition(err == 0)
/usr/include/openssl/crypto.h:291:11: note: macro 'CRYPTO_get_locking_callback' unavailable: function like macros not supported
289 | # define CRYPTO_num_locks() (1)
290 | # define CRYPTO_set_locking_callback(func)
291 | # define CRYPTO_get_locking_callback() (NULL)
| `- note: macro 'CRYPTO_get_locking_callback' unavailable: function like macros not supported
292 | # define CRYPTO_set_add_lock_callback(func)
293 | # define CRYPTO_get_add_lock_callback() (NULL)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLInit.swift:51:25: error: cannot find 'CRYPTO_num_locks' in scope
49 | // to keep OpenSSL happy, the least we can do is do those stupid insane things in
50 | // a *type-safe* way.
51 | let lockCount = Int(CRYPTO_num_locks())
| `- error: cannot find 'CRYPTO_num_locks' in scope
52 | sslLocks = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: lockCount)
53 |
/usr/include/openssl/crypto.h:289:11: note: macro 'CRYPTO_num_locks' unavailable: function like macros not supported
287 | * the callback management functions can be safely replaced with no-op macros.
288 | */
289 | # define CRYPTO_num_locks() (1)
| `- note: macro 'CRYPTO_num_locks' unavailable: function like macros not supported
290 | # define CRYPTO_set_locking_callback(func)
291 | # define CRYPTO_get_locking_callback() (NULL)
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLInit.swift:74:5: error: cannot find 'CRYPTO_set_id_callback' in scope
72 | }
73 |
74 | CRYPTO_set_id_callback(getThreadID)
| `- error: cannot find 'CRYPTO_set_id_callback' in scope
75 | CRYPTO_set_locking_callback(opensslLockingCallback)
76 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOOpenSSL/SSLInit.swift:75:5: error: cannot find 'CRYPTO_set_locking_callback' in scope
73 |
74 | CRYPTO_set_id_callback(getThreadID)
75 | CRYPTO_set_locking_callback(opensslLockingCallback)
| `- error: cannot find 'CRYPTO_set_locking_callback' in scope
76 | }
77 |
[201/217] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[202/218] Compiling NIOWebSocket WebSocketOpcode.swift
[203/218] Compiling NIOOpenSSL TLSConfiguration.swift
BUILD FAILURE 6.0 linux