|
libsshpp v0.1.7
Modern C++17 wrapper for libssh
|
#include <message.hpp>
Public Member Functions | |
| Message ()=default | |
| ~Message () | |
| Message (Message &&) noexcept | |
| Message & | operator= (Message &&) noexcept |
| Message (const Message &)=delete | |
| operator bool () const noexcept | |
| MessageType | type () const noexcept |
| AuthSubtype | auth_subtype () const noexcept |
| ChannelOpenSubtype | channel_open_subtype () const noexcept |
| ChannelRequestSubtype | channel_request_subtype () const noexcept |
| std::string_view | auth_user () const noexcept |
| SecureString | auth_password () const |
| PublicKeyState | auth_public_key_state () const noexcept |
| Key | auth_public_key () const |
| The offered/verified key. Borrowed: valid only for this message's lifetime. | |
| Result< void > | try_reply_auth_success () |
| Result< void > | try_reply_auth_failure (bool partial=false) |
| Result< void > | try_reply_auth_pk_ok () |
| Tells the client its offered key is acceptable; signature not yet required. | |
| Result< void > | try_reply_default () |
| Result< Channel > | try_accept_channel_open () |
| Accepts the channel-open request and returns the resulting Channel. | |
| std::string_view | exec_command () const noexcept |
| std::string_view | subsystem_name () const noexcept |
| std::pair< std::string_view, std::string_view > | env_pair () const noexcept |
| Result< void > | try_reply_success () |
| Result< void > | try_reply_failure () |
Friends | |
| class | Session |
One pulled protocol message (ssh_message_get()). Exactly one reply must be sent per message; the destructor sends a default (deny) reply if the caller forgot, so a missing reply becomes a clear failure rather than a hung client. See docs/design/08 ยง8.5.
|
default |
| SSHPP_INLINE sshpp::server::Message::~Message | ( | ) |
|
noexcept |
|
delete |
|
inlineexplicitnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
| SSHPP_INLINE SecureString sshpp::server::Message::auth_password | ( | ) | const |
|
noexcept |
| SSHPP_INLINE Key sshpp::server::Message::auth_public_key | ( | ) | const |
The offered/verified key. Borrowed: valid only for this message's lifetime.
| SSHPP_INLINE Result< void > sshpp::server::Message::try_reply_auth_success | ( | ) |
| SSHPP_INLINE Result< void > sshpp::server::Message::try_reply_auth_failure | ( | bool | partial = false | ) |
| SSHPP_INLINE Result< void > sshpp::server::Message::try_reply_auth_pk_ok | ( | ) |
Tells the client its offered key is acceptable; signature not yet required.
| SSHPP_INLINE Result< void > sshpp::server::Message::try_reply_default | ( | ) |
Accepts the channel-open request and returns the resulting Channel.
|
noexcept |
|
noexcept |
|
noexcept |
| SSHPP_INLINE Result< void > sshpp::server::Message::try_reply_success | ( | ) |
| SSHPP_INLINE Result< void > sshpp::server::Message::try_reply_failure | ( | ) |
|
friend |