diff options
author | damien <damien> | 1999-11-19 04:53:20 +0000 |
---|---|---|
committer | damien <damien> | 1999-11-19 04:53:20 +0000 |
commit | 791304800937fca621fcd53a17540552ef661842 (patch) | |
tree | 135748e6eb30488217ccd42ce0ca8c1ca5592432 /md5crypt.h | |
parent | c84fb11cdf68bf639f72428411fe50ba4f6448d4 (diff) | |
download | openssh-791304800937fca621fcd53a17540552ef661842.tar.gz |
- Added non-PAM MD5 password support patch from Tudor Bosman <tudorb@jm.nu>
Diffstat (limited to 'md5crypt.h')
-rw-r--r-- | md5crypt.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/md5crypt.h b/md5crypt.h new file mode 100644 index 00000000..f1d18572 --- /dev/null +++ b/md5crypt.h @@ -0,0 +1,37 @@ +/* + * ---------------------------------------------------------------------------- + * "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 + */ + +#ifndef _MD5CRYPT_H +#define _MD5CRYPT_H + +#include "config.h" + +#include <unistd.h> +#include <string.h> + +#ifdef HAVE_OPENSSL +#include <openssl/md5.h> +#endif + +#ifdef HAVE_SSL +#include <ssl/md5.h> +#endif + +int is_md5_salt(const char *salt); +char *md5_crypt(const char *pw, const char *salt); + +#endif /* MD5CRYPT_H */ |