From a205ca207c4b4bcdcaf9a10e7ed54cc5973413a1 Mon Sep 17 00:00:00 2001 From: mar Date: Mon, 26 Jun 1989 12:15:47 +0000 Subject: [PATCH] updated for new com_err library --- reg_svr/admin_call.c | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/reg_svr/admin_call.c b/reg_svr/admin_call.c index c543e8b6..2c116e98 100644 --- a/reg_svr/admin_call.c +++ b/reg_svr/admin_call.c @@ -35,8 +35,8 @@ static char *rcsid_admin_call_c = "$Header$"; #include "admin_server.h" #include "prot.h" #include "krb.h" +#include "krb_et.h" -extern int krb_err_base; /* Offset between com_err and kerberos codes */ extern int errno; /* System call error numbers */ extern long gethostid(); @@ -66,9 +66,9 @@ int admin_call_init() struct hostent *hp; /* host to talk to */ struct servent *sp; /* service to talk to */ - init_kadm_err_tbl(); + initialize_kadm_error_table(); if (status = get_krbrlm(krbrlm, 1)) { - status += krb_err_base; + status += ERROR_TABLE_BASE_krb; goto punt; } @@ -77,7 +77,7 @@ int admin_call_init() */ if (status = get_krbhst(krbhost, krbrlm, 1)) { - status += krb_err_base; + status += ERROR_TABLE_BASE_krb; goto punt; } hp = gethostbyname(krbhost); @@ -197,7 +197,7 @@ admin_call(opcode, pname, old_passwd, new_passwd, crypt_passwd) */ if (status = krb_get_cred("changepw", krbhost, krbrlm, &cred)) { - status += krb_err_base; + status += ERROR_TABLE_BASE_krb; goto bad; } @@ -268,7 +268,7 @@ admin_call(opcode, pname, old_passwd, new_passwd, crypt_passwd) if (status = krb_mk_req(&authent, "changepw", krbhost, krbrlm, checksum)) { - status += krb_err_base; + status += ERROR_TABLE_BASE_krb; goto bad; } @@ -367,7 +367,7 @@ admin_call(opcode, pname, old_passwd, new_passwd, crypt_passwd) &admin_addr, &my_addr, &msg_data); if (status) { - status += krb_err_base; + status += ERROR_TABLE_BASE_krb; goto bad; } bp = msg_data.app_data; @@ -418,14 +418,3 @@ static u_char *strapp(dest, source, end) return dest + length; } } - -/* - * Local Variables: - * mode: c - * c-indent-level: 4 - * c-continued-statement-offset: 4 - * c-brace-offset: -4 - * c-argdecl-indent: 4 - * c-label-offset: -4 - * End: - */ -- 2.45.2