This commit is contained in:
Max Goedjen
2025-09-06 14:54:03 -07:00
parent 2994861f45
commit 30bb29d153
7 changed files with 240 additions and 245 deletions

View File

@@ -3,7 +3,9 @@ import OSLog
import SecretKit
public protocol SSHAgentInputParserProtocol: Sendable {
func parse(data: Data) async throws -> SSHAgent.Request
}
public struct SSHAgentInputParser: SSHAgentInputParserProtocol {
@@ -14,7 +16,7 @@ public struct SSHAgentInputParser: SSHAgentInputParserProtocol {
}
public func parse(data: Data) async throws -> SSHAgent.Request {
public func parse(data: Data) throws -> SSHAgent.Request {
logger.debug("Parsing new data")
guard data.count > 4 else {
throw InvalidDataProvidedError()

View File

@@ -6,7 +6,7 @@ public enum SSHAgent {}
extension SSHAgent {
/// The type of the SSH Agent Request, as described in https://datatracker.ietf.org/doc/html/draft-miller-ssh-agent#section-5.1
public enum Request: CustomDebugStringConvertible, Codable {
public enum Request: CustomDebugStringConvertible, Codable, Sendable {
case requestIdentities
case signRequest(SignatureRequestContext)