The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/rpc/rpcsec_gss/rpcsec_gss_int.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2   rpcsec_gss.h
    3   
    4   Copyright (c) 2000 The Regents of the University of Michigan.
    5   All rights reserved.
    6   
    7   Copyright (c) 2000 Dug Song <dugsong@UMICH.EDU>.
    8   All rights reserved, all wrongs reversed.
    9 
   10   Redistribution and use in source and binary forms, with or without
   11   modification, are permitted provided that the following conditions
   12   are met:
   13 
   14   1. Redistributions of source code must retain the above copyright
   15      notice, this list of conditions and the following disclaimer.
   16   2. Redistributions in binary form must reproduce the above copyright
   17      notice, this list of conditions and the following disclaimer in the
   18      documentation and/or other materials provided with the distribution.
   19   3. Neither the name of the University nor the names of its
   20      contributors may be used to endorse or promote products derived
   21      from this software without specific prior written permission.
   22 
   23   THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
   24   WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
   25   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   26   DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   27   FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   28   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   29   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
   30   BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
   31   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
   32   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   33   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   34 
   35   $Id: auth_gss.h,v 1.12 2001/04/30 19:44:47 andros Exp $
   36 */
   37 /* $FreeBSD: releng/10.2/sys/rpc/rpcsec_gss/rpcsec_gss_int.h 184588 2008-11-03 10:38:00Z dfr $ */
   38 
   39 #ifndef _RPCSEC_GSS_INT_H
   40 #define _RPCSEC_GSS_INT_H
   41 
   42 #include <kgssapi/gssapi_impl.h>
   43 
   44 /* RPCSEC_GSS control procedures. */
   45 typedef enum {
   46         RPCSEC_GSS_DATA = 0,
   47         RPCSEC_GSS_INIT = 1,
   48         RPCSEC_GSS_CONTINUE_INIT = 2,
   49         RPCSEC_GSS_DESTROY = 3
   50 } rpc_gss_proc_t;
   51 
   52 #define RPCSEC_GSS_VERSION      1
   53 
   54 /* Credentials. */
   55 struct rpc_gss_cred {
   56         u_int           gc_version;     /* version */
   57         rpc_gss_proc_t  gc_proc;        /* control procedure */
   58         u_int           gc_seq;         /* sequence number */
   59         rpc_gss_service_t gc_svc;       /* service */
   60         gss_buffer_desc gc_handle;      /* handle to server-side context */
   61 };
   62 
   63 /* Context creation response. */
   64 struct rpc_gss_init_res {
   65         gss_buffer_desc gr_handle;      /* handle to server-side context */
   66         u_int           gr_major;       /* major status */
   67         u_int           gr_minor;       /* minor status */
   68         u_int           gr_win;         /* sequence window */
   69         gss_buffer_desc gr_token;       /* token */
   70 };
   71 
   72 /* Maximum sequence number value. */
   73 #define MAXSEQ          0x80000000
   74 
   75 /* Prototypes. */
   76 __BEGIN_DECLS
   77 
   78 bool_t  xdr_rpc_gss_cred(XDR *xdrs, struct rpc_gss_cred *p);
   79 bool_t  xdr_rpc_gss_init_res(XDR *xdrs, struct rpc_gss_init_res *p);
   80 bool_t xdr_rpc_gss_wrap_data(struct mbuf **argsp,
   81     gss_ctx_id_t ctx, gss_qop_t qop, rpc_gss_service_t svc,
   82     u_int seq);
   83 bool_t xdr_rpc_gss_unwrap_data(struct mbuf **resultsp,
   84     gss_ctx_id_t ctx, gss_qop_t qop, rpc_gss_service_t svc, u_int seq);
   85 const char *_rpc_gss_num_to_qop(const char *mech, u_int num);
   86 void    _rpc_gss_set_error(int rpc_gss_error, int system_error);
   87 
   88 void    rpc_gss_log_debug(const char *fmt, ...);
   89 void    rpc_gss_log_status(const char *m, gss_OID mech, OM_uint32 major,
   90     OM_uint32 minor);
   91 
   92 __END_DECLS
   93 
   94 #endif /* !_RPCSEC_GSS_INT_H */

Cache object: 9c9d3a9c31d0157917713aa6fb423765


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.