annotate src/auth/mycrypt.c @ 4058:b1fa11d4a346 HEAD

Fixed AIX compile
author Timo Sirainen <tss@iki.fi>
date Fri, 24 Feb 2006 18:42:47 +0200
parents f1b407e8debb
children 8f33680c6722
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
545e79f8605b Added comment
Timo Sirainen <tss@iki.fi>
parents: 3362
diff changeset
6 #define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */
4058
b1fa11d4a346 Fixed AIX compile
Timo Sirainen <tss@iki.fi>
parents: 3594
diff changeset
7 #ifndef _AIX
b1fa11d4a346 Fixed AIX compile
Timo Sirainen <tss@iki.fi>
parents: 3594
diff changeset
8 # define _XOPEN_VERSION 4 /* breaks AIX */
b1fa11d4a346 Fixed AIX compile
Timo Sirainen <tss@iki.fi>
parents: 3594
diff changeset
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
fa4cbca22d26 Add _XPG6 macro if needed..
Timo Sirainen <tss@iki.fi>
parents: 3365
diff changeset
11 #ifdef CRYPT_USE_XPG6
fa4cbca22d26 Add _XPG6 macro if needed..
Timo Sirainen <tss@iki.fi>
parents: 3365
diff changeset
12 # define _XPG6 /* Some Solaris versions require this, some break with this */
fa4cbca22d26 Add _XPG6 macro if needed..
Timo Sirainen <tss@iki.fi>
parents: 3365
diff changeset
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 }