diff options
Diffstat (limited to 'src/lib/gssapi/generic/util_token.c')
-rw-r--r-- | src/lib/gssapi/generic/util_token.c | 6 |
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 c37819894..eadfad82a 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 |