154359Sroberto/* GLOBAL.H - RSAREF types and constants */ 254359Sroberto 354359Sroberto/* Copyright (C) RSA Laboratories, a division of RSA Data Security, 454359Sroberto Inc., created 1991. All rights reserved. 554359Sroberto */ 654359Sroberto 754359Sroberto/* 854359Sroberto * Note: the modifications are necessary for little-endian machines 954359Sroberto */ 1054359Sroberto#include "ntp_types.h" /* local modification */ 1154359Sroberto 1254359Sroberto#ifndef _GLOBAL_H_ 1354359Sroberto#define _GLOBAL_H_ 1 1454359Sroberto 1554359Sroberto/* PROTOTYPES should be set to one if and only if the compiler supports 1654359Sroberto function argument prototyping. 1754359Sroberto The following makes PROTOTYPES default to 1 if it has not already been 1854359Sroberto defined as 0 with C compiler flags. 1954359Sroberto */ 2054359Sroberto#ifdef HAVE_PROTOTYPES 2154359Sroberto#define PROTOTYPES 1 2254359Sroberto#endif 2354359Sroberto 2454359Sroberto/* POINTER defines a generic pointer type */ 2554359Srobertotypedef unsigned char *POINTER; 2654359Sroberto 2754359Sroberto/* UINT2 defines a two byte word */ 2854359Srobertotypedef unsigned short int UINT2; 2954359Sroberto 3054359Sroberto/* UINT4 defines a four byte word */ 3154359Srobertotypedef u_int32 UINT4; /* local modification */ 3254359Sroberto 3382498Sroberto/* BYTE defines a unsigned character */ 3482498Srobertotypedef unsigned char BYTE; /* local modification for RSAEuro */ 3582498Sroberto 3654359Sroberto#ifndef NULL_PTR 3754359Sroberto#define NULL_PTR ((POINTER)0) 3854359Sroberto#endif 3954359Sroberto 4054359Sroberto#ifndef UNUSED_ARG 4154359Sroberto#define UNUSED_ARG(x) x = *(&x); 4254359Sroberto#endif 4354359Sroberto 4454359Sroberto/* PROTO_LIST is defined depending on how PROTOTYPES is defined above. 4554359Sroberto If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it 4654359Sroberto returns an empty list. 4754359Sroberto */ 4854359Sroberto#if PROTOTYPES 4954359Sroberto#define PROTO_LIST(list) list 5054359Sroberto#else 5154359Sroberto#define PROTO_LIST(list) () 5254359Sroberto#endif 5354359Sroberto 5454359Sroberto#endif /* end _GLOBAL_H_ */ 55