|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
#include <test_server.hpp>
Classes | |
| struct | Options |
Public Member Functions | |
| TestServer (Options options) | |
| ~TestServer () | |
| TestServer (const TestServer &)=delete | |
| TestServer & | operator= (const TestServer &)=delete |
| std::uint16_t | port () const noexcept |
| const Key & | host_key () const noexcept |
| Fingerprint | host_key_fingerprint (HashType type=HashType::sha256) const |
| SessionOptions | client_options () const |
| std::filesystem::path | known_hosts_file () const |
A complete SSH server on 127.0.0.1:<ephemeral>, running on its own thread(s). Generates a throwaway ed25519 host key in memory. See docs/design/08 ยง8.8.
|
explicit |
| SSHPP_INLINE sshpp::server::TestServer::~TestServer | ( | ) |
|
delete |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
| SSHPP_INLINE Fingerprint sshpp::server::TestServer::host_key_fingerprint | ( | HashType | type = HashType::sha256 | ) | const |
| SSHPP_INLINE SessionOptions sshpp::server::TestServer::client_options | ( | ) | const |
Ready-made client options pointing at this server (password/pubkey auth is still the caller's job to configure and perform).
|
inline |