summaryrefslogtreecommitdiff
path: root/src/misc/crypt.c
blob: f35e13d803295cd1467a74c8168b6d5cb4f7e4ae (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <unistd.h>
#include <crypt.h>

char *__crypt_r(const char *, const char *, struct crypt_data *);

char *crypt(const char *key, const char *salt)
{
	/* Note: update this size when we add more hash types */
	static char buf[21];
	return __crypt_r(key, salt, (struct crypt_data *)buf);
}