summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/generic/util_token.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-04-20 15:44:40 +0000
committerTheodore Tso <tytso@mit.edu>1995-04-20 15:44:40 +0000
commit4b316d0c2d990e5489019c1612eddeace3456d17 (patch)
tree78d016aa2deef1d9c4d157fa5c69a462bce3c3a6 /src/lib/gssapi/generic/util_token.c
parentd095910a71a435e4628294962f9f554fc26f3bfd (diff)
downloadkrb5-4b316d0c2d990e5489019c1612eddeace3456d17.tar.gz
krb5-4b316d0c2d990e5489019c1612eddeace3456d17.tar.xz
krb5-4b316d0c2d990e5489019c1612eddeace3456d17.zip
configure.in: Add checking for SIZEOF_SHORT, SIZEOF_INT, and
SIZEOF_LONG, so we don't need to depend on getting this information from include/krb5/autoconf.h gssapi.h: Removed dependence on krb5 include files. gssapiP_generic.h: We need to include k5-config in order to get Windows specific hackery. Somewhat of a wart, but this is a gssapi internal header file, so the rest of the world doesn't have to see this. util_token.c: Define VALID_INT, instead of relying on this being defined by krb5.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5388 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/generic/util_token.c')
-rw-r--r--src/lib/gssapi/generic/util_token.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/gssapi/generic/util_token.c b/src/lib/gssapi/generic/util_token.c
index c378198943..eadfad82ab 100644
--- a/src/lib/gssapi/generic/util_token.c
+++ b/src/lib/gssapi/generic/util_token.c
@@ -23,6 +23,12 @@
#include "gssapiP_generic.h"
#include <memory.h>
+#if (SIZEOF_INT == 2)
+#define VALID_INT_BITS 0x7fff
+#elif (SIZEOF_INT == 4)
+#define VALID_INT_BITS 0x7fffffff
+#endif
+
/* XXXX this code currently makes the assumption that a mech oid will
never be longer than 127 bytes. This assumption is not inherent in
the interfaces, so the code can be fixed if the OSI namespace