diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-09 16:35:44 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-09 16:35:44 +0000 |
commit | eab99f7d1624ff5ca2c251351760d48da573328f (patch) | |
tree | 2b07ce3607663e35e0ef328ca248ce37e0739132 /libcrypt/crypt_stub.c | |
parent | d6d29b3c2fbb5dac3e1a14302a0579aba65824a5 (diff) | |
download | uClibc-alpine-eab99f7d1624ff5ca2c251351760d48da573328f.tar.bz2 uClibc-alpine-eab99f7d1624ff5ca2c251351760d48da573328f.tar.xz |
SYnch with trunk: new files
Diffstat (limited to 'libcrypt/crypt_stub.c')
-rw-r--r-- | libcrypt/crypt_stub.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libcrypt/crypt_stub.c b/libcrypt/crypt_stub.c new file mode 100644 index 000000000..76645a046 --- /dev/null +++ b/libcrypt/crypt_stub.c @@ -0,0 +1,30 @@ +/* vi: set sw=4 ts=4: */ +/* + * crypt() for uClibc + * Copyright (C) 2008 by Erik Andersen <andersen@uclibc.org> + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#define __FORCE_GLIBC +#include <crypt.h> +#include <unistd.h> +#include "libcrypt.h" +#include <syscall.h> + +char *crypt(const char *key attribute_unused, const char *salt attribute_unused) +{ + __set_errno(ENOSYS); + return NULL; +} + +void +setkey(const char *key attribute_unused) +{ + __set_errno(ENOSYS); +} + +void +encrypt(char *block attribute_unused, int flag attribute_unused) +{ + __set_errno(ENOSYS); +} |