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 56cbb35
Show file tree
Hide file tree
Showing 8 changed files with 23 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
5 changes: 5 additions & 0 deletions Sources/NIOSSH/Key Exchange/EllipticCurveKeyExchange.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@
//
//===----------------------------------------------------------------------===//

import CDispatch
import Crypto
import Dispatch
import NIOCore
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif


#if canImport(Darwin)
import Darwin
Expand Down
5 changes: 5 additions & 0 deletions Sources/NIOSSH/Keys And Signatures/NIOSSHPrivateKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

@preconcurrency import Crypto
import NIOCore
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

/// An SSH private key.
///
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 56cbb35

Please sign in to comment.