From 1c59844dfee03ad7cba78665c6d7fbdf0abb58a8 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 7 Oct 2014 17:31:37 +0200 Subject: [PATCH] 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 Reviewed-by: Andreas Schneider (cherry picked from commit cd2dc3770a49fc4487cbb0625003983e43520ec7) --- src/gssapi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gssapi.c b/src/gssapi.c index d8b16d34..7bd34479 100644 --- a/src/gssapi.c +++ b/src/gssapi.c @@ -539,8 +539,12 @@ ssh_gssapi_creds ssh_gssapi_get_creds(ssh_session session){ return (ssh_gssapi_creds)session->gssapi->client_creds; } +#endif /* SERVER */ + /** * @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. */ @@ -559,8 +563,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; } -#endif /* SERVER */ - static int ssh_gssapi_send_auth_mic(ssh_session session, ssh_string *oid_set, int n_oid){ ssh_string str; int rc;