Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.2 KiB

  1. /*
  2. * Copyright 1993 by OpenVision Technologies, Inc.
  3. *
  4. * Permission to use, copy, modify, distribute, and sell this software
  5. * and its documentation for any purpose is hereby granted without fee,
  6. * provided that the above copyright notice appears in all copies and
  7. * that both that copyright notice and this permission notice appear in
  8. * supporting documentation, and that the name of OpenVision not be used
  9. * in advertising or publicity pertaining to distribution of the software
  10. * without specific, written prior permission. OpenVision makes no
  11. * representations about the suitability of this software for any
  12. * purpose. It is provided "as is" without express or implied warranty.
  13. *
  14. * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  15. * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  16. * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  17. * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  18. * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  19. * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  20. * PERFORMANCE OF THIS SOFTWARE.
  21. */
  22. #ifndef _GSSAPI_H_
  23. #define _GSSAPI_H_
  24. /*
  25. * Determine platform-dependent configuration.
  26. */
  27. #define GSS_SIZEOF_INT 4
  28. #define GSS_SIZEOF_LONG 4
  29. #define GSS_SIZEOF_SHORT 2
  30. #include <stddef.h>
  31. /*
  32. #include <sys/types.h>
  33. /*
  34. * The following type must be defined as the smallest natural unsigned integer
  35. * supported by the platform that has at least 32 bits of precision.
  36. */
  37. #if (GSS_SIZEOF_SHORT == 4)
  38. typedef unsigned short gss_uint32;
  39. #elif (GSS_SIZEOF_INT == 4)
  40. typedef unsigned int gss_uint32;
  41. #elif (GSS_SIZEOF_LONG == 4)
  42. typedef unsigned long gss_uint32;
  43. #endif
  44. #ifdef OM_STRING
  45. /*
  46. * We have included the xom.h header file. Use the definition for
  47. * OM_object identifier.
  48. */
  49. typedef OM_object_identifier gss_OID_desc, *gss_OID;
  50. #else /* OM_STRING */
  51. /*
  52. * We can't use X/Open definitions, so roll our own.
  53. */
  54. typedef gss_uint32 OM_uint32;
  55. typedef struct gss_OID_desc_struct {
  56. OM_uint32 length;
  57. void SEC_FAR *elements;
  58. } gss_OID_desc, SEC_FAR *gss_OID;
  59. #endif /* OM_STRING */
  60. #endif /* _GSSAPI_H_ */