libutil: add header file <xcrypt.h> for extended crypt routines
authorH. Peter Anvin <hpa@zytor.com>
Mon, 11 Feb 2008 06:50:32 +0000 (22:50 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 11 Feb 2008 06:50:32 +0000 (22:50 -0800)
Add a common header file, xcrypt.h, for the various extended crypt
routines (md5, sha256, sha512).

com32/libutil/include/xcrypt.h [new file with mode: 0644]
com32/libutil/sha256crypt.c
com32/libutil/sha512crypt.c

diff --git a/com32/libutil/include/xcrypt.h b/com32/libutil/include/xcrypt.h
new file mode 100644 (file)
index 0000000..89bc8bc
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef _LIBUTIL_XCRYPT_H
+#define _LIBUTIL_XCRYPT_H
+
+/* Extended crypt() implementations */
+
+char *crypt_md5(const char *, const char *);
+char *sha256_crypt (const char *, const char *);
+char *sha512_crypt (const char *, const char *);
+
+#endif
index 938e947..7dbd8fa 100644 (file)
@@ -13,6 +13,7 @@
 #include <sys/param.h>
 #include <sys/types.h>
 
+#include "xcrypt.h"
 
 /* Structure to save state of computation between the single steps.  */
 struct sha256_ctx
index 0c3a918..9ff587b 100644 (file)
@@ -13,6 +13,7 @@
 #include <sys/param.h>
 #include <sys/types.h>
 
+#include "xcrypt.h"
 
 /* Structure to save state of computation between the single steps.  */
 struct sha512_ctx