Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,14 @@ let package = Package(
),
]
)

// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
for target in package.targets {
if target.type != .plugin {
var settings = target.swiftSettings ?? []
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
target.swiftSettings = settings
}
}
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
//
//===----------------------------------------------------------------------===//

import NIOCore

protocol AcceptsUserAuthMessages {
var userAuthStateMachine: UserAuthenticationStateMachine { get set }

Expand Down
6 changes: 6 additions & 0 deletions Sources/NIOSSH/Key Exchange/EllipticCurveKeyExchange.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ import Crypto
import NIOCore
import NIOFoundationCompat

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

/// This protocol defines a container used by the key exchange state machine to manage key exchange.
/// This type erases the specific key exchanger.
protocol EllipticCurveKeyExchangeProtocol {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@
//
//===----------------------------------------------------------------------===//

import CDispatch
import Crypto
import Dispatch
import NIOCore

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

#if canImport(Darwin)
import Darwin
#elseif canImport(Glibc)
Expand Down
6 changes: 6 additions & 0 deletions Sources/NIOSSH/Keys And Signatures/NIOSSHPrivateKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
@preconcurrency import Crypto
import NIOCore

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

/// An SSH private key.
///
/// This object identifies a single SSH entity, usually a server. It is used as part of the SSH handshake and key exchange process,
Expand Down
1 change: 1 addition & 0 deletions Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@preconcurrency import Crypto
import Foundation
import NIOCore
import NIOFoundationCompat

/// An SSH public key.
///
Expand Down
1 change: 1 addition & 0 deletions Sources/NIOSSHPerformanceTester/BenchmarkHandshake.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
import Crypto
import NIOCore
import NIOEmbedded
import NIOSSH

final class BenchmarkHandshake: Benchmark {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
import Crypto
import NIOCore
import NIOEmbedded
import NIOSSH

final class BenchmarkLinearThroughput: Benchmark {
Expand Down
1 change: 1 addition & 0 deletions Tests/NIOSSHTests/HostKeyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import Crypto
import NIOCore
import NIOFoundationCompat
import XCTest

@testable import NIOSSH
Expand Down
Loading