]> andersk Git - moira.git/blobdiff - server/mr_sauth.c
update for use with new com_err library
[moira.git] / server / mr_sauth.c
index 3930979a6a4ce3e1cfe4309a44c37949451ca9a1..b0d1b0a4edb3356b5f9b4d028c92fef1fa907a00 100644 (file)
 static char *rcsid_sms_sauth_c = "$Header$";
 #endif lint
 
-extern int krb_err_base;
 #include <mit-copyright.h>
 #include <strings.h>
 #include "sms_server.h"
+#include <krb_et.h>
 
 extern char buf1[];
 extern char *whoami;
@@ -38,7 +38,6 @@ do_auth(cl)
        AUTH_DAT ad;
        int status;
        char buf[REALM_SZ+INST_SZ+ANAME_SZ];
-       extern int krb_err_base;
        static char *unknown = "???";
        
        if (cl->clname) {
@@ -57,8 +56,8 @@ do_auth(cl)
        auth.mbz = 0;
        
        if ((status = krb_rd_req (&auth, "sms", "sms", cl->haddr.sin_addr,
-                                &ad, "")) != KSUCCESS) {
-               status += krb_err_base;
+                                &ad, "")) != 0) {
+               status += ERROR_TABLE_BASE_krb;
                cl->reply.sms_status = status;
                if (log_flags & LOG_RES)
                        com_err(whoami, status, "(authentication failed)");
This page took 0.03773 seconds and 4 git commands to generate.