crypt_stub.c 540 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * crypt() for uClibc
  3. * Copyright (C) 2008 by Erik Andersen <andersen@uclibc.org>
  4. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  5. */
  6. #include <crypt.h>
  7. #include <unistd.h>
  8. #include "libcrypt.h"
  9. #include <syscall.h>
  10. char *crypt(const char *key attribute_unused, const char *salt attribute_unused)
  11. {
  12. __set_errno(ENOSYS);
  13. return NULL;
  14. }
  15. void
  16. setkey(const char *key attribute_unused)
  17. {
  18. __set_errno(ENOSYS);
  19. }
  20. void
  21. encrypt(char *block attribute_unused, int flag attribute_unused)
  22. {
  23. __set_errno(ENOSYS);
  24. }