1 /* $MirOS: src/usr.sbin/httpd/src/include/ap_md5.h,v 1.5 2011/11/21 09:39:25 tg Exp $ */
2 
3 #ifndef	APACHE_MD5_H
4 
5 /* include md5 functions from libc */
6 #include "/usr/include/md5.h"
7 #ifdef SYSKERN_MD5_H
8 #define	APACHE_MD5_H
9 
10 #define	MD5_DIGESTSIZE			MD5_DIGEST_LENGTH
11 #define	UINT4				u_int32_t
12 #define	AP_MD5_CTX			MD5_CTX
13 #define	AP_MD5PW_ID			"$apr1$"
14 #define	AP_MD5PW_IDLEN			6
15 #define	ap_MD5Init			MD5Init
16 #define	ap_MD5Update(ctx,buf,len)	\
17 	    MD5Update((ctx), (buf), (size_t)(len))
18 #define	ap_MD5Final			MD5Final
19 
20 __BEGIN_DECLS
21 void ap_to64(char *, unsigned long, int);
22 void ap_MD5Encode(const unsigned char *, const unsigned char *,
23     char *, size_t);
24 __END_DECLS
25 
26 #endif
27 #endif
28