annotate src/auth/mycrypt.c @ 22713:cb108f786fb4

Updated copyright notices to include the year 2018.
author Stephan Bosch <stephan.bosch@dovecot.fi>
date Mon, 01 Jan 2018 22:42:08 +0100
parents 2e2563132d5f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22713
cb108f786fb4 Updated copyright notices to include the year 2018.
Stephan Bosch <stephan.bosch@dovecot.fi>
parents: 21390
diff changeset
1 /* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
21264
8f33680c6722 global: Added missing copyright notices.
Stephan Bosch <stephan.bosch@dovecot.fi>
parents: 4058
diff changeset
2
3594
f1b407e8debb And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents: 3593
diff changeset
3 #ifdef HAVE_CONFIG_H
f1b407e8debb And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents: 3593
diff changeset
4 # include "config.h"
f1b407e8debb And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents: 3593
diff changeset
5 #endif
f1b407e8debb And more changes to get _XPG6 stuff working right
Timo Sirainen <tss@iki.fi>
parents: 3593
diff changeset
6
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_SOURCE 4
3364
545e79f8605b Added comment
Timo Sirainen <tss@iki.fi>
parents: 3362
diff changeset
8 #define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */
4058
b1fa11d4a346 Fixed AIX compile
Timo Sirainen <tss@iki.fi>
parents: 3594
diff changeset
9 #ifndef _AIX
b1fa11d4a346 Fixed AIX compile
Timo Sirainen <tss@iki.fi>
parents: 3594
diff changeset
10 # define _XOPEN_VERSION 4 /* breaks AIX */
b1fa11d4a346 Fixed AIX compile
Timo Sirainen <tss@iki.fi>
parents: 3594
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 #define _XPG4_2
3593
fa4cbca22d26 Add _XPG6 macro if needed..
Timo Sirainen <tss@iki.fi>
parents: 3365
diff changeset
13 #ifdef CRYPT_USE_XPG6
fa4cbca22d26 Add _XPG6 macro if needed..
Timo Sirainen <tss@iki.fi>
parents: 3365
diff changeset
14 # 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
15 #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
16 #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
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 #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
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 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
21 {
413227772e6f Moved mycrypt() into auth/ dir, so we don't have to link all programs with
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
22 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
23 }