summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/os/kuserok.c
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-05-16 22:53:57 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-05-16 22:53:57 +0000
commitcb1dd6c78c6f6b949baaa344bd70b85356f3df38 (patch)
tree0d905d6738609e892b96b80aca29059eb2fbd06a /src/lib/krb5/os/kuserok.c
parent71f3af1abb38b0b51672d263b16c0b6fec00d392 (diff)
downloadkrb5-cb1dd6c78c6f6b949baaa344bd70b85356f3df38.tar.gz
krb5-cb1dd6c78c6f6b949baaa344bd70b85356f3df38.tar.xz
krb5-cb1dd6c78c6f6b949baaa344bd70b85356f3df38.zip
clean up some nits
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@861 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/os/kuserok.c')
-rw-r--r--src/lib/krb5/os/kuserok.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/krb5/os/kuserok.c b/src/lib/krb5/os/kuserok.c
index b80a46ea58..c08397c54a 100644
--- a/src/lib/krb5/os/kuserok.c
+++ b/src/lib/krb5/os/kuserok.c
@@ -26,23 +26,21 @@ static char rcsid_kuserok_c [] =
#include <sys/stat.h>
#include <pwd.h>
-#define OK 0
-#define NOTOK 1
#define MAX_USERNAME 10
/*
* Given a Kerberos principal "principal", and a local username "luser",
* determine whether user is authorized to login according to the
- * authorization file ("~luser/.klogin" by default). Returns OK
- * if authorized, NOTOK if not authorized.
+ * authorization file ("~luser/.klogin" by default). Returns TRUE
+ * if authorized, FALSE if not authorized.
*
* If there is no account for "luser" on the local machine, returns
- * NOTOK. If there is no authorization file, and the given Kerberos
+ * FALSE. If there is no authorization file, and the given Kerberos
* name "server" translates to the same name as "luser" (using
- * krb5_aname_to_lname()), returns OK. Otherwise, if the authorization file
- * can't be accessed, returns NOTOK. Otherwise, the file is read for
+ * krb5_aname_to_lname()), returns TRUE. Otherwise, if the authorization file
+ * can't be accessed, returns FALSE. Otherwise, the file is read for
* a matching principal name, instance, and realm. If one is found,
- * returns OK, if none is found, returns NOTOK.
+ * returns TRUE, if none is found, returns FALSE.
*
* The file entries are in the format produced by krb5_unparse_name(),
* one entry per line.