aboutsummaryrefslogtreecommitdiff
path: root/src/gssapi.c
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2014-10-07 17:31:37 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-10-12 15:41:15 +0200
commitcd2dc3770a49fc4487cbb0625003983e43520ec7 (patch)
treed6efc8926cba6f0d3ee2fdaaf9941e87a6413910 /src/gssapi.c
parent250f50648755415a138b1347a17a367ad384b66d (diff)
downloadlibssh-cd2dc3770a49fc4487cbb0625003983e43520ec7.tar.gz
libssh-cd2dc3770a49fc4487cbb0625003983e43520ec7.tar.xz
libssh-cd2dc3770a49fc4487cbb0625003983e43520ec7.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>
Diffstat (limited to 'src/gssapi.c')
-rw-r--r--src/gssapi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gssapi.c b/src/gssapi.c
index 140542a0..099294ee 100644
--- a/src/gssapi.c
+++ b/src/gssapi.c
@@ -491,8 +491,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.
*/
@@ -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;
}
-#endif /* SERVER */
-
static int ssh_gssapi_send_auth_mic(ssh_session session, ssh_string *oid_set, int n_oid){
int rc;
int i;