replace old and ugly crypt implementation
[musl] / include / crypt.h
diff --git a/include/crypt.h b/include/crypt.h
new file mode 100644 (file)
index 0000000..07de216
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef _CRYPT_H
+#define _CRYPT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct crypt_data {
+       int initialized;
+       char __buf[256];
+};
+
+char *crypt(const char *, const char *);
+char *crypt_r(const char *, const char *, struct crypt_data *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif