mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-26 04:57:52 +00:00
Motivation: In some unusual protocol scenarios it is desirable to remove a TLS tunnel from an active connection. Currently NIOOpenSSL does not support doing this: the only way to get it to issue a CLOSE_NOTIFY is to call close() on the Channel. This is less than ideal. Modifications: - Added a OpenSSLHandler.stopTLS method - Reworked the internal state machine to handle this use-case. Result: Users can safely unwrap TLS from a Channel.
40 lines
1.2 KiB
Swift
40 lines
1.2 KiB
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftNIO open source project
|
|
//
|
|
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// LinuxMain.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.
|
|
///
|
|
|
|
#if os(Linux) || os(FreeBSD)
|
|
@testable import NIOOpenSSLTests
|
|
|
|
XCTMain([
|
|
testCase(ByteBufferBIOTest.allTests),
|
|
testCase(ClientSNITests.allTests),
|
|
testCase(IdentityVerificationTest.allTests),
|
|
testCase(OpenSSLALPNTest.allTests),
|
|
testCase(OpenSSLIntegrationTest.allTests),
|
|
testCase(SSLCertificateTest.allTests),
|
|
testCase(SSLPKCS12BundleTest.allTests),
|
|
testCase(SSLPrivateKeyTest.allTests),
|
|
testCase(TLSConfigurationTest.allTests),
|
|
testCase(UnwrappingTests.allTests),
|
|
])
|
|
#endif |