libcrypt.h 893 B

1234567891011121314151617181920212223
  1. /* prototypes for internal crypt functions
  2. *
  3. * Copyright (C) 2000-2006 by Erik Andersen <andersen@uclibc.org>
  4. *
  5. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. */
  7. #ifndef __LIBCRYPT_H__
  8. #define __LIBCRYPT_H__
  9. extern char *__md5_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden;
  10. extern char *__sha512_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden;
  11. extern char *__des_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden;
  12. extern char *__sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen) attribute_hidden;
  13. /* shut up gcc-4.x signed warnings */
  14. #define strcpy(dst,src) strcpy((char*)dst,(char*)src)
  15. #define strlen(s) strlen((char*)s)
  16. #define strncat(dst,src,n) strncat((char*)dst,(char*)src,n)
  17. #define strncmp(s1,s2,n) strncmp((char*)s1,(char*)s2,n)
  18. #endif