summaryrefslogtreecommitdiffstats
path: root/src/auth/mycrypt.c
blob: 0bd00bc2389d76843bd829753305e381c54a7b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */

#ifdef HAVE_CONFIG_H
#  include "config.h"
#endif

#define _XOPEN_SOURCE 4
#define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */
#ifndef _AIX
#  define _XOPEN_VERSION 4 /* breaks AIX */
#endif
#define _XPG4_2
#ifdef CRYPT_USE_XPG6
#  define _XPG6 /* Some Solaris versions require this, some break with this */
#endif
#include <unistd.h>
#ifdef HAVE_CRYPT_H
# include <crypt.h>
#endif

#include "mycrypt.h"

char *mycrypt(const char *key, const char *salt)
{
	return crypt(key, salt);
}