mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-11-22 05:27:28 +00:00
39 lines
973 B
Swift
39 lines
973 B
Swift
import Foundation
|
|
|
|
public enum SSHAgent {}
|
|
|
|
extension SSHAgent {
|
|
|
|
public enum RequestType: UInt8, CustomDebugStringConvertible {
|
|
case requestIdentities = 11
|
|
case signRequest = 13
|
|
|
|
public var debugDescription: String {
|
|
switch self {
|
|
case .requestIdentities:
|
|
return "RequestIdentities"
|
|
case .signRequest:
|
|
return "SignRequest"
|
|
}
|
|
}
|
|
}
|
|
|
|
public enum ResponseType: UInt8, CustomDebugStringConvertible {
|
|
case agentFailure = 5
|
|
case agentIdentitiesAnswer = 12
|
|
case agentSignResponse = 14
|
|
|
|
public var debugDescription: String {
|
|
switch self {
|
|
case .agentFailure:
|
|
return "AgentFailure"
|
|
case .agentIdentitiesAnswer:
|
|
return "AgentIdentitiesAnswer"
|
|
case .agentSignResponse:
|
|
return "AgentSignResponse"
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|