Mercurial > dovecot > core-2.2
changeset 690:413227772e6f HEAD
Moved mycrypt() into auth/ dir, so we don't have to link all programs with
-lcrypt
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 26 Nov 2002 20:39:57 +0200 |
parents | 7d00ff7ef77c |
children | 567f5e66c7b8 |
files | src/auth/Makefile.am src/auth/mycrypt.c src/auth/mycrypt.h src/lib/Makefile.am src/lib/mycrypt.c src/lib/mycrypt.h |
diffstat | 6 files changed, 22 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/Makefile.am Tue Nov 26 20:23:06 2002 +0200 +++ b/src/auth/Makefile.am Tue Nov 26 20:39:57 2002 +0200 @@ -19,6 +19,7 @@ login-connection.c \ main.c \ master.c \ + mycrypt.c \ userinfo.c \ userinfo-passwd.c \ userinfo-shadow.c \ @@ -32,5 +33,6 @@ common.h \ cookie.h \ login-connection.h \ + mycrypt.h \ userinfo.h \ userinfo-passwd.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/auth/mycrypt.c Tue Nov 26 20:39:57 2002 +0200 @@ -0,0 +1,12 @@ +#define _XOPEN_SOURCE 4 +#define _XOPEN_SOURCE_EXTENDED +#define _XOPEN_VERSION 4 +#define _XPG4_2 +#include <unistd.h> + +#include "mycrypt.h" + +char *mycrypt(const char *key, const char *salt) +{ + return crypt(key, salt); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/auth/mycrypt.h Tue Nov 26 20:39:57 2002 +0200 @@ -0,0 +1,8 @@ +#ifndef __MYCRYPT_H +#define __MYCRYPT_H + +/* A simple wrapper to crypt(). Problem with it is that it requires + _XOPEN_SOURCE define which breaks other things. */ +char *mycrypt(const char *key, const char *salt); + +#endif
--- a/src/lib/Makefile.am Tue Nov 26 20:23:06 2002 +0200 +++ b/src/lib/Makefile.am Tue Nov 26 20:39:57 2002 +0200 @@ -30,7 +30,6 @@ mempool-system.c \ mmap-anon.c \ mmap-util.c \ - mycrypt.c \ network.c \ obuffer.c \ obuffer-file.c \ @@ -70,7 +69,6 @@ md5.h \ mempool.h \ mmap-util.h \ - mycrypt.h \ network.h \ obuffer.h \ obuffer-internal.h \
--- a/src/lib/mycrypt.c Tue Nov 26 20:23:06 2002 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -#define _XOPEN_SOURCE 4 -#define _XOPEN_SOURCE_EXTENDED -#define _XOPEN_VERSION 4 -#define _XPG4_2 -#include <unistd.h> - -#include "mycrypt.h" - -char *mycrypt(const char *key, const char *salt) -{ - return crypt(key, salt); -}
--- a/src/lib/mycrypt.h Tue Nov 26 20:23:06 2002 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -#ifndef __MYCRYPT_H -#define __MYCRYPT_H - -/* A simple wrapper to crypt(). Problem with it is that it requires - _XOPEN_SOURCE define which breaks other things. */ -char *mycrypt(const char *key, const char *salt); - -#endif