[dovecot-cvs] dovecot/src/lib mycrypt.c,NONE,1.1 mycrypt.h,NONE,1.1 Makefile.am,1.11,1.12

cras at procontrol.fi cras at procontrol.fi
Tue Nov 26 19:56:16 EET 2002


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv14235/lib

Modified Files:
	Makefile.am 
Added Files:
	mycrypt.c mycrypt.h 
Log Message:
Still more crypt() problems. Wrapped it into mycrypt() which should finally
put end to this kludgeing.



--- NEW FILE: mycrypt.c ---
#define _XOPEN_SOURCE
#include <unistd.h>

#include "mycrypt.h"

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

--- NEW FILE: mycrypt.h ---
#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

Index: Makefile.am
===================================================================
RCS file: /home/cvs/dovecot/src/lib/Makefile.am,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Makefile.am	26 Nov 2002 10:28:40 -0000	1.11
+++ Makefile.am	26 Nov 2002 17:56:14 -0000	1.12
@@ -30,6 +30,7 @@
 	mempool-system.c \
 	mmap-anon.c \
 	mmap-util.c \
+	mycrypt.c \
 	network.c \
 	obuffer.c \
 	obuffer-file.c \




More information about the dovecot-cvs mailing list