mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +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>
(cherry picked from commit cd2dc3770a
)
This commit is contained in:
committed by
Andreas Schneider
parent
f071954a76
commit
1c59844dfe
@@ -539,8 +539,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.
|
||||||
*/
|
*/
|
||||||
@@ -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;
|
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){
|
||||||
ssh_string str;
|
ssh_string str;
|
||||||
int rc;
|
int rc;
|
||||||
|
Reference in New Issue
Block a user