1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-06-02 03:41:34 +03:00

gssapi: ssh_gssapi_set_creds() is a client side function

It should not be guarded by the WITH_SERVER #ifdef

Signed-off-by: Stef Walter <stefw@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Stef Walter 2014-10-07 17:31:37 +02:00 committed by Andreas Schneider
parent 250f506487
commit cd2dc3770a

View File

@ -491,8 +491,12 @@ ssh_gssapi_creds ssh_gssapi_get_creds(ssh_session session){
return (ssh_gssapi_creds)session->gssapi->client_creds; return (ssh_gssapi_creds)session->gssapi->client_creds;
} }
#endif /* SERVER */
/** /**
* @brief Set the forwadable ticket to be given to the server for authentication. * @brief Set the forwadable ticket to be given to the server for authentication.
* Unlike ssh_gssapi_get_creds() this is called on the client side of an ssh
* connection.
* *
* @param[in] creds gssapi credentials handle. * @param[in] creds gssapi credentials handle.
*/ */
@ -511,8 +515,6 @@ void ssh_gssapi_set_creds(ssh_session session, const ssh_gssapi_creds creds)
session->gssapi->client.client_deleg_creds = (gss_cred_id_t)creds; session->gssapi->client.client_deleg_creds = (gss_cred_id_t)creds;
} }
#endif /* SERVER */
static int ssh_gssapi_send_auth_mic(ssh_session session, ssh_string *oid_set, int n_oid){ static int ssh_gssapi_send_auth_mic(ssh_session session, ssh_string *oid_set, int n_oid){
int rc; int rc;
int i; int i;