Files
async-http-client/Tests/AsyncHTTPClientTests/HTTPClientNIOTSTests+XCTest.swift
T
Adam Fowler 9cdf8a01e5 Generate trust roots SecCertificate for Transport Services (#350)
This PR is a result of another #321.

In that PR I provided an alternative structure to TLSConfiguration for when connecting with Transport Services.

In this one I construct the NWProtocolTLS.Options from TLSConfiguration. It does mean a little more work for whenever we make a connection, but having spoken to @weissi he doesn't seem to think that is an issue.

Also there is no method to create a SecIdentity at the moment. We need to generate a pkcs#12 from the certificate chain and private key, which can then be used to create the SecIdentity.

This should resolve #292
2021-05-13 13:59:18 +01:00

36 lines
1.2 KiB
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the AsyncHTTPClient open source project
//
// Copyright (c) 2018-2019 Apple Inc. and the AsyncHTTPClient project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
//
// HTTPClientNIOTSTests+XCTest.swift
//
import XCTest
///
/// NOTE: This file was generated by generate_linux_tests.rb
///
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
///
extension HTTPClientNIOTSTests {
static var allTests: [(String, (HTTPClientNIOTSTests) -> () throws -> Void)] {
return [
("testCorrectEventLoopGroup", testCorrectEventLoopGroup),
("testTLSFailError", testTLSFailError),
("testConnectionFailError", testConnectionFailError),
("testTLSVersionError", testTLSVersionError),
("testTrustRootCertificateLoadFail", testTrustRootCertificateLoadFail),
]
}
}