diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-08-03 22:29:49 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-12-15 12:00:49 +0100 |
commit | f818e63f8f3efaea3daf737d280450209c806541 (patch) | |
tree | 4b0067b810f9c67d4d4f88f80f18a35a72acb55d /include | |
parent | 094aa5eb024582d23b8e0cd5ebfea3cb29ed188d (diff) | |
download | libssh-f818e63f8f3efaea3daf737d280450209c806541.tar.gz libssh-f818e63f8f3efaea3daf737d280450209c806541.tar.xz libssh-f818e63f8f3efaea3daf737d280450209c806541.zip |
Add new options
Pair-Programmed-With: Jakub Jelen <jjelen@redhat.com>
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-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; |