~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to src/lib/crypt.c

  • Committer: Bazaar Package Importer
  • Author(s): Paul Hampson
  • Date: 2006-01-15 13:34:13 UTC
  • mto: (3.1.3 dapper) (4.1.3 sid) (1.1.14 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060115133413-zo1dslttvdoalqym
Tags: upstream-1.1.0
ImportĀ upstreamĀ versionĀ 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Copyright 2000  The FreeRADIUS server project
19
19
 */
20
20
 
21
 
#include "libradius.h"
22
 
#include <stdlib.h>
 
21
#include "autoconf.h"
 
22
#include <string.h>
 
23
 
 
24
#ifdef HAVE_CRYPT_H
 
25
#include <crypt.h>
 
26
#else
23
27
#include <unistd.h>
24
 
#include <string.h>
 
28
#endif
25
29
 
26
30
#ifdef HAVE_PTHREAD_H
27
 
#include        <pthread.h>
 
31
#include <pthread.h>
28
32
 
29
33
/*
30
34
 *  No pthreads, no mutex.
33
37
static pthread_mutex_t lrad_crypt_mutex;
34
38
#endif
35
39
 
 
40
#include "libradius.h"
 
41
 
36
42
/*
37
43
 * performs a crypt password check in an thread-safe way.
38
44
 *