/contrib/bind9/lib/dns/spnego.h

https://bitbucket.org/freebsd/freebsd-head/ · C Header · 71 lines · 28 code · 7 blank · 36 comment · 0 complexity · fef077dce9857ee724e927f5c10db470 MD5 · raw file

  1. /*
  2. * Copyright (C) 2006, 2007 Internet Systems Consortium, Inc. ("ISC")
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  9. * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  10. * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  11. * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  12. * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  13. * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  14. * PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. /* $Id: spnego.h,v 1.4 2007/06/19 23:47:16 tbox Exp $ */
  17. /*! \file
  18. * \brief
  19. * Entry points into portable SPNEGO implementation.
  20. * See spnego.c for information on the SPNEGO implementation itself.
  21. */
  22. #ifndef _SPNEGO_H_
  23. #define _SPNEGO_H_
  24. /*%
  25. * Wrapper for GSSAPI gss_init_sec_context(), using portable SPNEGO
  26. * implementation instead of the one that's part of the GSSAPI
  27. * library. Takes arguments identical to the standard GSSAPI
  28. * function, uses standard gss_init_sec_context() to handle
  29. * everything inside the SPNEGO wrapper.
  30. */
  31. OM_uint32
  32. gss_init_sec_context_spnego(OM_uint32 *,
  33. const gss_cred_id_t,
  34. gss_ctx_id_t *,
  35. const gss_name_t,
  36. const gss_OID,
  37. OM_uint32,
  38. OM_uint32,
  39. const gss_channel_bindings_t,
  40. const gss_buffer_t,
  41. gss_OID *,
  42. gss_buffer_t,
  43. OM_uint32 *,
  44. OM_uint32 *);
  45. /*%
  46. * Wrapper for GSSAPI gss_accept_sec_context(), using portable SPNEGO
  47. * implementation instead of the one that's part of the GSSAPI
  48. * library. Takes arguments identical to the standard GSSAPI
  49. * function. Checks the OID of the input token to see if it's SPNEGO;
  50. * if so, processes it, otherwise hands the call off to the standard
  51. * gss_accept_sec_context() function.
  52. */
  53. OM_uint32 gss_accept_sec_context_spnego(OM_uint32 *,
  54. gss_ctx_id_t *,
  55. const gss_cred_id_t,
  56. const gss_buffer_t,
  57. const gss_channel_bindings_t,
  58. gss_name_t *,
  59. gss_OID *,
  60. gss_buffer_t,
  61. OM_uint32 *,
  62. OM_uint32 *,
  63. gss_cred_id_t *);
  64. #endif