xref: /titanic_52/usr/src/lib/libsasl/include/md5global.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
2*7c478bd9Sstevel@tonic-gate 
3*7c478bd9Sstevel@tonic-gate /* md5global.h - RSAREF types and constants
4*7c478bd9Sstevel@tonic-gate  */
5*7c478bd9Sstevel@tonic-gate #ifndef MD5GLOBAL_H
6*7c478bd9Sstevel@tonic-gate #define MD5GLOBAL_H
7*7c478bd9Sstevel@tonic-gate 
8*7c478bd9Sstevel@tonic-gate /* PROTOTYPES should be set to one if and only if the compiler supports
9*7c478bd9Sstevel@tonic-gate   function argument prototyping.
10*7c478bd9Sstevel@tonic-gate The following makes PROTOTYPES default to 0 if it has not already
11*7c478bd9Sstevel@tonic-gate   been defined with C compiler flags.
12*7c478bd9Sstevel@tonic-gate  */
13*7c478bd9Sstevel@tonic-gate #ifndef PROTOTYPES
14*7c478bd9Sstevel@tonic-gate #define PROTOTYPES 0
15*7c478bd9Sstevel@tonic-gate #endif
16*7c478bd9Sstevel@tonic-gate 
17*7c478bd9Sstevel@tonic-gate /* POINTER defines a generic pointer type */
18*7c478bd9Sstevel@tonic-gate typedef unsigned char *POINTER;
19*7c478bd9Sstevel@tonic-gate 
20*7c478bd9Sstevel@tonic-gate typedef signed char INT1;		/*  8 bits */
21*7c478bd9Sstevel@tonic-gate typedef short INT2;			/* 16 bits */
22*7c478bd9Sstevel@tonic-gate typedef int INT4;			/* 32 bits */
23*7c478bd9Sstevel@tonic-gate /* There is no 64 bit type */
24*7c478bd9Sstevel@tonic-gate typedef unsigned char UINT1;		/*  8 bits */
25*7c478bd9Sstevel@tonic-gate typedef unsigned short UINT2;		/* 16 bits */
26*7c478bd9Sstevel@tonic-gate typedef unsigned int UINT4;		/* 32 bits */
27*7c478bd9Sstevel@tonic-gate /* There is no 64 bit type */
28*7c478bd9Sstevel@tonic-gate 
29*7c478bd9Sstevel@tonic-gate /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
30*7c478bd9Sstevel@tonic-gate If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
31*7c478bd9Sstevel@tonic-gate returns an empty list.
32*7c478bd9Sstevel@tonic-gate */
33*7c478bd9Sstevel@tonic-gate #if PROTOTYPES
34*7c478bd9Sstevel@tonic-gate #define PROTO_LIST(list) list
35*7c478bd9Sstevel@tonic-gate #else
36*7c478bd9Sstevel@tonic-gate #define PROTO_LIST(list) ()
37*7c478bd9Sstevel@tonic-gate #endif
38*7c478bd9Sstevel@tonic-gate 
39*7c478bd9Sstevel@tonic-gate #endif /* MD5GLOBAL_H */
40*7c478bd9Sstevel@tonic-gate 
41