]> andersk Git - moira.git/blobdiff - lib/mr_auth.c
Build without krb4 if it's unavailable.
[moira.git] / lib / mr_auth.c
index 4a5a89c7e3abb09048f76e0c131cb75666d77829..4e1d6b0ab9803476934264ce975a1470533c153c 100644 (file)
@@ -15,7 +15,9 @@
 #include <stdio.h>
 #include <string.h>
 
+#ifdef HAVE_KRB4
 #include <krb.h>
+#endif
 #include <krb5.h>
 
 krb5_context context = NULL;
@@ -29,6 +31,7 @@ RCSID("$Header$");
 
 int mr_auth(char *prog)
 {
+#ifdef HAVE_KRB4
   int status;
   mr_params params, reply;
   char *args[2];
@@ -70,6 +73,9 @@ int mr_auth(char *prog)
   mr_destroy_reply(reply);
 
   return status;
+#else
+  return MR_NO_KRB4;
+#endif
 }
 
 int mr_proxy(char *principal, char *orig_authtype)
This page took 0.033108 seconds and 4 git commands to generate.