|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
Namespaces | |
| namespace | auth |
| namespace | detail |
| namespace | scp |
| namespace | server |
| namespace | sftp |
Classes | |
| class | AcceptAnyHostKeyPolicy |
| Accept everything. Requires the i_understand_this_is_insecure() tag. More... | |
| class | Authenticator |
| Authentication strategy interface. See docs/design/04 §4.4. More... | |
| class | AuthError |
| struct | AuthMethods |
| class | BasicByteSpan |
| A minimal span-like non-owning view over contiguous bytes (C++17 has no std::span). More... | |
| class | BidirectionalPump |
| class | ByteView |
| Input byte range. Implicitly constructible from std::string_view / std::vector<std::byte>. More... | |
| class | CallbackHostKeyPolicy |
| Delegates to a user callback (e.g. a GUI prompt). More... | |
| class | CancelledError |
| class | Channel |
| class | ChannelError |
| class | ConnectionError |
| class | Error |
| struct | ErrorInfo |
| class | Event |
| Poll-loop integration seam around ssh_event. See docs/design/05 §5.5. More... | |
| class | Exec |
| struct | ExecResult |
| struct | ExitState |
| struct | Features |
| class | Fingerprint |
| class | ForwardingError |
| struct | ForwardStats |
| class | HostKeyError |
| class | HostKeyVerifier |
| Policy object consulted by Session::verify_host_key(). See docs/design/04 §4.6. More... | |
| struct | IncomingForward |
ssh -R originator/listener primitive: server listens, hands us inbound channels. More... | |
| struct | InsecureOptIn |
| class | Key |
| class | KeyError |
| class | KnownHosts |
| struct | KnownHostsEntry |
| class | Library |
| class | LocalForward |
| struct | LogRecord |
| class | MutableByteView |
| Output byte range (caller-owned, mutable buffer to write into). More... | |
| struct | NegotiatedAlgorithms |
| struct | PassphraseRequest |
| Request passed to a passphrase/password prompt callback. More... | |
| class | PinnedHostKeyPolicy |
| Pin one or more fingerprints; ignores known_hosts entirely. More... | |
| struct | PtySize |
| class | RemoteForward |
ssh -R equivalent: accept loop that connects each inbound channel to a local endpoint. More... | |
| class | RemoteForwardListener |
| class | RemotePath |
| class | Result |
| class | Result< void > |
| class | ScpError |
| class | SecureString |
| class | ServerError |
| class | Session |
| struct | SessionOptions |
| class | SftpError |
| class | Shell |
| class | SocksProxy |
| struct | SourceLocation |
| Minimal std::source_location-like shim (this library targets C++17). More... | |
| class | StrictHostKeyPolicy |
| Reject anything not already in known_hosts. The only safe default. More... | |
| struct | TcpEndpoint |
| class | TimeoutError |
| class | TofuHostKeyPolicy |
| Accept-and-remember on first use; reject on change (OpenSSH accept-new). More... | |
| struct | UnixEndpoint |
| class | UsageError |
| class | X11Forwarder |
| struct | X11Request |
Typedefs | |
| using | native_session = ::ssh_session_struct * |
| using | native_channel = ::ssh_channel_struct * |
| using | native_key = ::ssh_key_struct * |
| using | native_bind = ::ssh_bind_struct * |
| using | native_message = ::ssh_message_struct * |
| using | native_event = ::ssh_event_struct * |
| using | native_sftp = ::sftp_session_struct * |
| using | native_sftp_file = ::sftp_file_struct * |
| using | native_sftp_dir = ::sftp_dir_struct * |
| using | native_scp = ::ssh_scp_struct * |
| using | native_connector = ::ssh_connector_struct * |
| using | native_sftp_aio = ::sftp_aio_struct * |
| using | OutputSink = std::function< void(Stream, ByteView)> |
| using | ForwardTarget = std::variant< TcpEndpoint, UnixEndpoint > |
| using | PublicKey = Key |
| using | PassphraseCallback = std::function< Result< SecureString >(const PassphraseRequest &)> |
| using | PasswordCallback = std::function< Result< SecureString >()> |
| using | LogCallback = std::function< void(const LogRecord &)> |
Functions | |
| SSHPP_INLINE const std::error_category & | ssh_category () noexcept |
| SSHPP_INLINE const std::error_category & | sftp_category () noexcept |
| SSHPP_INLINE std::error_code | make_error_code (errc e) noexcept |
| SSHPP_INLINE std::error_code | make_error_code (sftp_errc e) noexcept |
| SSHPP_INLINE void | throw_error (ErrorInfo info) |
| SSHPP_INLINE std::string | shell_quote (std::string_view arg) |
| Escapes a single argument for a POSIX shell. | |
| SSHPP_INLINE Result< Channel > | open_direct (Session &session, const ForwardTarget &remote, TcpEndpoint origin) |
| InsecureOptIn | i_understand_this_is_insecure () |
| using sshpp::native_session = typedef ::ssh_session_struct* |
| using sshpp::native_channel = typedef ::ssh_channel_struct* |
| using sshpp::native_key = typedef ::ssh_key_struct* |
| using sshpp::native_bind = typedef ::ssh_bind_struct* |
| using sshpp::native_message = typedef ::ssh_message_struct* |
| using sshpp::native_event = typedef ::ssh_event_struct* |
| using sshpp::native_sftp = typedef ::sftp_session_struct* |
| using sshpp::native_sftp_file = typedef ::sftp_file_struct* |
| using sshpp::native_sftp_dir = typedef ::sftp_dir_struct* |
| using sshpp::native_scp = typedef ::ssh_scp_struct* |
| using sshpp::native_connector = typedef ::ssh_connector_struct* |
| using sshpp::native_sftp_aio = typedef ::sftp_aio_struct* |
| using sshpp::OutputSink = typedef std::function<void(Stream, ByteView)> |
| using sshpp::ForwardTarget = typedef std::variant<TcpEndpoint, UnixEndpoint> |
| typedef Key sshpp::PublicKey |
| using sshpp::PassphraseCallback = typedef std::function<Result<SecureString>(const PassphraseRequest&)> |
| using sshpp::PasswordCallback = typedef std::function<Result<SecureString>()> |
| using sshpp::LogCallback = typedef std::function<void(const LogRecord&)> |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
| SSHPP_API void sshpp::throw_error | ( | ErrorInfo | info | ) |
Throws the exception subclass matching info.code's category/value. The single place that translates an ErrorInfo into a thrown exception.
| SSHPP_API std::string sshpp::shell_quote | ( | std::string_view | arg | ) |
Escapes a single argument for a POSIX shell.
| SSHPP_API Result< Channel > sshpp::open_direct | ( | Session & | , |
| const ForwardTarget & | remote, | ||
| TcpEndpoint | origin = {"127.0.0.1", 0} |
||
| ) |
Primitive: one channel to one remote endpoint (direct-tcpip / direct-streamlocal). No local listener involved.
|
inline |