首页 LINUX-2¸6¸26-内核源代码 ―― auth_gss¸h

LINUX-2¸6¸26-内核源代码 ―― auth_gss¸h

举报
开通vip

LINUX-2¸6¸26-内核源代码 ―― auth_gss¸hLINUX-2¸6¸26-内核源代码 ―― auth_gss¸h /* * linux/include/linux/sunrpc/auth_gss.h * * Declarations for RPCSEC_GSS * * Dug Song * Andy Adamson * Bruce Fields * Copyright (c) 2000 The Regents of the University of Michigan * * $Id$ */ #ifndef _LINUX_SUN...

LINUX-2¸6¸26-内核源代码 ―― auth_gss¸h
LINUX-2¸6¸26-内核源代码 ―― auth_gss¸h /* * linux/include/linux/sunrpc/auth_gss.h * * Declarations for RPCSEC_GSS * * Dug Song * Andy Adamson * Bruce Fields * Copyright (c) 2000 The Regents of the University of Michigan * * $Id$ */ #ifndef _LINUX_SUNRPC_AUTH_GSS_H #define _LINUX_SUNRPC_AUTH_GSS_H #ifdef __KERNEL__ #include #include #include #define RPC_GSS_VERSION 1 #define MAXSEQ 0x80000000 /* maximum legal sequence number, from rfc 2203 */ enum rpc_gss_proc { RPC_GSS_PROC_DATA = 0, RPC_GSS_PROC_INIT = 1, RPC_GSS_PROC_CONTINUE_INIT = 2, RPC_GSS_PROC_DESTROY = 3 }; enum rpc_gss_svc { RPC_GSS_SVC_NONE = 1, RPC_GSS_SVC_INTEGRITY = 2, RPC_GSS_SVC_PRIVACY = 3 }; /* on-the-wire gss cred: */ struct rpc_gss_wire_cred { u32 gc_v; /* version */ u32 gc_proc; /* control procedure */ u32 gc_seq; /* sequence number */ u32 gc_svc; /* service */ struct xdr_netobj gc_ctx; /* context handle */ }; /* on-the-wire gss verifier: */ struct rpc_gss_wire_verf { u32 gv_flavor; struct xdr_netobj gv_verf; }; /* return from gss NULL PROC init sec context */ struct rpc_gss_init_res { struct xdr_netobj gr_ctx; /* context handle */ u32 gr_major; /* major status */ u32 gr_minor; /* minor status */ u32 gr_win; /* sequence window */ struct xdr_netobj gr_token; /* token */ }; /* The gss_cl_ctx struct holds all the information the rpcsec_gss client * code needs to know about a single security context. In particular, * gc_gss_ctx is the context handle that is used to do gss-api calls, while * gc_wire_ctx is the context handle that is used to identify the context on * the wire when communicating with a server. */ struct gss_cl_ctx { atomic_t count; enum rpc_gss_proc gc_proc; u32 gc_seq; spinlock_t gc_seq_lock; struct gss_ctx *gc_gss_ctx; struct xdr_netobj gc_wire_ctx; u32 gc_win; unsigned long gc_expiry; struct rcu_head gc_rcu; }; struct gss_upcall_msg; struct gss_cred { struct rpc_cred gc_base; enum rpc_gss_svc gc_service; struct gss_cl_ctx *gc_ctx; struct gss_upcall_msg *gc_upcall; unsigned char gc_machine_cred : 1; }; #endif /* __KERNEL__ */ #endif /* _LINUX_SUNRPC_AUTH_GSS_H */
本文档为【LINUX-2¸6¸26-内核源代码 ―― auth_gss¸h】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_353097
暂无简介~
格式:doc
大小:16KB
软件:Word
页数:4
分类:
上传时间:2018-03-26
浏览量:23