#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 */
static char service[] = "rcmd";
extern char *tkt_string(), *PrincipalHostname();
-extern int krb_err_base;
+
static init()
{
if (!initialized) {
get_krbrlm(realm, 1);
- init_krb_err_tbl();
+ initialize_krb_error_table();
initialized=1;
}
}
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) {
if (!code)
return(0);
else
- return(code + krb_err_base);
+ return(code + ERROR_TABLE_BASE_krb);
}