diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-02-20 23:20:44 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-13 14:21:36 +0200 |
commit | 3b52e38a333cb204673b9401b0e895d96d9fb02f (patch) | |
tree | ff395dc6a182153cde6b2a33cdb40d4982505652 /include | |
parent | 6bb50630462cf20b5d7fa42ef1cc99c8f80ccac9 (diff) | |
download | libssh-3b52e38a333cb204673b9401b0e895d96d9fb02f.tar.gz libssh-3b52e38a333cb204673b9401b0e895d96d9fb02f.tar.xz libssh-3b52e38a333cb204673b9401b0e895d96d9fb02f.zip |
auth: adapt libssh to gssapi-with-mic server
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 1 | ||||
-rw-r--r-- | include/libssh/priv.h | 5 | ||||
-rw-r--r-- | include/libssh/server.h | 2 | ||||
-rw-r--r-- | include/libssh/session.h | 1 |
4 files changed, 7 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index d9cc8478..2c62b2fe 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -164,6 +164,7 @@ enum ssh_auth_e { #define SSH_AUTH_METHOD_PUBLICKEY 0x0004 #define SSH_AUTH_METHOD_HOSTBASED 0x0008 #define SSH_AUTH_METHOD_INTERACTIVE 0x0010 +#define SSH_AUTH_METHOD_GSSAPI_MIC 0x0020 /* messages */ enum ssh_requests_e { diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 912a1918..c985a3ab 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -179,8 +179,9 @@ void _ssh_set_error_oom(void *error, const char *function); void _ssh_set_error_invalid(void *error, const char *function); - - +/* server.c */ +int ssh_auth_reply_default(ssh_session session,int partial); +int ssh_auth_reply_success(ssh_session session, int partial); /* client.c */ diff --git a/include/libssh/server.h b/include/libssh/server.h index 6ed8002a..28be4596 100644 --- a/include/libssh/server.h +++ b/include/libssh/server.h @@ -254,6 +254,8 @@ LIBSSH_API int ssh_handle_key_exchange(ssh_session session); */ LIBSSH_API void ssh_bind_free(ssh_bind ssh_bind_o); +LIBSSH_API void ssh_set_auth_methods(ssh_session session, int auth_methods); + /********************************************************** * SERVER MESSAGING **********************************************************/ diff --git a/include/libssh/session.h b/include/libssh/session.h index e6bea771..4764a1ef 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -143,6 +143,7 @@ struct ssh_session_struct { /* keyb interactive data */ struct ssh_kbdint_struct *kbdint; + struct ssh_gssapi_struct *gssapi; int version; /* 1 or 2 */ /* server host keys */ struct { |