/[cvs]/eggdrop1.8/src/md5/md5.h
ViewVC logotype

Contents of /eggdrop1.8/src/md5/md5.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Tue Oct 19 14:20:56 2010 UTC (8 years, 11 months ago) by pseudo
Branch: MAIN
CVS Tags: HEAD
Branch point for: gettext
Changes since 1.2: +2 -0 lines
File MIME type: text/x-csrc
Added few autoconf checks for ssl.
Added tls to tcl_status()

1 /*
2 * This is an OpenSSL-compatible implementation of the RSA Data Security,
3 * Inc. MD5 Message-Digest Algorithm.
4 *
5 * Written by Solar Designer <solar@openwall.com> in 2001, and placed in
6 * the public domain. See md5c.c for more information.
7 */
8
9 #ifndef _MD5_H
10 #define _MD5_H
11
12 #include "src/main.h"
13
14 #ifdef HAVE_OPENSSL_MD5
15 # include <openssl/md5.h>
16 #else
17
18 /* Any 32-bit or wider integer data type will do */
19 typedef unsigned long MD5_u32plus;
20
21 typedef struct {
22 MD5_u32plus lo, hi;
23 MD5_u32plus a, b, c, d;
24 unsigned char buffer[64];
25 MD5_u32plus block[16];
26 } MD5_CTX;
27
28 extern void MD5_Init(MD5_CTX *ctx);
29 extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
30 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
31
32 #endif /* HAVE_OPENSSL_MD5 */
33 #endif /* _MD5_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23