| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
From: epeisach@MIT.EDU
Date: Mon, 13 Feb 1995 00:03:39 -0500
To: krb5-bugs@MIT.EDU
If the keytab file has a bad version number (say, you specify an illegal
keytab name), the return is:
if ((kt_vno != KRB5_KT_VNO) &&
(kt_vno != KRB5_KT_VNO_1)) {
(void) krb5_unlock_file(context, KTFILEP(id), KTFILENAME(id));
(void) fclose(KTFILEP(id));
return -1 /* KRB5_KEYTAB_BADVNO */;
Why is -1 returned instead of KRB5_KEYTAB_BADVNO? (which is the logical
thing to return....)
From what I can determine, this is the only bogus error code returned
from the keytab library.... It would be useful to return this code on an
error such as bad vno as it gives a hint from the com_err library
instead of unkown error 255....
Ezra
| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |