diff options
Diffstat (limited to 'include/libssh')
-rw-r--r-- | include/libssh/libssh.h | 5 | ||||
-rw-r--r-- | include/libssh/session.h | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 504a645a..be4b35c2 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -351,6 +351,11 @@ enum ssh_options_e { SSH_OPTIONS_GSSAPI_DELEGATE_CREDENTIALS, SSH_OPTIONS_HMAC_C_S, SSH_OPTIONS_HMAC_S_C, + SSH_OPTIONS_PASSWORD_AUTH, + SSH_OPTIONS_PUBKEY_AUTH, + SSH_OPTIONS_KBDINT_AUTH, + SSH_OPTIONS_GSSAPI_AUTH, + SSH_OPTIONS_GLOBAL_KNOWNHOSTS }; enum { diff --git a/include/libssh/session.h b/include/libssh/session.h index 60d78578..69a78dc4 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -79,6 +79,13 @@ enum ssh_pending_call_e { /* Don't block at all */ #define SSH_TIMEOUT_NONBLOCKING 0 +/* options flags */ +/* Authentication with *** allowed */ +#define SSH_OPT_FLAG_PASSWORD_AUTH 0x1 +#define SSH_OPT_FLAG_PUBKEY_AUTH 0x2 +#define SSH_OPT_FLAG_KBDINT_AUTH 0x4 +#define SSH_OPT_FLAG_GSSAPI_AUTH 0x8 + /* members that are common to ssh_session and ssh_bind */ struct ssh_common_struct { struct error_struct error; @@ -182,6 +189,7 @@ struct ssh_session_struct { char *bindaddr; /* bind the client to an ip addr */ char *sshdir; char *knownhosts; + char *global_knownhosts; char *wanted_methods[10]; char *ProxyCommand; char *custombanner; @@ -196,6 +204,7 @@ struct ssh_session_struct { char *gss_server_identity; char *gss_client_identity; int gss_delegate_creds; + int flags; } opts; /* counters */ ssh_counter socket_counter; |