1999-11-19 12:53:20 +08:00
|
|
|
/*
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
* "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
|
|
|
|
*/
|
|
|
|
|
2001-02-09 09:55:35 +08:00
|
|
|
/* $Id: md5crypt.h,v 1.3 2001/02/09 01:55:36 djm Exp $ */
|
|
|
|
|
1999-11-19 12:53:20 +08:00
|
|
|
#ifndef _MD5CRYPT_H
|
|
|
|
#define _MD5CRYPT_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
1999-12-28 12:09:35 +08:00
|
|
|
#if defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT)
|
1999-11-19 12:53:20 +08:00
|
|
|
|
|
|
|
int is_md5_salt(const char *salt);
|
|
|
|
char *md5_crypt(const char *pw, const char *salt);
|
|
|
|
|
1999-12-28 12:09:35 +08:00
|
|
|
#endif /* defined(HAVE_MD5_PASSWORDS) && !defined(HAVE_MD5_CRYPT) */
|
|
|
|
|
1999-11-19 12:53:20 +08:00
|
|
|
#endif /* MD5CRYPT_H */
|