libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
invoke.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// Internal helpers shared by the .cpp files that talk to libssh directly.
4// Not part of the public API.
5#pragma once
6
7#include <sshpp/config.hpp>
8
10#include <sshpp/error.hpp>
11
12namespace sshpp::detail {
13
16ErrorInfo make_error_info(native_session session, const char* operation, SourceLocation where,
17 errc fallback = errc::unknown);
18
20errc errc_from_auth_result(int auth_result) noexcept;
21
23ErrorInfo make_sftp_error_info(native_sftp sftp, native_session session, const char* operation,
24 SourceLocation where);
25
26} // namespace sshpp::detail
27
28#if SSHPP_HEADER_ONLY
30#endif
Definition handler_bridge.hpp:10
ErrorInfo make_sftp_error_info(native_sftp sftp, native_session session, const char *operation, SourceLocation where)
Snapshots sftp_get_error()/ssh_get_error() for an SFTP failure into an ErrorInfo.
Definition invoke.ipp:49
ErrorInfo make_error_info(native_session session, const char *operation, SourceLocation where, errc fallback=errc::unknown)
Definition invoke.ipp:17
errc errc_from_auth_result(int auth_result) noexcept
Maps a raw SSH_AUTH_* result to sshpp::errc for error paths (success/partial are not errors).
Definition invoke.ipp:39
::sftp_session_struct * native_sftp
Definition native_fwd.hpp:31
errc
Definition error.hpp:22
::ssh_session_struct * native_session
Definition native_fwd.hpp:25