/crypto/external/bsd/heimdal/dist/kuser/kuser_locl.h

http://www.minix3.org/ · C++ Header · 110 lines · 64 code · 12 blank · 34 comment · 2 complexity · d6bb822a9169491f97131f52b479ea89 MD5 · raw file

  1. /* $NetBSD: kuser_locl.h,v 1.1.1.2 2011/04/14 14:08:19 elric Exp $ */
  2. /*
  3. * Copyright (c) 1997 - 1999 Kungliga Tekniska Hรถgskolan
  4. * (Royal Institute of Technology, Stockholm, Sweden).
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions
  9. * are met:
  10. *
  11. * 1. Redistributions of source code must retain the above copyright
  12. * notice, this list of conditions and the following disclaimer.
  13. *
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. *
  18. * 3. Neither the name of the Institute nor the names of its contributors
  19. * may be used to endorse or promote products derived from this software
  20. * without specific prior written permission.
  21. *
  22. * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
  23. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25. * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
  26. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  27. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  28. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  29. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  30. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  31. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32. * SUCH DAMAGE.
  33. */
  34. /* Id */
  35. #ifndef __KUSER_LOCL_H__
  36. #define __KUSER_LOCL_H__
  37. #include <config.h>
  38. #include <stdio.h>
  39. #include <stdlib.h>
  40. #include <string.h>
  41. #include <time.h>
  42. #ifdef HAVE_SYS_TYPES_H
  43. #include <sys/types.h>
  44. #endif
  45. #ifdef HAVE_PWD_H
  46. #include <pwd.h>
  47. #endif
  48. #ifdef HAVE_SYS_TIME_H
  49. #include <sys/time.h>
  50. #endif
  51. #ifdef HAVE_SYS_SOCKET_H
  52. #include <sys/socket.h>
  53. #endif
  54. #ifdef HAVE_NETINET_IN_H
  55. #include <netinet/in.h>
  56. #endif
  57. #ifdef HAVE_NETINET_IN6_H
  58. #include <netinet/in6.h>
  59. #endif
  60. #ifdef HAVE_NETINET6_IN6_H
  61. #include <netinet6/in6.h>
  62. #endif
  63. #ifdef HAVE_ARPA_INET_H
  64. #include <arpa/inet.h>
  65. #endif
  66. #include <krb5/roken.h>
  67. #include <krb5/getarg.h>
  68. #include <krb5/parse_time.h>
  69. #include <err.h>
  70. #include <krb5/krb5.h>
  71. #if defined(HAVE_SYS_IOCTL_H) && SunOS != 40
  72. #include <sys/ioctl.h>
  73. #endif
  74. #ifdef HAVE_SYS_IOCCOM_H
  75. #include <sys/ioccom.h>
  76. #endif
  77. #ifndef NO_AFS
  78. #include <krb5/kafs.h>
  79. #endif
  80. #include "crypto-headers.h" /* for UI_UTIL_read_pw_string */
  81. #include <krb5/rtbl.h>
  82. #ifdef HAVE_LOCALE_H
  83. #include <locale.h>
  84. #endif
  85. #ifdef LIBINTL
  86. #include <libintl.h>
  87. #define N_(x,y) gettext(x)
  88. #define NP_(x,y) (x)
  89. #define getarg_i18n gettext
  90. #else
  91. #define N_(x,y) (x)
  92. #define NP_(x,y) (x)
  93. #define getarg_i18n NULL
  94. #define bindtextdomain(package, localedir)
  95. #define textdomain(package)
  96. #endif
  97. extern krb5_context kcc_context;
  98. #endif /* __KUSER_LOCL_H__ */