blob: 67733d17f90eced49aaf12f75e59f8a231cf08c2 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/* 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
8#ifndef __LIBCRYPT_H__
9#define __LIBCRYPT_H__
10
11extern char *__md5_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden;
12extern char *__sha256_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden;
13extern char *__sha512_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden;
14extern char *__des_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden;
15
16extern char *__sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen) attribute_hidden;
17extern char *__sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen) attribute_hidden;
18
19/* shut up gcc-4.x signed warnings */
20#define strcpy(dst,src) strcpy((char*)dst,(char*)src)
21#define strlen(s) strlen((char*)s)
22#define strncat(dst,src,n) strncat((char*)dst,(char*)src,n)
23#define strncmp(s1,s2,n) strncmp((char*)s1,(char*)s2,n)
24
25#endif