summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2013-05-30 15:48:42 -0700
committerRuss Allbery <rra@stanford.edu>2013-05-30 16:23:45 -0700
commit9d993324d6c9c5c31153d062895abca09d674a73 (patch)
tree76b15042d2d9cc7c37727d695fd8930ed36d91ae /client
parentd76f82acdd4c4e9f7848c23492d04f2b1c1553fc (diff)
Fix compilation on systems without gss_krb5_import_cred
The code that actually called gss_krb5_import_cred wasn't conditional and the compiler wasn't smart enough to discard it. Provide a stub of the relevant open routine for systems that don't have the function. Change-Id: I93af1fbafe6fee192e44fb29cf65d06b738e5897 Reviewed-on: https://gerrit.stanford.edu/1206 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
Diffstat (limited to 'client')
-rw-r--r--client/open.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/open.c b/client/open.c
index 6c2ce21..982a07c 100644
--- a/client/open.c
+++ b/client/open.c
@@ -131,6 +131,7 @@ internal_import_name(struct remctl *r, const char *host,
* global GSS-API variable with gss_krb5_ccache_name or just use whatever the
* default is. The other cases are handled in remctl_set_ccache.
*/
+#ifdef HAVE_GSS_KRB5_IMPORT_CRED
static bool
internal_set_cred(struct remctl *r, gss_cred_id_t *gss_cred)
{
@@ -156,6 +157,13 @@ internal_set_cred(struct remctl *r, gss_cred_id_t *gss_cred)
}
return true;
}
+#else /* !HAVE_GSS_KRB5_IMPORT_CRED */
+static bool
+internal_set_cred(struct remctl *r UNUSED, gss_cred_id_t *gss_cred UNUSED)
+{
+ return false;
+}
+#endif /* !HAVE_GSS_KRB5_IMPORT_CRED */
/*