4 #if defined(WITH_SSL) || defined(WITH_LIBCRYPTO)
5 #include <openssl/md5.h>
7 #define MD5_DIGEST_LENGTH 16
9 unsigned char *MD5(const unsigned char *input
, unsigned long len
, unsigned char *output_hash
);
11 typedef struct MD5Context
{
17 void MD5_Init(MD5_CTX
*ctx
);
18 void MD5_Update(MD5_CTX
*ctx
, const unsigned char *buf
, unsigned int len
);
19 void MD5_Final(unsigned char digest
[MD5_DIGEST_LENGTH
], MD5_CTX
*ctx
);
21 char *__md5_crypt(const char *text_pass
, const char *salt
, char *crypted_passwd
);