mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
added name to host removed hostkey from connectionview as its in keys now fix crash on force unrap in keypair navigatoin labels added hostinvalid() to check if the host is invalid added case notconnected for keyerror openshell is throwing moved stuff round
28 lines
424 B
Swift
28 lines
424 B
Swift
//
|
|
// SSHError.swift
|
|
// ShhShell
|
|
//
|
|
// Created by neon443 on 23/06/2025.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum SSHError: Error {
|
|
case connectionFailed(String)
|
|
case communicationError(String)
|
|
case backendError(String)
|
|
}
|
|
|
|
enum AuthError: Error {
|
|
case rejectedCredentials
|
|
case notConnected
|
|
}
|
|
|
|
enum KeyError: Error {
|
|
case notConnected
|
|
case importPubkeyError
|
|
case importPrivkeyError
|
|
case pubkeyRejected
|
|
case privkeyRejected
|
|
}
|