svc_auth.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* svc_auth.h - Service side of rpc authentication. */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  5.  * unrestricted use provided that this legend is included on all tape
  6.  * media and as a part of the software program in whole or part.  Users
  7.  * may copy or modify Sun RPC without charge, but are not authorized
  8.  * to license or distribute it to anyone else except as part of a product or
  9.  * program developed by the user.
  10.  *
  11.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  12.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  13.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  14.  *
  15.  * Sun RPC is provided with no support and without any obligation on the
  16.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  17.  * modification or enhancement.
  18.  *
  19.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  20.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  21.  * OR ANY PART THEREOF.
  22.  *
  23.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  24.  * or profits or other special, indirect and consequential damages, even if
  25.  * Sun has been advised of the possibility of such damages.
  26.  *
  27.  * Sun Microsystems, Inc.
  28.  * 2550 Garcia Avenue
  29.  * Mountain View, California  94043
  30.  */
  31. /*      @(#)svc_auth.h 1.1 86/02/03 SMI      */
  32. /*
  33.  * svc_auth.h, Service side of rpc authentication.
  34.  *
  35.  * Copyright (C) 1984, Sun Microsystems, Inc.
  36.  */
  37. /*
  38. modification history
  39. --------------------
  40. 01g,22sep92,rrr  added support for c++
  41. 01f,26may92,rrr  the tree shuffle
  42. 01e,04oct91,rrr  passed through the ansification filter
  43.   -fixed #else and #endif
  44.   -changed copyright notice
  45. 01d,24oct90,shl  deleted redundant function declarations.
  46. 01c,05oct90,shl  added ANSI function prototypes.
  47.                  added copyright notice.
  48. 01b,27oct89,hjb  added modification history and #ifndef's to avoid multiple
  49.  inclusion.
  50. */
  51. #ifndef __INCsvc_authh
  52. #define __INCsvc_authh
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56. /* function declarations */
  57. #if defined(__STDC__) || defined(__cplusplus)
  58. extern   enum auth_stat  _authenticate (struct svc_req *rqst,
  59.  struct rpc_msg *msg);
  60. extern   enum auth_stat  _svcauth_null (void);
  61. #else
  62. extern   enum auth_stat  _authenticate ();
  63. extern   enum auth_stat  _svcauth_null ();
  64. #endif /* __STDC__ */
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68. #endif /* __INCsvc_authh */