we only have gss_ fns on a krb5 capable box
authorAndrew Tridgell <tridge@samba.org>
Wed, 19 Dec 2001 09:58:52 +0000 (09:58 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 19 Dec 2001 09:58:52 +0000 (09:58 +0000)
(This used to be commit 344b786efe00f72ed81f0eeb4d422c655d866557)

source3/libads/ads_struct.c

index a7c8d1a6813ef068bba861d87514834660d26d99..83d423104eaadc221387f8b4c24579445a6f133a 100644 (file)
@@ -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
 }