xref: /aosp_15_r20/external/cronet/net/tools/gssapi/gss_import_name.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2019 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "net/tools/gssapi/gss_types.h"
6 
7 // These two imports follow the same pattern as those in gss_methods.cc but are
8 // separated out so that we can build a GSSAPI library that's missing a couple
9 // of imports.
10 
11 extern "C" GSS_EXPORT OM_uint32
gss_import_name(OM_uint32 * minor_status,const gss_buffer_t input_name_buffer,const gss_OID input_name_type,gss_name_t * output_name)12 gss_import_name(OM_uint32* minor_status,
13                 const gss_buffer_t input_name_buffer,
14                 const gss_OID input_name_type,
15                 gss_name_t* output_name) {
16   return 0;
17 }
18 
gss_release_name(OM_uint32 * minor_status,gss_name_t * input_name)19 extern "C" GSS_EXPORT OM_uint32 gss_release_name(OM_uint32* minor_status,
20                                                  gss_name_t* input_name) {
21   *minor_status = 0;
22   delete *input_name;
23   *input_name = nullptr;
24   return 0;
25 }
26