gss_methods.cc 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include <cstring>
  5. #include "net/tools/gssapi/gss_types.h"
  6. // Only the GSSAPI exports used by //net are defined here and in
  7. // gss_import_name.cc.
  8. extern "C" GSS_EXPORT OM_uint32 gss_release_buffer(OM_uint32* minor_status,
  9. gss_buffer_t buffer) {
  10. *minor_status = 0;
  11. return 0;
  12. }
  13. extern "C" GSS_EXPORT OM_uint32
  14. gss_display_name(OM_uint32* minor_status,
  15. const gss_name_t input_name,
  16. gss_buffer_t output_name_buffer,
  17. gss_OID* output_name_type) {
  18. return 0;
  19. }
  20. extern "C" GSS_EXPORT OM_uint32 gss_display_status(OM_uint32* minor_status,
  21. OM_uint32 status_value,
  22. int status_type,
  23. const gss_OID mech_type,
  24. OM_uint32* message_contex,
  25. gss_buffer_t status_string) {
  26. return 0;
  27. }
  28. extern "C" GSS_EXPORT OM_uint32
  29. gss_init_sec_context(OM_uint32* minor_status,
  30. const gss_cred_id_t initiator_cred_handle,
  31. gss_ctx_id_t* context_handle,
  32. const gss_name_t target_name,
  33. const gss_OID mech_type,
  34. OM_uint32 req_flags,
  35. OM_uint32 time_req,
  36. const gss_channel_bindings_t input_chan_bindings,
  37. const gss_buffer_t input_token,
  38. gss_OID* actual_mech_type,
  39. gss_buffer_t output_token,
  40. OM_uint32* ret_flags,
  41. OM_uint32* time_rec) {
  42. return 0;
  43. }
  44. extern "C" GSS_EXPORT OM_uint32
  45. gss_wrap_size_limit(OM_uint32* minor_status,
  46. const gss_ctx_id_t context_handle,
  47. int conf_req_flag,
  48. gss_qop_t qop_req,
  49. OM_uint32 req_output_size,
  50. OM_uint32* max_input_size) {
  51. return 0;
  52. }
  53. extern "C" GSS_EXPORT OM_uint32
  54. gss_delete_sec_context(OM_uint32* minor_status,
  55. gss_ctx_id_t* context_handle,
  56. gss_buffer_t output_token) {
  57. return 0;
  58. }
  59. extern "C" GSS_EXPORT OM_uint32
  60. gss_inquire_context(OM_uint32* minor_status,
  61. const gss_ctx_id_t context_handle,
  62. gss_name_t* src_name,
  63. gss_name_t* targ_name,
  64. OM_uint32* lifetime_rec,
  65. gss_OID* mech_type,
  66. OM_uint32* ctx_flags,
  67. int* locally_initiated,
  68. int* open) {
  69. return 0;
  70. }