Skip to content

Commit 9ebd290

Browse files
committed
Make error types public
1 parent 4c8e7e2 commit 9ebd290

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Citadel/Errors.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
enum SSHClientError: Error {
1+
public enum SSHClientError: Error {
22
case unsupportedPasswordAuthentication, unsupportedPrivateKeyAuthentication, unsupportedHostBasedAuthentication
33
case channelCreationFailed
44
case allAuthenticationOptionsFailed
55
}
66

7-
enum SSHChannelError: Error {
7+
public enum SSHChannelError: Error {
88
case invalidDataType
99
}
1010

11-
enum SSHExecError: Error {
11+
public enum SSHExecError: Error {
1212
case commandExecFailed
1313
case invalidChannelType
1414
case invalidData
1515
}
1616

17-
enum SFTPError: Error {
17+
public enum SFTPError: Error {
1818
case unknownMessage
1919
case invalidPayload(type: SFTPMessageType)
2020
case invalidResponse
@@ -26,7 +26,7 @@ enum SFTPError: Error {
2626
case unsupportedVersion(SFTPProtocolVersion)
2727
}
2828

29-
enum CitadelError: Error {
29+
public enum CitadelError: Error {
3030
case invalidKeySize
3131
case invalidEncryptedPacketLength
3232
case invalidDecryptedPlaintextLength

0 commit comments

Comments
 (0)