~ubuntu-branches/ubuntu/oneiric/openafs/oneiric-201305130334

« back to all changes in this revision

Viewing changes to src/tsm41/aix5_auth.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2006-10-21 20:57:09 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061021205709-y5keam1v20qxjwwo
Tags: 1.4.2-2
Upstream fix to prevent butc segfaulting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
RCSID
 
14
    ("$Header: /cvs/openafs/src/tsm41/aix5_auth.c,v 1.1.2.2 2006/07/13 17:19:41 shadow Exp $");
 
15
 
 
16
#if defined(AFS_AIX51_ENV)
 
17
#include <sys/types.h>
 
18
#include <sys/param.h>
 
19
#include <stdio.h>
 
20
#include <locale.h>
 
21
#include <nl_types.h>
 
22
#include <pwd.h>
 
23
#include <netdb.h>
 
24
#include <sys/socket.h>
 
25
#include <sys/file.h>
 
26
#include <errno.h>
 
27
#include <usersec.h>
 
28
 
 
29
#include <afs/kauth.h>
 
30
#include <afs/kautils.h>
 
31
 
 
32
#include "aix_auth_prototypes.h"
 
33
 
 
34
int
 
35
afs_initialize(struct secmethod_table *meths)
 
36
{
 
37
    /*
 
38
     * Initialize kauth package here so we don't have to call it
 
39
     * each time we call the authenticate routine.      
 
40
     */
 
41
    ka_Init(0);
 
42
    memset(meths, 0, sizeof(struct secmethod_table));
 
43
 
 
44
    /*
 
45
     * Initialize the exported interface routines.
 
46
     * Aside from method_authenticate, these are just no-ops.
 
47
     */
 
48
    meths->method_chpass = afs_chpass;
 
49
    meths->method_authenticate = afs_authenticate;
 
50
    meths->method_passwdexpired = afs_passwdexpired;
 
51
    meths->method_passwdrestrictions = afs_passwdrestrictions;
 
52
    meths->method_getpasswd = afs_getpasswd;
 
53
 
 
54
    return (0);
 
55
}
 
56
 
 
57
#endif /* AFS_AIX51_ENV */