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
commit105fe2a32eccc63f63ddf903278b80fb211f05bf (patch)
tree55c4a73792474b3acc9ffab66d7816c3041c5da8
parent9126a40e2c33e0eb4cd57ab381634e08fa59e7a7 (diff)
downloadsamba-105fe2a32eccc63f63ddf903278b80fb211f05bf.tar.gz
samba-105fe2a32eccc63f63ddf903278b80fb211f05bf.tar.bz2
samba-105fe2a32eccc63f63ddf903278b80fb211f05bf.zip
we only have gss_ fns on a krb5 capable box
(This used to be commit 344b786efe00f72ed81f0eeb4d422c655d866557)
-rw-r--r--source3/libads/ads_struct.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/libads/ads_struct.c b/source3/libads/ads_struct.c
index a7c8d1a681..83d423104e 100644
--- a/source3/libads/ads_struct.c
+++ b/source3/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
}