]> andersk Git - moira.git/blobdiff - update/auth_002.c
Build without krb4 if it's unavailable.
[moira.git] / update / auth_002.c
index 18cc73eafd7592ea781d4f59778a58d19833fc88..2500ead6990ac31fa228189348e4d0520b722b9c 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
+#ifdef HAVE_KRB4
 #include <krb.h>
+#endif
 
 RCSID("$Header$");
 
 static char service[] = "rcmd";
 static char master[] = "sms";
 static char qmark[] = "???";
+#ifdef HAVE_KRB4
 extern des_cblock session;
+#endif
 
 /*
  * authentication request auth_002:
@@ -39,6 +43,7 @@ extern des_cblock session;
 
 void auth_002(int conn, char *str)
 {
+#ifdef HAVE_KRB4
   char aname[ANAME_SZ], ainst[INST_SZ], arealm[REALM_SZ];
   AUTH_DAT ad;
   char *p, *first, *data;
@@ -126,4 +131,7 @@ auth_failed:
   com_err(whoami, code, "auth for %s.%s@%s failed",
          ad.pname, ad.pinst, ad.prealm);
   send_int(conn, code);
+#else
+  return MR_NO_KRB4;
+#endif
 }
This page took 0.059629 seconds and 4 git commands to generate.