annotate src/auth/mycrypt.c @ 3594:f1b407e8debb HEAD

And more changes to get _XPG6 stuff working right
author Timo Sirainen <tss@iki.fi>
date Sun, 18 Sep 2005 20:50:09 +0300
parents fa4cbca22d26
children b1fa11d4a346
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 */
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
7 #define _XOPEN_VERSION 4
413227772e6f Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
8 #define _XPG4_2
3593
fa4cbca22d26 Add _XPG6 macro if needed..
Timo Sirainen <tss@iki.fi>
parents: 3365
diff changeset
9 #ifdef CRYPT_USE_XPG6
fa4cbca22d26 Add _XPG6 macro if needed..
Timo Sirainen <tss@iki.fi>
parents: 3365
diff changeset
10 # 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
11 #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
12 #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
13
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 "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
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 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
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 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
19 }