crypt_stub.c 587 B

123456789101112131415161718192021222324252627282930
  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. #define __FORCE_GLIBC
  8. #include <crypt.h>
  9. #include <unistd.h>
  10. #include "libcrypt.h"
  11. #include <syscall.h>
  12. char *crypt(const char *key attribute_unused, const char *salt attribute_unused)
  13. {
  14. __set_errno(ENOSYS);
  15. return NULL;
  16. }
  17. void
  18. setkey(const char *key attribute_unused)
  19. {
  20. __set_errno(ENOSYS);
  21. }
  22. void
  23. encrypt(char *block attribute_unused, int flag attribute_unused)
  24. {
  25. __set_errno(ENOSYS);
  26. }