summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-19 09:58:52 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-19 09:58:52 +0000
commit344b786efe00f72ed81f0eeb4d422c655d866557 (patch)
tree1d8fb7092a7d6ced82757a2feccfb32831307693
parentadf44a9bd0d997ba4dcfadc564a29149531525af (diff)
downloadsamba-344b786efe00f72ed81f0eeb4d422c655d866557.tar.gz
we only have gss_ fns on a krb5 capable box
-rw-r--r--source/libads/ads_struct.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/libads/ads_struct.c b/source/libads/ads_struct.c
index a7c8d1a6813..83d423104ea 100644
--- a/source/libads/ads_struct.c
+++ b/source/libads/ads_struct.c
@@ -157,8 +157,8 @@ void ads_destroy(ADS_STRUCT **ads)
}
}
-
-static void ads_display_status_helper(char *m, OM_uint32 code, int type)
+#if HAVE_KRB5
+static void ads_display_status_helper(const char *m, uint32 code, int type)
{
int maj_stat, min_stat;
gss_buffer_desc msg;
@@ -177,9 +177,12 @@ static void ads_display_status_helper(char *m, OM_uint32 code, int type)
break;
}
}
+#endif
-void ads_display_status(char * msg, int maj_stat,int min_stat)
+void ads_display_status(const char *msg, int maj_stat,int min_stat)
{
+#if HAVE_KRB5
ads_display_status_helper(msg, maj_stat, GSS_C_GSS_CODE);
ads_display_status_helper(msg, min_stat, GSS_C_MECH_CODE);
+#endif
}