summaryrefslogtreecommitdiffstats
path: root/libcrypt/libcrypt.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-24 03:17:32 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-24 03:17:32 +0000
commitdad0cff70ce8776455dc68c3461ba807dac4e57b (patch)
treebc9cf2cf05405fee0144ea3edd9cba2963266093 /libcrypt/libcrypt.h
parent2995798be041d104bcf568a50963d60f9f24a46c (diff)
downloaduClibc-alpine-dad0cff70ce8776455dc68c3461ba807dac4e57b.tar.bz2
uClibc-alpine-dad0cff70ce8776455dc68c3461ba807dac4e57b.tar.xz
Copy from trunk.
Diffstat (limited to 'libcrypt/libcrypt.h')
-rw-r--r--libcrypt/libcrypt.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/libcrypt/libcrypt.h b/libcrypt/libcrypt.h
new file mode 100644
index 000000000..11866200c
--- /dev/null
+++ b/libcrypt/libcrypt.h
@@ -0,0 +1,20 @@
+/* prototypes for internal crypt functions
+ *
+ * Copyright (C) 2000-2006 by Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#ifndef __LIBCRYPT_H__
+#define __LIBCRYPT_H__
+
+extern char *__md5_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden;
+extern char *__des_crypt(const unsigned char *pw, const unsigned char *salt) attribute_hidden;
+
+/* shut up gcc-4.x signed warnings */
+#define strcpy(dst,src) strcpy((char*)dst,(char*)src)
+#define strlen(s) strlen((char*)s)
+#define strncat(dst,src,n) strncat((char*)dst,(char*)src,n)
+#define strncmp(s1,s2,n) strncmp((char*)s1,(char*)s2,n)
+
+#endif