"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/dns/spnego.h" (7 Sep 2020, 1871 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "spnego.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 
   13 /*! \file
   14  * \brief
   15  * Entry points into portable SPNEGO implementation.
   16  * See spnego.c for information on the SPNEGO implementation itself.
   17  */
   18 
   19 #ifndef _SPNEGO_H_
   20 #define _SPNEGO_H_
   21 
   22 /*%
   23  * Wrapper for GSSAPI gss_init_sec_context(), using portable SPNEGO
   24  * implementation instead of the one that's part of the GSSAPI
   25  * library.  Takes arguments identical to the standard GSSAPI
   26  * function, uses standard gss_init_sec_context() to handle
   27  * everything inside the SPNEGO wrapper.
   28  */
   29 OM_uint32
   30 gss_init_sec_context_spnego(OM_uint32 *,
   31                 const gss_cred_id_t,
   32                 gss_ctx_id_t *,
   33                 const gss_name_t,
   34                 const gss_OID,
   35                 OM_uint32,
   36                 OM_uint32,
   37                 const gss_channel_bindings_t,
   38                 const gss_buffer_t,
   39                 gss_OID *,
   40                 gss_buffer_t,
   41                 OM_uint32 *,
   42                 OM_uint32 *);
   43 
   44 /*%
   45  * Wrapper for GSSAPI gss_accept_sec_context(), using portable SPNEGO
   46  * implementation instead of the one that's part of the GSSAPI
   47  * library.  Takes arguments identical to the standard GSSAPI
   48  * function.  Checks the OID of the input token to see if it's SPNEGO;
   49  * if so, processes it, otherwise hands the call off to the standard
   50  * gss_accept_sec_context() function.
   51  */
   52 OM_uint32 gss_accept_sec_context_spnego(OM_uint32 *,
   53                     gss_ctx_id_t *,
   54                     const gss_cred_id_t,
   55                     const gss_buffer_t,
   56                     const gss_channel_bindings_t,
   57                     gss_name_t *,
   58                     gss_OID *,
   59                     gss_buffer_t,
   60                     OM_uint32 *,
   61                     OM_uint32 *,
   62                     gss_cred_id_t *);
   63 
   64 
   65 #endif