diff options
author | Stef Walter <stefw@redhat.com> | 2014-10-07 17:31:37 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-10-12 15:47:13 +0200 |
commit | 1c59844dfee03ad7cba78665c6d7fbdf0abb58a8 (patch) | |
tree | 7cdd7636ff480f91bddce944a3c36e7283fc2b5f | |
parent | f071954a76b672e4775780dea9635e95d1a5729d (diff) | |
download | libssh-1c59844dfee03ad7cba78665c6d7fbdf0abb58a8.tar.gz libssh-1c59844dfee03ad7cba78665c6d7fbdf0abb58a8.tar.xz libssh-1c59844dfee03ad7cba78665c6d7fbdf0abb58a8.zip |
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>
(cherry picked from commit cd2dc3770a49fc4487cbb0625003983e43520ec7)
-rw-r--r-- | src/gssapi.c | 6 |
1 files 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; |