]> andersk Git - moira.git/blobdiff - update/ticket.c
added sleeping states
[moira.git] / update / ticket.c
index 4a478aed398793ea17ede2e526d29dfdec630690..52bab6caca05985a15a545bec284d15fb47d9d95 100644 (file)
@@ -2,11 +2,15 @@
  *     $Source$
  *     $Header$
  */
+/*  (c) Copyright 1988 by the Massachusetts Institute of Technology. */
+/*  For copying and distribution information, please see the file */
+/*  <mit-copyright.h>. */
 
 #ifndef lint
 static char *rcsid_ticket_c = "$Header$";
 #endif lint
 
+#include <mit-copyright.h>
 #include <stdio.h>
 #include <krb.h>
 #include <sys/types.h>
@@ -14,6 +18,7 @@ static char *rcsid_ticket_c = "$Header$";
 #include <strings.h>
 #include <update.h>
 #include <com_err.h>
+#include <krb_et.h>
 
 /* too bad we can't set the pathname easily */
 static char *srvtab = KEYFILE; /* default == /etc/srvtab */
@@ -22,7 +27,7 @@ static char master[] = "sms";
 static char service[] = "rcmd";
 
 extern char *tkt_string(), *PrincipalHostname();
-extern int krb_err_base;
+
 
 static init()
 {
@@ -30,7 +35,7 @@ static init()
 
     if (!initialized) {
        get_krbrlm(realm, 1);
-       init_krb_err_tbl();
+       initialize_krb_error_table();
        initialized=1;
     }
 }
@@ -51,7 +56,7 @@ get_sms_update_ticket(host, ticket)
  try_it:
      code = krb_mk_req(ticket, service, phost, realm, (long)0);
      if (code)
-       code += krb_err_base;
+       code += ERROR_TABLE_BASE_krb;
      if (pass == 1) {
         /* maybe we're taking too long? */
         if ((code = get_sms_tgt()) != 0) {
@@ -74,5 +79,5 @@ get_sms_tgt()
     if (!code)
        return(0);
     else
-       return(code + krb_err_base);
+       return(code + ERROR_TABLE_BASE_krb);
 }
This page took 0.080846 seconds and 4 git commands to generate.