lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /* vi: set sw=4 ts=4: */ |
| 2 | /* |
| 3 | * crypt() for uClibc |
| 4 | * Copyright (C) 2008 by Erik Andersen <andersen@uclibc.org> |
| 5 | * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. |
| 6 | */ |
| 7 | |
| 8 | #define __FORCE_GLIBC |
| 9 | #include <crypt.h> |
| 10 | #include <unistd.h> |
| 11 | #include "libcrypt.h" |
| 12 | #include <syscall.h> |
| 13 | |
| 14 | char *crypt(const char *key attribute_unused, const char *salt attribute_unused) |
| 15 | { |
| 16 | __set_errno(ENOSYS); |
| 17 | return NULL; |
| 18 | } |
| 19 | |
| 20 | void |
| 21 | setkey(const char *key attribute_unused) |
| 22 | { |
| 23 | __set_errno(ENOSYS); |
| 24 | } |
| 25 | |
| 26 | void |
| 27 | encrypt(char *block attribute_unused, int flag attribute_unused) |
| 28 | { |
| 29 | __set_errno(ENOSYS); |
| 30 | } |