aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/md5crypt.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-06-27 22:31:32 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-06-27 22:31:32 +0000
commit83d2307d00b1f24dddf918c6651fb440d6863bf9 (patch)
treed93e4bc5fc0a9a5e99878bd93a4d51c873c1a43e /crypto/openssh/md5crypt.h
parent545d5eca429a5967b3300cb527d49cae8184e79f (diff)
downloadsrc-83d2307d00b1f24dddf918c6651fb440d6863bf9.tar.gz
src-83d2307d00b1f24dddf918c6651fb440d6863bf9.zip
Vendor import of OpenSSH 3.3p1.
Notes
Notes: svn path=/vendor-crypto/openssh/dist/; revision=98937
Diffstat (limited to 'crypto/openssh/md5crypt.h')
-rw-r--r--crypto/openssh/md5crypt.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/crypto/openssh/md5crypt.h b/crypto/openssh/md5crypt.h
new file mode 100644
index 000000000000..21356fbe7621
--- /dev/null
+++ b/crypto/openssh/md5crypt.h
@@ -0,0 +1,32 @@
+/*
+ * ----------------------------------------------------------------------------
+ * "THE BEER-WARE LICENSE" (Revision 42):
+ * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
+ * can do whatever you want with this stuff. If we meet some day, and you think
+ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
+ * ----------------------------------------------------------------------------
+ */
+
+/*
+ * Ported from FreeBSD to Linux, only minimal changes. --marekm
+ */
+
+/*
+ * Adapted from shadow-19990607 by Tudor Bosman, tudorb@jm.nu
+ */
+
+/* $Id: md5crypt.h,v 1.3 2001/02/09 01:55:36 djm Exp $ */
+
+#ifndef _MD5CRYPT_H
+#define _MD5CRYPT_H
+
+#include "config.h"
+
+#if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT)
+
+int is_md5_salt(const char *salt);
+char *md5_crypt(const char *pw, const char *salt);
+
+#endif /* defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) */
+
+#endif /* MD5CRYPT_H */