annotate src/auth/mycrypt.c @ 3365:90d28c4c0199 HEAD

No, #define _XPG6 was after all pre-Solaris10 hack...
author Timo Sirainen <tss@iki.fi>
date Tue, 10 May 2005 17:35:21 +0300
parents 545e79f8605b
children fa4cbca22d26
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
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
1 #define _XOPEN_SOURCE 4
3364
545e79f8605b Added comment
Timo Sirainen <tss@iki.fi>
parents: 3362
diff changeset
2 #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
3 #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
4 #define _XPG4_2
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 #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
6
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 #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
8
413227772e6f Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9 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
10 {
413227772e6f Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
11 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
12 }