Skip to content

Commit

Permalink
Make error types public
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis committed Apr 25, 2024
1 parent 4c8e7e2 commit 9ebd290
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Citadel/Errors.swift
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
enum SSHClientError: Error {
public enum SSHClientError: Error {
case unsupportedPasswordAuthentication, unsupportedPrivateKeyAuthentication, unsupportedHostBasedAuthentication
case channelCreationFailed
case allAuthenticationOptionsFailed
}

enum SSHChannelError: Error {
public enum SSHChannelError: Error {
case invalidDataType
}

enum SSHExecError: Error {
public enum SSHExecError: Error {
case commandExecFailed
case invalidChannelType
case invalidData
}

enum SFTPError: Error {
public enum SFTPError: Error {
case unknownMessage
case invalidPayload(type: SFTPMessageType)
case invalidResponse
Expand All @@ -26,7 +26,7 @@ enum SFTPError: Error {
case unsupportedVersion(SFTPProtocolVersion)
}

enum CitadelError: Error {
public enum CitadelError: Error {
case invalidKeySize
case invalidEncryptedPacketLength
case invalidDecryptedPlaintextLength
Expand Down

0 comments on commit 9ebd290

Please sign in to comment.