13 #include <sys/types.h>
20 /* GLOBAL.H - RSAREF types and constants
23 /* PROTOTYPES should be set to one if and only if the compiler supports
24 function argument prototyping.
25 The following makes PROTOTYPES default to 0 if it has not already
26 been defined with C compiler flags.
36 /* POINTER defines a generic pointer type */
38 typedef unsigned char *POINTER;
40 typedef const unsigned char *CONSTPOINTER;
42 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
43 If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
44 returns an empty list.
47 #define PROTO_LIST(list) list
49 #define PROTO_LIST(list) ()
51 #endif /* _LRAD_PROTO_H */
54 * FreeRADIUS defines to ensure globally unique MD5 function names,
55 * so that we don't pick up vendor-specific broken MD5 libraries.
57 #define MD5_CTX librad_MD5_CTX
58 #define MD5Init librad_MD5Init
59 #define MD5Update librad_MD5Update
60 #define MD5Final librad_MD5Final
62 /* MD5.H - header file for MD5C.C
65 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
68 License to copy and use this software is granted provided that it
69 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
70 Algorithm" in all material mentioning or referencing this software
73 License is also granted to make and use derivative works provided
74 that such works are identified as "derived from the RSA Data
75 Security, Inc. MD5 Message-Digest Algorithm" in all material
76 mentioning or referencing the derived work.
78 RSA Data Security, Inc. makes no representations concerning either
79 the merchantability of this software or the suitability of this
80 software for any particular purpose. It is provided "as is"
81 without express or implied warranty of any kind.
83 These notices must be retained in any copies of any part of this
84 documentation and/or software.
89 uint32_t state[4]; /* state (ABCD) */
90 uint32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
91 unsigned char buffer[64]; /* input buffer */
94 void MD5Init PROTO_LIST ((MD5_CTX *));
95 void MD5Update PROTO_LIST
96 ((MD5_CTX *, const unsigned char *, unsigned int));
97 void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
98 #endif /* _LRAD_MD5_H */