Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.6 KiB

  1. /* $OpenBSD: auth_unix.h,v 1.3 2002/02/16 21:27:18 millert Exp $ */
  2. /* $NetBSD: auth_unix.h,v 1.4 1994/10/26 00:56:56 cgd Exp $ */
  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. * from: @(#)auth_unix.h 1.8 88/02/08 SMI
  32. * @(#)auth_unix.h 2.2 88/07/29 4.0 RPCSRC
  33. */
  34. /*
  35. * auth_unix.h, Protocol for UNIX style authentication parameters for RPC
  36. *
  37. * Copyright (C) 1984, Sun Microsystems, Inc.
  38. */
  39. /*
  40. * The system is very weak. The client uses no encryption for it
  41. * credentials and only sends null verifiers. The server sends backs
  42. * null verifiers or optionally a verifier that suggests a new short hand
  43. * for the credentials.
  44. */
  45. #ifndef _RPC_AUTH_UNIX_H
  46. #define _RPC_AUTH_UNIX_H
  47. #include <sys/cdefs.h>
  48. /* The machine name is part of a credential; it may not exceed 255 bytes */
  49. #define MAX_MACHINE_NAME 255
  50. /* gids compose part of a credential; there may not be more than 16 of them */
  51. #define NGRPS 16
  52. /*
  53. * Unix style credentials.
  54. */
  55. struct authunix_parms {
  56. u_long aup_time;
  57. char *aup_machname;
  58. int aup_uid;
  59. int aup_gid;
  60. u_int aup_len;
  61. int *aup_gids;
  62. };
  63. __BEGIN_DECLS
  64. extern bool_t xdr_authunix_parms(XDR *, struct authunix_parms *);
  65. __END_DECLS
  66. /*
  67. * If a response verifier has flavor AUTH_SHORT,
  68. * then the body of the response verifier encapsulates the following structure;
  69. * again it is serialized in the obvious fashion.
  70. */
  71. struct short_hand_verf {
  72. struct opaque_auth new_cred;
  73. };
  74. #endif /* !_RPC_AUTH_UNIX_H */