mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-25 04:47:52 +00:00
* Port SecureBytes from Swift Crypto to use with TLS-PSK Motivation: Porting SecureBytes to NIOSSLSecureBytes for using in (Add TLS-PSK Support #360). Modifications: Addition and modification of SecureBytes to work within SwiftNIO SSL. Added additional test cases. Result: NIOSSLSecureBytes will be ported for usage in a later PR with TLS-PSK. * secure-bytes-transfer: Added LinuxMain tests * secure-bytes-transfer: Removed case from NIOSSLError * secure-bytes-transfer: Addressed initial feedback * secure-bytes-transfer: Removed NIOSSLSecureBytesError from SSLErrors * secure-bytes-transfer: Remove public access from NIOSSLSecureBytes * Remove remaining public declaration. Co-authored-by: meaton2 <meaton3@apple.com> Co-authored-by: Cory Benfield <lukasa@apple.com>
58 lines
2.3 KiB
Swift
58 lines
2.3 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) || os(Android)
|
|
@testable import NIOSSLTests
|
|
|
|
// This protocol is necessary to we can call the 'run' method (on an existential of this protocol)
|
|
// without the compiler noticing that we're calling a deprecated function.
|
|
// This hack exists so we can deprecate individual tests which test deprecated functionality without
|
|
// getting a compiler warning...
|
|
protocol LinuxMainRunner { func run() }
|
|
class LinuxMainRunnerImpl: LinuxMainRunner {
|
|
@available(*, deprecated, message: "not actually deprecated. Just deprecated to allow deprecated tests (which test deprecated functionality) without warnings")
|
|
func run() {
|
|
XCTMain([
|
|
testCase(ByteBufferBIOTest.allTests),
|
|
testCase(CertificateVerificationTests.allTests),
|
|
testCase(ClientSNITests.allTests),
|
|
testCase(CustomPrivateKeyTests.allTests),
|
|
testCase(IdentityVerificationTest.allTests),
|
|
testCase(NIOSSLALPNTest.allTests),
|
|
testCase(NIOSSLIntegrationTest.allTests),
|
|
testCase(NIOSSLSecureBytesTests.allTests),
|
|
testCase(ObjectIdentifierTests.allTests),
|
|
testCase(SSLCertificateExtensionsTests.allTests),
|
|
testCase(SSLCertificateTest.allTests),
|
|
testCase(SSLPKCS12BundleTest.allTests),
|
|
testCase(SSLPrivateKeyTest.allTests),
|
|
testCase(SecurityFrameworkVerificationTests.allTests),
|
|
testCase(TLSConfigurationTest.allTests),
|
|
testCase(UnwrappingTests.allTests),
|
|
])
|
|
}
|
|
}
|
|
(LinuxMainRunnerImpl() as LinuxMainRunner).run()
|
|
#endif
|