diff options
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 000000000..f1d185721 --- /dev/null +++ b/md5crypt.h | |||
@@ -0,0 +1,37 @@ | |||
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 | |||
18 | #ifndef _MD5CRYPT_H | ||
19 | #define _MD5CRYPT_H | ||
20 | |||
21 | #include "config.h" | ||
22 | |||
23 | #include <unistd.h> | ||
24 | #include <string.h> | ||
25 | |||
26 | #ifdef HAVE_OPENSSL | ||
27 | #include <openssl/md5.h> | ||
28 | #endif | ||
29 | |||
30 | #ifdef HAVE_SSL | ||
31 | #include <ssl/md5.h> | ||
32 | #endif | ||
33 | |||
34 | int is_md5_salt(const char *salt); | ||
35 | char *md5_crypt(const char *pw, const char *salt); | ||
36 | |||
37 | #endif /* MD5CRYPT_H */ | ||