masqmail
view src/md5/md5.h @ 392:c5fd796ea06e
Heavy refactoring in parts of conf.c.
init_conf()
parse_boolean()
parse_list_file()
Re-arrangement of code.
parse_address_glob_list()
Removed unneccessary parameter.
parse_list()
parse_interface():
Use strtok()/strchr() instead of doing is all by hand.
Removed limitation of fixed size buffer.
eat_comments()
Use a state machine.
eat_line_trailing()
eat_spaces()
read_lval()
Better structured code.
read_conf()
read_route()
Removed magic numbers.
Made all list type in the config files accept pathname entries,
except for `permanent_routes' and `query_routes.' for which this
is impossible.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 18 Feb 2012 18:07:55 +0100 |
parents | e0938c511243 |
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 /* Note: Using an int will work on most systems and might perform much better */
18 typedef unsigned long MD5_u32plus;
20 typedef struct {
21 MD5_u32plus lo, hi;
22 MD5_u32plus a, b, c, d;
23 unsigned char buffer[64];
24 MD5_u32plus block[16];
25 } MD5_CTX;
27 extern void MD5_Init(MD5_CTX *ctx);
28 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
29 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
31 #endif