masqmail-0.2

view src/md5/md5.h @ 171:349518b940db

added support for STARTTLS wrappers added the route config option `instant_helo' which causes masqmail, as SMTP client, not to wait for the server's 220 greeting. Instead if says EHLO right at once. You'll need this for STARTTLS wrappers that usually eat the greeting line.
author meillo@marmaro.de
date Thu, 22 Jul 2010 23:30:05 +0200
parents 52c82d755215
children
line source
1 /*
2 * This is an OpenSSL-compatible implementation of the RSA Data Security,
3 * Inc. MD5 Message-Digest Algorithm (RFC 1321).
4 *
5 * Written by Solar Designer <solar at openwall.com> in 2001, and placed
6 * in the public domain. There's absolutely no warranty.
7 *
8 * See md5.c for more information.
9 */
11 #ifdef HAVE_OPENSSL
12 #include <openssl/md5.h>
13 #elif !defined(_MD5_H)
14 #define _MD5_H
16 /* Any 32-bit or wider unsigned integer data type will do */
17 typedef unsigned long MD5_u32plus;
19 typedef struct {
20 MD5_u32plus lo, hi;
21 MD5_u32plus a, b, c, d;
22 unsigned char buffer[64];
23 MD5_u32plus block[16];
24 } MD5_CTX;
26 extern void MD5_Init(MD5_CTX *ctx);
27 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
28 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
30 #endif