Skip to content

Commit

Permalink
add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rnro committed Dec 11, 2024
1 parent ab3a37a commit 65aba15
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 0 deletions.
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

0 comments on commit 65aba15

Please sign in to comment.