Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/auth/mycrypt.c @ 8958:16c286aee307 HEAD
Implemented support for per-namespace quotas. Can be used with public namespaces.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 16 Apr 2009 21:31:30 -0400 |
parents | b1fa11d4a346 |
children |
rev | line source |
---|---|
3594
f1b407e8debb
And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents:
3593
diff
changeset
|
1 #ifdef HAVE_CONFIG_H |
f1b407e8debb
And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents:
3593
diff
changeset
|
2 # include "config.h" |
f1b407e8debb
And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents:
3593
diff
changeset
|
3 #endif |
f1b407e8debb
And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents:
3593
diff
changeset
|
4 |
690
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
5 #define _XOPEN_SOURCE 4 |
3364 | 6 #define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */ |
4058 | 7 #ifndef _AIX |
8 # define _XOPEN_VERSION 4 /* breaks AIX */ | |
9 #endif | |
690
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
10 #define _XPG4_2 |
3593 | 11 #ifdef CRYPT_USE_XPG6 |
12 # define _XPG6 /* Some Solaris versions require this, some break with this */ | |
13 #endif | |
690
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
14 #include <unistd.h> |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
15 |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
16 #include "mycrypt.h" |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
17 |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
18 char *mycrypt(const char *key, const char *salt) |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
19 { |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
20 return crypt(key, salt); |
413227772e6f
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
21 } |