libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
auth_types.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2#pragma once
3
4namespace sshpp {
5
7
8struct AuthMethods {
9 bool none = false, password = false, public_key = false,
10 host_based = false, interactive = false, gssapi_mic = false;
11
12 static AuthMethods from_bits(int bits) noexcept;
13 int to_bits() const noexcept;
14 bool any() const noexcept { return password || public_key || host_based || interactive || gssapi_mic; }
15};
16
17} // namespace sshpp
Definition auth.hpp:18
AuthStatus
Definition auth_types.hpp:6
Definition auth_types.hpp:8
bool none
Definition auth_types.hpp:9
int to_bits() const noexcept
Definition auth.ipp:34
bool public_key
Definition auth_types.hpp:9
bool interactive
Definition auth_types.hpp:10
static AuthMethods from_bits(int bits) noexcept
Definition auth.ipp:23
bool any() const noexcept
Definition auth_types.hpp:14
bool host_based
Definition auth_types.hpp:10
bool password
Definition auth_types.hpp:9
bool gssapi_mic
Definition auth_types.hpp:10