Damien Miller | dd1c7ba | 1999-11-19 15:53:20 +1100 | [diff] [blame] | 1 | /* |
| 2 | * ---------------------------------------------------------------------------- |
| 3 | * "THE BEER-WARE LICENSE" (Revision 42): |
| 4 | * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you |
| 5 | * can do whatever you want with this stuff. If we meet some day, and you think |
| 6 | * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp |
| 7 | * ---------------------------------------------------------------------------- |
| 8 | */ |
| 9 | |
| 10 | /* |
| 11 | * Ported from FreeBSD to Linux, only minimal changes. --marekm |
| 12 | */ |
| 13 | |
| 14 | /* |
| 15 | * Adapted from shadow-19990607 by Tudor Bosman, tudorb@jm.nu |
| 16 | */ |
| 17 | |
Damien Miller | e9cf357 | 2001-02-09 12:55:35 +1100 | [diff] [blame] | 18 | /* $Id: md5crypt.h,v 1.3 2001/02/09 01:55:36 djm Exp $ */ |
| 19 | |
Damien Miller | dd1c7ba | 1999-11-19 15:53:20 +1100 | [diff] [blame] | 20 | #ifndef _MD5CRYPT_H |
| 21 | #define _MD5CRYPT_H |
| 22 | |
| 23 | #include "config.h" |
| 24 | |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 25 | #if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) |
Damien Miller | dd1c7ba | 1999-11-19 15:53:20 +1100 | [diff] [blame] | 26 | |
| 27 | int is_md5_salt(const char *salt); |
| 28 | char *md5_crypt(const char *pw, const char *salt); |
| 29 | |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 30 | #endif /* defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) */ |
| 31 | |
Damien Miller | dd1c7ba | 1999-11-19 15:53:20 +1100 | [diff] [blame] | 32 | #endif /* MD5CRYPT_H */ |