crypt_stub.c 565 B

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