Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / tsm41 / aix5_auth.c
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 #include <afsconfig.h>
11 #include <afs/param.h>
12
13
14 #if defined(AFS_AIX51_ENV)
15 #include <sys/types.h>
16 #include <sys/param.h>
17 #include <stdio.h>
18 #include <locale.h>
19 #include <nl_types.h>
20 #include <pwd.h>
21 #include <netdb.h>
22 #include <sys/socket.h>
23 #include <sys/file.h>
24 #include <errno.h>
25 #include <usersec.h>
26
27 #include <afs/kauth.h>
28 #include <afs/kautils.h>
29
30 #include "aix_auth_prototypes.h"
31
32 int
33 afs_initialize(struct secmethod_table *meths)
34 {
35 /*
36 * Initialize kauth package here so we don't have to call it
37 * each time we call the authenticate routine.
38 */
39 ka_Init(0);
40 memset(meths, 0, sizeof(struct secmethod_table));
41
42 /*
43 * Initialize the exported interface routines.
44 * Aside from method_authenticate, these are just no-ops.
45 */
46 meths->method_chpass = afs_chpass;
47 meths->method_authenticate = afs_authenticate;
48 meths->method_passwdexpired = afs_passwdexpired;
49 meths->method_passwdrestrictions = afs_passwdrestrictions;
50 meths->method_getpasswd = afs_getpasswd;
51
52 return (0);
53 }
54
55 #endif /* AFS_AIX51_ENV */