| 2 * It contains source for the ZCheckAuthentication function. |
2 * It contains source for the ZCheckAuthentication function. |
| 3 * |
3 * |
| 4 * Created by: Robert French |
4 * Created by: Robert French |
| 5 * |
5 * |
| 6 * $Source$ |
6 * $Source$ |
| 7 * $Author: lschiere $ |
7 * $Author: chipx86 $ |
| 8 * |
8 * |
| 9 * Copyright (c) 1987,1991 by the Massachusetts Institute of Technology. |
9 * Copyright (c) 1987,1991 by the Massachusetts Institute of Technology. |
| 10 * For copying and distribution information, see the file |
10 * For copying and distribution information, see the file |
| 11 * "mit-copyright.h". |
11 * "mit-copyright.h". |
| 12 */ |
12 */ |
| 15 #ifndef lint |
15 #ifndef lint |
| 16 static char rcsid_ZCheckAuthentication_c[] = |
16 static char rcsid_ZCheckAuthentication_c[] = |
| 17 "$Zephyr: /mit/zephyr/src/lib/RCS/ZCheckAuthentication.c,v 1.14 89/03/24 14:17:38 jtkohl Exp Locker: raeburn $"; |
17 "$Zephyr: /mit/zephyr/src/lib/RCS/ZCheckAuthentication.c,v 1.14 89/03/24 14:17:38 jtkohl Exp Locker: raeburn $"; |
| 18 #endif |
18 #endif |
| 19 |
19 |
| 20 #include <internal.h> |
20 #include "internal.h" |
| 21 |
21 |
| 22 /* Check authentication of the notice. |
22 /* Check authentication of the notice. |
| 23 If it looks authentic but fails the Kerberos check, return -1. |
23 If it looks authentic but fails the Kerberos check, return -1. |
| 24 If it looks authentic and passes the Kerberos check, return 1. |
24 If it looks authentic and passes the Kerberos check, return 1. |
| 25 If it doesn't look authentic, return 0 |
25 If it doesn't look authentic, return 0 |